Add declarations to header files.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
6254cdda
DN
12010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
2
99f3388e
DN
3 * lisp.h: Remove HAVE_SHM code, unused.
4 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
5 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
6 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
7 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
8 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
9 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
10 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
11 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
12 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
13 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
14 (Qwindow_scroll_functions, Vafter_load_alist)
15 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
16 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
17 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
18 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
19 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
20 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
21 (initial_argv, last_nonmenu_event, load_in_progress)
22 (noninteractive_need_newline, scroll_margin): Add declarations.
23
24 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
25 declarations, menu.h has them.
26 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
27 (Vinput_method_function, Qinput_method_function)
28 (Qevent_symbol_element_mask, last_event_timestamp):
29 * dispextern.h (Voverflow_newline_into_fringe):
30 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
31 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
32 (syms_of_w32font, syms_of_nsfont):
33 * fontset.h (find_font_encoding, Qlatin):
34 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
35 (Vtool_bar_mode, set_frame_menubar):
36 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
37 * xterm.h (Qx_gtk_map_stock):
38 * keymap.h (meta_prefix_char): Add declarations.
39
9f5dd6f2
DN
40 * term.c: Remove dead code.
41
6254cdda
DN
42 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
43 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
44 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
45 which is what was there before BSD_PGRPS was removed.
46
29cf3e20
EZ
472010-08-05 Eli Zaretskii <eliz@gnu.org>
48
49 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
50
51 * unexcoff.c: Renamed from unexec.c.
52
aaa0a19a
SM
532010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
54
55 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
56
8d1d9587
JB
572010-08-03 Johan Bockgård <bojohan@gnu.org>
58
59 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 60 (Bug#6744)
8d1d9587 61
9a747ba6
JD
622010-08-02 Jan Djärv <jan.h.d@swipnet.se>
63
4d464ae4
JD
64 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
65 to TRUE if depth of screen is < 16.
66
ac01763e
JD
67 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
68 USE_GTK_TOOLTIP.
e0d62a9b
JB
69 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
70 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 71 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
72 USE_GTK_TOOLTIP.
73 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
74
75 * xterm.h (USE_GTK_TOOLTIP): New define.
76 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
77
9a747ba6
JD
78 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
79 to Control-D (Bug#6771).
80
7b0815ba
JB
812010-08-02 Juanma Barranquero <lekktu@gmail.com>
82
83 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
84 Wording by Drew Adams <drew.adams@oracle.com>.
85
aa1859f5
J
862010-08-01 Jan Djärv <jan.h.d@swipnet.se>
87
88 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
89 ttip_lbl.
90
91 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
92 calling gtk_widget_queue_draw.
93 (x_free_frame_resources): Call xg_free_frame_widgets.
94
95 * xfns.c (x_gtk_use_system_tooltips): New variable.
96 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
97 new gtkutil tooltip functions to show the tooltip.
98 (Fx_hide_tip): Call xg_hide_tooltip.
99 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
100
101 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
102 (xg_show_tooltip, xg_hide_tooltip): Declare.
103
104 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
105 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
106 New functions.
aa1859f5
J
107 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
108 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
109 Remove code that is commented out.
110
76417ef4
SM
1112010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
112
113 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
114
16041401
CY
1152010-07-31 Chong Yidong <cyd@stupidchicken.com>
116
117 * xselect.c (x_own_selection): Use list4.
118
2c09a58f
DN
1192010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
120
121 * buffer.c (Qwindow): Do not define, already defined in data.c.
122 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
123
59df9fdd 1242010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 125
59df9fdd
JB
126 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
127 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
128 * config.in: Undef HAVE_DIRENT_H.
1c97e857 129 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 130 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 131
1b231651
DN
1322010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
133
134 Rename s/usg5-4.h -> s/usg5-4-common.h.
135 * s/usg5-4.h: Rename file to ...
136 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
137 * s/unixware.h:
138 * s/sol2-6.h:
139 * s/irix6-5.h: Update includes accordingly.
140
bfeabdc3
JD
1412010-07-29 Jan Djärv <jan.h.d@swipnet.se>
142
2ebf1083
J
143 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
144
bfeabdc3 145 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
146 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
147 Remove toolbar_height.
148 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
149 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
150 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
151 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
152
153 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
154
155 * xfns.c (x_set_tool_bar_position): New function.
156 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
157 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 158 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
159
160 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
161 and FRAME_TOOLBAR_LEFT_WIDTH.
162
163 * gtkutil.h (xg_change_toolbar_position): Declare.
164
165 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
166 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
167 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
168 (xg_create_frame_widgets): Create a hobox for placing widgets
169 vertically. Use gtk_box_pack_start.
170 (xg_height_or_width_changed): Renamed from xg_height_changed.
171 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
172 (xg_update_frame_menubar, free_frame_menubar): Change to
173 xg_height_or_width_changed.
174 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
175 size correctly. Remove hardcoded 4, instead use handlebox size -
176 toolbar size.
177 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 178 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
179 (xg_pack_tool_bar): POS is a new parameter.
180 Set orientation of tool bar based on pos.
181 Only make handlebox_widget if NULL.
182 Check if tool bar goes to vbox or hbox depending on pos.
183 (xg_update_tool_bar_sizes): New function.
184 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
185 height, call xg_update_tool_bar_sizes instead.
186 (free_frame_tool_bar): Remove from hbox or vbox depending on
187 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
188 (xg_change_toolbar_position): New function.
189
190 * frame.h (struct frame): Add tool_bar_position.
191 (Qbottom): Declare.
192
193 * frame.c (Qtool_bar_position): New variable.
194 (make_frame): Set tool_bar_position to Qtop.
195 (frame_parms): Add tool-bar-position.
196 (x_report_frame_params): Store tool_bar_position.
197 (x_set_fringe_width): Reset wm size hint after fringe changes.
198
26469a38
DN
1992010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
200
201 Make lisp_time_argument declaration work on all systems.
202 * lisp.h (lisp_time_argument): Move declaration ...
203 * systime.h (lisp_time_argument): ... here
204 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
205
8848b728
JD
2062010-07-29 Jan Djärv <jan.h.d@swipnet.se>
207
208 * vm-limit.c (POINTER): Add typedef for it.
209 (start_of_data): Change return type from POINTER to char *.
210
211 * frame.h (Qtty_color_mode): Move declaration out of ifdef
212 HAVE_WINDOW_SYSTEM.
213
76fd1ee9
DN
2142010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
215
0441987e
DN
216 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
217 Remove reference to __osf__, unused.
218
56a000c7
DN
219 * mem-limits.h: Remove duplicated includes.
220 (NULL): Remove definition, unused.
221 (POINTER): Remove definition.
222 (start_of_data): Use char* in prototype, as the function
223 definition does.
224
e6cba650
DN
225 Remove extern declarations from .c files, and them to .h files.
226 * keyboard.h (Qhelp_echo, waiting_for_input)
227 (input_available_clear_time, ignore_mouse_drag_p)
228 (Vdouble_click_time, real_this_command, Vthis_original_command):
229 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
230 (Voverriding_local_map_menu_flag):
231 * lisp.h (Qinteractive_form, use_file_dialog)
232 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
233 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
234 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
235 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
236 (Qfunction, debug_on_next_call, Qfield)
237 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
238 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
239 (Qfile_directory_p, Qinsert_file_contents)
240 (Qcompletion_ignore_case, Qcompletion_ignore_case)
241 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
242 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
243 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
244 (Qminibuffer_prompt)
245 (Vtemporary_file_directory,char_ins_del_vector, Qface):
246 * xterm.h (gray_bitmap_width, gray_bitmap_height)
247 (gray_bitmap_bits, xic_create_fontsetname):
248 * coding.h (Vtranslation_table_for_input): Add extern declarations.
249
250 * xsmfns.c (Vuser_login_name):
251 * xrdb.c (Vdouble_click_time):
252 * xfaces.c (xic_create_fontsetname):
253 * w32select.c (waiting_for_input):
254 * print.c (minibuffer_auto_raise):
255 * msdos.c (Qhelp_echo):
256 * macros.c (real_this_command):
257 * keymap.c (Voverriding_local_map):
258 * xterm.c (poll_for_input_1, gray_bitmap_width)
259 (gray_bitmap_height, gray_bitmap_bits;
260 * xmenu.c ( Voverriding_local_map)
261 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
262 (use_file_dialog, Xt_app_con):
263 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
264 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
265 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
266 (Qtool_bar_lines, ignore_mouse_drag_p):
267 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
268 (Qrear_nonsticky, nconc2):
269 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
270 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
271 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
272 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
273 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
274 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
275 (gc_in_progress):
276 * doc.c (Voverriding_local_map, Qremap):
277 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
278 (Vcompletion_regexp_list):
279 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
280 (Qcompletion_ignore_case):
281 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
282 (Vhistory_length, Vthis_original_command, real_this_command)
283 (Qface, Qminibuffer_prompt, history_delete_duplicates):
284 * image.c (Qrisky_local_variable):
285 * fontset.c (QCname):
286 * fns.c (minibuffer_auto_raise, QCname):
287 * dispnew.c (char_ins_del_cost):
288 * composite.c (font_fill_lglyph_metrics):
289 * cmds.c (Qface, Vtranslation_table_for_input):
290 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
291 * ccl.c (charset_unicode):
292 * callproc.c (Vtemporary_file_directory):
293 * buffer.c (emacs_strerror): Remove extern declarations.
294
295 * data.c (Qwindow): Make non-static, used from other files too.
296 * frame.c (validate_x_resource_name): Remove shadow definition for i.
297
76fd1ee9
DN
298 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
299 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
300 * s/usg5-4.h (COFF):
301 * s/template.h:
302 * s/msdos.h (COFF, NO_REMAP):
303 * s/ms-w32.h (NO_REMAP):
304 * s/hpux10-20.h (NO_REMAP):
305 * m/sparc.h (SEGMENT_MASK):
306 * m/m68k.h (NO_REMAP):
307 * m/intel386.h (SEGMENT_MASK):
308 * m/arm.h (NO_REMAP):
309 * m/alpha.h (COFF):
310 * m/template.h: Remove references to unused defines.
311
8a52f00a
JD
3122010-07-28 Jan Djärv <jan.h.d@swipnet.se>
313
314 * xsettings.c (Ftool_bar_get_system_style): Also check for
315 Qtext_image_horiz.
316
317 * xdisp.c (Qtext_image_horiz): Define.
318 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 319 to documentation of tool-bar-style.
8a52f00a
JD
320
321 * lisp.h (Qtext_image_horiz): Declare.
322
323 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
324 style text_image_horiz.
325
89dc303e
DN
3262010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
327
60799703
DN
328 * emacs.c (Fkill_emacs): Remove return statement.
329
37254dc1
DN
330 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
331 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
332 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
333 local extern declarations.
334
71c7345a
DN
335 * xmenu.c: Do not included lwlib.h, not needed.
336
6ba577cb
DN
337 * m/iris4d.h (XUINT, XSET): Remove, not needed.
338
fdb183d6
DN
339 * process.c: Move definitions earlier to minimize #ifdefs.
340
341 * xterm.h (x_get_customization_string, x_load_resources)
342 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
343 (x_check_errors, x_property_data_to_lisp, defined_color)
344 (xic_set_xfontset, x_defined_color): Use const.
345
346 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
347 (x_text_icon, x_check_errors, x_connection_closed): Use const.
348
349 * xselect.c (selection_data_to_lisp_data)
350 (x_property_data_to_lisp):
351 * xrdb.c (x_get_string_resource, file_p)
352 (x_get_customization_string, magic_file_p, search_magic_path)
353 (get_system_app, get_user_app, x_load_resources, x_get_resource)
354 (x_get_string_resource): Use const.
355
356 * xfns.c: Include xlwmenu.h when USE_LUCID.
357 (x_defined_color, xic_set_xfontset): Use const.
358 (Fx_hide_tip): Remove local extern declaration.
359
360 * xfaces.c (Qmouse_face): Remove declaration.
361 (face_color_gray_p, tty_defined_color, defined_color)
362 (face_color_gray_p, face_color_supported_p). Add const.
363
364 * xdisp.c (do_mouse_tracking): Remove declaration.
365 (add_to_log): Use const.
366
367 * minibuf.c (Qmouse_face): Remove declaration.
368
369 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
370
371 * keyboard.h (do_mouse_tracking): Add declaration.
372
373 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
374 (QCdata, QCtype, Qcenter): Remove declarations.
375
376 * frame.c (x_get_resource_string, x_get_string_resource)
377 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
378 (x_default_parameter): Use const.
379
380 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
381 (QCheight, QCsize, QCname): Remove declarations.
382
383 * emacs.c (main): Remove local extern declaration.
384
385 * editfns.c (region_limit, syms_of_editfns): Remove local extern
386 declarations.
387
388 * dispnew.c: Remove duplicate #include <unistd.h>.
389 (update_window, update_frame_1, init_display): Remove local extern
390 declarations.
391
392 * dispextern.h (add_to_log): Remove declaration.
393 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
394 (x_frame_get_and_record_arg, x_default_parameter): Add const.
395
396 * dired.c (scmp): Add const.
397 (directory_files_internal): Remove local extern declaration.
398
399 * data.c (Finteractive_form): Use const.
400
401 * composite.c (syms_of_composite): Remove local extern declarations.
402
403 * charset.c (add_to_log): Remove declaration.
404
405 * character.c (strwidth, parse_str_to_multibyte): Add const.
406
407 * character.h (strwidth, parse_str_to_multibyte): Likewise.
408
409 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
410
89dc303e 411 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
412 (Lisp_Subr): Make doc and intspec constant.
413 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
414 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
415 (QCheight, QCsize, QCname, QCwidth, QCforeground)
416 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
417 (display_arg): Add declarations.
89dc303e 418
0ed082fe 4192010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
420
421 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
422
0ed082fe
JB
423 * window.c (Fwindow_height): Doc fix (bug#6518).
424
4252010-07-27 Juanma Barranquero <lekktu@gmail.com>
426
427 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
428
ccaf0336
DN
4292010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
430
977105dc
DN
431 * keyboard.c (Ftop_level, Fexit_recursive_edit)
432 (Fabort_recursive_edit): Remove return statements in NO_RETURN
433 functions.
434
f5ada890
DN
435 * frame.h (Qtty_color_mode): Add declaration.
436
ccaf0336
DN
437 * lisp.h (Ftop_level, Fexit_recursive_edit)
438 (Fabort_recursive_edit): Mark as NO_RETURN.
439
dfe3c90f
KH
4402010-07-26 Kenichi Handa <handa@m17n.org>
441
442 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 443 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 444
7d383292
JB
4452010-07-26 Juanma Barranquero <lekktu@gmail.com>
446
447 * lread.c (unreadpure, mapatoms_1): Make static.
448
da31e629
JB
4492010-07-25 Juanma Barranquero <lekktu@gmail.com>
450
451 * terminfo.c (tparam): Fix prototype of tparm.
452
7bfa6d77
AS
4532010-07-25 Andreas Schwab <schwab@linux-m68k.org>
454
dcc19aac
AS
455 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
456 find start of text segment.
457 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
458 is defined.
459
7bfa6d77
AS
460 * callproc.c (set_initial_environment): Avoid unbalanced braces.
461
63f9a672
KB
4622010-07-25 Ken Brown <kbrown@cornell.edu>
463
464 * vm-limit.c (check_memory_limits): Fix previous change;
465 accidentally reverted an earlier change.
466
24933075
KB
4672010-07-25 Ken Brown <kbrown@cornell.edu>
468
469 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
470 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
471
361358ea
JB
4722010-07-25 Juanma Barranquero <lekktu@gmail.com>
473
474 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
475 * dired.c (opendir, readdir): Fix prototypes.
476 * editfns.c (w32_get_internal_run_time): Fix prototypes.
477 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
478 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
479 (telldir): Remove declaration.
480 * ralloc.c (real_morecore, __morecore): Fix prototypes.
481 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
482 * syssignal.h (strsignal): Fix prototype.
483 * term.c (tparam): Fix prototype.
484 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
485 (term_get_fkeys): Set inside "#ifndef DOS_NT".
486 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
487 and __morecore.
488 * w32gui.h (XParseGeometry): Fix prototype.
489 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
490 * w32term.c (my_set_focus): Declare inside #if 0.
491 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
492 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
493 (drain_message_queue, get_next_msg, post_msg, parse_button)
494 (ClipboardSequence_Proc): Fix prototypes.
495 (wait_for_sync): Remove declaration.
496
630b9592
JB
4972010-07-24 Juanma Barranquero <lekktu@gmail.com>
498
499 * w32fns.c (w32_to_x_color): Remove, unused.
500
6a0d6611
AS
5012010-07-24 Andreas Schwab <schwab@linux-m68k.org>
502
503 * lisp.h: Remove leftover P_.
504
4e8608ff
DN
5052010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
506
507 * ecrt0.c, unexalpha.c: Remove files, unused.
508
c8197983
AS
5092010-07-24 Andreas Schwab <schwab@linux-m68k.org>
510
511 * cmds.c (internal_self_insert): Make static.
512 * lisp.h (internal_self_insert): Remove declaration.
513
97b372d7
JB
5142010-07-23 Juanma Barranquero <lekktu@gmail.com>
515
33ac0414
JB
516 * alloc.c (free_float):
517 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
518 * frame.c (delete_frame_handler):
519 * ralloc.c (reorder_bloc):
520 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
521 Remove unused static functions.
522
94da8397
JB
523 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
524 it is called only from NS code.
525
2e6c8532
JB
526 * w32term.c (my_set_focus): #ifdef away; it is called only from
527 "#ifdef 0" code.
528
97b372d7
JB
529 * w32fns.c (x_edge_detection):
530 * xfaces.c (may_use_scalable_font_p):
531 Remove obsolete static declarations.
532
7c3320d8
JB
5332010-07-20 Juanma Barranquero <lekktu@gmail.com>
534
535 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
536 (emacs_blocked_realloc, uninterrupt_malloc):
537 * fringe.c (w32_reset_fringes):
538 * image.c (convert_mono_to_color_image, lookup_rgb_color)
539 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
540 * sound.c (be2hs, do_play_sound):
541 * vm-limit.c (get_lim_data, ret_lim_data):
542 * w32term.c (x_free_frame_resources):
543 * xfaces.c (x_create_gc, x_free_gc):
544 Convert definitions to standard C.
545
d5273788
SM
5462010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
547
548 * eval.c (Feval, Ffuncall): Use the new names.
549
550 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
551 (DEFUN): Add braces around the union initialisation and use ## to
552 specify the right union alternative and avoid a cast.
553
8d16a259
JB
5542010-07-18 Juanma Barranquero <lekktu@gmail.com>
555
556 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
557
3b8eff32
CY
5582010-07-17 Chong Yidong <cyd@stupidchicken.com>
559
560 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
561
499322ce
J
5622010-07-17 Jan Djärv <jan.h.d@swipnet.se>
563
564 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
565 is related to the menu bar (Bug#6499).
a628ad9d 566 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 567
f6003da5 5682010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
569
570 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
571
572 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
573
574 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
575 i.e. don't put back ButtonRelease (Bug#6608).
576
577 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
578 instead of Window. Call xg_event_is_for_menubar when
579 USE_GTK (Bug#6499).
580
581 * gtkutil.h (xg_event_is_for_menubar): Declare.
582
583 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
584
f6003da5 5852010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
586
587 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
588 when it's the same as the old foreground. (Bug#6609)
589
23243f29
J
5902010-07-16 Jan Djärv <jan.h.d@swipnet.se>
591
592 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
593 widget is non-null (Bug#6645).
594
2b23d2a6
AS
5952010-07-15 Andreas Schwab <schwab@linux-m68k.org>
596
01b564ff
AS
597 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
598 Convert old-style definition.
599
2b23d2a6
AS
600 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
601 timestamp argument.
602
c4affd2c
EZ
6032010-07-15 Eli Zaretskii <eliz@gnu.org>
604
605 * fringe.c (update_window_fringes): Restore mistakenly reverted
606 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
607
cf28cebc
J
6082010-07-14 Jan Djärv <jan.h.d@swipnet.se>
609
610 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
611 (SET_SAVED_KEY_EVENT): Remove (not used).
612 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
613 remove size parameter.
614 (handle_one_xevent): Check popup_activated () for menu for Xt also.
615 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
616 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
617 ButtonRelease.
6b2c4bd9
J
618 (x_set_window_size_1): scroll_bar_actual_width is always
619 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
620
621 * xdisp.c (pending_menu_activation): Remove extern declaration.
622 (prepare_menu_bars): Remove setting of pending_menu_activation.
623
624 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
625 (x_activate_menubar): Set popup_activated_flag for Xt also.
626 Remove setting of pending_menu_activation.
cf28cebc
J
627 (set_frame_menubar): Remove check of pending_menu_activation.
628 Declare menubar_size before code. Correct spelling in comment.
629
f6c1c771
KH
6302010-07-14 Kenichi Handa <handa@m17n.org>
631
632 * font.c (font_open_entity): Cancel previous change.
633 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
634
20477505
EZ
6352010-07-13 Eli Zaretskii <eliz@gnu.org>
636
77defa9a
EZ
637 Remove subprocesses #ifdefs.
638 * process.c <inhibit_sentinels>: Move to the common part.
639 (Fwaiting_for_user_input_p): Move to the common part; return nil
640 if async subprocesses aren't supported.
641 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
642 MS-DOS. Remove "#ifdef subprocesses".
643 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
644 (gettimeofday): Remove "#ifdef subprocesses".
645 (wait_without_blocking): Remove function.
646 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
647 Remove "#ifdef subprocesses".
648 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
649 compiled on MS-DOS.
650 * callproc.c (Fcall_process) [!MSDOS]: Don't call
651 wait_for_termination on MS-DOS.
652 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
653 initialization of inhibit_sentinels.
654 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
655 subprocesses" conditional.
656 * callproc.c (Fcall_process) [!subprocesses]: Don't call
657 wait_for_termination, since `buffer' cannot be an integer when
658 async subprocesses are not supported
659 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
660 for ifdefing away the call to Fprocess_status.
661
20477505
EZ
662 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
663 away the entire body of the function.
664
b3ffc17c
DN
6652010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
666
01faa934
DN
667 Remove subprocesses #ifdefs from term.c.
668 * process.c (add_keyboard_wait_descriptor)
669 (delete_keyboard_wait_descriptor): Move to common section, do
670 nothing when subprocesses is not defined.
a628ad9d
JB
671 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
672 Remove subprocesses #ifdefs.
01faa934 673
b3ffc17c
DN
674 Convert maybe_fatal to standard C.
675 * lisp.h (verror): Declare.
676 * eval.c (verror): New function containing the code from ...
677 (error): ... this. Call verror.
678 * term.c (vfatal): New function containing the code from ...
679 (fatal): ... this. Call vfatal.
680 (maybe_fatal): Convert to standard C, use variable number of
681 arguments. Declare as non-return.
682 (init_tty): Fix maybe_fatal call.
683
0521f580
DN
6842010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
685
686 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
687 (_scroll_bar_note_movement): Convert definitions to standard C.
688 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
689 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
690
ebd15611
DN
6912010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
692
693 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
694 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
695 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
696 (xaw_jump_callback, xaw_scroll_callback)
697 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
698 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
699 definitions to standard C.
700 * xmenu.c (menubar_id_to_frame, popup_get_selection)
701 (popup_activate_callback, popup_deactivate_callback)
702 (menu_highlight_callback, menubar_selection_callback)
703 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
704 (free_frame_menubar, popup_selection_callback, as)
705 (create_and_show_popup_menu, dialog_selection_callback)
706 (create_and_show_dialog):
707 * xfns.c (hack_wm_protocols, x_window):
708 * xfaces.c (x_update_menu_appearance):
709 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
710 (char_to_pixel_size, round_size_to_char, get_wm_shell)
711 (set_frame_size, update_wm_hints, setup_frame_gcs)
712 (update_various_frame_slots, update_from_various_frame_slots)
713 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
714 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
715 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
716
de06a2dd
AS
7172010-07-12 Andreas Schwab <schwab@linux-m68k.org>
718
a628ad9d 719 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 720
fc549af9
EZ
7212010-07-12 Eli Zaretskii <eliz@gnu.org>
722
723 * process.c (setup_process_coding_systems): Move to the part
724 shared by non-subprocesses systems, and make its body empty when
725 subprocesses is not defined.
726 (close_process_descs): Move to the part shared by non-subprocesses
727 systems.
1408902e
EZ
728 (wait_reading_process_output) [!subprocesses]: Convert arg list to
729 ANSI C.
fc549af9 730
d5a3eaaf
AS
7312010-07-12 Andreas Schwab <schwab@linux-m68k.org>
732
733 * editfns.c (transpose_markers): Convert old-style definition.
734 * emacs.c (abort, shut_down_emacs, fixup_locale)
735 (synchronize_system_time_locale)
736 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
737 * floatfns.c (extract_float, matherr, init_floatfns)
738 (syms_of_floatfns): Likewise.
739 * fns.c (make_hash_table): Likewise.
740 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
741 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
742 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
743 (ftfont_variation_glyphs): Likewise.
744 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
745 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
746 * lread.c (read_filtered_event): Likewise.
747 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
748 * process.c (wait_reading_process_output): Likewise.
749 * scroll.c (do_line_insertion_deletion_costs): Likewise.
750 * search.c (search_buffer, boyer_moore): Likewise.
751 * syntax.c (scan_sexps_forward): Likewise.
752 * xdisp.c (try_scrolling): Likewise.
753 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
754 (face_at_string_position): Likewise.
755 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
756 * xselect.c (x_get_window_property, receive_incremental_selection)
757 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
758 Likewise.
759 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
760
6f704c76
DN
7612010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
762
ded80a25
DN
763 * callproc.c (child_setup): Remove subprocesses conditional.
764 Remove code dealing with SET_EMACS_PRIORITY, unused.
765
49d937f4 766 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
767 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
768
769 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
770 (__do_global_dtors, __main): Use void in definition.
771 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
772 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
773 the only users from ...
774 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
775 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
776 (HAVE_VOLATILE): Remove, unused.
777
6f704c76
DN
778 Convert more function definitions to standard C.
779 * xdisp.c (window_box_edges, handle_single_display_spec)
780 (display_string): Convert definition to standard C.
781 * scroll.c (do_direct_scrolling, scrolling_1):
782 * dispnew.c (allocate_matrices_for_frame_redisplay)
783 (mirrored_line_dance):
784 * coding.c (code_convert_string):
785 * charset.c (map_charset_chars):
786 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
787 (Fregister_ccl_program, Fregister_code_conversion_map):
788 * keyboard.c (kbd_buffer_nr_stored): Likewise.
789 (head_table): Make static and const.
790
e6cfa7c3
AS
7912010-07-12 Andreas Schwab <schwab@linux-m68k.org>
792
793 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
794 (PROFILING_LDFLAGS): Set from substitution.
795 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
796 CFLAGS last.
797
892dd565
KH
7982010-07-12 Kenichi Handa <handa@m17n.org>
799
6f2cdcd1
KH
800 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
801 (shortlisp): Likewise.
802
892dd565
KH
803 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
804
805 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
806 of FONT_ENTITY_INDEX.
807 (Ffont_get): If KEY is :otf and the font-object doesn't have the
808 property, get the property value dynamically.
809 (Ffont_put): Accept font-entity and font-object too.
810 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
811 return value changed.
812 (syms_of_font): Adjusted for the above change.
813
ae96d47a
AS
8142010-07-11 Andreas Schwab <schwab@linux-m68k.org>
815
c8fc18ee
AS
816 * blockinput.h: Remove obsolete comment.
817
89887d67
AS
818 * lisp.h: Include <stddef.h>.
819 (OFFSETOF): Don't define.
820 (VECSIZE): Use offsetof instead of OFFSETOF.
821 (PSEUDOVECSIZE): Likewise.
822 * process.c (conv_sockaddr_to_lisp): Likewise.
823 * alloc.c: Don't include <stddef.h>.
824 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
825
ae96d47a
AS
826 * process.c: Remove obsolete comment.
827
635c0aa1
CY
8282010-07-11 Chong Yidong <cyd@stupidchicken.com>
829
830 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
831
a64df650
AS
8322010-07-11 Andreas Schwab <schwab@linux-m68k.org>
833
8966b757
AS
834 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
835 index, rindex.
836 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
837 * editfns.c (Fuser_full_name, Fformat): Likewise.
838 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
839 * fileio.c (Ffile_symlink_p): Likewise.
840 * filelock.c (current_lock_owner): Likewise.
841 * font.c (font_parse_name, font_parse_family_registry): Likewise.
842 * fontset.c (fontset_pattern_regexp): Likewise.
843 * lread.c (read1): Likewise.
844 * sysdep.c (init_system_name): Likewise.
845 * xfns.c (select_visual): Likewise.
846 * s/hpux10-20.h (index, rindex): Don't define.
847 * s/ms-w32.h (index): Likewise.
848 * s/usg5-4.h: Likewise.
849
cf237e27
AS
850 * callproc.c (relocate_fd): Use F_DUPFD if defined.
851
a8fe7202
AS
852 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
853 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
854 (egetenv): Likewise.
855 * doprnt.c (doprnt): Likewise.
856 * editfns.c (set_time_zone_rule, format2): Likewise.
857 * emacs.c (decode_env_path): Likewise.
858 * eval.c (signal_error, error): Likewise.
859 * insdel.c (replace_range_2): Likewise.
860 * keyboard.c (cmd_error_internal): Likewise.
861 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
862 * print.c (write_string, write_string_1, print_error_message):
863 Likewise.
864 * vm-limit.c (warn_function, memory_warnings): Likewise.
865 * xdisp.c (message1, message1_nolog, message_with_string)
866 (vmessage, message, message_nolog): Likewise.
867 * emacs.c: Remove duplicate declaration.
868 * keyboard.h: Likewise.
869 * lisp.h: Update prototypes.
870
bb8e180f
AS
871 * eval.c: Fix indentation problem.
872
83380e65
AS
873 * keyboard.c: Include "process.h"
874
a64df650
AS
875 * eval.c: Remove obsolete noinline declaration.
876 * fns.c: Likewise.
877
6a8033e1
KR
8782010-07-11 Ken Raeburn <raeburn@raeburn.org>
879
880 * doprnt.c (doprnt): Take a va_list argument instead of count and
881 pointer.
882 * eval.c (error): Change to a standard-C variadic function.
883 * xdisp.c (vmessage): Renamed from message, made static, and
884 changed to take a va_list argument.
885 (message): New variadic wrapper.
886 (message_nolog): Now a variadic function, calling vmessage.
887 * lisp.h: Include stdarg.h for va_list.
888 (doprnt, error, message, message_nolog): Decls updated.
889
462aa963
EZ
8902010-07-11 Eli Zaretskii <eliz@gnu.org>
891
892 * process.c (syms_of_process) <delete-exited-processes>: Define
893 even if !subprocesses.
894 (delete_exited_processes): Ditto.
895
896 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
897 (delete_exited_processes): Don't define.
898
48104462
CY
8992010-07-10 Chong Yidong <cyd@stupidchicken.com>
900
901 * frame.c (make_frame): Initialize menu_bar_lines and
902 tool_bar_lines members.
903 (make_initial_frame, make_terminal_frame): Initialize
904 menu_bar_lines using value of menu-bar-mode.
905
906 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
907
f388c88a
EZ
9082010-07-10 Eli Zaretskii <eliz@gnu.org>
909
910 * process.c: Reshuffle #include's. Condition some of the global
911 and static variables on `subprocesses'.
912 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
913 Leave only one implementation.
914 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
915 (kill_buffer_processes, Flist_system_processes)
916 (Fprocess_attributes, init_process, syms_of_process): Unify the
917 implementations for with subprocesses and without them.
918
723f5a07
J
9192010-07-09 Jan Djärv <jan.h.d@swipnet.se>
920
921 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
922 correct size for Motif.
923 (free_frame_menubar): Call x_set_window_size to update frame size.
924
925 * xfns.c (x_window): Set borderWidth to 0 for pane and
926 EmacsFrame. Frame size calculation is wrong otherwise.
927
2536a4b7
MA
9282010-07-09 Michael Albinus <michael.albinus@gmx.de>
929
930 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
931 allows to suppress errors when polling in Emacs' main loop.
932 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
933 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
934 (Fdbus_method_error_internal, Fdbus_send_signal)
935 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
936 (Fdbus_register_method): Use it. (Bug#6579)
937
5842a27b
DN
9382010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
939
940 * alloc.c: Convert DEFUNs to standard C.
941 * buffer.c:
942 * bytecode.c:
943 * callint.c:
944 * callproc.c:
945 * casefiddle.c:
946 * casetab.c:
947 * category.c:
948 * character.c:
949 * charset.c:
950 * chartab.c:
951 * cmds.c:
952 * coding.c:
953 * composite.c:
954 * data.c:
955 * dbusbind.c:
956 * dired.c:
957 * dispnew.c:
958 * doc.c:
959 * dosfns.c:
960 * editfns.c:
961 * emacs.c:
962 * eval.c:
963 * fileio.c:
964 * filelock.c:
965 * floatfns.c:
966 * fns.c:
967 * font.c:
968 * fontset.c:
969 * frame.c:
970 * fringe.c:
971 * image.c:
972 * indent.c:
973 * insdel.c:
974 * keyboard.c:
975 * keymap.c:
976 * lread.c:
977 * macros.c:
978 * marker.c:
979 * menu.c:
980 * minibuf.c:
981 * msdos.c:
982 * nsfns.m:
983 * nsmenu.m:
984 * nsselect.m:
985 * print.c:
986 * process.c:
987 * search.c:
988 * sound.c:
989 * syntax.c:
990 * term.c:
991 * terminal.c:
992 * textprop.c:
993 * undo.c:
994 * w16select.c:
995 * w32console.c:
996 * w32fns.c:
997 * w32font.c:
998 * w32menu.c:
999 * w32proc.c:
1000 * w32select.c:
1001 * window.c:
1002 * xdisp.c:
1003 * xfaces.c:
1004 * xfns.c:
1005 * xmenu.c:
1006 * xselect.c:
1007 * xsettings.c:
1008 * xsmfns.c: Likewise.
1009
d568829b
EZ
10102010-07-08 Eli Zaretskii <eliz@gnu.org>
1011
1012 * process.c (kbd_is_on_hold, hold_keyboard_input)
1013 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
1014
52214050
J
10152010-07-08 Jan Djärv <jan.h.d@swipnet.se>
1016
1017 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
1018 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
1019 unless USE_LUCID.
1020
313d9eb2
DN
10212010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1022
a628ad9d
JB
1023 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
1024 declaration.
d8825aa3 1025
295d0d8f
DN
1026 Clean up include guards.
1027 * tparam.c: Remove include guards for config.h, string.h and code
1028 that assumes #ifndef emacs.
1029 * termcap.c:
1030 * unexalpha.c:
1031 * sysdep.c:
1032 * filemode.c:
1033 * filelock.c:
1034 * bidi.c: Likewise.
1035
49d9e6b0
DN
1036 Remove prefix-args.c
1037 * prefix-args.c: Remove file.
1038 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
1039 * Makefile.in (temacs${EXEEXT}): Remove references to
1040 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
1041 (mostlyclean): Remove reference to prefix-args.
1042 (prefix-args): Remove.
1043
313d9eb2
DN
1044 Simplify cstart_of_data, start_of_code and related code.
1045 * mem-limits.h: Remove !emacs and _LIBC conditional code.
1046 (start_of_data): Merge into start_of_data function.
1047 * sysdep.c (start_of_text): Remove. Move simplified versions of
1048 it in the only users: unexaix.c and unexec.c.
1049 (read_input_waiting): Remove local declaration of quit_char.
1050 (start, etext): Remove declarations.
1051 (start_of_data): Merge with the version in mem-limits.h and move
1052 to vm-limits.c.
1053 * vm-limit.c (start_of_data): Merged and simplified version of the
1054 code formerly in mem-limits.h and sysdep.c.
1055 * unexec.c (start): New declaration, moved from sysdep.c.
1056 (start_of_text): Simplified version of the code formerly in sysdep.c.
1057 * unexaix.c (start_of_text): Simplified version of the code
1058 formerly in sysdep.c.
1059 * m/alpha.h (HAVE_TEXT_START): Remove.
1060 (TEXT_START): Move ...
1061 * unexalpha.c (TEXT_START): ... here.
1062 * s/hpux10-20.h (TEXT_START): Remove.
1063 * s/darwin.h (TEXT_START):
1064 * m/mips.h (TEXT_START):
1065 * m/macppc.h (HAVE_TEXT_START):
1066 * m/m68k.h (TEXT_START):
1067 * m/iris4d.h (TEXT_START):
1068 * m/intel386.h (TEXT_START):
1069 * m/ibmrs6000.h (TEXT_START):
1070 * m/ia64.h (HAVE_TEXT_START):
1071 * s/msdos.h (TEXT_START): Likewise.
1072
72af86bd
AS
10732010-07-07 Andreas Schwab <schwab@linux-m68k.org>
1074
1075 * alloc.c (overrun_check_malloc, overrun_check_realloc)
1076 (overrun_check_free, xstrdup, allocate_string)
1077 (allocate_string_data, compact_small_strings, Fmake_string)
1078 (make_unibyte_string, make_multibyte_string)
1079 (make_string_from_bytes, make_specified_string, make_float)
1080 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
1081 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
1082 memcpy, memmove, memset, memcmp.
1083 * atimer.c (start_atimer, set_alarm): Likewise.
1084 * buffer.c (clone_per_buffer_values, report_overlay_modification)
1085 (mmap_realloc, init_buffer_once): Likewise.
1086 * callint.c (Fcall_interactively): Likewise.
1087 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
1088 (getenv_internal_1): Likewise.
1089 * casefiddle.c (casify_object): Likewise.
1090 * ccl.c (ccl_driver): Likewise.
1091 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
1092 * charset.c (load_charset_map_from_file)
1093 (load_charset_map_from_file, load_charset_map_from_vector)
1094 (Fdefine_charset_internal): Likewise.
1095 * cm.c (Wcm_clear): Likewise.
1096 * coding.c (decode_eol, decode_coding_object)
1097 (Fset_coding_system_priority, make_subsidiaries): Likewise.
1098 * data.c (Faset): Likewise.
1099 * dired.c (directory_files_internal, file_name_completion_stat):
1100 Likewise.
1101 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
1102 (clear_glyph_row, copy_row_except_pointers)
1103 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
1104 (save_current_matrix, restore_current_matrix)
1105 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
1106 (mirror_line_dance, scrolling_window): Likewise.
1107 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
1108 Likewise.
1109 * doprnt.c (doprnt): Likewise.
1110 * editfns.c (Fuser_full_name, make_buffer_string_both)
1111 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
1112 * emacs.c (sort_args): Likewise.
1113 * eval.c (Fapply, Ffuncall): Likewise.
1114 * fileio.c (Ffile_name_directory, make_temp_name)
1115 (Fexpand_file_name, search_embedded_absfilename)
1116 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
1117 (auto_save_error): Likewise.
1118 * fns.c (Fstring_equal, Fcopy_sequence, concat)
1119 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
1120 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
1121 (Fmake_hash_table): Likewise.
1122 * fringe.c (Fdefine_fringe_bitmap): Likewise.
1123 * ftfont.c (ftfont_text_extents): Likewise.
1124 * getloadavg.c (getloadavg): Likewise.
1125 * image.c (define_image_type, make_image, make_image_cache)
1126 (x_create_x_image_and_pixmap, xbm_image_p)
1127 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
1128 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
1129 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
1130 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
1131 (tiff_image_p, tiff_read_from_memory, gif_image_p)
1132 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
1133 Likewise.
1134 * indent.c (scan_for_column, compute_motion): Likewise.
1135 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
1136 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
1137 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
1138 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
1139 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
1140 (store_user_signal_events, menu_bar_items, tool_bar_items)
1141 (process_tool_bar_item, append_tool_bar_item)
1142 (read_char_minibuf_menu_prompt, read_key_sequence)
1143 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
1144 Likewise.
1145 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
1146 Likewise.
1147 * lisp.h (STRING_COPYIN): Likewise.
1148 * lread.c (Fload, read1, oblookup): Likewise.
1149 * msdos.c (Frecent_doskeys): Likewise.
1150 * nsfns.m (Fx_create_frame): Likewise.
1151 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
1152 Likewise.
1153 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
1154 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
1155 Likewise.
1156 * nsmenu.m (ns_update_menubar): Likewise.
1157 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
1158 * print.c (print_unwind, printchar, strout, print_string)
1159 (print_error_message): Likewise.
1160 * process.c (conv_lisp_to_sockaddr, set_socket_option)
1161 (Fmake_network_process, Fnetwork_interface_list)
1162 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
1163 (init_process): Likewise.
1164 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
1165 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
1166 Likewise.
1167 * scroll.c (do_scrolling, do_direct_scrolling)
1168 (scrolling_max_lines_saved): Likewise.
1169 * search.c (search_buffer, wordify, Freplace_match): Likewise.
1170 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
1171 * syntax.c (skip_chars, skip_syntaxes): Likewise.
1172 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
1173 (emacs_set_tty): Likewise.
1174 * term.c (encode_terminal_code, calculate_costs)
1175 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
1176 Likewise.
1177 * termcap.c (tgetst1, gobble_line): Likewise.
1178 * termhooks.h (EVENT_INIT): Likewise.
1179 * tparam.c (tparam1): Likewise.
1180 * unexalpha.c (unexec): Likewise.
1181 * unexec.c (write_segment): Likewise.
1182 * unexmacosx.c (unexec_write_zero): Likewise.
1183 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
1184 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
1185 * w32font.c (w32font_list_family, w32font_text_extents)
1186 (w32font_list_internal, w32font_match_internal)
1187 (w32font_open_internal, compute_metrics, Fx_select_font):
1188 Likewise.
1189 * w32menu.c (set_frame_menubar, add_menu_item)
1190 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
1191 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
1192 * w32uniscribe.c (uniscribe_list_family): Likewise.
1193 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
1194 * window.c (make_window, replace_window, set_window_buffer)
1195 (Fsplit_window): Likewise.
1196 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
1197 (add_to_log, message3, x_consider_frame_title)
1198 (append_space_for_newline, extend_face_to_end_of_line)
1199 (decode_mode_spec_coding, init_glyph_string): Likewise.
1200 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
1201 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
1202 (face_attr_equal_p, make_realized_face, make_face_cache)
1203 (free_realized_faces, lookup_named_face, smaller_face)
1204 (face_with_height, lookup_derived_face)
1205 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
1206 (Finternal_set_font_selection_order, realize_default_face)
1207 (compute_char_face, face_at_buffer_position)
1208 (face_for_overlay_string, face_at_string_position, merge_faces):
1209 Likewise.
1210 * xfns.c (xic_create_fontsetname, Fx_create_frame)
1211 (Fx_window_property, x_create_tip_frame)
1212 (Fx_backspace_delete_keys_p): Likewise.
1213 * xfont.c (xfont_list, xfont_match, xfont_list_family)
1214 (xfont_text_extents): Likewise.
1215 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
1216 * xrdb.c (magic_file_p, x_get_resource): Likewise.
1217 * xselect.c (x_queue_event, x_get_window_property)
1218 (receive_incremental_selection): Likewise.
1219 * xsmfns.c (x_session_check_input): Likewise.
1220 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
1221 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
1222 Likewise.
1223 * character.h (BCOPY_SHORT): Removed.
1224 * config.in: Regenerate.
1225 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
1226 * emacs.c (main) [PROFILING]: Don't declare
1227 dump_opcode_frequencies.
1228 * lisp.h (safe_bcopy): Remove declaration.
1229 (memset) [!HAVE_MEMSET]: Declare.
1230 (memcpy) [!HAVE_MEMCPY]: Likewise.
1231 (memmove) [!HAVE_MEMMOVE]: Likewise.
1232 (memcmp) [!HAVE_MEMCMP]: Likewise.
1233 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
1234 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
1235 Don't define.
1236 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
1237 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
1238 (BCOPY_DOWNWARD_SAFE): Don't define.
1239 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
1240 (memcpy) [!HAVE_MEMCPY]: Define.
1241 (memmove) [!HAVE_MEMMOVE]: Define.
1242 (memcmp) [!HAVE_MEMCMP]: Define.
1243
cb768704
J
12442010-07-07 Jan Djärv <jan.h.d@swipnet.se>
1245
1246 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
1247 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1248 New functions.
cb768704
J
1249 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
1250 select on empty input mask.
1251 (init_process): Initialize kbd_is_on_hold to 0.
1252
1253 * process.h (hold_keyboard_input, unhold_keyboard_input)
1254 (kbd_on_hold_p): Declare.
1255
1256 * keyboard.c (input_available_signal): Declare.
1257 (kbd_buffer_nr_stored): New function.
1258 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
1259 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
1260 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
1261 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
1262 (tty_read_avail_input): If input is on hold, return.
1263 Don't read more that free slots in kbd_buffer (Bug#6571).
1264
3a8ce822
EZ
12652010-07-07 Eli Zaretskii <eliz@gnu.org>
1266
1267 * msdos.h:
1268 * msdos.c:
1269 * dosfns.c:
1270 * w16select.c: Convert function definitions to ANSI C.
1271
a628ad9d
JB
1272 * msdos.h (ctrl_break_func, install_ctrl_break_check):
1273 Remove unused prototypes.
3a8ce822 1274
cf84bb53
JB
12752010-07-07 Juanma Barranquero <lekktu@gmail.com>
1276
1277 * coding.c, sysdep.c: Convert some more functions to standard C.
1278
1a4990fb
JB
12792010-07-07 Juanma Barranquero <lekktu@gmail.com>
1280
1281 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
1282 (encode_coding_object): Use SPECPDL_INDEX.
1283 (syms_of_coding): Use DOS_NT.
1284
c0f2f16b
DN
12852010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
1286
48fb6855
DN
1287 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
1288
c0f2f16b
DN
1289 Make the function member of Lisp_Subr use standard C prototypes.
1290 * lisp.h (struct Lisp_Subr): Use a union for the function member.
1291 (DECL_ALIGN): Add a cast for the function.
1292 * eval.c (Feval, Ffuncall): Use the proper type for each type
1293 function call.
1294
67aecef9
CY
12952010-07-06 Chong Yidong <cyd@stupidchicken.com>
1296
1297 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
1298 fringe face id, so face-remapping-alist works (Bug#6091).
1299
b56ceb92
JB
13002010-07-06 Juanma Barranquero <lekktu@gmail.com>
1301
1302 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
1303 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
1304 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
1305
7af07b96
AS
13062010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1307
1308 * xterm.c (x_get_keysym_name): Change type of parameter to int.
1309 * lisp.h: Declare x_get_keysym_name.
1310 * keyboard.c (modify_event_symbol): Don't declare
1311 x_get_keysym_name here.
1312
69e24e34
DN
13132010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
1314
1315 * ecrt0.c: Revert conversion to standard C.
1316
d3da34e0 13172010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
1318
1319 * vm-limit.c (memory_warnings):
1320 * keyboard.c (modify_event_symbol):
1321 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
1322 (round2, emacs_rint):
1323 * process.c (send_process, old_sigpipe): Convert function
1324 definitions and declarations to standard C.
1325
13262010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
1327
1328 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
1329 * xdisp.c: Convert function definitions to standard C.
1330
1331 * cm.c (cmputc): Arg C is now int, not char.
1332 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
1333
00be444c
J
13342010-07-05 James Cloos <cloos@jhcloos.com>
1335
1336 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
1337
1338 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
1339 _NET_WM_ICON_NAME atoms.
1340
1341 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
1342 and _NET_WM_ICON_NAME properties, too, matching what is
1343 done in the Gtk+ case.
1344
e4c8d29a
J
13452010-07-05 Jan Djärv <jan.h.d@swipnet.se>
1346
ff919460
J
1347 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
1348
e4c8d29a
J
1349 * xsmfns.c (SSDATA): New macro.
1350 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
1351 passed to strlen/strcpy/strcat.
1352 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
1353 7:th arg to XChangeProperty to (unsigned char *)
1354
1355 * xsettings.c (something_changedCB, parse_settings)
1356 (apply_xft_settings): Reformat prototype.
1357 (something_changedCB, init_gconf): Remove unused variable i.
1358 (read_settings): Remove unused variable long_len.
1359
1360 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
1361 (xg_get_image_for_pixmap, create_dialog)
1362 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
1363 (menuitem_highlight_callback, make_menu_item)
1364 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
1365 (xg_create_scroll_bar, xg_update_scrollbar_pos)
1366 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
1367 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
1368 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
1369 (xg_tool_bar_item_expose_callback): Reformat prototype.
1370 (xg_update_menubar): GList *group => GSList *group.
1371 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
1372 before use.
1373 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
1374 to GTK_IMAGE (wimage).
1375
dd4c5104
DN
13762010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
1377
898b4c5c
DN
1378 * atimer.c: Use "" instead of <> for local includes for
1379 consistency with the rest of the code.
1380
dd4c5104
DN
1381 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
1382 * xrdb.c (get_system_name):
1383 * window.c (shrink_windows):
1384 * syntax.c (forw_comment):
1385 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
1386 (ins_del_costs):
1387 * mem-limits.h (start_of_data):
1388 * lread.c (readevalloop):
1389 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
1390 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
1391 * frame.c (x_get_focus_frame):
1392 * floatfns.c (fmod_float):
1393 * fileio.c (choose_write_coding_system):
1394 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
1395 (malloc_initialize_hook, sort_args, synchronize_locale):
1396 * doprnt.c (doprnt):
1397 * dired.c (compile_pattern):
1398 * data.c (fmod_float):
1399 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
1400 (map_char_table_for_charset):
1401 * charset.c (define_charset_internal):
1402 * alloc.c (Fgarbage_collect): Convert declarations or definitions
1403 to standard C.
1404
9a39b306 14052010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 1406 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
1407
1408 * lread.c (read1): Fix up last change to not mess up `c'.
1409
e6cb2cbb
JB
14102010-07-04 Juanma Barranquero <lekktu@gmail.com>
1411
1412 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
1413
438105ed
JB
14142010-07-04 Juanma Barranquero <lekktu@gmail.com>
1415
1416 Fix prototypes.
1417
e5447b22 1418 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 1419 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
1420 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
1421 arg, as required by internal_condition_case_1.
dcc7404b 1422 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
1423 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
1424 (analyse_first): Fix "const const".
e5447b22 1425 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 1426 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 1427 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 1428
971de7fb
DN
14292010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
1430
1431 * alloc.c: Convert function definitions to standard C.
1432 * atimer.c:
1433 * bidi.c:
1434 * bytecode.c:
1435 * callint.c:
1436 * callproc.c:
1437 * casefiddle.c:
1438 * casetab.c:
1439 * category.c:
1440 * ccl.c:
1441 * character.c:
1442 * charset.c:
1443 * chartab.c:
1444 * cmds.c:
1445 * coding.c:
1446 * composite.c:
1447 * data.c:
1448 * dbusbind.c:
1449 * dired.c:
1450 * dispnew.c:
1451 * doc.c:
1452 * doprnt.c:
1453 * ecrt0.c:
1454 * editfns.c:
1455 * fileio.c:
1456 * filelock.c:
1457 * filemode.c:
1458 * fns.c:
1459 * font.c:
1460 * fontset.c:
1461 * frame.c:
1462 * fringe.c:
1463 * ftfont.c:
1464 * ftxfont.c:
1465 * gtkutil.c:
1466 * indent.c:
1467 * insdel.c:
1468 * intervals.c:
1469 * keymap.c:
1470 * lread.c:
1471 * macros.c:
1472 * marker.c:
1473 * md5.c:
1474 * menu.c:
1475 * minibuf.c:
1476 * prefix-args.c:
1477 * print.c:
1478 * ralloc.c:
1479 * regex.c:
1480 * region-cache.c:
1481 * scroll.c:
1482 * search.c:
1483 * sound.c:
1484 * strftime.c:
1485 * syntax.c:
1486 * sysdep.c:
1487 * termcap.c:
1488 * terminal.c:
1489 * terminfo.c:
1490 * textprop.c:
1491 * tparam.c:
1492 * undo.c:
1493 * unexelf.c:
1494 * window.c:
1495 * xfaces.c:
1496 * xfns.c:
1497 * xfont.c:
1498 * xftfont.c:
1499 * xgselect.c:
1500 * xmenu.c:
1501 * xrdb.c:
1502 * xselect.c:
1503 * xsettings.c:
1504 * xsmfns.c:
1505 * xterm.c: Likewise.
1506
ae492bec
EZ
15072010-07-03 Eli Zaretskii <eliz@gnu.org>
1508
76ea4cc9
EZ
1509 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
1510 frames other than the initial one. Fix reversal of colors when
1511 `reverse' is specified in the frame parameters. Call
1512 update_face_from_frame_parameter instead of
1513 internal-set-lisp-face-attribute. Initialize screen colors from
1514 initial_screen_colors[] when f->default_face_done_p is zero,
1515 instead of depending on being called with default-frame-alist as
1516 the alist argument.
1517
1518 * xfaces.c (update_face_from_frame_parameter): Move out of
1519 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
1520 with HAVE_WINDOW_SYSTEM.
1521
1e6255ae
EZ
1522 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
1523 to menu-bar-mode, if not set in the frame parameters or in
1524 default-frame-alist.
1525
ae492bec
EZ
1526 * w32console.c (sys_tputs): Adjust argument list to prototype in
1527 term.c.
1528
3a35a84c
JB
15292010-07-03 Juanma Barranquero <lekktu@gmail.com>
1530
1531 * lisp.h (memory_warnings): Fix prototype.
1532
1533 * cm.h (evalcost): Fix prototype.
1534
1535 * cm.c (evalcost): Fix arg type.
1536
c532d349
DN
15372010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1538
1539 * term.c (term_clear_mouse_face, Fidentity):
1540 * syssignal.h (signal_handler_t):
1541 * lisp.h (memory_warnings):
1542 * coding.h (preferred_coding_system):
1543 * cm.h (evalcost):
1544 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
1545
c0b36d46
EZ
15462010-07-02 Eli Zaretskii <eliz@gnu.org>
1547
1548 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
1549 from prototypes.
1550
1551 * msdos.h (load_pixmap): Don't define away.
1552
383e0970
J
15532010-07-02 Jan Djärv <jan.h.d@swipnet.se>
1554
f57e2426
J
1555 * lisp.h:
1556 * atimer.h: Remove define for P_.
1557
1558 * alloc.c: Remove __P and P_ from .c and .m files.
1559 * atimer.c:
1560 * buffer.c:
1561 * callint.c:
1562 * category.c:
1563 * charset.c:
1564 * chartab.c:
1565 * cm.c:
1566 * coding.c:
1567 * composite.c:
1568 * data.c:
1569 * dired.c:
1570 * dispnew.c:
1571 * doc.c:
1572 * editfns.c:
1573 * emacs.c:
1574 * eval.c:
1575 * fileio.c:
1576 * filelock.c:
1577 * fns.c:
1578 * font.c:
1579 * fontset.c:
1580 * frame.c:
1581 * ftfont.c:
1582 * ftxfont.c:
1583 * gmalloc.c:
1584 * gtkutil.c:
1585 * image.c:
1586 * indent.c:
1587 * intervals.c:
1588 * keyboard.c:
1589 * keymap.c:
1590 * lread.c:
1591 * marker.c:
1592 * menu.c:
1593 * minibuf.c:
1594 * print.c:
1595 * process.c:
1596 * scroll.c:
1597 * search.c:
1598 * sound.c:
1599 * strftime.c:
1600 * syntax.c:
1601 * sysdep.c:
1602 * term.c:
1603 * terminal.c:
1604 * textprop.c:
1605 * unexalpha.c:
1606 * w32console.c:
1607 * w32fns.c:
1608 * w32font.c:
1609 * w32menu.c:
1610 * w32term.c:
1611 * w32uniscribe.c:
1612 * window.c:
1613 * xdisp.c:
1614 * xfaces.c:
1615 * xfns.c:
1616 * xfont.c:
1617 * xftfont.c:
1618 * xmenu.c:
1619 * xselect.c:
1620 * xterm.c: Likewise.
1621
383e0970 1622 Remove P_ and __P macros.
f57e2426
J
1623 * atimer.h: Remove P_ and __P macros.
1624 * buffer.h:
383e0970
J
1625 * category.h:
1626 * ccl.h:
1627 * character.h:
1628 * charset.h:
1629 * cm.h:
1630 * coding.h:
1631 * composite.h:
1632 * dispextern.h:
1633 * disptab.h:
9e892c8d 1634 * dosfns.h:
383e0970
J
1635 * font.h:
1636 * fontset.h:
1637 * frame.h:
1638 * gtkutil.h:
1639 * indent.h:
1640 * intervals.h:
1641 * keyboard.h:
1642 * keymap.h:
1643 * lisp.h:
1644 * macros.h:
1645 * md5.h:
1646 * menu.h:
1647 * msdos.h:
1648 * nsterm.h:
1649 * puresize.h:
1650 * region-cache.h:
1651 * syntax.h:
1652 * syssignal.h:
1653 * systime.h:
1654 * termhooks.h:
9e892c8d 1655 * w32font.h:
383e0970
J
1656 * w32term.h:
1657 * widget.h:
1658 * window.h:
1659 * xgselect.h:
1660 * xsettings.h:
1661 * xterm.h: Likewise.
1662
98601119
DN
16632010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1664
d9170db5
DN
1665 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
1666
98601119
DN
1667 Cleanup old code.
1668 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
1669 * syssignal.h: Remove code for Lynx, not supported anymore.
1670 * vm-limit.c: Remove unused code the depends on emacs not being
1671 defined and NO_LIM_DATA being defined.
1672 * mem-limits.h: Remove dead code.
1673
1f984e12
J
16742010-07-01 Jan Djärv <jan.h.d@swipnet.se>
1675
c49d071a
J
1676 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
1677
9d5405ec
J
1678 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
1679 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
1680
7a18115b
J
1681 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
1682 parameters, they are already absolute.
1683
a628ad9d
JB
1684 * nsterm.m (x_set_window_size, initFrameFromEmacs):
1685 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 1686
a628ad9d 1687 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 1688
a628ad9d
JB
1689 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
1690 Update FRAME_TOOLBAR_HEIGHT.
581a8100 1691
a628ad9d
JB
1692 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
1693 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 1694
c1ef4455
CY
16952010-06-30 Chong Yidong <cyd@stupidchicken.com>
1696
1697 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
1698 check default-frame-alist.
1699
ce8f5a9a
AS
17002010-06-30 Andreas Schwab <schwab@linux-m68k.org>
1701
1702 * process.c (create_process): Avoid using invalid file descriptors.
1703
1704 * callproc.c (child_setup): Avoid closing a file descriptor twice.
1705
bf935339
J
17062010-06-30 Jan Djärv <jan.h.d@swipnet.se>
1707
1708 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
1709 Improve documentation. Return font regardless of use_system_font.
1710 (syms_of_xsettings): Improve documentation for font-use-system-font.
1711
7c33a057
CY
17122010-07-10 Chong Yidong <cyd@stupidchicken.com>
1713
2ec1b5ee
CY
1714 * xfaces.c (realize_face): Garbage the frame if a face is removed
1715 (Bug#6593).
1716
17172010-07-05 Andreas Schwab <schwab@linux-m68k.org>
1718
1719 * keyboard.c: Remove duplicate <setjmp.h>.
1720 (read_key_sequence): Remove volatile qualifiers.
1721
17222010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1723
1724 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
1725 (struct glyph_row): New members left_fringe_offset and
1726 right_fringe_offset.
1727
1728 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
1729 specially.
1730 * w32term.c (w32_draw_fringe_bitmap): Likewise.
1731 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
1732
1733 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 1734 Take account of bitmap offset.
2ec1b5ee
CY
1735 (draw_window_fringes): Take account of window vscroll.
1736 (update_window_fringes): Likewise. Extend top-aligned top indicator
1737 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
1738 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
1739 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
1740
17412010-07-04 Juanma Barranquero <lekktu@gmail.com>
1742
1743 * w32fns.c (Qtooltip): Declare.
1744 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
1745
17462010-07-03 Jan Djärv <jan.h.d@swipnet.se>
1747
1748 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
1749 grab on just Press (Bug#6499).
1750
17512010-07-02 Chong Yidong <cyd@stupidchicken.com>
1752
1753 * frame.c (Qtooltip): New var.
1754 (delete_frame): Use it. Fix faulty if statement. Don't update
1755 mode line for tooltip frames. Suggested by Martin Rudalics.
1756
1757 * xfns.c (x_create_tip_frame):
1758 * w32fns.c (x_create_tip_frame): Use it.
1759
17602010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
1761
1762 * xftfont.c (xftfont_open): Check font width one by one also when
1763 spacing is dual.
1764
1765 * ftfont.c (ftfont_open): Ditto.
1766
6259c2ec
GM
17672010-06-30 Glenn Morris <rgm@gnu.org>
1768
a46007e9
GM
1769 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
1770
6259c2ec
GM
1771 * Makefile.in (CANNOT_DUMP): Update for configure name change.
1772
1773 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
1774 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
1775 * s/darwin.h (SYSTEM_MALLOC):
1776 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
1777
5d1d3d04
J
17782010-06-29 Jan Djärv <jan.h.d@swipnet.se>
1779
1780 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
1781 (ns_get_screen): Don't assign integer to f.
1782 (Fx_display_color_cells): Declarations before statements.
1783
e547b051
J
17842010-06-28 Jan Djärv <jan.h.d@swipnet.se>
1785
5fc8e5bc
J
1786 * xfns.c (x_default_font_parameter): Remove got_from_system
1787 (Bug#6526).
1788
e547b051
J
1789 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
1790 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
1791 defines based on what configure finds.
1792
1793 * xterm.c (XTflash): Use gtk_widget_get_window.
1794 (xg_scroll_callback): Use gtk_adjustment_get_upper and
1795 gtk_adjustment_get_page_size.
1796 (handle_one_xevent): Use gtk_widget_get_mapped.
1797 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
1798 messages.
1799
1800 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
1801
1802 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
1803 HAVE_GTK_FILE_SELECTION_NEW.
1804
1805 * gtkutil.c (xg_display_open, xg_display_close): Remove
1806 HAVE_GTK_MULTIDISPLAY, it is always defined.
1807 (xg_display_open): Return type is void.
1808 (gtk_widget_set_has_window)
1809 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
1810 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
1811 (gtk_adjustment_set_page_increment)
1812 (gtk_adjustment_get_step_increment): #define these if not found
1813 by configure.
1814 (remove_submenu): New define based on Gtk+ version.
1815 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
1816 gtk_widget_get_window.
1817 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
1818 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
1819 (create_dialog): Use gtk_dialog_get_action_area and
1820 gtk_dialog_get_content_area.
1821 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
1822 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
1823 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
1824 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
1825 g_object_ref and g_object_unref.
1826 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
1827 gtk_widget_get_sensitive.
1828 (xg_update_submenu): Use remove_submenu.
1829 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
1830 properties instead to get old x and y position.
1831 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
1832 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 1833 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
1834 (xg_get_tool_bar_widgets): New function.
1835 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
1836 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
1837 (toolbar_set_orientation): New #define based on if configure
1838 finds gtk_orientable_set_orientation.
1839 (xg_create_tool_bar): Call toolbar_set_orientation.
1840 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
1841 instead of gtk_box_pack_start_defaults.
1842
b9229673
CY
18432010-06-28 Chong Yidong <cyd@stupidchicken.com>
1844
1845 * cmds.c (Fdelete_backward_char): Move into Lisp.
1846
bbc803b0
DN
18472010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
1848
1849 * s/freebsd.h (BSD4_2): Remove redundant definition.
1850 bsd-common.h defines it already.
1851
6431f2e6
CY
18522010-06-27 Chong Yidong <cyd@stupidchicken.com>
1853
1854 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
1855 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
1856 tool-bar-mode, which are now set using these X resources at
1857 startup, to determine the defaults (Bug#2249).
1858
1859 * w32fns.c (Fx_create_frame):
1860 * nsfns.m (Fx_create_frame): Likewise.
1861
1862 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
1863
8c079ebb
JB
18642010-06-24 Juanma Barranquero <lekktu@gmail.com>
1865
1866 * gtkutil.c (xg_update_scrollbar_pos):
1867 Avoid C99 mid-block variable declaration.
1868
e9b7ab96
JD
18692010-06-22 Jan Djärv <jan.h.d@swipnet.se>
1870
bc869eca
JD
1871 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
1872
2b7e356a 1873 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
1874
1875 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
1876 if height is less than scroll bar min size.
1877 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
1878
e9b7ab96
JD
1879 * xfns.c (x_default_font_parameter): Try to open font from system
1880 before using it (bug#6478). Rename got_from_gconf to got_from_system.
1881
a628ad9d 18822010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
1883
1884 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
1885
70c4cfbb
EZ
18862010-06-20 Eli Zaretskii <eliz@gnu.org>
1887
1888 * xdisp.c (try_scrolling): When scroll-conservatively is set to
1889 most-positive-fixnum, be extra accurate when scrolling window
1890 start, to avoid missing the cursor line.
1891
ad5a12b5
EZ
18922010-06-19 Eli Zaretskii <eliz@gnu.org>
1893
1894 * xdisp.c (try_scrolling): Compute the limit for searching point
1895 in forward scroll from scroll_max, instead of an arbitrary limit
1896 of 10 screen lines. See
1897 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
1898 and
1899 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
1900 for details.
1901
2a64315a 19022010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
1903
1904 * editfns.c (Fbyte_to_string): Pacify compiler.
1905
288cf4e9
SM
19062010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
1907
1908 * lread.c (read1): Phase out old-style backquotes a bit more.
1909
6e6e5760
EZ
19102010-06-12 Eli Zaretskii <eliz@gnu.org>
1911
cbc4fd20
EZ
1912 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
1913 bidimirror.h.
1914
1915 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
1916
317fbf33
EZ
1917 * bidi.c (bidi_initialize): Remove explicit initialization of
1918 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 1919 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 1920 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
1921
1922 * biditype.h: New file.
1923
cbc4fd20
EZ
1924 * bidimirror.h: New file.
1925
6e6e5760
EZ
1926 * window.c (syms_of_window): Doc fix (bug#6409).
1927
4176cba2
RF
19282010-06-12 Romain Francoise <romain@orebokech.com>
1929
1930 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
1931 ediff-hook.
1932
cb4bfcb5
GM
19332010-06-10 Glenn Morris <rgm@gnu.org>
1934
64c60c2f
GM
1935 * editfns.c (Fbyte_to_string): Pacify compiler.
1936
cb4bfcb5
GM
1937 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
1938
2ec1b5ee
CY
19392010-06-26 Andreas Schwab <schwab@linux-m68k.org>
1940
1941 * alloc.c (Fmake_byte_code): Don't access undefined argument
1942 (Bug#6517).
1943
19442010-06-25 Chong Yidong <cyd@stupidchicken.com>
1945
1946 * xdisp.c (next_element_from_image): Ensure that after-strings are
1947 read the next time we hit handle_stop (Bug#1336).
1948
19492010-06-23 Andreas Schwab <schwab@linux-m68k.org>
1950
1951 * lread.c (read1): Signal error if #s is not followed by paren.
1952
19532010-06-19 Chong Yidong <cyd@stupidchicken.com>
1954
1955 * image.c (free_image): Mark frame as garbaged (Bug#6426).
1956
1957 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
1958
19592010-06-15 Glenn Morris <rgm@gnu.org>
1960
1961 * editfns.c (Fbyte_to_string): Pacify compiler.
1962
e454a4a3
SM
19632010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
1964
1965 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
1966 Check `object's type before accessing its guts.
1967
c1b1acc2
DN
19682010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
1969
1970 * s/usg5-4.h: Fix previous change.
1971 Suggested by Lawrence Mitchell <wence@gmx.li>
1972
657d4c0b
AS
19732010-06-08 Andreas Schwab <schwab@linux-m68k.org>
1974
1975 * minibuf.c (Fall_completions): Add more checks.
1976
9b27fd9f
JB
19772010-06-08 Juanma Barranquero <lekktu@gmail.com>
1978
1979 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
1980
a99ebb40
DN
19812010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
1982
d7c5d87d
DN
1983 * lread.c (X_OK): Remove, unused.
1984
0263a941
DN
1985 * dispnew.c: Remove obsolete comment.
1986
a99ebb40
DN
1987 Remove INCLUDED_FCNTL.
1988 * xterm.c (INCLUDED_FCNTL):
1989 * callproc.c (INCLUDED_FCNTL):
1990 * alloc.c (INCLUDED_FCNTL):
1991 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
1992 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
1993
13b5221f
MR
19942010-06-07 Martin Rudalics <rudalics@gmx.at>
1995
1996 * window.c (Fselect_window): Move `record_buffer' up to the
1997 beginning of this function, so the buffer gets recorded
1998 even if the selected window does not change.
1999 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
2000
5220357f
JB
20012010-06-07 Juanma Barranquero <lekktu@gmail.com>
2002
2003 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
2004 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
2005
3085237c
DN
20062010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
2007
2008 Remove BSTRING related code, all platforms define it.
2009 * s/usg5-4.h (BSTRING): Remove definition.
2010 * s/template.h (BSTRING):
2011 * s/msdos.h (BSTRING):
2012 * s/ms-w32.h (BSTRING):
2013 * s/hpux10-20.h (BSTRING):
2014 * s/gnu-linux.h (BSTRING):
2015 * s/darwin.h (BSTRING):
2016 * s/cygwin.h (BSTRING):
2017 * s/bsd-common.h (BSTRING):
2018 * s/aix4-2.h (BSTRING): Likewise.
2019 * sysdep.c: Remove code depending on BSTRING not being defined.
2020
409f2919
JB
20212010-06-05 Juanma Barranquero <lekktu@gmail.com>
2022
2023 Remove obsolete macro BASE_LEADING_CODE_P.
2024 * character.h (BASE_LEADING_CODE_P): Remove.
2025 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
2026 * buffer.c (Fset_buffer_multibyte):
2027 * indent.c (scan_for_column, compute_motion):
2028 * insdel.c (count_combining_before, count_combining_after):
2029 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
2030
087fc47a
JB
20312010-06-04 Juanma Barranquero <lekktu@gmail.com>
2032
2033 Turn `directory-sep-char' into a noop.
2034
2035 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
2036 (DIRECTORY_SEP): Define unconditionally.
2037
2038 * s/ms-w32.h (DIRECTORY_SEP): Remove.
2039
2040 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
2041 call dostounix_filename directly.
2042
2043 * fileio.c (CORRECT_DIR_SEPS): Remove.
2044 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
2045 (Fsubstitute_in_file_name): Use dostounix_filename instead.
2046 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
2047 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
2048
2049 * w32proc.c (CORRECT_DIR_SEPS): Remove.
2050 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
2051
0eb7675e
AS
20522010-06-03 Andreas Schwab <schwab@linux-m68k.org>
2053
a628ad9d
JB
2054 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
2055 (Bug#6346)
0eb7675e 2056
78edd3b7
JB
20572010-06-03 Juanma Barranquero <lekktu@gmail.com>
2058
2059 * ccl.c (Fccl_program_p): Fix typo in docstring.
2060
eb697db5
DN
20612010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
2062
2063 Move UNEXEC definition to autoconf.
2064 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
2065 * s/sol2-10.h (UNEXEC):
2066 * s/irix6-5.h (UNEXEC):
2067 * s/hpux10-20.h (UNEXEC):
2068 * s/gnu-linux.h (UNEXEC):
2069 * s/darwin.h (UNEXEC):
2070 * s/cygwin.h (UNEXEC):
2071 * s/bsd-common.h (UNEXEC):
2072 * s/aix4-2.h (UNEXEC):
2073 * m/alpha.h (UNEXEC): Likewise.
2074 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
2075
aa3830c4
JB
20762010-06-03 Juanma Barranquero <lekktu@gmail.com>
2077
2078 Remove obsolete pre-unicode2 macros.
2079 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
2080 * composite.c (composition_reseat_it):
2081 * data.c (Faset):
2082 * fns.c (Ffillarray):
2083 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
2084 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
2085
d234d13e
JL
20862010-06-03 Juri Linkov <juri@jurta.org>
2087
2088 * buffer.c (Fother_buffer): Add CHECK_FRAME.
2089 (Fswitch_to_buffer): Remove unused variable `err'.
2090
0d4bcf4d
GM
20912010-06-03 Glenn Morris <rgm@gnu.org>
2092
e23dc1e2
GM
2093 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
2094
05b09564
GM
2095 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
2096 now that AH_BOTTOM does it.
2097
824e2978
GM
2098 * m/hp800.h (HAVE_ALLOCA):
2099 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
2100
0d4bcf4d
GM
2101 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
2102 Remove NOT_C_CODE tests, it is always true now.
2103
c55d2abf
DN
21042010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
2105
08a494a3
DN
2106 Fix config.h includes.
2107 * xsettings.c:
2108 * xgselect.c:
2109 * nsterm.m:
2110 * nsselect.m:
2111 * nsimage.m:
2112 * nsfont.m:
2113 * nsfns.m:
2114 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
2115 other files do.
2116
75934b1d
DN
2117 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
2118
9f32a766
DN
2119 * s/sol2-6.h: Remove obsolete comments.
2120
c55d2abf
DN
2121 Remove unnecessary alloca.h includes.
2122 * keymap.c: Do not include alloca.h, config.h does that.
2123 * sysdep.c: Likewise. Do not define fwrite, not used.
2124
06ac62b4
SM
21252010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2126
2127 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
2128 the HAVE_TERMIO where it belongs (bug#6149).
2129
1ab8293c
SM
21302010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
2131
2132 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
2133 of bug#6305).
2134
6dcfd253
EZ
21352010-05-30 Eli Zaretskii <eliz@gnu.org>
2136
2137 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
2138 state is always cached (bug#6306).
2139
6d26bbb2
EZ
21402010-05-29 Eli Zaretskii <eliz@gnu.org>
2141
06fa4a23
EZ
2142 Fix cursor motion in bidi-reordered continued lines.
2143 * xdisp.c (try_cursor_movement): Backup to non-continuation line
2144 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
2145 over continuation lines in bidi-reordered buffers. Return
2146 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
2147 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
2148
f5783df3
MA
21492010-05-28 Michael Albinus <michael.albinus@gmx.de>
2150
2151 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
2152
7d56b2dd
KH
21532010-05-28 Kenichi Handa <handa@m17n.org>
2154
2155 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
2156 Don't sheck SPEC if it is nil.
2157 (font_list_entities): Call font_delete_unmatched if
b925d231 2158 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 2159
e58d4ff7
GM
21602010-05-28 Glenn Morris <rgm@gnu.org>
2161
2162 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
2163
f1a5d776
CY
21642010-05-27 Chong Yidong <cyd@stupidchicken.com>
2165
2166 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
2167 whether to trash.
2168 (internal_delete_file, Frename_file): Callers changed.
2169 (delete_by_moving_to_trash): Doc fix.
2170 (Fdelete_directory_internal): Don't move to trash.
2171
2172 * callproc.c (delete_temp_file):
2173 * buffer.c (Fkill_buffer): Callers changed.
2174
2175 * lisp.h: Update prototype.
2176
f44a59e6
CY
21772010-05-27 Chong Yidong <cyd@stupidchicken.com>
2178
2179 * xdisp.c (redisplay_window): After redisplay, check if point is
2180 still valid before setting it (Bug#6177).
2181
81ac4f35
GM
21822010-05-27 Glenn Morris <rgm@gnu.org>
2183
2184 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
2185 Convert comments to Makefile format.
2186
2187 * Makefile.in (bootstrap-clean): No more Makefile.c.
2188
ccd89fb3
GM
21892010-05-26 Glenn Morris <rgm@gnu.org>
2190
90278cb6
GM
2191 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
2192 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
2193
ccd89fb3
GM
2194 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2195 Remove.
2196 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2197
b7050583
KH
21982010-05-26 Kenichi Handa <handa@m17n.org>
2199
2200 * composite.c (composition_compute_stop_pos): Fix condition for
2201 backward scanning.
2202
e5458003
GM
22032010-05-25 Glenn Morris <rgm@gnu.org>
2204
c345fe90
GM
2205 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2206 Move before TEMACS_LDFLAGS.
2207 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2208 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2209
2e0689ab
GM
2210 * Makefile.in (NOT_C_CODE): No longer define.
2211 (config.h): No longer include.
2212
8009a5e8
GM
2213 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
2214 variables it may reference.
2215
e5458003
GM
2216 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
2217 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
2218
10f72a37
KH
22192010-05-25 Kenichi Handa <handa@m17n.org>
2220
2221 * dispextern.h (struct composition_it): New members rule_idx and
2222 charpos.
2223
2224 * xdisp.c (set_iterator_to_next): While scanning backward, assume
2225 that the character positions of IT point the last character of the
2226 current grapheme cluster.
2227 (next_element_from_composition): Don't change character positions
2228 of IT.
2229 (append_composite_glyph): Set glyph->charpos to
2230 it->cmp_it.charpos.
2231
2232 * composite.c (autocmp_chars): Change the first argument to RULE,
2233 and try composition with RULE only.
2234 (composition_compute_stop_pos): Record the index number of the
2235 composition rule in CMP_IT->rule_idx.
2236 (composition_reseat_it): Call autocmp_chars repeatedly until the
2237 correct rule of the composition is found.
2238 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
2239 is at the last character of the current grapheme cluster when
2240 CMP_IT->reversed_p is nonzero.
2241
171eda53 22422010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 2243
171eda53
SM
2244 * editfns.c (Fbyte_to_string): New function.
2245
66a9f7f4
SM
22462010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2247
2248 * process.c (Fmake_network_process): Set :host to nil if it's not used.
2249 Suggested by Masatake YAMATO <yamato@redhat.com>.
2250
d8c315d1
EZ
22512010-05-23 Eli Zaretskii <eliz@gnu.org>
2252
171eda53 2253 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 2254
f5b416d2 22552010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
2256
2257 * s/netbsd.h: If terminfo is found, use it in preference to
2258 termcap. (Bug#6190) [Backport from trunk]
2259
0416466c
EZ
22602010-05-19 Eli Zaretskii <eliz@gnu.org>
2261
11117830 2262 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
2263
2264 * dispextern.h (struct glyph_row): New members minpos and maxpos.
2265 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
2266 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
2267 and maxpos members instead of start.pos and end.pos, respectively.
2268
2269 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
2270 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
2271 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
2272 (try_window_reusing_current_matrix, try_window_id):
2273 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
2274 (init_from_display_pos, init_iterator): Use EMACS_INT for
2275 character and byte positions.
66a9f7f4 2276 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
2277 arguments for minimum and maximum buffer positions seen by
2278 display_line for this row. Don't use iterator to find the
2279 position following the maximum one; instead, increment the
11117830
EZ
2280 position found by display_line directly. Fix logic; eol_pos
2281 should be tested before the rest. Handle the case of characters
2282 delivered from display vector (bug#6036). Fix tests related to
2283 it->method. Handle the truncated_on_right_p rows.
2284 (RECORD_MAX_MIN_POS): New macro.
2285 (display_line): Use it to record the minimum and maximum buffer
2286 positions for glyphs in the row being assembled. Record the
2287 position of the newline that terminates the line. If word wrap is
2288 in effect, restore minimum and maximum positions seen up to the
2289 wrap point, when iterator returns to it.
2290 (try_window_reusing_current_matrix): Give up if in bidi-reordered
2291 row and cursor not already at point. Restore original pre-bidi
2292 code for unidirectional buffers.
d36fe237
EZ
2293
2294 * dispnew.c (increment_row_positions, check_matrix_invariants):
2295 Increment and check row->start.pos and row->end.pos, in addition
2296 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
2297
11117830
EZ
2298 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
2299 Display truncated_on_left_p and truncated_on_right_p flags.
2300 Formatting fixes.
2301 (pmtxrows): Display the ordinal number of each row. Don't display
2302 rows beyond the last one.
2303
2304 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
2305 it is not copied by bidi_copy_it.
2306
6e83d800
EZ
23072010-05-22 Eli Zaretskii <eliz@gnu.org>
2308
2309 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
2310 (Bug#6237)
2311
110683ad
CY
23122010-05-22 Chong Yidong <cyd@stupidchicken.com>
2313
2314 * image.c (Fimage_flush): Rename from image-refresh.
2315
98fe5161
CY
23162010-05-21 Chong Yidong <cyd@stupidchicken.com>
2317
2318 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
2319 just one window.
2320
2321 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
2322 (clear_image_cache): If the number of cached images is unusually
2323 large, decrease the cache eviction delay (Bug#6230).
2324
e8752c66
GM
23252010-05-21 Glenn Morris <rgm@gnu.org>
2326
66dbf213
GM
2327 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
2328 Move these rules to ns.mk.
2329 * ns.mk: New file.
2330
04384b2d
GM
2331 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
2332
e8752c66
GM
2333 * Makefile.in (CANNOT_DUMP): New, set by configure.
2334 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
2335
2e2bbddb
JL
23362010-05-20 Juri Linkov <juri@jurta.org>
2337
2338 * fileio.c (Fdelete_file): Change interative spec to use
2339 `read-file-name' like in `find-file-read-args' where the default
2340 value is `default-directory' instead of `buffer-file-name'.
2341 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
2342
31c4aaf6
KR
23432010-05-20 Kevin Ryde <user42@zip.com.au>
2344
2345 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
2346 (Voverriding_terminal_local_map, Vsystem_key_alist)
2347 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
2348
9d5cf9b6
GM
23492010-05-20 Glenn Morris <rgm@gnu.org>
2350
2351 * Makefile.in (DEPDIR): New constant.
2352 (DEPFLAGS): Set with configure, not cpp.
2353 (MKDEPDIR): New, set by configure.
2354 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
2355 (clean): Use $DEPDIR.
2356 (deps_frag): Include from configure.
2357 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
2358 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
2359
ead6f8f5
EZ
2360 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
2361 reallocation of the cache. (Bug#6210)
2362
7f34aec3
GM
23632010-05-19 Glenn Morris <rgm@gnu.org>
2364
d494e8f2
GM
2365 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
2366
c1d0dcfd
GM
2367 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
2368 (GNULIB_VAR): Remove.
2369 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
2370
2371 * m/ibms390x.h (LINKER):
2372 * m/macppc.h (LINKER) [GNU_LINUX]:
2373 * s/aix4-2.h (ORDINARY_LINK):
2374 * s/cygwin.h (LINKER):
2375 * s/darwin.h (ORDINARY_LINK):
2376 * s/gnu.h (ORDINARY_LINK):
2377 * s/netbsd.h (LINKER):
2378 * s/usg5-4.h (ORDINARY_LINK):
2379 Move to configure.
2380
7f34aec3
GM
2381 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
2382
754790b6
CY
23832010-05-18 Chong Yidong <cyd@stupidchicken.com>
2384
2385 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
2386 prevent stack overflow if number of arguments is too large
2387 (Bug#6214).
2388
161e44d1
JB
23892010-05-18 Juanma Barranquero <lekktu@gmail.com>
2390
2391 * charset.c (load_charset_map_from_file): Don't call close after fclose.
2392
be4ff9da
GM
23932010-05-18 Glenn Morris <rgm@gnu.org>
2394
9539dc5d
GM
2395 * s/gnu-linux.h: Combine two conditionals.
2396
2397 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
2398 $(POST_ALLOC_OBJ).
2399
40dc6bf4
GM
2400 * Makefile.in (RALLOC_OBJ): New, set by configure.
2401 (rallocobj): Replace with the previous variable.
2402 (otherobj): Use $RALLOC_OBJ.
2403
2404 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
2405 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
2406
be4ff9da
GM
2407 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
2408 (gmallocobj, vmlimitobj): Replace with previous two variables.
2409 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
2410
16455a85
GM
24112010-05-17 Glenn Morris <rgm@gnu.org>
2412
2413 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
2414 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
2415
5fdb7468
GM
24162010-05-16 Glenn Morris <rgm@gnu.org>
2417
7ca1f3f9
GM
2418 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
2419
7541dad5
GM
2420 * Makefile.in (clean): Get rid of HAVE_NS conditional.
2421
da53fab9
GM
2422 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
2423 trailing "/".
2424
b02a6645
GM
2425 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
2426 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
2427
8877ca0f
GM
2428 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
2429 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
2430 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
2431 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
2432 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
2433
5fdb7468
GM
2434 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
2435 Remove ${STARTFLAGS}, nothing ever sets it.
2436
95adb4b1
DN
24372010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
2438
2439 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
2440
676b6304
GM
24412010-05-16 Glenn Morris <rgm@gnu.org>
2442
9beab9ce
GM
2443 * Makefile.in (LIBX_BASE): Always define.
2444
8a95f0e7
GM
2445 * Makefile.in (LIBX_OTHER): Move out of cpp section.
2446
676b6304
GM
2447 * Makefile.in (LIBXT): Always define.
2448
6e546d18
GM
24492010-05-15 Glenn Morris <rgm@gnu.org>
2450
4235ca47 2451 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 2452
6e546d18
GM
2453 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
2454 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
2455
8c5ff6dd
KR
24562010-05-15 Ken Raeburn <raeburn@raeburn.org>
2457
560bb7ae 2458 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
2459 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
2460
8b4eb796
KR
2461 * emacs.c (main): Initialize initial-environment and
2462 process-environment before generating from env, not after.
2463
8c5ff6dd
KR
2464 Handle --version reasonably in CANNOT_DUMP configuration.
2465 * emacs.c (emacs_version, emacs_copyright): New string variables.
2466 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
2467 (syms_of_emacs): Defvar them, and initialize them from the C
2468 string variables.
2469 (main): If initialization hasn't been done, print initial version
2470 info from the C strings, instead of starting an interactive session.
2471
dbd3f723
EZ
24722010-05-15 Eli Zaretskii <eliz@gnu.org>
2473
d20e1419
EZ
2474 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
2475 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
2476 (bidi_paragraph_init): Remove redundant assertion that we are at
2477 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
2478
2479 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
2480 (syms_of_xdisp): Defsubr it.
2481
d36fe237
EZ
2482 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
2483
dbd3f723
EZ
2484 * Makefile.in: Fix MSDOS-related comments.
2485
02be533b
GM
24862010-05-15 Glenn Morris <rgm@gnu.org>
2487
1a82cca9
GM
2488 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
2489 (really-lwlib, really-oldXMenu): Always define.
2490 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
2491
3df7b338
GM
2492 * Makefile.in: Simplify cpp conditional.
2493
2b5f541b
GM
2494 * Makefile.in (${ns_appdir}): Simplify using umask.
2495
02be533b
GM
2496 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
2497
4e2db1fe
SM
24982010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
2499
2500 * eval.c (specbind): Remove left-over duplicate test.
2501 Disallow let-binding frame-local vars. Add comment.
2502
4b292a22
EZ
25032010-05-14 Eli Zaretskii <eliz@gnu.org>
2504
2fe72643 2505 Make the cache of bidi iterator states dynamically allocated.
1edbd309 2506 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
2507 (bidi_init_it): Call it.
2508 (bidi_cache_iterator_state): Enlarge the cache if needed.
2509
4e2db1fe 2510 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
2511 bidi_get_next_char_visually. All callers changed.
2512
82ebc97b
KH
25132010-05-14 Kenichi Handa <handa@m17n.org>
2514
2515 * dispextern.h (struct composition_it): New member reversed_p.
2516
2517 * composite.c (composition_compute_stop_pos): Search backward if
2518 ENDPOS < CHARPOS.
2519 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
2520 Set CMP_IT->reversed_p.
b4b6e17e 2521 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 2522
4e2db1fe
SM
2523 * xdisp.c (set_iterator_to_next):
2524 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
2525 scanning backward. Call composition_compute_stop_pos if scan
2526 direction is changed.
2527 (next_element_from_buffer): Call composition_compute_stop_pos with
2528 negative ENDPOS if we are scanning backward.
2529 (next_element_from_composition): Pay attention to
2530 IT->cmp_it.reversed_p.
2531
0e5d7800
KH
25322010-05-14 Kenichi Handa <handa@m17n.org>
2533
560bb7ae 2534 * font.c (font_range): Return the range for the font found at first.
0e5d7800 2535
cb027b32
GM
25362010-05-14 Glenn Morris <rgm@gnu.org>
2537
177b0288
GM
2538 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
2539
fbc00890
GM
2540 * Makefile.in (mktime, X11, register): Move undefs to configure.
2541
f14d1dfd
GM
2542 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
2543 (MSDOS_X_OBJ): New variable.
2544 (MSDOS_SUPPORT_REAL): New constant.
2545 (MSDOS_SUPPORT): Set as a variable, not with cpp.
2546 (obj): Use MSDOS_X_OBJ.
2547 (lisp): Use MSDOS_SUPPORT as a variable.
2548
11842bd8
GM
2549 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
2550 (GPM_MOUSE_SUPPORT): Now it's a constant.
2551 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
2552 not cpp.
2553
489d31a4 2554 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 2555 (ns_appresdir): Remove, unused.
e20f1f07 2556
489d31a4
GM
2557 * Makefile.in (SHELL): Move outside cpp section.
2558
cb027b32
GM
2559 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
2560
5a903aa9
GM
25612010-05-13 Glenn Morris <rgm@gnu.org>
2562
3369c79f
GM
2563 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
2564 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
2565
d5e982a6
GM
2566 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
2567 HAVE_WINDOW_SYSTEM must be too.
2568
6192e163
GM
2569 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
2570 (lisp): Remove WINNT_SUPPORT.
2571
472c5d6b
GM
2572 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
2573 Let configure set these variables (to empty) in this case as well.
2574
0116466b
GM
2575 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
2576 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
2577
5a903aa9
GM
2578 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
2579 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
2580 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
2581 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
2582 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 2583 the values output by configure.
5a903aa9
GM
2584 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
2585
1a0d7c06
GM
25862010-05-12 Glenn Morris <rgm@gnu.org>
2587
b5457f14
GM
2588 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
2589 (LINKER_WAS_SPECIFIED): Remove.
2590
1a0d7c06
GM
2591 * Makefile.in (LIB_GCC): Set using configure, not cpp.
2592 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
2593 * m/arm.h (LIB_GCC) [GNU_LINUX]:
2594 * s/cygwin.h (LIB_GCC):
2595 * s/freebsd.h (LIB_GCC):
2596 * s/gnu-linux.h (LIB_GCC):
2597 * s/msdos.h (LIB_GCC):
2598 * s/netbsd.h (LIB_GCC):
2599 Move to configure.
2600
3ffd4615 26012010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
2602
2603 * ftfont.c: Fix incorrect parentheses of #if condition for
2604 definining M17N_FLT_USE_NEW_FEATURE.
2605
acddf8ae
GM
26062010-05-11 Glenn Morris <rgm@gnu.org>
2607
2608 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
2609 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
2610
ae5e04fa
EZ
26112010-05-10 Eli Zaretskii <eliz@gnu.org>
2612
2613 * xdisp.c (init_iterator): Don't turn on bidi reordering in
2614 unibyte buffers. See
2615 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
2616
7490175b
GM
26172010-05-10 Glenn Morris <rgm@gnu.org>
2618
97efb629
GM
2619 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
2620 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
2621 (LIBES): Use LIBS_SYSTEM as a variable.
2622 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
2623 * s/aix4-2.h (LIBS_SYSTEM):
2624 * s/freebsd.h (LIBS_SYSTEM):
2625 * s/hpux10-20.h (LIBS_SYSTEM):
2626 * s/sol2-6.h (LIBS_SYSTEM):
2627 * s/unixware.h (LIBS_SYSTEM):
2628 Move to configure.
2629
7490175b
GM
2630 * s/aix4-2.h (MAIL_USE_LOCKF):
2631 * s/bsd-common.h (MAIL_USE_FLOCK):
2632 * s/darwin.h (MAIL_USE_FLOCK):
2633 * s/gnu-linux.h (MAIL_USE_FLOCK):
2634 * s/irix6-5.h (MAIL_USE_FLOCK):
2635 * s/template.h (MAIL_USE_FLOCK):
2636 Move to configure.
2637
0235128c 26382010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
2639
2640 * Version 23.2 released.
2641
0235128c 26422010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
2643
2644 * composite.c (autocmp_chars): Save point as marker before calling
2645 auto-composition-function (Bug#5984).
2646
2647 * lisp.h (restore_point_unwind): Add prototype.
2648
2649 * fileio.c (restore_point_unwind): Remove static attribute.
2650
0235128c 26512010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
2652
2653 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
2654 new feature of libotf and m17n-flt.
0235128c
SM
2655 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
2656 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
2657 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
2658 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
2659 that OUT is NULL. Use OTF_drive_gsub_with_log and
2660 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
2661 OTF_drive_gpos.
2662 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
2663 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
2664 Setup mflt_enable_new_feature and mflt_try_otf.
2665
4721152c
J
26662010-05-08 Jan Djärv <jan.h.d@swipnet.se>
2667
2668 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
2669
2670 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
2671 box and toolbar (Bug #6139).
2672 (xg_create_tool_bar): Remove comment (Bug #6139).
2673 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
2674 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
2675
ee0a16cf
JB
26762010-05-08 Juanma Barranquero <lekktu@gmail.com>
2677
2678 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
2679 Update dependencies.
2680
96d79611
EZ
26812010-05-08 Eli Zaretskii <eliz@gnu.org>
2682
2683 * fringe.c (update_window_fringes): Set up truncation bitmaps for
2684 R2L lines.
2685
40c17879
GM
26862010-05-08 Glenn Morris <rgm@gnu.org>
2687
7b42b29f
GM
2688 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
2689
40c17879
GM
2690 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
2691 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
2692 (termcapobj): Replace with TERMCAP_OBJ.
2693 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
2694 (LIBES): Use LIBS_TERMCAP as a variable.
2695
2696 * s/freebsd.h (osreldate.h): No longer include, since this file
2697 does not use __FreeBSD_version any more.
2698
2699 * s/aix4-2.h (TERMINFO):
2700 * s/cygwin.h (TERMINFO):
2701 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2702 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
2703 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2704 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2705 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
2706 * s/irix6-5.h (TERMINFO):
2707 * s/netbsd.h (LIBS_TERMCAP):
2708 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
2709 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
2710 * s/usg5-4.h (TERMINFO):
2711 Move to configure.
2712
94b612ad
SM
27132010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
2714
2715 * eval.c (unbind_to): Don't unbind a local binding into the global
2716 binding when the local binding disappeared. Inversely, don't unbind
2717 a global binding into a newly created local binding.
2718 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
2719 can specify the frame to use, when applicable. Adjust callers.
2720
15e12598 27212010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 2722 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
2723
2724 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
2725
f724825e
EZ
27262010-05-07 Eli Zaretskii <eliz@gnu.org>
2727
5cba3209
EZ
2728 * w32fns.c: Include w32.h.
2729 (Fw32_shell_execute): Decode the error message before passing it
2730 to `error'. (Bug#6126)
2731
d16bdfc3
EZ
2732 * msdos.c (dos_set_window_size):
2733 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
2734 instead of `XSYMBOL (foo)->value'.
2735
59d93e87
EZ
27362010-05-07 Eli Zaretskii <eliz@gnu.org>
2737
9fdec8bc
EZ
2738 Fix the MS-DOS build, broken by autoconfiscation.
2739
2740 * Makefile.in: Don't use Make-style comments past the "start of
2741 cpp stuff" line.
2742 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
2743
2744 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
2745 edited directly by msdos/sed1v2.inp).
f724825e 2746
2f86b22b
GM
27472010-05-07 Glenn Morris <rgm@gnu.org>
2748
2749 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
2750 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
2751 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
2752 move out of cpp section.
2753 * s/freebsd.h (LD_SWITCH_SYSTEM):
2754 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
2755 * s/netbsd.h (LD_SWITCH_SYSTEM):
2756 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
2757
49ebbd65
DN
27582010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2759
2760 Define LIB_STANDARD and START_FILES using autoconf.
2761 * s/usg5-4.h (LIB_STANDARD):
2762 * s/netbsd.h (START_FILES):
2763 * s/irix6-5.h (LIB_STANDARD):
2764 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
2765 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2766 * s/freebsd.h (START_FILES):
2767 * s/darwin.h (START_FILES):
2768 * s/cygwin.h (START_FILES):
2769 * s/aix4-2.h (LIB_STANDARD):
2770 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
2771 * Makefile.in (STARTFILES): Rename to START_FILES, define using
2772 autoconf, not cpp.
2773
d43c06d6
DN
27742010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
2775
28823648
DN
2776 Remove NEED_BSDTTY and NEED_UNISTD_H.
2777 * s/hpux10-20.h (NEED_BSDTTY): Remove.
2778 * s/aix4-2.h (NEED_UNISTD_H): Remove.
2779 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
2780 <sys/ptyio.h> and <unistd.h>.
2781
aca00430
DN
2782 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
2783
d43c06d6
DN
2784 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
2785 * s/gnu.h (START_FILES): Remove empty definition.
2786
3e56b11d
JD
27872010-05-06 Jan Djärv <jan.h.d@swipnet.se>
2788
2789 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
2790
e3cf0cde
GM
27912010-05-06 Glenn Morris <rgm@gnu.org>
2792
2793 * Makefile.in (CPP, LN_S): Remove unused variables.
2794
774b9a60
SM
27952010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2796
2797 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
2798
4ab92842
LM
27992010-05-05 Lawrence Mitchell <wence@gmx.li>
2800
2801 * m/sparc.h: Fix typo in earlier change.
2802
178f2507
SM
28032010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2804
2805 Misc tweaks.
2806 * eval.c (Fdefvaralias): Remove unintended nested if.
2807 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
2808
80f00217 28092010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
2810
2811 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
2812
ef03a4e6
DN
28132010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2814
58eb6cf0
DN
2815 Remove BSD_PGRPS.
2816 * s/bsd-common.h (BSD_PGRPS): Remove undef.
2817 * s/gnu-linux.h (BSD_PGRPS): Remove.
2818 * term.c (dissociate_if_controlling_tty):
2819 * sysdep.c (narrow_foreground_group, widen_foreground_group)
2820 (init_sys_modes, reset_sys_modes):
2821 * emacs.c (main):
2822 * callproc.c (Fcall_process, child_setup): Remove code depending
2823 on BSD_PGRPS.
2824
ef03a4e6
DN
2825 Remove POSIX_SIGNALS.
2826 * s/usg5-4.h (POSIX_SIGNALS):
2827 * s/netbsd.h (POSIX_SIGNALS):
2828 * s/msdos.h (POSIX_SIGNALS):
2829 * s/ms-w32.h (POSIX_SIGNALS):
2830 * s/hpux11.h (POSIX_SIGNALS):
2831 * s/gnu.h (POSIX_SIGNALS):
2832 * s/gnu-linux.h (POSIX_SIGNALS):
2833 * s/freebsd.h (POSIX_SIGNALS):
2834 * s/darwin.h (POSIX_SIGNALS):
2835 * s/cygwin.h (POSIX_SIGNALS):
2836 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
2837 * s/unixware.h:
2838 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
2839 * process.c (create_process):
2840 * syssignal.h:
2841 * sysdep.c (wait_for_termination, init_signals):
2842 * process.c (create_process):
2843 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
2844 remove all code that assumes the contrary.
2845
49628785
GM
28462010-05-04 Glenn Morris <rgm@gnu.org>
2847
27a2cdfc
GM
2848 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
2849 variable.
2850 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2851 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
2852 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2853 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
2854 LD_SWITCH_SYSTEM_tmp.
2855 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
2856 New variables, set by configure.
2857
eb21eab5
GM
2858 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2859 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
2860 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2861 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
2862 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
2863
49628785
GM
2864 * s/aix4-2.h (C_SWITCH_SYSTEM):
2865 * m/alpha.h (C_SWITCH_MACHINE):
2866 Move to configure.in.
2867 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
2868 New variables, set by configure.
2869 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
2870 $c_switch_machine and $c_switch_system.
2871
7dff330b
DN
28722010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2873
2874 * s/hpux10-20.h (LIB_STANDARD): New definition.
2875 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
2876 on it, not used anymore.
2877
53967e09
CY
28782010-05-03 Chong Yidong <cyd@stupidchicken.com>
2879
2880 * eval.c (internal_condition_case_n): Rename from
2881 internal_condition_case_2.
2882 (internal_condition_case_2): New function.
2883
2884 * xdisp.c (safe_call): Use internal_condition_case_n.
2885
2886 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
2887 (internal_delete_file, Frename_file): Callers changed.
2888
2889 * buffer.c (Fkill_buffer):
2890 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
2891
2892 * lisp.h: Update prototypes.
2893
3dee6fdb
GM
28942010-05-03 Glenn Morris <rgm@gnu.org>
2895
2896 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
2897 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
2898 (LIBXT): Set with configure, not cpp.
2899 (LIBX): Remove.
2900 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
2901
a101e0fb
DN
29022010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2903
2904 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
2905 The FreeBSD is not needed, the default works, Solaris version is
2906 not needed, and the remaining case is not supported by configure.
2907
f63d0028
JD
29082010-05-02 Jan Djärv <jan.h.d@swipnet.se>
2909
2910 * xsmfns.c (CHDIR_OPT): New define.
2911 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
2912 restarting emacs.
2913
2914 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
2915 shut_down_emacs.
2916
2917 * emacs.c (USAGE1): Mention --chdir.
2918 (main): Handle --chdir.
2919 (standard_args): Add --chdir.
2920 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
2921 #5552).
2922
e4814a9f
DN
29232010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
2924
cd03c74a
DN
2925 Remove LD_SWITCH_MACHINE.
2926 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
2927 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
2928
c3a398a1
DN
2929 Clean up IRIX code.
2930 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
2931 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
2932
87e7285c
DN
2933 Clean up AIX code.
2934 * m/ibmrs6000.inp: Remove file, unused.
2935 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
2936 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
2937 definition ...
2938 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
2939
80f00217
JB
2940 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
2941 unused.
e4814a9f 2942
59ca28de
EZ
29432010-05-01 Eli Zaretskii <eliz@gnu.org>
2944
197daef4
EZ
2945 Emulate POSIX_SIGNALS on MS-Windows.
2946
2947 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
2948 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
2949
2950 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
2951 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
2952 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
2953
80f00217
JB
2954 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
2955 New stubs.
197daef4 2956
af7c7572
EZ
2957 Miscellaneous fixes of bidi display.
2958
59ca28de
EZ
2959 * xdisp.c (find_row_end): New function, refactored from display_line.
2960 (display_line): Use it.
017ea819
EZ
2961 (extend_face_to_end_of_line): In almost-filled rows, extend only
2962 if the row is R2L and not continued.
166e930d 2963 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 2964 Preserve overlay and string info in row->end.
166e930d
EZ
2965 (insert_left_trunc_glyphs): Support addition of left truncation
2966 glyphs to R2L rows.
b47e0dcf 2967 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
2968 glyph between adjacent windows. Fix a crash when a display string
2969 is continued to the next line. Don't return zero if cursor was
2970 found by `cursor' property of a display string.
b47e0dcf
EZ
2971 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
2972 test for that explicitly.
59ca28de 2973
7acac9f4
GM
29742010-05-01 Glenn Morris <rgm@gnu.org>
2975
2976 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
2977 for clarity.
2978 (OTHER_OBJ): Remove.
2979 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
2980 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
2981
45841e65
KK
29822010-05-01 Karel Klíč <kklic@redhat.com>
2983
2984 * fileio.c (Ffile_selinux_context): Context functions may return null.
2985
afc61943
DN
29862010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
2987
80f00217 2988 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 2989
5a1bb006
GM
29902010-04-30 Glenn Morris <rgm@gnu.org>
2991
2992 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
2993 (OTHER_OBJ): Define as a separate variable, for clarity.
2994
210af043
J
29952010-04-30 Jan Djärv <jan.h.d@swipnet.se>
2996
2997 * xsettings.c: include limits.h and update file comment.
2998
0a7df391
GM
29992010-04-30 Glenn Morris <rgm@gnu.org>
3000
d5096f16
GM
3001 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
3002 Set with configure, not cpp.
3003 (LIBW): Remove, replace with $TOOLKIT_LIBW.
3004
7eb1ac33
GM
3005 * Makefile.in (mallocobj): Remove.
3006 (otherobj): Simplify using @OTHER_OBJ@.
3007
517d086b
GM
3008 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
3009 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
3010 Don't bother making nsgui.h dependency platform-specific.
3011
0a7df391
GM
3012 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
3013
d6d23852
SM
30142010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3015
d2630aef
SM
3016 * process.c (read_process_output, exec_sentinel): Don't burp if the
3017 sentinel/filter kills the current buffer (bug#6060).
3018
f9dddf52 3019 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
3020 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
3021 Remove unused var `args'.
3022 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
3023 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
3024 * doc.c (store_function_docstring): Use XSETCAR.
3025
f1e3642a
GM
30262010-04-28 Glenn Morris <rgm@gnu.org>
3027
faf535f8
GM
3028 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
3029 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
3030
c40f9449
GM
3031 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
3032
658f86ca
GM
3033 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
3034 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
3035
bc0b5f61
GM
3036 * Makefile.in (FONT_OBJ): New, set by configure.
3037 (FONT_DRIVERS): Use $FONT_OBJ.
3038
294c50a0
GM
3039 * Makefile.in (LIBXMU): Set with configure, not cpp.
3040 * s/aix4-2.h (LIBXMU):
3041 * s/hpux10-20.h (LIBXMU):
3042 Remove definition, now set in configure.
3043
e6ec4e99
GM
3044 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
3045
f1e3642a
GM
3046 * m/amdx86-64.h [i386]: Move this test to configure.in.
3047
c6ea2936
GM
30482010-04-27 Glenn Morris <rgm@gnu.org>
3049
8fdac2c3
GM
3050 * Makefile.in (LIBXTR6): Set with configure, not cpp.
3051 * s/unixware.h (NEED_LIBW): Remove definition.
3052
986fb647
GM
3053 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
3054 (TOOLKIT_LIBW): New, set by configure.
3055 (@X_TOOLKIT_TYPE@): No longer define it.
3056
c6ea2936
GM
3057 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
3058 (MOTIF_LIBW): Set with configure, not cpp.
3059 * s/aix4-2.h (LIB_MOTIF):
3060 * s/gnu-linux.h (LIB_MOTIF):
3061 * s/unixware.h (LIB_MOTIF): Move to configure.in.
3062
aaa36002
DN
30632010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
3064
3065 Reduce CPP usage.
3066 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
3067 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
3068 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
3069 definitions and undefs. Inline definitions in the only user.
3070 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 3071
b678dd8b
GM
30722010-04-27 Glenn Morris <rgm@gnu.org>
3073
76cda504
GM
3074 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
3075 since the defaults (set by the system file) are fine in most cases.
3076 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
3077 * m/ibms390x.h (START_FILES, LIB_STANDARD):
3078 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
3079 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
3080 Remove definitions, since they are set correctly in s/gnu-linux.h.
3081 * s/freebsd.h (START_FILES, LIB_STANDARD):
3082 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3083 * s/hpux10-20.h (START_FILES):
3084 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
3085 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
3086
b678dd8b
GM
3087 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
3088 (MOTIF_LIBW): Use $LIBXP.
3089 (otherobj): Use $WIDGET_OBJ.
3090
9452ded1
DN
30912010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
3092
7e10844c
DN
3093 * Makefile.in (LIBS_MACHINE): Remove, unused.
3094
9452ded1
DN
3095 Use autoconf instead of cpp for LIB_MATH.
3096 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
3097 * s/cygwin.h (LIB_MATH): Likewise.
3098 * Makefile.in (LIB_MATH): Do not define with cpp.
3099 (LIBES): Use autoconf for LIB_MATH.
3100
fcebfc6a
KH
31012010-04-26 Kenichi Handa <handa@m17n.org>
3102
3103 * composite.c (Ffind_composition_internal): Fix the return value
3104 for an automatic composition.
3105
39e2ad1b
DN
31062010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
3107
3108 Remove all NO_ARG_ARRAY uses.
3109 * fns.c (concat2, concat3, nconc2):
3110 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
3111 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
3112 * m/xtensa.h (NO_ARG_ARRAY):
3113 * m/template.h (NO_ARG_ARRAY):
3114 * m/sparc.h (NO_ARG_ARRAY):
3115 * m/sh3.h (NO_ARG_ARRAY):
3116 * m/mips.h (NO_ARG_ARRAY):
3117 * m/macppc.h (NO_ARG_ARRAY):
3118 * m/iris4d.h (NO_ARG_ARRAY):
3119 * m/intel386.h (NO_ARG_ARRAY):
3120 * m/ibms390x.h (NO_ARG_ARRAY):
3121 * m/ibms390.h (NO_ARG_ARRAY):
3122 * m/ibmrs6000.h (NO_ARG_ARRAY):
3123 * m/ia64.h (NO_ARG_ARRAY):
3124 * m/hp800.h (NO_ARG_ARRAY):
3125 * m/arm.h (NO_ARG_ARRAY):
3126 * m/amdx86-64.h (NO_ARG_ARRAY):
3127 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
3128
adf4f59c
EZ
31292010-04-25 Eli Zaretskii <eliz@gnu.org>
3130
6bdf5d65
EZ
3131 * xdisp.c (display_line): Don't assume 2nd call to
3132 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
3133 (iterate_out_of_display_property): New function, body from pop_it.
3134 (pop_it): Use it.
adf4f59c 3135
dfbbda83
GM
31362010-04-24 Glenn Morris <rgm@gnu.org>
3137
3138 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
3139 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
3140 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
3141 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
3142
2d4018aa
EZ
31432010-04-24 Eli Zaretskii <eliz@gnu.org>
3144
a49884a6
EZ
3145 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
3146 use `get_next_display_element' and `set_iterator_to_next' to
3147 advance to the next character, when looking for the character that
3148 begins the next row.
3149
76db6fcc 3150 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
3151 definition of "struct Lisp_Symbol".
3152
70eab5c1
GM
31532010-04-24 Glenn Morris <rgm@gnu.org>
3154
3155 * Makefile.in (CRT_DIR): New variable, set by configure.
3156 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
3157 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
3158
1ad4cc3d
DN
31592010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3160
e769f484
DN
3161 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
3162
4196ff33
DN
3163 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
3164
879b0ee4
DN
3165 Remove redundant flags.
3166 * s/freebsd.h (C_SWITCH_SYSTEM):
3167 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
3168 * s/netbsd.h (C_SWITCH_SYSTEM):
3169 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
3170 of these.
3171
03cbbcb8
DN
3172 Simplify m/intel386.h.
3173 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
3174 user: ecrt0.c.
3175 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
3176 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
3177 the only user: s/unixware.h.
3178 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
3179 from m/intel386.h.
3180 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
3181 moved here from m/intel386.h.
3182
1ad4cc3d
DN
3183 * m/mips.h: Remove #if 0 code.
3184
8785b888
EZ
31852010-04-23 Eli Zaretskii <eliz@gnu.org>
3186
728588cc
EZ
3187 Fix display of composed characters from L2R scripts in bidi buffers.
3188 * xdisp.c (set_iterator_to_next, next_element_from_composition):
3189 After advancing IT past the composition, resync the bidi iterator
3190 with IT's position. (Bug#5977)
3191
a63f80b4
DN
31922010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3193
3194 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
3195 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
3196
ff5dec5c
SM
31972010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
3198
3199 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
3200
8785b888
EZ
32012010-04-23 Eli Zaretskii <eliz@gnu.org>
3202
58ccf243 3203 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
3204 * xdisp.c (pop_it): When the stack is popped after displaying
3205 from a string, bidi-iterate to exit from the text portion covered
3206 by the `display' property or overlay. (Bug#5988, bug#5920)
3207
feeb1604
DN
32082010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3209
8e324eb6
DN
3210 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
3211 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
3212
809fcaba
DN
3213 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
3214 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
3215
ed710380
DN
3216 Simplify STARTFILES definition.
3217 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
3218 relying on Makefile.in to define it.
3219 * s/cygwin.h (START_FILES): Likewise.
3220 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
3221
feeb1604
DN
3222 Clean up Solaris code.
3223 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
3224 (LIB_MOTIF): Remove, configure takes care of this.
3225 (NOT_USING_MOTIF): Remove, unused.
3226 * xrdb.c: Remove #if 0-ed #include.
3227 (SYSV): Remove conditional for old SysV.
3228 * sysdep.c (closedir): Remove conditional code for Solaris,
3229 Solaris has closedir.
3230
a0d0b563
JD
32312010-04-22 Jan Djärv <jan.h.d@swipnet.se>
3232
3233 * xsettings.c (read_and_apply_settings): Check if current_font is
3234 NULL before strcmp (Bug#6001).
3235
56bae7c7
DN
32362010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
3237
3238 Clean up HP-UX files.
3239 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
3240 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
3241 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
3242 * s/hpux10-20.h: ... to the only user, here.
3243
372b7a95
EZ
32442010-04-21 Eli Zaretskii <eliz@gnu.org>
3245
3246 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
3247 use buffer-local values of paragraph-start and paragraph-separate.
3248 <paragraph_start_re, paragraph_separate_re>: Rename from
3249 fallback_paragraph_start_re and fallback_paragraph_separate_re.
3250 (Bug#5992)
3251
f904c0f9
JD
32522010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3253
3254 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
3255 current_tool_bar_style are new.
3256 (store_config_changed_event): Rename from store_font_changed_event.
3257 (XSETTINGS_TOOL_BAR_STYLE): New define.
3258 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
3259 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
3260 HAVE_XFT.
3261 (something_changedCB): store_font_changed_event is now
c4cc8b9a 3262 store_config_changed_event.
f904c0f9
JD
3263 (parse_settings): Rename from parse_xft_settings. Read
3264 non-xft xsettings outside #ifdef HAVE_XFT.
3265 (read_settings): Renamed from read_xft_settings.
3266 (apply_xft_settings): Take current settings as parameter. Do not
3267 call read_(xft)_settings.
3268 (read_and_apply_settings): New function.
3269 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
3270 read_and_apply_settings if there are settings to be read.
3271 (init_xsettings): Renamed from init_xfd_settings.
3272 Call read_and_apply_settings unconditionally.
3273 (xsettings_initialize): Call init_xsettings.
3274 (Ftool_bar_get_system_style): New function.
3275 (syms_of_xsettings): Define Qmonospace_font_name and
3276 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 3277 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 3278 dynamic-setting.
31a01b90 3279 Move misplaced HAVE_GCONF
f904c0f9
JD
3280
3281 * xsettings.h (Ftool_bar_get_system_style): Declare.
3282
3283 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
3284 Qtext, Qboth, Qboth_horiz are new.
3285 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
3286 Vtool_bar_style, tool_bar_max_label_size.
3287
3288 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
3289
3290 * keyboard.c: QClabel is new.
3291 (parse_tool_bar_item): Take out QClabel from tool bar items.
3292 Try to construct a label if ther is no QClabel.
3293 (syms_of_keyboard): Intern :label as QClabel.
3294
3295 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
3296 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
3297 New.
3298
3299 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
3300 dynamic-setting.el.
3301
3302 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
3303 (xg_make_tool_item, xg_show_toolbar_item): New function.
3304 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
3305 Call xg_make_tool_item to make a tool bar item.
3306 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
3307
3308 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
3309 into account for toolbars.
3310
c632dfda
JD
33112010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3312
3313 * data.c (make_blv): Declarations before code (Bug#5993).
3314
10efe302
GM
33152010-04-21 Glenn Morris <rgm@gnu.org>
3316
3317 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
3318 Define using autoconf, not cpp.
3319 (LIBXSM): New variable, set by autoconf.
3320 (LIBXT): Use $LIBXSM.
3321
4285ac5a
DN
33222010-04-21 Dan Nicolaescu <local_user@dannlt>
3323
3ec759e7
DN
3324 Remove NOMULTIPLEJOBS, unused.
3325 * s/template.h (NOMULTIPLEJOBS):
3326 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
3327
4285ac5a
DN
3328 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
3329 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
3330 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
3331 detects -znocombreloc and passes it to the linker
3332 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
3333
2807228d
GM
33342010-04-21 Glenn Morris <rgm@gnu.org>
3335
3336 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
3337
574c05e2
KK
33382010-04-21 Karel Klíč <kklic@redhat.com>
3339
3340 * Makefile.in (LIBSELINUX_LIBS): New.
3341 (LIBES): Add $LIBSELINUX_LIBS.
3342 * eval.c, lisp.h (call7): New function.
3343 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
3344 (Ffile_selinux_context, Fset_file_selinux_context):
3345 New functions.
3346 (Fcopy_file): New parameter preserve-selinux-context.
3347 (Frename_file): Preserve selinux context when renaming by copy-file.
3348
91eac4bb 33492010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 3350 Eli Zaretskii <eliz@gnu.org>
91eac4bb 3351
50426a04
JB
3352 Don't depend on cm.c or termcap.c on Windows, use stubs.
3353 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
3354 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
3355 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
3356 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
3357 (sys_tputs, sys_tgetstr): New stubs.
3358 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
3359 (tputs, tgetstr): New; define to sys_*.
91eac4bb 3360
938efb77
JB
33612010-04-20 Juanma Barranquero <lekktu@gmail.com>
3362
3363 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
3364
b4bf28b7
SM
33652010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3366
8b1e1112
SM
3367 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
3368 Just signal a warning rather than an error when inside a let.
3369 (Fmake_variable_frame_local): Add the same test.
3370
933ac235
SM
3371 * font.c (syms_of_font): Make the style table vars read-only.
3372
b4bf28b7
SM
3373 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
3374 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
3375
3376 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
3377
93d68d0c
EZ
33782010-04-20 Eli Zaretskii <eliz@gnu.org>
3379
3380 Fix R2L paragraph display on TTY.
3381
3382 * xdisp.c (unproduce_glyphs): New function.
3383 (display_line): Use it when produced glyphs are discarded from R2L
3384 glyph rows.
3385 (append_composite_glyph): In R2L rows, prepend the glyph rather
3386 than appending it.
3387
3388 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
3389 rather than append it. Set up the resolved_level and bidi_type
3390 attributes of the appended glyph.
283ccc18
EZ
3391 (produce_special_glyphs): Mirror the backslash continuation
3392 character in R2L lines.
93d68d0c 3393
283ccc18 3394 Implement display of R2L paragraphs in GUI sessions.
26cdf528 3395
283ccc18
EZ
3396 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
3397 append_stretch_glyph.
3398 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
3399 off-by-one error in computing x at end of text in the row.
3400 (append_stretch_glyph): In reversed row, prepend the glyph rather
3401 than append it. Set resolved_level and bidi_type of the glyph.
3402 (extend_face_to_end_of_line): If the row is reversed, prepend a
3403 stretch glyph whose width is such that the rightmost glyph will be
3404 drawn at the right margin of the window. Fix off-by-one error on
3405 TTY frames in testing whether a line needs face extension. Fix
3406 face extension at ZV. If this is the last glyph row, use
3407 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
3408 region face.
3409 (set_cursor_from_row, display_line): Use
26cdf528
EZ
3410 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
3411 row->continuation_lines_width.
283ccc18
EZ
3412 (next_element_from_buffer): Don't call bidi_paragraph_init if we
3413 are at ZV. Fixes a crash when reseated to ZV by
3414 try_window_reusing_current_matrix.
45903529
EZ
3415 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
3416 which happens with R2L glyph rows. Fixes a crash when inserting a
3417 character at end of an R2L line.
283ccc18
EZ
3418 (set_cursor_from_row): Don't be fooled by truncated rows: don't
3419 treat them as having zero-width characters. Improve comments.
3420 Don't reverse pos_before and pos_after for reversed glyph rows.
3421 Set cursor.x to negative value when the cursor might be on the
3422 left fringe.
3423 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
3424 left fringe, not the right one.
f951a506
EZ
3425 (notice_overwritten_cursor, draw_phys_cursor_glyph)
3426 (erase_phys_cursor): For reversed cursor_row, support cursor on
3427 the left fringe.
3428
283ccc18
EZ
3429 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
3430 of continuation indicators on the fringes.
3431 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
3432 left fringe.
3433
f951a506
EZ
3434 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
3435 draw cursor on the left fringe.
3436
3437 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
3438 cursor on the left fringe.
3439
f951a506
EZ
3440 * dispnew.c (update_text_area): Handle reversed desired rows when
3441 the cursor is on the left fringe.
3442 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
3443 below, not by 0, for when the cursor is on the left fringe.
3444
3bb49aaf
JD
34452010-04-20 Jan Djärv <jan.h.d@swipnet.se>
3446
3447 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
3448 widget is a scrollbar.
3449
c0be27fd
KH
34502010-04-20 Kenichi Handa <handa@m17n.org>
3451
3452 * charset.c (char_charset): Consider Vcharset_non_preferred_head
3453 only when the arg CHARSET_LIST is nil.
3454
ce5b453a
SM
34552010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3456
3457 Make variable forwarding explicit rather the using special values.
3458 Basically, this makes the structure of buffer-local values and object
3459 forwarding explicit in the type of Lisp_Symbols rather than use
3460 special Lisp_Objects for that. This tends to lead to slightly more
3461 verbose code, but is more C-like, simpler, and makes it easier to make
3462 sure we handled all cases, among other things by letting the compiler
3463 help us check it.
3464 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
3465 Removing forwarding objects.
3466 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
3467 (struct Lisp_Symbol): Make the various forms of variable-forwarding
3468 explicit rather than hiding them inside Lisp_Object "values".
3469 (XFWDTYPE): New macro.
3470 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
3471 (XBUFFER_LOCAL_VALUE): Remove.
3472 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
3473 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
3474 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
3475 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
3476 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
3477 Remove the Lisp_Misc_* header.
3478 (struct Lisp_Buffer_Local_Value): Redefine.
3479 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
3480 (struct Lisp_Misc_Any): Add filler to get the right size.
3481 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
3482 Lisp_Intfwd.
3483 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
3484 (DEFVAR_KBOARD): Allocate a forwarding object.
3485 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
3486 (let_shadows_global_binding_p): New function.
3487 (union Lisp_Val_Fwd): New type.
3488 (make_blv): New function.
3489 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
3490 (store_symval_forwarding, swap_in_global_binding, Fboundp)
3491 (swap_in_symval_forwarding, find_symbol_value, Fset)
3492 (let_shadows_buffer_binding_p, set_internal, default_value)
3493 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
3494 (Fkill_local_variable, Fmake_variable_frame_local)
3495 (Flocal_variable_p, Flocal_variable_if_set_p)
3496 (Fvariable_binding_locus):
3497 * xdisp.c (select_frame_for_redisplay):
3498 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
3499 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
3500 * frame.c (store_frame_param):
3501 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
3502 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
3503 value structure.
3504 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
3505 (clone_per_buffer_values): Only adjust markers into the current buffer.
3506 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
3507 (Fbuffer_local_value, set_buffer_internal_1)
3508 (swap_out_buffer_local_variables):
3509 Adapt to the new symbol value structure.
3510 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
3511 (defvar_per_buffer): Take a new arg for the fwd object.
3512 (buffer_lisp_local_variables): Return a proper alist (different fix
3513 for bug#4138).
3514 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
3515 (Fgarbage_collect): Don't handle buffer_defaults specially.
3516 (mark_object): Handle new symbol value structure rather than the old
3517 special Lisp_Misc_* objects.
3518 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
3519 * term.c (set_tty_color_mode):
3520 * bidi.c (bidi_initialize): Don't access the ->value field directly.
3521 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
3522 a buffer_local_flags.
3523 * print.c (print_object): Get rid of impossible forwarding objects.
3524
fd3998ff
EZ
35252010-04-19 Eli Zaretskii <eliz@gnu.org>
3526
3527 * bidi.c (bidi_get_type, bidi_get_category)
3528 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
3529 (bidi_type_of_next_char, bidi_level_of_next_char):
3530 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 3531
e42cd1a7
JB
35322010-04-19 Juanma Barranquero <lekktu@gmail.com>
3533
3534 * dired.c (Ffile_attributes): Fix typo in docstring.
3535
6e104790 35362010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
3537
3538 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
3539 NSInteger (Bug#5811).
3540
6e104790 35412010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
3542
3543 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
3544 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
3545
6e104790 35462010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
3547
3548 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
3549
6e104790
SM
35502010-04-19 Chong Yidong <cyd@stupidchicken.com>
3551
3552 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
3553 terminal frames (Bug#5837).
3554
37dcfea0
EZ
35552010-04-19 Eli Zaretskii <eliz@gnu.org>
3556
d1da276f
EZ
3557 * .gdbinit (xsubchartable): New command.
3558
37dcfea0
EZ
35592010-04-19 Eli Zaretskii <eliz@gnu.org>
3560
3561 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 3562 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
3563 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
3564 and
3565 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
3566
e9515805
SM
35672010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3568
3569 * alloc.c (Fpurecopy): Hash-cons if requested.
3570 (syms_of_alloc): Update purify-flag docstring.
3571
22aa44a8
JD
35722010-04-18 Jan Djärv <jan.h.d@swipnet.se>
3573
3574 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
3575 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
3576
ebb5722e
EZ
35772010-04-17 Eli Zaretskii <eliz@gnu.org>
3578
3579 Fix a crash when an NSM character is inserted at BEGV.
3580
3581 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
3582 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
3583 NEUTRAL_B or UNKNOWN_BT.
3584
0f4442ef
EZ
35852010-04-16 Eli Zaretskii <eliz@gnu.org>
3586
3587 * xdisp.c (set_cursor_from_row): Don't consider possibility of
3588 other rows with cursor unless they are different from this row and
3589 this row is part of a continued line. (Bug#5943)
3590
7d4e45f8
DN
35912010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
3592
3593 * s/freebsd.h: Restore osreldate.h include.
3594 Suggested by Naohiro Aota.
3595
5ba5ec85
J
35962010-04-16 Jan Djärv <jan.h.d@swipnet.se>
3597
3598 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
3599
20af301d
CY
36002010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
3601
3602 * s/cygwin.h: Avoid linking against static libgcc.
3603
a4b000fb
JL
36042010-04-15 Juri Linkov <juri@jurta.org>
3605
3606 * window.c: Add Qscroll_command.
3607 Remove Vscroll_preserve_screen_position_commands.
3608 (window_scroll_pixel_based, window_scroll_line_based): Check the
3609 `scroll-command' property on the last command instead of searching
3610 the last command in Vscroll_preserve_screen_position_commands.
3611 (syms_of_window): Initialize and staticpro `Qscroll_command'.
3612 Put Qscroll_command property on Qscroll_up and Qscroll_down.
3613 (scroll-preserve-screen-position): Doc fix.
3614 (Vscroll_preserve_screen_position_commands): Remove variable.
3615
bc319ba4
DN
36162010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3617
6bb24457
DN
3618 * xdisp.c (message): Do not use NO_ARG_ARRAY.
3619
19d4c244
DN
36202010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
3621
3622 Reduce cpp use in Makefile.in.
3623 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
3624 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
3625 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
3626 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
3627 (CRT0_COMPILE): Remove, inline it in the only user.
3628
32129746
JL
36292010-04-14 Juri Linkov <juri@jurta.org>
3630
3631 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
3632 `scroll-up-command' and `M-v' from `scroll-down' to
3633 `scroll-down-command'.
3634
9013a7f8
JL
36352010-04-14 Juri Linkov <juri@jurta.org>
3636
3637 * window.c (Vscroll_preserve_screen_position_commands): New variable
3638 with the default value as the list of Qscroll_down and Qscroll_up.
3639 (window_scroll_pixel_based, window_scroll_line_based): Search the
3640 last command in the list Vscroll_preserve_screen_position_commands
3641 instead of comparing with Qscroll_up and Qscroll_down.
3642
4bef8d26
JD
36432010-04-13 Jan Djärv <jan.h.d@swipnet.se>
3644
92848133
JD
3645 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
3646 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
3647 does that.
3648
4bef8d26
JD
3649 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
3650 to zero.
3651
58b963f7
SM
36522010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3653
84164a0d
SM
3654 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
3655
2b0a91e7
SM
3656 Try to solve the problem of spurious EOF chars in long lines of text
3657 sent to interactive subprocesses.
3658 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
3659 (system_process_attributes): Remove unused var `ttotal'.
3660 * process.c (send_process): Don't bother breaking long line with EOF
3661 chars when talking to ttys any more.
3662 (wait_reading_process_output): Output a warning when called in such
3663 a way that it could block without being interruptible.
3664
58b963f7
SM
3665 Try to detect file modification within the same second.
3666 * buffer.h (struct buffer): New field modtime_size.
3667 * buffer.c (reset_buffer): Initialize it.
3668 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
3669 (Fverify_visited_file_modtime): Check it.
3670 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
3671 (Fset_visited_file_modtime): Set (or clear) it.
3672
01f5787b
SM
36732010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3674
3675 * process.c (status_notify): Remove unused var `ro'.
3676
83725342
JD
36772010-04-12 Jan Djärv <jan.h.d@swipnet.se>
3678
3679 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
3680 more than one visual (Bug#5938).
3681
b9465836
DN
36822010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
3683
50426a04
JB
3684 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
3685 Undefine.
b9465836 3686
8d9c8ece
DN
36872010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
3688
b1f52161
DN
3689 Remove C_SWITCH_SYSTEM_TEMACS.
3690 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
3691 (malloc, realloc, free): Use emacs, not temacs for conditional
3692 definition.
3693
3694 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
3695 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
3696
8d9c8ece
DN
3697 Use autoconf, not cpp for some variables.
3698 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
3699 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
3700 (ALL_CFLAGS): Use them as make variables.
3701 (really-lwlib, really-oldXMenu): Do not pass them.
3702
1ecb2d3f
JD
37032010-04-11 Jan Djärv <jan.h.d@swipnet.se>
3704
3705 * xmenu.c (apply_systemfont_to_dialog): New.
3706 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
3707
3a4fa2f2
SM
37082010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3709
97e53006
SM
3710 * process.c (exec_sentinel): Preserve current-buffer.
3711
3a4fa2f2
SM
3712 * process.c (read_process_output): Move the save-current-buffer to
3713 apply to both the filter and the non-filter branches.
3714
88df7221
DN
37152010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
3716
3717 * s/msdos.h (UNEXEC): New definition.
3718
5634ff85
YM
37192010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3720
6eff5c3d
YM
3721 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
3722 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
3723
3724 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
3725 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
3726 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
3727 TRY_WINDOW_CHECK_MARGINS.
3728
3729 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
3730 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
3731 width only when it is for padding.
5634ff85 3732
b13aef54
J
37332010-04-09 Jan Djärv <jan.h.d@swipnet.se>
3734
3735 * xfns.c (Fx_show_tip): Call try_window in a loop until
3736 fonts_changed_p is zero (Bug#2423).
3737
21d28484
EZ
37382010-04-08 Eli Zaretskii <eliz@gnu.org>
3739
3740 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
3741 the end of TEXT_AREA. (Bug#5856)
3742
0269ef77
JD
37432010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3744
3745 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
3746 HAVE_GCONF.
3747
5930fe97
EZ
37482010-04-08 Eli Zaretskii <eliz@gnu.org>
3749
3750 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
3751 prev.orig_type, for resolving type of NSM. (Bug#5858)
3752
99852628
JD
37532010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3754
3755 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
3756 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
3757 in current_font.
3758 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
3759 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
3760 New functions.
3761 (syms_of_xsettings): Initialize current_font.
3762 defsubr Sfont_get_system_normal_font.
99852628
JD
3763
3764 * xsettings.h (Ffont_get_system_normal_font,
3765 xsettings_get_system_normal_font): Declare.
3766
3767 * xfns.c (extern xlwmenu_default_font): Remove.
3768 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
3769 to xlwmenu.c.
3770
3771 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
3772 menu items in UTF-8.
3773
3774 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
3775 (apply_systemfont_to_menu): New function.
3776 (set_frame_menubar, create_and_show_popup_menu): Call
3777 apply_systemfont_to_menu.
3778
7fc874c4
J
37792010-04-07 Jan Djärv <jan.h.d@swipnet.se>
3780
3781 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
3782 FRAME_LINE_TO_PIXEL_Y.
3783
3784 * xterm.c (x_set_window_size_1): Don't add border_width/height to
3785 pixelwidth/height.
3786
863bf481
DN
37872010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
3788
5e5a3b92
DN
3789 Simplify code for HP machines.
3790 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
3791 for GNU_LINUX, not needed.
3792 (UNEXEC, NEED_BSDTTY): Move definitions...
3793 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
3794
863bf481
DN
3795 * m/iris4d.h (UNEXEC): Move definition ...
3796 * s/irix6-5.h (UNEXEC): ... here.
3797
3e6bec3b
JD
37982010-04-04 Jan Djärv <jan.h.d@swipnet.se>
3799
3800 * xfns.c (set_machine_and_pid_properties): New function.
3801 (Fx_create_frame): Call set_machine_and_pid_properties.
3802
2912322b
SM
38032010-04-03 Eli Zaretskii <eliz@gnu.org>
3804
1502b819
EZ
3805 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
3806 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
3807 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
3808
2912322b
SM
3809 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
3810 in this function. (Bug#5703)
3811
38122010-04-03 Chong Yidong <cyd@stupidchicken.com>
3813
3814 * nsterm.h: Fix last change.
3815
c435b432
DN
38162010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
3817
a568f507
DN
3818 * m/intel386.h (NO_REMAP): Move definition ...
3819 * s/msdos.h (NO_REMAP): ... here.
3820
4cd9f6c2
DN
3821 * m/vax.h (CRT0_DUMMIES): Remove, unused.
3822
c435b432
DN
3823 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
3824 used on those platforms.
3825
42a2c622
DN
38262010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
3827
3828 Remove extern errno declarations.
3829 * xterm.c:
3830 * xrdb.c:
3831 * w32term.c:
3832 * unexec.c:
3833 * unexaix.c:
3834 * sysdep.c:
3835 * process.c:
3836 * lread.c:
3837 * keyboard.c:
3838 * floatfns.c:
3839 * filelock.c:
3840 * fileio.c:
3841 * emacs.c (main):
3842 * ecrt0.c:
3843 * dispnew.c:
3844 * callproc.c:
3845 * buffer.c: Remove errno extern declarations.
3846 * s/netbsd.h (NEED_ERRNO): Remove.
3847
8224f93d
DN
38482010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
3849
3850 Remove all uses of LIBX11_SYSTEM.
3851 * Makefile.in (LIBX11_SYSTEM): Remove.
3852 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
3853 instead.
3854
814062c7
EZ
38552010-04-01 Eli Zaretskii <eliz@gnu.org>
3856
ed68db4d
EZ
3857 Remove support for DJGPP v1.x (bug#5813).
3858
3859 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
3860 * s/msdos.h:
3861 * unexec.c (make_hdr, copy_text_and_data):
3862 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 3863 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
3864 (IT_set_terminal_modes, __write, _rename, gethostname)
3865 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
3866 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
3867 the value of __DJGPP__.
ed68db4d
EZ
3868 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
3869 compatibility code.
8224f93d
DN
3870 * lread.c:
3871 * gmalloc.c (memalign):
3872 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
3873 * emacs.c (main):
3874 * dosfns.c (init_dosfns):
ed68db4d
EZ
3875 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
3876
52f4d8d5
EZ
38772010-04-01 Eli Zaretskii <eliz@gnu.org>
3878
814062c7
EZ
3879 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
3880 string with `cursor' property comes from an `after-string'
3881 overlay. (Bug#5816)
3882
0dc2e11d
GM
38832010-04-01 Glenn Morris <rgm@gnu.org>
3884
3885 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
3886 Define as Makefile variables.
3887 (LIBX): Use above variables rather than directly using autoconf.
3888
1d29df59
DN
38892010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
3890
3891 Clean up BSD_SYSTEM use.
3892 * xterm.c:
3893 * process.c:
3894 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
3895 for including <sys/ioctl.h>.
3896 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
3897 code is only used for MSDOS.
3898
1546c559
JL
38992010-03-31 Juri Linkov <juri@jurta.org>
3900
3901 * image.c: Add `Qextension_data'.
3902 (syms_of_image): Initialize and staticpro `Qextension_data'.
3903 (Fimage_metadata): Rename from `Fimage_extension_data'.
3904 (gif_load): Put GIF extension data to the property
3905 `Qextension_data'.
3906
6521c534
CY
39072010-03-31 Chong Yidong <cyd@stupidchicken.com>
3908
3909 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
3910 * nsterm.h: Fix prototype.
3911
52c30783
EZ
39122010-03-31 Eli Zaretskii <eliz@gnu.org>
3913
3914 * xdisp.c (highlight_trailing_whitespace): Support highlight of
3915 trailing whitespace in right-to-left rows.
3916
855a0da7
SM
39172010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3918
3919 Get rid of the direct_output optimizations.
3920 * keyboard.c (nonundocount): Remove extern declaration.
3921 (command_loop_1): Remove brittle optimisation for cheap and
3922 common operations.
3923 * xdisp.c (redisplay_internal): Don't bother checking
3924 redisplay_performed_directly_p any more.
3925 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
3926 any more.
3927 * dispnew.c (redisplay_performed_directly_p)
3928 (direct_output_for_insert, direct_output_forward_char):
3929 * dispextern.h (redisplay_performed_directly_p)
3930 (direct_output_for_insert, direct_output_forward_char): Remove.
3931 * cmds.c (nonundocount): Make it static.
3932
85738751 39332010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
3934
3935 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
3936
85738751 39372010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
3938
3939 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
3940 invisible (Bug#5766).
3941
85738751 39422010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 3943
855a0da7
SM
3944 * xdisp.c (x_consider_frame_title, update_window_cursor):
3945 Remove HAVE_NS conditionals.
194d44e7 3946 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
3947
3948 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
3949 filename for the title.
3950 (ns_set_doc_edited): Do nothing if the selected window is a
3951 minibuffer window.
3952
3953 * nsterm.h: Add prototypes for ns_set_name_as_filename and
3954 ns_set_doc_edited.
3955
3956 * nsterm.m: Remove unneeded prototype.
3957
85738751 39582010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
3959
3960 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
3961 in the DOC file. (Bug#5336)
3962
85738751 39632010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
3964
3965 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
3966
75d1428c
SM
39672010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3968
3969 * window.c (keys_of_window): Remove redundant/overridden bindings.
3970
82043cfb
EZ
39712010-03-30 Eli Zaretskii <eliz@gnu.org>
3972
3973 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
3974 Restore original behavior when the iterator is not bidi_p.
3975
b5dd0ae7
DN
39762010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3977
3978 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
3979
bd924a5d
EZ
39802010-03-30 Eli Zaretskii <eliz@gnu.org>
3981
3982 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
3983 are outside the range of cached character positions.
3984
3580374b
JB
39852010-03-30 Juanma Barranquero <lekktu@gmail.com>
3986
3987 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
3988
a7b02820
EZ
39892010-03-30 Eli Zaretskii <eliz@gnu.org>
3990
3991 Initial support for bidirectional editing.
3992
3993 * Makefile.in (obj): Include bidi.o.
3994 (bidi.o): New target.
3995
3996 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
3997 ($(BLD)/bidi.$(O)): New target.
3998
3999 * bidi.c: New file.
4000
4001 * buffer.h (struct buffer): New members bidi_display_reordering
4002 and bidi_paragraph_direction.
4003
4004 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
4005 and bidi_paragraph_direction.
4006 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
4007 and bidi-paragraph-direction.
4008 (Fbuffer_swap_text): Swap the values of
4009 bidi_display_reordering and bidi_paragraph_direction.
4010
4011 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
4012 (bidi_type_t, bidi_dir_t): New types.
4013 (bidi_saved_info, bidi_stack, bidi_it): New structures.
4014 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
4015 prev_stop, base_level_stop, and eol_pos.
4016 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
4017 (IT_STACK_SIZE): Enlarge to 5.
4018 (struct glyph_row): New member reversed_p.
4019 <string_buffer_position>: Update prototype.
4020 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
4021 glyph_row if bidi_it.paragraph_dir == R2L.
4022 (struct glyph): New members resolved_level and bidi_type.
4023
4024 * dispnew.c (direct_output_forward_char): Give up if we need bidi
4025 processing or buffer's direction is right-to-left.
4026 (prepare_desired_row): Preserve the reversed_p flag.
4027 (row_equal_p): Compare the reversed_p attributes as well.
4028
4029 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
4030 bidi_init_it and set it->paragraph_embedding from the current
4031 buffer's value of bidi_paragraph_direction.
4032 (reseat_1): Initialize bidi_it.first_elt.
4033 (set_iterator_to_next, next_element_from_buffer): Use the value of
4034 paragraph_embedding to determine the paragraph direction.
4035 (set_iterator_to_next): Under bidi reordering, call
4036 bidi_get_next_char_visually. Call bidi_paragraph_init if the
4037 new_paragraph flag is set in the bidi iterator.
4038 (next_element_from_buffer): If bidi_it.first_elt is set,
4039 initialize paragraph direction and find the first character to
4040 display in the visual order. If reseated to a middle of a line,
4041 prime the bidi iterator starting at the line's beginning. Handle
4042 the situation where we overstepped stop_charpos due to
4043 non-linearity of the bidi iteration. Likewise for when we back up
4044 beyond the previous stop_charpos. When moving across stop_charpos,
4045 record it in prev_stop.
4046 (display_line): Set row->end and it->start for the next row to the
4047 next character in logical order. Always extend reversed_p rows to
4048 the end of line, even if they end at ZV. Copy the reversed_p flag
4049 to the next glyph row. Keep calling set_cursor_from_row for
4050 bidi-reordered rows even if we already have a possible candidate
4051 for cursor position. Set row_end after all the row's glyphs have
4052 been produced, by looping over the glyphs. Record the position
4053 after EOL in it->eol_pos, and use it to set end_pos of the last
4054 row produced for a continued line.
4055 <Qright_to_left, Qleft_to_right>: New variables.
4056 (syms_of_xdisp): Initialize and staticpro them.
4057 (string_buffer_position_lim): New function.
4058 (string_buffer_position): Most of code moved to
4059 string_buffer_position_lim. Last argument and return value are
4060 now EMACS_INT; all callers changed.
4061 (set_cursor_from_row): Rewritten to support bidirectional text and
4062 reversed glyph rows.
4063 (text_outside_line_unchanged_p, try_window_id): Disable
4064 optimizations if we are reordering bidirectional text and the
4065 paragraph direction can be affected by the change.
4066 (append_glyph, append_composite_glyph)
4067 (produce_image_glyph, append_stretch_glyph): Set the
4068 resolved_level and bidi_type members of each glyph.
4069 (append_glyph): If the glyph row is reversed, prepend the glyph
4070 rather than appending it.
4071 (handle_stop_backwards): New function.
4072 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
4073 (reseat): call handle_stop_backwards to recompute prev_stop and
4074 base_level_stop for the new position.
4075 (handle_invisible_prop): Under bidi iteration, skip invisible text
4076 using bidi_get_next_char_visually. If we are `reseat'ed, init the
4077 paragraph direction. Update IT->prev_stop after skipping
4078 invisible text.
4079 (move_it_in_display_line_to): New variables prev_method
4080 and prev_pos. Compare for strict equality in
4081 BUFFER_POS_REACHED_P.
4082 (try_cursor_movement): Examine all the candidate rows that occlude
4083 point, to return the best match. If rows are bidi-reordered
4084 and point moved backwards, back up to the row that is not a
4085 continuation line, and start looking for a suitable row from
4086 there.
4087
4088 * term.c (append_glyph): Reverse glyphs by pre-pending them,
4089 rather than appending, if the glyph_row's reversed_p flag is set.
4090 Set the resolved_level and bidi_type members of each glyph.
4091
4092 * .gdbinit (pbiditype): New command.
4093 (pgx): Use it to display bidi level and type of the glyph.
4094 (pitx): Display some bidi information about the iterator.
4095 (prowlims, pmtxrows): New commands.
4096
32a8894e
DN
40972010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4098
4099 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
4100 * s/usg5-4.h (LIBS_DEBUG):
4101 * s/irix6-5.h (C_DEBUG_SWITCH):
4102 * s/gnu-linux.h (LIBS_DEBUG):
4103 * s/darwin.h (LIBS_DEBUG):
4104 * s/bsd-common.h (LIBS_DEBUG):
4105 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
4106 * m/iris4d.h (LIBS_DEBUG):
4107 * m/hp800.h (LIBS_DEBUG): Remove definitions.
4108
4109 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
4110 (LIBS_DEBUG): Remove definition.
4111
649dbf36
CY
41122010-03-27 Chong Yidong <cyd@stupidchicken.com>
4113
4114 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
4115 Windows.
4116
cad4261f
YM
41172010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4118
4119 * process.c (Fmake_network_process): Don't call turn_on_atimers around
4120 `connect' (Bug#5723).
4121
cd591dbc
HE
41222010-03-25 Helmut Eller <eller.helmut@gmail.com>
4123
4124 * process.c (Fmake_network_process): Call `select' for interrupted
4125 `connect' rather than creating new socket (Bug#5173).
4126
e867cb5d 41272010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
4128
4129 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
4130
4131 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
4132
4133 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
4134
e867cb5d 41352010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
4136
4137 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
4138 XLoadQueryFont.
4139
e867cb5d 41402010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
4141
4142 * coding.c (decode_coding_ccl): Fix previous change for the
4143 multibyte case.
fb608df3
KH
4144 (encode_coding_ccl): Don't setup ccl program here. Fix for the
4145 case that the output buffer is fullfilled.
4146 (encode_coding): Setup ccl program here.
fbdc1721 4147
5845f0ed
DN
41482010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
4149
814fb708
DN
4150 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
4151
5845f0ed
DN
4152 Simplify LIBS_MACHINE definitions.
4153 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
4154 * m/iris4d.h (LIBS_MACHINE): Likewise.
4155 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
4156 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 4157 * s/netbsd.h: Remove commented out code.
5845f0ed 4158
b7064064
DN
41592010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
4160
df7734b2
DN
4161 Remove dead code dealing with POSIX_SIGNALS.
4162 * atimer.c (set_alarm): Remove dead code, all USG systems define
4163 POSIX_SIGNALS.
4164 * data.c (arith_error): Likewise.
4165 * keyboard.c (input_available_signal, handle_user_signal)
4166 (interrupt_signal): Likewise.
4167 * process.c (sigchld_handler): Likewise.
4168 (create_process): Remove if 0 code. Remove HPUX conditional when
4169 !defined (POSIX_SIGNALS), it cannot be true.
4170 * syssignal.h: Remove USG5_4 and USG conditionals when
4171 !POSIX_SIGNALS, they cannot be true.
4172
b7064064
DN
4173 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
4174 NO_SOCK_SIGIO, not used anymore.
4175
55da5ee3
DN
41762010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
4177
0be96e3a
DN
4178 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
4179 support vax on BSDs.
4180
55da5ee3
DN
4181 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
4182 * s/aix4-2.h (ORDINARY_LINK): ... here.
4183
c0282183
AS
41842010-03-21 Andreas Schwab <schwab@linux-m68k.org>
4185
82c3d67a
AS
4186 * Makefile.in (abs_builddir): Define.
4187 (bootstrap_exe): Use it.
4188 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 4189
3613edce
SM
41902010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4191
4192 * Makefile.in (bootstrap_exe): Use an absolute name.
4193
7f110ddc
DN
41942010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4195
22e87574
DN
4196 Remove support for old GNU/Linux using libc version 5.
4197 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
4198 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
4199
05a670e6
DN
4200 Consolidate redundant definitions in s/bsd-common.h.
4201 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4202 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4203 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
4204 doing it in all files that include this one.
4205 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4206 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4207 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4208 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4209 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4210 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4211 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4212 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4213 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4214
2968f561
DN
4215 Consolidate redundant definitions.
4216 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
4217 it's undefined in all files that include this one.
4218 (POSIX_SIGNALS): Define here instead of doing it in all files that
4219 include this one.
4220 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4221 (POSIX_SIGNALS): Do not define.
4222 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4223 (POSIX_SIGNALS): Do not define.
4224 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4225 (POSIX_SIGNALS): Do not define.
4226
15d25dc0
DN
4227 Remove support for old UNIX System V systems.
4228 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
4229 * s/usg-5-4-2.h: Remove.
4230
07e339e4
DN
4231 Remove support for Solaris on PPC and for old versions.
4232 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
4233 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
4234 that cancel each other.
4235 * s/sol2-3.h:
4236 * s/sol2-4.h:
4237 * s/sol2-5.h: Remove.
4238 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
4239 (NO_REMAP): Remove, unused.
4240 (UNEXEC): Move definition ...
4241 * s/aix4-2.h (UNEXEC): ... here.
4242
7f110ddc
DN
4243 * s/openbsd.h: Remove support for non-ELF and for systems that do
4244 not support shared libraries.
4245 * s/netbsd.h:
4246 * s/freebsd.h: Likewise.
4247
605f35cd
DN
42482010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4249
4250 Remove non-working support for lynxos 3.0.
4251 * s/lynxos.h: Remove file.
4252
4253 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
4254 COFF_BSD_SYMBOLS, nothing defines it anymore.
4255
aed71cf4
DN
42562010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4257
4258 Remove obsolete uses of HAVE_SHM.
4259 * emacs.c (standard_args):
4260 (Fdump_emacs):
4261 (syms_of_emacs): Remove code depending on HAVE_SHM.
4262
4263 * alloc.c: Remove HAVE_SHM dependent definition.
4264
4265 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
4266
aded53ff
GM
42672010-03-18 Glenn Morris <rgm@gnu.org>
4268
17284745
GM
4269 * emacs.c (USAGE4): Hard-code bug address.
4270 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
4271 (bug_reporting_address): Remove.
4272 (main): Don't call bug_reporting_address.
4273
aded53ff
GM
4274 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
4275 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
4276
303500aa
CY
42772010-03-15 Chong Yidong <cyd@stupidchicken.com>
4278
4279 * xfns.c (Fx_create_frame):
4280 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
4281 on left.
4282
cef3058f
CY
42832010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
4284
4285 * editfns.c (Fformat): Account for string precision when computing
4286 field width (Bug#5710).
4287
a647d59d
CY
42882010-03-12 Chong Yidong <cyd@stupidchicken.com>
4289
4fa42018
CY
4290 * xfns.c (Fx_create_frame): Set default to Qright.
4291
a647d59d
CY
4292 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
4293 all window systems.
4294
6da23aaa
EZ
42952010-03-12 Eli Zaretskii <eliz@gnu.org>
4296
a96f6398 4297 These changes remove termcap.c from the build on Posix platforms.
83d02def 4298 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
4299 (MSDOS_OBJ): ...to here.
4300 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
4301 now identical to when LIBS_TERMCAP is defined.
4302
4303 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
4304
4305 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
4306
a96f6398 4307 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 4308
288f9fc0
CY
43092010-03-10 Chong Yidong <cyd@stupidchicken.com>
4310
4311 * Branch for 23.2.
4312
d48cd3f4
SM
43132010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4314
4315 Cleanup setup of gl_state in various parts of the code.
4316 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
4317 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
4318 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
4319 (skip_chars):
4320 * regex.c (regex_compile): Use it.
4321 (re_compile_pattern): Don't set gl_state.current_syntax_table since
4322 it's now set in regex_compile when/if we need it.
4323
618db430
SM
43242010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
4325
c0335e02
SM
4326 Make it possible to C-g in a tight bytecode loop again (bug#5680).
4327 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
4328 (QUIT): Use it to consolidate code and remove redundancy.
4329 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
4330
254c06a8
SM
4331 * regex.c (regex_compile): Setup gl_state as well.
4332
618db430
SM
4333 * syntax.c (skip_chars): Setup gl_state (bug#3823).
4334 (in_classes): Use CONSP before XCAR/XCDR.
4335
233f0c9f
CY
43362010-03-03 Chong Yidong <cyd@stupidchicken.com>
4337
4338 * keymap.c (Fwhere_is_internal): Use Fequal to compare
4339 definitions, so that keyboard macros are correctly handled
4340 (Bug#5481).
4341
75f80e63
EZ
43422010-03-02 Eli Zaretskii <eliz@gnu.org>
4343
4344 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
4345 text that could be relocated inside the call to emacs_mule_char.
4346 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
4347 (CODING_DECODE_CHAR): Add a comment describing its purpose.
4348
dcfb9bc4
KH
43492010-03-02 Kenichi Handa <handa@m17n.org>
4350
fc9a17bc
KH
4351 * character.c (parse_str_as_multibyte): Fix handling of the
4352 multibyte form of raw-bytes.
4353 (str_as_multibyte): Likewise.
4354
dcfb9bc4
KH
4355 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
4356 form of raw-bytes.
4357
412c01b6
CY
43582010-02-28 Chong Yidong <cyd@stupidchicken.com>
4359
4360 * charset.c (load_charset_map_from_file)
4361 (load_charset_map_from_vector): Zero out allocated
4362 charset_map_entries before using them.
4363
df7e1ea0
AS
43642010-02-27 Andreas Schwab <schwab@linux-m68k.org>
4365
4366 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
4367
fe69a722
CY
43682010-02-27 Chong Yidong <cyd@stupidchicken.com>
4369
4ed28cf4
CY
4370 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
4371 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 4372
7379cfce
KH
43732010-02-26 Kenichi Handa <handa@m17n.org>
4374
f88cc4d6
KH
4375 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
4376
7379cfce
KH
4377 * xdisp.c (reseat_to_string): Fix previous change.
4378
cf2fdcfb
CY
43792010-02-26 David Reitter <david.reitter@gmail.com>
4380
4381 * nsfont.m (nsfont_draw): ns_antialias_text should be a
4382 Lisp_Object (Bug#4736).
4383
cc6c7c75
KH
43842010-02-25 Kenichi Handa <handa@m17n.org>
4385
4386 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
4387
32e737d7
JD
43882010-02-24 Jan Djärv <jan.h.d@swipnet.se>
4389
4390 * xterm.c (XTflash): Move declarations before statements.
4391
4392 * gtkutil.c (xg_get_gdk_display): Remove (unused).
4393 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
4394 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
4395 (xg_create_tool_bar): Remove unused variables.
4396 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 4397 (xg_create_frame_widgets): Remove variable grav.
32e737d7 4398
676cae9f
CY
43992010-02-21 Chong Yidong <cyd@stupidchicken.com>
4400
4401 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
4402
886cc2b8
SM
44032010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4404
4405 * term.c (fatal): Add a final \n if needed (bug#5596).
4406
ddb2d8e2
CY
44072010-02-18 Chong Yidong <cyd@stupidchicken.com>
4408
4409 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
4410
2a4f8d3d
GM
44112010-02-18 Glenn Morris <rgm@gnu.org>
4412
4413 * callint.c (Finteractive): Doc fix.
4414
ebaf11b6
KH
44152010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
4416
886cc2b8
SM
4417 * coding.c (record_conversion_result):
4418 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
4419 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
4420 memory allocation error.
4421
d0396581
KH
44222010-02-17 Kenichi Handa <handa@m17n.org>
4423
886cc2b8
SM
4424 * coding.c (decode_coding_ccl): Don't setup ccl program here.
4425 Fix for the case that the output buffer is fullfilled.
d0396581
KH
4426 (decode_coding): Setup ccl program here. Keep looping when the
4427 decoder stopped because the output buffer is
4428 fullfilled (bug#5534).
4429
4430 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
4431
98599f74
JD
44322010-02-13 Jan Djärv <jan.h.d@swipnet.se>
4433
471e4f04 4434 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 4435 bug #5571.
886cc2b8 4436 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 4437 overdrawn.
98599f74 4438
182659ae
JD
44392010-02-10 Jan Djärv <jan.h.d@swipnet.se>
4440
4441 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
4442 doing_interact here.
4443 (ice_connection_closed): New function.
4444 (x_session_check_input, smc_die_CB, ice_io_error_handler)
4445 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
4446 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
4447 returns I/O error.
4448 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
4449 bug #5512.
4450
9be32c4e 44512010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
4452
4453 * nsfont.m (nsfont_open): The system's value for the font descent
4454 is negative, so round it down to avoid clipping.
4455
a2f3eb19
CY
44562010-02-06 Chong Yidong <cyd@stupidchicken.com>
4457
4458 * charset.c (load_charset_map_from_file)
4459 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 4460 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 4461
3088147c
CY
44622010-02-05 Chong Yidong <cyd@stupidchicken.com>
4463
4464 * charset.c (load_charset_map_from_file): Allocate large
4465 charset_map_entries structure on the heap rather than the stack.
4466 (Bug#5526).
4467
b57d9029
KH
44682010-01-31 Kenichi Handa <handa@m17n.org>
4469
4470 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 4471 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 4472
c67d885b
CY
44732010-01-31 Chong Yidong <cyd@stupidchicken.com>
4474
4475 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
4476 <deactivated@gmail.com> (Bug#3605).
4477
8fab2362
CY
44782010-01-31 David De La Harpe Golden <david@harpegolden.net>
4479
4480 * fileio.c (Frename_file): Correctly rename symlinks to
4481 directories (Bug#5496).
4482
cb2a62f2
CY
44832010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
4484
4485 * nsterm.m (ns_ring_bell): Handle visible bell like X.
4486
944c7a26
AS
44872010-01-30 Andreas Schwab <schwab@linux-m68k.org>
4488
4489 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
4490
c024ac08
CY
44912010-01-29 Chong Yidong <cyd@stupidchicken.com>
4492
4493 * frame.c (DEFAULT_ROWS): Change default to 35.
4494
4495 * xfns.c (x_default_font_parameter): Change default XFT font to
4496 monospace-10 (Bug#3643).
4497
af93af83
EZ
44982010-01-29 Eli Zaretskii <eliz@gnu.org>
4499
4500 * w32inevt.c (key_event): Remove unnecessary comparison of
4501 event->uChar.AsciiChar with 128.
4502
ca0eb708
CY
45032010-01-28 Chong Yidong <cyd@stupidchicken.com>
4504
b242dbfc
CY
4505 * fileio.c (Frename_file): Fix last change (Bug#5487).
4506
ca0eb708
CY
4507 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
4508
4509 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
4510
45d45af5
JD
45112010-01-28 Jan Djärv <jan.h.d@swipnet.se>
4512
4513 * xfns.c (Fx_create_frame): Remove window size matching code from
4514 2010-01-15.
a73f9c9d 4515 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 4516
7e233730
JR
45172010-01-27 Jason Rumney <jasonr@gnu.org>
4518
4519 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 4520 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 4521
86e893e3
KH
45222010-01-27 Kenichi Handa <handa@m17n.org>
4523
4524 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 4525 pattern string (Bug#4209).
86e893e3 4526
8719abec
CY
45272010-01-27 David De La Harpe Golden <david@harpegolden.net>
4528
4529 * fileio.c (Frename_file): Call copy-directory and
4530 delete-directory for directories, in order to handle cross-device
4531 renaming (Bug#3353).
4532
844794c8
JD
45332010-01-25 Jan Djärv <jan.h.d@swipnet.se>
4534
aa3e13b5 4535 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 4536 sizes 24 and 10. Bug #3643.
844794c8 4537
bd4b5750
SM
45382010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
4539
8dc1adf6 4540 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
4541 * keymap.c (shadow_lookup): Add `remap' arg.
4542 (describe_map, describe_vector): Update calls to shadow_lookup.
4543 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
4544 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
4545 perform remapping during shadow_lookup check of remapped_sequences.
4546
285d07e2
CY
45472010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
4548
4549 * image.c (png_load): Use png_sig_cmp instead of the obsolete
4550 png_check_sig, which has been removed in libpng 1.4.
4551
c6d09b8d
CY
45522010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
4553
4554 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
4555 lacks this header file).
4556
3d782998
YM
45572010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4558
4559 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
4560 as in Emacs 22.
4561
2aff7c53
YM
45622010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4563
4564 * lisp.h (make_pure_string): String pointer arg now points to const.
4565
4566 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
4567 args now point to const.
4568
74327f7a
EZ
45692010-01-22 Eli Zaretskii <eliz@gnu.org>
4570
4571 * lread.c (Fload): Don't treat files without .elc extension as
4572 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
4573 them. (bug#5303)
4574
4d1e6632
KH
45752010-01-20 Kenichi Handa <handa@m17n.org>
4576
4577 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
4578 treat the source as actual byte sequence.
4579
1fdede8f
AM
45802010-01-19 Alan Mackenzie <acm@muc.de>
4581
4582 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 4583 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
4584 `signal_after_change_p' to `coherent_change_p', and make the
4585 invocation of `modify_region' conditional on it.
4586
67477f30
JD
45872010-01-19 Jan Djärv <jan.h.d@swipnet.se>
4588
4589 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
4590 for debug purpose.
4591 (syms_of_xsettings): Declare xft-settings.
4592
244b023e
CY
45932010-01-18 Chong Yidong <cyd@stupidchicken.com>
4594
4595 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
4596
617364fe
CY
45972010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4598
4599 * xterm.c (event_handler_gdk): Block input (Bug#5037).
4600
4fe22cdf
CY
46012010-01-16 Chong Yidong <cyd@stupidchicken.com>
4602
4603 * emacs.c (standard_args): Adjust arg priorities to reflect how
4604 they are processed in startup.el.
4605
e118d2be
AS
46062010-01-16 Andreas Schwab <schwab@linux-m68k.org>
4607
4608 * Makefile.in (lisp, shortlisp): Update.
4609
523ae620
SM
46102010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4611
4612 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
4613 code, link the new kboard into all_kboard before running Lisp code,
4614 and protect the new terminal with GCPRO (Bug#5365).
4615 (x_term_init): Remove unused var `atom'.
4616 (x_delete_display, x_delete_terminal): Remove unused var `i'.
4617
f0d13888
JD
46182010-01-15 Jan Djärv <jan.h.d@swipnet.se>
4619
4620 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
4621 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
4622 to find out usable size of the desktop. Don't make frames larger than
ac146f82 4623 this. Bug #3643.
f0d13888 4624
cc320f07
KH
46252010-01-15 Kenichi Handa <handa@m17n.org>
4626
4627 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
4628
7ffdf101
CY
46292010-01-15 Chong Yidong <cyd@stupidchicken.com>
4630
4631 * nsterm.m (Qnone): Define.
4632
4633 * nsfns.m (Qnone): Move definition to nsterm.m.
4634
d12bd917
KH
46352010-01-14 Kenichi Handa <handa@m17n.org>
4636
4637 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
4638 systems.
4639
d9a7c140
KH
46402010-01-14 Kenichi Handa <handa@m17n.org>
4641
4642 Make auto-composition work on all buffers even if they are
4643 fundamental mode.
4644
4645 * composite.c (Vauto_composition_mode): New variable.
4646 (composition_compute_stop_pos): Check Vauto_composition_mode
4647 instead of Vauto_composition_function.
4648 (composition_adjust_point, Ffind_composition_internal): Likewise.
4649 (syms_of_composite): Declare Lisp variable
4650 "auto-composition-mode" here.
4651
63286bb2
CY
46522010-01-13 Chong Yidong <cyd@stupidchicken.com>
4653
4654 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
4655 during call to vendor-specific-keysyms (Bug#5365).
4656
c2623ee7
YM
46572010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4658
4659 * keyboard.c (input_available_signal) [SYNC_INPUT]:
4660 Call SIGNAL_THREAD_CHECK (Bug#5333).
4661
4662 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
4663 Call SIGNAL_THREAD_CHECK.
4664
0b5397c2
SM
46652010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
4666
4667 Try to fix bug#5314. This is probably not the final word, tho.
4668 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
4669 recent-auto-save-p as a side-effect.
4670 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
4671 * buffer.c (Fkill_buffer, reset_buffer):
4672 * editfns.c (Fsubst_char_in_region):
4673 * fileio.c (Finsert_file_contents, Fdo_auto_save)
4674 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
4675
dc954cb2
KH
46762010-01-13 Kenichi Handa <handa@m17n.org>
4677
4678 Display buffer name, etc. in mode line by composing correctly.
4679
4680 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
4681 STRING is not nil.
0b5397c2 4682 (display_mode_element): Adjust for the change of
dc954cb2
KH
4683 decode_mode_spec and display_line.
4684 (decode_mode_spec): Change arg MULTIBYTE to STRING.
4685 (display_string): Handle the case that STRING is non-null and
4686 LISP_STRING is not nil.
4687
0b5397c2
SM
4688 * xterm.c (x_draw_composite_glyph_string_foreground):
4689 Pay attention to s->face->overstrike.
dc954cb2
KH
4690
4691 * composite.c (composition_reseat_it): Don't check PT if STRING is
4692 non nil.
4693
4a00eaca
YM
46942010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4695
4696 * keyboard.c (read_char): Don't apply previous change when current
4697 buffer is unchanged by command execution.
4698
60abb287
JD
46992010-01-12 Jan Djärv <jan.h.d@swipnet.se>
4700
4701 * keyboard.c (read_char): Return after executing from special map.
4702
893db5bc
GM
47032010-01-12 Glenn Morris <rgm@gnu.org>
4704
4705 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
4706 bug-gnu-emacs rather than emacs-pretest-bug.
4707
4d03ece0
CY
47082010-01-11 Chong Yidong <cyd@stupidchicken.com>
4709
4710 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
4711 initializing the Lisp variables that depend on them.
4712
1df47e38
YM
47132010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4714
4715 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
4716 Clear areas that will not be updated after change of menu bar lines.
4717 Clear the menu bar window's current matrix when the window gets empty.
4718
2f1c6384
CY
47192010-01-09 Chong Yidong <cyd@stupidchicken.com>
4720
e398c61c
CY
4721 * intervals.h, textprop.c (extend_property_ranges): Return value
4722 and args changed. Discard properties that begin at or after the
4723 new end (Bug#5306).
4724
4725 * editfns.c (Fformat): Caller changed.
4726
e5a29a10
CY
4727 * nsterm.m (ns_set_default_prefs): Delete function.
4728 (syms_of_nsterm): Initialize ns_command_modifier,
4729 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
4730 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
4731
2f1c6384
CY
4732 * xdisp.c (pos_visible_p): Check for invisible text at the correct
4733 position (Bug#4040).
4734
d427a9fa
EZ
47352010-01-09 Eli Zaretskii <eliz@gnu.org>
4736
4737 * editfns.c (Ffloat_time): Doc fix.
4738
21b9df2f
JD
47392010-01-09 Jan Djärv <jan.h.d@swipnet.se>
4740
4741 * xfns.c (Fx_create_frame): Don't create frame larger than display
4742 by default bug#3643.
4743
4b00d3b1
YM
47442010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4745
4746 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
4747 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
4748 windows above internal border.
4749
4750 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
4751 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
4752 windows above internal border.
4753
4754 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
4755 tool bar windows specially.
4756
4757 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
4758
4759 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
4760 specially.
4761 (XTflash): Take account of menu bar height.
4762
4763 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
4764 specially.
4765
5075d853
JD
47662010-01-08 Jan Djärv <jan.h.d@swipnet.se>
4767
ac146f82 4768 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
4769 also be true before we can return early (bug #5339).
4770
474217c8
CY
47712010-01-06 David Reitter <david.reitter@gmail.com>
4772
4773 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
4774 (Fns_display_usable_bounds): Rewrite, computing bounds properly
4775 (Bug#3233).
4776
c0e6d47d
JD
47772010-01-06 Jan Djärv <jan.h.d@swipnet.se>
4778
d0cf45b7
JD
4779 * font.c (font_open_entity): Enable chache and call cached_font_ok
4780 for the driver if defined.
4781 (QCuser_spec): New symbol.
4782 (font_spec_from_name): Save name as user-spec.
4783 (font_load_for_lface): Keep user-spec instead of name.
4784 (font_open_by_name): Save name as user-spec.
4785 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 4786 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
4787
4788 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
4789 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
4790 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
4791
4792 * font.h (struct font_driver): Add cached_font_ok.
4793
c0e6d47d
JD
4794 * xterm.c (x_clear_frame): Queue draw for scroll bars.
4795
7c583cd8
JD
47962010-01-05 Jan Djärv <jan.h.d@swipnet.se>
4797
4798 * xterm.c (x_new_font): Move code for setting rows/cols before
4799 resizing ...
ac146f82 4800 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
4801
4802 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
4803 (xg_frame_resized, xg_frame_set_char_size):
4804 Call xg_clear_under_internal_border.
7c583cd8 4805 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 4806
03f77f0a
CY
48072010-01-05 Chong Yidong <cyd@stupidchicken.com>
4808
4809 * keyboard.c (read_key_sequence): Catch keyboard switch after
4810 making a new tty frame (Bug#5095).
4811
2a1ef5be
KH
48122010-01-05 Kenichi Handa <handa@m17n.org>
4813
4814 * fontset.c (fontset_find_font): Fix getting the frame pointer.
4815
e3eb1dae
SM
48162010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
4817
4818 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
4819 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
4820 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
4821
777013f2
MA
48222010-01-03 Michael Albinus <michael.albinus@gmx.de>
4823
4824 * dbusbind.c (xd_add_watch): Improve debug message.
4825 (xd_remove_watch): Improve debug message. If DATA is the session
4826 bus, unset D-Bus session environment.
4827 (Fdbus_init_bus): Pass the bus as argument to
4828 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 4829
8932b1c2
CY
48302010-01-01 Chong Yidong <cyd@stupidchicken.com>
4831
87231e2c
CY
4832 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
4833
4801c5fa
CY
4834 * lread.c (syms_of_lread): Make it clearer that these are the
4835 names of loaded files (Bug#5068).
4836
8932b1c2
CY
4837 * eval.c (run_hook_with_args): Handle the case where the global
4838 value has the obsolete single-function form (Bug#5026).
4839
11e3c684
CY
48402009-12-27 Chong Yidong <cyd@stupidchicken.com>
4841
4842 * minibuf.c (Fall_completions): Minor optimization.
4843
5b28ce35
EZ
48442009-12-26 Eli Zaretskii <eliz@gnu.org>
4845
5ce6e4f4
JB
4846 * .gdbinit (pgx): Fix display of composite glyphs.
4847 Display cmp.from and cmp.to as well.
4848 (pitx): Fix last change.
5b28ce35 4849
bcffff46
KH
48502009-12-25 Kenichi Handa <handa@m17n.org>
4851
4852 * composite.h (composition_adjust_point): Update prototype.
4853
4854 * composite.c (composition_reseat_it): Don't make a composition
4855 spanning over point.
4856 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
4857 composable characters.
4858 (composition_adjust_point): New arg NEW_PT. Callers changed.
4859
4860 * keyboard.c (command_loop_1): Force redisplay if the last point
4861 was within a composition.
4862 (adjust_point_for_property): Don't adjust point for automatic
4863 composition when called after buffer modification.
4864
3f670e9a
EZ
48652009-12-19 Eli Zaretskii <eliz@gnu.org>
4866
5ce6e4f4
JB
4867 * .gdbinit (pitx): Don't use enum names, use their values.
4868 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
4869 (pgx): Don't use enum names, use their values.
4870 (pitmethod): New helper command.
4871 (pitx): Use it to display iteration method.
4872 (pgrowit): New command.
4873
ad903955
EZ
4874 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
4875
3f670e9a
EZ
4876 Update dependencies in Makefile.in.
4877
4878 * Makefile.in (alloc.o): Depend on termhooks.h.
4879 (atimer.o): Depend on blockinput.h.
4880 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
4881 and frame.h.
4882 (callint.o): Depend on systime.h, coding.h, and composite.h.
4883 (callproc.o): Depend on buffer.h.
4884 (casefiddle.o): Don't depend on charset.h.
4885 (casetab.o): Depend on character.h.
4886 (ccl.o): Depend on composite.h.
4887 (chartab.o): Depend on ccl.h.
4888 (cm.o): Depend on dispextern.h.
4889 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
4890 (coding.o): Don't depend on $(INTERVALS_H).
4891 (composite.o): Don't depend on dispextern.h explicitly (it's in
4892 $(INTERVALS_H)). Depend on ccl.h.
4893 (data.o): Depend on systime.h, coding.h, composite.h,
4894 dispextern.h, font.h, and ccl.h.
4895 (dired.o): Depend on composite.h.
4896 (dispnew.o): Depend on coding.h. Don't depend explicitly on
4897 composite.h (it's in $(INTERVALS_H)).
4898 (doc.o): Depend on systime.h, coding.h, and composite.h.
4899 (editfns.o): Don't depend explicitly on dispextern.h.
4900 (emacs.o): Depend on frame.h and coding.h.
4901 (eval.o): Depend on coding.h, composite.h, and xterm.h.
4902 (fileio.o): Depend on frame.h and commands.h. Don't depend
4903 explicitly on dispextern.h.
4904 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
4905 composite.h.
4906 (fns.o): Don't depend on termhooks.h.
4907 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
4908 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
4909 coding.h, $(INTERVALS_H), window.h, xterm.h.
4910 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
4911 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
4912 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
4913 fontset.h, ccl.h, and ftfont.h.
4914 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4915 (gtkutil.o): Depend on dispextern.h and composite.h.
4916 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
4917 termhooks.h, and ccl.h.
4918 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
4919 (intervals.o): Depend on systime.h and coding.h.
4920 (keyboard.o): Depend on composite.h and coding.h.
4921 (keymap.o): Depend on coding.h and frame.h.
4922 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
4923 (macros.o): Depend on systime.h, coding.h, and composite.h.
4924 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
4925 and atimer.h.
4926 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
4927 dispextern.h explicitly.
0b5397c2
SM
4928 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
4929 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
4930 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
4931 (regex.o): Don't depend on charset.h.
4932 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
4933 (search.o): Don't depend explicitly on composite.h.
4934 (sound.o): Depend on atimer.h and systime.h.
4935 (syntax.o): Don't depend explicitly on composite.h.
4936 (sysdep.o): Depend on coding.h and composite.h.
4937 (term.o): Depend on xterm.h and buffer.h.
4938 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
4939 (textprop.o): Don't depend on dispextern.h explicitly.
4940 (undo.o): Depend on dispextern.h.
4941 (window.o): Depend on coding.h and termhooks.h. Don't depend on
4942 dispextern.h and composite.h explicitly.
4943 (xdisp.o): Depend on ccl.h.
4944 (xfaces.o): Depend on coding.h and ccl.h.
4945 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
4946 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4947 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
4948 ftfont.h.
4949 (xgselect.o): New dependency.
4950 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
4951 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
4952 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
4953 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
4954 (xsmfns.o): Depend on frame.h and dispextern.h.
4955 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
4956 sysselect.h.
4957
7a6f7fea
AS
49582009-12-19 Andreas Schwab <schwab@linux-m68k.org>
4959
4960 * font.c (Fclear_font_cache): Pass correct cache argument to
4961 font_clear_cache.
4962
f4c21026
AS
49632009-12-16 Andreas Schwab <schwab@linux-m68k.org>
4964
4965 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
4966 twice.
4967
f7ab0997
CY
49682009-12-15 Chong Yidong <cyd@stupidchicken.com>
4969
4970 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
4971 calling file-remote-p. Reported by Jim Meyering.
4972
fa8e045a
MA
49732009-12-15 Michael Albinus <michael.albinus@gmx.de>
4974
4975 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 4976 avoid compiler warnings. (Bug #5217)
fa8e045a 4977
a63dba42
KH
49782009-12-14 Kenichi Handa <handa@m17n.org>
4979
4980 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
4981 in 8-bit encoding.
4982
5ce6e4f4 49832009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
4984
4985 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
4986 tooltip windows.
4987
223e5fc6
JD
49882009-12-13 Jan Djärv <jan.h.d@swipnet.se>
4989
36acb2a7
JD
4990 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
4991 Xatom_net_window_type.
4992
4993 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
4994 Xatom_net_window_type.
4995
b8f00677
JD
4996 * xterm.c (my_log_handler): New function.
4997 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 4998 so we can filter out buggy messages. (Bug #5120).
b8f00677 4999
e5f0bc9a
JD
5000 * xterm.c (xg_scroll_callback): Parameter list changed,
5001 use parameter GtkScrollType to determine scroll/line/page.
5002 Only allow dragging if a button < 4 is grabbed (bug #5177).
5003 (xg_end_scroll_callback): New function.
5004 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
5005 xg_create_scroll_bar.
5006
5007 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
5008 (scroll_end_callback): Remove.
5009 (xg_create_scroll_bar): Add parameter end_callback, bind it to
5010 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 5011 bug #5177.
e5f0bc9a
JD
5012 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
5013 bug #5177.
5014
5015 * gtkutil.h (XG_LAST_SB_DATA): Remove.
5016 (xg_create_scroll_bar): Add GCallback end_callback.
5017
223e5fc6
JD
5018 * xftfont.c (QClcdfilter): New variable.
5019 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
5020 (syms_of_xftfont): Initialize QClcdfilter.
5021
3c055b77
JD
50222009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5023
5024 * xsettings.c (struct xsettings): Add member seen.
5025 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 5026 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
5027 (apply_xft_settings): Only update Xft settings with what member seen
5028 indicates as new.
5029
05fe33ff
EZ
50302009-12-12 Eli Zaretskii <eliz@gnu.org>
5031
c4cc8b9a 5032 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
5033 (struct glyph): Use EMACS_INT for charpos.
5034 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
5035 region_beg_charpos, region_end_charpos,
5036 redisplay_end_trigger_charpos, and also for
5037 iterator_stack_entry.end_charpos and
5038 iterator_stack_entry.stop_charpos.
5039
e8d7886a
JD
50402009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5041
5ce6e4f4 5042 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
5043 (xg_create_scroll_bar): Call scroll_end_callback on button release
5044 event (bug #5177).
5045 (xg_event_is_for_scrollbar): != replaced with ==.
5046
d0db2ec8
KH
50472009-12-12 Kenichi Handa <handa@m17n.org>
5048
5049 * ftfont.c (struct ftfont_info): New member matrix.
5050 (ftfont_open): Setup xftfont_info->matrix.
5051 (MFLTFontFT): New member matrix.
5052 (FLOOR, CEIL, ROUND): New macros.
5053 (ftfont_get_metrics): Handle matrix transformation.
5054 (ftfont_shape_by_flt): New arg matrix. Callers changed.
5055
5056 * xftfont.c (struct xftfont_info): New member matrix.
5057 (xftfont_open): Setup xftfont_info->matrix.
5058
50592009-12-10 Kenichi Handa <handa@m17n.org>
5060
5061 * xdisp.c (append_space_for_newline): Consider face-remapping.
5062
2cc7b62f
AS
50632009-12-09 Andreas Schwab <schwab@linux-m68k.org>
5064
b87dd913
AS
5065 * xsettings.c: Include "keyboard.h".
5066
eba5eb94
AS
5067 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
5068
2cc7b62f
AS
5069 Fix implicit function declarations.
5070 * cmds.c: Include "frame.h".
5071 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
5072 * frame.h: Move declaration of delete_frame outside of
5073 HAVE_WINDOW_SYSTEM.
5074
a4ef73c8
CY
50752009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
5076
5077 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
5078
5079 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
5080 GTK builds.
5081
944a300c
AS
50822009-12-07 Andreas Schwab <schwab@linux-m68k.org>
5083
5084 * unexelf.c (unexec): Don't search for .data twice.
5085
022eef62
CY
50862009-12-05 Chong Yidong <cyd@stupidchicken.com>
5087
426ac949
CY
5088 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
5089 if push failed.
5090 (handle_line_prefix): Set avoid_cursor_p here. Check return value
5091 of push_display_prop (Bug#5000).
5092
022eef62
CY
5093 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
5094 value of font_list_entities (Bug#5085).
5095
be95bee9
JB
50962009-12-04 Juanma Barranquero <lekktu@gmail.com>
5097
5098 Fix `string-to-number' to deal consistently with integers and floats.
5099 * lread.c (isfloat_string): New argument ignore_trailing to accept all
5100 trailing characters, not just whitespace.
5101 (read1): Pass new arg 0 to keep old behavior.
5102 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
5103 trailing chars, as it is already done for integers. Doc fixes.
5104 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
5105
24c2d7ce
EZ
51062009-12-04 Eli Zaretskii <eliz@gnu.org>
5107
0b5397c2
SM
5108 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
5109 Delete unused enumeration value.
24c2d7ce 5110
7e694795
EZ
51112009-12-03 Eli Zaretskii <eliz@gnu.org>
5112
5113 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
5114
84b31826
SM
51152009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
5116
5117 * process.c (Fmake_network_process): Fix up the tests for
5118 "connectionless socket", so they DTRT for seqpacket sockets as well.
5119
f00c449b
SM
51202009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
5121
5122 * process.c (Qseqpacket): New symbol.
5123 (HAVE_SEQPACKET): New macro.
5124 (Fmake_network_process): Accept new :type `seqpacket'.
5125 (init_process): Add `seqpacket' feature when applicable.
5126 (syms_of_process): Initialize Qseqpacket.
5127
8096a0ff
YM
51282009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5129
5130 * font.c (font_load_for_lface, font_open_by_name): Don't store name
5131 if entity is Qnil.
5132
3e0de07f
SM
51332009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
5134
5135 * print.c (print_preprocess): Preprocess the key_and_value table of
5136 hashtables, even tho they're "hidden" (bug#5082).
5137
abeafb2a
JD
51382009-11-29 Jan Djärv <jan.h.d@swipnet.se>
5139
5140 * frame.c (frame_make_pointer_invisible)
5141 (frame_make_pointer_visible): Declare f before statements.
5142
4bf47195
EZ
51432009-11-28 Eli Zaretskii <eliz@gnu.org>
5144
5145 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
5146 omitted dependencies on lisp.h.
5147
c525b3f2
JD
51482009-11-27 Jan Djärv <jan.h.d@swipnet.se>
5149
ece2d4ed
JD
5150 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
5151 is NULL.
5152
5153 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
5154
5155 * frame.c (frame_make_pointer_invisible)
3e0de07f 5156 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
5157 frame.
5158
c525b3f2
JD
5159 * search.c (simple_search): Remove warning by making *p const.
5160
2f00e299
DN
51612009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
5162
5163 * xdisp.c (power_letter): Remove duplicate const.
5164
084b049b
JD
51652009-11-25 Jan Djärv <jan.h.d@swipnet.se>
5166
a1fadc6f
JD
5167 * term.c (delete_tty): Remove check for last terminal (bug#4970).
5168
5ce6e4f4 5169 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
5170 defaults (bug #5025).
5171
28259cac
SM
51722009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
5173
5174 * insdel.c (adjust_markers_for_delete): Move it in the
5175 right direction! (bug#4803)
5176
e8e14166
YM
51772009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5178
5179 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
5180
5181 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
5182
86677b58
GM
51832009-11-24 Glenn Morris <rgm@gnu.org>
5184
5185 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
5186
581e51e8
JD
51872009-11-23 Jan Djärv <jan.h.d@swipnet.se>
5188
cfc86c7a
JD
5189 * Makefile.in: Must create deps for ecrt0.o in its rule.
5190
581e51e8
JD
5191 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
5192 because that is what Gtk+ font dialog understands.
5193
5194 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
5195 of Fcopy_sequence.
5196 (font_open_by_name): Put name given into QCname for font-object returned.
5197
5198 * frame.c (x_set_font): Save original font name as frame parameter
5199 font-parameter.
5200
5201 * xsettings.c (set_default_xft_settings): New function.
5202 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
5203 is found.
5204
8b264ecb
AS
52052009-11-22 Andreas Schwab <schwab@linux-m68k.org>
5206
5207 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
5208 searching backwards through multibyte buffer.
5209
872870b2
JD
52102009-11-21 Jan Djärv <jan.h.d@swipnet.se>
5211
5212 * xterm.c: #include xgselect.h.
5213 (x_initialize): Call xgselect_initialize.
5214
5215 * xsettings.c (something_changedCB): C++ comments => C comments.
5216 (init_gconf): Do not deal with any GLib file descriptors, xg_select
5217 does that now.
5218
5219 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
5220 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
5221 (scroll_bar_button_cb): Remove.
5ce6e4f4 5222 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
5223 event.
5224 (xg_create_scroll_bar): Don't bind button-press-event and
5225 button-release-event.
5226
5227 * process.c: Include xgselect.h if defined (USE_GTK) ||
5228 defined (HAVE_GCONF).
5229 (wait_reading_process_output): Call xg_select for the same condition.
5230
5231 * xgselect.c (xg_select): New function to better integrate with
5232 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
5233
5234 * xgselect.h: New file, declare xg_select, xgselect_initialize.
5235
5236 * Makefile.in (XOBJ): Add xgselect.o.
5237
62a6e103
AS
52382009-11-21 Andreas Schwab <schwab@linux-m68k.org>
5239
0b5397c2
SM
5240 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
5241 Remove ignored second argument. All callers changed.
62a6e103
AS
5242 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
5243 (RE_STRING_CHAR_AND_LENGTH): Likewise.
5244 * xdisp.c (string_char_and_length): Likewise.
5245
b0ca0f33
DN
52462009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
5247
5248 * xterm.c (x_new_font):
5249 * print.c (print_object):
5250 * cmds.c (Fself_insert_command): Move declarations before statements.
5251
dd5a6279
CY
52522009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
5253
5254 * s/cygwin.h: Remove unneeded linker flags.
5255
4a8e097d
JD
52562009-11-20 Jan Djärv <jan.h.d@swipnet.se>
5257
0d1d0d26
JD
5258 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
5259
5260 * xsettings.h: Declare xsettings_get_system_font.
5261
5262 * xsettings.c (xsettings_get_system_font): New function.
5263 (init_gconf): No use initiating gconf unless we have Xft also.
5264 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
5265 HAVE_GCONF.
5266
4a8e097d
JD
5267 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
5268 add a blank entry so it doesn't collapse into nothing.
5269
8ab1650e
SM
52702009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5271
5272 * lread.c (Funintern): Comment out last change.
5273
82c602f0
RS
52742009-11-19 Richard Stallman <rms@gnu.org>
5275
5276 * lread.c (Funintern): Error if symbol is t or nil.
5277
87e32266
SM
52782009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5279
5280 * insdel.c (make_gap_larger): Don't make as many assumptions about the
5281 representation of Lisp integers.
5282 Reported by MJ Chan <mjchan.inbox@gmail.com>.
5283
1b9ac145
AS
52842009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5285
5286 * lisp.h: Remove declaration of Ffont_get_system_font.
5287 * xfns.c: Move include of "xsettings.h".
5288 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
5289
dfb3c4c6
JD
52902009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5291
87e32266
SM
5292 * xsettings.c (something_changedCB, Ffont_get_system_font):
5293 Check use_system_font.
dfb3c4c6
JD
5294 (syms_of_xsettings): DEFVAR font-use-system-font.
5295
9370c1d8
AS
52962009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5297
25fe851a
AS
5298 * xfns.c (x_default_font_parameter): Remove dead assignment.
5299
9370c1d8
AS
5300 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
5301
637fa988
JD
53022009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5303
87e32266 5304 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 5305 not have FC_LCD_*. #define them if not there.
a6eb20d8 5306
87e32266 5307 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 5308
637fa988
JD
5309 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
5310
5311 * xterm.c (handle_one_xevent): Call xft_settings_event for
5312 ClientMessage, PropertyNotify and DestroyNotify.
5313 (x_term_init): If we have XFT, get DPI from Xft.dpi.
5314 Call xsettings_initialize.
5315
5316 * xftfont.c (xftfont_fix_match): New function.
5317 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
5318 Call xftfont_fix_match after XftFontMatch.
5319
5320 * xfont.c (xfont_driver): Initialize all members.
5321
87e32266
SM
5322 * xfns.c (x_default_font_parameter):
5323 Try font from Ffont_get_system_font.
637fa988
JD
5324 Do not get font from x_default_parameter if we got one from
5325 Ffont_get_system_font.
87e32266 5326 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
5327
5328 * w32font.c (w32font_driver): Initialize all members.
5329
5330 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
5331
5332 * lisp.h: Declare syms_of_xsettings.
5333
87e32266
SM
5334 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
5335 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
5336
5337 * ftfont.c (ftfont_filter_properties): New function.
5338
5339 * frame.c (x_set_font): Remove unused variable lval.
5340
87e32266 5341 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
5342
5343 * font.c (font_put_extra): Don't return if val is nil, it means
5344 boolean option is off.
5345 (font_parse_fcname): Collect all extra properties in extra_props
5346 and call filter_properties for all drivers with extra_props and
5347 font as parameter.
87e32266
SM
5348 (font_open_entity): Do not use cache, it does not pick up new
5349 fontconfig settings like hinting.
637fa988
JD
5350 (font_load_for_lface): If spec had a name in it, store it in entity.
5351
a73f9c9d 5352 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
5353
5354 * config.in: HAVE_GCONF is new.
5355
5356 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
5357 xsettings.o is new.
5358
5a942932
KH
53592009-11-17 Kenichi Handa <handa@m17n.org>
5360
5361 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
5362 back to the default font in case that no suitable font is found.
5363
b7c7a4d1
SM
53642009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
5365
5366 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
5367 Suggested by Chad Brown <yandros@mit.edu>.
5368 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
5369
072f1e39
JD
53702009-11-16 Jan Djärv <jan.h.d@swipnet.se>
5371
5372 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
5373
5d1e70a2
AS
53742009-11-14 Andreas Schwab <schwab@linux-m68k.org>
5375
87e32266 5376 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 5377
a53cfbe5
JD
53782009-11-14 Jan Djärv <jan.h.d@swipnet.se>
5379
473a99b7
JD
5380 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
5381 has a parent.
5382
a53cfbe5 5383 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 5384 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
5385
5386 * config.in: Generated (AUTO_DEPEND).
5387
f04bb9b2
MA
53882009-11-13 Michael Albinus <michael.albinus@gmx.de>
5389
b7c7a4d1 5390 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
5391 Vdbus_registered_functions_table, because it contains also
5392 properties. Fix docstring.
b7c7a4d1 5393 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 5394
8f11f7ec
SM
53952009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
5396
5397 * alloc.c (mark_object): Don't reprocess marked strings.
5398 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
5399 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
5400
8a605fe8
KH
54012009-11-13 Kenichi Handa <handa@m17n.org>
5402
8f11f7ec 5403 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
5404 semantics of Vword_combining_categories.
5405 (Vword_combining_categories): Describe the slight change of the
5406 semantics.
5407
241c4680
EZ
54082009-11-13 Eli Zaretskii <eliz@gnu.org>
5409
5410 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
5411
5412 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
5413
5d58e44c
SM
54142009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
5415
5416 * xdisp.c (syms_of_xdisp): Fix typo in last change.
5417
5e13f9d3
JB
54182009-11-12 Juanma Barranquero <lekktu@gmail.com>
5419
5420 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
5421
cf54c754
DR
54222009-11-11 David Reitter <david.reitter@gmail.com>
5423
5424 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
5425 variables to fix 2009-11-09 change.
5426
a4ada374
DN
54272009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
5428
91433552
DN
5429 * process.c (ifflag_def): Make flag_sym constant.
5430 (Fnetwork_interface_info): Use a constant pointer.
5431 (ifflag_table):
5432 * xfns.c (cursor_bits):
5433 * xdisp.c (power_letter):
5434 * termcap.c (speeds, esctab):
5435 * sysdep.c (baud_convert):
5436 * keyboard.c (lispy_accent_codes, modifier_names):
5437 * image.c (xbm_format, xpm_format, pbm_format, png_format)
5438 (jpeg_format, tiff_format, gif_format, svg_format)
5439 (interlace_start, interlace_increment, gs_format):
5440 * gtkutil.c (separator_names):
5441 * fringe.c (swap_nibble):
5442 * fns.c (base64_value_to_char, base64_char_to_value):
5443 * fileio.c (make_temp_name_tbl):
5444 * coding.c (suffixes): Make constant.
5445
f4265f6c
DN
5446 * frame.c (make_initial_frame):
5447 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
5448 build_string.
5449 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
5450
04420943
DN
5451 * s/freebsd.h:
5452 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
5453
0a5d24ae
DN
5454 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
5455 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
5456
a4ada374
DN
5457 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
5458 * xterm.c (syms_of_xterm):
5459 * xfaces.c (syms_of_xfaces):
5460 * xdisp.c (syms_of_xdisp):
5461 * lread.c (syms_of_lread):
5462 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
5463 build_string.
91433552 5464
a4ada374
DN
5465 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
5466
af98fc7f
SM
54672009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5468
8ab1650e 5469 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 5470
e90292a9
JD
54712009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5472
5473 * keyboard.h: Declare timer_check.
5474
5475 * keyboard.c (timer_check_2): New function that does what the old
5476 timer_check did.
5477 (timer_check): Call timer_check_2 until -1 or a non-zero time is
5478 returned, i.e. don't return -1 with timers pending.
5479
5480 * process.c: Remove extern declaration of timer_check.
5481
5482 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
5483 even if timer_check returned -1.
5484
af98fc7f
SM
5485 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
5486 xg_dialog_data.
e90292a9
JD
5487 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
5488 the event loop.
5489 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
5490 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
5491 Destroy the dialog after xg_dialog_run.
5492
045b83c0
SM
54932009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5494
5495 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
5496
1fb99a3a
JD
54972009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5498
5499 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
5500
04e452cb
JB
55012009-11-09 Juanma Barranquero <lekktu@gmail.com>
5502
5503 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
5504
ef7417fd
SM
55052009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
5506
5507 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
5508 w32menu.c, and nsmenu.m.
5509 Simplify the obsolete case where position is nil.
5510 (cleanup_popup_menu): New function, moved from nsmenu.m.
5511 (struct skp): Remove slot `notreal'.
5512 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
5513 adjust callers.
5514 (single_menu_item): Adjust call to parse_menu_item.
5515 (syms_of_menu): Defsubr x-popup-menu.
5516 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
5517 (keymap_panes): Don't export any more.
5518 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
5519 (xmenu_show): Declare.
5520 * keyboard.c (parse_menu_item): Remove arg `notreal'.
5521 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
5522 * keyboard.h (parse_menu_item): Update declaration.
5523 * xmenu.c (Fx_popup_menu): Remove.
5524 (syms_of_xmenu): Don't defsubr x-popup-menu.
5525 * w32menu.c (Fx_popup_menu): Remove.
5526 (syms_of_w32menu): Don't defsubr x-popup-menu.
5527 * nsmenu.m (cleanup_popup_menu): Remove.
5528 (ns_menu_show): Rename from ns_popup_menu and remove all the code
5529 moved to menu.c's Fx_popup_menu.
5530 (Fx_popup_menu): Remove.
5531 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
5532 menu_items (it's done in menu.c already).
5533
424d6179
SM
55342009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
5535
5536 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
5537 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
5538
c0df13a6 55392009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
5540
5541 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 5542 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
5543 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
5544 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
5545
2de9f71c
SM
55462009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5547
5548 Let integers use up 2 tags to give them one extra bit and thus double
5549 their range.
5550 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
5551 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
5552 New macros.
5553 (enum Lisp_Type): Use them. Give explicit values.
5554 (Lisp_Type_Limit): Remove.
5555 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
5556 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
5557 Pay attention to USE_2_TAGS_FOR_INTS.
5558 (INTEGERP): Use LISP_INT_TAG_P.
5559 * fns.c (internal_equal): Simplify the default case.
5560 (sxhash): Use case_Lisp_Int.
5561 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
5562 any more.
5563 (Ftype_of): Use case_Lisp_Int.
5564 (store_symval_forwarding): Take into account the fact that Ints can
5565 now have more than one tag.
5566 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
5567 buffer_slot_type_mismatch):
5568 * xfaces.c (face_attr_equal_p):
5569 * print.c (print_object):
5570 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
5571 Use case_Lisp_Int.
5572
323637a2
EZ
55732009-11-06 Eli Zaretskii <eliz@gnu.org>
5574
7ac65b38
EZ
5575 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
5576
323637a2
EZ
5577 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
5578 warning.
5579
e511451f
JD
55802009-11-06 Jan Djärv <jan.h.d@swipnet.se>
5581
5582 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
5583
5584 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
5585
5586 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
5587 ButtonPressRelease and MotionNotify (bug#4870).
5588
5e2327cf
DN
55892009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
5590
5adc433e
DN
5591 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
5592
d67b4f80
DN
5593 * xterm.c (syms_of_xterm):
5594 * xselect.c (syms_of_xselect):
5595 * xmenu.c (syms_of_xmenu):
5596 * xfns.c (syms_of_xfns):
5597 * xfaces.c (syms_of_xfaces):
5598 * xdisp.c (syms_of_xdisp):
5599 * window.c (syms_of_window):
5600 * w32fns.c (syms_of_w32fns):
5601 * undo.c (syms_of_undo):
5602 * textprop.c (syms_of_textprop):
5603 * terminal.c (syms_of_terminal):
5604 * syntax.c (syms_of_syntax):
5605 * sound.c (syms_of_sound):
5606 * search.c (syms_of_search):
5607 * print.c (syms_of_print):
5608 * minibuf.c (syms_of_minibuf):
5609 * macros.c (syms_of_macros):
5610 * keymap.c (syms_of_keymap, initial_define_key)
5611 (initial_define_lispy_key):
5612 * keyboard.c (syms_of_keyboard):
5613 * insdel.c (syms_of_insdel):
5614 * image.c (syms_of_image):
5615 * fringe.c (syms_of_fringe):
5616 * frame.c (syms_of_frame):
5617 * fontset.c (syms_of_fontset):
5618 * fns.c (syms_of_fns):
5619 * fns.c (syms_of_fns):
5620 * fileio.c (syms_of_fileio):
5621 * fileio.c (syms_of_fileio):
5622 * eval.c (syms_of_eval):
5623 * doc.c (syms_of_doc):
5624 * dispnew.c (syms_of_display):
5625 * dired.c (syms_of_dired):
5626 * dbusbind.c (syms_of_dbusbind):
5627 * data.c (syms_of_data):
5628 * composite.c (syms_of_composite):
5629 * coding.c (syms_of_coding):
5630 * cmds.c (syms_of_cmds):
5631 * charset.c (define_charset_internal, syms_of_character):
5632 * ccl.c (syms_of_ccl):
5633 * category.c (syms_of_category, init_category_once):
5634 * casetab.c (syms_of_casetab):
5635 * casefiddle.c (syms_of_casefiddle):
5636 * callint.c (syms_of_callint):
5637 * bytecode.c (syms_of_bytecode):
5638 * buffer.c (keys_of_buffer, syms_of_buffer):
5639 * alloc.c (syms_of_alloc):
5640 * process.c (syms_of_process, init_process):
5641 * lread.c (syms_of_lread, init_obarray):
5642 * font.c (build_style_table):
5643 * emacs.c (syms_of_emacs, main): Replace calls to intern with
5644 intern_c_string, calls to make_pure_string with
5645 make_pure_c_string. Use pure_cons instead of Fcons.
5646
5e2327cf
DN
5647 * process.c (socket_options): Make it const.
5648 (set_socket_option, init_process): Use a const pointer.
5649
5650 * lread.c (intern_c_string): New function.
5651 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5652 (defvar_int): Uset it. Make the name const char*.
5653
5654 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5655 (defvar_int): Update prototypes.
5656 (DEFUN, EXFUN): Support for prototypes is now required.
5657 (intern_c_string): New prototype.
5658 (struct Lisp_Subr): Make symbol_name constant.
5659
5660 * font.c (struct table_entry): Remove unused member. Make NAMES
5661 constant.
5662 (weight_table, slant_table, width_table): Make constant.
5663
5664 * emacs.c (struct standard_args): Make name and longname constant.
5665
5666 * character.h (DEFSYM): Use intern_c_string.
5667
a56eaaef
DN
56682009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5669
5670 * alloc.c (make_pure_c_string): New function.
5671
5672 * eval.c (Fautoload): Purecopy all arguments.
5673
f6a07420
KH
56742009-11-05 Kenichi Handa <handa@m17n.org>
5675
5676 * fileio.c (Finsert_file_contents): Be sure set coding-system of
5677 the buffer in case of replace.
5678
5d28d4b1
DN
56792009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
5680
5681 * puresize.h (BASE_PURESIZE): Increase to 1620000.
5682
b349d111
SM
56832009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
5684
d528b1ce
SM
5685 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
5686 when applicable (bug#4851).
5687
b349d111
SM
5688 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
5689 (P_): Support for prototypes is now required.
5690
c38eb027
CY
56912009-10-31 Chong Yidong <cyd@stupidchicken.com>
5692
5693 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
5694 (Bug#4827).
5695
0405f8d9
EZ
56962009-10-30 Eli Zaretskii <eliz@gnu.org>
5697
d528b1ce 5698 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 5699
ca0a881a
DN
57002009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
5701
5702 * puresize.h (BASE_PURESIZE): Increase to 1470000.
5703
d528b1ce
SM
5704 * lread.c (Fload): Purecopy the file name when building
5705 Vpreloaded_file_list.
ca0a881a 5706
47e0e0e4
JR
57072009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
5708
5709 * w32fns.c (syms_of_w32fns): Change default value of
5710 w32-scroll-lock-modifier to nil. (Bug#2827)
5711
057bce6f
JB
57122009-10-26 Juanma Barranquero <lekktu@gmail.com>
5713
782a943e 5714 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 5715
242bc74c
AS
57162009-10-26 Andreas Schwab <schwab@redhat.com>
5717
5718 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
5719
522d013a
JB
57202009-10-26 Juanma Barranquero <lekktu@gmail.com>
5721
5722 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
5723 For delta < 0, skip check that only makes sense when the mini-window
5724 is going to be enlarged. (Bug#4534)
5725
18060980
CY
57262009-10-25 Chong Yidong <cyd@stupidchicken.com>
5727
5728 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
5729 string in menu maps (Bug#4471).
5730
fec8f0fe
CY
57312009-10-24 Chong Yidong <cyd@stupidchicken.com>
5732
5733 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
5734 FRAME_NS_VIEW on terminal frames (Bug#4765).
5735
10d66ec0
AS
57362009-10-24 Andreas Schwab <schwab@linux-m68k.org>
5737
1cae01f7
AS
5738 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
5739 DBUS_TYPE_UINTnn separately to get proper sign extension.
5740
58a12889
AS
5741 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
5742 can properly handle unsigned types.
d528b1ce 5743 (make_uid, make_gid): Remove.
58a12889 5744
987c9327
AS
5745 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
5746 types again.
5747
522d013a 5748 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
5749 (system_process_attributes): Likewise.
5750
905a9ed3
DN
57512009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
5752
5753 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
5754
5755 * eval.c (Fautoload): Purecopy the filename. Simplify.
5756
5757 * category.c (Fdefine_category): Purecopy docstring.
5758
a599b3e8
AS
57592009-10-23 Andreas Schwab <schwab@linux-m68k.org>
5760
7b792fc9
AS
5761 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
5762
a599b3e8
AS
5763 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
5764
b35ac83e
CY
57652009-10-23 Chong Yidong <cyd@stupidchicken.com>
5766
5767 * window.c (Fwindow_edges, Fwindow_pixel_edges)
5768 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
5769 (Bug#4775).
5770
e8903e00
SM
57712009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
5772
5773 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
5774 (init_fileio_once):
5775 * lisp.h (init_fileio_once): Remove.
5776 * emacs.c (main): Don't call init_fileio_once.
5777
8f43cbf3
DN
57782009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
5779
5780 * puresize.h (BASE_PURESIZE): Increase to 1430000.
5781
26898943
AS
57822009-10-21 Andreas Schwab <schwab@linux-m68k.org>
5783
5784 * doprnt.c (doprnt): Fix overflow check.
5785
5c646d5a
JD
57862009-10-21 Jan Djärv <jan.h.d@swipnet.se>
5787
3132a7ea
JD
5788 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
5789
5c646d5a
JD
5790 * xterm.h (x_wait_for_event): Declare it.
5791
5792 * xterm.c (pending_event_wait): New variable.
5793 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
5794 see pending_event_wait.eventtype.
5795 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
5796 (x_new_font): Call change_frame_size with new rows/columns before we
5797 try to resize the frame.
5c646d5a 5798 (x_wait_for_event): New function.
d528b1ce
SM
5799 (x_set_window_size_1): Don't change gravity unless change_gravity
5800 is set.
5c646d5a
JD
5801 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
5802 don't change frame size, instead wait for the ConfigureNotify.
5803 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
5804 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
5805 (x_initialize): Initialize pending_event_wait.
5806
5807 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
5808 size.
5809
5810 * widget.c (EmacsFrameSetValues): Add comment.
5811 (EmacsFrameSetCharSize): Just call x_set_window_size.
5812
5813 * gtkutil.c (xg_frame_set_char_size): Flush events and call
5814 x_wait_for_event.
d528b1ce 5815 (flush_and_sync): Remove again.
5c646d5a
JD
5816 (xg_get_font_name): Suggest monospace if no previous font is known.
5817
e9c1637d
SM
58182009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
5819
5820 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 5821 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 5822
5a72cccb
YM
58232009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5824
5825 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
5826 processing pending events when event is filtered for input method.
ab04798f 5827 (Bug#3681)
5a72cccb 5828
2629aa37
JB
58292009-10-20 Juanma Barranquero <lekktu@gmail.com>
5830
5831 * fns.c: Add #endif accidentally removed in previous change.
5832
c3417a74
DN
58332009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5834
5835 * fns.c: Remove code for unsupported system: MAC_OS.
5836 * image.c: Likewise. Include setjmp.h.
5837
9685cef2
JD
58382009-10-19 Jan Djärv <jan.h.d@swipnet.se>
5839
5840 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
5841 pixel -1 (bug #4742).
5842
d7306fe6
DN
58432009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5844
019d2c4c
DN
5845 * process.c (create_pty): Remove conditionals for no longer
5846 supported systems: UNIPLUS and RTU.
5847
ee6bacd4
DN
5848 * xterm.c:
5849 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
5850
d7306fe6
DN
5851 * alloc.c: Do not define struct catchtag.
5852 * eval.c: Move struct catchtag definition ...
5853 * lisp.h: ... here.
5854
5855 * image.c: Move png.h #include earlier to avoid warnings.
5856
5857 * xterm.c:
5858 * xsmfns.c:
5859 * xselect.c:
5860 * xrdb.c:
5861 * xmenu.c:
5862 * xftfont.c:
5863 * xfont.c:
5864 * xfns.c:
5865 * xfaces.c:
5866 * xdisp.c:
5867 * window.c:
5868 * widget.c:
5869 * w32xfns.c:
5870 * w32uniscribe.c:
5871 * w32term.c:
5872 * w32select.c:
5873 * w32reg.c:
5874 * w32proc.c:
5875 * w32menu.c:
5876 * w32inevt.c:
5877 * w32heap.c:
5878 * w32font.c:
5879 * w32fns.c:
5880 * w32console.c:
5881 * w32.c:
5882 * w16select.c:
5883 * vm-limit.c:
5884 * unexsol.c:
5885 * unexec.c:
5886 * unexcw.c:
5887 * unexaix.c:
5888 * undo.c:
5889 * tparam.c:
5890 * textprop.c:
5891 * terminfo.c:
5892 * terminal.c:
5893 * termcap.c:
5894 * term.c:
5895 * syntax.c:
5896 * sound.c:
5897 * sheap.c:
5898 * search.c:
5899 * scroll.c:
5900 * region-cache.c:
5901 * regex.c:
5902 * ralloc.c:
5903 * process.c:
5904 * print.c:
b024548b
DN
5905 * nsterm.m:
5906 * nsselect.m:
5907 * nsmenu.m:
5908 * nsimage.m:
5909 * nsfont.m:
5910 * nsfns.m:
d7306fe6
DN
5911 * msdos.c:
5912 * minibuf.c:
5913 * menu.c:
5914 * marker.c:
5915 * macros.c:
5916 * keymap.c:
5917 * keyboard.c:
5918 * intervals.c:
5919 * insdel.c:
5920 * indent.c:
5921 * gtkutil.c:
5922 * ftxfont.c:
5923 * ftfont.c:
5924 * fringe.c:
5925 * frame.c:
5926 * fontset.c:
5927 * font.c:
5928 * fns.c:
5929 * floatfns.c:
5930 * filelock.c:
5931 * fileio.c:
5932 * emacs.c:
5933 * editfns.c:
5934 * dosfns.c:
5935 * doprnt.c:
5936 * doc.c:
5937 * dispnew.c:
5938 * dired.c:
5939 * dbusbind.c:
5940 * data.c:
5941 * composite.c:
5942 * coding.c:
5943 * cmds.c:
5944 * cm.c:
5945 * chartab.c:
5946 * charset.c:
5947 * character.c:
5948 * ccl.c:
5949 * category.c:
5950 * casetab.c:
5951 * casefiddle.c:
5952 * callproc.c:
5953 * callint.c:
5954 * bytecode.c:
5955 * buffer.c:
5956 * atimer.c: Include setjmp.h. (Bug#4643)
5957
fd5f21e6
SM
59582009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
5959
4c0354d7
SM
5960 Remove leftover table unibyte_to_multibyte_table.
5961 * character.c (unibyte_to_multibyte_table): Remove.
5962 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
5963 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
5964 * character.h (UNIBYTE_TO_CHAR): New macro.
5965 (MAKE_CHAR_MULTIBYTE): Use it.
5966 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
5967 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
5968 (message_dolog, set_message_1):
5969 * search.c (Freplace_match):
5970 * editfns.c (Fcompare_buffer_substrings):
5971 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
5972 (concat):
5973 * insdel.c (copy_text, count_size_as_multibyte):
5974 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
5975 * term.c (produce_glyphs):
5976 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
5977 * regex.c (RE_CHAR_TO_MULTIBYTE):
5978 * cmds.c (internal_self_insert):
5979 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
5980
fd5f21e6
SM
5981 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
5982
4418646e
DN
59832009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
5984
5985 * puresize.h (BASE_PURESIZE): Increase to 1310000.
5986
35f5c1d2
JB
59872009-10-16 Juanma Barranquero <lekktu@gmail.com>
5988
5989 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
5990
a0cd8f6b
AR
59912009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5992
5993 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
5994 still needed under Tiger.
5995
5996 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
5997
5998 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
5999 __Apple__.
6000
6001 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
6002
01a8d3fa
KH
60032009-10-15 Kenichi Handa <handa@m17n.org>
6004
6005 * print.c (print_object): Escape a symbol like "2E10" too.
6006
bf6c75c9 60072009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
6008
6009 Cleanups and changes for 64-bit compile under Snow Leopard.
6010 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
6011
6012 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
6013
c5959062 6014 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
6015 (ns_findfonts, nsfont_list_family): Use long format in printf, and
6016 cast argument.
6017 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 6018 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
6019
6020 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
6021
6022 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
6023 where appropriate.
6024
6025 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
6026 where appropriate.
6e4780c5
JB
6027 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
6028 Use stringWithUTF8String.
bf6c75c9
AR
6029 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
6030
6e4780c5
JB
6031 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
6032 Add formal protocol mention to inheritance.
bf6c75c9
AR
6033 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
6034
6e4780c5
JB
6035 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
6036 Fix printf format.
bf6c75c9
AR
6037 (ns_query_color): Use CGFloat where appropriate.
6038 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 6039 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
6040 argument.
6041
3d87f118
AR
6042 * config.in (NS_HAVE_NSINTEGER): Drop.
6043
a95c8102
AR
6044 * dbusbind.c (dbus-method-return-internal)
6045 (dbus-method-error-internal): Use long format in printf, and cast
6046 argument.
6047
6048 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
6049 in printf, and cast argument.
6050
6873acca 6051 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
6052 cast argument.
6053
9ec6f100
GM
60542009-10-11 Glenn Morris <rgm@gnu.org>
6055
6056 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
6057
5be883cd
JD
60582009-10-08 Jan Djärv <jan.h.d@swipnet.se>
6059
6060 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
6061 menu bar with a small width so it doesn't enlarge the frame.
6062
d7a39b51
JB
60632009-10-08 Juanma Barranquero <lekktu@gmail.com>
6064
6065 * fontset.c (Fset_fontset_font): Fix typos in error messages.
6066
0c2b6f8e
GM
60672009-10-06 Glenn Morris <rgm@gnu.org>
6068
6069 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
6070 SOME_MACHINE_LISP (this enters indirectly via DOC).
6071
e02131a2
EZ
60722009-10-05 Eli Zaretskii <eliz@gnu.org>
6073
6074 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
6075
b4744254
EZ
60762009-10-04 Eli Zaretskii <eliz@gnu.org>
6077
6078 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
6079 Doc fix.
6080
dbf64827
JB
60812009-10-03 Martin Rudalics <rudalics@gmx.at>
6082
6083 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
6084
e9a0aef8
MA
60852009-10-02 Michael Albinus <michael.albinus@gmx.de>
6086
d528b1ce 6087 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
6088 used anymore outside fileio.c.
6089
6090 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
6091
64eb2b56
JB
60922009-10-01 Juanma Barranquero <lekktu@gmail.com>
6093
6094 * lisp.h (Qdelete_directory_internal):
6095 Declare, instead of Qdelete_directory.
6096
6097 * w32fns.c (Fsystem_move_file_to_trash): Use it.
6098
9d28c33e
SM
60992009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
6100
6101 * eval.c (Fcalled_interactively_p): Add `kind' argument.
6102
9d8f3bd9
MA
61032009-10-01 Michael Albinus <michael.albinus@gmx.de>
6104
9d28c33e 6105 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
6106 Fdelete_directory. It is not a command anymore. It has no file
6107 name handler.
6108
9694740b
SM
61092009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
6110
6111 * xdisp.c (get_next_display_element): Use an enum in last change.
6112
748e162f
KH
61132009-09-28 Kenichi Handa <handa@m17n.org>
6114
9694740b 6115 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
6116 unibyte_display_via_language_environment in handling
6117 Vnobreak_char_display.
6118
17efd58d
AR
61192009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6120
6121 * nsterm.h (ns_app_name): New extern variable.
6122
6123 * nsterm.m (ns_app_name): New variable.
6124 (ns_term_init): Set and use it.
6125 (ns_term_shutdown): Use it.
6126
6127 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
6128 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
6129
6130 * nsfns.m (ns_set_name_iconic, ns_set_name)
6131 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
6132 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
6133
9694740b
SM
6134 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
6135 Remove double-casting in client_data comparison.
31c2d412 6136
3208cb35
YM
61372009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6138
6139 * keyboard.c (make_lispy_event): Remember last wheel direction.
6140 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
6141
b7d552d6
GM
61422009-09-26 Glenn Morris <rgm@gnu.org>
6143
6144 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
6145 internal.elc. Add term/pc-win.elc.
6146 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
6147 term/x-win.elc.
6148 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
6149 term/w32-win.elc.
6150 (NS_SUPPORT): New.
6151 (lisp): Add NS_SUPPORT.
6152 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
6153
4ff670a8
DR
61542009-09-25 David Reitter <david.reitter@gmail.com>
6155
6156 * nsmenu.m (EmacsMenu-clear): Recognize application menu
6157 on Mac OS X 10.6+ (bug#4513).
6158
feabfb6c
JB
61592009-09-24 Juanma Barranquero <lekktu@gmail.com>
6160
6161 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
6162 some parts of Emacs code (like font selection) don't grok them.
6163 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 6164
de59072a
AS
61652009-09-24 Andreas Schwab <schwab@redhat.com>
6166
6167 * coding.c (decode_coding_iso_2022): Fix operator precedence.
6168
a489517b
JB
61692009-09-24 Juanma Barranquero <lekktu@gmail.com>
6170
6171 * dired.c (Fdirectory_files): Fix typo in docstring.
6172
0592970c
AR
61732009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6174
6175 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
6176 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
6177 (EmacsScroller-setPosition:portion:whole:): Remove -display call
6178 under GNUstep.
6179 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
6180
6181 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
6182 glyph advancement.
6183
48e8a88b
AR
61842009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6185
6186 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 6187 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
6188
6189 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
6190 deleted (bug #4492).
6191
e14f0a78
AR
6192 * nsfont.m (Vns_reg_to_script): New lisp variable.
6193 (syms_of_nsfont): Declare it.
6194 (ns_registry_to_script): New function.
6195 (ns_get_req_script): Call it.
6196 (ns_findfonts): Don't give up on non-unicode registry.
6197
6198 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
6199
5b650faa
SM
62002009-09-20 Tom Tromey <tromey@redhat.com>
6201
6202 * eval.c (find_handler_clause): Make stack-trace-on-error work in
6203 batch mode (bug#4228).
6204
a489517b 62052009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
6206
6207 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 6208 carefully. (Bug #4339)
0bae4e09 6209
fcfe06f3
CY
62102009-09-18 Chong Yidong <cyd@stupidchicken.com>
6211
d798ba87 6212 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 6213
31642728
AR
62142009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6215
6216 * emacs.c (inhibit_x_resources): Update doc string for NS.
6217 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 6218 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
6219
6220 * nsterm.h (ns_no_defaults): Remove.
6221
6222 * nsterm.m (ns_no_defaults): Remove.
6223 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
6224 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
6225 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
6226 don't update the NSWindow itself.
6227 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 6228 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
6229
6230 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
6231 ns_use_qd_smoothing.
6232
6233 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
6234 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 6235 (x-close-connection): Drop PSFlush() under OS X.
a489517b 6236 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 6237
8686ac71
JB
62382009-09-17 Juanma Barranquero <lekktu@gmail.com>
6239
6240 * emacs.c (inhibit_x_resources): New variable.
6241 (main) [HAVE_NS]: Don't process --quick command line option.
6242 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
6243
6244 * lisp.h (inhibit_x_resources): Declare it extern.
6245
6246 * w32reg.c (x_get_string_resource):
6247 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
6248
e227ba05
EZ
62492009-09-17 Eli Zaretskii <eliz@gnu.org>
6250
362654a6
JB
6251 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
6252 Add lisp/term/internal.elc.
e227ba05 6253
742d40e8
SM
62542009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6255
6256 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
6257 (bug#4461).
6258
005bd5a2
DN
62592009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
6260
6261 * puresize.h (BASE_PURESIZE): Increase to 1290000.
6262
6263 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
6264 (OBJECTS_MACHINE): Remove, unused.
6265
f9af9719
SM
62662009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
6267
6268 * frame.c (x_get_resource_string): Remove unused.
6269
0307c7d2
JD
62702009-09-15 Jan Djärv <jan.h.d@swipnet.se>
6271
6272 * xterm.c (x_new_font): Call change_frame_size before calling
6273 x_set_window_size, in case frame size won't change.
6274
6275 * frame.c (x_set_font): Remove dead code.
6276
428b13d6
SM
62772009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
6278
6279 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
6280
5766c380
SM
62812009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6282
6283 * lread.c (Fload): Don't output a message after loading an obsolete
6284 package any more (done in Lisp now).
6285
2fd0161b
CY
62862009-09-12 Chong Yidong <cyd@stupidchicken.com>
6287
6288 * fns.c (syms_of_fns): Doc fix (Bug#4227).
6289
bc5e75b6
SM
62902009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6291
6292 * keymap.c (Fwhere_is_internal): Use nconc2.
6293
c31c985e
AM
62942009-09-11 Alan Mackenzie <acm@muc.de>
6295
6296 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
6297 batch mode.
6298
78012bd2
AS
62992009-09-11 Andreas Schwab <schwab@linux-m68k.org>
6300
6301 * xdisp.c (display_mode_element): Detect cycles.
6302
9d889332
SM
63032009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6304
6305 * keymap.c (where_is_internal): Don't erroneously return nil right after
6306 filling the cache.
6307 (where_is_internal_1): Fix up typo.
6308
7ab5d780
GM
63092009-09-11 Glenn Morris <rgm@gnu.org>
6310
6311 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
6312 share a common doc-string.
6313
5238a749
SM
63142009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6315
66d77eda
SM
6316 * keymap.c (get_keymap): Return the actual keymap symbol rather than
6317 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
6318
5238a749
SM
6319 * keymap.c (QCadvertised_binding): New constant.
6320 (syms_of_keymap): Initialize it.
6321 (Fwhere_is_internal): Try and use bindings from :advertised-binding
6322 if applicable.
6323
19f48442
SM
63242009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
6325
50d4ba39
SM
6326 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
6327 (parse_menu_item): Streamline since bindings are recomputed all the
6328 time anyway. Don't bother checking Vdefine_key_rebound_commands any
6329 more and don't support lmenu's menu-alias any more either.
6330
a88a5372
SM
6331 * keymap.c (where_is_internal_data): Make noindirect a boolean.
6332 (where_is_internal): Strip it down to only traverse the keymaps.
6333 Move the cache handling from Fwhere_is_internal to here.
6334 (Fwhere_is_internal): Move the handling of remapping and the choice of
6335 the best binding from where_is_internal to here.
6336 Unify the cached/noncached paths, so remapping is also handled
6337 correctly when the cache is used, and so the cache can be used to
6338 speed up remap-handling when applicable.
6339 Give preference to non-remapped bindings.
6340 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
6341 non-remapped bindings.
6342 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
6343 command remapping.
6344
19f48442
SM
6345 * xdisp.c (display_mode_element): Move list length limit from 50 to
6346 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
6347
599498c3 63482009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
6349
6350 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
6351
f9b7b5ac
SM
63522009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
6353
a53af587
JB
6354 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
6355 (Bug#4334)
6356
f9b7b5ac
SM
6357 * keymap.c (where_is_internal): Filter out shadowed remappings.
6358 Assume that where_is_internal returns unshadowed bindings to simplify
6359 the code and get rid of the gotos. Use ASIZE.
6360
04f4b72d
JD
63612009-09-04 Jan Djärv <jan.h.d@swipnet.se>
6362
4da146f2
JD
6363 * xterm.c (x_focus_changed): If we get a focusout and pointer
6364 is invisible, make it visible.
6365
04f4b72d
JD
6366 * xterm.h: Remove condition for declaration of
6367 x_*_window_to_frame.
6368
7cef7ce3
SM
63692009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
6370
6371 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
6372 initial terminal as well.
6373
a54fa5b7
JD
63742009-09-02 Jan Djärv <jan.h.d@swipnet.se>
6375
6376 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 6377 x_menubar_window_to_frame.
a54fa5b7 6378
50426a04 6379 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
6380 (XTmouse_position): Do not return valid positions
6381 for clicks in the menubar and the toolbar for Gtk+.
6382
6383 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
6384 if the widget for the event has the same top level as a frame,
6385 return the frame.
6386 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
6387 internal windows, bug #4122.
6388 (x_non_menubar_window_to_frame): Remove.
6389
5a021dd0
GM
63902009-09-02 Glenn Morris <rgm@gnu.org>
6391
6392 * buffer.c (default-major-mode): Move most of the doc from here...
6393 (major-mode): ... to here.
6394
548fe2f3
NR
63952009-08-30 Nick Roberts <nickrob@snap.net.nz>
6396
6397 * process.c (wait_reading_process_output): Keep the descriptor
6398 when pty is used by a non-child process, e.g., in I/O buffer of
6399 GDB this allows inferior to be restarted.
6400
e0840eef
EZ
64012009-08-29 Eli Zaretskii <eliz@gnu.org>
6402
6403 * xdisp.c (redisplay_internal): Remove redundant test and collapse
6404 both branches into one.
6405
82e98df4
SM
64062009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
6407
6408 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
6409 (main): Use enable-multibyte-characters rather than
6410 default-enable-multibyte-characters. Output a warning message when
6411 running a unibyte session.
6412
890617cb
YM
64132009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6414
6415 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
6416 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
6417 (copy_data_segment): Also copy __program_vars section.
6418 (copy_dyld_info) [LC_DYLD_INFO]: New function.
6419 (dump_it) [LC_DYLD_INFO]: Use it.
6420
6421 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
6422
e7adeadc
EZ
64232009-08-28 Eli Zaretskii <eliz@gnu.org>
6424
6425 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
6426 $(SRC)/buildobj.h.
6427 (buildobj.h): Renamed from $(SRC)/buildobj.h.
6428 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
6429 $(SRC)/buildobj.h.
6430 (clean): Add buildobj.h.
6431
3ed8bbdc
TZ
64322009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
6433
6434 * print.c (print_object): Set escapeflag to 1 when printing
6435 hashtable keys and values.
6436
155a6764
SM
64372009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
6438
6439 * lread.c (read_integer): Use doubles (and potentially return a float
6440 number) as we do in string-to-number.
6441 (read1): Use strtol to read integers, signal errors on strtol's
6442 overflow and use floats if strtol's output is too large for
6443 Elisp integers.
6444
877610de
EZ
64452009-08-27 Eli Zaretskii <eliz@gnu.org>
6446
6447 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
6448 (make-buildobj-SH): Fix last change.
6449 (SRC): Move to before where it's first used.
6450
ef73e7be
KH
64512009-08-27 Kenichi Handa <handa@m17n.org>
6452
550c8289
KH
6453 * process.c (send_process): Use encode_coding_object instead of
6454 encode_coding_string to perform eol-conversion even if the string
6455 is unibyte.
6456
60afa08d
KH
6457 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
6458 character.
6459
ef73e7be 6460 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 6461 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 6462
7b3a82d7
DN
64632009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
6464
5654bf63
DN
6465 * callproc.c (Fcall_process): Remove always true #if.
6466
7b3a82d7
DN
6467 * lisp.h: Replace #if 0 code for checking with text pointing to
6468 the --enable-checking configure flag.
6469
6470 * emacs.c (main): Mention the --enable-profiling configure flag
6471 instead of using CFLAGS.
6472
878bde49
KR
64732009-08-26 Ken Raeburn <raeburn@raeburn.org>
6474
6475 * Makefile.in (buildobj.h): New target.
6476 (doc.o): Depend on it.
6477 (temacs${EXEEXT}): Don't generate buildobj.lst.
6478 (mostlyclean): Delete buildobj.h, not buildobj.lst.
6479 * makefile.w32-in ($(SRC)/buildobj.h): New target.
6480 ($(BLD)/doc.$(O)): Depend on it.
6481 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
6482 provided by Eli Zaretskii.)
6483 ($(TEMACS)): Don't generate buildobj.lst.
6484 * doc.c: Include buildobj.h.
6485 (buildobj): New static variable.
6486 (Fsnarf_documentation): Use it, instead of opening and reading
6487 buildobj.lst.
6488
1574224c
MA
64892009-08-25 Michael Albinus <michael.albinus@gmx.de>
6490
6491 * dbusbind.c (Fdbus_call_method)
6492 (Fdbus_call_method_asynchronously): Use English numeric format for
6493 timeout values in doc string.
6494
d9da2f45
KH
64952009-08-25 Kenichi Handa <handa@m17n.org>
6496
ef73e7be
KH
6497 * alloc.c (mark_char_table): New function.
6498 (mark_object): Use mark_char_table for a char-table.
6499
d9da2f45
KH
6500 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
6501 (CHAR_TABLE_REF): Use it.
6502
c8edcc01
KR
65032009-08-23 Ken Raeburn <raeburn@raeburn.org>
6504
6505 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
6506 before invoking the newly build emacs to check for load-path
6507 shadowing.
6508
7763401b
GM
65092009-08-22 Glenn Morris <rgm@gnu.org>
6510
6511 * Makefile.in (bootstrap_exe): New variable.
6512 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
6513 Use ${bootstrap_exe}.
6514
729eadda
EZ
65152009-08-22 Eli Zaretskii <eliz@gnu.org>
6516
6517 * coding.h (encode_coding_string): Don't encode unibyte strings.
6518 (Bug#4047)
6519
eb4c6ace
MA
65202009-08-22 Michael Albinus <michael.albinus@gmx.de>
6521
6522 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
6523
6524 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
6525 intended as hotfix only.
6526 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
6527
36e34d1b
AR
65282009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6529
6530 * nsterm.m (ns_get_color): Update documentation properly for last
6531 change, and clean up loose ends in the code left by it. Fix
6532 longstanding bug with 16-bit hex parsing, and add support for
6533 yet another X11 format (rgb:r/g/b) for compatibility.
6534 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
6535 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
6536
f983eb8a
SM
65372009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
6538
6539 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
6540
3f56d3c6
MA
65412009-08-20 Michael Albinus <michael.albinus@gmx.de>
6542
6543 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
6544 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
6545 (xd_initialize, xd_pending_messages): Check, whether
6546 $DBUS_SESSION_BUS_ADDRESS is set.
6547
fb641d68
YM
65482009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6549
6550 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
6551
6552 * nsterm.m (ns_get_color): Remove incompatible color formats again.
6553
cf59a374
GM
65542009-08-20 Glenn Morris <rgm@gnu.org>
6555
6556 * emacs.c (system-type): Doc fix.
6557
1373f3be
SM
65582009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6559
6560 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
6561 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
6562
058ed861
MA
65632009-08-18 Michael Albinus <michael.albinus@gmx.de>
6564
1373f3be
SM
6565 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
6566 New functions.
058ed861
MA
6567 (xd_initialize): Revert change from 2009-08-16.
6568
563a866e 65692009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
6570
6571 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 6572 font-group vector, return nil.
5fc05db0 6573
e42bdf01
CY
65742009-08-17 Chong Yidong <cyd@stupidchicken.com>
6575
6576 * process.c (status_notify): Don't perform redisplay.
6577 (Fdelete_process, list_processes_1, process_send_signal):
6578 Expliticly perform redisplay.
6579 (wait_reading_process_output): Always check process status, but
6580 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
6581
4230ab74
KR
65822009-08-17 Ken Raeburn <raeburn@raeburn.org>
6583
1373f3be 6584 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
6585 (XFLOAT_INIT): New macro for storing a float value.
6586 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
6587 * fns.c (sxhash): Copy out the value of a float in order to
6588 examine its bytes.
6589 * dbusbind.c (xd_append_arg): Likewise.
6590
4230ab74
KR
6591 * emacs.c (main): Don't call syms_of_data twice.
6592
a0645cdd
MA
65932009-08-16 Michael Albinus <michael.albinus@gmx.de>
6594
6595 * dbusbind.c (xd_initialize): Add connection file descriptor to
6596 input_wait_mask, in order to let select() detect, whether a new
6597 message has been arrived.
ca4f31ea 6598 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 6599
485db0ba
MA
66002009-08-15 Michael Albinus <michael.albinus@gmx.de>
6601
1373f3be
SM
6602 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
6603 New functions.
485db0ba
MA
6604
6605 * lisp.h (xd_pending_messages): Declare.
6606
6607 * keyboard.c (readable_events): Call xd_pending_messages.
6608
b5b98ff4
CY
66092009-08-15 Chong Yidong <cyd@stupidchicken.com>
6610
1373f3be 6611 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 6612
f8354c6e
CY
6613 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
6614
b5b98ff4
CY
6615 * buffer.c (set_buffer_internal_1)
6616 (swap_out_buffer_local_variables): Check for unbound local
6617 variables (Bug#4138).
6618
8b9fc636
EZ
66192009-08-14 Eli Zaretskii <eliz@gnu.org>
6620
6621 * process.c (create_pty): Fix last change.
6622
ce959360
CY
66232009-08-13 Chong Yidong <cyd@stupidchicken.com>
6624
6625 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
6626 (xbm_load_image): Caller changed.
64b807c9 6627 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 6628
c7baf7e9
NR
66292009-08-13 Nick Roberts <nickrob@snap.net.nz>
6630
6631 * process.c (create_pty): New function.
6632 (Fstart_process): Use it to allow Emacs to just associate a pty
6633 with the buffer. See associated change in gdb-mi.el.
6634 (list_processes_1): Deal with no program name.
6635 (start_process_unwind): Use pid == -2 to mean no process.
6636
1ac9108a
SM
66372009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6638
6639 * cmds.c (nonundocount): New global variable.
6640 (keys_of_cmds): Initialize it.
6641 (Fself_insert_command): Use it to combine upto 20 sequential chars
6642 into a single undo entry, just like the Qself_insert_command code in
6643 keyboard.c does.
6644 Call frame_make_pointer_invisible, also like the Qself_insert_command
6645 code in keyboard.c does.
6646 * keyboard.c (command_loop_1): Use the new global nonundocount rather
6647 than its own local replacement for it.
6648
e267324c
KR
66492009-08-10 Ken Raeburn <raeburn@raeburn.org>
6650
1ac9108a 6651 * fns.c (concat): Don't re-set string length to its current value.
77437343 6652
1ac9108a
SM
6653 * coding.h (decode_coding_string, encode_coding_string):
6654 Use SBYTES macro.
f0bed503 6655
1ac9108a 6656 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
6657 (doprnt): Merge with doprnt1, discarding lispstrings code.
6658 * lisp.h (doprnt_lisp): Don't declare.
6659
416e006d
JL
66602009-08-07 Juri Linkov <juri@jurta.org>
6661
6662 * puresize.h (BASE_PURESIZE): Increase to 1270000.
6663
6f7d5780
DN
66642009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6665
6666 * print.c (syms_of_print): Undo previous change.
6667
f19a0f5b
TZ
66682009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
6669
6670 * lread.c (read1, syms_of_lread): Read hashtables back from the
6671 readable format.
6672
6673 * print.c (print_preprocess, print_object): Print hashtables fully
6674 and readably.
6675 (syms_of_print): Provide 'hashtable-print-readable.
6676
b9173dc2
AR
66772009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6678
6679 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
6680 no family set.
6681 (nsfont_open): Handle case when entity has no family.
6682
1586503c
AR
66832009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6684
6685 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
6686 element, not a list, for match case.
6687
087048cd
KH
66882009-07-28 Kenichi Handa <handa@m17n.org>
6689
6690 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
6691 rigidly.
6692
6693 * xfont.c (xfont_list_pattern): Don't ignore the return value of
6694 font_parse_xlfd. Check font properties more rigidly.
6695
780c2506
DN
66962009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6697
31fd7c5c
JB
6698 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
6699 bsd-common.h.
780c2506 6700
a8c0cc18
KH
67012009-07-27 Kenichi Handa <handa@m17n.org>
6702
6703 * xfaces.c (face_with_height): Call font_clear_prop.
6704
4fbe2306
CY
67052009-07-26 Chong Yidong <cyd@stupidchicken.com>
6706
111d9af3
CY
6707 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
6708
6709 * xterm.c (x_term_init): Use Qx.
6710
4fbe2306
CY
6711 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
6712
1ac9108a 6713 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
6714 (ns_get_color): Revert 2009-07-16 change.
6715
beb0b7f9
EZ
67162009-07-25 Eli Zaretskii <eliz@gnu.org>
6717
6718 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 6719 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 6720
2baf5e76
KR
67212009-07-25 Ken Raeburn <raeburn@raeburn.org>
6722
1ac9108a
SM
6723 * coding.h (decode_coding_string, encode_coding_string):
6724 Use SCHARS macro.
8890e5f5 6725
2baf5e76 6726 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 6727 (load_depth): Delete.
2baf5e76
KR
6728 (Qload_in_progress): New variable.
6729 (load_unwind): Don't reference load_depth or load_in_progress.
6730 (Fload): Likewise; specbind Qload_in_progress instead.
6731 (init_lread): Don't initialize load_depth.
6732 (syms_of_lread): Initialize and protect Qload_in_progress.
6733
1395c6f5
AR
67342009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6735
6736 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
6737
4e2f36cf
AR
67382009-07-23 Yavor Doganov <yavor@gnu.org>
6739
6740 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
6741
5dd9a6f7
AR
67422009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6743
6744 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
6745 Bugs 3792, 3720, 2402.
6746 (ns_lookup_indexed_color): Check for bad index.
6747 (ns_index_color): Init unused slot to 0.
6748 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
6749 Bug 3714, possibly 3082.
5dd9a6f7 6750
c902b920
JR
67512009-07-22 Jason Rumney <jasonr@gnu.org>
6752
1ac9108a
SM
6753 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
6754 Position IME window at cursor (Bug#2570).
c902b920
JR
6755 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
6756 (globals_of_w32fns): Dynamically load functions required above.
6757
6758 * w32term.c (w32_draw_window_cursor): Send message to reposition
6759 any IME window.
6760
090101cf
CY
67612009-07-21 Chong Yidong <cyd@stupidchicken.com>
6762
6763 * fileio.c: Revert 2009-07-16 changes.
6764 (Vauto_save_include_big_deletions): New variable.
6765 (Fdo_auto_save): Disable auto-save only if
6766 auto-save-include-big-deletions is nil.
6767
e6583e3d
CY
67682009-07-21 Chong Yidong <cyd@stupidchicken.com>
6769
6770 * xdisp.c (move_it_to): For continued lines ending in a tab, take
6771 the overflowed pixels into account (Bug#3879).
6772
ece435a5
KR
67732009-07-21 Ken Raeburn <raeburn@raeburn.org>
6774
6775 * lread.c (load_depth): New variable.
6776 (Fload, load_unwind, init_lread): Set it to the load recursion
6777 depth; set load_in_progress as a simple boolean based on the
6778 current load_depth. (Bug#3892)
6779
40b2d973
AR
67802009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6781
6782 * nsfont.m (ns_has_attribute): Remove.
6783 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
6784
10be7e0d
JL
67852009-07-18 Juri Linkov <juri@jurta.org>
6786
6787 * process.c (Fset_process_query_on_exit_flag): Mention killing
6788 a buffer in docstring.
6789
fa055055
KH
67902009-07-17 Kenichi Handa <handa@m17n.org>
6791
6792 * casetab.c (shuffle): Fix the logic of setting up the cycle.
6793
042f7b69
YM
67942009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6795
6796 * nsfns.m (Fns_set_alpha): Remove function.
6797 (syms_of_nsfns): Don't defsubr it.
6798
6799 * nsterm.m (ns_get_color): Remove incompatible color formats.
6800 (ns_color_to_lisp): Generate #rrggbb color format string.
6801
4be941e3
RS
68022009-07-16 Richard Stallman <rms@gnu.org>
6803
6804 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
6805 (Fset_buffer_auto_saved): Handle save_length = -2.
6806
4e6b227d
CY
68072009-07-16 Chong Yidong <cyd@stupidchicken.com>
6808
6809 * xterm.c (Qx_gtk_map_stock): New var.
6810
6811 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
6812 of calling intern each time.
6813
a1856973
YM
68142009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6815
6816 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
6817 does tiling.
6818
6819 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
6820
497e54d8
KH
68212009-07-14 Kenichi Handa <handa@m17n.org>
6822
72d36834
KH
6823 * font.c (font_vconcat_entity_vectors): New function.
6824 (struct font_sort_data): New member font_driver_preference.
6825 (font_compare): Check font_driver_preference.
6826 (font_sort_entities): The format of the first argument changed.
6827 (font_delete_unmatched): Likewise.
6828 (font_list_entities): The return type changed.
6829 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
6830 (font_find_for_lface): Adjuste for the above changes.
6831 Don't suppress the checking of C even if the repertory supports it.
6832 (Flist_fonts): Adjust for the above changes.
72d36834 6833
1ac9108a
SM
6834 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
6835 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
6836 Reject a font who has adstyle property that is different from a
6837 langname derived from registry property.
1ac9108a 6838 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 6839
b6046155
EZ
68402009-07-13 Eli Zaretskii <eliz@gnu.org>
6841
6842 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
6843 local copy of dirfilename.
6844
fb6b6049
KH
68452009-07-13 Kenichi Handa <handa@m17n.org>
6846
e2402a5e
KH
6847 * chartab.c (sub_char_table_ref_and_range): Fix the range check
6848 against max_char.
6849
fb6b6049
KH
6850 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
6851 calling XSYMBOL (sym).
6852
65156807
EZ
68532009-07-11 Eli Zaretskii <eliz@gnu.org>
6854
1ac9108a
SM
6855 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
6856 New function.
6857 (directory_files_internal) [WINDOWSNT]:
6858 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
6859 the filesystem of the directory is fast or slow.
6860
6861 * w32.c (logon_network_drive): Don't assume PATH is an absolute
6862 file name.
6863 (is_slow_fs): New function.
6864 (stat): Use it to determine whether to issue more system calls to
6865 get accurate file attributes, when w32-get-true-file-attributes is
6866 `local'.
6867
e0ab5fcf
JD
68682009-07-10 Jan Djärv <jan.h.d@swipnet.se>
6869
6870 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 6871 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
6872 parameter font-parameter as default to the font dialog.
6873
784ceded
KH
68742009-07-10 Kenichi Handa <handa@m17n.org>
6875
6876 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
6877
fb8edc0b
EZ
68782009-07-09 Eli Zaretskii <eliz@gnu.org>
6879
1ac9108a 6880 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 6881
fb8edc0b
EZ
6882 * w32.c (stat): Treat UNC file names as residing on remote
6883 drives. (Bug#3542)
6884
635c75b1
KH
68852009-07-09 Kenichi Handa <handa@m17n.org>
6886
6887 * fontset.c (fontset_find_font): Fix previous change.
6888
c1d5ce94
MA
68892009-07-08 Michael Albinus <michael.albinus@gmx.de>
6890
6891 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
6892 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
6893 error flag.
6894
edb61b39
KH
68952009-07-08 Kenichi Handa <handa@m17n.org>
6896
374bf7e4
KH
6897 * fontset.c (fontset_find_font): Fix the logic of handling
6898 charset_matched.
6899 (font_for_char): Delete unused var.
6900 (generate_ascii_font_name): Delete it.
6901
edb61b39
KH
6902 * coding.h (JIS_TO_SJIS2): Fix the code range check.
6903
6904 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
6905 (encode_coding_sjis): Fix the code range check.
6906
0f3f018c
CY
69072009-07-07 Chong Yidong <cyd@stupidchicken.com>
6908
6909 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
6910 (Fexpand_file_name): Copy string data properly (Bug#3772).
6911
fcaf6f3a
JD
69122009-07-07 Jan Djärv <jan.h.d@swipnet.se>
6913
6914 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
6915 first MapNotify.
6916
6809ca75
KH
69172009-07-07 Kenichi Handa <handa@m17n.org>
6918
6919 * character.h (unibyte_has_multibyte_table): Delete extern.
6920 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
6921
6922 * charset.c (Fset_charset_priority): Update charset_unibyte.
6923 (syms_of_charset): Initialize charset_unibyte.
6924
6925 * character.c (unibyte_has_multibyte_table): Delete it.
6926 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
6927 charset_unibyte.
6928 (multibyte_char_to_unibyte_safe): Likewise.
6929 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
6930
1ac9108a 6931 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
6932 (x_produce_glyphs): Likewise.
6933
6934 * .gdbinit (xcharset): Fix the treating $arg0.
6935
ad9e2d54
EZ
69362009-07-04 Eli Zaretskii <eliz@gnu.org>
6937
6938 Emulation of `getloadavg' on MS-Windows.
50426a04 6939 * w32.c: Include float.h.
ad9e2d54
EZ
6940 (g_b_init_get_native_system_info, g_b_init_get_system_times)
6941 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
6942 (get_native_system_info, get_system_times): New functions.
6943 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
6944 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
6945 (globals_of_w32): Initialize g_b_init_get_native_system_info,
6946 g_b_init_get_system_times, and num_of_processors.
6947
0a3472c7
JR
69482009-07-03 Jason Rumney <jasonr@gnu.org>
6949
6950 * w32term.c (w32_initialize): Use standard types.
6951
80904120
EZ
69522009-07-03 Eli Zaretskii <eliz@gnu.org>
6953
6954 * dired.c (Ffile_attributes): Decode user and group names by the
6955 locale's encoding. (Bug#3443)
6956
6978862d
DN
69572009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
6958
f8d23104
DN
6959 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
6960 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
6961
6962 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
6963
6964 * term.c (init_tty): Remove spurious #ifdef.
6965
6978862d
DN
6966 * m/mips.h: Mention this file is also used for netbsd.
6967 * m/pmax.h: Remove file.
6968
e044e4fc
JD
69692009-07-03 Jan Djärv <jan.h.d@swipnet.se>
6970
6971 * xterm.h (struct x_display_info): Add invisible_cursor.
6972 (struct x_output): Add current_cursor.
6973
6974 * xterm.c (XTtoggle_invisible_pointer): New function.
6975 (x_define_frame_cursor): Don't define cursor if invisible or the
6976 same as before. Set current_cursor.
6977 (x_create_terminal): Set toggle_invisible_pointer_hook.
6978
6979 * xfns.c (make_invisible_cursor): New function.
6980 (x_set_mouse_color): Call make_invisible_cursor.
6981 Set current_cursor.
6982 (x_window): Set current_cursor.
6983
6984 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
6985
6986 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
6987 inserting a character.
6988 (read_avail_input): Call frame_make_pointer_visible.
6989
6990 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
6991 (frame_make_pointer_invisible, frame_make_pointer_visible):
6992 New functions.
e044e4fc
JD
6993 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
6994
6995 * frame.h: Declare frame_make_pointer_invisible and
6996 frame_make_pointer_visible.
6997 (struct frame): Add pointer_invisible.
6998
574c8efa
JD
69992009-07-02 Jan Djärv <jan.h.d@swipnet.se>
7000
7b507248
JD
7001 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
7002 frame isn't visible.
7003 (xg_frame_resized): If width/height is -1, get size of window
7004 from X server.
7005
7006 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
7007 for MapNotify.
7008
835bdaa7 7009 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 7010 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 7011 (flush_and_sync): Reintroduce.
574c8efa 7012
3f1c6666 70132009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 7014
31fd7c5c 7015 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
7016
7017 * xterm.c (x_handle_net_wm_state): Also look for sticky.
7018 (x_term_init): Initialize Xatom_net_wm_state_sticky.
7019
7020 * frame.h: Declare Qsticky.
7021
cad9ef74
JD
7022 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
7023
7024 * nsfns.m (ns_frame_parm_handlers): Ditto.
7025
7026 * frame.c: Declare Qsticky.
7027 (frame_parms): Add sticky.
7028
7029 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
7030
7031 * xterm.h: Declare x_set_sticky.
7032
7033 * xterm.c (x_set_sticky): New function.
7034
69b16610
JD
7035 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
7036 (xg_tool_bar_menu_proxy): Attach enter/leave events to
7037 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
7038
7039 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
7040
7041 * frame.c: Qmaximized is new.
7042 (x_set_frame_parameters): Do not handle fullscreen specially.
7043 Only set width and height if explicitly set.
7044 (x_set_fullscreen): Handle Qmaximized.
7045 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
7046 (syms_of_frame): Initialize Qmaximized.
7047
1ac9108a
SM
7048 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
7049 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
7050
7051 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
7052 for Expose event. Add call to x_check_fullscreen for MapNotify event.
7053 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
7054 set gravity to NorthWestGravity when USE_GTK.
7055 (set_wm_state): New function.
31fd7c5c 7056 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
7057 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
7058 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 7059 or the case when no window manager is running. That means remove calls
3f1c6666
JD
7060 to x_real_positions and x_fullscreen_adjust.
7061
7062 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
7063 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
7064 flush_and_sync.
7065 (xg_height_changed): New function.
7066 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
7067 and gtk_window_set_policy. Set frame gravity after parsing the
7068 geometry string.
3f1c6666
JD
7069 (xg_update_frame_menubar, free_frame_menubar)
7070 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
7071 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
7072 Remove calls to xg_frame_set_char_size.
7073
fd503d99
KH
70742009-07-01 Kenichi Handa <handa@m17n.org>
7075
7076 * keyboard.c (decode_keyboard_code): New function.
7077 (tty_read_avail_input): Decode the input bytes if necessary.
7078
1ac9108a
SM
7079 * coding.c (setup_coding_system):
7080 Initialize coding->carryover_bytes to 0.
fd503d99
KH
7081 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
7082 use Qno_conversion.
7083
24ed93fb
YM
70842009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7085
7086 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
7087
99061dfc
CY
70882009-06-30 Chong Yidong <cyd@stupidchicken.com>
7089
1ac9108a 7090 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 7091
ff90fbde
JR
70922009-06-30 Jason Rumney <jasonr@gnu.org>
7093
7094 * w32term.c (w32_initialize): Use GetModuleHandle for library that
7095 is already loaded.
7096 Set user model ID if supported (bug#1849).
7097
5f445726
JM
70982009-06-29 Jim Meyering <meyering@redhat.com>
7099
7100 Remove useless if-before-xfree test.
7101 * nsfont.m (nsfont_close): Remove useless test.
7102 * term.c (delete_tty): Likewise.
7103 * w32.c (system_process_attributes): Likewise.
7104 * w32font.c (w32font_close): Likewise.
7105 * xfaces.c (x_free_gc): Likewise.
7106 * xselect.c (buffer): Likewise.
7107
b9607587
AS
71082009-06-28 Andreas Schwab <schwab@linux-m68k.org>
7109
7110 * process.c (send_process): Keep decoded string in a local
7111 variable and protect it from GC. (Bug#3521)
7112
89ba96f4
EZ
71132009-06-28 Eli Zaretskii <eliz@gnu.org>
7114
7115 * term.c (create_tty_output) [MSDOS]: #ifdef away.
7116 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
7117
098a1589
CY
71182009-06-28 Chong Yidong <cyd@stupidchicken.com>
7119
485422be
CY
7120 * xdisp.c (start_display, handle_face_prop)
7121 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
7122 (redisplay_window, try_window_id, produce_image_glyph):
7123 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 7124
098a1589
CY
7125 * xterm.c (x_update_window_begin, x_new_focus_frame)
7126 (x_scroll_bar_handle_click, handle_one_xevent)
7127 (handle_one_xevent, XTread_socket, x_focus_on_frame)
7128 (x_make_frame_visible, x_make_frame_invisible)
7129 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
7130 code chunks that are now obsolete.
7131
78c38319
MA
71322009-06-28 Michael Albinus <michael.albinus@gmx.de>
7133
7134 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
7135 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
7136 for hours, when optimzation is enabled.
7137 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
7138 (xd_read_message): Make them static.
7139
4189ed40
CY
71402009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
7141
7142 * term.c (turn_on_face): Allow simultaneously bold and dim
7143 terminal faces (Bug#3530).
7144
cd9b5e16
CY
71452009-06-27 Chong Yidong <cyd@stupidchicken.com>
7146
4e23bedb
CY
7147 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
7148
cd9b5e16
CY
7149 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
7150 truncation glyphs (Bug#3686).
7151
07cc3c35
GM
71522009-06-27 Glenn Morris <rgm@gnu.org>
7153
7154 * m/pmax.h: Restore file, with only netbsd portions.
7155
31fd7c5c 71562009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 7157
cd9b5e16 7158 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 7159
42d4a64f
KH
71602009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
7161
7162 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
7163 the arg FORCE_SYMBOL.
7164
930fe55b 71652009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
7166
7167 * fontset.c (fontset_find_font): When a usable rfont_def is found
7168 in a fallback font-group, make it the first element of the group.
7169
57ebc3fd
CY
71702009-06-24 Chong Yidong <cyd@stupidchicken.com>
7171
7172 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
7173
f084f942
KH
71742009-06-24 Kenichi Handa <handa@m17n.org>
7175
7176 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
7177 set for C.
7178 (fontset_font): Record the availability of a font for C both in
7179 the realized fontsets of the current one and the default one.
7180
2f686c87
DN
71812009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
7182
7183 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
7184 conditional, it is always defined on AIX.
7185
666e158e
MB
71862009-06-23 Miles Bader <miles@gnu.org>
7187
7188 * window.c (Vrecenter_redisplay): New variable.
7189 (syms_of_window): Initialize it.
7190 (Qtty): New extern declaration.
7191 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
7192
c6da7cd2
JM
71932009-06-23 Jim Meyering <meyering@redhat.com>
7194
1ac9108a
SM
7195 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
7196 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 7197 pointer dereferences are guaranteed to be valid.
c6da7cd2 7198
678dca3d
KH
71992009-06-23 Kenichi Handa <handa@m17n.org>
7200
74d75424
KH
7201 * emacs.c (main): Call init_font ().
7202
7203 * font.h (Vfont_log): Extern it.
7204 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
7205
7206 * font.c (font_sort_entities, font_list_entities)
7207 (font_matching_entity, font_open_entity)
7208 (font_close_object): Change font_add_log to FONT_ADD_LOG.
7209 (Vfont_log): Delete static.
7210 (font_log_env_checked): Delete this variable.
7211 (font_add_log): Don't check font_log_env_checked.
7212 (font_deferred_log): Check Vfont_log.
7213 (init_font): New function.
7214
678dca3d
KH
7215 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
7216
7217 * w32font.c: Change font_add_log to FONT_ADD_LOG.
7218
7219 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
7220
7221 * xfont.c: Change font_add_log to FONT_ADD_LOG.
7222
7223 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
7224 (face_for_char): Don't call font_deferred_log here.
7225 (font_for_char): Likewise.
7226
8a668709
CY
72272009-06-22 Chong Yidong <cyd@stupidchicken.com>
7228
9a01ee33
CY
7229 * w32term.c (x_draw_glyph_string): Use the glyph string's width
7230 rather than its background_width for drawing the overline and
7231 underline (Bug#489).
7232
7233 * xterm.c (x_draw_glyph_string): Use the glyph string's width
7234 rather than its background_width for drawing the overline and
7235 underline (Bug#489).
ec7c9926
CY
7236 (xg_default_icon_file): New variable.
7237 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
7238 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 7239
8a668709
CY
7240 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
7241 (load_overlay_strings): Remove externs.
7242 (fast_find_position): Function deleted.
7243 (mouse_face_from_buffer_pos): New function, based on
7244 fast_find_position. Correctly handle before-strings,
7245 display-strings, and after-strings (Bug#1220).
7246 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
7247
4d4c02d8
CY
72482009-06-21 Chong Yidong <cyd@stupidchicken.com>
7249
1ac9108a 7250 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
7251 (move_it_in_display_line_to, move_it_in_display_line_to)
7252 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
7253
70243478
CY
72542009-06-21 Chong Yidong <cyd@stupidchicken.com>
7255
7256 * Branch for 23.1.
7257
13087e59
JR
72582009-06-21 Jason Rumney <jasonr@gnu.org>
7259
7260 * w32term.c (keyboard_codepage): New static variable.
7261 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
7262 (w32_read_socket) [WM_CHAR]: Use it to decode character
7263 input (bug#3237).
7264 (w32_initialize): Initialize it.
7265 (codepage_for_locale): New function.
7266
4735b74e
KR
72672009-06-20 Ken Raeburn <raeburn@raeburn.org>
7268
7269 * process.c (status_message): Pass Faset index argument as a lisp
7270 object, so as to work with USE_LISP_UNION_TYPE.
7271
0e727afa
YM
72722009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7273
7274 * coding.c (Ffind_coding_systems_region_internal):
7275 Cache checked characters.
7276
cf299835
KH
72772009-06-18 Kenichi Handa <handa@m17n.org>
7278
1ac9108a 7279 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 7280
90f20d94
AS
72812009-06-18 Andreas Schwab <aschwab@redhat.com>
7282
7283 * xdisp.c (redisplay_internal): Check that the frame is still
7284 live after redisplay of its windows.
7285 (redisplay_windows): Check that the window is still live.
7286
7f1faf1c
KH
72872009-06-17 Andreas Schwab <schwab@linux-m68k.org>
7288
7289 * coding.c (detect_coding_utf_16): Fix previous change.
7290
cc13543e
KH
72912009-06-16 Kenichi Handa <handa@m17n.org>
7292
7293 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
7294 UTF-16 by checking the dispersion of Eth and Oth bytes.
7295
977b85f4
AS
72962009-06-15 Andreas Schwab <schwab@linux-m68k.org>
7297
7298 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
7299
66bd43d1
KH
73002009-06-15 Kenichi Handa <handa@m17n.org>
7301
7302 * process.c (status_message): Fix previous change. Be sure to
7303 decode a localized string.
7304
cb5ca9c5
YM
73052009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7306
7307 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
7308 add comment explaining why.
7309
ec7709ba 73102009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 7311
ec7709ba 7312 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 7313
4b7f335c
AR
73142009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
7315
7316 * nsfont.m (ns_attribute_value): Remove.
7317 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
7318 (ns_has_attribute): Shrink the normal range.
7319 (ns_findfonts): Don't worry about requested spec in determining
7320 need for synthItal.
e41820ee 7321 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 7322
73b26103
SZ
73232009-06-14 Seiji Zenitani <zenitani@mac.com>
7324
7325 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
7326
5753e4da
KH
73272009-06-11 Kenichi Handa <handa@m17n.org>
7328
7329 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7330 overhang for the static composition case.
7331
3561b671
KH
73322009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7333
5753e4da
KH
7334 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7335 overhang for the automatic composition case.
7336
3561b671
KH
7337 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
7338 composition case.
7339
852bbd41
CY
73402009-06-10 Chong Yidong <cyd@stupidchicken.com>
7341
7342 * xdisp.c (get_next_display_element): When handling wrap-prefix
7343 and line-prefix, treat \n as a control character (bug#3502).
7344
9903d1e6
KH
73452009-06-10 Kenichi Handa <handa@m17n.org>
7346
7347 * font.c (font_parse_family_registry): Fix for one-char foundry.
7348 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
7349
0bcbaaaa
CY
73502009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
7351
7352 * process.c (status_message): Fix handling of multibyte signal
7353 string (Bug#3499).
7354
40aa3f13
JM
73552009-06-09 Jim Meyering <meyering@redhat.com>
7356
1f80c7e2
CY
7357 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
7358 color name is missing.
40aa3f13 7359
72d51285
KH
73602009-06-09 Kenichi Handa <handa@m17n.org>
7361
7362 * charset.c (Fmap_charset_chars): In docstring, state clearly that
7363 FROM-CODE and TO-CODE are codepoints of CHARSET.
7364
c1d04d84
AR
73652009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7366
7367 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
7368
73692009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7370
7371 Changes to support :script/:lang/:otf in NS font driver.
7372 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
7373 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
7374 indicate not part of font driver interface, and change callers.
7375 (ns_get_family): Remove pointless null check.
7376 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
7377 ns_spec_to_descriptor, ns_descriptor_to_entity.
7378 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
7379 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
7380 (ns_spec_to_descriptor, ns_descriptor_to_entity)
7381 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
7382 (ns_get_req_script, ns_accumulate_script_ranges)
7383 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
7384 New functions.
7385 (nsfont_list, nsfont_match): Use ns_findfonts.
7386 (nsfont_open): Use font descriptor instead of traits.
7387 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
7388 (dump_glyphstring): Rename to ns_dump_glyphstring.
7389
c7eb9816
AR
7390 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
7391
c1d04d84
AR
7392 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
7393
7394 * fontset.c (fontset_from_font): Remove NS-specific code.
7395
ec7709ba 73962009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
7397
7398 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
7399 nonactive windows.
7400
31fd7c5c 74012009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 7402
1ac9108a 7403 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 7404
68852c13 74052009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
7406
7407 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
7408
6756cd1d
CY
74092009-06-07 Chong Yidong <cyd@stupidchicken.com>
7410
7411 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
7412 account for the overflowing of newlines into the last glyph on the
7413 display line (Bug#3482).
7414
28bf482a
DR
74152009-06-05 David Reitter <david.reitter@gmail.com>
7416
ec7709ba
JB
7417 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
7418 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
7419 Fns_selection_exists_p, Fns_selection_owner_p.
7420
fdb55376
JR
74212009-06-03 Jason Rumney <jasonr@gnu.org>
7422
7423 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
7424 available. (Bug#3379)
7425
05129fbe
KH
74262009-05-29 Kenichi Handa <handa@m17n.org>
7427
1ac9108a
SM
7428 * coding.c (get_translation_table):
7429 Check Venable_character_translation.
05129fbe 7430
ec7709ba 74312009-05-26 David Reitter <david.reitter@gmail.com>
15891144 7432
ec7709ba
JB
7433 * nsterm.m (ns_raise_frame): Only raise frame if visible.
7434 (x_make_frame_visible): Move frame to front rather than calling
15891144 7435 ns_raise_frame().
ec7709ba 7436 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 7437 isn't key window.
ec7709ba 7438 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
7439 drawRect may be called by NSView even if the frame is hidden.
7440
ec7709ba
JB
7441 * nsfns.m (Fx_create_frame): Follow other ports in
7442 determining visibility; default to t. Ensure async_visible is set.
15891144 7443
21f73755
EZ
74442009-05-23 Eli Zaretskii <eliz@gnu.org>
7445
7446 * dired.c (Ffile_attributes): Doc fix.
7447
34001e41
CY
74482009-05-22 Chong Yidong <cyd@stupidchicken.com>
7449
7450 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
7451
46306a17
SM
74522009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
7453
7454 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
7455 and xfont_scratch_props.
7456 (syms_of_xfont): Do it here instead.
7457 (xfont_find_ccl_program): Delete, unused.
7458 (xfont_open): Delete unused var `i'.
7459
ef6e0694
KH
74602009-05-21 Kenichi Handa <handa@m17n.org>
7461
7462 * fontset.c (Qlatin): Don't make it static.
7463
46306a17
SM
7464 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
7465 New functions.
ef6e0694
KH
7466 (xfont_scripts_cache, xfont_scratch_props): New variables.
7467 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
7468 (xfont_list_pattern): Argument changed. Callers changed.
7469 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
7470 (xfont_list): Don't reject a font spec with :script property.
7471 (xfont_has_char): Fix setting of encoding.
7472 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
7473 xfont_scratch_props.
7474
74752009-05-19 Kenichi Handa <handa@m17n.org>
7476
46306a17 7477 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
7478 Callers changed.
7479
74802009-05-18 Kenichi Handa <handa@m17n.org>
7481
7482 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
7483
ac71ced7
SM
74842009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7485
7486 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
7487 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
7488
1c6d1051
YM
74892009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7490
7491 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
7492 (x_delete_terminal): Dissociate resource database from display and
7493 then call XrmDestroyDatabase before closing display.
7494
9b9b779c
AR
74952009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7496
7497 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
7498 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
7499 whether selected frame is viable before raising it (based on patch
7500 by David Reitter), and improve commentary.
7501 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 7502
cccd42d5
KH
75032009-05-15 Kenichi Handa <handa@m17n.org>
7504
7505 * font.c (Ffont_spec): Check arguments.
7506
337fbd17
CY
75072009-05-14 Chong Yidong <cyd@stupidchicken.com>
7508
7509 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
7510 weight when testing attributes (Bug#3282).
7511
47a6002f
JD
75122009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7513
7514 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
7515 what we expect to get in the next ConfigureNotify event.
7516
9cb363db
YM
7517 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
7518 before Xft one (Bug#1696).
7519
b9126609
CY
75202009-05-07 David Reitter <david.reitter@gmail.com>
7521
7522 * nsfns.m (Fx_display_planes): Compute bitplanes using
7523 NSBitsPerPixelFromDepth (Bug#3207).
7524
27a69fd9
CY
75252009-05-10 Chong Yidong <cyd@stupidchicken.com>
7526
7527 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
7528
00f37552
TTN
75292009-05-10 Ulrich Mueller <ulm@gentoo.org>
7530
7531 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
7532
2d82a920
DR
75332009-05-07 David Reitter <david.reitter@gmail.com>
7534
ec7709ba
JB
7535 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
7536 Respect mouse face background.
2d82a920 7537
46b0d52d
DR
75382009-05-07 David Reitter <david.reitter@gmail.com>
7539
ec7709ba
JB
7540 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
7541 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
7542 in ns_update_begin and ns_update_end.
7543
ce1b23bb
SM
75442009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7545
5996e1b7
SM
7546 * nsfns.m (ns_get_screen): Rewrite.
7547 Don't presume selected-frame is of type `ns'.
7548
ba98e3a0
SM
7549 * font.c (font_update_drivers): Sanity fallback to avoid disabling
7550 all drivers.
7551
ce1b23bb
SM
7552 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
7553
bcda200f
YM
75542009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7555
7556 * keyboard.h (add_user_signal): Fix typo in extern.
7557
7558 * lisp.h (add_user_signal): Remove extern.
7559
7560 * unexelf.c (unexec): Consider a section to precede the .bss section
7561 if its addresses overlap that of .bss.
7562 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
7563 instead of dumping process.
7564
864660a2
SM
75652009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7566
7567 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
7568
50da4e56
SM
75692009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7570
7571 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
7572
51520a1a
DN
75732009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7574
7575 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
7576 any statements.
7577
409ea3a1
AS
75782009-05-02 Andreas Schwab <schwab@linux-m68k.org>
7579
59c4c60f
AS
7580 * process.c (read_process_output): Make sure the current buffer is
7581 always restored.
7582
409ea3a1
AS
7583 * coding.c (record_conversion_result): Don't modify
7584 Vlast_code_conversion_error for successful result.
7585 (alloc_destination): Don't clobber conversion result. (Bug#1650)
7586
56f00ed2
KH
75872009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7588
7589 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 7590 (load_charset_map): Remove unnecessary code.
56f00ed2 7591
4491c9d2
DR
75922009-04-30 David Reitter <david.reitter@gmail.com>
7593
35f5b128 7594 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
7595 through f24.
7596
6970f632
CY
75972009-04-30 Chong Yidong <cyd@stupidchicken.com>
7598
7599 * xfaces.c (face_at_buffer_position): New arg base_face_id.
7600
7601 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
7602 face_at_buffer_position.
7603 (face_before_or_after_it_pos, get_next_display_element)
7604 (note_mouse_highlight): Update face_at_buffer_position call.
7605
7606 * term.c (term_mouse_highlight):
7607 * msdos.c (IT_note_mouse_highlight):
7608 * fontset.c (Finternal_char_font):
35f5b128 7609 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
7610
7611 * dispextern.h (face_at_buffer_position): Update prototype.
7612
0c616f63
KH
76132009-04-30 Kenichi Handa <handa@m17n.org>
7614
35f5b128 7615 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 7616
ad3aaf33
AS
76172009-04-29 Andreas Schwab <schwab@linux-m68k.org>
7618
7619 * callproc.c (Fcall_process): Fix GC protection. Make sure
7620 current buffer is always restored.
7621
c3c963a0
YM
76222009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7623
7624 * atimer.c (init_atimer): Also clear stopped_atimers.
7625
7626 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
7627
7e3386cb
YM
7628 * process.c (create_process): Clean up merger residues of
7629 2008-07-17 change.
7630
91f68422
CY
76312009-04-29 Ulrich Mueller <ulm@gentoo.org>
7632
7633 * lread.c (Vread_circle): New variable.
7634 (read1): Disable recursive read if Vread_circle is nil.
7635
24b34550
KH
76362009-04-29 Kenichi Handa <handa@m17n.org>
7637
7638 * fontset.h (set_default_ascii_font): Delete extern.
7639
7640 * fontset.c (set_default_ascii_font): Delete this unused function.
7641
7642 * frame.c (x_set_font): When ARG is a font-object, check if the
7643 font-object matches with the ASCII font-spec of the frame's
9c358bda 7644 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 7645
77bf07e1
AS
76462009-04-28 Andreas Schwab <schwab@linux-m68k.org>
7647
7648 * fns.c (Flocale_info): Protect vector from GC during decoding.
7649
7650 * process.c (Fstart_process): Protect argv strings from GC during
7651 encoding.
7652
2c55aacf
AS
76532009-04-27 Andreas Schwab <schwab@linux-m68k.org>
7654
7655 * sysdep.c: Include <ctype.h>.
7656
b892d3c9
DR
76572009-04-27 David Reitter <david.reitter@gmail.com>
7658
35f5b128 7659 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
7660 Remove commented-out code.
7661
9d0644c4
JB
76622009-04-26 Johan Bockgård <bojohan@gnu.org>
7663
7664 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7665
b7053016
JR
76662009-04-25 Jason Rumney <jasonr@gnu.org>
7667
7668 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
7669
4e8231f3
YM
76702009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7671
7672 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
7673 Swap bytes in short integer if fringe bitmap width > 8.
7674
493dcf2c
KH
76752009-04-23 Kenichi Handa <handa@m17n.org>
7676
7677 * xfaces.c (Fx_list_fonts): If a font size is specified in
7678 PATTERN, set it in returned scalable fonts.
7679
401e9e57
CY
76802009-04-22 Chong Yidong <cyd@stupidchicken.com>
7681
708e05dc
CY
7682 * keyboard.c (Fset_input_meta_mode): Doc fix.
7683
7684 * dispnew.c (Fsend_string_to_terminal): Doc fix.
7685
1ac9108a 7686 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
7687
7688 * coding.c (Fterminal_coding_system): Doc fix.
7689
7690 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
7691 (Fx_display_pixel_height, Fx_display_planes)
7692 (Fx_display_color_cells, Fx_server_max_request_size)
7693 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7694 (Fx_display_mm_height, Fx_display_mm_width)
7695 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
7696 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
7697 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
7698 (check_x_display_info): Handle terminal objects instead of
7699 terminal ids.
7700
401e9e57
CY
7701 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
7702 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
7703 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
7704 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 7705
df80c7f0
KH
77062009-04-21 Kenichi Handa <handa@m17n.org>
7707
5a8f12af 7708 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 7709 (font_score): Check AVGWIDTH too.
908567ef 7710
df80c7f0
KH
7711 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
7712 worst case.
1ac9108a
SM
7713 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
7714 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 7715
705af33f
JR
77162009-04-19 Jason Rumney <jasonr@gnu.org>
7717
7718 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 7719 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
7720
7721 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
7722 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
7723 get_phys_cursor_geometry.
7724
b71ac3dd 7725 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
7726 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
7727 using get_phys_cursor_geometry.
7728
7729 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
7730 correctly calculated.
7731
dc2933eb
JD
77322009-04-19 Jan Djärv <jan.h.d@swipnet.se>
7733
1ac9108a
SM
7734 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
7735 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
7736 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
7737 is deprecated.
7738
973e7849
AS
77392009-04-18 Andreas Schwab <schwab@linux-m68k.org>
7740
7741 * font.c (font_put_frame_data): Use xfree instead of free.
7742
314d66f4
JB
77432009-04-17 Juanma Barranquero <lekktu@gmail.com>
7744
7745 * w32font.c (Qja, Qko): Remove declarations.
7746 (syms_of_w32font): Don't DEFSYM them.
7747
cf702558
CY
77482009-04-17 Chong Yidong <cyd@stupidchicken.com>
7749
7750 * font.c (Qja, Qko): Move definitions here from ftfont.c.
7751
7752 * font.h (Qja, Qko): Extern them.
7753
7754 * ftfont.c (Qja, Qko): Remove declarations.
7755
7756 * xfont.c (Qja, Qko): Remove declarations.
7757
b50504f5
KH
77582009-04-17 Kenichi Handa <handa@m17n.org>
7759
bde25748
KH
7760 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
7761 string from a vector to handle Latin-1 characters correctly.
7762
b50504f5
KH
7763 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
7764 entity even if the cache hits.
7765
f4646fff
AS
77662009-04-16 Andreas Schwab <schwab@linux-m68k.org>
7767
7768 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 7769 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 7770
e7deaab0
AS
7771 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
7772 * lisp.h: Adjust prototypes.
7773
0a0e7d49
CY
77742009-04-16 Chong Yidong <cyd@stupidchicken.com>
7775
7776 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
7777 change (Bug#3003).
7778
3c908a57
KH
77792009-04-16 Kenichi Handa <handa@m17n.org>
7780
1ac9108a 7781 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
7782
7783 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
7784 adstyle.
7785
7786 * ftfont.c (Qja, Qko): Don't make them static.
7787 (enum ftfont_cache_for): New enum.
7788 (fc_charset_table): Undo the previous change.
7789 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
7790 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
7791 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
7792 non-scarable font, try to get AVERAGE_WIDTH.
7793 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
7794 Change ft_face_cache from a list of a hash-table. Don't check
7795 `ja' and `ko' adstyle here.
7796 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
7797 FTFONT_CACHE_FOR_CHARET.
7798 (ftfont_get_charset): Undo the previous change.
1ac9108a 7799 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
7800 (ftfont_close): Likewise.
7801 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
7802
7803 * font.c (font_sort_entites): Change the meaning of the arg
7804 BEST-ONLY. Don't optimize for VEC of lenght 1.
7805 (font_select_entity): Just return the value of font_sort_entites.
7806
7807 * xfaces.c (merge_face_vectors): Reflect font properties in
7808 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
7809 font_clear_prop if a face attribute doesn't change.
7810
3c908a57
KH
7811 * charset.h (charset_ksc5601): Extern it.
7812
7813 * charset.c (charset_ksc5601): New variable.
7814 (Fdefine_charset_internal): Set charset_ksc5601.
7815 (init_charset_once): Initialize charset_ksc5601 to -1.
7816
d65859c3
DN
78172009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
7818
7819 * fileio.c (history_delete_duplicates): Remove unused declaration.
7820
7821 * callint.c (history_delete_duplicates): New declaration.
7822 (Fcall_interactively): Remove command history duplicates when
7823 history_delete_duplicates is true.
7824
3ba010e5
EZ
78252009-04-14 Eli Zaretskii <eliz@gnu.org>
7826
7827 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
7828
06f19b91
KH
78292009-04-14 Kenichi Handa <handa@m17n.org>
7830
7831 * font.c (Ffont_info): Fix docstring. Fix the second element of
7832 the returned value (bug#2949).
7833
2cce8bfc
CY
78342009-04-14 Chong Yidong <cyd@stupidchicken.com>
7835
7836 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
7837
d156542d
KH
78382009-04-14 Kenichi Handa <handa@m17n.org>
7839
7840 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
7841 encoding charset is ascii_compatible.
7842
7843 * charset.c (Fdefine_charset_internal): Make charset
7844 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
7845 code_offset is 0, and covers all ASCII characters.
7846
86fa089e
SM
78472009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
7848
7849 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
7850 (ns_string_to_pasteboard_internal):
7851 * nsmenu.m (process_dialog):
7852 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
7853 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
7854 * lisp.h (Fx_load_color_file): Declare.
7855
a8a3728b
KH
78562009-04-13 Kenichi Handa <handa@m17n.org>
7857
1ac9108a 7858 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
7859 (font_select_entity): Suppress the code to optimize for the same
7860 kind of fonts.
7861 (font_load_for_lface): Get a font that supports at least ASCII
7862 characters.
7863
7864 * ftfont.c (Qja, Qko): New variables.
7865 (fc_charset_table): Delete uniquifier data for iso8859-1.
7866 (ftfont_get_latin1_charset): New function.
7867 (get_adstyle_property): New function.
7868 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
7869 bitmap fonts.
7870 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
7871 Delete iso-8859-1 range from the charset of fonts whose adstyle is
7872 `ko' or `ja'.
7873 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 7874 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
7875 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
7876 property.
7877 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
7878 (syms_of_ftfont): DEFSYM Qja and Qko.
7879
483670b5
KH
78802009-04-09 Kenichi Handa <handa@m17n.org>
7881
12b55765
KH
7882 * charset.c (map_charset_chars): For a charset of `superset'
7883 method, fix calculation of code range.
7884
483670b5
KH
7885 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
7886 from the list of extra properties.
7887 (font_clear_prop): Be sure to delete `:name' font property.
7888
57d3b93b
KH
78892009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7890
b4b2c2ca
YM
7891 * dispnew.c (redraw_overlapping_rows): Fix detection of
7892 overlapping for topmost and bottommost rows.
7893
1ac9108a 7894 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 7895
472c3609
JR
78962009-04-06 Jason Rumney <jasonr@gnu.org>
7897
7898 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
7899
ab193662
KH
79002009-04-06 Kenichi Handa <handa@m17n.org>
7901
7902 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
7903
7904 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
7905
0c26f026
KH
79062009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7907
7908 * ftfont.c (ftfont_open): Fix checking of the return value of
7909 FT_Load_Char. Fix setting font->underline_thickness.
7910
e173bbce
CY
79112009-04-04 Chong Yidong <cyd@stupidchicken.com>
7912
7913 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
7914 (Fterminal_parameters, Fterminal_parameter)
7915 (Fset_terminal_parameter): In doc string, refer to terminal
7916 objects rather than terminal ids.
7917
693a2698
EZ
79182009-04-04 Eli Zaretskii <eliz@gnu.org>
7919
7920 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
7921 ret_lim_data. (Bug#2867)
7922
d5221487
CY
79232009-04-03 Chong Yidong <cyd@stupidchicken.com>
7924
7925 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
7926 so they don't get wider than the window, matching 2006-01-23
7927 change to the partner function in xdisp.c (Bug#2800).
7928
223509a3
KH
79292009-04-03 Kenichi Handa <handa@m17n.org>
7930
7931 * print.c (print_object): Make each lowest sub_char_table start a
7932 new line (Bug#2866).
7933
74fcd0b1
KH
79342009-04-02 Kenichi Handa <handa@m17n.org>
7935
7936 * fontset.c (fontset_font): Record no-font when a fontset
7937 explicitly tells not to try another font-specs.
7938
c542407d
SM
79392009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
7940
7941 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
7942
e3869731
KH
79432009-03-30 Kenichi Handa <handa@m17n.org>
7944
d8d2f142
KH
7945 * fontset.c (fontset_from_font): Specify only registry in a
7946 font-spec for all characters supported by that registry.
7947
e3869731
KH
7948 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
7949 even if HAVE_M17N_FLT is not defined.
7950
5da5f805
CY
79512009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
7952
7953 * ftfont.c: Conditionalize prototyping and use of
7954 ftfont_variation_glyphs.
7955
ab226c50
SM
79562009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
7957
9628fed7
SM
7958 * frame.c (delete_frame): Work around compiler bug.
7959
7960 * editfns.c (general_insert_function): Adjust to insdel.c changes.
7961 * insdel.c (prepare_to_modify_buffer, signal_before_change):
7962 Some more EMACS_INT.
7963 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
7964
7965 * xdisp.c (dump_glyph): Fix typo.
7966
ae19ba7c
SM
7967 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
7968 (adjust_markers_gap_motion, adjust_markers_for_delete)
7969 (adjust_markers_for_insert, adjust_point)
7970 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
7971 (make_gap, copy_text, count_size_as_multibyte, insert)
7972 (insert_and_inherit, insert_before_markers)
7973 (insert_before_markers_and_inherit, insert_1)
7974 (count_combining_before, count_combining_after, insert_1_both)
7975 (insert_from_string, insert_from_string_before_markers)
7976 (insert_from_string_1, insert_from_gap, insert_from_buffer)
7977 (insert_from_buffer_1, adjust_after_replace)
7978 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
7979 (replace_range_2, del_range, del_range_1, del_range_byte)
7980 (del_range_both, del_range_2, modify_region)
7981 (prepare_to_modify_buffer, signal_before_change)
7982 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
7983 for buffer positions and sizes.
7984 * lisp.h: Adjust prototypes accordingly.
7985
7986 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
7987 (non_regular_inserted, non_regular_nbytes, read_non_regular)
7988 (Finsert_file_contents): Use EMACS_INT for buffer positions.
7989
ab226c50
SM
7990 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
7991
46dfb8fb
JD
79922009-03-27 Jan Djärv <jan.h.d@swipnet.se>
7993
7994 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
7995 lines and columns so we keep the same pixel height and width.
7996
7997 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
7998 the property _NET_WM_STATE has changed.
46dfb8fb
JD
7999 (x_handle_net_wm_state): New function to update frame parameter
8000 fullscreen.
8001 (x_term_init): Initialize atoms for _NET_WM_STATE.
8002
8003 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
8004
d347e494
SM
80052009-03-27 Kevin Ryde <user42@zip.com.au>
8006
8007 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
8008 Gpm_GetEvent as an error that justifies closing the filedescriptor.
8009 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
8010 (Fgpm_mouse_stop): Pass that new parameter.
8011 * termhooks.h (close_gpm): Adjust prototype.
8012
84db11d6
SM
80132009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
8014
c95a5008
SM
8015 * lisp.h (Fx_focus_frame): Declare.
8016
84db11d6
SM
8017 * callint.c (Fcall_interactively): For '^' just delegate the work to
8018 handle-shift-selection.
8019 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
8020
0a1958d6
CY
80212009-03-24 Chong Yidong <cyd@stupidchicken.com>
8022
0bfdff23
CY
8023 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
8024
0a1958d6
CY
8025 * data.c (Qinteractive_form): New variable.
8026 (Finteractive_form): Use it.
8027
8028 * eval.c (Fcommandp): Use Qinteractive_form.
8029
58aec0d6
JR
80302009-03-24 Jason Rumney <jasonr@gnu.org>
8031
8032 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
8033 Calculate total size precisely. Decode environment variables
8034 before substituting. (Bug#38)
8035
553dd618
KH
80362009-03-24 Kenichi Handa <handa@m17n.org>
8037
8038 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 8039 encoding (Bug#2722).
553dd618 8040
c39ea606
JD
80412009-03-23 Jan Djärv <jan.h.d@swipnet.se>
8042
8043 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
8044 that gdpy is set.
8045
bc9b2b5e
AM
80462009-03-22 Alan Mackenzie <acm@muc.de>
8047
8048 * callint.c (Finteractive): Clarify the doc string - even
8049 promptless elements need \n separators.
8050
9f995a76
JR
80512009-03-22 Jason Rumney <jasonr@gnu.org>
8052
8053 * w32term.c (syms_of_w32term): Doc fix for
8054 x-use-underline-position-properties.
8055
22749e9a
EZ
80562009-03-21 Eli Zaretskii <eliz@gnu.org>
8057
8058 * w32.c (getpwuid): Change argument type to unsigned.
8059 (struct w32_id): Change type of `rid' member to unsigned.
8060 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
8061 argument ID to unsigned. All callers changed.
8062 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
8063
e00553bf
EZ
80642009-03-20 Eli Zaretskii <eliz@gnu.org>
8065
8066 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
8067 negative, produce a float value.
8068
8069 * dired.c (make_uid, make_gid): New functions.
8070 (Ffile_attributes): Use them to avoid negative UID and GID.
8071
f761d6b6
JB
80722009-03-20 Juanma Barranquero <lekktu@gmail.com>
8073
8074 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
8075 (syms_of_keyboard) <command-hook-internal, input-method-function>:
8076 Fix typos in docstrings.
8077
d507f8d7
KH
80782009-03-19 Kenichi Handa <handa@m17n.org>
8079
8080 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
8081 changed, use font_load_for_lface to get a new font object.
8082 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
8083
8084 * frame.c (x_set_font): Handle the case that ARG is a cons.
8085
c68845e0
GM
80862009-03-19 Glenn Morris <rgm@gnu.org>
8087
8088 * fileio.c (Fsubstitute_in_file_name): Doc fix.
8089
bfa49dd1
CY
80902009-03-19 Chong Yidong <cyd@stupidchicken.com>
8091
8092 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
8093
8458d4c1
KH
80942009-03-19 Kenichi Handa <handa@m17n.org>
8095
8096 * charset.c (load_charset_map_from_file): When a mapfile can't be
8097 loaded, signal an error.
8098
78e7d1fe
EZ
80992009-03-18 Eli Zaretskii <eliz@gnu.org>
8100
8101 * dired.c (Ffile_attributes): Make sure UID and GID are always
8102 positive, even if the value is too large for a positive EMACS_INT.
8103 Doc fix.
8104
8105 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
8106
5da9fdfa
YM
81072009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8108
8109 * xmenu.c (xdialog_show): Move Fredisplay call ...
8110 (Fx_popup_dialog): ... here.
8111
7519c40d
SM
81122009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
8113
8114 * dired.c (file_name_completion): Disable the first optimization just
8115 installed, since it is not implemented correctly.
8116
2cd298e2
SM
81172009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8118
8119 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 8120 only if the entry can affect bestmatch.
2cd298e2
SM
8121 Stop the search early, as Ftry_completion already does.
8122
48d37adf
CY
81232009-03-17 Chong Yidong <cyd@stupidchicken.com>
8124
e10c9c93 8125 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 8126
9286b16a
CY
81272009-03-15 Chong Yidong <cyd@stupidchicken.com>
8128
8129 * keyboard.c (parse_menu_item): Don't display remappings as menu
8130 equivalent bindings (Bug#788).
8131
f7b146dc
JR
81322009-03-15 Jason Rumney <jasonr@gnu.org>
8133
8134 * w32term.h (WM_EMACS_PAINT): New message.
8135 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
8136 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
8137 before passing to lisp thread. (Bug#950)
8138
f761d6b6 81392009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 8140
d93f9575
CY
8141 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
8142 variable as it was never reset.
8143 (ns_term_init): Remove initialization of Lisp-settable defaults
8144 and ns_expand_space.
8145 (-setPanelFromDefaultValues): Remove ns_expand_space.
8146 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
8147 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
8148 i.e. no additional spacing, similar to Carbon port.
8149
d93f9575
CY
8150 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
8151 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 8152
305018ec
JD
81532009-03-14 Jan Djärv <jan.h.d@swipnet.se>
8154
8155 * sound.c (alsa_configure): Remove call to deprecated
8156 snd_pcm_sw_params_set_xfer_align.
8157
f761d6b6 81582009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
8159
8160 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
8161 after clicking in a detached tool bar.
8162 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
8163
46e722a9
SM
81642009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
8165
348db3dd
SM
8166 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
8167 int/Lisp_Object mixup).
46e722a9 8168
a3d16f39
KH
81692009-03-13 Kenichi Handa <handa@m17n.org>
8170
8171 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 8172 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
8173 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
8174 (set_fontset_font): Change ARG to a vector. Handle range_list in
8175 ARG correctly.
8176 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 8177 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
8178 the above change.
8179 (fontset_from_font): Fix previous change.
fe24f56a 8180 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
8181 entry. If FONTSET is the default fontset, don't set the extra
8182 slot of the returning char-table.
8183
b066e6b6
JB
81842009-03-12 Juanma Barranquero <lekktu@gmail.com>
8185
8186 * nsfns.m (Fx_close_connection): Doc fix.
8187 (Fns_do_applescript): Reflow docstring.
8188 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
8189 (Fx_display_pixel_width, Fx_display_pixel_height)
8190 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
8191 Fix typos in docstrings.
8192 (Fns_set_alpha): Fix typos in error messages.
8193
d472514e 81942009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 8195
d472514e 8196 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
8197 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
8198 were used for such events.
8199
d472514e
JB
8200 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
8201 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 8202
d472514e 8203 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
8204 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
8205
fb930676
KH
82062009-03-11 Kenichi Handa <handa@m17n.org>
8207
ff85581a
KH
8208 * font.h (font_open_by_spec): Extern it.
8209
c50b7e98
KH
8210 * font.c (font_open_by_spec): New function.
8211 (font_open_by_name): Use font_open_by_spec.
8212
fb930676
KH
8213 * frame.c (x_set_font): When ARG is a font-object, don't alter the
8214 fontset of the frame.
8215
8216 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
8217 modify the default font of frames that use this fontset.
8218 (num_auto_fontsets): New variable.
8219 (fontset_from_font): Use num_auto_fontsets to decide a fontset
8220 name. Be sure to set FONTSET_ASCII to the correct font name.
8221 (update_auto_fontset_alist): New function.
8222
df4e8455
JB
82232009-03-11 Juanma Barranquero <lekktu@gmail.com>
8224
8225 * makefile.w32-in: Update dependencies.
8226
0a375797
AR
82272009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8228
8229 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
8230
61313fa3
SM
82312009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8232
8233 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
8234
b55103fb
CY
82352009-03-10 Chong Yidong <cyd@stupidchicken.com>
8236
8237 * lread.c (Feval_buffer): Doc fix.
8238
dde2559c
KH
82392009-03-09 Kenichi Handa <handa@m17n.org>
8240
8241 * charset.c (Qfile_name_handler_alist): Extern it.
8242 (load_charset_map_from_file): Temporarily bind
8243 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
8244
df4e8455 82452009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 8246
47f588bb
GM
8247 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
8248 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 8249
4ddf94bd
AR
82502009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8251
4c9bdfc2
AR
8252 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
8253 (x_set_window_size): Change back to calculated method of setting
8254 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
8255 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
8256 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
8257
fe41ae9e
AR
8258 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
8259
4c9bdfc2
AR
8260 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
8261 accelerator in parens under GNUstep.
8262
825d0875
KH
82632009-03-06 Kenichi Handa <handa@m17n.org>
8264
8265 These changes are to detect incorrect composition sequence without
f3b3be74 8266 looking ahead the source. (Bug#2370)
825d0875
KH
8267
8268 * coding.h: Include "composite.h".
8269 (enum compisition_state): New enum.
8270 (struct compisition_status): New struct.
8271 (struct iso_2022_spec): New member cmp_status.
8272 (struct emacs_mule_spec): New struct.
8273 (struct coding_system): New members ctext_extended_segment_len and
8274 embedded_utf_8. Change the union member
8275 spec.emacs_mule_full_support to spec.emacs_mule.
8276
8277 * coding.c (CODING_ISO_CMP_STATUS): New macro.
8278 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 8279 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
8280 (ADD_COMPOSITION_DATA): New arg nbytes.
8281 (emacs_mule_char): New arg cmp_status.
8282 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
8283 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
8284 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
8285 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
8286 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
8287 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
8288 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
8289 (EMACS_MULE_COMPOSITION_END): New macro.
8290 (emacs_mule_finish_composition): New function.
8291 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
8292 (decode_coding_emacs_mule): Avoid long looking ahead while
8293 handling composition.
8294 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
8295 (ENCODE_COMPOSITION_RULE): New macro.
8296 (finish_composition): New function.
8297 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
8298 (DECODE_COMPOSITION_START): New implementation.
8299 (DECODE_COMPOSITION_END): Likewise.
8300 (STORE_COMPOSITION_RULE): New macro.
8301 (decode_coding_iso_2022): Avoid long looking ahead while handling
8302 composition, CTEXT extended segment, and embedded UTF-8.
8303 (setup_coding_system): For a coding of type iso-2022, reset
8304 CODING_ISO_EXTSEGMENT_LEN (coding) and
8305 CODING_ISO_EMBEDDED_UTF_8 (coding).
8306 (get_translation): Delete arguments last_block, from_nchars,
8307 to_nchars. Callers changed.
8308 (produce_chars): Don't modify charbuf. Adjusted for the change of
8309 get_translation.
98a326f7 8310 (produce_composition): Adjust for the new annotation sequence.
825d0875 8311 (handle_composition_annotation): Likewise.
98a326f7 8312 (consume_chars): Adjust for the change of get_translation.
825d0875 8313
ccbc4452
AR
83142009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
8315
4ddf94bd 8316 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 8317
988a7ddb
KH
83182009-03-05 Kenichi Handa <handa@m17n.org>
8319
8320 * font.c (font_select_entity): New function.
8321 (font_find_for_lface): Use font_select_entity to select a font.
8322
8323 * fontset.c (fontset_find_font): If a font found without
a8a3728b 8324 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
8325 font with C restriction.
8326
98a326f7 83272009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 8328
be1bce46 8329 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 8330
10ea2b82
JR
83312009-03-04 Jason Rumney <jasonr@gnu.org>
8332
2c93b248 8333 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 8334 characters that have already been read. (Bug#2569)
2c93b248 8335
10ea2b82
JR
8336 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
8337 Log an error message if check_image_size failed.
8338 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 8339 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 8340
71a0c011
EZ
83412009-03-02 Eli Zaretskii <eliz@gnu.org>
8342
8343 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
8344 when decoding process output.
8345
2f63bba8
RS
83462009-03-01 Richard M Stallman <rms@gnu.org>
8347
8348 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
8349
8350 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
8351
0a9564cb
EZ
83522009-02-28 Eli Zaretskii <eliz@gnu.org>
8353
8354 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
8355 (decode_coding_emacs_mule, decode_coding_iso_2022)
8356 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8357 (decode_coding_raw_text, decode_coding_charset)
8358 (setup_coding_system, decode_eol, decode_coding, consume_chars):
8359 Honor inhibit-eol-conversion. (Bug #2186)
8360
449148b3
JR
83612009-02-28 Jason Rumney <jasonr@gnu.org>
8362
8363 * coding.c (detect_coding_charset): If not checking latin extra,
8364 fail on characters between 0x80 and 0xA0. (Bug#2354)
8365
a4aee864
EZ
83662009-02-28 Eli Zaretskii <eliz@gnu.org>
8367
8368 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 8369 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 8370
d88bee5a
GM
83712009-02-27 Glenn Morris <rgm@gnu.org>
8372
8373 * callint.c (Finteractive): Doc fix.
8374
a808f22d
KH
83752009-02-27 Kenichi Handa <handa@m17n.org>
8376
8377 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
8378
caf8d60c
CY
83792009-02-27 Chong Yidong <cyd@stupidchicken.com>
8380
8381 * font.c (font_style_to_value): Set value for unknown symbols to
8382 100 instead of 255.
b61137ea
CY
8383 (weight_table, slant_table, width_table): Treat "unspecified" as
8384 the default value.
caf8d60c 8385
1a0de25c
JB
83862009-02-26 Juanma Barranquero <lekktu@gmail.com>
8387
8388 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
8389
8fc45744
JB
83902009-02-25 Juanma Barranquero <lekktu@gmail.com>
8391
107bd7d1
JB
8392 * lread.c (Fload): Stop checking Vloads_in_progress and signal
8393 error as soon as a recursive load is detected.
8fc45744 8394
f097e223
AR
83952009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8396
8397 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
8398 before caching.
8399
8810a12f
KH
84002009-02-24 Kenichi Handa <handa@m17n.org>
8401
8402 * fontset.c (fontset_find_font): Fix the condition for checking
8403 unavailable font.
8404
2c7d1565
GM
84052009-02-24 Glenn Morris <rgm@gnu.org>
8406
8407 * xfaces.c (Finternal_set_font_selection_order): Remove leading
8408 whitespace that confuses documentation.
8409
a20878b6
MB
84102009-02-23 Miles Bader <miles@gnu.org>
8411
8412 * process.c (Flist_system_processes, Fprocess_attributes)
8413 (syms_of_process): Rename `system-process-attributes' to
8414 `process-attributes'.
8415
b3b58c01
AS
84162009-02-22 Andreas Schwab <schwab@linux-m68k.org>
8417
1b3b981b
AS
8418 * coding.h (struct coding_system): Make safe_charsets a pointer to
8419 unsigned char.
8420 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
8421 being 255.
8422 (SAFE_CHARSET_P): Likewise.
8423 (setup_iso_safe_charsets): Properly setup safe_charsets.
8424 (Fdefine_coding_system_internal): Likewise.
8425 (setup_coding_system): Likewise. Remove unneeded casts.
8426 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
8427 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
8428 unneeded casts.
8429
b3b58c01
AS
8430 * insdel.c (del_range_2): Don't modify gap contents when called
8431 from decode_coding_object. (Bug#1809)
8432
0b6f228c
CY
84332009-02-21 Chong Yidong <cyd@stupidchicken.com>
8434
8435 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
8436 Qfont_object.
8437 (Ftype_of): Recognize font objects.
8438
8439 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
8440
8441 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
8442 moved to data.c.
8443
52f8870b
AR
84442009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8445
8446 * nsterm.m (x_make_frame_invisible): Unset async_visible,
8447 async_iconified. Based on a patch by Christian Lynbech
8448 <christian.lynbech@tieto.com>.
8449 (EmacsView-windowDidMiniaturize:): Unset async_visible.
8450
7087d5e9
GM
84512009-02-20 Glenn Morris <rgm@gnu.org>
8452
8453 * syntax.c (Fskip_chars_forward): Fix doc typo.
8454
41d2ceef
CY
84552009-02-20 Chong Yidong <cyd@stupidchicken.com>
8456
8457 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
8458
1a3b7ca6
CY
84592009-02-19 Chong Yidong <cyd@stupidchicken.com>
8460
8461 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
8462
73cce38d
KH
84632009-02-19 Kenichi Handa <handa@m17n.org>
8464
8465 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 8466 Don't overflow coding->carryover. (Bug#2370)
73cce38d 8467
a51092ee
DN
84682009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
8469
8470 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
8471
c423ecca
KH
84722009-02-18 Kenichi Handa <handa@m17n.org>
8473
8474 * font.c (font_check_otf_features): Fix handling of `nil' element.
8475 (Ffont_spec): Describe :lang and :otf in the docstring.
8476
4c1958f4
AS
84772009-02-16 Andreas Schwab <schwab@suse.de>
8478
8479 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
8480 string.
8481
5704f39a
KH
84822009-02-16 Kenichi Handa <handa@m17n.org>
8483
8484 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 8485 (Bug#1723)
5704f39a 8486
8f0085aa
CY
84872009-02-14 Chong Yidong <cyd@stupidchicken.com>
8488
a057d86a 8489 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
8490
8491 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
8492 (handle_line_prefix): Suppress wrapping of wrap prefixes.
8493
aff01dd9
EZ
84942009-02-14 Eli Zaretskii <eliz@gnu.org>
8495
8496 * msdos.c (MAX_SCREEN_BUF): New macro.
8497 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
8498 Encode the entire run of glyphs sharing the same face, instead of
8499 doing that one glyph at a time (fixes a bug with displaying
8500 double-size characters).
8501
ba301db3
AR
85022009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
8503
8504 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
8505
8506 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
8507 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 8508 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
8509
8510 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 8511 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 8512
51d861de
SM
85132009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
8514
ac146f82 8515 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
8516 invisible areas.
8517
7fed8996
JR
85182009-02-12 Jason Rumney <jasonr@gnu.org>
8519
631ea4fb
JR
8520 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
8521 (add_font_entity_to_list): Call check_face_name even when family
8522 is unspecified.
8523
cb4a3e42
JR
8524 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8525 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 8526 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 8527
7fed8996 8528 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 8529 raster fonts. (Bug#2219)
7fed8996 8530
895416e3
KH
85312009-02-12 Kenichi Handa <handa@m17n.org>
8532
8533 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
8534 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
8535 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 8536 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8537 (find_automatic_composition): While looking forward and backward,
8538 check static composition. Fix where to stop looking forward.
8539 (composition_adjust_point): Fix checking of static composition.
8540 (Fcomposition_get_gstring): Pay attention to
1dacf998 8541 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8542
8543 * lisp.h (fast_looking_at): Extern it.
8544
8545 * search.c (fast_looking_at): New function.
8546
51d861de 8547 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
8548 <struct glyph>.u.cmp.to.
8549 (append_composite_glyph): Likewise.
8550
51d861de 8551 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
8552 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
8553 composition.
51d861de 8554 (append_composite_glyph): Adjust for the change of
895416e3
KH
8555 <strcut glyph>.u.cmp.to.
8556
8510724d
JB
85572009-02-11 Juanma Barranquero <lekktu@gmail.com>
8558
8559 * casetab.c (init_casetab_once):
8560 * coding.c (ALLOC_CONVERSION_WORK_AREA):
8561 * font.c (font_update_lface):
8562 * fontset.c (Fnew_fontset):
8563 * ftfont.c (ftfont_drive_otf):
8564 * xfont.c (xfont_open):
8565 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
8566
294fa707
SM
85672009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8568
8569 * fileio.c (Fwrite_region): !NILP -> CONSP.
8570
b5bfebec
AS
85712009-02-10 Andreas Schwab <schwab@suse.de>
8572
8573 * process.c (send_process): Properly relocate pointer into data
adab88bd 8574 when using encoded data. (Bug#2272)
b5bfebec 8575
cb84a2be
KH
85762009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
8577
8578 * coding.c (detect_coding_charset): Fix previous change.
8579
89e09428
JR
85802009-02-08 Jason Rumney <jasonr@gnu.org>
8581
8582 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 8583 disappeared while hourglass was displayed. (Bug #2193)
89e09428 8584
4470a277
AS
85852009-02-07 Andreas Schwab <schwab@suse.de>
8586
8587 * unexelf.c (unexec): Fix error message.
8588
3175b12a
AR
85892009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
8590
8591 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 8592 when modal window is active. (Bug #2152)
3175b12a
AR
8593 (applicationShouldTerminate:): Remove now-unneeded while loop
8594 around NSRunAlertPanel.
8595
8596 * nsmenu.m (popupSession): New file-global variable.
8597 (pop_down_menu): End the popupSession before closing dialog.
8598 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
8599 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
8600 don't query NSApp for events (just sleep instead).
8601
8434d0b8
EZ
86022009-02-07 Eli Zaretskii <eliz@gnu.org>
8603
51d861de
SM
8604 * coding.c (syms_of_coding) <translation-table-for-input>:
8605 Modify doc string to discourage use for character code unification.
8434d0b8 8606
aa82edfd
CY
86072009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8608
8609 * atimer.c (run_timers): Update pending_atimers.
8610
2d283c7c
CY
86112009-02-06 Chong Yidong <cyd@stupidchicken.com>
8612
eb306cab
CY
8613 * image.c (svg_load_image): Fix last change.
8614
2d283c7c
CY
8615 * xfns.c (Fx_create_frame): Signal an error if no font is
8616 found (Bug#2147).
8617
4d8e170e
JB
86182009-02-05 Juanma Barranquero <lekktu@gmail.com>
8619
8620 * character.c (syms_of_character) <script-representative-chars>:
8621 Fix typo in docstring.
8622
c96169a0
AR
86232009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8624
8625 * nsmenu.m (pop_down_menu): New function.
8626 (ns_popup_dialog): Call it on unwind.
8627 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
8628 call timer_check() (Bug#2154).
8629 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
8630 handling_signal is set.
8631 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
8632
31fd7c5c 8633 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
8634
8635 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
8636
8637 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
8638
51d861de
SM
8639 * keyboard.c (poll_for_input_1, handle_async_input):
8640 Set handling_signal under HAVE_NS.
c96169a0 8641
aacd8ba1
GM
86422009-02-04 Glenn Morris <rgm@gnu.org>
8643
8644 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
8645
4cb75c4b
KH
86462009-02-04 Kenichi Handa <handa@m17n.org>
8647
8648 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
8649
8650 * charset.c (Fchar_charset): New optional arg restriction.
8651
8652 * coding.h (coding_system_charset_list): Extern it.
8653
8654 * coding.c (coding_system_charset_list): New function.
8655
8656 * composite.c: Include coding.h and termhooks.h.
8657 (composition_gstring_p): Fix for the terminal case.
8658 (composition_gstring_width): Likewise.
8659 (fill_gstring_body): Likewise.
8660 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
8661 the frame.
8662 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
8663 is within a composition.
867d4bb3 8664 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
8665
8666 * term.c (encode_terminal_code): Fix handling of composition.
8667 (produce_composite_glyph): For static composition, get pixel_width
8668 from struct composition.
8669
826ba17e
AS
86702009-02-02 Andreas Schwab <schwab@suse.de>
8671
8672 * unexelf.c (unexec): Handle unaligned bss offset.
8673
8ad093db
AR
86742009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8675
8676 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
8677 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 8678
8ad093db
AR
8679 * keyboard.c (handle_interrupt): Don't call
8680 quit_throw_to_read_char() under NS.
d0a76a6e 8681
8ad093db
AR
8682 * blockinput.h: Remove NS-specific code.
8683
4d18a7a2
DN
86842009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
8685
db878925
DN
8686 * dispnew.c (window_change_signal): Don't try to get the size of a
8687 suspended tty frame.
8688 * term.c (Fresume_tty): Resize if the size has changed while the
8689 tty was suspended.
8690
4d18a7a2
DN
8691 * alloc.c (mark_stack): Properly conditionalize previous change.
8692
8984df7c
JB
86932009-01-30 Juanma Barranquero <lekktu@gmail.com>
8694
8695 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
8696 * w32term.c (w32_read_socket) [SYNC_INPUT]:
8697 Remove; this code is not used on Windows.
8698
75f4f1ac
EZ
86992009-01-30 Eli Zaretskii <eliz@gnu.org>
8700
8701 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
8702 EOLs that also has stray ^M characters.
8703
07a1e794
JB
87042009-01-30 Juanma Barranquero <lekktu@gmail.com>
8705
8706 * atimer.c (run_timers, alarm_signal_handler):
8707 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
8708 * w32inevt.c (w32_console_read_socket):
8709 * w32term.c (w32_read_socket):
8710 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
8711
a8b11cc9
CY
87122009-01-30 Chong Yidong <cyd@stupidchicken.com>
8713
8714 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
8715 Initialize it as a relative filename pattern.
8716 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
8717 (Fcall_process_region): Simplify temp file creation using
8718 temporary-file-directory.
8719
c279587b
EZ
87202009-01-29 Eli Zaretskii <eliz@gnu.org>
8721
8722 * msdos.c: Rename pending_signals to msdos_pending_signals.
8723 (sig_suspender, sigprocmask): Adjust.
8724
a8fe3242
CY
87252009-01-29 Chong Yidong <cyd@stupidchicken.com>
8726
8727 * keyboard.c (pending_signals): New var.
8728 (poll_for_input, input_available_signal, init_keyboard): Set it.
8729 (process_pending_signals): New function.
8730
8731 * lisp.h (QUIT): Check pending_signals instead of
8732 interrupt_input_pending. Use process_pending_signals.
8733
51d861de 8734 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 8735
51d861de 8736 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
8737
8738 * sysdep.c (emacs_write): Use process_pending_signals.
8739
8740 * xterm.c (XTread_socket): Update pending_signals.
8741
8742 * w32term.c (w32_read_socket): Update pending_signals.
8743
8744 * w32inevt.c (w32_console_read_socket): Update pending_signals.
8745
6570a1c4
KH
87462009-01-29 Kenichi Handa <handa@m17n.org>
8747
8748 * xftfont.c (xftfont_has_char): New function.
8749 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
8750
d72a4afa
AR
87512009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8752
8753 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
8754 under GNUstep.
8755 (ns_query_color): New declaration.
8756
8757 * nsterm.m (ns_confirm_quit): New variable.
8758 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
8759 (EmacsApp-applicationShouldTerminate:): Use it.
8760 (EmacsPrefsController): Let user set it.
8761 (ns_query_color): New function.
8762 (ns_defined_color): Use it.
8763 (ns_initialize): Drop.
8764 (ns_term_init): Add two lines from ns_initialize(), and set
8765 input_interrupt_mode to nil.
8766
8767 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 8768 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 8769
9fe78804
KH
87702009-01-28 Kenichi Handa <handa@m17n.org>
8771
8772 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
8773 (fontset_get_font_group): Remember that no font-group is specified
8774 for C.
9fe78804 8775
fa57de36
CY
87762009-01-27 Chong Yidong <cyd@stupidchicken.com>
8777
930600e9
CY
8778 * fns.c (concat): Check for string overflow (bug#1787).
8779
fa57de36
CY
8780 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
8781 Quadruple undo limits (bug#1501).
8782
7179ce7b
KH
87832009-01-27 Kenichi Handa <handa@m17n.org>
8784
8785 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
8786 directly use GT_Get_Char_index.
8787
8788 * xftfont.c (struct xftfont_info): New member `index'.
8789
8790 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 8791 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 8792
5be8fcc0
CY
87932009-01-26 Kenichi Handa <handa@m17n.org>
8794
8795 * fontset.c (fontset_find_font): Fix handling of non-cons return
8796 value of fontset_get_font_group.
8797 (fontset_font): Revert last change.
8798
19ae3e61
JR
87992009-01-26 Jason Rumney <jasonr@gnu.org>
8800
8801 * w32font.c (w32font_list_internal): Return quickly if registry is
8802 unknown. Simplify final return.
8803 (add_font_entity_to_list): Break complex logic down into more
8804 manageable chunks. Move unknown registry check to
8805 w32font_list_internal.
8806
8612b71a
AR
88072009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
8808
8809 Changes to remove Feval calls from GUI under NS.
8810
d8038940
JB
8811 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
8812 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
8813 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
8814
8815 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
8816 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
8817 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
8818 instead of NON_ASCII_KEYSTROKE_EVENT.
8819 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
8820 (EmacsApp-applicationShouldTerminate:): Query user.
8821 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
8822 instead of Feval.
8823
8824 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
8825
8826 * keyboard.c (kbd_buffer_get_event): Check for it.
8827 (keys_of_keyboard): Define lispy keys for
8828 ns-put/unput-working-text.
8829
8830 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
8831 versions.
8832 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
8833
6288ae55
CY
88342009-01-25 Chong Yidong <cyd@stupidchicken.com>
8835
8836 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 8837 setting current_buffer directly. (Bug#2044)
6288ae55 8838
289e7f8f
CY
88392009-01-24 Chong Yidong <cyd@stupidchicken.com>
8840
5ce87308 8841 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 8842 any work. (Bug#1952, bug#1990).
5ce87308 8843
64cc3cf6 8844 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 8845
b3243e6f
AR
88462009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8847
8848 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
8849 (ns_no_defaults): New declaration.
8850 (main): Use it.
e0d2e69a 8851
d900b2af 8852 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 8853
d900b2af 8854 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 8855
d900b2af
AR
8856 * nsterm.m (ns_no_defaults): New variable.
8857 (ns_initialize): Don't read defaults when ns_no_defaults.
8858 (EmacsView-readSelectionFromPasteboard:)
8859 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 8860 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
8861 (ns_dumpglyphs_stretch): New function.
8862 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 8863 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 8864
e0d2e69a
AR
8865 * nsimage.m (setPixmapData:): Set to ignore image DPI.
8866
3ac71f5d
CY
88672009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
8868
8869 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
8870 call for Sparc64.
8871
3fe53a83
AR
88722009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8873
8874 * nsfns.m:
8875 * nsgui.h:
8876 * nsmenu.m:
8877 * nsselect.m:
8878 * nsterm.h:
8879 * nsterm.m: Remove '23' comments that indicated code added during
8880 update from emacs-20 -> emacs-23.
8881
10f87c6f 88822009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
8883
8884 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 8885 ns_alternate_modifier. (Bug#1217)
a3b53a85 8886
c7cef62d
AR
8887 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
8888 Display all shortcuts, including those w/o super modifier.
8889
575fb8bd
AR
8890 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
8891
918b848b
CY
88922009-01-22 Chong Yidong <cyd@stupidchicken.com>
8893
8894 * fileio.c (Vwrite_region_post_annotation_function)
8895 (Vwrite_region_annotation_buffers): New vars.
8896 (build_annotations_unwind): Just reset
8897 Vwrite_region_annotation_buffers.
8898 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
8899 Call write-region-post-annotation-function.
8900 (build_annotations): Add to Vwrite_region_annotation_buffers if
8901 buffer changes.
8902
a39e2539
AR
89032009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8904
8905 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
8906 Tiger.
51d861de
SM
8907 * nsfns.m (ns_do_applescript):
8908 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 8909
35ed44db
AR
89102009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8911
8912 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
8913
cbe0b5bf
AR
89142009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8915
8916 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 8917
6049d3a0
AR
8918 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
8919
8920 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
8921 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
8922 handle Ctrl-tab. (Bug#1841)
8923 (ns_get_color): Use unsigned long long for scanned hex string value.
8924 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 8925 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 8926 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 8927 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 8928 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 8929 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 8930 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 8931
d3810c21 8932 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 8933 DPI. (Bug#1316)
d3810c21
AR
8934 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
8935 values in onTiger section.
4c7077c3 8936
e301e634
CY
89372009-01-19 Chong Yidong <cyd@stupidchicken.com>
8938
7f82490b
CY
8939 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
8940 Check return value of font_spec_from_name.
64cc3cf6 8941 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
8942
8943 * font.c (font_spec_from_name): Return Qnil if font name could not
8944 be parsed.
8945 (font_parse_name): Treat a `?' character as part of an XLFD.
8946
e301e634
CY
8947 * fns.c (Fsubstring): Doc fix.
8948
1c0db158
KH
89492009-01-19 Kenichi Handa <handa@m17n.org>
8950
51d861de 8951 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
8952 (ftfont_list): Likewise.
8953
acf20901
JB
89542009-01-18 Juanma Barranquero <lekktu@gmail.com>
8955
fff4e459
JB
8956 * dbusbind.c (Fdbus_register_signal):
8957 * process.c (conv_sockaddr_to_lisp):
8958 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
8959
acf20901
JB
8960 * callproc.c (Fgetenv_internal): Doc fix.
8961
e7abcdfb
CY
89622009-01-16 Chong Yidong <cyd@stupidchicken.com>
8963
8964 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
8965 it is not even used.
8966
b60861e6
GM
89672009-01-16 Glenn Morris <rgm@gnu.org>
8968
8969 * font.c (Ffont_variation_glyphs): Silence compiler.
8970
8db52afe
JB
89712009-01-15 Juanma Barranquero <lekktu@gmail.com>
8972
8973 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
8974 Reported by David Robinow <drobinow@gmail.com>.
8975
4cddb209
KH
89762009-01-15 Kenichi Handa <handa@m17n.org>
8977
51d861de 8978 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 8979
f247f67b
JR
89802009-01-14 Jason Rumney <jasonr@gnu.org>
8981
8982 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 8983 never a fontset. (Bug#1562)
f247f67b 8984
f56a4450
KH
89852009-01-14 Kenichi Handa <handa@m17n.org>
8986
8987 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 8988 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 8989
4e99855e
CY
89902009-01-13 Chong Yidong <cyd@stupidchicken.com>
8991
8992 * font.c (font_clear_prop): If clearing the family, clear the font
8993 width index too.
8994
fff4e459 8995 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 8996
24f01470
JB
89972009-01-12 Juanma Barranquero <lekktu@gmail.com>
8998
8999 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
9000 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
9001 functions, use sizeof.
9002
a41240a3
MR
90032009-01-12 Martin Rudalics <rudalics@gmx.at>
9004
9005 * keyboard.c (read_char): Fix case where last_nonmenu_event
9006 returned a bad value with submenus. (Bug#447)
9007
944636b8
CY
90082009-01-12 Chong Yidong <cyd@stupidchicken.com>
9009
9010 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
9011 family, clear the font width index too.
9012
0dad7c6f
JR
90132009-01-11 Jason Rumney <jasonr@gnu.org>
9014
9015 * keyboard.c (cmd_error_internal): Exit when errors occur before
9016 frame creation and not in daemon mode. (Bug#1836)
9017
7c2363af
CY
90182009-01-10 Chong Yidong <cyd@stupidchicken.com>
9019
9020 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
9021 of a display vector, backtrack.
9022 (try_window_reusing_current_matrix): Check glyph type before
9023 referencing charpos member.
9024
97b1b294
EZ
90252009-01-10 Eli Zaretskii <eliz@gnu.org>
9026
9027 Fix Bug #876:
9028
9029 * coding.c (inhibit_null_byte_detection): New variable.
9030 (detect_coding, detect_coding_system): Don't pay attention to null
9031 bytes if inhibit_null_byte_detection is non-zero.
51d861de 9032 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
9033 <inhibit-iso-escape-detection>: Doc fix.
9034
4624b6e3
JR
90352009-01-09 Jason Rumney <jasonr@gnu.org>
9036
9037 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 9038 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
9039 Only report Unicode Plane 2 fonts as unicode-sip.
9040
323b840c
CY
90412009-01-09 Chong Yidong <cyd@stupidchicken.com>
9042
51d861de
SM
9043 * xfaces.c (Fx_font_family_list): Delete function.
9044 Move compatibility version to faces.el.
323b840c 9045
51d861de 9046 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 9047
eba7400d
MR
90482009-01-09 Martin Rudalics <rudalics@gmx.at>
9049
9050 * frame.c (x_set_frame_parameters): Remember requested value for
9051 fullscreen before it's reset by the parameter handler.
9052
4b09796d
GM
90532009-01-09 Glenn Morris <rgm@gnu.org>
9054
9055 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 9056 (last_command_event): ... and update all users.
4b09796d
GM
9057 (last_input_char): For clarity, rename to...
9058 (last_input_event): ... and update all users.
9059 (last-command-char, last-input-char): Move to subr.el as aliases.
9060 * cmds.c, commands.h: Update for last_command_char rename.
9061
14ccea62
CY
90622009-01-08 Chong Yidong <cyd@stupidchicken.com>
9063
51d861de 9064 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 9065
5f004711
JR
90662009-01-08 Jason Rumney <jasonr@gnu.org>
9067
9068 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
9069 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
9070 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
9071 Don't declare.
fff4e459 9072 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
9073 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
9074
b71f6f73
KH
90752009-01-07 Kenichi Handa <handa@m17n.org>
9076
50b06221 9077 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 9078 remember the coding system used for decoding in
50b06221
KH
9079 coding_system (Bug#1039).
9080
b71f6f73 9081 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 9082 breaking the loop. (Bug#870)
b71f6f73
KH
9083 (decode_coding_utf_16, decode_coding_emacs_mule)
9084 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9085 (decode_coding_charset): Likewise.
9086
56f668f7
MR
90872009-01-05 Martin Rudalics <rudalics@gmx.at>
9088
9089 * frame.c (x_set_frame_parameters): Make sure height (width) get
9090 applied when fullwidth (fullheight) is set. (Bug#1522)
9091
5da9424d
JB
90922009-01-04 Juanma Barranquero <lekktu@gmail.com>
9093
9094 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
9095 (utc_base): Declare as ULONGLONG, not long double.
9096 (convert_time_raw): Delete.
9097 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
9098 (initialize_utc_base): New function.
9099 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
9100 (convert_from_time_t): Use initialize_utc_base; compute result with
9101 64-bit arithmetic.
9102 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
9103
c4605e09
EZ
91042009-01-03 Eli Zaretskii <eliz@gnu.org>
9105
9acef61c 9106 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
9107 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
9108 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
9109 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
9110 [!subprocesses]: Define.
9111 (syms_of_process) [!subprocesses]: Intern and staticpro them.
9112 (Flist_system_processes, Fsystem_process_attributes)
9113 [!subprocesses]: Call list_system_processes and
9114 system_process_attributes instead of returning Qnil.
9115
9acef61c
JB
9116 * dosfns.c (system_process_attributes, list_system_processes):
9117 New functions.
c4605e09
EZ
9118
9119 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
9120
9121 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
9122 Don't use the default (no-op) implementation.
9123
8b7d0a16
JR
91242009-01-03 Jason Rumney <jasonr@gnu.org>
9125
a6d46bc1
JR
9126 * keyboard.c (parse_modifiers_uncached): Wheel events are
9127 clicks (bug#687).
9128
8b7d0a16
JR
9129 * w32term.c (x_query_colors, x_query_color): New functions.
9130
9131 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
9132 (svg_load_image): Cast returned pointers from dynamically loaded
9133 functions. Eliminate W32 specific code.
9134
bfe11752
DN
91352009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
9136
89e2438a
DN
9137 * nsfns.m (x_set_foreground_color, x_set_background_color)
9138 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
9139 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
9140 x_ prefix instead of ns_. Update references.
9141 (syms_of_nsfns): Add a FIXME comment.
9142
9143 * nsterm.m (x_set_cursor_type): New prototype.
9144 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
9145
bfe11752
DN
9146 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
9147 for Solaris instead of incorrectly providing Qutime and Qcutime.
9148
031da700
EZ
91492009-01-02 Eli Zaretskii <eliz@gnu.org>
9150
9151 * w32.c (process_times): Compute sum of utime and stime.
9152 (system_process_attributes): Add Qtime to the alist.
9153
9154 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
9155 and add them to the alist.
9156
9157 * process.c (top level) <Qtime, Qctime>: New variables.
9158 (syms_of_process): staticpro them.
9159 (Fsystem_process_attributes): Add their documentation to the doc
9160 string.
9161
9162 * process.h: Declare Qtime and Qctime.
9163
df23bf08
JR
91642009-01-02 Jason Rumney <jasonr@gnu.org>
9165
9acef61c 9166 * image.c (Qgobject): New symbol.
df23bf08
JR
9167 (syms_of_image): Initialize it.
9168 (init_svg_functions): Load some functions from gobject library.
9169
5bbdf7aa
DN
91702009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
9171
9172 * frame.c (make_terminal_frame): Remove redundant code and useless
9173 block.
9174
63136da6
AS
91752009-01-01 Andreas Schwab <schwab@suse.de>
9176
9177 * process.c (conv_sockaddr_to_lisp): Add workaround for
9178 getsockname bug on BSD.
9179
9ef69046
CY
91802009-01-01 Chong Yidong <cyd@stupidchicken.com>
9181
d6fafbe0
CY
9182 * xfns.c (x_create_tip_frame): Set border width of the X window.
9183
51d861de 9184 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 9185
f9c34147
JR
91862009-01-01 Jason Rumney <jasonr@gnu.org>
9187
9acef61c 9188 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
9189 Don't block input, as per earlier xterm.c changes.
9190
f5497e45
AR
91912008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
9192
9193 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
9194 (ns_appkit_version_int): New function.
9195 (x-server-version): Use ns_appkit_version_int and follow 21+
9196 convention of returning 3 integers.
9197
c19cab20
KH
91982008-12-30 Kenichi Handa <handa@m17n.org>
9199
9200 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
9201 (CHAR_SURROGATE_PAIR_P): New macro.
9202
9203 * font.h (struct font_driver): New member get_variation_glyphs.
9204
9acef61c 9205 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
9206 (Ffont_variation_glyphs): New function.
9207 (syms_of_font): Defsubr it.
9208
9209 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
9210 ftfont_variation_glyphs.
9211 (setup_otf_gstring): New function.
9212 (ftfont_drive_otf): Use it.
9213 (ftfont_shape_by_flt): Handle variation selector.
9214 (ftfont_variation_glyphs): New function.
9215
28cd591f
MR
92162008-12-30 Martin Rudalics <rudalics@gmx.at>
9217
9218 * frame.c (Vemacs_iconified): Remove.
9219
7f714baf
JR
92202008-12-30 Jason Rumney <jasonr@gnu.org>
9221
9222 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 9223 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 9224
9d2d22ab
CY
92252008-12-30 Chong Yidong <cyd@stupidchicken.com>
9226
9227 * indent.c (Fvertical_motion): Don't advance iterator if we have
9228 reseated to the desired position.
9229
9230 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
9231 checking for pos match.
9232
545312c2
KH
92332008-12-30 Kenichi Handa <handa@m17n.org>
9234
1ede3eb6
KH
9235 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
9236 just get the low 8-bit of the code.
9237
545312c2
KH
9238 * font.c (font_intern_prop): Validate str as multibyte.
9239
bd7bbf29
DN
92402008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9241
31e0750e
DN
9242 * dispextern.h (struct face): Move lface and hash from the middle
9243 of bitfields.
9244
bd7bbf29
DN
9245 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
9246
b5672e7c
DN
92472008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9248
9249 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
9250 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
9251 instead of intervals.h.
9252
d704470f
AS
92532008-12-26 Andreas Schwab <schwab@suse.de>
9254
9255 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
9256 cons.
9257
54b33868
MR
92582008-12-26 Martin Rudalics <rudalics@gmx.at>
9259
9260 * textprop.c (Qminibuffer_prompt): New variable.
9261 (syms_of_textprop): Initialize it.
9262 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
9263 in minibuffer-prompt face. (Bug#1662)
9264
40b615d6
JR
92652008-12-25 Jason Rumney <jasonr@gnu.org>
9266
9267 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
9268
baae5c2d
JR
92692008-12-24 Jason Rumney <jasonr@gnu.org>
9270
9271 * ralloc.c (r_alloc_reset_variable): New function.
9272
9273 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 9274 record of what points where. (Bug#716)
baae5c2d 9275
a9051c88
DN
92762008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
9277
9278 * minibuf.c (read_minibuf): Follow the non-interactive case when
9279 running as a daemon, before detaching.
9280
8b146312
AS
92812008-12-22 Andreas Schwab <schwab@suse.de>
9282
9283 * buffer.c (init_buffer): Use realloc instead of xrealloc.
9284 * gtkutil.c (free_widget_value): Use xfree instead of free.
9285
56f2de10
MR
92862008-12-22 Martin Rudalics <rudalics@gmx.at>
9287
9288 * frame.c (delete_frame): New function derived from
9289 Fdelete_frame to handle Qnoelisp value for FORCE argument.
9290 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
9291 (Fdelete_frame): Call delete_frame. Remove line from doc-string
9292 saying that FORCE non-nil doesn't run `delete-frame-functions'.
9293 * frame.h: Extern delete_frame.
9294 * window.c (window_loop):
9295 * terminal.c (delete_terminal):
9296 * xterm.c (x_connection_closed):
9297 * xfns.c (Fx_hide_tip):
9acef61c 9298 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 9299
1fc200d6
JR
93002008-12-21 Jason Rumney <jasonr@gnu.org>
9301
9302 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
9303 when character maps to .notdef character.
9304
5e252df2
SM
93052008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
9306
9307 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
9308
99b72cc4
JR
93092008-12-20 Jason Rumney <jasonr@gnu.org>
9310
9311 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 9312 a graphical frame on Windows. (Bug#1325)
99b72cc4 9313
acc49a52
JD
93142008-12-20 Jan Djärv <jan.h.d@swipnet.se>
9315
9316 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
9317
6ea15123
CY
93182008-12-20 Chong Yidong <cyd@stupidchicken.com>
9319
9320 * minibuf.c (Fread_buffer): Doc fix.
9321
b2dab6c8
JR
93222008-12-20 Jason Rumney <jasonr@gnu.org>
9323
54ea0c87 9324 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 9325 server name in UNC paths. (Bug#719)
54ea0c87 9326
b2dab6c8 9327 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 9328 charbuf. (Bug#1035)
b2dab6c8 9329
6d1921be
DN
93302008-12-19 Daniel Engeler <engeler@gmail.com>
9331
9332 * sysdep.c (serial_configure): Fix typo.
9333
53934c98
DN
93342008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9335
9336 * sysdep.c: Include alloca.h.
f4f634e8
DN
9337 (system_process_attributes): Add implementation for Solaris.
9338
9339 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 9340
06e111a6
DN
93412008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9342
9343 Reorganize implementation of Flist_system_processes and
9344 Fsystem_process_attributes. No functional changes.
9345 * process.c: Don't #include pwd.h, grp.h and limits.h.
9346 (Flist_system_processes): Just call list_system_processes.
9347 (Fsystem_process_attributes): Just call system_process_attributes.
9348 (procfs_list_system_processes, time_from_jiffies)
9349 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9350 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
9351
9352 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
9353 (list_system_processes): Rename from
9354 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
9355 Provide a do nothing implementation.
9356 (system_process_attributes): Rename from
9357 procfs_list_system_processes.
9358 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 9359 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
9360
9361 * w32.c (list_system_processes): Rename from
9362 w32_list_system_processes.
9363 (system_process_attributes): Rename from
9364 w32_system_process_attributes.
9365
9366 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
9367
9368 * process.h (w32_list_system_processes)
9369 (w32_system_process_attributes): Remove.
362654a6
JB
9370 (list_system_processes, system_process_attributes):
9371 New prototypes.
06e111a6 9372
6a705b23
KH
93732008-12-19 Kenichi Handa <handa@m17n.org>
9374
9375 * xfont.c (xfont_decode_coding_xlfd): New function.
9376 (xfont_encode_coding_xlfd): New function.
9377 (xfont_list_pattern): Decode XLFD by iso-8859-1.
9378 (xfont_list): Decode and encode XLFD by iso-8859-1.
9379 (xfont_match): Likewise.
9380 (xfont_list_family): Likewise.
9381 (xfont_open): Likewise.
9382
d66c0241 9383 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
9384 names are utf-8.
9385
d66c0241 9386 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
9387 names are utf-8.
9388
5a130941
JD
93892008-12-18 Jan Djärv <jan.h.d@swipnet.se>
9390
9391 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
9392 changed.
bfd20325
JD
9393 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
9394 clicked on a detached tool bar button.
5a130941 9395
fd95644b
DN
93962008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
9397
9398 * emacs.c (main): Print and error and exit when no data is read
9399 from the pipe.
9400
e6eee6ae
JR
94012008-12-17 Jason Rumney <jasonr@gnu.org>
9402
9403 * w32font.c (w32font_has_char): Always return -1.
9404
a35dd56b
KH
94052008-12-16 Kenichi Handa <handa@m17n.org>
9406
9407 * font.c (font_open_entity): Fix previous change.
9408
0e3635c2
DN
94092008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
9410
9411 * process.c: Include <limits.h>.
9412
d4835507 94132008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
9414
9415 * font.c (font_update_drivers): Fix mistake in reconstructing the
9416 driver list.
9417
94182008-12-16 Chong Yidong <cyd@stupidchicken.com>
9419
9420 * font.c (font_clear_cache): Fix format of font cache data.
9421
e2cbc401
CY
94222008-12-15 Chong Yidong <cyd@stupidchicken.com>
9423
9424 * xftfont.c (xftfont_open): Free Xft font pattern if
9425 XftFontOpenPattern fails.
9426
9427 * xterm.c (x_free_frame_resources): Remove extraneous call to
9428 free_frame_faces.
9429
b131d535
CY
94302008-12-13 Chong Yidong <cyd@stupidchicken.com>
9431
9432 * xterm.c (x_delete_display): Move xim_close_dpy call to
9433 x_delete_terminal.
9434 (x_delete_terminal): Call xim_close_dpy.
9435
e6df5336
JR
94362008-12-13 Jason Rumney <jasonr@gnu.org>
9437
9438 * w32font.c (intern_font_name): New function.
9439 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
9440 (w32font_open_internal, Fx_select_font): Decode font name.
9441 (fill_in_logfont, list_all_matching_fonts): Encode font name.
9442
9443 * w32font.h (intern_font_name): Declare new function.
9444
9445 * w32uniscribe.c (add_opentype_font_name_to_list):
9446 Use intern_font_name.
9447
20d68145
CY
94482008-12-13 Chong Yidong <cyd@stupidchicken.com>
9449
9f2554de
CY
9450 * frame.c (Fdelete_frame): Call free_font_driver_list.
9451
3d9bec9a
CY
9452 * font.c (free_font_driver_list): Implement missing function.
9453
20d68145
CY
9454 * w32term.c (w32_term_init): Don't initialize the image cache
9455 here; it will be done in init_frame_faces.
9456
9457 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
9458 (struct x_display_info): Remove unused member null_pixel. New
9459 member xim_callback_data.
9460
9461 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
9462 (xim_initialize): Save pointer to callback function data.
9463 (xim_close_dpy): Free callback function data. Call XCloseIM,
9464 reverting 2008-11-04 change by David Smith.
9465 (x_term_init): Don't initialize the image cache here; it will be
9466 done in init_frame_faces. Remove ancient "null_pixel" cruft.
9467 (x_delete_display): Free x_dnd_atoms member.
9468
96f9306b
KH
94692008-12-13 Kenichi Handa <handa@m17n.org>
9470
6dec9044
JB
9471 * font.c (font_rescale_ratio): Moved from xfaces.c.
9472 Argument type changed. Handle a font-spec too.
96f9306b 9473 (font_score): Check Vface_font_rescale_alist.
6dec9044 9474 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
9475
9476 * xfaces.c (font_rescale_ratio): Moved to font.c.
9477
8d5b4964
CY
94782008-12-13 Chong Yidong <cyd@stupidchicken.com>
9479
9480 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
9481
e6df5336
JR
94822008-12-12 Jason Rumney <jasonr@gnu.org>
9483
9484 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
9485 Vwindow_system_version to the real w32 major version.
9486
97c6058a
DN
94872008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
9488
9489 * term.c (init_tty): Move setting the terminal name before the
9490 potential user: maybe_fatal.
9491
ec4e88d7
CY
94922008-12-11 Chong Yidong <cyd@stupidchicken.com>
9493
d4835507
JB
9494 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
9495 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 9496
b4233ec9
JR
94972008-12-11 Jason Rumney <jasonr@gnu.org>
9498
8ec71e23 9499 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 9500 SYMBOL_CHARSET. (Bug#547)
8ec71e23 9501
b4233ec9 9502 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 9503 size for surrogates. (Bug#1096, bug#872)
b4233ec9 9504
011a0143
JB
95052008-12-11 Juanma Barranquero <lekktu@gmail.com>
9506
9507 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
9508
3c309f34
JB
95092008-12-11 Juanma Barranquero <lekktu@gmail.com>
9510
9511 * process.c (Fsystem_process_attributes, syms_of_process):
9512 Fix typo in name of Ssystem_process_attributes.
9513 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
9514
fedc6ab5
JB
95152008-12-11 Juanma Barranquero <lekktu@gmail.com>
9516
9517 * syntax.c (Fmodify_syntax_entry): Doc fix.
9518
ba3de0e8
JB
95192008-12-10 Juanma Barranquero <lekktu@gmail.com>
9520
9521 * font.c (Ffont_spec): Move usage to end of docstring.
9522
174f1c74
JR
95232008-12-10 Jason Rumney <jasonr@gnu.org>
9524
9525 * w32font.c (Qcham): New symbol.
9526 (font_supported_scripts): Add cham, and comments for other new
9527 scripts in bitfield from OpenType spec.
9d32f818
JR
9528 (add_font_entity_to_list): Limit unicode-sip fonts to those that
9529 contain characters beyond the bmp.
174f1c74 9530
7b649478
KH
95312008-12-10 Kenichi Handa <handa@m17n.org>
9532
9533 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 9534 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
9535 Qunicode_sip.
9536
2133e2d1
JB
95372008-12-10 Juanma Barranquero <lekktu@gmail.com>
9538
9539 * coding.c (QCdefault_char): Rename from QCdefalut_char.
9540 (Fcoding_system_put): Use QCdefault_char.
9541 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
9542
9af886ee
CY
95432008-12-09 Chong Yidong <cyd@stupidchicken.com>
9544
74d819eb
CY
9545 * xftfont.c (syms_of_xftfont): Fix typo.
9546
4ccfa1c0 9547 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 9548
7c19d3ae
DN
95492008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
9550
9551 * emacs.c (main): Close daemon_pipe on exec.
9552
567826bb
CY
95532008-12-08 Chong Yidong <cyd@stupidchicken.com>
9554
9555 * termchar.h (struct tty): New members termcap_term_buffer and
9556 termcap_strings_buffer.
9557
9558 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 9559 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
9560 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
9561 All callers changed.
9562 (init_tty): Store termcap data and string buffers in new struct
9563 tty members termcap_term_buffer and termcap_strings_buffer.
9564 (delete_tty): Free them.
4ccfa1c0 9565 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 9566
aa96c42b
SZ
95672008-12-07 Seiji Zenitani <zenitani@mac.com>
9568
9569 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 9570 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 9571
b7e1d896
CY
95722008-12-06 Chong Yidong <cyd@stupidchicken.com>
9573
9574 * coding.c (make_conversion_work_buffer): Disable buffer
9575 modification hooks in the work buffer.
9576
b5ec91a5
EZ
95772008-12-05 Eli Zaretskii <eliz@gnu.org>
9578
9579 * process.c (procfs_system_process_attributes): If `nread' has a
9580 negative value, assign zero to it.
9581
a5d2a52b
CY
95822008-12-05 Chong Yidong <cyd@stupidchicken.com>
9583
68c5540b 9584 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 9585
7bf1bb21
KH
95862008-12-05 Kenichi Handa <handa@m17n.org>
9587
9588 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
9589 second character is a combining character.
9590
2fdc7d00
EZ
95912008-12-05 Eli Zaretskii <eliz@gnu.org>
9592
9593 * process.c (procfs_system_process_attributes): Don't use cmd,
9594 cmdsize, and q without initializing them first.
9595
bf6bfba8
JR
95962008-12-04 Jason Rumney <jasonr@gnu.org>
9597
9598 * w32font.c (w32font_draw): Initialize orig_clip before getting
9599 it, and delete it when finished.
9600
a3b1a468
DN
96012008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
9602
9603 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
9604 case when running as a daemon before detaching.
9605
8b8be8eb
JB
96062008-12-03 Juanma Barranquero <lekktu@gmail.com>
9607
805f2638 9608 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 9609
b1bde622
KH
96102008-12-03 Kenichi Handa <handa@m17n.org>
9611
e500c47d
KH
9612 * font.c (font_at): Set `multibyte' at first.
9613
ca516334
KH
9614 * coding.c (decode_coding_charset): Check type of an element of
9615 vector VALIDS.
7bf1bb21 9616 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 9617
4ccfa1c0 9618 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
9619 (font_for_char): Likewise.
9620
1e5ecd37
CY
96212008-12-03 Chong Yidong <cyd@stupidchicken.com>
9622
d5b01609 9623 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
9624 (font_update_lface): Handle fonts with corrupted size specs,
9625 i.e. non-int and non-float.
d5b01609 9626
11e3a6e4 9627 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 9628 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 9629 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 9630
ab06788b
CY
9631 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
9632
1e5ecd37 9633 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 9634 underline_minimum_offset for underline position.
1e5ecd37 9635
63c125ab
DN
96362008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
9637
9638 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
9639
9640 * character.c (c_string_width): Specify the type for LEN.
9641
3a8406e1
KH
96422008-12-03 Kenichi Handa <handa@m17n.org>
9643
4ccfa1c0 9644 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 9645 (decode_coding_utf_8): Likewise.
4ccfa1c0 9646 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 9647 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 9648
651df7d9
CY
96492008-12-02 Chong Yidong <cyd@stupidchicken.com>
9650
9651 * keyboard.c (make_lispy_position): Only use PT if the selected
9652 window is current.
9653
1f625c6c
AS
96542008-12-02 Andreas Schwab <schwab@suse.de>
9655
f7741ce9
AS
9656 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
9657
1f625c6c
AS
9658 * doprnt.c (doprnt1): Fix size of charbuf.
9659
92bc2678
CY
96602008-12-02 Chong Yidong <cyd@stupidchicken.com>
9661
9662 * keyboard.c (timer_check): Revert last change.
9663
93b9e8cc
JB
96642008-12-02 Juanma Barranquero <lekktu@gmail.com>
9665
9666 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
9667
fd7a37d5
JB
96682008-12-01 Juanma Barranquero <lekktu@gmail.com>
9669
9670 * makefile.w32-in: Update dependencies.
9671 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
9672
c115043b
AS
96732008-12-01 Andreas Schwab <schwab@suse.de>
9674
9675 * font.c (register_font_driver): Use xmalloc.
9676 (font_put_frame_data): Likewise.
9677
f5668d2a
CY
96782008-12-01 Chong Yidong <cyd@stupidchicken.com>
9679
860d96be
CY
9680 * xfaces.c (realize_x_face): Make abort condition clearer.
9681
f5668d2a
CY
9682 * gtkutil.c (update_frame_tool_bar): Initialize variable.
9683
379c17e7
CY
96842008-11-30 Chong Yidong <cyd@stupidchicken.com>
9685
9686 * keyboard.c (timer_check): After a timer runs, ensure that the
9687 selected window's buffer is current.
9688
35f36d65
JB
96892008-11-30 Juanma Barranquero <lekktu@gmail.com>
9690
f952c61c
JB
9691 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
9692 It was accidentally restored by the Unicode merge.
9693
35f36d65
JB
9694 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
9695
b23077df
JB
96962008-11-29 Juanma Barranquero <lekktu@gmail.com>
9697
9698 * w32proc.c: Include "coding.h".
9699 (Fw32_short_file_name): Encode filename passed to Windows API.
9700 (Fw32_long_file_name): Encode filename passed to Windows API and
9701 decode back the result. (Bug#1433)
9702
b8ebe9dd
KH
97032008-11-29 Kenichi Handa <handa@m17n.org>
9704
8cc53f96
KH
9705 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
9706 not before accessing it.
9707
b8ebe9dd
KH
9708 * charset.c (Fdefine_charset_internal): After calculating
9709 min_char, max_char, and fastmap, copy the charset structure again.
9710 (encode_char): Fix the previous change.
9711
59bc82c0
SZ
97122008-11-28 Seiji Zenitani <zenitani@mac.com>
9713
9714 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
9715
9716 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
9717
9718 * nsterm.m (x_set_frame_alpha): New function.
9719
32247e3d
EZ
97202008-11-27 Eli Zaretskii <eliz@gnu.org>
9721
9722 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
9723
b003e5ff
JB
97242008-11-27 Juanma Barranquero <lekktu@gmail.com>
9725
9726 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
9727 pointer to check_face_name.
9728
708550f5
KH
97292008-11-27 Kenichi Handa <handa@m17n.org>
9730
9731 * category.h (SET_CATEGORY_SET): Call set_category_set.
9732 (set_category_set): Extern it.
9733
9734 * category.c (hash_get_category_set): New function.
9735 (Fmodify_category_entry): Adjusted for the change of
9736 char_table_ref_and_range. Call hash_get_category_set to get a
9737 category set to store in the table.
9738
9739 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
9740 Funify_charset.
9741
2ae37cf0 9742 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
9743 (DECODE_CHAR): Check if the decoder vector is ready.
9744 (ENCODE_CHAR): Check if the encoder char-table is ready.
9745 (maybe_unify_char): Extern it.
9746
9747 * charset.c (Vchar_unified_charset_table): Delete it.
9748 (inhibit_load_charset_map): New variable.
9749 (temp_charset_work): New variable.
9750 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
9751 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
9752 New macros.
9753 (load_charset_map): Meaning of control_flag changed. If
9754 inhibit_load_charset_map is nonzero, setup a table in
9755 temp_charset_work.
9756 (load_charset): New argument control_flag.
9757 (map_charset_for_dump): New function.
9758 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
9759 map_charset_for_dump.
9760 (Fdefine_charset_internal): If the charset method is MAP, load
9761 mapping tables by calling load_charset.
9762 (Funify_charset): Don't load a mapping table but directly set
9763 Vchar_unify_table.
9764 (maybe_unify_char): New function.
9765 (decode_char): Don't handle the deleted method MAP_DEFERRED.
9766 Handle the case of inhibit_load_charset_map being nonzero.
9767 (encode_char): Don't handle the deleted method MAP_DEFERRED.
9768 Handle the case of inhibit_load_charset_map being nonzero.
9769 (Fclear_charset_maps): Just free temp_charset_work.
9770 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
9771 variable.
9772
9773 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
9774 change of char_table_ref_and_range.
9775 (char_table_ref_and_range): Change the meaning of argument FROM
9776 and TO. Now the caller must provide initial values for *FROM
9777 and *TO.
9778
9779 * fontset.c (fontset_add): Adjusted for the change of
9780 char_table_ref_and_range.
9781 (fontset_get_font_group): Likewise.
9782 (Ffontset_info): Likewise.
9783
9784 * keymap.c (describe_vector): Adjusted for the change of
9785 char_table_ref_and_range. For char-table, put boundary between
9786 non-ASCII and 8-bit characters.
9787
9788 * print.c (print_object): For bool-vector, delete unnecessary
9789 check of ASCII_BYTE_P.
9790
9196133b
JR
97912008-11-26 Jason Rumney <jasonr@gnu.org>
9792
9793 * w32font.c (w32font_open_internal): Don't include external
9acef61c 9794 leading in font height. (Bug#879)
9196133b 9795
9f688acf
GM
97962008-11-26 Glenn Morris <rgm@gnu.org>
9797
9798 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
9799 redefinition with ifdef. (Bug#1383)
9800
90d19aff
AR
98012008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9802
9803 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
9804
4ccfa1c0 98052008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
9806
9807 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
9808 New EmacsView methods.
9809 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
9810 Fixes bug #1048,1357,1414.
9811
98122008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9813
9814 Fix bug #1362.
9815 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
9816 is not an indexed color.
9817 * nsterm.m (free_indexed_color): Add argument checking.
9818 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
9819
e7d5ecb3
CY
98202008-11-24 Chong Yidong <cyd@stupidchicken.com>
9821
9822 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
9823 Document confirm-after-completion value for
9824 minibuffer-completion-confirm.
9825
c285743c
JR
98262008-11-24 Jason Rumney <jasonr@gnu.org>
9827
9828 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
9829 warning.
9830
b0857706
JR
98312008-11-23 Jason Rumney <jasonr@gnu.org>
9832
9833 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
9834 restored before returning.
9835
9836 * w32font.c (check_face_name): New function.
9837 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 9838 fonts. (Bug#642)
b0857706 9839
ee50ff07
MR
98402008-11-22 Martin Rudalics <rudalics@gmx.at>
9841
9842 * buffer.c (Fswitch_to_buffer): Reword and mention new option
9843 confirm-nonexistent-file-or-buffer in doc-string.
9844
b8ff72fa
SM
98452008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9846
9847 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
9848 Fix copy/paste typo. Add checks.
9849
cee53ed4
KH
98502008-11-21 Kenichi Handa <handa@m17n.org>
9851
9852 * coding.c (detect_coding_iso_2022): Reject invalid composition
9853 sequence.
9854 (DECODE_COMPOSITION_START): If the current source is the last
9855 block, and the current composition doesn't end, regard this
9856 sequence as invalid.
9857 (decode_coding_iso_2022): Handle invalid composition sequence.
9858
f6ef1e65
MR
98592008-11-20 Martin Rudalics <rudalics@gmx.at>
9860
9861 * window.c (coordinates_in_window): Don't return
9862 ON_VERTICAL_BORDER for the rightmost position of a mode/header
9863 line when the window is not the rightmost one. (Bug#1372)
9864
e08b1705
MR
98652008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
9866
9867 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
9868
ad98e89f
EZ
98692008-11-15 Eli Zaretskii <eliz@gnu.org>
9870
9871 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
9872 and bright_bg if noninteractive is non-zero.
9873
fb098a4b
CY
98742008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9875
9876 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
9877 x_draw_glyph_string_background.
9878
9879 * w32term.c (x_draw_glyph_string): Likewise.
9880
ce952b6e
CY
98812008-11-15 Chong Yidong <cyd@stupidchicken.com>
9882
9883 * xterm.c (x_draw_glyph_string): Stop drawing the background of
9884 the next glyph string once past the overhang width.
9885
9886 * nsterm.m (ns_draw_glyph_string): Likewise.
9887
9888 * w32term.c (x_draw_glyph_string): Likewise.
9889
26ea7079
CY
98902008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
9891
9892 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
9893 double file close.
9894
1c33c906
MR
98952008-11-14 Martin Rudalics <rudalics@gmx.at>
9896
9897 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
9898 dedicated status of window before attempting to display another
9899 buffer in it.
9900
8fc29035
JB
99012008-11-14 Juanma Barranquero <lekktu@gmail.com>
9902
9903 * msdos.c (Fmsdos_long_file_names):
9904 (syms_of_msdos) <dos-unsupported-char-glyph>:
9905 * dosfns.c (Fint86): Fix typos in docstrings.
9906
55fb4286
EZ
99072008-11-14 Eli Zaretskii <eliz@gnu.org>
9908
9909 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
9910
3fda0315
KY
99112008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
9912
9913 * puresize.h (BASE_PURESIZE): Increase to 1260000.
9914
7e849c17
CY
99152008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
9916
9917 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
9918
9919 * frame.h: Negative alpha means "don't touch".
9920
9921 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
9922
9923 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
9924
b9fd67bd
DN
99252008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
9926
9927 * hftctl.c:
9928 * chpdef.h:
9929 * acldef.h: Remove files used only for systems no longer supported.
9930
9931 * Makefile.in: Fix .o alphabetical ordering.
9932 (hftctl.o): Remove dependency, file removed.
9933 (keymap.o, print.o): Depend on charset.h.
9934
d5998e03
KH
99352008-11-10 Kenichi Handa <handa@m17n.org>
9936
2ae37cf0 9937 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 9938
be70e183
CY
99392008-11-08 Chong Yidong <cyd@stupidchicken.com>
9940
9941 * dired.c (file_name_completion): If completion_ignore_case is
9942 enabled, ignore case when checking completion-regexp-list.
9943
7cf94eac
EZ
99442008-11-08 Eli Zaretskii <eliz@gnu.org>
9945
9946 * vm-limit.c (get_lim_data): Fix last change.
9947
ee107a89
KH
99482008-11-08 Kenichi Handa <handa@m17n.org>
9949
9950 * character.c (Fget_byte): New function.
9951 (syms_of_character): Defsubr Fget_byte.
9952
5fd15622
CY
99532008-11-07 Chong Yidong <cyd@stupidchicken.com>
9954
9955 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
9956 cursor position is valid after scrolling.
9957
13d62fad
JB
99582008-11-06 Juanma Barranquero <lekktu@gmail.com>
9959
9960 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
9961
a1dd2936
GM
99622008-11-06 Glenn Morris <rgm@gnu.org>
9963
9964 * xterm.c (handle_one_xevent): Don't let popup menus cause
9965 mouse-autoselect-window related window switching. (Bug#1261)
9966
860cd236
CY
99672008-11-04 David Smith <davidsmith@acm.org> (tiny change)
9968
9969 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
9970
653a3150
AS
99712008-11-04 Andreas Schwab <schwab@suse.de>
9972
9973 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
9974
870f5cac
CY
99752008-11-03 Chong Yidong <cyd@stupidchicken.com>
9976
9977 * xfns.c (Fx_wm_set_size_hint): New function.
9978
1e02f3cb
MR
99792008-11-03 Martin Rudalics <rudalics@gmx.at>
9980
9981 * textprop.c (Fprevious_single_char_property_change): Return 0
9982 when there's no change in a string. (Bug#1301)
9983
e630dfc6
MR
99842008-11-02 Martin Rudalics <rudalics@gmx.at>
9985
9986 * frame.c (do_switch_frame): New argument NORECORD passed to
9987 Fselect_window.
9988 (Fselect_frame): New argument NORECORD passed to
9989 do_switch_frame.
9990 (Fset_frame_selected_window): New argument NORECORD passed to
9991 Fselect_frame.
9992 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
9993 in call of do_switch_frame.
9994 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
9995 Handle NORECORD argument in call of Fselect_frame.
9996 * lisp.h (do_switch_frame, Fselect_frame)
9997 (Fset_frame_selected_window): Adjust declarations.
9998 * window.c (select_frame_norecord): New function.
9999 (run_window_configuration_change_hook): Use it and call
10000 Fselect_frame with NORECORD set.
10001 (Fselect_window): Pass NORECORD to Fselect_frame.
10002 (Fset_window_configuration): Handle NORECORD argument in call of
10003 do_switch_frame.
10004 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
10005 Fset_frame_selected_window.
10006 * keyboard.c (command_loop_1): Handle NORECORD in call of
10007 Fselect_frame (currently ifdefd).
10008
9020b223
GM
100092008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
10010
10011 * emacs.c (USAGE2): Untabify.
10012
793ffee8
SM
100132008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
10014
10015 * composite.c (fill_gstring_header): Fix copy/paste typo.
10016
ab6d1131
MR
100172008-10-31 Martin Rudalics <rudalics@gmx.at>
10018
10019 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
10020 (Fother_window): Rename argument and rewrite doc-string.
10021 (select_window_norecord): Fix return value. (Bug#1276)
10022
601a9cf1
JB
100232008-10-30 Juanma Barranquero <lekktu@gmail.com>
10024
10025 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
10026 new frames overriding foreground for tooltips. Based on similar patch
10027 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
10028
813b0652
CY
100292008-10-29 Chong Yidong <cyd@stupidchicken.com>
10030
10031 * emacs.c (Fdaemon_initialized): Initialize nfd.
10032
4414f58f
MR
100332008-10-29 Martin Rudalics <rudalics@gmx.at>
10034
10035 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
10036 (Fwindow_text_height): Clarify doc-strings.
10037 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
10038 doc-string of window-scroll-functions.
10039
ecdcaa09
RS
100402008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
10041
10042 * category.c (syms_of_category): Fix typo in docstring.
10043
23fe745a
JB
100442008-10-28 Juanma Barranquero <lekktu@gmail.com>
10045
10046 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
10047 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
10048 Fix typos in docstrings.
10049
ff808935
DN
100502008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
10051
10052 * emacs.c (daemon_pipe): Make non-static.
10053 (IS_DAEMON): Move definition ...
10054 * lisp.h (IS_DAEMON): ... here.
10055 (daemon_pipe): Declare.
10056 (is_daemon): Remove.
10057 * dispnew.c (init_display): Use IS_DAEMON.
10058
fc012771
SM
100592008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10060
10061 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
10062 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
10063
10064 * emacs.c (is_daemon): Remove.
10065 (main): Don't set is_daemon.
10066 (IS_DAEMON): New macro.
10067 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 10068 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
10069 parent exits.
10070 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
10071
d8bdbe6f
CY
100722008-10-27 Chong Yidong <cyd@stupidchicken.com>
10073
d1a072bf
CY
10074 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
10075 over-sized glyph, draw it with the default glyph width.
10076
e2e325aa
CY
10077 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10078 glyph, draw it with the default glyph width.
10079
10080 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10081 glyph, draw it with the default glyph width.
10082
d8bdbe6f
CY
10083 * xdisp.c (try_scrolling): When computing the distance from the
10084 scroll margin to PT, try moving some distance past the window
10085 bottom before giving up.
10086
7bfac547
MR
100872008-10-27 Martin Rudalics <rudalics@gmx.at>
10088
10089 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
10090 (Fset_window_buffer): Explain in doc-string that a window can be
10091 "strongly" dedicated to its buffer.
10092
4ff029f6
DN
100932008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
10094
10095 * emacs.c (daemon_name): New variable.
10096 (main): Deal with --daemon=SERVER_NAME.
10097 (Fdaemonp): Return a name if one was passed to --daemon.
10098
5790ef40
DN
100992008-10-26 Romain Francoise <romain@orebokech.com>
10100
f9bd0df9 10101 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
10102 (main): Create a pipe before forking, make the parent exit only after
10103 the child has closed its end of the pipe. Move closing the
10104 descriptors ...
10105 (Fdaemon_initialized): ... here. New function.
10106
f5385255
SM
101072008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
10108
4d632321
SM
10109 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
10110 the previous unoptimized table.
10111
f5385255
SM
10112 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
10113 the distinction between non-nil and non-t value of `dedicated'.
10114
6c56a0f3
CY
101152008-10-25 Chong Yidong <cyd@stupidchicken.com>
10116
10117 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 10118 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 10119
fec89261
MR
101202008-10-25 Martin Rudalics <rudalics@gmx.at>
10121
10122 * window.c (Fget_buffer_window, Fdelete_windows_on)
10123 (Freplace_buffer_in_windows): Make buffer argument optional and
10124 rename to buffer_or_name.
10125
34fcddd0
CY
101262008-10-24 Chong Yidong <cyd@stupidchicken.com>
10127
f5385255
SM
10128 * xdisp.c (handle_single_display_spec, handle_display_prop):
10129 Undo 2005-05-16 change.
34fcddd0
CY
10130 (handle_stop): Pop iterator if it's loaded with an empty string.
10131 (get_overlay_strings_1): Don't save iterator if it's loaded with
10132 an empty string (bug#1201).
10133
064766f2
KH
101342008-10-24 Kenichi Handa <handa@m17n.org>
10135
10136 * ftfont.c (ftfont_otf_features): Fix previous change.
10137 (ftfont_otf_capability): Check FeatureList.FeatureCount before
10138 calling ftfont_otf_features.
10139
f9bd0df9 101402008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
10141
10142 * font.c (font_match_p): Fix for the case that a vector of
10143 characters is in script-representative-chars.
10144
1dae9197
MA
101452008-10-24 Michael Albinus <michael.albinus@gmx.de>
10146
10147 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 10148 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
10149 (xd_read_queued_messages): Catch Qdbus_error from the macros.
10150 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 10151 macro. (Bug#1186)
1dae9197 10152
f9bd0df9 101532008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
10154
10155 * s/sol2-10.h: New file.
10156
878a4584
JB
101572008-10-23 Juanma Barranquero <lekktu@gmail.com>
10158
10159 * xdisp.c (fill_glyph_string): Fix typo in source (though the
10160 poor beast has survived 9+ years and the jump from xterm.c!).
10161
cd265ca6
MR
101622008-10-23 Martin Rudalics <rudalics@gmx.at>
10163
10164 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
10165 Reword doc-string.
f5385255 10166 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 10167
472a4dc9
JB
101682008-10-23 Juanma Barranquero <lekktu@gmail.com>
10169
10170 * character.c (syms_of_character) <script-representative-chars>:
10171 <unicode-category-table>: Doc fixes.
10172
159bd5a2
NF
101732008-10-23 Noah Friedman <friedman@splode.com>
10174
10175 * coding.c (make_conversion_work_buffer): Check that
10176 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
10177 Fget_buffer_create.
10178
49f9c344
KH
101792008-10-23 Kenichi Handa <handa@m17n.org>
10180
10181 * font.c (font_add_log): Check the values of extra properties.
10182
12bb3111
MR
101832008-10-22 Martin Rudalics <rudalics@gmx.at>
10184
10185 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10186 Reword doc-string.
10187 (Fset_window_parameter): Use NILP.
10188 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 10189 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 10190
bbeb4e99
JB
101912008-10-22 Juanma Barranquero <lekktu@gmail.com>
10192
10193 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
10194
101952008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
10196
10197 * nsfns.m (ns_appkit_version): New function.
10198 (x-server-version): Use it.
10199 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
10200 (x-server-vendor): Don't check_ns().
10201
10202 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
10203
a9b555d3
JB
102042008-10-22 Juanma Barranquero <lekktu@gmail.com>
10205
10206 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
10207 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
10208
4626499f
KH
102092008-10-22 Kenichi Handa <handa@m17n.org>
10210
e3681952
KH
10211 * syntax.c (scan_words): Call word_boundary_p instead of comparing
10212 scripts.
10213
4626499f
KH
10214 * category.c (word_boundary_p): Check scripts instead of charset.
10215 Handle nil value in word-separating-categories and
10216 word-combining-categories.
10217 (syms_of_category): Fix docstrings of word-separating-categories
10218 and word-combining-categories.
10219
1560f91a
EZ
102202008-10-21 Eli Zaretskii <eliz@gnu.org>
10221
10222 * coding.c (Fencode_coding_region, Fdecode_coding_region)
10223 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
10224
f4668441
MR
102252008-10-21 Martin Rudalics <rudalics@gmx.at>
10226
10227 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
10228 Rename arg "buffer" to "buffer_or_name".
10229 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
10230 it optional.
10231 (no_switch_window): Remove since the return value is not used.
a9b555d3 10232 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
10233 Consider window as dedicated when Fwindow_dedicated_p returns a
10234 non-nil value.
10235 * lisp.h: Remove prototype for no_switch_window.
10236
fd75ddb2
JD
102372008-10-21 Jan Djärv <jan.h.d@swipnet.se>
10238
10239 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 10240 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 10241
07295713
KH
102422008-10-21 Kenichi Handa <handa@m17n.org>
10243
10244 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
10245 check Vlatin_extra_code_table.
10246
712adc82
EZ
102472008-10-20 Eli Zaretskii <eliz@gnu.org>
10248
10249 * fileio.c (Fset_file_modes): Doc fix.
10250
f549eb0b
MA
102512008-10-19 Michael Albinus <michael.albinus@gmx.de>
10252
10253 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
10254 in arrays.
10255
aac0c6e3
MR
102562008-10-19 Martin Rudalics <rudalics@gmx.at>
10257
10258 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10259 Mention kill-buffer in doc-string.
10260 (Fset_window_buffer): Reinsert tem check removed in last commit.
10261 (Fenlarge_window, Fshrink_window): Have argument names and
10262 doc-string follow Elisp manual more closely.
10263
102642008-10-18 Eli Zaretskii <eliz@gnu.org>
10265
10266 * fileio.c (Fset_file_modes): Doc fix.
10267
102682008-10-18 Martin Rudalics <rudalics@gmx.at>
10269
10270 * window.c (Fwindow_width, Fset_window_start)
10271 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
10272 (Fdelete_windows_on, Freplace_buffer_in_windows):
10273 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
10274 (Fwindow_dedicated_p): Make window argument optional.
10275 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
10276 (Fset_window_buffer): Respect any non-nil dedicated value for
10277 window. Rename "buffer" argument to "buffer_or_name".
10278
102792008-10-18 Ulrich Mueller <ulm@gentoo.org>
10280
10281 * m/sh3.h: New file, machine description for SuperH.
10282
102832008-10-17 Martin Rudalics <rudalics@gmx.at>
10284
10285 * window.c (Fsplit_window): Rename arg horflag to horizontal.
10286
102872008-10-17 Kenichi Handa <handa@m17n.org>
10288
10289 * ftfont.c (ftfont_otf_features): Fix indexing
10290 gsub_gpos->FeatureList.Feature. Check the validity of indices.
10291
102922008-10-16 Magnus Henoch <mange@freemail.hu>
10293
10294 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
10295 (Fdbus_call_method_asynchronously): Ditto.
10296 This change makes C-h f display the argument list.
10297
102982008-10-16 Chong Yidong <cyd@stupidchicken.com>
10299
10300 * fileio.c (Fexpand_file_name): Doc fix.
10301
10302 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
10303 of :foreground and :background equivalent to unspecified (20.x
10304 compatibility).
10305
103062008-10-15 Eli Zaretskii <eliz@gnu.org>
10307
10308 * buffer.c (syms_of_buffer): Doc fix.
10309
103102008-10-14 Kenichi Handa <handa@m17n.org>
10311
10312 * font.c (font_clear_prop): When clearing font width, clear the
10313 average width field too.
10314
103152008-10-12 Andreas Schwab <schwab@suse.de>
10316
10317 * ftfont.c (ftfont_shape_by_flt): Make static.
10318 * ftfont.h (ftfont_shape_by_flt): Don't declare.
10319
10320 * font.c: Don't include <m17n-flt.h>.
10321
103222008-10-10 Eli Zaretskii <eliz@gnu.org>
10323
10324 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
10325
103262008-10-09 Eli Zaretskii <eliz@gnu.org>
10327
10328 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
10329 away code.
10330
103312008-10-09 Chong Yidong <cyd@stupidchicken.com>
10332
10333 * dispnew.c (update_text_area): Avoid looping due to large glyph
10334 overhangs (bug#1070).
10335
103362008-10-09 Kenichi Handa <handa@m17n.org>
10337
10338 * fontset.c (face_for_char): If face->fontset is negative, just
10339 return ascii_face.
10340
f5385255
SM
10341 * font.c (font_delete_unmatched): Fix previous change.
10342 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
10343
103442008-10-09 Martin Rudalics <rudalics@gmx.at>
10345
10346 * frame.c (Fraise_frame): On text-only terminals select frame in
10347 order to make it visible. (Bug#1061)
10348
103492008-10-08 Chong Yidong <cyd@stupidchicken.com>
10350
10351 * fontset.c (fontset_find_font): Check frame validity.
10352
103532008-10-07 Chong Yidong <cyd@stupidchicken.com>
10354
a9b555d3 10355 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
10356 (xg_display_close): Allow Emacs to close all displays (bug#985).
10357
103582008-10-06 Andreas Schwab <schwab@suse.de>
10359
f5385255 10360 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
10361
103622008-10-06 Chong Yidong <cyd@stupidchicken.com>
10363
f5385255 10364 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 10365
a9b555d3 10366 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
10367
10368 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
10369 during initialization.
10370
103712008-10-04 Eli Zaretskii <eliz@gnu.org>
10372
10373 * xdisp.c (redisplay_internal): If frame switched, redisplay the
10374 whole thing on MSDOS frames as well as on a TTY.
10375
10376 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
10377 well as for TTY.
10378 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
10379 well as on a TTY.
10380
10381 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
10382 as well as for TTY.
10383
10384 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
10385
10386 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
10387 MSDOS frames as well.
10388
103892008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10390
10391 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
10392 correct arguments.
b71ac3dd 10393 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
10394
103952008-10-03 Glenn Morris <rgm@gnu.org>
10396
10397 * emacs.c (USAGE1): Add --daemon.
10398
103992008-10-02 Eli Zaretskii <eliz@gnu.org>
10400
10401 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
10402 100, so it's in percents as advertised.
10403
104042008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10405
10406 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
10407 (ns_output.current_cursor, ns_output.desired_cursor)
10408 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
10409 (FRAME_NEW_CURSOR_COLOR): Remove.
10410
10411 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 10412 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
10413 enumeration (HOLLOW_BOX_CURSOR, etc.).
10414
10415 * nsterm.m (ns_frame_rehighlight): Remove commented code.
10416 (draw_window_cursor): Simplify code.
f5385255
SM
10417 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
10418 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 10419 updates manually.
a9b555d3
JB
10420 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
10421 Use core Emacs cursor types.
aac0c6e3 10422
b8ff72fa 10423 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
10424
104252008-10-02 Martin Rudalics <rudalics@gmx.at>
10426
10427 * process.c (Faccept_process_output): Fix doc-string.
10428
104292008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
10430
10431 * gmalloc.c (__sbrk): Also define for uClibc.
10432
10433 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
10434 for uClibc.
10435
104362008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10437
10438 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
10439 styles.
10440 (nsfont_open): Reenable the cache.
10441
104422008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10443
10444 * font.c (font_matching_entity): Reflect ATTRS in font selection.
10445 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
10446
104472008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
10448
10449 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
10450 a suspended terminal.
10451
104522008-09-30 Michael Albinus <michael.albinus@gmx.de>
10453
10454 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
10455
104562008-09-30 Eli Zaretskii <eliz@gnu.org>
10457
10458 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
10459
104602008-09-30 Chong Yidong <cyd@stupidchicken.com>
10461
10462 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
10463 in a continued line coincides with a line beginning.
10464
104652008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10466
10467 * nsfont.m (nsfont_trait_distance): Fix bug.
10468 (nsfont_list): Return a list rather than a vector (syncs with Handa
10469 changes of 2008-05-14).
10470 (nsfont_open): Improve logging.
10471
104722008-09-29 Andreas Schwab <schwab@suse.de>
10473
10474 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
10475
104762008-09-28 Martin Rudalics <rudalics@gmx.at>
10477
10478 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
10479 name as char-resolve-modifiers.
10480 Reported by: Markus Triska <markus.triska@gmx.at>
10481
104822008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
10483
10484 * dispnew.c (init_display): Return earlier when running as a daemon.
10485
104862008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10487
10488 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
10489
104902008-09-27 Eli Zaretskii <eliz@gnu.org>
10491
10492 * composite.c (Fcomposition_get_gstring)
10493 (Fcompose_region_internal, Fcompose_string_internal)
10494 (Ffind_composition_internal): Doc fix.
10495 (syms_of_composite) <compose-chars-after-function>: Doc fix.
10496 (syms_of_composite) <auto-composition-function>: Doc fix.
10497 (syms_of_composite) <composition-function-table>: Doc fix.
10498
104992008-09-25 Chong Yidong <cyd@stupidchicken.com>
10500
10501 * search.c (wordify): New argument for lax word-ends.
10502 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
10503
105042008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
10505
10506 * lisp.h (is_daemon): Declare.
10507 * dispnew.c (init_display): Do not try to initialize the terminal
10508 when running as a daemon.
10509
105102008-09-22 Chong Yidong <cyd@stupidchicken.com>
10511
10512 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
10513 x_display_pixel_height.
10514
105152008-09-22 Martin Rudalics <rudalics@gmx.at>
10516
10517 * undo.c (record_point): Don't call Fundo_boundary for first
10518 change. (Bug#731)
10519
105202008-09-22 Juanma Barranquero <lekktu@gmail.com>
10521
10522 * emacs.c (Fdaemonp): Doc fix.
10523
105242008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
10525
10526 * emacs.c (main): Place #ifdef in the proper place.
10527
105282008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
10529
10530 * emacs.c (standard_args): Add --daemon.
10531 (main): Disconnect from the terminal when --daemon is passed.
10532 (is_daemon): New variable.
10533 (Fdaemonp): New function.
10534 (syms_of_emacs): Defsubr it.
10535
105362008-09-20 Chong Yidong <cyd@stupidchicken.com>
10537
10538 * xdisp.c (get_next_display_element): Handle string display
10539 correctly when checking for the end of a box run.
10540
105412008-09-20 Glenn Morris <rgm@gnu.org>
10542
10543 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
10544 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
10545 (Frename_file): Avoid copying to trash if a rename involves
10546 a delete. (Bug#964).
10547
105482008-09-20 Eli Zaretskii <eliz@gnu.org>
10549
10550 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
10551 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
10552 frames as well as termcap frames.
10553 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
10554 get_named_tty.
10555
105562008-09-19 Eli Zaretskii <eliz@gnu.org>
10557
10558 * process.c (procfs_system_process_attributes): Fix cmdline in
10559 case /proc/PID/cmdline is empty.
10560
10561 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
10562 x_display_pixel_height.
10563
105642008-09-19 Juanma Barranquero <lekktu@gmail.com>
10565
10566 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
10567
10568 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10569 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
10570
105712008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
10572
10573 * dispextern.h (struct it): Move line_wrap away from the middle of
10574 bitfields. Move voffset in struct iterator_stack_entry after the
10575 bitfields. Move tab_width near after another short.
10576
105772008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
10578
10579 * frame.h (struct frame): Move alpha from the middle of bitfields.
10580
10581 * window.h (struct window): Move frozen_window_start_p after the
10582 rest of the bitfields to reduce padding.
10583
105842008-09-18 Chong Yidong <cyd@stupidchicken.com>
10585
10586 * xterm.h (x_display_info): Remove `height' and `width' members.
10587
10588 * nsterm.h (ns_display_info): Remove `height' and `width' members.
10589
10590 * w32term.h (w32_display_info): Remove `height', `width',
10591 `height_in', and `width_in' members.
10592
b8ff72fa
SM
10593 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10594 New functions.
aac0c6e3
MR
10595 (x_calc_absolute_position): Use them.
10596 (x_term_init): Omit removed `height' and `width' members.
10597
b8ff72fa
SM
10598 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10599 New functions.
aac0c6e3
MR
10600 (w32_read_socket, x_calc_absolute_position): Use them.
10601 (w32_initialize_display_info, w32_term_init): Omit removed members
10602 of w32_display_info.
10603
b8ff72fa
SM
10604 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
10605 New functions.
10606 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 10607
b8ff72fa
SM
10608 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10609 New functions.
aac0c6e3
MR
10610 (x_calc_absolute_position): Use them.
10611 (x_term_init): Omit removed `height' and `width' members.
10612
10613 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
10614 (compute_tip_xy):
10615 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
10616 * xmenu.c (menu_position_func): Use x_display_pixel_height and
10617 x_display_pixel_width.
10618
106192008-09-18 Kenichi Handa <handa@m17n.org>
10620
10621 * composite.c (fill_gstring_header): Don't check FROM and TO here.
10622 (composition_compute_stop_pos): Fix handling of static composition.
10623 (Fcomposition_get_gstring): Check FROM and TO at first.
10624
106252008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10626
46e722a9 10627 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
10628 mixup (YAILOM).
10629
106302008-09-17 Chong Yidong <cyd@stupidchicken.com>
10631
10632 * indent.c (Fvertical_motion): Use position reported by iterator
10633 instead of PT for determining screen motion (bug#943).
10634
106352008-09-17 Romain Francoise <romain@orebokech.com>
10636
10637 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
10638
106392008-09-17 Kenichi Handa <handa@m17n.org>
10640
10641 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
10642
10643 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
10644 if necessary.
10645
106462008-09-16 Kenichi Handa <handa@m17n.org>
10647
10648 * coding.c (make_conversion_work_buffer): Avoid calling
10649 Fget_buffer_create if it is not necessary.
10650
106512008-09-15 Martin Rudalics <rudalics@gmx.at>
10652
10653 * window.c (Fselect_window): Don't update window_select_count and
10654 use_time when norecord is not nil.
10655
106562008-09-14 Kenichi Handa <handa@m17n.org>
10657
10658 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
10659 specpdl_ptr.
10660
106612008-09-12 Kenichi Handa <handa@m17n.org>
10662
10663 * indent.c (scan_for_column): Don't handle automatic composition
10664 if the current buffer is not associated with a window.
10665
10666 * composite.c (composition_reseat_it): If the current buffer is
10667 not associated with a window, ignore the automatic composition.
10668 (find_automatic_composition): Likewise.
10669
106702008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10671
10672 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
10673 (Fgpm_mouse_stop): Use it.
10674 * termhooks.h (close_gpm): Declare.
10675 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
10676 connection if Gpm_GetEvent fails.
10677
10678 * window.c (set_window_buffer): Always preserve current-buffer.
10679
106802008-09-12 Glenn Morris <rgm@gnu.org>
10681
10682 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
10683
106842008-09-11 Glenn Morris <rgm@gnu.org>
10685
10686 * charset.c (charset-map-path): Doc fix.
10687
106882008-09-10 Kenichi Handa <handa@m17n.org>
10689
10690 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
10691
10692 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
10693 compose a grapheme cluster with the preceding base glyph.
10694
10695 * composite.c (composition_compute_stop_pos): Fix previous change.
10696 Reset cmp_it->id to -1 at first.
10697
106982008-09-10 Glenn Morris <rgm@gnu.org>
10699
10700 * Makefile.in (character.o, chartab.o): Fix config.h typo.
10701
107022008-09-09 Chong Yidong <cyd@stupidchicken.com>
10703
10704 * keyboard.c (read_key_sequence): Reapply translation maps when
10705 switching keyboards.
10706
107072008-09-09 Kenichi Handa <handa@m17n.org>
10708
10709 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
10710 characters.
10711
10712 * composite.c (FORWARD_CHAR): Fix calculation
10713 of (POSITION).pos_byte.
10714 (composition_compute_stop_pos): Limit the search of composition to
10715 at most 500 characters ahead. If we reach the limit or find a
10716 newline, set cmp_it->ch to -2 and return 0.
10717 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
10718
107192008-09-08 Kenichi Handa <handa@m17n.org>
10720
10721 * indent.c (Fvertical_motion): Be sure to set
10722 it_overshoot_expected if it.cmp_it.id is non-negative.
10723
107242008-09-07 Andreas Schwab <schwab@suse.de>
10725
10726 * callproc.c (Fcall_process): Don't hold references to string data
10727 across garbage collection. Move initialisation of new_argv down
10728 to avoid compiler bug.
10729
107302008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10731
10732 * process.c (Fsystem_process_attributes): Doc fix.
10733
107342008-09-07 Chong Yidong <cyd@stupidchicken.com>
10735
10736 * callproc.c (Fcall_process): Canonicalize current directory name.
10737
10738 * xdisp.c (move_it_to): When moving by vpos, ensure that the
10739 iterator advances to the next line if the current line ends in a
10740 continued tab.
10741
107422008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
10743
10744 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
10745 member to point to cmp_from.
10746
10747 * xdisp.c: Doc fix for references to gidx data member.
10748
107492008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10750
10751 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
10752
107532008-09-07 Kenichi Handa <handa@m17n.org>
10754
10755 * composite.c (FORWARD_CHAR): Check STOP after
10756 incrementing (POSITION).pos.
10757
107582008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10759
10760 * process.c (Fsystem_process_attributes): Doc fix.
10761
107622008-09-06 Chong Yidong <cyd@stupidchicken.com>
10763
10764 * keyboard.c (Ftop_level): Doc fix.
10765
107662008-09-06 Eli Zaretskii <eliz@gnu.org>
10767
10768 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
10769 minibuffer, don't let lower part of menu invade the echo area.
10770
10771 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
10772 "char *q" to access menu text and advance through it. Revert the
10773 change that displayed ">" instead of ASCII character 0x10.
10774
107752008-09-05 Eli Zaretskii <eliz@gnu.org>
10776
10777 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
10778 toggle boxes and radio buttons on MS-DOS as well.
10779
107802008-09-05 Kenichi Handa <handa@m17n.org>
10781
10782 * composite.c (autocmp_chars): Check lookback count.
10783 (composition_compute_stop_pos): Set cmp_it->lookback.
10784 (composition_reseat_it): Check lookback count.
10785 (struct position_record): New struct.
10786 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
10787 (find_automatic_composition): New function.
10788 (composition_adjust_point): Use find_automatic_composition.
10789
10790 * dispextern.h (struct composition_it): New member lookback.
10791
107922008-09-02 Chong Yidong <cyd@stupidchicken.com>
10793
10794 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
10795 if moving by a single line.
10796
107972008-09-02 Andreas Schwab <schwab@suse.de>
10798
10799 * xterm.c (x_delete_display): Fix merge error.
10800
10801 * fileio.c (Fexpand_file_name): Remove unused variables.
10802
108032008-09-02 Eli Zaretskii <eliz@gnu.org>
10804
10805 * fileio.c (Fexpand_file_name): Copy argument `name' into local
10806 storage on all platforms, not just on DOS_NT.
10807
108082008-09-02 Jason Rumney <jasonr@gnu.org>
10809
b8ff72fa
SM
10810 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
10811 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
10812
108132008-09-01 Chong Yidong <cyd@stupidchicken.com>
10814
10815 * xfaces.c (Finternal_set_alternative_font_family_alist)
10816 (Finternal_set_alternative_font_registry_alist): Properly copy
10817 entire alist structure.
10818
108192008-09-01 Kenichi Handa <handa@m17n.org>
10820
d66c0241 10821 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 10822 representative chars of the script is a vector.
d66c0241
JB
10823 (ftfont_list): Handle the case where the representative chars of
10824 the script is a vector.
aac0c6e3
MR
10825
10826 * character.c (syms_of_character): Docstring of
10827 script-representative-chars fixed.
10828
108292008-08-31 Eli Zaretskii <eliz@gnu.org>
10830
10831 * msdos.c (BUILD_CHAR_GLYPH): New macro.
10832 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
10833 the menu. Allocate larger buffer for `text', to account for
10834 possible ^C characters.
10835
108362008-08-31 Martin Rudalics <rudalics@gmx.at>
10837
10838 * xdisp.c (prepare_menu_bars): Don't call
10839 Vwindow_size_change_functions with arg Qt.
10840
108412008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
10842
10843 * font.h (font_range):
10844 * fileio.c (report_file_error):
46e722a9
SM
10845 * composite.c (composition_update_it): Yet another int/Lisp_Object
10846 mixup (YAILOM).
aac0c6e3
MR
10847
108482008-08-30 Glenn Morris <rgm@gnu.org>
10849
10850 * data.c (Fmake_variable_frame_local): Doc fix.
10851
10852 * frame.c (Fmodify_frame_parameters): Doc fix.
10853
108542008-08-30 Eli Zaretskii <eliz@gnu.org>
10855
10856 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
10857 needed by GetTokenInformation.
10858 (w32_system_process_attributes): Check return values of all system
10859 APIs.
10860
10861 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
10862 only when the state changes.
10863 (IT_update_begin, IT_update_end): Add termscript trace.
10864
10865 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
10866 clipboard is unavailable. Set dst to NULL if it doesn't point to
10867 malloc'ed data.
10868 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
10869 passing random values to xfree.
10870
10871 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 10872 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
10873
108742008-08-29 Jason Rumney <jasonr@gnu.org>
10875
10876 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
10877
108782008-08-29 Eli Zaretskii <eliz@gnu.org>
10879
10880 * composite.c (fill_gstring_body): Avoid compiler warnings.
10881
10882 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
10883 LGLYPH_SET_CODE to avoid compiler warnings.
10884
2ae37cf0 10885 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
10886
10887 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
10888
10889 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
10890 LGLYPH_SET_CODE.
10891
108922008-08-29 Kenichi Handa <handa@m17n.org>
10893
10894 * fileio.c (report_file_error): Don't downcase the first character
10895 of errstring if it is still unibyte.
10896
108972008-08-29 Kenichi Handa <handa@m17n.org>
10898
10899 These changes are to re-implement the automatic composition so
10900 that it doesn't use text properties.
10901
10902 * Makefile.in (ftfont.o): Depend on composite.h.
10903 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
10904
10905 * character.h (Vunicode_category_table): Extern it.
10906
10907 * character.c (Vunicode_category_table): New variable.
10908 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
10909
10910 * chartab.c (optimize_sub_char_table): Perform more greedy
10911 optimization.
10912
b8ff72fa
SM
10913 * composite.h (enum composition_method):
10914 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
10915 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
10916 (Vcomposition_function_table): Extern it.
10917 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
10918 (composition_gstring_put_cache, composition_gstring_from_id)
10919 (composition_gstring_p, composition_gstring_width)
10920 (composition_compute_stop_pos, composition_reseat_it)
10921 (composition_update_it, composition_adjust_point): Extern them.
10922 (Fcomposition_get_gstring): EXFUN it.
10923
d66c0241 10924 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
10925 (Vcomposition_function_table)
10926 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
10927 (gstring_hash_table, gstring_work, gstring_work_headers):
10928 New variables.
aac0c6e3
MR
10929 (gstring_lookup_cache, composition_gstring_put_cache)
10930 (composition_gstring_from_id, composition_gstring_p)
10931 (composition_gstring_width, fill_gstring_header)
10932 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
10933 (composition_reseat_it, composition_update_it)
b8ff72fa 10934 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
10935 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
10936 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 10937 Defsubr composition_get_gstring.
aac0c6e3
MR
10938
10939 * dispextern.h (struct glyph): New union u.cmp. Delete the member
10940 cmp_id.
10941 (struct glyph_string): Delete the member gidx. New members
10942 cmp_id, cmp_from, and cmp_to.
10943 (enum it_method): Delete GET_FROM_COMPOSITION.
10944 (struct composition_it): New struct.
10945 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
10946 Delete c, len, cmp_id, cmp_len in u.comp.
10947
10948 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 10949 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 10950 (enum lglyph_indices): Likewise.
b8ff72fa 10951 (font_range): Adjust extern.
aac0c6e3
MR
10952 (font_fill_lglyph_metrics): Extern it.
10953
10954 * font.c (QCf): New variable.
10955 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10956 (font_prepare_composition): Delete this function.
10957 (font_range): Type and arguments changed.
10958 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
10959 (font_fill_lglyph_metrics): New function.
b8ff72fa 10960 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 10961 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
10962 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
10963 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
10964
10965 * fontset.h (font_for_char): Extern it.
10966
10967 * fontset.c (font_for_char): New function.
10968
10969 * ftfont.c: Include composite.h.
10970 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 10971 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
10972
10973 * indent.c: Include composite.h and dispextern.h.
10974 (check_composition): Delete this function.
10975 (scan_for_column): Handle composition by
10976 composition_compute_stop_pos, composition_reseat_it, and
10977 composition_update_it.
10978 (compute_motion): Likewise.
10979 (Fvertical_motion): Fix checking of composition.
10980
10981 * keyboard.c (adjust_point_for_property): Check composition by
10982 composition_adjust_point.
10983
b8ff72fa 10984 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
10985 struct glyph_string.
10986
b8ff72fa
SM
10987 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
10988 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
10989 struct glyph.
10990 (produce_composite_glyph): Likewise.
10991
b8ff72fa
SM
10992 * w32term.c (x_draw_composite_glyph_string_foreground):
10993 Adjust for the change of struct glyph_string.
aac0c6e3
MR
10994 (x_draw_glyph_string): Likewise.
10995
10996 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
10997 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10998
10999 * xdisp.c: Include font.h.
11000 (it_props): Delete the entry for Qauto_composed.
11001 (init_iterator): Initialize it->cmp_it.id to -1.
11002 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 11003 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
11004 (handle_auto_composed_prop): Delete it.
11005 (handle_composition_prop): Handle only static composition.
11006 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
11007 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 11008 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
11009 (pop_it): Likewise.
11010 (get_next_element): Delete next_element_from_composition.
11011 (CHAR_COMPOSED_P): New macro.
11012 (get_next_display_element): For automatic composition, get a face
11013 from the font in the glyph-string.
11014 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 11015 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
11016 (next_element_from_string): Check if the character at the current
11017 position is composed by CHAR_COMPOSED_P.
11018 (next_element_from_buffer): Likewise.
d66c0241
JB
11019 (next_element_from_composition): Adjust for the change of struct it.
11020 Update it->cmp_it.
b8ff72fa
SM
11021 (dump_glyph): Adjust for the change of struct glyph.
11022 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
11023 it and struct glyph. Don't handle automatic composition here.
11024 (fill_gstring_glyph_string): New function.
11025 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 11026 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
11027 (BUILD_GSTRING_GLYPH_STRING): New macro.
11028 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
11029 automatic composition.
b8ff72fa 11030 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 11031 struct glyph.
b8ff72fa 11032 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 11033
b8ff72fa 11034 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
11035 the change of struct glyph_string.
11036 (x_draw_glyph_string): Likewise.
11037
110382008-08-29 Glenn Morris <rgm@gnu.org>
11039
11040 * buffer.c (word-wrap): Doc fix.
11041 * xdisp.c (truncate-partial-width-windows): Doc fix.
11042 Increase default to 50.
11043
110442008-08-29 Chong Yidong <cyd@stupidchicken.com>
11045
11046 * xdisp.c (update_tool_bar_unwind): New function.
11047 (update_tool_bar): Temporarily set selected frame before building
11048 tool-bar items.
11049
110502008-08-28 Michael Albinus <michael.albinus@gmx.de>
11051
11052 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
11053 snprintf, respectively.
11054 (xd_append_arg): Convert strings with Fstring_make_unibyte.
11055
110562008-08-28 Chong Yidong <cyd@stupidchicken.com>
11057
11058 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
11059 LDFLAGS to GNUstep CC invocation.
11060
110612008-08-27 Chong Yidong <cyd@stupidchicken.com>
11062
11063 * indent.c (Fvertical_motion): Revert last change. Handle the
11064 general case where we are moving forward, and PT spans multiple
11065 screen lines.
11066
11067 * eval.c (find_handler_clause): Temporarily increase
11068 max-lisp-eval-depth while printing the backtrace buffer, to
11069 guarantee that help-mode code can run.
11070
110712008-08-27 Eli Zaretskii <eliz@gnu.org>
11072
11073 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
11074 colors under -rv.
11075 (IT_set_frame_parameters): Don't swap foreground and background
11076 colors if `(reverse . t)' is present in the frame properties.
11077 (internal_terminal_init): Call init_frame_faces only for the
11078 initial frame.
11079
110802008-08-27 Andreas Schwab <schwab@suse.de>
11081
11082 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
11083
110842008-08-27 Andreas Schwab <schwab@suse.de>
11085
11086 * search.c (search_buffer): Set char_base to zero only at the end.
11087
110882008-08-27 Kenichi Handa <handa@m17n.org>
11089
b8ff72fa 11090 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
11091
110922008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
11093
11094 * xterm.c (x_term_init): Temporarily hide the partially
11095 initialized terminal while calling vendor-specific-keysyms.
11096
110972008-08-26 Eli Zaretskii <eliz@gnu.org>
11098
11099 * msdos.c (internal_terminal_init): Most initializations done only
11100 once, especially initial_screen_colors[] and termscript open.
11101
111022008-08-26 Chong Yidong <cyd@stupidchicken.com>
11103
11104 * eval.c (Fcondition_case): Doc fix.
11105
11106 * widgetprv.h (EmacsFramePart): Change font member to the new font
11107 struct.
11108
11109 * widget.c: Include character.h and font.h for XSETFONT.
11110 (setup_frame_gcs): Compute X font id from font struct, just once.
11111
111122008-08-26 Eli Zaretskii <eliz@gnu.org>
11113
11114 * term.c (get_named_tty): Fix last change.
11115
111162008-08-26 Chong Yidong <cyd@stupidchicken.com>
11117
11118 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 11119 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
11120
111212008-08-25 Eli Zaretskii <eliz@gnu.org>
11122
11123 * frame.c (do_switch_frame): Mark previously displayed frame as
11124 obscured for FRAME_MSDOS_P frames as well.
11125
111262008-08-24 Eli Zaretskii <eliz@gnu.org>
11127
11128 * frame.c (make_terminal_frame): Initialize f->terminal,
11129 f->terminal->reference_count, and scroll bars on MS-DOS as well.
11130 Set the top frame to newly created frame.
11131 (Fmake_terminal_frame): Reuse the_only_display_info.
11132
11133 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
11134 estimating available memory.
11135
b97439ce 111362008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
11137
11138 * nsterm.m (ns_draw_window_cursor): Don't call
11139 NSDisableScreenUpdates and NSEnableScreenUpdates on
11140 non-NS_IMPL_COCOA systems.
11141
111422008-08-23 Andreas Schwab <schwab@suse.de>
11143
11144 * process.c (procfs_system_process_attributes): Fix use of
11145 uninitialized variables.
11146
111472008-08-23 Eli Zaretskii <eliz@gnu.org>
11148
11149 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
11150
11151 * dispnew.c (init_display): Remove MS-DOS specific conditions for
11152 calling tty-set-up-initial-frame-faces.
11153
b8ff72fa
SM
11154 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
11155 Allow MSDOS frames along with X frames.
aac0c6e3
MR
11156
11157 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
11158 addition to output_termcap.
11159
11160 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
11161
11162 * termchar.h (FRAME_TTY): Support output_msdos_raw.
11163 (struct tty_display_info) [MSDOS]: Add fields related to mouse
11164 highlight.
11165
11166 * process.c [!subprocesses]: Define QCname.
11167 (syms_of_process): Intern and staticpro it.
11168
11169 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
11170 Adjust for changes in encoding/decoding routines.
11171 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
11172 encode_coding and decode_coding.
11173
b8ff72fa 11174 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
11175
11176 * dosfns.c: Include frame.h before termhooks.h.
11177 (dos_cleanup): Use CURTTY ()->termscript instead of a global
11178 variable termscript.
11179
11180 * s/msdos.h (USER_FULL_NAME): Define.
11181 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
11182
11183 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
11184 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
11185 pw->pw_gecos.
11186
11187 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
11188 SELECTED_FRAME as additional (1st) argument.
11189 (tty_read_avail_input): Handle output_msdos_raw in
11190 addition to output_termcap.
11191
11192 * msdos.c: Include frame.h before termhooks.h.
11193 (mouse_on, mouse_off, mouse_moveto, mouse_init)
11194 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
11195 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
11196 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
11197 (IT_set_terminal_modes, IT_reset_terminal_modes)
11198 (IT_set_frame_parameters): Use tty->termscript instead of a global
11199 variable termscript.
11200 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
11201 global variable terminal_coding. Don't refer to
11202 Vnonascii_translation_table.
11203 (internal_terminal_init): Set Vwindow_system in current_kboard.
11204 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
11205 Announce date and time of session start, if termscript is open.
11206 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
11207 term.c:init_tty). Open termscript only of not already open.
11208 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
11209 here instead of dos_ttraw. Don't initialize display if this is an
11210 initial tty. Don't set FRAME_FONT.
11211 (Vwindow_system_version): Bump to 23.
11212 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
11213 is available, set up mouse_position_hook.
11214 (dos_ttraw, IT_set_terminal_modes): If called with initial
11215 terminal, do nothing.
11216 (IT_set_frame_parameters): Handle the Qtty_type frame
11217 parameter by calling internal_terminal_init.
11218 (dos_set_window_size, show_mouse_face)
11219 (clear_mouse_face, IT_note_mode_line_highlight)
11220 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
11221 (dos_rawgetc): Use tty_display_info instead of x_display_info.
11222 (initialize_msdos_display): New function.
11223 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
11224 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
11225 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
11226 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 11227 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
11228 (request_sigio, unrequest_sigio): Don't define, now defined on
11229 sysdep.c.
11230 (IT_write_glyphs): Rewrite to use encode_terminal_code.
11231
11232 * term.c [MSDOS]: Include msdos.h.
11233 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
11234 conditional to DOS_NT. Allow only one call to this function in a
11235 session. Don't allocate a new struct tty_display_info; instead,
11236 reuse the_only_display_info. Call get_tty_size to get screen
11237 dimensions. Call init_baud_rate to set bad_rate.
11238 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
11239 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 11240 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
11241 (get_tty_terminal, get_named_tty, Ftty_type)
11242 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
11243 output_termcap.
b8ff72fa
SM
11244 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
11245 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 11246 only when subprocesses are supported.
aac0c6e3
MR
11247
11248 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
11249 f->output_data.x.
11250 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
11251 terminal devices.
11252
5582fbc7 11253 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
11254 x_output.
11255 (FRAME_FONT): Use output_data.tty.
11256 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
11257 (struct x_display_info): Rename from display_info. Update all users in
11258 msdos.c.
aac0c6e3 11259 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 11260 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
11261 (dos_ttraw): Update prototype.
11262
11263 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
11264 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
11265
112662008-08-23 Jason Rumney <jasonr@gnu.org>
11267
11268 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
11269 (fn_TIFFSetDirectory): New library function used.
11270 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
11271 (tiff_load): Use :index to select among multiple images. Set count
11272 property when multiple images exist.
11273 (gif_format): Use :index, not :image.
11274
112752008-08-23 Chong Yidong <cyd@stupidchicken.com>
11276
11277 * xdisp.c (try_scrolling): Check INT_MAX instead of
11278 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
11279 to obtain INT_MAX.
11280
112812008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
11282
11283 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
11284
112852008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
11286
11287 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
11288 GNUstep library location.
11289
112902008-08-21 Chong Yidong <cyd@stupidchicken.com>
11291
11292 * xfaces.c (x_update_menu_appearance): Check validity of menu font
11293 before using it.
11294
11295 * puresize.h (BASE_PURESIZE): Increase to 1250000.
11296
112972008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11298
11299 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
11300 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
11301 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
11302 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
11303 (EmacsApp-cursor_blink_handler): Remove declaration.
11304 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
11305 match 01 Feb 2008 changes in xterm.c.
11306 (ns_read_socket): Add cast to avoid warning.
11307 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
11308 GNUstep.
11309
113102008-08-20 Chong Yidong <cyd@stupidchicken.com>
11311
11312 * xselect.c (x_get_foreign_selection): Return nil if desired
11313 selection could not be obtained, instead of signalling an error.
11314
113152008-08-20 David Reitter <david.reitter@gmail.com>
11316
11317 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
11318 * nsterm.m: Remove ns-specific code for cursor blinking.
11319 (ns_draw_window_cursor): Clear cursor properly rather than
11320 redrawing the area. Respect width of bar cursors.
11321 These changes enable the use of generic blink-cursor-mode and
11322 generic cursor types in NS and support smooth cursor movements (do
11323 not blink off after command).
11324 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
11325 Nextstep, too.
11326
113272008-08-19 Kenichi Handa <handa@m17n.org>
11328
11329 * font.c (Vfont_log_deferred): New variable.
11330 (font_add_log): Check Vfont_log_deferred.
11331 (font_deferred_log): New function.
11332
11333 * font.h (font_deferred_log): Extern it.
11334
11335 * fontset.c (reorder_font_vector): Use encoding charset of fonts
11336 for sorting.
11337 (face_for_char): Use deferred log.
11338
113392008-08-18 Kenichi Handa <handa@m17n.org>
11340
11341 * fontset.c (face_for_char): Add font log.
11342
11343 * font.c (font_add_log): Add the font properties :script, :lang,
11344 and :otf in the log.
11345
113462008-08-17 Chong Yidong <cyd@stupidchicken.com>
11347
11348 * xdisp.c: Remove dead code.
11349 (handle_invisible_prop, next_overlay_string): Defer call to
11350 setup_for_ellipsis.
11351 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
11352
113532008-08-15 Chong Yidong <cyd@stupidchicken.com>
11354
11355 * xfaces.c (lookup_derived_face): Properly handle possible zero
11356 return value of get_lface_attributes.
11357 (merge_faces): Don't tell lookup_derived_face to signal an error
11358 if face is not found.
11359
11360 * dired.c (Fdirectory_files): Doc fix.
11361
11362 * process.c (make_process): Initialize kill_without_query struct
11363 member.
11364
113652008-08-15 Eli Zaretskii <eliz@gnu.org>
11366
11367 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
11368 Alternative calculation of totphys for Visual Studio 6.
11369
11370 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
11371
11372 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
11373 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
11374 All users changed.
11375 (stat): Only root directory passed to GetDriveType. Allow RAM
11376 disk as well as local fixed disk when w32-get-true-file-attributes
11377 is set to `local'.
11378 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
11379 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
11380 (w32_cached_id, w32_add_to_cache): New functions.
11381 (get_name_and_id): Look account names in the cache before calling
11382 lookup_account_sid.
11383 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
11384 New initialization flags.
11385 (globals_of_w32): Initialize them to zero.
11386 (w32_system_process_attributes): Use w32_cached_id and
11387 w32_add_to_cache.
11388
113892008-08-14 Lawrence Mitchell <wence@gmx.li>
11390
11391 * lread.c (Fread_char, Fread_char_exclusive): If no character
11392 event is read before timeout is reached, return nil, rather than
11393 converting to a number.
11394
113952008-08-14 Chong Yidong <cyd@stupidchicken.com>
11396
11397 * fns.c (use_dialog_box): Doc fix.
11398
11399 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
11400 on OS X.
11401
114022008-08-13 Chong Yidong <cyd@stupidchicken.com>
11403
11404 * frame.c (Qns_parse_geometry): New var.
11405 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
11406
114072008-08-11 Chong Yidong <cyd@stupidchicken.com>
11408
11409 * xdisp.c (x_produce_glyphs): Handle the case when font has no
11410 space character in calculating tabs.
11411
114122008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
11413
11414 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
11415
114162008-08-10 Glenn Morris <rgm@gnu.org>
11417
11418 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
11419 silence gcc "limited range of data type" warnings in some
11420 make_fixnum_or_float calls.
11421
114222008-08-09 Eli Zaretskii <eliz@gnu.org>
11423
11424 * w32.c (w32_system_process_attributes): If the process does not
11425 exist, return nil.
11426
11427 * w32.c: Include thelp32.h, psapi.h and coding.h.
11428 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
11429 declarations.
11430 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
11431 (Process32Next_Proc): New typedefs.
11432 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
11433 (g_b_init_process32_next, g_b_init_open_thread_token)
11434 (g_b_init_impersonate_self, g_b_init_revert_to_self)
11435 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
11436 (g_b_init_get_process_working_set_size)
11437 (g_b_init_global_memory_status_ex): New static variables.
11438 (globals_of_w32): Initialize them.
11439 (create_toolhelp32_snapshot, process32_first, process32_next)
11440 (open_thread_token, impersonate_self, revert_to_self)
11441 (get_process_memory_info, get_process_working_set_size)
11442 (global_memory_status, global_memory_status_ex): New wrapper
11443 functions.
11444 (w32_list_system_processes, w32_system_process_attributes)
11445 (enable_privilege, restore_privilege, ltime, process_times):
11446 New functions.
11447 (convert_time_raw): New function.
11448 (convert_time): Remove conversion of FILETIME into time in 100
11449 nsec units, call convert_time_raw instead.
11450
11451 * process.h (w32_list_system_processes, w32_system_process_attributes):
11452 Add prototypes.
11453 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
11454 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
11455 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
11456 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
11457
11458 * process.c (Fsystem_process_attributes): Doc fix.
11459
114602008-08-08 Chong Yidong <cyd@stupidchicken.com>
11461
11462 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
11463 a continued multi-char glyph; if so, advance to the actual glyph.
11464
114652008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11466
11467 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
11468
11469 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
11470 (.m.o): Use it.
11471 * config.in: Regenerate.
11472
114732008-08-07 Chong Yidong <cyd@stupidchicken.com>
11474
11475 * xdisp.c (redisplay_window): Revert last change.
11476 (try_window): Check bottom scroll margin too.
11477
114782008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11479
11480 * config.in: Regenerate.
11481
11482 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
11483 -list-load-path-shadows'.
11484 (nsgui.h): Reduce number of things depending on it.
11485
114862008-08-06 Chong Yidong <cyd@stupidchicken.com>
11487
11488 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
11489 instead of window-end which does the wrong thing at eob.
11490 (try_cursor_movement): Minor optimization.
11491 (redisplay_window): If scroll margin is defined, don't assume
11492 window doesn't need scrolling.
11493
114942008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11495
11496 * config.in: Regenerate.
11497
11498 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
11499 (mostlyclean): Don't delete *.d under NS.
11500
11501 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
11502
115032008-08-06 Kenichi Handa <handa@m17n.org>
11504
11505 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
11506
115072008-08-06 Andreas Schwab <schwab@suse.de>
11508
11509 * config.in: Regenerate.
11510
115112008-08-05 Chong Yidong <cyd@stupidchicken.com>
11512
11513 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
11514 forcing a window start.
11515
11516 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
11517 (auto_save_1): Update modtime when auto-save-list-file-name is on.
11518
115192008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11520
11521 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
11522 argument.
11523
115242008-08-05 Juanma Barranquero <lekktu@gmail.com>
11525
11526 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
11527 <scroll-down-aggressively, before-change-functions>:
11528 <after-change-functions>: Reflow docstrings.
11529
115302008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 11531 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
11532
11533 Dock menu customization, based on a patch by Ken Raeburn, plus some
11534 other fixes.
11535 * nsmenu.m (dockMenu): New variable.
11536 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
11537
11538 * nsterm.h (dockMenu): Declare.
11539
11540 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
11541 (ns_term_init): Initialize dockMenu.
11542 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
11543 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
11544 left.
11545
11546 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
11547
115482008-08-04 Chong Yidong <cyd@stupidchicken.com>
11549
11550 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
11551
11552 * config.in: Regenerate.
11553
115542008-08-04 Seiji Zenitani <zenitani@mac.com>
11555
11556 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
11557
115582008-08-04 Chong Yidong <cyd@stupidchicken.com>
11559
11560 * nsterm.h (find_and_call_menu_selection): Fix prototype.
11561
115622008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11563
11564 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
11565
11566 * keyboard.h: Comment an #endif.
11567
11568 * lisp.h (have_menus_p): Adjust comment.
11569
11570 * menu.c (find_and_return_menu_selection): Fix comparison with
11571 client_data.
11572
11573 * nsmenu.m (popup_activated_flag): New variable.
11574 (popup_activated): New function.
11575 (menu-or-popup-active-p): New exported lisp definition.
11576 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
11577 when popup done.
11578 (ns_popup_dialog): Set popup_activated_flag.
11579
11580 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
11581 version for GNUstep (handled by conditional typedef in nsterm.m).
11582 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
11583 in rgb.txt).
11584
11585 * process.c (init_process): Use DARWIN_OS, not DARWIN.
11586
11587 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
11588
11589 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
11590
11591 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
11592 shortcircuit if popup_activated like GTK and X toolkit.
11593
11594 * m/inter386.h: Change DARWIN to DARWIN_OS.
11595
11596 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
11597 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
11598 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
11599 comment on NO_SOCK_SIGIO.
11600
116012008-08-03 Chong Yidong <cyd@stupidchicken.com>
11602
11603 * nsterm.m (windowDidResize): Remove stopModal call.
11604
116052008-08-03 Andreas Schwab <schwab@suse.de>
11606
11607 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
11608 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
11609
116102008-08-02 Chong Yidong <cyd@stupidchicken.com>
11611
11612 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
11613 Don't use uninitialized pointer variable when using getrlimit.
11614
116152008-08-02 Jason Rumney <jasonr@gnu.org>
11616
11617 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
11618
116192008-08-02 Eli Zaretskii <eliz@gnu.org>
11620
11621 * alloc.c (NSTATICS): Bump to 0x640.
11622
11623 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
11624
11625 * lisp.h: Add prototype for directory_files_internal.
11626
11627 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
11628 New functions.
11629 (syms_of_process): Defsubr them. Add initializations for various
11630 Q* symbols used in procfs_system_process_attributes.
11631 (procfs_list_system_processes, procfs_system_process_attributes)
11632 [HAVE_PROCFS]: New functions.
11633 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
11634 (procfs_get_total_memory): New functions.
11635
116362008-08-01 Juanma Barranquero <lekktu@gmail.com>
11637
11638 * xfaces.c (Fx_load_color_file): Fix previous change;
11639 it is #ifdef WINDOWSNT, not WINDOWS_NT.
11640
116412008-08-01 Michael Albinus <michael.albinus@gmx.de>
11642
11643 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
11644
116452008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11646
11647 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
11648
116492008-08-01 Chong Yidong <cyd@stupidchicken.com>
11650
11651 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
11652
11653 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
11654 define NSApplicationDelegateReplySuccess.
11655 (EmacsView -converstationIdentifier): Use long instead of
11656 NSInteger for GNUstep, since it doesn't have NSInteger.
11657
11658 * xmenu.c: Revert last change.
11659
11660 * keyboard.h: Fix last change.
11661
116622008-08-01 Juanma Barranquero <lekktu@gmail.com>
11663
11664 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
11665 on Windows.
11666
116672008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11668
11669 Warning clearing and clean-up in NS port.
11670 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
11671 Add prototypes.
11672 * nsgui.h (FACE_DEFAULT): Remove, unused.
11673 (XGCValues): Change colors to unsigned long.
11674 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
11675 nsterm.m.
11676 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
11677 (ns_list_fonts): Remove, unused.
11678 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
11679 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
11680 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
11681 (nsfont_draw): Compare face colors to 0, not nil.
11682 * nsmenu.m (struct widget_value): Drop unneeded declaration.
11683 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
11684 (-addSubmenuWithTitle:): Use NSMenuItem class.
11685 (ns_popup_menu): Use NO, not NULL, for enabled setting.
11686 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
11687 (ns_clip_to_row): Make gc arg a BOOL.
11688 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
11689 ns_clip_to_row() call.
11690 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
11691 used). Cast FRAME_FONT assignments.
11692 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
11693 (ns_string_to_lispmod): Change arg to const char.
11694 (ns_term_init): Use NSMenuItem class.
11695 (EmacsApp -openFile:): Move to different section of file.
11696 (EmacsApp -application:openFiles:): Don't return a value, call
11697 -replyToOpenOrPrint:.
11698 (EmacsView -keyDown:): Fix up cast.
11699 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
11700 (EmacsView -menuDown:): Cast tag in call to
11701 find_and_call_menu_selection().
11702 (ns_list_fonts): Remove, unused.
11703 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
11704 (ns_fontname_to_xlfd): Make static.
11705 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
11706 Remove prototypes (now in keyboard.h).
11707 (next_menubar_widget_id): Remove, unused.
11708 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
11709 Remove prototypes (now in keyboard.h).
11710 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
11711
117122008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
11713
11714 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
11715 (floatfns.o): Depend on syssignal.h.
11716 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
11717
11718 * systty.h: Fix previous change that removed BSD_TERMIOS.
11719 Add comments to #ifdefs.
11720
117212008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11722
11723 * w32fns.c (w32-load-color-file): Remove.
11724 (x-open-connection): Use renamed Fx_load_color_file.
11725 * xfaces.c (x-load-color-file): Add.
11726 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
11727 Emacs.clr.
11728 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
11729
117302008-07-31 Michael Albinus <michael.albinus@gmx.de>
11731
11732 * dbusbind.c (Fdbus_call_method_asynchronously)
11733 (Fdbus_method_error_internal): New defuns.
11734 (xd_read_message): Handle also reply messages.
11735 (Vdbus_registered_functions_table): Extend docstring.
11736
117372008-07-31 Juanma Barranquero <lekktu@gmail.com>
11738
11739 * keyboard.c (gobble_input): Fix previous change.
11740
117412008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11742
11743 * bitmaps/README:
11744 * xfns.c:
11745 * termcap.c:
11746 * term.c:
11747 * syswait.h:
11748 * systty.h:
11749 * systime.h:
11750 * syssignal.h:
11751 * sysdep.c:
11752 * process.h:
11753 * process.c:
11754 * print.c:
11755 * ndir.h:
11756 * lread.c:
11757 * keyboard.c:
11758 * getpagesize.h:
11759 * floatfns.c:
11760 * fileio.c:
11761 * emacs.c:
11762 * doc.c:
11763 * dispnew.c:
11764 * dired.c:
11765 * data.c:
11766 * callproc.c:
11767 * buffer.c:
11768 * README:
11769 * Makefile.in:
11770 * s/template.h:
11771 * s/msdos.h:
11772 * m/vax.h: Remove VMS support.
11773 * s/vms.h:
11774 * vlimit.h:
11775 * uaf.h:
11776 * temacs.opt:
11777 * param.h:
11778 * ioctl.h: Remove file.
11779
117802008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11781
11782 * s/ms-w32.h (MULTI_KBOARD): Remove.
11783 * xterm.c:
11784 * xselect.c:
11785 * xfns.c:
11786 * window.c:
11787 * w32term.c:
11788 * w32fns.c:
11789 * terminal.c:
11790 * termhooks.h:
11791 * term.c:
11792 * sysdep.c:
11793 * keyboard.h:
11794 * keyboard.c:
11795 * frame.h:
11796 * frame.c:
11797 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
11798 * config.in: Regenerate.
11799
118002008-07-30 Jason Rumney <jasonr@gnu.org>
11801
11802 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
11803
11804 * w32font.c (w32font_encode_char): Leave as unicode if in range.
11805 (w32font_open_internal): Get unicode version of textmetrics.
11806 Don't enable or disable glyph indices here.
11807 (w32font_open): Disable use of glyph indices.
11808
11809 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
11810
118112008-07-30 Chong Yidong <cyd@stupidchicken.com>
11812
11813 * minibuf.c (Vread_buffer_function): Doc fix.
11814
118152008-07-30 John Paul Wallington <jpw@pobox.com>
11816
11817 * minibuf.c (read_buffer_completion_ignore_case): New var.
11818 (Fread_buffer): Use it.
11819
118202008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
11821
11822 * systty.h (sensemode): Remove empty #if. Remove reference to
11823 BSD_TERMIOS, unused.
11824
11825 * sysdep.c: Remove reference to DGUX.
11826 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
11827
11828 * config.in: Regenerate.
11829
118302008-07-30 Jason Rumney <jasonr@gnu.org>
11831
11832 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
11833
118342008-07-29 Jason Rumney <jasonr@gnu.org>
11835
11836 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
11837 is populated.
11838 (uniscribe_encode_char): Always use uniscribe.
11839 Avoid using context if cache is populated.
11840
118412008-07-29 Jan Djärv <jan.h.d@swipnet.se>
11842
11843 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
11844 open menu.
11845
11846 * gtkutil.c (menu_nav_ended): Remove.
11847 (create_menus): Remove signal connect for menu_nav_ended.
11848
118492008-07-28 Chong Yidong <cyd@stupidchicken.com>
11850
11851 * xdisp.c (redisplay_window): Check return value of
11852 compute_window_start_on_continuation_line before forcing a window
11853 start.
11854
118552008-07-28 Jason Rumney <jasonr@gnu.org>
11856
11857 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
11858
11859 * w32term.c (w32_enable_unicode_output, cleartype_active):
11860 Remove obsolete display options.
11861 (x_draw_glyph_string_background): Don't use old cleartype_active
11862 workaround.
11863 (w32_initialize): Remove cleartype_active initialization.
11864 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
11865
118662008-07-28 Andreas Schwab <schwab@suse.de>
11867
11868 * lisp.h (init_weak_hash_tables, syms_of_font)
11869 (xd_read_queued_messages, syms_of_dbusbind): Declare.
11870 (remove_hash_entry): Don't declare.
11871 * eval.c (maybe_call_debugger): Make static and move before use.
11872 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
11873 * xdisp.c: Include "gtkutil.h" if USE_GTK.
11874 * xterm.h (x_set_frame_alpha): Declare.
11875
118762008-07-28 Jan Djärv <jan.h.d@swipnet.se>
11877
11878 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
11879 (create_menus): Connect selection-done to menu_nav_ended.
11880
118812008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11882
11883 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
11884 Set Vx_resource_name to a fallback. Replace read of 'buffered'
11885 parameter with read of 'alpha' one.
11886 (Qns_frame_parameter): Remove.
5582fbc7 11887 * nsselect.m (selection-coding-system)
aac0c6e3
MR
11888 (next-selection-coding-system, Vselection_coding_system)
11889 (Vnext_selection_coding_system): Drop.
11890
118912008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11892
11893 * nsfns.m (do-applescript, do_applescript): Rename to
11894 ns-do-applescript, ns_do_applescript, and move within file.
11895
118962008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11897
11898 Remove support for Mac Carbon.
11899 * mactoolbox.c:
11900 * macterm.h:
11901 * macterm.c:
11902 * macselect.c:
11903 * macmenu.c:
11904 * macgui.h:
11905 * macfns.c:
11906 * mac.c: Remove file.
11907 * s/darwin.h:
11908 * m/intel386.h:
11909 * xfaces.c:
11910 * xdisp.c:
11911 * window.c:
11912 * tparam.c:
11913 * termhooks.h:
11914 * termcap.c:
11915 * term.c:
11916 * syssignal.h:
11917 * sysselect.h:
11918 * sysdep.c:
11919 * process.c:
11920 * lread.c:
11921 * lisp.h:
11922 * keyboard.c:
11923 * image.c:
11924 * fringe.c:
11925 * frame.h:
11926 * frame.c:
11927 * fontset.c:
11928 * font.h:
11929 * font.c:
11930 * fns.c:
11931 * fileio.c:
11932 * emacs.c:
11933 * dispnew.c:
11934 * dispextern.h:
11935 * config.in:
11936 * atimer.c:
2ae37cf0 11937 * Makefile.in: Remove code for Carbon.
aac0c6e3 11938
f0131492 119392008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11940
11941 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
11942
119432008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11944
11945 * macterm.h (kCGBitmapByteOrder32Host): New define for
11946 non-universal SDKs.
11947
11948 * image.c (mac_create_cg_image_from_image, image_load_image_io)
11949 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11950
11951 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
11952 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11953
119542008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
11955
11956 * w32inevt.c: Include dispextern.h.
11957
119582008-07-26 Andreas Schwab <schwab@suse.de>
11959
11960 * print.c (print_object): Fix off-by-one in last change.
11961
119622008-07-25 Juanma Barranquero <lekktu@gmail.com>
11963
11964 * term.c (syms_of_term): Don't initialize default_orig_pair,
11965 default_set_foreground and default_set_background on Windows.
11966
119672008-07-25 Jason Rumney <jasonr@gnu.org>
11968
11969 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
11970 ScriptItemize. Clean up return value checking. Remove unused
11971 variables.
11972 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
11973 shaping engine.
11974
11975 * w32font.c (w32font_has_char): Handle the case where we can't
11976 determine the script for a character.
11977
119782008-07-25 Chong Yidong <cyd@stupidchicken.com>
11979
11980 * term.c (syms_of_term): Initialize default_orig_pair,
11981 default_set_foreground, and default_set_background.
11982
11983 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11984 clash (bug#86).
11985 (getloadavg): Callers changed.
11986
11987 * image.c (svg_load_image): Fix last change.
11988 (svg_load_image): Use rsvg_handle_get_dimensions to check that
11989 image size is valid. Use g_object_unref instead of deprecated
11990 rsvg_handle_free to free rsvg handle.
11991 (x_from_xcolors): Don't initialize pixmap (silence compiler).
11992
119932008-07-25 Jason Rumney <jasonr@gnu.org>
11994
11995 * w32font.c (w32font_encode_char): Encode characters outside BMP as
11996 surrogates before looking up glyph index.
11997 (w32font_text_extents): Encode as surrogates if falling back to
11998 functions that need UTF-16 wide chars.
11999
12000 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
12001 BMP as surrogates before looking up glyph index.
12002
120032008-07-25 Chong Yidong <cyd@stupidchicken.com>
12004
12005 * image.c (svg_load_image): Check for failure in return value of
12006 rsvg_handle_get_pixbuf. Free rsvg handle when done.
12007
120082008-07-25 Jason Rumney <jasonr@gnu.org>
12009
12010 * w32font.c (Fx_select_font): Reverse sense of second arg.
12011
120122008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
12013
12014 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
12015 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
12016
12017 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
12018 (PURESIZE): Use it.
12019
120202008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
12021
12022 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
12023 * m/alpha.h (TEXT_END):
12024 * m/ibmrs6000.h (TEXT_END):
12025 * m/macppc.h (TEXT_END):
12026 * s/darwin.h (TEXT_END):
12027 * s/msdos.h (TEXT_END): Remove, unused.
12028 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
12029 * s/cygwin.h: Remove comment.
12030
12031 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
12032 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
12033 * m/intel386.h (DOT_GLOBAL_START):
12034 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
12035 (USG): Remove, file not used on USG platforms.
12036
12037 * Makefile.in (HAVE_X11): Remove empty #else.
12038
120392008-07-24 Andreas Schwab <schwab@suse.de>
12040
12041 * fileio.c (Finsert_file_contents): Properly adjust undo list
12042 after format conversion.
12043
120442008-07-24 Jan Djärv <jan.h.d@swipnet.se>
12045
12046 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
12047 (menu_nav_ended): Remove.
12048 (create_menus): Remove signal connect for menu_nav_ended.
12049 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
12050 create_menus.
12051 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
12052
120532008-07-23 Jason Rumney <jasonr@gnu.org>
12054
12055 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
12056 with opened font.
12057 (w32font_open): Set font type to gdi.
12058
12059 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
12060
120612008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
12062
12063 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
12064 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
12065 defines it.
12066 * unexec.c (ADDR_CORRECT): Define unconditionally.
12067
12068 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
12069
12070 * unexec.c: Remove code depending on !COFF and USG, the file is
12071 not used for such systems.
12072
12073 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
12074 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
12075 (LD_SWITCH_SYSTEM_1): Remove, update users.
12076
12077 * s/darwin.h (DATA_END):
12078 * m/intel386.h (DATA_END):
12079 * m/ibmrs6000.h (DATA_END):
12080 * m/alpha.h (DATA_END): Remove, unused.
12081
12082 * config.in: Regenerate.
12083 * s/ms-w32.h (subprocesses): Define unconditionally.
12084 * s/template.h (subprocesses): Update comment.
12085 * s/vms.h (subprocesses):
12086 * s/usg5-4.h (subprocesses):
12087 * s/hpux10-20.h (subprocesses):
12088 * s/gnu-linux.h (subprocesses):
12089 * s/cygwin.h (subprocesses):
12090 * s/bsd-common.h (subprocesses):
12091 * s/aix4-2.h (subprocesses):
12092 * s/darwin.h (subprocesses): Do not define, defined by default now.
12093
12094 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
12095 Remove all references.
12096 (temacs): Add GNUstep specific ld flags.
12097
12098 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
12099 similarly to what X does.
12100
121012008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12102
12103 * nsfns.m (x-list-fonts): Remove.
12104 (syms_of_nsfns): Drop the x-list-fonts declaration.
12105 * nsterm.m: Get rid of remaining "//" comments.
12106
121072008-07-22 Chong Yidong <cyd@stupidchicken.com>
12108
12109 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
12110
12111 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
12112 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
12113 (Fns_own_selection_internal, Fx_disown_selection_internal)
12114 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
12115
12116 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
12117 ... */' style of docstrings. Doc fixes.
12118
121192008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12120
12121 * terminfo.c (UP, BC, PC): Undo previous change.
12122
12123 * nsfns.m: Rename ns prefixed functions/variables to the
12124 corresponding x versions. Update references.
12125
121262008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
12127
12128 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
12129
121302008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12131
12132 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
12133 Remove forwarding functions.
12134 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
12135 non-static.
12136 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
12137 non-static.
12138 (ns_frame_parm_handlers): Use the new names.
12139 (syms_of_nsfns): Move to the end of file.
12140
12141 * nsterm.m (syms_of_nsterm): Move to the end of file.
12142
12143 * dispnew.c (init_display): Remove code for X10.
12144
121452008-07-22 Jason Rumney <jasonr@gnu.org>
12146
12147 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
12148 bare drive.
12149
121502008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12151
12152 * nsterm.m (syms_of_nsterm): Remove debugging println.
12153
121542008-07-22 David Reitter <david.reitter@gmail.com>
12155
12156 * nsfns.m (do_applescript, F_do_applescript): NS version of the
12157 Carbon implementation of the same functionality: execute arbitrary
12158 AppleScript code.
12159
121602008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12161
12162 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
12163 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
12164 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12165 (Fx_display_mm_height, Fx_display_mm_width)
12166 (Fx_display_backing_store, Fx_display_visual_class)
12167 (Fx_display_save_under, Fx_open_connection)
12168 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
12169 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
12170 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12171 (Fx_display_pixel_width, Fx_display_pixel_height)
12172 (Fx_display_usable_bounds, Fx_display_planes)
12173 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
12174 ... */' style of docstrings.
12175
121762008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
12177
12178 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
12179 on this platform.
12180 (mips):
12181 * m/iris4d.h (mips): Do not define.
12182 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
12183
12184 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
12185
12186 * image.c:
12187 * nsfns.m:
12188 * nsselect.m:
12189 * nsterm.h:
12190 * nsterm.m: Rename ns prefixed functions/variables to the
12191 corresponding x versions. Update references.
12192
12193 * m/ibms390x.h (NO_REMAP): Do not undefine.
12194
12195 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
12196
121972008-07-21 Chong Yidong <cyd@stupidchicken.com>
12198
12199 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
12200 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
12201 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
12202 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
12203 (Fns_display_mm_height, Fns_display_mm_width)
12204 (Fns_display_backing_store, Fns_display_visual_class)
12205 (Fns_display_save_under, Fns_open_connection)
12206 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
12207 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
12208 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12209 (Fns_display_pixel_width, Fns_display_pixel_height)
12210 (Fns_display_usable_bounds, Fx_display_planes)
12211 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
12212
122132008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
12214
12215 * print.c (print_object): Check print_depth before searching for
12216 circularities.
12217
122182008-07-21 Michael Albinus <michael.albinus@gmx.de>
12219
12220 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
12221 only sprintf.
12222
122232008-07-21 Kenichi Handa <handa@m17n.org>
12224
12225 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
12226
122272008-07-20 Andreas Schwab <schwab@suse.de>
12228
12229 * syntax.c (find_start_pos, find_start_value)
12230 (find_start_value_byte, find_start_begv, find_defun_start)
12231 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
12232
122332008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12234
12235 * s/sol2-3.h: Insert contents of s/sol2.h.
12236 (LD_SWITCH_SYSTEM): Remove redundant definition.
12237 * s/sol2.h: Remove, unused.
12238
122392008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12240
12241 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
12242
122432008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12244
12245 * Makefile.in (ns_appdir): Fix typo in find command.
12246
122472008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12248
12249 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
12250
12251 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
12252 added not supported anymore.
12253
12254 * s/usg5-4-2.h (LIBS_SYSTEM):
12255 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
12256
12257 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12258 * s/lynxos.h (GETPGRP_NO_ARG):
12259 * s/hpux10-20.h (NO_SIOCTL_H):
12260 * s/gnu.h (GETPGRP_NO_ARG):
12261 * s/gnu-linux.h (NO_SIOCTL_H):
12262 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12263 * s/cygwin.h (GETPGRP_NO_ARG):
12264 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
12265 (C_DEBUG_SWITCH): Remove duplicate definition.
12266
12267 * m/ibms390.h: Remove boilerplate comments.
12268
12269 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
12270
12271 * process.c (HAVE_SERIAL): Consolidate ifdefs.
12272 (wait_reading_process_output): Remove code for SunOS, platform not
12273 supported anymore. Use SOLARIS2 instead of sun.
12274
122752008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12276
12277 * font.c (font_open_by_name): Under NS, default lface height to zero.
12278 (font_open_for_lface): Under NS, set size based on frame fontsize.
12279 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
12280 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
12281
122822008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12283
12284 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
12285 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
12286 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
12287 YES/NO.
12288 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
12289 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
12290 * Makefile.in (clean): Clear out build destination dir.
12291
122922008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12293
12294 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
12295 xterm, xselect.
12296 * lisp.h: Remove declaration of hash_remove.
12297 * nsgui.h: Remove redefinitions of hash_remove.
12298 * fns.c (hash_remove): Rename to hash_remove_from_table.
12299
123002008-07-19 Seiji Zenitani <zenitani@mac.com>
12301
12302 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
12303 strdup() the family UTF8String before modifying it.
12304
123052008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12306
12307 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
12308 NS_FACE_BACKGROUND with 0 instead of nil.
12309 * nsfont.m (nsfont_draw): Same.
12310
123112008-07-19 Chong Yidong <cyd@stupidchicken.com>
12312
12313 * nsfns.m (ns_set_background_color): Fix crash.
12314
123152008-07-18 Chong Yidong <cyd@stupidchicken.com>
12316
12317 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
12318
123192008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
12320
12321 * puresize.h (BASE_PURESIZE): Increase to 1240000.
12322
123232008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12324
12325 * gtkutil.c: Include <config.h> instead of "config.h".
12326
12327 * lisp.h (Foverlay_buffer): Add EXFUN.
12328
12329 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
12330 child process to complete child_setup. Undo 2005-09-21 change.
12331
12332 * s/darwin.h: Mention setsid after vfork.
12333
123342008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12335
12336 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
12337 Depend on macgui.h.
12338
12339 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
12340 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
12341
12342 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
12343 and f19.
12344 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
12345
12346 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
12347 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
12348 Remove enumerators.
12349
12350 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
12351 Check if FACE_FROM_ID returns NULL.
12352
123532008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
12354
12355 * w32inevt.c (change_frame_size): Remove extern declaration.
12356 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
12357 change_frame_size.
12358
123592008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12360
12361 * getloadavg.c: Revert last change (2008-07-15).
12362
123632008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12364
12365 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 12366 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
12367 from configure.
12368
123692008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
12370
12371 * s/sol2.h:
12372 * s/sol2-4.h: Reorganize conditionals.
12373
12374 * ecrt0.c: Remove code depending on m68000, not used anymore.
12375
12376 * fns.c (hash_remove): Make static.
12377 * lisp.h (hash_remove): Don't prototype.
12378
12379 * m/ibmrs6000.h:
12380 * m/ibms390x.h:
12381 * m/macppc.h: Remove boilerplate comments.
12382
12383 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
12384 Solaris, which does not need them.
12385
12386 * m/vax.h: Remove comments about unsupported systems.
12387
12388 * s/darwin.h: Reorganize ifdefs.
12389
123902008-07-17 Andreas Schwab <schwab@suse.de>
12391
12392 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
12393
123942008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
12395
12396 Use SDATA. Follow coding convention of placing operators at
12397 beginning of next line rather than end of previous line, and placing
12398 spaces around infix operators.
12399
12400 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
12401 in case it was defined already.
12402 USE @GNUSTEP_MAKEFILES@ rather than envvars.
12403 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
12404 ns_default.
12405 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
12406 Lisp_Objects.
12407 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
12408 (ns_defined_color, ns_color_to_lisp): Declare.
12409 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
12410 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
12411 it's accepted even with USE_LISP_UNION_TYPE.
12412 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
12413 (update_frame_tool_bar): Remove apparently obsolete tests for
12414 non-integerness of f->tool_bar_lines.
12415 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
12416 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
12417 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
12418 (nsfont_open): Don't confuse NULL for Qnil.
12419 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
12420 * menu.h (find_and_call_menu_selection):
12421 * menu.c (find_and_call_menu_selection): Use just int for vector size.
12422 (find_and_return_menu_selection): Always return something.
12423 * frame.h: Include dispextern.h for Display_Info.
12424 (display_x_get_resource): Declare.
12425
124262008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
12427
12428 * syntax.c: Remove stdio.h include accidentally introduced in
12429 Emacs.app commit.
12430 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
12431 NS_IMPL_COCOA.
12432 * keyboard.c (handle_async_input, input_available_signal): Remove
12433 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
12434
124352008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12436
12437 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
12438 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
12439 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
12440 Use SDATA.
12441
12442 * keymap.c: Remove all NS-specific code.
12443 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
12444 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
12445 where_is_preferred_modifier, return a different value depending on how
12446 preferred is the binding.
12447 (where_is_internal): Adjust accordingly.
12448 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
12449 Adjust to new preferred_sequence_p.
12450 (syms_of_keymap): Declare `where-is-preferred-modifier'.
12451 * keyboard.c (parse_solitary_modifier): Not static any more.
12452 * keyboard.h (parse_solitary_modifier): Declare.
12453
124542008-07-16 Andreas Schwab <schwab@suse.de>
12455
12456 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
12457 of easymenu.
12458
124592008-07-16 Chong Yidong <cyd@stupidchicken.com>
12460
12461 * xdisp.c (move_it_in_display_line): Account for word wrap, so
12462 that we don't move off the line.
12463
124642008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12465
12466 * keyboard.c (Qsuper): Remove.
12467 (parse_menu_item): Don't call where_is_internal specially for NS.
12468
124692008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12470
12471 * s/gnu-linux.h: Remove boilerplate comments.
12472
12473 * m/alpha.h (__ELF__): Consolidate conditions.
12474
12475 * m/m68k.h (linux): Use GNU_LINUX instead.
12476 Remove boilerplate comments.
12477
12478 * m/intel386.h: Undo refactoring from previous change.
12479 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
12480 too, remove dead code.
12481 (linux): Use GNU_LINUX instead.
12482
124832008-07-16 Jason Rumney <jasonr@gnu.org>
12484
12485 * w32gui.h: Repeat 26 June changes lost by last change.
12486
124872008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12488
12489 * systty.h: Remove code for Aix on 386, unsupported platform.
12490
12491 * s/ms-w32.h: Remove boilerplate comments.
12492 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
12493
12494 * s/gnu-linux.h (TERM): Remove support.
12495 (HAVE_SYSVIPC): Remove, unused.
12496 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
12497 for this system.
12498
12499 * process.c: Remove support for IRIS, unused.
12500 Remove support for TERM, not relevant anymore.
12501
12502 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
12503 used with the definition.
12504
12505 * s/aix4-2.h (static): Do not undef.
12506
12507 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
12508 only used on Aix.
12509 (HAVE_SYSVIPC): Remove, unused.
12510
12511 * m/hp800.h (CANNOT_DUMP): Do not undef.
12512
12513 * m/alpha.h: Fix comment.
12514
12515 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
12516 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
12517 used by this configuration.
12518 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
12519 * unexec.c: Remove code depending on HPUX and
12520 USG_SHARED_LIBRARIES, not used with this file. Remove code
12521 depending on IRIS, unused. Remove if 0-ed code.
12522
12523 * s/template.h: Remove comments about static.
12524
12525 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
12526 Remove if 0-ed code.
12527 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
12528 were the same as the default.
12529 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
12530 Remove boilerplate comments.
12531 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
12532 (HAVE_SYSVIPC): Remove, unused.
12533 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
12534
12535 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12536 Remove boilerplate comments.
12537 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12538 Remove boilerplate comments.
12539 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12540 Remove boilerplate comments.
12541 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
12542
12543 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
12544 USG systems which do not use DATA_SEG_BITS.
12545 Refactor code. Remove boilerplate comments.
12546
12547 * m/ibms390.h:
12548 * m/m68k.h:
12549 * s/bsd-common.h:
12550 * s/cygwin.h:
12551 * s/darwin.h:
12552 * s/freebsd.h:
12553 * s/gnu.h:
12554 * s/msdos.h: Remove boilerplate comments.
12555
12556 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 12557 do not use this file.
aac0c6e3
MR
12558 (IRIS_4D): Remove, unused.
12559
12560 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 12561 do not use this file.
aac0c6e3
MR
12562 (SIGN_EXTEND_CHAR):
12563 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
12564 * unexmips.c: Remove file, unused.
12565
12566 * editfns.c (Fuser_full_name): Replace the only use of
12567 USER_FULL_NAME with its value.
12568 * config.in: Regenerate.
12569
125702008-07-16 David Reitter <david.reitter@gmail.com>
12571
12572 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
12573 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
12574
125752008-07-16 Glenn Morris <rgm@gnu.org>
12576
12577 * emacs.c (system-type): Doc fix.
12578
125792008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
12580
12581 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
12582 If the cache doesn't work, let's fix it, rather than work around it.
12583
125842008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12585
12586 * Makefile.in: Correct additions for nsfont.o in last commit.
12587 * nsfont.m: New file (forgot last commit).
12588
125892008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12590
12591 * callproc.c (set_initial_environment): Initialize
12592 Vprocess_environment under CANNOT_DUMP (fixes crash when
12593 batch-compiling for bootstrap).
12594
125952008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 12596 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 12597
c4cc8b9a
JB
12598 * frame.c (make_initial_frame): Call init_frame_faces(f) in
12599 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
12600
126012008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12602
12603 Changes and additions for NeXTstep windowing system (Cocoa and
12604 GNUstep) support.
12605
12606 * Makefile.in:
12607 * config.in: Support defines and build commands for NS port.
12608 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
12609 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
12610 * dispextern.h: Include nsgui.h and add needed typedefs under NS
12611 windowing.
12612 (struct face): Add synth_ital field.
12613 * dispnew.c: Include nsterm.h when compiling under NS windowing.
12614 (init_display): Initialize Vinitial_window_system to "ns" when so
12615 compiled.
12616 * emacs.c: Include GSConfig.h when compiling under GNUstep.
12617 (display_arg): Use under NS.
12618 (main): Under NS, allocate autorelease pool and handle command line
12619 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
12620 (standard_args): Add NS-specific args.
12621 (shut_down_emacs): Shut down NS terminal if compiled under NS.
12622 * font.c (DEFAULT_ENCODING): New variable.
12623 (font_find_for_lface): Use it.
12624 (syms_of_font): Load syms_of_nsfont under NS.
12625 * font.h: Declare nsfont_driver when compiled under NS.
12626 * fontset.c: When compiling under NS, include nsterm.h.
12627 (fontset_from_font): Autoconstruct fontset under NS.
12628 * frame.c (various): Under NS, include nsterm.h, add Qns window system
12629 symbol, document and use it.
12630 (do_switch_frame): When for_deletion under Cocoa, add
12631 Fraise_frame(Qnil).
12632 (x_set_frame_parameters): Ensure font attribute changes are picked up.
12633 (x_get_arg): Allow "yes" and "no" as boolean values.
12634 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
12635 Qright under Cocoa.
12636 (focus-follows-mouse): Default to 0 under NS.
12637 * frame.h (enum output_method): Add output_ns.
12638 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
12639 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
12640 (FRAME_WINDOW_P): NS-specific definition.
12641 * fringe.c (max_used_fringe_bitmap): Make public.
12642 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
12643 (getloadavg): Use NeXT code under descendant OS's.
12644 * image.c (includes and header section, x_create_bitmap_from_data)
12645 (x_create_bitmap_from_file, free_bitmap_record, image_background)
12646 (image_background_transparent, x_clear_image_1)
12647 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
12648 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
12649 (x_to_xcolors, x_from_xcolors, x_disable_image)
12650 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
12651 other GUIs, including XPM support using code originally written for
12652 Carbon GUI.
12653 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
12654 using NS API.
12655 (image_ascent): Use font metrics macros instead of direct struct field
12656 access.
12657 * keyboard.c (includes): Add nsterm.h when compiling under NS.
12658 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
12659 Also, handle NS as GTK for menu bar purposes.
12660 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
12661 toolkit where they differ.
12662 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
12663 use cachelist, still needed under NS.
12664 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
12665 (struct widget_value): Define it here for menu.c.
12666 * keymap.c (includes): Include modifier internals.
12667 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
12668 NS.
12669 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
12670 support for preferring sequences using certain modifiers, specified by
12671 the FIRSTONLY argument.
12672 * lisp.h (hash_remove): Rename to avoid name clash when compiling
12673 under NS GNUstep implementation.
12674 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
12675 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
12676 * menu.c: Include nsterm.h under NS.
12677 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
12678 (free_menubar_widget_tree_value, update_submenu_strings)
12679 (find_and_call_menu_selection): Treat NS as X and NT.
12680 (find_and_return_menu_selection): New function, used for popup menus.
12681 * nsgui.h:
12682 * nsterm.h:
12683 * nsfns.m:
12684 * nsimage.m:
12685 * nsmenu.m:
12686 * nsselect.m:
12687 * nsterm.m: New files.
12688 * process.c (wait_reading_process_output): Under NS, call ns_select()
12689 instead of plain select().
12690 * syntax.c (char_quoted): Under NS, avoid a crash when called near
12691 beginning of buffer.
12692 * sysselect.h (init_process): Rename when compiling under Cocoa to
12693 avoid name conflict.
12694 * termhooks.h (display_info): Add ns_display_info to union.
12695 * terminal.c (Fterminal_live_p): Add ns to terminal types.
12696 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
12697 COCOA environment.
12698 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
12699 unexec() signature. (Note, this will dump, but the resulting file
12700 crashes; unexosx is used instead; keeping around for reference and
12701 possible aid in getting dump working under GNUstep.)
12702 * w32gui.h (button_type, widget_value): Remove definitions (now in
12703 keyboard.h).
12704 * window.c: Include nsterm.h when compiling under NS.
12705 * xdisp.c (includes): Include nsterm.h when compiling under NS.
12706 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
12707 other GUI windowing systems.
12708 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
12709 GTK.
12710 (x_consider_frame_title): Under NS, set icon type and frame
12711 modified-state indicator; use ns_set_name_as_filename() when using
12712 formatted title.
12713 (update_window_cursor): Make public when compiling under NS.
12714 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
12715 (hourglass_atimer, Vhourglass_delay
12716 * xfaces.c (header section, init_frame_faces, clear_font_table)
12717 (defined_color, unload_color, x_face_list_fonts)
12718 (prepare_face_for_display): Add NS support parallel to other GUIs.
12719 Emulate GCs like other non-X GUIs.
12720 (split_font_name): Don't lowercase font name under NS.
12721 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
12722 under NS.
12723 * s/darwin.h: Add support for compilation under NS.
12724
127252008-07-15 Jason Rumney <jasonr@gnu.org>
12726
12727 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
12728 (w32_show_hourglass): Rename from show_hourglass.
12729 (w32_hide_hourglass): Rename from hide_hourglass.
12730 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
12731 (Vhourglass_delay): Declare extern.
12732 (hourglass_started): Remove.
12733
12734 * xdisp.c (Vhourglass_delay): Remove static.
12735 (hourglass_started, start_hourglass, cancel_hourglass):
12736 Don't include these versions on WINDOWSNT.
12737
127382008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12739
12740 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
12741 variables (formerly in xfns.c).
12742 (show_hourglass, hide_hourglass): New prototypes (same).
12743 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
12744 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
12745 in xfns.c).
12746 (syms_of_xdisp): Declare/initialize display-hourglass,
12747 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
12748 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
12749 formerly in xfns.c.
12750 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12751 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12752 (start_hourglass, cancel_hourglass): Remove.
12753 (show_hourglass, hide_hourglass): Remove prototypes and static
12754 modifiers.
12755 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
12756 hourglass_atimer, hourglass_shown_p declaration/initialization.
12757 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12758 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12759 (start_hourglass, cancel_hourglass): Remove.
12760 (show_hourglass, hide_hourglass): Remove prototypes and static
12761 modifiers.
12762 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
12763 hourglass_atimer, hourglass_shown_p declaration/initialization.
12764 * w32fns.c (display_hourglass_p, Vhourglass_delay)
12765 (DEFAULT_HOURGLASS_DELAY): Remove.
12766 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
12767 hourglass_shown_p declaration/initialization.
12768
127692008-07-14 Jason Rumney <jasonr@gnu.org>
12770
12771 * w32fns.c (w32_get_arg): Remove wrapper function.
12772 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
12773 directly.
12774 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
12775
127762008-07-14 Kenichi Handa <handa@m17n.org>
12777
12778 * xfont.c (xfont_open): Add workaround for X's bug.
12779
127802008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12781
12782 * fontset.c: Include <stdio.h> unconditionally.
12783
127842008-07-13 Michael Albinus <michael.albinus@gmx.de>
12785
12786 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
12787 for filtering.
12788
127892008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
12790
12791 * s/vms.h: Use __GNUC__ instead of _GNUC_.
12792
12793 * m/macppc.h:
12794 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
12795
c4cc8b9a 12796 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
12797 (SPECIAL_EMACS_INT):
12798 * m/ia64.h (SPECIAL_EMACS_INT):
12799 * m/amdx86-64.h (SPECIAL_EMACS_INT):
12800 * s/gnu.h (NLIST_STRUCT):
12801 * s/aix4-2.h (X11R5_INHIBIT_I18N):
12802 * s/gnu-linux.h (LINUX):
12803 * s/msdos.h (HAVE_FACES):
12804 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
12805
12806 * systty.h:
12807 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
12808 anymore.
12809
128102008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
12811
12812 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
12813 always defined as int.
12814
12815 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
12816 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
12817 * s/gnu-linux.h (HAVE_WAIT_HEADER):
12818 * s/freebsd.h (HAVE_WAIT_HEADER):
12819 * s/bsd-common.h (HAVE_UNION_WAIT):
12820 * s/aix4-2.h (HAVE_WAIT_HEADER):
12821 * m/mips.h (HAVE_UNION_WAIT):
12822 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
12823 (COFF, static): Do not define, they are undefined later in the file.
12824
12825 * process.c (update_status): Don't use a union.
12826 (status_convert):
12827 (sigchld_handler): Use int instead of WAITTYPE.
12828
128292008-07-12 Chong Yidong <cyd@stupidchicken.com>
12830
12831 * indent.c (Fvertical_motion): Restore hscroll before moving to
12832 goal column.
12833
128342008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12835
12836 * lisp.h: Remove left over code.
12837
128382008-07-11 Andreas Schwab <schwab@suse.de>
12839
12840 * lisp.h: Fix logic in last change.
12841
12842 * menu.h: New file.
12843 * menu.c: Include it.
12844 * xmenu.c: Likewise.
12845 * Makefile.in: Update dependencies.
12846
128472008-07-11 Kenichi Handa <handa@m17n.org>
12848
12849 * fontset.c (fontset_from_font): Cancel the previous change.
12850
128512008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12852
12853 * lisp.h:
12854 * w32heap.c:
12855 * emacs.c:
12856 * alloc.c: Replace all references of NO_UNION_TYPE with
12857 USE_LISP_UNION_TYPE.
12858
12859 * m/xtensa.h (NO_UNION_TYPE):
12860 * m/vax.h (NO_UNION_TYPE):
12861 * m/template.h (NO_UNION_TYPE):
12862 * m/sparc.h (NO_UNION_TYPE):
12863 * m/mips.h (NO_UNION_TYPE):
12864 * m/macppc.h (NO_UNION_TYPE):
12865 * m/m68k.h (NO_UNION_TYPE):
12866 * m/iris4d.h (NO_UNION_TYPE):
12867 * m/intel386.h (NO_UNION_TYPE):
12868 * m/ibms390x.h (NO_UNION_TYPE):
12869 * m/ibms390.h (NO_UNION_TYPE):
12870 * m/ibmrs6000.h (NO_UNION_TYPE):
12871 * m/ia64.h (NO_UNION_TYPE):
12872 * m/hp800.h (NO_UNION_TYPE):
12873 * m/arm.h (NO_UNION_TYPE):
12874 * m/amdx86-64.h (NO_UNION_TYPE):
12875 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
12876 defining it the same.
12877
128782008-07-10 Chong Yidong <cyd@stupidchicken.com>
12879
12880 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
12881
128822008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12883
12884 * fileio.c:
50426a04 12885 * sysdep.c:
aac0c6e3
MR
12886 * systty.h:
12887 * m/ibmrs6000.h:
12888 * m/iris4d.h:
12889 * s/aix4-2.h:
12890 * s/freebsd.h:
12891 * s/gnu-linux.h:
12892 * s/hpux10-20.h:
12893 * s/hpux11.h:
12894 * s/netbsd.h:
12895 * s/sol2-3.h:
12896 * s/sol2-4.h:
12897 * s/sol2.h:
12898 * s/usg5-4.h:
12899 * s/vms.h: Remove references to unused variables.
12900
129012008-07-10 Andreas Schwab <schwab@suse.de>
12902
12903 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
12904 pattern before matching the generic family.
12905
129062008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12907
12908 * unexec.c:
12909 * s/vms.h:
12910 * s/usg5-4-2.h:
12911 * s/sol2-5.h:
12912 * s/freebsd.h:
12913 * s/darwin.h: Remove dead code.
12914
12915 * m/template.h:
12916 * m/sparc.h:
12917 * m/mips.h:
12918 * m/m68k.h:
12919 * m/iris4d.h:
12920 * m/intel386.h:
12921 * m/ibms390x.h:
12922 * m/ibms390.h:
12923 * m/ia64.h:
12924 * m/hp800.h:
12925 * m/arm.h:
12926 * m/amdx86-64.h: Remove dead code and references to unused
12927 and compiler defined symbols.
12928
12929 * unexmips.c:
12930 * unexelf.c: Remove references to desupported systems.
12931
12932 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
12933
12934 * m/powermac.h: Remove boilerplate comments.
12935 (NO_REMAP): Remove unused definition.
12936
12937 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
12938 define them.
12939
129402008-07-10 Kenichi Handa <handa@m17n.org>
12941
12942 * xfont.c (xfont_open): Log the reason of failure.
12943
129442008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
12945
12946 * fontset.c (fontset_get_font_group):
12947 * font.c (font_check_otf): Specify argument types.
12948
129492008-07-09 Kenichi Handa <handa@m17n.org>
12950
12951 * coding.c (detect_coding_utf_8): Set detect_info->found only when
12952 non-ASCII char is found.
12953
12954 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
12955 (reorder_font_vector): Change the arg preferred_family to font.
12956 Prefer the spec matching with font.
12957 (fontset_get_font_group): New function.
12958 (fontset_find_font): Change the format of an element of a realized
12959 fontset. Use fontset_get_font_group.
12960 (fontset_font): Try the current fontset, the default fontset, the
12961 fallbacks of the current fontset, and the fallbacks of the default
12962 fontset in this order.
12963 (face_for_char): Delete the shortcut to use the current font.
12964 (fontset_from_font): Don't set fonts for Latin in the fontset.
12965
12966 * font.h (font_make_object, font_match_p): Adjust prototypes.
12967
12968 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
12969
12970 * font.c (font_make_object): New arg entity and pixelsize.
12971 (font_check_otf_features, font_check_otf): New functions.
12972 (font_match_p): Check :lang, :script, and :otf properties.
12973
12974 * xfont.c (xfont_open): Adjust it for the change of
12975 font_make_object.
12976 (xfont_text_extents): Fix initial setting of metrics.
12977
12978 * ftfont.c (struct ftfont_info): New member index, delete member
12979 fc_charset_idx. Make the member order compatible with struct
12980 xftfont_info.
12981 (fc_charset_table): Change charset names to registry names.
12982 (ftfont_pattern_entity): Delete the args registry and
12983 fc_charset_idx. Change the value of :font-entity property
12984 to (FONTNAME . INDEX). Always set :registry property to
12985 `iso10646-1'.
12986 (struct ftfont_cache_data): New struct.
12987 (ftfont_lookup_cache): New arg for_face.
12988 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
12989 (ftfont_driver): Set the member otf_capability.
12990 (ftfont_get_charset): Adjust it for the change of
12991 fc_charset_table.
12992 (OTF_TAG_SYM): New macro.
12993 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
12994 for the change of fc_charset_table.
12995 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
12996 ftfont_pattern_entity. Add FC_INDEX to objset.
12997 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
12998 and ftfont_pattern_entity.
12999 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
13000 font_make_object, struct ftfont_info.
13001 (ftfont_has_char): Use ftfont_get_fc_charset.
13002 (ftfont_otf_features, ftfont_otf_capability): New functions.
13003 (ftfont_shape): Use ftfont_get_otf.
13004 (ftfont_text_extents): Fix initial setting of metrics.
13005
13006 * xftfont.c (struct xftfont_info): New member ft_size. Make the
13007 member order compatible with struct ftfont_info.
13008 (xftfont_open): Add FC_CHARSET to the pattern. Set
13009 xftfont_info->ft_size. Don't unlock the face. Check BDF
13010 properties if appropriate.
13011 (xftfont_close): Unlock the face.
13012 (xftfont_anchor_point, xftfont_shape): Deleted.
13013 (syms_of_xftfont): Don't set members anchor_point and shape of
13014 xftfont_driver.
13015
13016 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
13017 font_make_object.
13018
13019 * w32font.c (w32font_open): Adjust it for the change of
13020 font_make_object.
13021 (w32font_open_internal): Don't set properties of font_object here.
13022
130232008-07-08 Chong Yidong <cyd@stupidchicken.com>
13024
13025 * macfns.c (x_create_tip_frame):
13026 * w32fns.c (x_create_tip_frame):
13027 * xfns.c (x_create_tip_frame): Pass parameter argument to
13028 face-set-after-frame-default.
13029
13030 * xfaces.c (Finternal_merge_in_global_face): Save merged
13031 attributes for the default face back into the face vector.
13032
130332008-07-08 Andreas Schwab <schwab@suse.de>
13034
13035 * fontset.h: Declare fontset_from_font. Don't declare
13036 new_fontset_from_font and fontset_from_font_name.
13037 * xterm.c: Include "fontset.h".
13038 * Makefile.in (xterm.o): Update dependencies.
13039
130402008-07-08 Glenn Morris <rgm@gnu.org>
13041
13042 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
13043 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
13044
130452008-07-07 Chong Yidong <cyd@stupidchicken.com>
13046
13047 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
13048 (x_set_frame_parameters): Don't bind it.
13049
130502008-07-07 Juanma Barranquero <lekktu@gmail.com>
13051
13052 * w32fns.c (map_w32_filename): Declare extern.
13053
130542008-07-07 Jason Rumney <jasonr@gnu.org>
13055
13056 * w32term.c (WS_EX_LAYERED): Define if not already.
13057
130582008-07-06 Chong Yidong <cyd@stupidchicken.com>
13059
13060 * xfaces.c (set_font_frame_param): Don't try to set the font
13061 parameter if it is still unspecified in the lface.
13062
130632008-07-05 Chong Yidong <cyd@stupidchicken.com>
13064
13065 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
13066 face if it didn't already exist.
13067
13068 * xdisp.c (try_window_id): Give up if word-wrapping is on.
13069
130702008-07-05 Andreas Schwab <schwab@suse.de>
13071
13072 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
13073
130742008-07-05 Chong Yidong <cyd@stupidchicken.com>
13075
13076 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
13077 word-wrapping.
13078 (IT_DISPLAYING_WHITESPACE): New macro.
13079 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
13080 when word-wrapping. Simplify word-wrapping logic. Use correct
13081 pixel positions when saving copies of the iterator.
13082 (display_line): Use proper wrap point if the last character on a
13083 line was preceded by whitespace.
13084
130852008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
13086
13087 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
13088
130892008-07-04 Kenichi Handa <handa@m17n.org>
13090
13091 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
13092
13093 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
13094
130952008-07-02 Jason Rumney <jasonr@gnu.org>
13096
13097 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 13098 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
13099
13100 * xdisp.c (next_element_from_display_vector): Move assignment out
13101 of if statement.
13102
131032008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
13104
13105 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
13106
13107 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
13108 (syms_of_fileio): Initialize and export them.
13109 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
13110
13111 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
13112 (Fsystem_move_file_to_trash): New function.
13113 (syms_of_w32fns): Export it to lisp.
13114
131152008-07-01 Jason Rumney <jasonr@gnu.org>
13116
13117 * w32font.c (w32font_text_extents): Don't count overhang as part
13118 of width.
13119
131202008-06-30 Miles Bader <miles@gnu.org>
13121
13122 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
13123 Add `avoid_cursor_p' field.
13124
13125 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
13126 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
13127 (append_glyph, append_composite_glyph, produce_image_glyph)
13128 (append_stretch_glyph): Initialize avoid_cursor_p.
13129 (get_it_property): Rename from `get_line_height_property'.
13130 (x_produce_glyphs): Use get_it_property.
13131 (handle_line_prefix, push_display_prop): New functions.
13132 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
13133 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
13134 New variables.
13135 (syms_of_xdisp): Initialize them.
13136
131372008-06-30 Kenichi Handa <handa@m17n.org>
13138
13139 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
13140 XftDefaultSubstitute (they are called in XftFontMatch).
13141 (xftfont_open): Fix args to ftfont_font_format.
13142
13143 * ftfont.c (fc_charset_table): New member lang.
13144 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 13145 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
13146 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
13147 (ftfont_open): Fix args to ftfont_font_format.
13148 (ftfont_font_format): New arg filename.
13149
131502008-06-30 Chong Yidong <cyd@stupidchicken.com>
13151
13152 * xfaces.c (Finternal_merge_in_global_face): If default face was
13153 modified, realize it again. Update the font face attribute.
13154
131552008-06-29 Jason Rumney <jasonr@gnu.org>
13156
13157 * w32term.c (x_set_frame_alpha): Fix logic.
13158
131592008-06-29 Kenichi Handa <handa@m17n.org>
13160
13161 * fontset.c (Finternal_char_font): Return font-object instead of
13162 font-name.
13163
13164 * composite.c (get_composition_id): Fix the width calculation for TAB.
13165
131662008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
13167
13168 * indent.c (Fvertical_motion): Properly handle float column arg.
13169
131702008-06-28 Jason Rumney <jasonr@gnu.org>
13171
13172 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
13173 (pfnSetLayeredWindowAttributes): New function pointer.
13174 (w32_initialize): Initialize it when supported.
13175 (x_set_frame_alpha): New function.
13176
13177 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
13178 (w32_frame_parm_handlers): Set alpha handler.
13179
13180 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
13181
131822008-06-27 Jason Rumney <jasonr@gnu.org>
13183
13184 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
13185 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
13186 (w32_to_x_charset, x_to_w32_charset)
13187 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13188 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13189 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13190 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13191 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13192 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13193 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
13194 (Qw32_charset_unicode): Remove.
13195 (syms_of_w32fns): Update for above changes.
13196
13197 * w32font.c (w32_to_x_charset, x_to_w32_charset)
13198 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13199 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13200 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13201 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13202 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13203 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13204 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
13205 (syms_of_w32font): Update for above changes.
13206
132072008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
13208
13209 * s/usg5-4.h: Fix previous change: keep the correct branch of a
13210 removed #if.
13211 (USG_SHARED_LIBRARIES): Remove duplicate definition.
13212
132132008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 13214 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
13215
13216 * makefile.w32-in (LOCAL_FLAGS):
13217 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
13218
13219 * sysdep.c (_spawnlp, _getpid):
13220 Declare with explicit _cdecl instead of _CRTAPI1.
13221
13222 * editfns.c (Fget_internal_run_time):
13223 Check for WINDOWSNT with #ifdef, not #if.
13224
132252008-06-26 Jason Rumney <jasonr@gnu.org>
13226
13227 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
13228
13229 * w32term.c (x_draw_glyph_string_foreground)
13230 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
13231 Use FONT_HANDLE macro.
13232 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
13233
13234 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13235 (uniscribe_encode_char): Use FONT_HANDLE macro.
13236
13237 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
13238 (w32font_text_extents): Use precast w32_font.
13239 (w32font_close): Free cached metrics.
13240 (w32font_open_internal): Allocate space for name on stack.
13241
132422008-06-26 Chong Yidong <cyd@stupidchicken.com>
13243
13244 * xdisp.c (extend_face_to_end_of_line): Fix last change.
13245
132462008-06-26 Jason Rumney <jasonr@gnu.org>
13247
13248 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
13249 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
13250
132512008-06-26 Juanma Barranquero <lekktu@gmail.com>
13252
13253 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
13254
132552008-06-26 Jason Rumney <jasonr@gnu.org>
13256
13257 * w32bdf.c, w32bdf.h: Remove obsolete files.
13258
13259 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
13260
13261 * w32gui.h: Don't include w32bdf.h.
13262 (XCharStruct, enum w32_char_font_type, W32FontStruct):
13263 Remove obsolete font support.
13264
13265 * w32font.h (struct w32font_info): Remove compat_w32_font.
13266 Add hfont member.
13267 (FONT_COMPAT): Remove obsolete macro.
13268
13269 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
13270 (w32font_encode_char, w32font_text_extents): Use new hfont member.
13271 (w32font_open_internal): Remove compat code. Set new hfont member.
13272 (Fx_select_font): Use new hfont member.
13273
13274 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13275 (uniscribe_encode_char): Use new hfont member.
13276
13277 * w32term.c (x_draw_glyph_string_foreground)
13278 (x_draw_composite_glyph_string_foreground): Use new hfont member.
13279 (x_draw_glyph_string): Use metrics in w32font_info.
13280
132812008-06-26 Kenichi Handa <handa@m17n.org>
13282
13283 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
13284
132852008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
13286
13287 * unexnext.c:
13288 * m/ews4800.h:
13289 * m/hp9000s300.h:
13290 * m/ibm370aix.h:
13291 * m/mips-siemens.h:
13292 * m/ncr386.h:
13293 * m/next.h:
13294 * m/pmax.h:
13295 * m/powerpcle.h:
13296 * m/tandem-s2.h:
13297 * s/386bsd.h:
13298 * s/bsd386.h:
13299 * s/bsd4-1.h:
13300 * s/bsd4-2.h:
13301 * s/bsdos2-1.h:
13302 * s/bsdos2.h:
13303 * s/bsdos3.h:
13304 * s/bsdos4.h:
13305 * s/nextstep.h:
13306 * s/ultrix4-3.h:
13307 * s/usg5-0.h:
13308 * s/usg5-2-2.h:
13309 * s/usg5-2.h:
13310 * s/usg5-4-3.h:
13311 * s/ux4800.h:
13312 * s/uxpds.h:
13313 * s/uxpv.h: Remove support for obsolete systems.
13314 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 13315 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
13316 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
13317 Remove, insert contents in s/aix4-2.h.
13318 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
13319 * s/bsd4-3.h: Rename to ...
13320 * s/bsd-common.h: ... this.
13321 * data.c:
13322 * doc.c:
13323 * ecrt0.c:
13324 * emacs.c:
13325 * fileio.c:
13326 * floatfns.c:
13327 * keyboard.c:
13328 * mem-limits.h:
13329 * print.c:
13330 * process.c:
13331 * sysdep.c:
13332 * syssignal.h:
13333 * systty.h:
13334 * syswait.h:
13335 * term.c:
13336 * unexec.c:
13337 * unexelf.c:
13338 * unexhp9k800.c:
13339 * m/hp800.h:
13340 * m/ibmrs6000.h:
13341 * m/mips.h:
13342 * m/vax.h:
13343 * s/darwin.h:
13344 * s/freebsd.h:
13345 * s/gnu.h:
13346 * s/ms-w32.h:
13347 * s/msdos.h:
13348 * s/netbsd.h:
13349 * s/template.h: Remove references to obsolete variables.
13350
13351 * Makefile.in: Add dependencies for all unexec files.
13352 (admindir): Remove unused variable.
13353 (UNEXEC_SRC): Remove references.
13354
133552008-06-25 Chong Yidong <cyd@stupidchicken.com>
13356
13357 * xfns.c (x_default_font_parameter): If Xft is available, first
13358 try Monospace-12 for the default font.
13359
133602008-06-25 Jason Rumney <jasonr@gnu.org>
13361
13362 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
13363
133642008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
13365
13366 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
13367
13368 * buffer.c (syms_of_buffer): Remove default-word-wrap.
13369
133702008-06-25 Juanma Barranquero <lekktu@gmail.com>
13371
13372 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
13373 <scroll-conservatively>: Fix typo in docstring.
13374
13375 * xselect.c (Fx_send_client_event): Doc fix.
13376
133772008-06-25 Kenichi Handa <handa@m17n.org>
13378
13379 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
13380
13381 * font.c (font_parse_fcname): Remove unused variables.
13382 (font_sort_entites): Delete the arg SPEC. Caller changed.
13383 Fix for the case of ! best_only.
13384 (font_delete_unmatched): Check DPI and AVGWIDTH too.
13385
13386 * lisp.h (Fstring_to_unibyte): EXFUN it.
13387
13388 * character.h (str_to_unibyte): Extern it.
13389
13390 * character.c (str_to_unibyte): New function.
13391
13392 * fns.c (Fstring_to_unibyte): New function.
13393 (syms_of_fns): Defsubr it.
13394
133952008-06-24 Kenichi Handa <handa@m17n.org>
13396
13397 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
13398 DPI too.
13399 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
13400
134012008-06-24 Andreas Schwab <schwab@suse.de>
13402
13403 * Makefile.in (${lispsource}loaddefs.el): Rename from
13404 ../lisp/loaddefs.el.
13405 (bootstrap-clean): Do what distclean does but don't remove
13406 Makefile.
13407 (distclean): Depend on bootstrap-clean and remove Makefile.
13408
134092008-06-24 Chong Yidong <cyd@stupidchicken.com>
13410
13411 * buffer.h (struct buffer): New member word_wrap.
13412
13413 * buffer.c (syms_of_buffer): New variables default-word-wrap and
13414 word-wrap.
13415 (init_buffer_once): Initialize them.
13416
13417 * dispextern.h (struct it): Replace bool truncate_lines_p with a
13418 line_wrap enum possessing three possible values.
13419
13420 * termopts.h: Replace truncate_partial_width_windows with
13421 Vtruncate_partial_width_windows.
13422
13423 * dispnew.c (direct_output_for_insert): Avoid direct output when
13424 inserting a space with word wrap on.
13425
13426 * indent.c (compute_motion): Obey integer values of
13427 truncate-partial-width-windows.
13428
13429 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
13430 replacing truncate_partial_width_windows.
13431 (init_iterator): If Vtruncate_partial_width_windows is an integer,
13432 truncate only if the window width is below that integer.
13433 (start_display, resize_mini_window, produce_stretch_glyph)
13434 (display_string, move_it_in_display_line_to): Use line_wrap.
13435 (back_to_previous_visible_line_start, reseat_1): Reset
13436 string_from_display_prop_p.
13437 (display_line): Extend default face to end of line when wrapping.
13438
134392008-06-24 Kim F. Storm <storm@cua.dk>
13440
13441 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
13442 to wrap continued lines at word boundaries.
13443
134442008-06-24 Jason Rumney <jasonr@gnu.org>
13445
13446 * font.c (Ffont_face_attributes): Multiply pixel size before point
13447 conversion to avoid multiplying rounding error.
13448
134492008-06-23 Jason Rumney <jasonr@gnu.org>
13450
13451 * w32term.c (x_draw_glyph_string_background)
13452 (x_draw_glyph_string): Remove old bdf font code.
13453
13454 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
13455
134562008-06-22 Kenichi Handa <handa@m17n.org>
13457
13458 * font.c (font_find_for_lface): Try the adstyle specified in
13459 the property of LFACE_FONT of LFACE (if any).
13460
134612008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 13462 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
13463
13464 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
13465
134662008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
13467
13468 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
13469 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
13470 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
13471 (witness-emacs): Remove.
13472 (lisp, shortlisp): Move loaddefs.el earlier.
13473 (mostlyclean): Forget about witness-emacs.
13474
134752008-06-22 Glenn Morris <rgm@gnu.org>
13476
13477 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
13478 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
13479
134802008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13481
13482 * Makefile.in (PRECOMP): Remove.
13483 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
13484 (witness-emacs): Run `compile-first'.
13485 (.el.elc): Use the new compile-onefile target.
13486
134872008-06-21 Kenichi Handa <handa@m17n.org>
13488
13489 * xftfont.c (xftfont_open): Handle QCembolden only when
13490 FC_EMBOLDEN is defined.
13491
134922008-06-21 Andreas Schwab <schwab@suse.de>
13493
13494 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
13495 (.el.elc): Likewise.
13496
134972008-06-21 Miles Bader <miles@gnu.org>
13498
13499 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
13500 build dir, not the lisp source dir.
13501
135022008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13503
13504 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
13505 (bootstrapclean): Remove.
13506 (.el.elc): New rule.
13507 (PRECOMP): New var.
13508 (../lisp/subdirs.el): Remove.
13509 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
13510 (witness-emacs): New target.
13511 (mostlyclean): Remove witness-emacs as well.
13512 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
13513 Add witness-emacs dependency.
13514
135152008-06-20 Chong Yidong <cyd@stupidchicken.com>
13516
13517 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
13518 defined by the font.
13519
135202008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13521
13522 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
13523 (bootstrap-clean): New target that keeps TAGS around.
13524 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
13525 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
13526
135272008-06-20 Jason Rumney <jasonr@gnu.org>
13528
13529 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
13530 Remove obsolete font code.
13531
13532 * w32font.c (font_matches_spec): Use csb bitfield from font signature
13533 to determine language support.
13534
135352008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13536
13537 * sysdep.c (cfsetspeed): New fun extracted from the code.
13538 (cfmakeraw): Move before first use.
13539
135402008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
13541
13542 * sysdep.c (cfmakeraw): Provide fallback implementation.
13543 (serial_configure): Provide fallback implementation of cfsetspeed.
13544
135452008-06-20 Kenichi Handa <handa@m17n.org>
13546
13547 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
13548 the pattern.
13549
13550 * fontset.c (fontset_from_font): Copy font_spec before changing
13551 the elements.
13552
13553 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
13554
135552008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13556
13557 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
13558 for explicit `font' parameters.
13559
13560 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
13561
135622008-06-19 Kenichi Handa <handa@m17n.org>
13563
13564 * frame.c: Include <ctype.h>.
13565 (x_set_font_backend): Allow spacing characters in the X resource
13566 for FontBackend.
13567
135682008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
13569
13570 * w32fns.c, xfns.c (Qfont_param): New var.
13571 (syms_of_w32fns): Initialize it.
13572 (x_default_font_parameter): Record explicit `font' into
13573 `font-parameter'.
13574
135752008-06-18 Kenichi Handa <handa@m17n.org>
13576
13577 * font.c (font_parse_xlfd): Fix previous change.
13578 (font_parse_fcname): Don't use :fc-unknown-spec.
13579 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
13580 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
13581 (font_add_log): Prepend the driver name to the resulting fonts.
13582
13583 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
13584 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
13585 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
13586
13587 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
13588 (QCembolden): New variables.
13589 (syms_of_xftfont): DEFSYM them.
13590 (xftfont_open): Call XftFontMatch. Don't trust the result of
13591 XftTextExtents8 if the pixel_size is less than 5.
13592
135932008-06-18 Andreas Schwab <schwab@suse.de>
13594
13595 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
13596 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
13597
135982008-06-18 Jason Rumney <jasonr@gnu.org>
13599
13600 * w32font.c (w32font_list, w32font_match): Add logging.
13601
13602 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
13603
136042008-06-17 Chong Yidong <cyd@stupidchicken.com>
13605
13606 * font.c (font_parse_fcname): Store divider characters for
13607 unknown-spec list. For known key symbols, intern using correct
13608 symbol name.
13609
136102008-06-17 Kenichi Handa <handa@m17n.org>
13611
13612 * xfaces.c (realize_default_face): If the frame is not on window
13613 system, set the fontset of face to nil.
13614
136152008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13616
13617 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
13618
136192008-06-16 Juanma Barranquero <lekktu@gmail.com>
13620
13621 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
13622 (build_font_name_from_vector): Delete externs.
13623
13624 * xfaces.c (struct font_name): Don't declare.
13625
136262008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
13627
13628 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
13629
136302008-06-16 Chong Yidong <cyd@stupidchicken.com>
13631
13632 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
13633
136342008-06-16 Juanma Barranquero <lekktu@gmail.com>
13635
13636 * font.c (Ffont_spec): Fix usage in docstring.
13637 (Ffont_face_attributes): Doc fix.
13638
136392008-06-16 Andreas Schwab <schwab@suse.de>
13640
13641 * font.c (Ffont_face_attributes): Fix definition.
13642
136432008-06-16 Jason Rumney <jasonr@gnu.org>
13644
13645 * font.h (font_style_symbolic_from_value): Remove.
13646
13647 * font.c (font_style_symbolic_from_value): Remove.
13648 (font_style_symbolic): Revert to pre 2008-06-13 version.
13649
13650 * w32font.c (w32_to_fc_weight): New function.
13651 (w32font_full_name, logfont_to_fcname): Use it.
13652
136532008-06-16 Kenichi Handa <handa@m17n.org>
13654
13655 * font.c (font_check_object): Delete it.
13656 (font_clear_cache): Check if a font-object is alive.
13657 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
13658 font-object to nil.
13659 (font_close_object): Don't check FONT_CLOSE_OBJECT.
13660 (font_at): Don't call font_check_object.
13661 (Ffont_get): Return a symbol for :weight, :slant, and :width.
13662
136632008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
13664
13665 * puresize.h (BASE_PURESIZE): Increase to 1230000.
13666
136672008-06-16 Chong Yidong <cyd@stupidchicken.com>
13668
13669 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
13670
136712008-06-15 Chong Yidong <cyd@stupidchicken.com>
13672
13673 * font.c (font_parse_fcname): Only one decimal point.
13674 (font_unparse_fcname): Handle data in family and foundry indices
13675 as symbols, not strings.
13676 (font_unparse_gtkname, Ffont_face_attributes): New functions.
13677
13678 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
13679
13680 * font.h (font_unparse_gtkname): Add prototype.
13681
136822008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13683
13684 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
13685
136862008-06-15 Andreas Schwab <schwab@suse.de>
13687
13688 * font.c (font_update_drivers): Fix crash when no drivers match.
13689
136902008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
13691
13692 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
13693 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
13694
136952008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
13696
13697 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
13698
136992008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
13700
13701 * process.c (Fserial_process_configure, Fprocess_send_eof):
13702 Use EQ to compare Lisp_Objects.
13703
137042008-06-13 Jason Rumney <jasonr@gnu.org>
13705
13706 * w32fns.c (Fw32_select_font): Remove old font API function.
13707
13708 * w32font.c (logfont_to_fcname): New function.
13709 (Fx_select_font): New font dialog function compatible with
13710 GTK/fontconfig version.
13711
13712 * font.c (font_style_symbolic_from_value): New function.
13713 (font_style_symbolic): Use it.
13714
13715 * font.h (font_style_symbolic_from_value): Declare new function.
13716
137172008-06-13 Juanma Barranquero <lekktu@gmail.com>
13718
13719 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
13720 <font-width-table>: Fix typos in docstrings.
13721
137222008-06-13 Daniel Engeler <engeler@gmail.com>
13723
13724 These changes add serial port access.
13725 * process.c: Add HAVE_SERIAL.
13726 (Fdelete_process, Fprocess_status, Fset_process_buffer)
13727 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
13728 (list_processes_1, select_wrapper, Fstop_process)
13729 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
13730 (status_notify): Modify to handle serial processes.
13731 [HAVE_SERIAL] (Fserial_process_configure)
13732 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
13733 New functions.
13734 * process.h (struct Lisp_Process): Add `type'.
13735 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
13736 New functions.
13737 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
13738 serial ports.
b71ac3dd 13739 (serial_open, serial_configure): New functions.
aac0c6e3
MR
13740 * w32.h: Add FILE_SERIAL.
13741 (struct _child_process): Add ovl_read, ovl_write.
13742
137432008-06-13 Kenichi Handa <handa@m17n.org>
13744
13745 * dispextern.h (enum lface_attribute_index): New member
13746 LFACE_FOUNDRY_INDEX.
13747
13748 * font.c (font_score): Delete arg alternate_families. Check only
13749 weight, slant, width, and size. Ignore the difference of alias
13750 style symbols.
13751 (font_sort_entites): Adjust for the above change. Reflect the
13752 order of font-driver to scores.
13753 (font_list_entities): Don't check alternate_familes here.
13754 (font_clear_prop): Handle foundry.
13755 (font_update_lface): Don't parse "foundry-family" form here.
13756 Handle FONT_FOUNDRY_INDEX.
13757 (font_find_for_lface): Likewise. Handle alternate families here.
13758 If registry is nil, try iso8859-1 and ascii-0.
13759 (font_open_for_lface): Pay attention to size in ENTITY.
13760 (font_open_by_name): Simplify by calling font_load_for_lface.
13761 (free_font_driver_list): Delete it.
13762 (font_update_drivers): Preserve the order of backends.
13763 (syms_of_font): Setting of sort_shift_bits adjusted for the change
13764 of font_score and font_sort_entites.
13765 (font_update_sort_order): Likewise.
13766
13767 * xfaces.c (LFACE_FOUNDRY): New macro.
13768 (check_lface_attrs): Check foundry.
13769 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
13770 (merge_face_vectors): Check foundry.
13771 (merge_face_ref): Likewise.
13772 (Finternal_set_lisp_face_attribute): Likewise.
13773 (x_update_menu_appearance): Likewise.
13774 (Finternal_get_lisp_face_attribute): Likewise.
13775 (lface_hash): Likewise.
13776 (lface_same_font_attributes_p): Likewise.
13777 (x_supports_face_attributes_p): Likewise.
13778 (tty_supports_face_attributes_p): Likewise.
13779 (Finternal_set_alternative_font_family_alist): Intern strings.
13780 (Finternal_set_alternative_font_registry_alist): Downcase strings.
13781 (realize_default_face): Set LFACE_FOUNDRY (lface).
13782
13783 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
13784 font-driver at first.
13785
13786 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
13787
137882008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13789
13790 * lread.c (Fload): Use xfree, not free on saved_doc_string.
13791
137922008-06-12 Jim Meyering <meyering@redhat.com>
13793
13794 Make unexec_free handle NULL the same way free does.
13795 * unexmacosx.c (unexec_free): Ignore a NULL argument.
13796
137972008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
13798
13799 * character.h (CHAR_TO_BYTE_SAFE): New macro.
13800 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
13801 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
13802 (WEAK_ALIAS): Simplify.
13803 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
13804 when searching a unibyte buffer.
13805
138062008-06-12 Chong Yidong <cyd@stupidchicken.com>
13807
13808 * xfns.c (Fx_select_font): Rename from x-font-dialog.
13809
138102008-06-12 Juanma Barranquero <lekktu@gmail.com>
13811
13812 * w32font.c: Include ctype.h.
13813
138142008-06-11 Jason Rumney <jasonr@gnu.org>
13815
13816 * w32font.c (w32font_encode_char): Detect missing glyphs that are
13817 misreported as space.
13818 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
13819 as aliases for registry iso10646-1.
13820
138212008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
13822
13823 * buffer.c (clone_per_buffer_values): Skip `name'.
13824
138252008-06-11 Chong Yidong <cyd@stupidchicken.com>
13826
13827 * font.c (font_parse_fcname): Fix last change; accept decimal
13828 points in font size.
13829
138302008-06-10 Jason Rumney <jasonr@gnu.org>
13831
13832 * w32uniscribe.c (add_opentype_font_name_to_list):
13833 Skip non unicode fonts.
13834
138352008-06-10 Chong Yidong <cyd@stupidchicken.com>
13836
13837 * xfns.c (Fx_font_dialog): New function.
13838
13839 * gtkutil.c (xg_dialog_response_cb): Rename from
13840 xg_file_response_callback.
13841 (pop_down_dialog): Rename from pop_down_file_dialog.
13842 (xg_get_file_name): Callers changed.
13843 (xg_get_font_name): New function.
13844
13845 * gtkutil.h (xg_get_font_name): Insert prototype.
13846
138472008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13848
13849 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
13850 x_underline_minimum_display_offset.
13851 (syms_of_xdisp): Declare it here rather than in xterm.c.
13852 * dispextern.h (underline_minimum_offset): Declare it.
13853 * w32term.c (x_draw_glyph_string): Use it.
13854 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
13855 (syms_of_xterm): Don't declare it any more.
13856 (x_draw_glyph_string): Adjust to the new name.
13857
8719abec 138582008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
13859
13860 * xterm.c (x_underline_minimum_display_offset): New var.
13861 (x_draw_glyph_string): Use it.
13862 (syms_of_xterm): Declare it.
13863
138642008-06-10 Chong Yidong <cyd@stupidchicken.com>
13865
13866 * font.c (font_parse_fcname): Accept GTK-style font names too.
13867
138682008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13869
13870 * dired.c (file_name_completion): Don't return t if the match is exact
13871 but with different capitalization.
13872 * minibuf.c (Ftry_completion): Simplify.
13873
13874 * window.c (Vwindow_point_insertion_type): New var.
13875 (set_window_buffer): Use it.
13876 (syms_of_window): Init and export it to Lisp.
13877
138782008-06-10 Kenichi Handa <handa@m17n.org>
13879
13880 * font.h (font_intern_prop): Prototype adjusted.
13881
13882 * font.c (font_intern_prop): New arg force_symbol.
13883 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
13884 Adjust for the change of font_intern_prop.
13885
13886 * ftfont.c (ftfont_pattern_entity):
13887 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
13888 (w32_registry):
13889 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
13890 the change of font_intern_prop.
13891
138922008-06-09 Juanma Barranquero <lekktu@gmail.com>
13893
13894 * w32menu.c (digest_single_submenu): Declare extern.
13895
138962008-06-09 Jason Rumney <jasonr@gnu.org>
13897
13898 * w32term.c (x_make_frame_visible): Use alternate restore flags.
13899
13900 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
13901 (parse_single_submenu): Remove.
13902 (digest_single_submenu): Remove.
13903 (syms_of_w32menu): Don't initialise variables that have moved
13904 to menu.c.
13905 (set_frame_menubar): Sync with version in xmenu.c.
13906 (w32_menu_show): Sync with xmenu_show in xmenu.c.
13907
13908 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
13909 Make static again.
13910
139112008-06-09 Jason Rumney <jasonr@gnu.org>
13912
13913 Changes to w32 files related to the move of common menu code
13914 to menu.c on 2008-06-08 by Chong Yidong.
13915
13916 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
13917 defs to w32gui.h.
13918 (single_keymap_panes, push_menu_item, push_menu_pane):
13919 Make globally visible.
13920
13921 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
13922 (local_free, malloc_widget_value, free_widget_value)
13923 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
13924 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
13925 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
13926 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
13927 (menu_items, menu_items_allocated, menu_items_used)
13928 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
13929 (init_menu_items, finish_menu_items, discard_menu_items)
13930 (grow_menu_items, push_submenu_start, push_submenu_end)
13931 (push_left_right_boundary, push_menu_pane, push_menu_item)
13932 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
13933 (free_menubar_widget_tree_value, parse_single_submenu)
13934 (update_submenu_strings): Remove functions.
13935 (xmalloc_widget_value): Remove and declare extern.
13936
13937 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
13938 (OBJ1): Build it.
13939
13940 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
13941 (local_heap, local_alloc, local_free, malloc_widget_value)
13942 (free_widget_value): Define here.
13943
139442008-06-09 Kenichi Handa <handa@m17n.org>
13945
13946 * font.h (Qascii_0): Extern it.
13947
13948 * font.c (Qascii_0): New variable.
13949 (syms_of_font): DEFSYM it.
13950 (font_open_by_name): If the registry "iso8859-1" fails, try also
13951 "ascii-0".
13952
13953 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
13954
139552008-06-08 Kenichi Handa <handa@m17n.org>
13956
13957 * .gdbinit (xfont): New command.
13958
139592008-06-08 Andreas Schwab <schwab@suse.de>
13960
13961 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
13962 * Makefile.in (menu.o): Update dependencies.
13963
13964 * Makefile.in (obj): Always add menu.o.
13965 * emacs.c (main): Always call syms_of_menu.
13966 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
13967
139682008-06-08 Chong Yidong <cyd@stupidchicken.com>
13969
13970 * Makefile.in: Compile menu.c.
13971
13972 * lisp.h: Declare syms_of_menu.
13973
13974 * emacs.c (main): Call syms_of_menu.
13975
13976 * keyboard.h: Relocate platform-independent menu definitions from
13977 xmenu.c.
13978
13979 * menu.c: New file. Relocate platform-independent menu
13980 definitions from xmenu.c. Suggested by Adrian Robert.
13981
13982 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 13983 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
13984 (menu_items_used, menu_items_n_panes)
13985 (menu_items_submenu_depth): Move to keyboard.h.
13986 (init_menu_items, finish_menu_items, unuse_menu_items)
13987 (discard_menu_items, restore_menu_items, save_menu_items)
13988 (grow_menu_items, push_submenu_start, push_submenu_end)
13989 (push_left_right_boundary, push_menu_pane, push_menu_item)
13990 (keymap_panes, single_keymap_panes, single_menu_item)
13991 (list_of_panes, list_of_items, find_and_call_menu_selection)
13992 (xmalloc_widget_value, free_menubar_widget_value_tree)
13993 (parse_single_submenu, digest_single_submenu)
13994 (update_submenu_strings): Move to menu.c.
13995
139962008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
13997
13998 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
13999
140002008-06-06 Miles Bader <miles@gnu.org>
14001
14002 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
14003 face, not frame default.
14004
140052008-06-05 Martin Rudalics <rudalics@gmx.at>
14006
14007 * window.c (pop_up_windows, pop_up_frames)
14008 (display_buffer_reuse_frames, Vpop_up_frame_function)
14009 (Vdisplay_buffer_function, Veven_window_heights)
14010 (Vspecial_display_buffer_names, Vspecial_display_regexps)
14011 (Vspecial_display_function, Vsame_window_buffer_names)
14012 (Vsame_window_regexps, split_height_threshold)
14013 (Vsplit_window_preferred_function): Move those vars to window.el.
14014 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
14015 (Fdisplay_buffer): Move those functions to window.el.
14016 (syms_of_window): Remove corresponding declarations.
14017 (display_buffer): New function.
14018 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
14019 * dispnew.c (Flast_nonminibuf_frame): New function.
14020 * buffer.c (Fpop_to_buffer): Move to window.el.
14021
140222008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14023
14024 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
14025
140262008-06-05 Kenichi Handa <handa@m17n.org>
14027
14028 * coding.c (detect_coding): Fix previous change.
14029 (detect_coding_system): Likewise.
14030
140312008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14032
14033 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
14034
14035 * keymap.c (Vminibuffer_local_filename_must_match_map):
14036 Rename from Vminibuffer_local_must_match_filename_map.
14037 (syms_of_keymap):
14038 * minibuf.c (Fcompleting_read): Adjust accordingly.
14039 * commands.h: Rename declaration as well.
14040
140412008-06-05 Kenichi Handa <handa@m17n.org>
14042
14043 * font.c (Ffont_spec): Don't use font_parse_family_registry for
14044 family name.
14045 (Ffont_put): Likewise.
14046
14047 * fontset.c (fontset_find_font): Call font_open_for_lface with the
14048 current font-spec.
14049
14050 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
14051 is unspecified.
14052
14053 * xfaces.c (realize_x_face): If the font-related face attributes
14054 are the same as those of default face, realize a new fontset from
14055 default->fontset.
14056 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
14057
140582008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14059
14060 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
14061 (move_it_in_display_line): New wrapper.
14062
14063 * window.c (window_scroll_pixel_based_preserve_x)
14064 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
14065 (window_scroll_pixel_based, window_scroll_line_based):
14066 Use them to preserve column positions.
14067 (syms_of_window): Initialize them.
14068
14069 * indent.c (Fvertical_motion): Extend first arg to allow passing an
14070 (HPOS . VPOS) pair.
14071
14072 * dispextern.h (move_it_in_display_line): Declare.
14073
140742008-06-05 Juanma Barranquero <lekktu@gmail.com>
14075
14076 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
14077 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
14078 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
14079
140802008-06-04 Juanma Barranquero <lekktu@gmail.com>
14081
14082 * window.c (Fset_window_parameter): Doc fix.
14083 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
14084
140852008-06-04 Joakim Verona <joakim@verona.se>
14086
14087 * window.h (struct window): Add new member window_parameters.
14088
14089 * window.c (Fwindow_parameters, Fwindow_parameter)
14090 (Fset_window_parameter): New defuns.
14091 (syms_of_window): Defsubr the new defuns.
14092 (make_window): Initialize window_parameters to nil.
14093
140942008-06-04 John Paul Wallington <jpw@pobox.com>
14095
14096 * eval.c (Fdefmacro): Doc fix.
14097
140982008-06-04 Kenichi Handa <handa@m17n.org>
14099
14100 * coding.c (detect_coding): Fix handling of coding->head_ascii.
14101 Be sure to call setup_coding_system when we find a proper coding system.
14102 (detect_coding_system): Fix handling of coding->head_ascii.
14103
141042008-06-03 Andreas Schwab <schwab@suse.de>
14105
14106 * font.c (font_prop_validate_spacing): Fix last change.
14107
141082008-06-03 Kenichi Handa <handa@m17n.org>
14109
14110 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
14111 (font_parse_fcname): Fix handling of unknown key.
14112
14113 * xfont.c (xfont_list): Try an alias.
14114
14115 * charset.c (char_charset): Return NULL if the arg charset_list is
14116 specified and C doesn't belong to any of them.
14117
141182008-06-02 Chip Coldwell <coldwell@redhat.com>
14119
14120 * font.c (font_pixel_size): Don't take cdr of an integer.
14121
141222008-06-02 Jim Meyering <meyering@redhat.com>
14123
14124 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
14125 * alloc.c (xfree): Return right away for a NULL arg.
14126 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
14127 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
14128 * mac.c (create_apple_event_from_event_ref): Likewise.
14129 (create_apple_event_from_drag_ref, cfstring_create_normalized):
14130 Likewise.
14131 * doprnt.c (doprnt1): Likewise.
14132 * frame.c (frame): Likewise.
14133 * keyboard.c (wipe_kboard): Likewise.
14134 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
14135 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
14136 * term.c (tty_default_color_capabilities, maybe_fatal)
14137 (delete_tty): Likewise.
14138 * w16select.c (string): Likewise.
14139 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
14140 * w32bdf.c (w32_free_bdf_font): Likewise.
14141 * w32fns.c (w32_unload_font): Likewise.
14142 * w32font.c (w32font_close): Likewise.
14143 * window.c (size_window): Likewise.
14144 * xselect.c (receive_incremental_selection): Likewise.
14145 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
14146 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
14147 * w32.c (stat): Likewise.
14148
14149 Remove useless if-before-free tests.
14150 * editfns.c (Fset_time_zone_rule): Likewise.
14151 * lread.c (nosuffix): Likewise.
14152 * ralloc.c (get_bloc): Likewise.
14153 * regex.c (reg_free): Likewise.
14154 * xftfont.c (xftfont_open, xftfont_close): Likewise.
14155 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
14156 * xsmfns.c (smc_save_yourself_CB): Likewise.
14157
141582008-06-02 Kenichi Handa <handa@m17n.org>
14159
14160 * font.c (font_find_for_lface): Handle float font size.
14161 (font_open_for_lface): Likewise.
14162
14163 * xfaces.c (x_supports_face_attributes_p): Check face->font before
14164 comparing the properties.
14165
141662008-06-01 Jason Rumney <jasonr@gnu.org>
14167
14168 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
14169 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
14170 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
14171 Don't add empty script list.
14172 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
14173
141742008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
14175
14176 * Makefile.in (dot, dotdot): Remove, update users.
14177 ".." has been used elsewhere in the file for a long time.
14178 (LIBXT_STATIC): Remove conditional based on unused variable.
14179
141802008-06-01 Miles Bader <miles@gnu.org>
14181
14182 * xfaces.c (Vface_remapping_alist): New variable.
14183 (syms_of_xfaces): Initialize it.
14184 (enum named_merge_point_kind): New type.
14185 (struct named_merge_point): Add `named_merge_point_kind' field.
14186 (push_named_merge_point): Make cycle detection respect different
14187 named-merge-point kinds.
14188 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
14189 Remove face-name alias resolution.
14190 (lface_from_face_name): New definition using
14191 `lface_from_face_name_no_resolve'.
14192 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
14193 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
14194 (get_lface_attributes): New definition that layers face-remapping on
14195 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
14196 (lookup_basic_face): New function.
14197 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
14198 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
14199 `get_lface_attributes'.
14200 (face_at_buffer_position): Use `lookup_basic_face' to lookup
14201 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
14202 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
14203
14204 * xdisp.c (init_iterator): Pass base_face_id through
14205 `lookup_basic_face' when we actually use it as a face-id.
14206 (handle_single_display_prop): Use `lookup_basic_face' to lookup
14207 DEFAULT_FACE_ID.
14208
14209 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
14210 lookup the initial face-id.
14211
14212 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
14213
142142008-06-01 Juanma Barranquero <lekktu@gmail.com>
14215
14216 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
14217 (Fremove_text_properties): Fix typos in docstrings.
14218
142192008-05-31 Kenichi Handa <handa@m17n.org>
14220
14221 * font.c (font_list_entities): Fix the car part of data to be
14222 stored in the cache.
14223
14224 * ftfont.c (ftfont_font_format): Don't use strcasestr.
14225
142262008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14227
14228 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
14229 Add a `test' argument so another predicate than `equal' can be used.
14230 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
14231 (map_char_table): Remove unused vars `c' and `i'.
14232 * lisp.h (Foptimize_char_table): Adjust declaration.
14233 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
14234
142352008-05-30 Kenichi Handa <handa@m17n.org>
14236
14237 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
14238 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
14239 defined.
14240
142412008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14242
14243 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
14244 (Fmake_variable_frame_local): Disallow mixing buffer-local and
14245 frame-local settings for the same variable.
14246
142472008-05-30 Kenichi Handa <handa@m17n.org>
14248
14249 * fontset.c (Ffont_info): Move to font.c.
14250 (syms_of_fontset): Delete defsubr of Sfont_info.
14251
14252 * font.c (font_style_to_value, font_score): Delete casting of the
14253 args to xstcasecmp.
14254 (register_font_driver): Increment num_font_drivers only when
14255 registering the driver globally.
14256 (Ffont_info): Move from fontset.c. Handle a font object too.
14257 (syms_of_font): Defsubr Sfont_info.
14258
142592008-05-29 Kenichi Handa <handa@m17n.org>
14260
14261 * coding.h (enum define_coding_utf8_arg_index): New enum.
14262 (enum coding_attr_index): Change coding_attr_utf_16_bom to
14263 coding_attr_utf_bom.
14264 (enum utf_bom_type): Rename from utf_16_bom_type.
14265 (struct utf_16_spec): Adjust for the above change.
14266 (struct coding_system): Add utf_8_bom in `spec' union.
14267
14268 * coding.c (CODING_UTF_8_BOM): New macro.
14269 (enum coding_category): Delete coding_category_utf_8, add
14270 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
14271 coding_category_utf_8_sig.
14272 (CATEGORY_MASK_UTF_8): Delete it.
14273 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
14274 (CATEGORY_MASK_UTF_8_SIG): New macros.
14275 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
14276 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
14277 CATEGORY_MASK_UTF_8_SIG.
14278 (CATEGORY_MASK_UTF_8): New macro.
14279 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
14280 (detect_coding_utf_8): Check BOM.
14281 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
14282 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
14283 (encode_coding_utf_16): Likewise.
14284 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
14285 (detect_coding, detect_coding_system): Handle utf-8-auto.
14286 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
14287 (syms_of_coding): Fix setting up of Vcoding_category_table.
14288
142892008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
14290
14291 * process.c (Faccept_process_output): If `millisec' is non-nil,
14292 `seconds' default to 0.
14293 (wait_reading_process_output): Also return non-nil if we read output
14294 from a non-running process.
14295
142962008-05-29 Jason Rumney <jasonr@gnu.org>
14297
14298 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
14299 `raster' specified.
14300 (add_font_entity_to_list): Allow non-opentype truetype fonts back
14301 in the uniscribe backend, but disallow any font that has no
14302 unicode subrange support.
14303
143042008-05-29 Juanma Barranquero <lekktu@gmail.com>
14305
14306 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
14307 Fix typos in docstrings.
14308
143092008-05-29 Kenichi Handa <handa@m17n.org>
14310
14311 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
14312 (Fx_family_fonts): Set frame correctly.
14313
143142008-05-28 Jason Rumney <jasonr@gnu.org>
14315
14316 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
14317
143182008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
14319
14320 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
14321 calling build_annotations.
14322
143232008-05-28 Juanma Barranquero <lekktu@gmail.com>
14324
14325 * coding.c (Fdecode_coding_region, Fencode_coding_region)
14326 (Fencode_coding_string):
14327 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
14328 <latin-extra-code-table>: Fix typos in docstrings.
14329 (syms_of_coding) <coding-system-alist>: Doc fix.
14330 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
14331
143322008-05-28 Kenichi Handa <handa@m17n.org>
14333
14334 * fontset.c (Ffont_info): Don't call font_close_object.
14335
14336 * font.c (font_parse_family_registry): Use Ffont_put to validate
14337 foundry and family.
14338 (font_delete_unmatched): Don't check spacing.
14339 (font_list_entities): Add spacing to the spec to list fonts.
14340
14341 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
14342 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
14343
14344 * coding.c (encode_coding_raw_text): Fix previous change.
14345 (encode_coding_object): When the dst_object is a buffer and is
14346 different from src_object, move gap to PT.
14347
143482008-05-27 Chong Yidong <cyd@stupidchicken.com>
14349
14350 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
14351
143522008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14353
14354 * coding.c (encode_coding_raw_text): Set coding->produced_char for
14355 all branches. Compute it differently.
14356
14357 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
14358
143592008-05-27 Juanma Barranquero <lekktu@gmail.com>
14360
14361 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
14362 into "else if () ... else ...".
14363
143642008-05-27 Jason Rumney <jasonr@gnu.org>
14365
14366 * w32font.c (w32font_open_internal): Determine if glyph indices
14367 are likely to work here.
14368
143692008-05-27 Chong Yidong <cyd@stupidchicken.com>
14370
14371 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
14372 draw overlap glyphs with appropriate highlighting.
14373
143742008-05-27 Kenichi Handa <handa@m17n.org>
14375
14376 * xfont.c (xfont_open): Fix calculation of font->average_width.
14377
143782008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14379
14380 * casefiddle.c (casify_object): Try to guess better whether the
14381 argument is a byte or a char.
14382
143832008-05-26 Andreas Schwab <schwab@suse.de>
14384
14385 * xselect.c (x_reply_selection_request): Properly handle format == 32.
14386 Always send multiples of format size.
14387
14388 * xterm.c (x_set_frame_alpha): Fix type mismatch.
14389
143902008-05-26 Jason Rumney <jasonr@gnu.org>
14391
14392 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
14393 (compute_metrics): Don't set failure if we just cleared the cache.
14394 (w32_weight_table): Remove unused variable.
14395 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
14396 backwards compatibility.
14397
143982008-05-25 Kenichi Handa <handa@m17n.org>
14399
14400 * w32term.c (x_draw_glyph_string):
14401 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
14402
14403 * xfaces.c: Delete unused function prototypes.
14404 (xstrlwr, font_frame): Delete them.
14405 (clear_face_cache): Delete unused variable.
14406
14407 * xftfont.c (xftfont_open): Delete unused variable.
14408 If underline_thickness is not 1, adjust underline_position.
14409
14410 * ftxfont.c (ftxfont_open): Delete unused variable.
14411
14412 * fontset.c (face_for_char): Optimize for the case of no charset
14413 property.
14414
14415 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
14416 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
14417 (otf_open, font_otf_capability, generate_otf_features)
14418 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14419 Comment out by surrounding "#if 0" and "#endif" for the moment.
14420 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
14421 (syms_of_font): Codes for accessing above commented out.
14422
144232008-05-24 Eli Zaretskii <eliz@gnu.org>
14424
14425 * w32proc.c: Include dispextern.h.
14426
14427 * w32.c: Include dispextern.h.
14428
144292008-05-23 Juanma Barranquero <lekktu@gmail.com>
14430
14431 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
14432 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
14433 Fix typos in docstrings.
14434
144352008-05-23 Jason Rumney <jasonr@gnu.org>
14436
14437 * xsmfns.c: Remove includes that are already included by config.h.
14438
144392008-05-23 Kenichi Handa <handa@m17n.org>
14440
14441 * charset.c (Qemacs, charset_emacs): New variables.
14442 (char_charset): Fix for non-Unicode characters.
14443 (syms_of_charset): Define charset_emacs.
14444
14445 * w32term.c (x_draw_glyph_string): Be sure to update
14446 s->underline_thickness and s->underline_position. Be sure to draw
14447 underline within the current line area.
14448
14449 * xterm.c (x_draw_glyph_string): Be sure to update
14450 s->underline_thickness and s->underline_position. Be sure to draw
14451 underline within the current line area.
14452
14453 * fontset.c: Delete unused variables and add casting for char *
14454 throughout the file.
14455 (fontset_font): Try the fallback fonts of the current fontset
14456 before consulting the default fontset.
14457
14458 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
14459
14460 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
14461
144622008-05-22 Jason Rumney <jasonr@gnu.org>
14463
14464 * font.c: Don't include strings.h.
14465
14466 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
14467
14468 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
14469 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
14470 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
14471 to call xstrcasecmp.
14472
14473 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
14474
14475 * fontset.c (fs_query_fontset): Use xstrcasecmp.
14476
14477 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
14478
14479 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
14480
144812008-05-22 Kenichi Handa <handa@m17n.org>
14482
14483 * puresize.h (BASE_PURESIZE): Increase to 1220000.
14484
14485 * font.c (font_prop_validate_style): Adjust for the format
14486 change of font_style_table.
14487
14488 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
14489 two args.
14490
14491 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
14492 two args.
14493
144942008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
14495
14496 * minibuf.c (keys_of_minibuf): Delete.
14497 * lisp.h (keys_of_minibuf): Delete.
14498 * emacs.c (main): Don't call keys_of_minibuf.
14499
145002008-05-22 Kenichi Handa <handa@m17n.org>
14501
14502 * ftfont.c (ftfont_resolve_generic_family): Rename from
14503 ftfont_list_generic_family. Return a single family for each
14504 generic family.
14505 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
14506 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
14507 Call font_add_log.
14508 (ftfont_match): Call font_add_log.
14509
14510 * font.h (Ffont_xlfd_name): EXFUN adjusted.
14511 (FONT_DEBUG): Define it.
14512 (font_add_log): Extern it.
14513 (font_assert): Rename from xassert.
14514
14515 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
14516 (xfont_list_family): Call font_add_log.
14517 (xfont_match): Likewise.
14518 (memq_no_quit): Delete.
14519
14520 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
14521 call of Ffont_xlfd_name.
14522
14523 * xfaces.c (struct table_entry, slant_table, weight_table)
14524 (swidth_table): Move to font.c.
14525
14526 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
14527 xassert are changed to font_assert. Delete many unused variables.
14528 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
14529 New variables.
14530 (struct table_entry): Move from xfaces.c and modified.
14531 (weight_table, slant_table, width_table): Move from xfaces.c and
14532 contents adjusted for the change of struct table_entry.
14533 (font_style_to_value, font_style_symbolic): Adjust for the
14534 format change of font_style_table.
14535 (font_parse_family_registry): Don't overwrite existing foundry and
14536 family of font_spec.
14537 (font_score): Fix calculation of diff for sizes.
14538 (font_sort_entites): Call font_add_log.
14539 (font_delete_unmatched): Return a newly created list.
14540 (font_list_entities): Fix previous change. Call font_add_log.
14541 (font_matching_entity, font_open_entity, font_close_entity):
14542 Call font_add_log.
14543 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
14544 (Finternal_set_font_style_table): Delete.
14545 (BUILD_STYLE_TABLE): New macro.
14546 (build_style_table): New function.
14547 (Vfont_log, font_log_env_checked): New variables.
14548 (font_add_log): New function.
14549 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
14550 Declare Lisp variables "font-weight-table", "font-slant-table",
14551 "font-width-table", and "font-log". Initialize font_style_table.
14552
145532008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
14554
14555 * xterm.c (x_set_frame_alpha): Move declarations before statements.
14556
145572008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14558 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14559
14560 * frame.c (Qalpha): Add a new frame parameter `alpha'.
14561 (Vframe_alpha_lower_limit): New variable.
14562 (x_set_alpha): New function.
14563
14564 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
14565
14566 * xfns.c (x-create-frame, Qalpha):
14567 Initialize the frame parameter `alpha'.
14568 * xterm.c (OPAQUE, OPACITY): New.
14569 (x_set_frame_alpha): New function.
14570 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
14571
14572 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
14573 * w32fns.c (w32_frame_parm_handlers): Likewise.
14574
145752008-05-20 Jason Rumney <jasonr@gnu.org>
14576
14577 * w32font.c (add_font_entity_to_list): Don't add non-opentype
14578 truetype fonts to opentype list.
14579
145802008-05-20 Juanma Barranquero <lekktu@gmail.com>
14581
14582 * fontset.c (Ffontset_info): Doc fix.
14583 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
14584 <ignore-relative-composition>: Fix typos in docstrings.
14585
14586 * font.c (syms-of-font) <font-encoding-alist>:
14587 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
14588 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
14589 (Ffont_otf_alternates): Doc fixes.
14590
145912008-05-20 Kenichi Handa <handa@m17n.org>
14592
14593 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
14594 font.h through out the file.
14595 (FONT_DRIVERS): Rename from FONTOBJ.
14596 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
14597 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
14598
14599 * emacs.c (main): Call syms_of_font unconditionally.
14600
14601 * font.h (find_font_encoding): Extern it.
14602
14603 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
14604 fontset.c.
194d44e7 14605 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
14606 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
14607 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
14608 only when HAVE_WINDOW_SYSTEM is defined.
14609 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
14610 when HAVE_WINDOW_SYSTEM is defined.
14611
14612 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
14613 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
14614
14615 * xfaces.c: Include font.h unconditionally.
14616 (merge_face_ref, merge_face_vectors)
14617 (Finternal_set_lisp_face_attribute): Cancel the previous change.
14618
146192008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
14620
14621 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
14622 indirect_variable.
14623 * eval.c (lisp_indirect_variable): New fun.
14624 (Fuser_variable_p): Use it.
14625
146262008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14627
14628 * lisp.h (indirect_variable):
14629 * data.c (indirect_variable, let_shadows_buffer_binding_p):
14630 Use Lisp_Symbol pointers rather than Lisp_Object.
14631 Adjust callers.
14632 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
14633 To this end, change calling-convention.
14634
14635 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
14636 if some non-hidden buffers are selected by string&pred.
14637
146382008-05-19 Chong Yidong <cyd@stupidchicken.com>
14639
14640 * process.c (wait_reading_process_output): Always check status
14641 when in batch mode.
14642
146432008-05-19 Kenichi Handa <handa@m17n.org>
14644
14645 * font.c (font_list_entities): Fix handling of cache.
14646 (font_matching_entity): Likewise.
14647
14648 * ftfont.c (cs_iso8859_1): Delete.
14649 (ft_face_cache): New variable.
14650 (struct ftfont_info): New member fc_charset_idx.
14651 (ftfont_build_basic_charsets): Delete.
14652 (fc_charset_table): New variable.
14653 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
14654 . FC_CHARSET_IDX) as :font-entity property in the font entity.
14655 Callers changed.
14656 (ftfont_lookup_cache, ftfont_get_charset): New functions.
14657 (ftfont_spec_pattern): New argument fc_charset_idx.
14658 Check registry more rigidly. Change callers.
14659 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
14660 change of :font-entity property of the font.
14661
14662 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
14663 property of the font.
14664
146652008-05-18 Juanma Barranquero <lekktu@gmail.com>
14666
14667 * coding.c (Fcoding_system_p): Rename argument to match docstring.
14668 (Funencodable_char_position, Fcheck_coding_systems_region)
14669 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
14670 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
14671 (Ffind_operation_coding_system, Fset_coding_system_priority)
14672 (Fcoding_system_eol_type): Doc fixes.
14673
146742008-05-17 Glenn Morris <rgm@gnu.org>
14675
14676 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
14677
146782008-05-16 Eli Zaretskii <eliz@gnu.org>
14679
14680 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
14681 and st_gid.
14682
14683 * frame.c (Fdelete_frame): Don't call font_update_drivers if
14684 HAVE_WINDOW_SYSTEM is not defined.
14685
14686 * xfaces.c (merge_face_ref, merge_face_vectors)
14687 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
14688 HAVE_WINDOW_SYSTEM is defined.
14689 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
14690
146912008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
14692
14693 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
14694
146952008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14696
14697 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
14698
146992008-05-15 Kenichi Handa <handa@m17n.org>
14700
14701 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
14702 preference.
14703
147042008-05-15 Glenn Morris <rgm@gnu.org>
14705
14706 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
14707
147082008-05-15 Chong Yidong <cyd@stupidchicken.com>
14709
14710 * fns.c (init_fns): Don't initialize weak_hash_tables here.
14711 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
14712
14713 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
14714
147152008-05-15 Kenichi Handa <handa@m17n.org>
14716
14717 * ftfont.c (ftfont_list): Downcase family name to check generic
14718 families.
14719
14720 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
14721 font-spec for QCfont value.
14722
14723 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
14724 buffer. Check the return value of it.
14725
147262008-05-14 Jason Rumney <jasonr@gnu.org>
14727
14728 * w32term.c (w32_get_glyph_overhangs): Remove.
14729 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
14730
147312008-05-14 Kenichi Handa <handa@m17n.org>
14732
14733 * font.c (font_prop_validate): Make nil a valid value.
14734 (font_clear_cache): Check if the cached vector of entities is nil
14735 or not.
14736
147372008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14738
14739 * emacs.c (main_thread): Conditionalize on
14740 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14741 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
14742
14743 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
14744 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
14745 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14746
147472008-05-14 Kenichi Handa <handa@m17n.org>
14748
14749 * coding.c (detect_coding_iso_2022): Ignore a coding category that
14750 has no corresponding coding system.
14751
147522008-05-14 Jason Rumney <jasonr@gnu.org>
14753
14754 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
14755
14756 * w32font.h (w32font_open_internal): Update declaration.
14757
14758 * w32font.c (w32font_open_internal): Change last argument from
14759 w32font_info struct to font object. Fill in font object from
14760 font_entity. Get Outline metrics if possible. Use them to
14761 calculate underline position and thickness. Use xlfd name as name
14762 property. Don't set codepage.
14763 (w32font_open): Pass font_object to w32font_open_internal. Don't
14764 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
14765 (w32font_draw): Use s->font.
14766 (clear_cached_metrics): Don't clear non-existent blocks.
14767
14768 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
14769 font was not found.
14770 (x_draw_glyph_string): Use underline position and thickness from font.
14771
14772 * w32uniscribe.c (uniscribe_open): Pass font_object to
14773 w32font_open_internal.
14774
147752008-05-14 Kenichi Handa <handa@m17n.org>
14776
14777 These changes are to delete all legacy font-handling codes, and
14778 make Emacs use only font-backends.
14779
14780 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
14781 (frame.o, image.o, print.o): Depend on $(FONTSRC).
14782
14783 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
14784
14785 * charset.h (Vcharset_non_preferred_head)
14786 (Vcurrent_iso639_language): Extern them.
14787
14788 * charset.c (Vcharset_non_preferred_head): New variable.
14789 (Vcurrent_iso639_language): New variable.
14790 (syms_of_charset): Declare it as a Lisp variable.
14791 (char_charset): Don't check non preferred charsets. As a last
14792 resort, return charset_unicode.
14793 (Fset_charset_priority): Update Vcharset_non_preferred_head.
14794
14795 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
14796 conditionals. Don't check enable_font_backend. Delete all codes
14797 used only when USE_FONT_BACKEND is not defined.
14798
14799 * dispextern.h (struct glyph_string): Change type of `font' to
14800 `struct font *'.
14801 (struct glyph_string): New member underline_position and
14802 underline_thickness.
14803 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
14804 (struct face): Change type of `font' to `struct font *'. Remove
14805 members `font_name', `font_info_id'.
14806 (per_char_metric, encode_char): Delete externs.
14807 (calc_pixel_width_or_height): Adjust the prototype.
14808
14809 * emacs.c (enable_font_backend): Delete extern.
14810 (main): Don't set enable_font_backend. Don't check the command
14811 line argument "-disable-font-backend".
14812
14813 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
14814 (enum font_property_index): New members FONT_DPI_INDEX,
14815 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
14816 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
14817 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
14818 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
14819 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
14820 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
14821 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
14822 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
14823 (struct font_spec, struct font_entity): New structs.
14824 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
14825 (struct font): Many members from old "struct font_info" moved to
14826 here. Members font and entity deleted.
14827 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
14828 the new font-related objects.
14829 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
14830 (CHECK_FONT_GET_OBJECT): Likewise.
14831 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
14832 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
14833 (struct font_driver): New members case_sensitive anc check. Type
14834 of the member list and open changed.
14835 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
14836 (font_symbolic_width, font_find_object, font_get_spec)
14837 (font_set_lface_from_name): Delete extern.
14838 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
14839
14840 * font.c: Include <strings.h>.
14841 (enable_font_backend): Delete it.
14842 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
14843 (CHECK_VALIDATE_FONT_SPEC): Delete it.
14844 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
14845 (null_string): Delete it.
14846 (null_vector): Make it static.
14847 (font_family_alist): Delete it.
14848 (Qnormal): Extern it.
14849 (QCextra, QClanguage): Delete it.
14850 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
14851 (font_make_spec, font_make_entity, font_make_object)
14852 (font_intern_prop): Renamed from intern_downcase. Don't downcase
14853 the string. Callers changed.
14854 (font_pixel_size): Adjusted for the format change of font-related
14855 objects.
14856 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
14857 (font_style_to_value, font_style_symbolic): New function.
14858 (build_font_family_alist): Delete it.
14859 (font_registry_charsets): Use Fassoc_string instead of
14860 assq_no_quit.
14861 (font_prop_validate_symbol): Don't return null_string.
14862 (font_prop_validate_style): Adjusted for the change of
14863 style-related values in a font vector.
14864 (font_property_table): Delete entries for QClanguage and
14865 QCantialias, add entries for QCavgwidth.
14866 (get_font_prop_index): Delete the 2nd argument FROM.
14867 (font_prop_validate): Arguments changed.
14868 (font_put_extra): Adjusted for the change of font-related objects.
14869 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
14870 (font_parse_fcname, font_unparse_fcname)
14871 (font_prepare_composition): Likewise.
14872 (font_parse_family_registry): Renamed from font_merge_old_spec.
14873 (otf_open): Delete the 1st arg entity.
14874 (font_otf_capability): Adjusted for the above change.
14875 (font_score): New arg alternate_families. Adjusted for the change
14876 of font-related objects.
14877 (font_sort_entites): New arg best_only.
14878 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
14879 Delete them.
14880 (font_match_p): Check alternate families.
14881 (font_find_object): Delete it.
14882 (font_check_object): New function.
14883 (font_clear_cache): Adjusted for the change of font-related objects.
14884 (font_delete_unmatched): New arg.
14885 (font_list_entities): Call font_driver->list with a spec that
14886 doesn't specify style-related properties.
14887 (font_matching_entity): Arguments changed. Caller changed.
14888 (font_open_entity): Adjusted for the change of font-related objects.
14889 (font_close_object, font_has_char, font_encode_char)
14890 (font_get_name, font_get_spec): Likewise.
14891 (font_spec_from_name, font_clear_prop, font_update_lface):
14892 New functions.
14893 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
14894 (font_prepare_for_face, font_done_for_face, font_open_by_name)
14895 (font_at): Adjusted for the change of font-related objects.
14896 (font_range): New function.
14897 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
14898 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
14899 (Fcopy_font_spec, Fmerge_font_spec): New function.
14900 (Ffont_family_list): Renamed from list-families.
14901 (Finternal_set_font_style_table): Arguments changed.
14902 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
14903 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
14904 change of font-related objects.
14905 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
14906
14907 * fontset.h (struct font_info): Delete it. Most members go to
14908 struct font.
14909 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
14910 (enum FONT_SPEC_INDEX): Delete it.
14911 (font_info, list_fonts_func, load_font_func, query_font_func)
14912 (set_frame_fontset_func, find_ccl_program_func)
14913 (get_font_repertory_func, new_fontset_from_font_name): Delete
14914 externs.
14915 (fontset_from_font_name): Extern it.
14916 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
14917 (FONT_INFO_FROM_FACE): Deleted.
14918 (face_for_font): Adjust prototype.
14919
14920 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
14921 conditionals. Don't check enable_font_backend. Delete all codes
14922 used only when USE_FONT_BACKEND is not defined.
14923 (get_font_info_func, list_font_func, load_font_func)
14924 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
14925 (get_font_repertory_func): Delete them.
14926 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
14927 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
14928 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
14929 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
14930 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
14931 (fontset_compare_rfontdef): New function.
14932 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
14933 rfont-defs by qsort. Adjusted for the change of font-group vector.
14934 (load_font_get_repertory): Deleted.
14935 (fontset_find_font): Use new macros to ref/set elements of
14936 font-def and rfont-def.
14937 (fontset_font): Fix the timing of remembering that no font for C.
14938 (free_face_fontset): Do nothing if the face has no fontset.
14939 (face_suitable_for_char_p): Use new macros to ref/set elements of
14940 rfont-def.
14941 (face_for_char): Likewise. Call face_for_char with font_object.
14942 (fs_load_font): Delete. Delete #pragma surrounding it.
14943 (fs_query_fontset): Use strcasecmp instead of strcmp.
14944 (generate_ascii_font_name): Adjusted for the format change of
14945 font-spec.
14946 (Fset_fontset_font): Likewise. Use new macros to set elements of
14947 font-def.
14948 (Fnew_fontset): Use font_unparse_xlfd to generate
14949 FONTSET_ASCII (fontset).
14950 (new_fontset_from_font_name): Deleted.
14951 (fontset_from_font): Renamed from new_fontset_from_font. Check if
14952 a fontset is already created for the font. FIx updating of
14953 Vfontset_alias_alist.
14954 (fontset_ascii_font): Deleted.
14955 (Ffont_info): Adjusted for the format change of font-spec.
14956 (Finternal_char_font): Likewise.
14957 (Ffontset_info): Likewise.
14958 (syms_of_fontset): Don't check load_font_func.
14959
14960 * fns.c (internal_equal): Handle PREV_FONT.
14961
14962 * frame.h: Delete USE_FONT_BACKEND conditional.
14963
14964 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
14965 conditionals. Don't check enable_font_backend. Delete all codes
14966 used only when USE_FONT_BACKEND is not defined.
14967 (x_set_font): Call x_new_font, not x_new_fontset2.
14968 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
14969 already set for the frame.
14970
14971 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
14972 a font-entity by font_make_entity. Use font_intern_prop instead
14973 of intern_downcase. Use FONT_SET_STYLE to set a style-related
14974 font property. If a font is scalable, set avgwidth property to 0.
14975 Set font-entity property by font_put_extra.
14976 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
14977 (ffont_driver): Adjusted for the change of struct font_driver.
14978 (ftfont_spec_pattern): New function.
14979 (ftfont_list): Return a list, not vector.
14980 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
14981 (ftfont_list_family): Don't downcase names.
14982 (ftfont_free_entity): Deleted.
14983 (ftfont_open): Return a font-object. Adjusted for the change of
14984 struct font. Get underline_thickness and underline_position from
14985 font property. Don't update dpyinfo->smallest_font_height and
14986 dpyinfo->smallest_char_width.
14987 (ftfont_close): Don't free `struct font'.
14988 (ftfont_has_char): Adjusted for the format change of font-entity.
14989 (ftfont_encode_char, ftfont_text_extents): Likewise.
14990
14991 * ftxfont.c (ftxfont_list): Return a list, not vector.
14992 (ftxfont_open): Return a font-object. Adjusted for the change of
14993 struct font. Get underline_thickness and underline_position from
14994 font property. Don't update dpyinfo->smallest_font_height and
14995 dpyinfo->smallest_char_width.
14996 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
14997 (ftxfont_draw): Adjusted for the change of struct font.
14998
14999 * image.c (image_ascent): Don't include "charset.h". Include
15000 "character.h" and "font.h".
15001
15002 * lisp.h (enum pvec_type): New member PREV_FONT.
15003 (Fassoc_string): EXFUN it.
15004
15005 * print.c: Include font.h.
15006 (print_object): Handle font-related objects.
15007
15008 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
15009 conditionals. Don't check enable_font_backend. Delete all codes
15010 used only when USE_FONT_BACKEND is not defined.
15011 (handle_auto_composed_prop): Do nothing if it->f is not on a
15012 window system. Check how many following characters can be
15013 displayed by the same font.
15014 (calc_pixel_width_or_height): Type of the 4th arg is changed to
15015 'struct font *'.
15016 (get_char_face_and_encoding): Assign the whole encoding task to
15017 the `encode-char' method of a font driver.
15018 (fill_composite_glyph_string): Adjusted for the change of `struct
15019 face' and `struct glyph_string'.
15020 (fill_glyph_string): Likewise.
15021 (get_per_char_metric): Arguments changed.
15022 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
15023 and `struct glyph_string'.
15024 (produce_stretch_glyph, calc_line_height_property)
15025 (x_produce_glyphs): Likewise.
15026
15027 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
15028 conditionals. Don't check enable_font_backend. Delete all codes
15029 used only when USE_FONT_BACKEND is not defined. Use
15030 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
15031 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
15032 (Qp): Extern them.
15033 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
15034 Deleted.
15035 (struct font_name): Deleted.
15036 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
15037 (compare_fonts_by_sort_order): New function.
15038 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
15039 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
15040 Deleted.
15041 (Fx_family_fonts): Use font_list_entities, and sort fonts by
15042 compare_fonts_by_sort_order.
15043 (Fx_font_family_list): Call Ffont_family_list.
15044 (face_numeric_value, face_numeric_weight, face_numeric_slant)
15045 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
15046 (face_symbolic_slant, face_symbolic_swidth)
15047 (split_font_name_into_vector, build_font_name_from_vector)
15048 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
15049 (font_rescale_ratio, split_font_name, build_font_name)
15050 (free_font_names, sort_fonts, x_face_list_fonts)
15051 (face_font_available_p, sorted_font_list, cmp_font_names)
15052 (font_list_1, concat_font_list, font_list, remove_duplicates):
15053 Deleted.
15054 (Fx_list_fonts): Use Ffont_list.
15055 (LFACE_AVGWIDTH): Deleted.
15056 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
15057 by FONTP.
15058 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
15059 (set_lface_from_font_name): Delete it.
15060 (set_lface_from_font): Renamed from
15061 set_lface_from_font_and_fontset. Caller changed. Don't set
15062 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
15063 for face.
15064 (merge_face_vectors): Copy font-spec if necessary.
15065 Clear properties of the font-spec if necessary.
15066 (merge_face_ref): Clear properties of the font-spec if necessary.
15067 (Finternal_set_lisp_face_attribute): Likewise.
15068 (set_font_frame_param): Use font_load_for_lface to load a
15069 font-object, and call Fmodify_frame_parameters with it.
15070 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
15071 font name by Ffont_xlfd_name.
15072 (Finternal_lisp_face_attribute_values): Don't check QCweight,
15073 QCslant, and QCwidth.
15074 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
15075 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
15076 Compare fonts by EQ.
15077 (lookup_non_ascii_face): Deleted.
15078 (face_for_font): The 2nd argument changed.
15079 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
15080 Check atomic font properties by case insensitive.
15081 (realize_non_ascii_face): Set face->overstrike correctly.
15082 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
15083 (dump_realized_face): Get font name from
15084 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
15085
15086 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
15087 conditionals. Don't check enable_font_backend. Delete all codes
15088 used only when USE_FONT_BACKEND is not defined.
15089 (xic_create_xfontset): Original code deleted and renamed from
15090 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
15091 (x_make_gc): Don't set GCFont in GCs.
15092 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
15093 opened by "fixed".
15094 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
15095 find_ccl_program_func, query_font_func, set_frame_fontset_func,
15096 get_font_repertory_func.
15097
15098 * xfont.c: Include <stdlib.h> and "ccl.h".
15099 (struct xfont_info): New structure.
15100 (xfont_query_font): Deleted.
15101 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
15102 moved from xterm.c.
15103 (xfont_driver): Adjusted for the change of struct font_driver.
15104 (compare_font_names): New function.
15105 (xfont_list_pattern): Sort font names case insensitively. Make
15106 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
15107 (xfont_list): Return a list, not vector.
15108 (xfont_match): If the font doesn't have QCname property, generate
15109 a name from the other font properties.
15110 (xfont_open): Return a font-object. Adjusted for the change of
15111 struct font. Get underline_thickness and underline_position from
15112 font property. Don't update dpyinfo->smallest_font_height and
15113 dpyinfo->smallest_char_width.
15114 (xfont_close): Don't free struct font.
15115 (xfont_prepare_face): Adjusted for the change of struct font.
15116 (xfont_done_face): Deleted.
15117 (xfont_has_char): Adjusted for the change of struct font.
15118 (xfont_encode_char, xfont_draw): Likewise.
15119 (xfont_check): New function.
15120
15121 * xftfont.c (xftfont_list): Adjusted for the change of `list'
15122 callback function.
15123 (xftfont_match): Adjusted for the format change of font-entity.
15124 (xftfont_open): Adjusted for the format change of font-entity and
15125 font-object. Adjusted for the change of struct font. Return a
15126 font-object. Don't update dpyinfo->smallest_font_height and
15127 dpyinfo->smallest_char_width.
15128 (xftfont_close): Block input while calling XftFontClose.
15129 (xftfont_prepare_face): Don't block input while calling
15130 xftfont_get_colors. Adjusted for the change of struct font.
15131 (xftfont_shape): Return value of error case fixed.
15132
15133 * xrdb.c (x_load_resources): Don't setup a fontset resource.
15134
15135 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
15136 conditionals.
15137 (FONT_WIDTH): Return (f)->max_width.
15138 (struct x_display_info): Delete member `font'.
15139 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
15140 (x_find_ccl_program, x_get_font_repertory): Delete externs.
15141 (struct x_output): Change type of `font' to `struct font *'.
15142
15143 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
15144 conditionals. Don't check enable_font_backend. Delete all codes
15145 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
15146 (x_per_char_metric, x_encode_char): Deleted.
15147 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
15148 (x_compute_glyph_string_overhangs): Adjusted for the change of
15149 `struct face'.
15150 (x_draw_glyph_string_foreground)
15151 (x_draw_composite_glyph_string_foreground): Likewise.
15152 (x_draw_glyph_string): Likewise. Use font->underline_position and
15153 font->underline_thickness.
15154 (x_new_font): Renamed from x_new_fontset2.
15155 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
15156 (x_check_font): Call `check' method of a font driver.
15157 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
15158 (x_query_font, x_get_font_repertory): Deleted.
15159 (x_find_ccl_program): Renamed and moved to xfont.c.
15160 (x_redisplay_interface): Adjusted for the change of `struct
15161 redisplay_interface'.
15162
15163 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
15164 conditionals. Don't check enable_font_backend. Delete all codes
15165 used only when USE_FONT_BACKEND is not defined. Surround non-used
15166 code by "#ifdef OLD_FONT" and "endif".
15167 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
15168
15169 * w32font.h (struct w32font_info): New member.
15170 (FONT_COMPAT): New macro.
15171 (w32font_open_internal): Prototype adjusted.
15172
15173 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
15174 OLD_FONT" and "endif".
15175
15176 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
15177 conditionals. Don't check enable_font_backend. Delete all codes
15178 used only when USE_FONT_BACKEND is not defined.
15179 (w32font_open): Return a font-object. Make a font-object by
15180 font_make_object. Adjusted for the change of struct w32font_info.
15181 (w32font_close): Don't free struct font. Adjusted for the change
15182 of struct w32font_info.
15183 (w32font_encode_char, w32font_text_extents, w32font_draw):
15184 Adjusted for the change of struct w32font_info.
15185 (w32font_draw): Likewise.
15186 (w32font_list_internal): Return a list, not vector.
15187 (w32font_open_internal): Change the 4th arg to font-object.
15188 Adjusted for the change of struct w32font_info and font-object format.
15189 (add_font_name_to_list): Don't downcase names.
15190 (w32_enumfont_pattern_entity): Make a font-entity by
15191 font_make_entity. Adjusted for the format change of font-entity.
15192 Use FONT_SET_STYLE to set a style-related font property. If a
15193 font is scalable, set avgwidth property to 0. Set font-entity
15194 property by font_put_extra.
15195 (font_matches_spec): Adjusted for the format change of font-entity.
15196 (w32_weight_table, w32_decode_weight): New variables.
15197 (w32_encode_weight): New function.
15198 (fill_in_logfont): Adjusted for the format change of font-spec.
15199 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
15200 weight value.
15201 (w32font_driver): Adjusted for the change of struct font_driver.
15202
15203 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
15204 conditionals. Don't check enable_font_backend. Surround non-used
15205 code by "#ifdef OLD_FONT" and "endif".
15206 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
15207 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
15208
15209 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
15210 conditionals. Don't check enable_font_backend. Delete all codes
15211 used only when USE_FONT_BACKEND is not defined. Surround non-used
15212 code by "#ifdef OLD_FONT" and "endif".
15213
15214 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
15215 (uniscribe_open): Return value changed to font-object.
15216 Adjusted for the format change of font-object.
15217 (uniscribe_otf_capability): Adjusted for the change of struct font.
15218 (add_opentype_font_name_to_list): Don't downcase names.
15219 (uniscribe_font_driver): Adjusted for the change of struct
15220 font_driver.
15221
152222008-05-13 Chong Yidong <cyd@stupidchicken.com>
15223
15224 * dispnew.c (update_frame_1): Check if tty output is still valid
15225 before flushing it.
15226
152272008-05-13 Jan Djärv <jan.h.d@swipnet.se>
15228
15229 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
15230 to Gtk+ menus.
15231
152322008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
15233
15234 * dired.c (file_name_completion): Tweak the code so as to always do it
15235 in a single pass. Tighten the scope of some variables.
15236
15237 * dired.c (Qdefault_directory): New var.
15238 (file_name_completion): Use it instead of Fexpand_file_name.
15239 (syms_of_dired): Initialize it.
15240
152412008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
15242
15243 * fileio.c (double_dollars): Remove dead code.
15244
152452008-05-10 Eli Zaretskii <eliz@gnu.org>
15246
15247 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
15248 Mention w32-get-true-file-attributes in doc string.
15249
15250 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
15251
152522008-05-09 Glenn Morris <rgm@gnu.org>
15253
15254 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
15255 2008-04-23.
15256
152572008-05-09 Eli Zaretskii <eliz@gnu.org>
15258
15259 Support for reporting owner and group of each file on MS-Windows:
15260 * dired.c (stat_uname, stat_gname): New functions, with special
15261 implementation for w32.
15262 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
15263
15264 * w32.c: Rename the_passwd_* to dflt_passwd_*.
15265 (dflt_group_name): New static variable.
15266 (dflt_group): Rename from the_group.
15267 (init_user_info): Init dflt_group fields. Get user's group name
15268 from LookupAccountSid.
15269 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
15270 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
15271 New initialization states.
15272 (globals_of_w32): Initialize them to zero. Initialize the default
15273 group name to "None".
15274 (GetFileSecurity_Name): New global var, the name of the function
15275 to call for GetFileSecurity.
15276 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
15277 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
15278 (get_file_security, get_security_descriptor_owner)
15279 (get_security_descriptor_group, is_valid_sid)
15280 (get_file_security_desc, get_rid, get_name_and_id)
15281 (get_file_owner_and_group): New functions.
15282 (stat): Use get_file_security_desc and get_file_owner_and_group to
15283 report the owner and primary group of each file. Don't ignore the
15284 high 32 bits of file's size, now that st_size is 64-bit wide.
15285 Fix test when to get true file attributes.
15286 (init_user_info): Use get_rid instead of equivalent inline code.
15287 (fstat): Don't ignore the high 32 bits of file's size.
15288
152892008-05-09 Chong Yidong <cyd@stupidchicken.com>
15290
15291 * image.c (png_load): Use correct bit-depth for setting background
15292 color.
15293
152942008-05-08 Eli Zaretskii <eliz@gnu.org>
15295
15296 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
15297 epa-hook.elc.
15298
152992008-05-08 Juanma Barranquero <lekktu@gmail.com>
15300
15301 * font.c (Ffont_match_p): Don't use `iff' in docstring.
15302
153032008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
15304
15305 * macfns.c (Fx_create_frame): Make a copy of frame parameters
15306 because the original parameters are in pure storage now.
15307 (mac_window): Remove unused params. Update callers.
15308
153092008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
15310
15311 * lread.c (substitute_object_recurse): Use lower-level primitives.
15312 Don't signal errors when traversing sub-char-tables.
15313 Don't loop over all the possible characters when traversing char-tables.
15314
15315 * print.c (print_preprocess): Add sub-char-tables to the print-table,
15316 just like we do in print.c.
15317
153182008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
15319
15320 * minibuf.c (Ftry_completion): Remove code left over from when we used
15321 scmp instead of Fcompare_strings.
15322
153232008-05-04 Juanma Barranquero <lekktu@gmail.com>
15324
15325 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
15326
153272008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15328
15329 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
15330 Create bitmap context in native byte order.
15331
15332 * macterm.c (XDrawLine)
15333 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
15334 context in native byte order.
15335
153362008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15337
15338 * config.in: Regenerate.
15339
15340 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
15341 New definitions for Image I/O support.
15342 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15343 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
15344 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15345 (mac_data_provider_release_data, image_load_image_io)
15346 [USE_MAC_IMAGE_IO]: New functions.
15347 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
15348 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
15349 (init_image_func_pointer) [MAC_OSX]: Remove function.
15350 (image_load_quartz2d) [MAC_OSX]: Check availability of
15351 CGImageCreateWithPNGDataProvider at compile time.
15352 Use lowercase `false' for boolean constant.
15353 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
15354 Use image_load_image_io.
15355 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
15356 Don't check MyCGImageCreateWithPNGDataProvider.
15357 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
15358 Don't call init_image_func_pointer.
15359
15360 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
15361
15362 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
15363 Make variable non-static.
15364 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
15365 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15366
15367 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
15368 (RED_FROM_ULONG): Mask off higher bits.
15369 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
15370
15371 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
15372 Include AvailabilityMacros.h.
15373 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
15374 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
15375
153762008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
15377
15378 * chartab.c (Fset_char_table_range): If range is t, really set all
15379 chars to that value.
15380
153812008-05-03 Eli Zaretskii <eliz@gnu.org>
15382
15383 * dired.c (Ffile_attributes): Don't allow the device number become
15384 negative.
15385
153862008-05-02 Daiki Ueno <ueno@unixuser.org>
15387
15388 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
15389
153902008-05-02 Juri Linkov <juri@jurta.org>
15391
15392 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
15393 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
15394 DEFAULT argument as a list of default values in docstrings.
15395
153962008-05-01 Chong Yidong <cyd@stupidchicken.com>
15397
15398 * puresize.h (BASE_PURESIZE): Increase to 1210000.
15399
154002008-05-01 Martin Rudalics <rudalics@gmx.at>
15401
15402 * dispnew.c (change_frame_size_1): Preserve small windows when
15403 shrinking frames by calling set_window_height|width with third
15404 arg 2.
15405
15406 * window.h (struct window): Replace field too_small_ok by field
15407 resize_proportionally.
15408
15409 * window.c (make_window): Initialize resize_proportionally.
15410 (enlarge_window): Temporarily set resize_proportionally to make
15411 sure that shrink_windows does scale the window proportionally.
15412 (shrink_windows): When window has resize_proportionally set try
15413 to shrink it proportionally by stealing from other windows.
15414 (struct saved_window, Fset_window_configuration)
15415 (compare_window_configurations): Handle resize_proportionally.
15416 (WINDOW_TOTAL_SIZE): New macro.
15417 (window_min_size, shrink_windows, size_window): Use it.
15418 (check_min_window_sizes): Remove. Invalid values of
15419 window-min-height|width are handled by window_min_size_2 now.
15420 (size_window, Fsplit_window, enlarge_window)
15421 (adjust_window_trailing_edge, grow_mini_window): Don't call
15422 check_min_window_sizes.
15423 (window_min_size_2, window_min_size_1, window_min_size):
15424 New argument safe_p for retrieving "safe" minimum sizes.
15425 (Fdisplay_buffer, Fsplit_window, enlarge_window)
15426 (adjust_window_trailing_edge, grow_mini_window):
15427 Adjust arguments of window_min_size... functions.
15428 (shrink_windows): Argument min_size removed. New argument
15429 safe_p allows shrinking windows to their safe minimum sizes.
15430 Calculate minimum size and decide whether a window shall be
15431 deleted for each window individually.
15432 (size_window): When nodelete_p equals 2, tell shrink_windows to
15433 delete windows only if their new minimum size is no more safe.
15434 (shrink_window_lowest_first): Call window_min_size_1 to make
15435 sure to preserve modeline of bottom-most window when resizing
15436 the minibuffer.
15437 (Fset_window_configuration, Fcurrent_window_configuration)
15438 (compare_window_configurations): Do not handle
15439 window-min-height|width any more.
15440 (syms_of_window): Clarify window-min-height|width doc-strings.
15441
154422008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
15443
15444 * dired.c (file_name_completion): Fix up the encoding/decoding issue
15445 some more. Copy some of the code from Ftry_completions.
15446 Remove special case code that dates back to initial revision when the
15447 slash was only added when necessary and that can't trigger nowadays.
15448
154492008-04-27 Kenichi Handa <handa@m17n.org>
15450
15451 * font.c (font_prop_validate): Signal `error' instead of `font'.
15452
154532008-04-29 Jason Rumney <jasonr@gnu.org>
15454
15455 * w32fns.c (Fw32_battery_status): New defun.
15456 (syms_of_w32fns): Defsubr it.
15457
154582008-04-28 Andreas Schwab <schwab@suse.de>
15459
15460 * dired.c (file_name_completion): Fix another mixing of encoded
15461 and decoded names.
15462
154632008-04-28 Juanma Barranquero <lekktu@gmail.com>
15464
15465 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
15466
154672008-04-27 Juanma Barranquero <lekktu@gmail.com>
15468
15469 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
15470
154712008-04-27 Andreas Schwab <schwab@suse.de>
15472
15473 * dired.c (file_name_completion): Fix inappropriate mixing of
15474 encoded and decoded names.
15475
15476 * xterm.c (XTread_socket): Fix use of uninitialized variable.
15477
15478 * puresize.h (BASE_PURESIZE): Increase to 1200000.
15479
154802008-04-26 Eli Zaretskii <eliz@gnu.org>
15481
15482 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
15483 2008-03-31, it's not needed anymore with `struct stat' definition
15484 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
15485 for the same reasons.
15486
154872008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
15488
15489 * m/sparc.h: Additional redefinitions for GNU/Linux.
15490
154912008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15492
15493 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
15494 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
15495 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
15496 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
15497 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15498 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
15499 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15500 Likewise.
15501
15502 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
15503 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
15504 (mac_ax_number_of_characters): Add externs.
15505 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15506 [USE_MAC_TSM]: Likewise.
15507 (mac_handle_text_input_event) [MAC_OSX]:
15508 Handle kEventTextInputOffsetToPos for no active input area case.
15509 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15510 (mac_handle_document_access_event)
15511 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
15512 (install_application_handler) [MAC_OSX]: Register handlers for
15513 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15514 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15515 Register mac_handle_document_access_event.
15516
15517 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
15518 Make functions non-static.
15519
155202008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
15521
15522 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
15523 (read_file_name_completion_ignore_case, insert_default_directory)
15524 (Qdefault_directory): Move to minibuffer.el.
15525 (Fread_file_name): Call the new `read-file-name' instead.
15526
155272008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15528
15529 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
15530 Make function non-static.
15531 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
15532 Remove function.
15533 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15534 Move to mactoolbox.c.
15535 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
15536
15537 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
15538 (mac_rect_make): New macro.
15539
15540 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
15541 instead of float.
15542 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15543 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
15544 (XSetBackground) [USE_CG_DRAWING]: Likewise.
15545 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
15546 CGRectMake.
15547 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15548 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
15549 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
15550 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15551 instead of WindowRef in argument type.
15552 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
15553 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
15554 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
15555 instead of DISPLAY. All uses changed.
15556 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
15557 (x_calc_absolute_position): Simplify so as not to use
15558 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
15559
15560 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15561 instead of WindowRef in argument type.
15562 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
15563 [TARGET_API_MAC_CARBON]: Remove externs.
15564 (create_apple_event, mac_event_parameters_to_lisp)
15565 [TARGET_API_MAC_CARBON]: Add externs.
15566
15567 * mactoolbox.c (Vmac_ts_script_language_on_focus)
15568 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
15569 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
15570 is clicked.
15571 (x_activate_menubar): Remove extern for saved_menu_event_location.
15572 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15573 Move from mac.c.
15574
155752008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15576
15577 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
15578 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
15579
155802008-04-23 Jason Rumney <jasonr@gnu.org>
15581
15582 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
15583 attributes only for local files.
15584
15585 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
15586 default to Qlocal.
15587
155882008-04-22 Juri Linkov <juri@jurta.org>
15589
15590 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
15591 read-buffer-to-switch instead of using the letter "B".
15592
155932008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
15594
15595 * fileio.c (Qdefault_directory): New variable.
15596 (Fread_file_name): Use it to pass `dir' to the completion functions.
15597
155982008-04-20 Chong Yidong <cyd@stupidchicken.com>
15599
15600 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
15601
156022008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
15603
15604 * keyboard.c (Vpre_help_message): Remove.
15605 (show_help_echo): Remove default C code.
15606
15607 * dired.c (directory_files_internal, file_name_completion):
15608 Only call ENCODE_FILE if the string is indeed decoded.
15609
156102008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15611
15612 * Makefile.in (TOOLKIT_DEFINES): Remove.
15613 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
15614
156152008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15616
15617 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
15618 (mactoolbox.o): New target.
15619
15620 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
15621 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
15622
15623 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
15624 Use mac_set_frame_window_background instead of XSetWindowBackground.
15625 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
15626 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
15627 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
15628 instead of SetWindowTitleWithCFString.
15629 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
15630 Move function to mactoolbox.c.
15631 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
15632 Use mac_set_window_modified instead of SetWindowModified.
15633 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
15634 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
15635 (Fx_focus_frame): Use mac_front_non_floating_window instead of
15636 FrontNonFloatingWindow. Use mac_activate_window instead of
15637 ActivateWindow. Use mac_active_non_floating_window instead of
15638 ActiveNonFloatingWindow.
15639 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
15640 Use mac_show_hourglass and mac_hide_hourglass.
15641 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
15642 instead of GetGlobalMouse.
15643 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
15644 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
15645 Use mac_bring_window_to_front instead of BringToFront.
15646 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
15647 mactoolbox.c.
15648 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
15649 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
15650 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
15651 mactoolbox.c.
15652
15653 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
15654 (XtPointer): Move typedef from macmenu.c.
15655 (enum button_type): Move enum from macmenu.c.
15656 (widget_value): Move typedef from macmenu.c.
15657 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
15658 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15659 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15660 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15661 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15662 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15663 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15664 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
15665 (Selection): Move typedef from macselect.c.
15666 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
15667 macterm.c.
15668 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
15669 (mac_is_window_collapsed, mac_bring_window_to_front)
15670 (mac_send_window_behind, mac_hide_window, mac_show_window)
15671 (mac_collapse_window, mac_front_non_floating_window)
15672 (mac_active_non_floating_window, mac_activate_window)
15673 (mac_move_window_structure, mac_move_window, mac_size_window)
15674 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
15675
15676 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
15677 (enum mac_menu_kind): Move enum to mactoolbox.c.
15678 (min_menu_id): Move variable to mactoolbox.c.
15679 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
15680 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
15681 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
15682 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
15683 [TARGET_API_MAC_CARBON]: Likewise.
15684 (XtPointer): Move typedef to macgui.h.
15685 (enum button_type): Move enum to macgui.h.
15686 (widget_value): Move typedef to macgui.h.
15687 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15688 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15689 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15690 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15691 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15692 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15693 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
15694 (popup_activated_flag): Make variable non-static.
15695 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
15696 (add_menu_item, fill_menu, dispose_menus):
15697 Move functions to mactoolbox.c.
15698 (restore_show_help_function, menu_target_item_handler)
15699 (install_menu_target_item_handler, mac_handle_dialog_event)
15700 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
15701 [TARGET_API_MAC_CARBON]: Likewise.
15702 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
15703 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15704 (find_and_call_menu_selection, name_is_separator): Make function
15705 non-static.
15706 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
15707 to mactoolbox.c.
15708 (set_frame_menubar): Don't call install_menu_quit_handler.
15709 (menu_item_selection): New variable.
15710 (mac_menu_show): Use create_and_show_popup_menu.
15711 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
15712 selection but set variable menu_item_selection. All uses changed.
15713 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
15714 Call install_menu_quit_handler. Move to mactoolbox.c.
15715
15716 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
15717 (Selection): Move typedef to macgui.h.
15718 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
15719 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
15720 Make variables non-static.
15721 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15722 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
15723 Make functions non-static.
15724 (Vmac_service_selection) [MAC_OSX]: Likewise.
15725 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
15726 (mac_valid_selection_target_p, mac_clear_selection)
15727 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15728 (mac_put_selection_value, mac_selection_has_target_p)
15729 (mac_get_selection_value, mac_get_selection_target_list)
15730 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
15731 Move functions to mactoolbox.c.
15732 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
15733 Likewise.
15734 (copy_scrap_flavor_data, mac_handle_service_event)
15735 (install_service_handler) [MAC_OSX]: Likewise.
15736 (syms_of_macselect) <Vmac_dnd_known_types>:
15737 Use mac_dnd_default_known_types.
15738
15739 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
15740 Move to mactoolbox.c.
15741 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
15742 (Fx_selection_owner_p): Add EXFUN.
15743 (install_window_handler, remove_window_handler, XSetWindowBackground):
15744 Remove externs.
15745 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
15746 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
15747 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
15748 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
15749 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
15750 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
15751 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
15752 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
15753 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
15754 (create_and_show_popup_menu, mac_get_selection_from_symbol)
15755 (mac_valid_selection_target_p, mac_clear_selection)
15756 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15757 (mac_put_selection_value, mac_selection_has_target_p)
15758 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
15759 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
15760 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
15761 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15762 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
15763 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15764 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
15765 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15766 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15767
15768 * mactoolbox.c: New file.
15769
157702008-04-18 Jason Rumney <jasonr@gnu.org>
15771
15772 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
15773
157742008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15775
15776 * character.c (Fmultibyte_char_to_unibyte):
15777 Return latin1 chars unchanged.
15778
15779 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
15780 relocated if it points to `name'.
15781
157822008-04-17 Kenichi Handa <handa@m17n.org>
15783
15784 * data.c (Faset): Allow setting a multibyte character in an
15785 ASCII-only unibyte string.
15786
15787 * lisp.h (STRING_SET_MULTIBYTE): New macro.
15788
157892008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
15790
15791 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
15792 done in config.h.
15793
157942008-04-16 Juanma Barranquero <lekktu@gmail.com>
15795
15796 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
15797 (Fchar_direction): Add usage in the docstring.
15798
157992008-04-15 Chong Yidong <cyd@stupidchicken.com>
15800
15801 * keyboard.c (read_key_sequence): Remove always-true checks.
15802
158032008-04-14 Jason Rumney <jasonr@gnu.org>
15804
15805 * w32font.c (w32font_open_internal): Set max_bounds.descent in
15806 compatibility struct, for better underline positioning.
15807
158082008-04-13 David Hansen <david.hansen@gmx.net>
15809
15810 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
15811 string.
15812
158132008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
15814
15815 * m/hp800.h (XUINT, XSET): Remove.
15816
158172008-04-12 Juanma Barranquero <lekktu@gmail.com>
15818
15819 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
15820 previous change.
15821
158222008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
15823
15824 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
15825 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
15826
158272008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15828
15829 * keymap.h (map_keymap_canonical): Declare.
15830 * xmenu.c (single_keymap_panes): Use it.
15831
158322008-04-11 Glenn Morris <rgm@gnu.org>
15833
15834 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
15835 set the target's value to that of the alias.
15836
158372008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15838
15839 * term.c (set_tty_color_mode): Left over typo.
15840
158412008-04-10 Michael Albinus <michael.albinus@gmx.de>
15842
15843 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
15844 only after check for file name handler functions. Signal, when
15845 native functionality is not supported.
15846 (syms_of_fileio): Declare it unconditionally.
15847
158482008-04-10 Jason Rumney <jasonr@gnu.org>
15849
15850 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
15851 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
15852
15853 * w32.c (logon_network_drive): Also logon to remote drives that
15854 are mapped to drive letters.
15855
158562008-04-10 Glenn Morris <rgm@gnu.org>
15857
15858 * xdisp.c (truncate-partial-width-windows): Doc fix.
15859
158602008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
15861
15862 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
15863 Move functions to minibuffer.el.
15864 (syms_of_fileio): Don't declare them.
15865
158662008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15867
15868 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
15869 (syms_of_minibuf): Remove its initialization.
15870
15871 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
15872
158732008-04-09 Juanma Barranquero <lekktu@gmail.com>
15874
15875 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
15876
158772008-04-09 Jason Rumney <jasonr@gnu.org>
15878
15879 * makefile.w32-in (distclean): Delete makefile too.
15880 (maintainer-clean): New target.
15881
15882 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
15883
15884 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
15885 for new font backend and composite cases.
15886
158872008-04-09 Jan Djärv <jan.h.d@swipnet.se>
15888
15889 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
15890 Most of the code moved to run_timers.
15891 (do_pending_atimers): Call run_timers.
15892 (run_timers): New function.
15893
15894 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
15895 run atimers.
15896
15897 * process.c (wait_reading_process_output): The same as above.
15898
158992008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15900
15901 * minibuf.c (last_exact_completion): Remove variable.
15902 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
15903 (complete_and_exit_1, complete_and_exit_2)
15904 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
15905 (Fdisplay_completion_list, display_completion_list_1)
15906 (Fminibuffer_completion_help, Fself_insert_and_exit)
15907 (Fexit_minibuffer, Fminibuffer_message): Move functions to
15908 minibuffer.el.
15909 (syms_of_minibuf): Remove corresponding initializations.
15910
15911 * keyboard.c (Qdeactivate_mark): New var.
15912 (command_loop_1): Use it to call `deactivate-mark'.
15913 (syms_of_keyboard): Initialize it.
15914
15915 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
15916 to another frame.
15917 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
15918 Don't call set_tty_color_mode.
15919 (store_frame_param): Reset previous_frame rather than call
15920 set_tty_color_mode.
15921 * term.c (set_tty_color_mode): Rewrite.
15922 * dispextern.h (set_tty_color_mode): New type.
15923 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
15924
159252008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
15926
15927 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
15928 for generic chars, which do not exist any more in emacs-unicode.
15929
159302008-04-08 Michael Albinus <michael.albinus@gmx.de>
15931
15932 * coding.c (detect_coding_emacs_mule)
15933 (Ffind_operation_coding_system): Fix typo.
15934
159352008-04-08 Jason Rumney <jasonr@gnu.org>
15936
15937 * w32uniscribe.c (SNAME): Extract only symbol name.
15938
15939 * w32font.h (struct w32_metric_cache): New struct.
15940 (w32font_info): Use it.
15941 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
15942 (CACHE_BLOCKSIZE): New constants.
15943
15944 * w32font.c (Qja, Qko, Qzh): New symbols.
15945 (syms_of_w32font): Initialise them.
15946 (font_matches_spec): Use them to filter by language.
15947 (recompute_cached_metrics): Remove function.
15948 (compute_metrics, clear_cached_metrics): New functions.
15949 (w32font_encode_char): Use them to manage metric cache.
15950 (w32font_text_extents): Cache metrics for all glyphs on demand.
15951 Delay converting glyph indices to WORD until needed.
15952 (w32font_open_internal): Initialize metric cache to empty.
15953 (registry_to_w32_charset): Charset should always be a symbol.
15954 (fill_in_logfont, list_all_matching_fonts): Family should
15955 always be a symbol.
15956
159572008-04-06 Jason Rumney <jasonr@gnu.org>
15958
15959 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
15960 Give up if glyph indices not supported. Use uniscribe obtained
15961 ABC widths for individual metrics. Map glyph clusters back to
15962 characters using fClusterStart flag. Return number of glyphs
15963 produced, not chars processed.
15964 (uniscribe_shape): Map char at FROM to current glyph.
15965
159662008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15967
15968 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
15969 Use SetMenuItemHierarchicalMenu.
15970
159712008-04-05 Jason Rumney <jasonr@gnu.org>
15972
15973 * image.c (pbm_load): Allow color values up to 65535.
15974 Throw an error if max_color_idx is outside the supported range.
15975 Report an error when image size is invalid.
15976 Read two bytes at a time when raw images have max_color_idx above 255.
15977
aac0c6e3
MR
159782008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
15979
15980 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
15981 append "CCL: Quitted" when the CCL program is quitted.
15982 (setup_ccl_program): Initialize ccl->quit_silently to zero.
15983
15984 * ccl.h (struct ccl_program): New member quit_silently.
15985
159862008-04-05 Chong Yidong <cyd@stupidchicken.com>
15987
15988 * search.c (compile_pattern_1): Treat non-nil and non-string of
15989 search-spaces-regexp as nil.
15990
15991 * minibuf.c (Fassoc_string): Tweak docstring.
15992
159932008-04-05 Eli Zaretskii <eliz@gnu.org>
15994
15995 * dired.c (Ffile_attributes): Support inode numbers wider than 32
15996 bits. Remove ugly WINDOWSNT-specific kludge introduced on
15997 2008-03-14 to force inode be positive.
15998
15999 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
16000 _S_* ones, since we now use our own sys/stat.h.
16001 (stat, fstat): Don't mangle the inode number.
16002 (init_user_info): Don't restrict UID and GID to 0-60000 range.
16003
160042008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
16005
16006 * frame.h (struct frame): Give one more bit to `visible' since we use
16007 values larger than 1 to indicate obscured frames on ttys.
16008
16009 * keymap.c (Qkeymap_canonicalize): New var.
16010 (Fmap_keymap_internal): New fun.
16011 (describe_map): Use keymap-canonicalize.
16012
16013 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
16014 (Fundo_boundary): Set them.
16015 (syms_of_undo): Initialize them.
16016 (record_point): Use them instead of last_point_position*.
16017 (last_undo_buffer): Change type.
16018
160192008-04-04 Jason Rumney <jasonr@gnu.org>
16020
16021 * w32font.c (w32font_text_extents): Use font's ascent and descent.
16022 (recompute_cached_metrics): Don't set ascent and descent per char.
16023
16024 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
16025 (uniscribe_check_otf): Add GC protection before consing.
16026 Rearrange loop for counting features.
16027
160282008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
16029
16030 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
16031 buffer with byte-size of source buffer.
16032
160332008-04-03 Chong Yidong <cyd@stupidchicken.com>
16034
16035 * callint.c (Fcall_interactively): Handle temporary region even
16036 when shift-select-mode is off.
16037
160382008-04-03 Jason Rumney <jasonr@gnu.org>
16039
16040 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
16041
160422008-04-03 Kenichi Handa <handa@m17n.org>
16043
16044 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
16045 (CATEGORY_MASK_UTF_16): Likewise.
16046 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
16047 binary file.
16048 (detect_coding): Add null-byte detection for a binary file.
16049 (detect_coding_system): Likewise.
16050
160512008-04-03 Jason Rumney <jasonr@gnu.org>
16052
16053 * w32uniscribe.c: New file.
16054
16055 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
16056
16057 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
16058
16059 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
16060 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
16061 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
16062 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
16063 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
16064 (Qphonetic): New symbols.
16065 (syms_of_w32font): Initialize them.
16066 (font_supported_scripts): Use them.
16067 (w32font_list_family): List all charsets.
16068 (w32font_text_extents, recompute_cached_metrics): Fix metric
16069 calculations.
16070 (w32_enumfont_pattern_entity): Make full_type a DWORD.
16071 Give opentype fonts their own format.
16072 (font_matches_spec): New arguments backend and logfont.
16073 Handle :otf spec for uniscribe backend.
16074 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
16075 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
16076
16077 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
16078 font backend.
16079 (globals_of_w32fns): Initialize uniscribe font backend.
16080
16081 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
16082 dependencies.
16083 (w32uniscribe.$(O)): New file to build.
16084 (FONT_OBJ): Include w32uniscribe.$(O).
16085 (LIBS): Add uniscribe libraries.
16086
16087 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
16088
160892008-04-02 Chong Yidong <cyd@stupidchicken.com>
16090
16091 * callint.c (Vshift_select_mode): New var.
16092 (Finteractive): Document new ^ spec.
16093 (Fcall_interactively): Call handle-shift-selection if the ^ spec
16094 is present.
16095
16096 * keyboard.c (Vthis_command_keys_shift_translated): New var.
16097 (command_loop_1): Avoid running the direct display versions of
16098 forward-char and backward-char if shift-selection may occur.
16099 (read_key_sequence): Set Vthis_command_keys_shift_translated if
16100 shift-translation takes place.
16101
16102 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
16103 avoid clobbering by define-minor-mode.
16104
16105 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
16106 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
16107
16108 * syntax.c (Fforward_word): Add ^ interactive spec.
16109
16110 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
16111 (Fscroll_right): Add ^ interactive spec.
16112
161132008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
16114
16115 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
16116
16117 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
16118
16119 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
16120
161212008-03-31 Juri Linkov <juri@jurta.org>
16122
16123 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
16124
161252008-03-30 Jan Djärv <jan.h.d@swipnet.se>
16126
16127 * gtkutil.c (xg_set_geometry): Fix indentation.
16128 (xg_resize_outer_widget): Remove.
16129 (x_wm_size_hint_off): Fix indentation.
16130 (xg_frame_set_char_size): Call flush_and_sync after
16131 gtk_window_resize.
16132 (x_wm_set_size_hint): Pass NULL as geometry window to
16133 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
16134 Add menu bar and tool bar height to base height.
16135 (xg_update_frame_menubar, free_frame_menubar)
16136 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
16137 (update_frame_tool_bar, free_frame_tool_bar):
16138 Change xg_resize_outer_widget to xg_frame_set_char_size.
16139
161402008-03-30 Michael Albinus <michael.albinus@gmx.de>
16141
16142 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
16143 (Fdbus_call_method): New parameter TIMEOUT.
16144 (dbus-send-signal): Optimize UNGCPRO call.
16145
161462008-03-29 Juri Linkov <juri@jurta.org>
16147
16148 * window.c (Fdisplay_buffer): Move call to
16149 Vsplit_window_preferred_function out of conditions that check
16150 if window is eligible for vertical splitting.
16151 When Vsplit_window_preferred_function is non-nil, call it and use
16152 its non-nil return value as window. Otherwise, continue doing
16153 vertical splitting using Fsplit_window with arg horflag=nil.
16154 (syms_of_window) <Vsplit_window_preferred_function>: Change the
16155 default value from `split-window' to nil.
16156
161572008-03-29 Juri Linkov <juri@jurta.org>
16158
16159 * callint.c (Fcall_interactively): Revert 2008-03-16 change
16160 for interactive code letters 'b' and 'B'.
16161
161622008-03-29 Eli Zaretskii <eliz@gnu.org>
16163
16164 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
16165 multibyte string.
16166
161672008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
16168
16169 * keyboard.c (pending_funcalls): New var.
16170 (timer_check): Run it.
16171 (syms_of_keyboard): Initialize it.
16172 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
16173 (Vdelete_terminal_functions): New vars.
16174 (syms_of_terminal): Initialize them.
16175 (Fdelete_terminal): Run delete-terminal-functions.
16176 * xdisp.c (safe_eval): Rewrite.
16177 (safe_call2): New fun.
16178 * frame.c (Qdelete_frame_functions): New var.
16179 (syms_of_frame): Initialize it.
16180 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
16181 * lisp.h (safe_call2, pending_funcalls): Declare.
16182
161832008-03-28 Andreas Schwab <schwab@suse.de>
16184
16185 * indent.c (Fmove_to_column): Move declaration before statements.
16186
161872008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
16188
16189 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
16190 (struct frame): Use bit fields for boolean vars.
16191
16192 * process.c (server_accept_connection): Simplify naming.
16193 (emacs_get_tty_pgrp): Use SDATA.
16194
16195 * coding.c (decode_coding_object): Fix last change.
16196
161972008-03-27 Jason Rumney <jasonr@gnu.org>
16198
16199 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
16200
162012008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
16202
16203 * charset.c (Fdefine_charset_internal): Change the way of
16204 registering charsets in Vcharset_order_list.
16205 (syms_of_charset): Make the charset `eight-bit' supplementary.
16206
162072008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
16208
16209 * regex.c (EXTEND_BUFFER): Change order of pointer addition
16210 operations, to avoid having the difference between pointers
16211 overflow.
16212
162132008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
16214
16215 * indent.c (check_display_width): New fun.
16216 (scan_for_column): Use it.
16217
16218 * data.c (syms_of_data): Mark most-positive-fixnum and
16219 most-negative-fixnum as constants.
16220
16221 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
16222
16223 * indent.c (scan_for_column): Extract from current_column_1.
16224 Merge with the same code from Fmove_to_column.
16225 (current_column_1, Fmove_to_column): Use it.
16226
162272008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
16228
16229 * keymap.c (map_keymap_internal): New fun.
16230 (map_keymap): Use it.
16231 (Fmap_keymap_internal): New fun.
16232 (Fmap_keymap): Remove left-out test from before make_save_value.
16233
16234 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
16235
16236 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
16237 Use XCAR/XCDR.
16238
16239 * process.h (struct Lisp_Process): Remove filter_multibyte.
16240 * process.c (QCfilter_multibyte): Remove.
16241 (setup_process_coding_systems): Don't use filter_multibyte.
16242 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
16243 (read_process_output): Don't adjust multibyteness to filter_multibyte.
16244 (Fset_process_filter_multibyte): Change the coding-system to
16245 approximate the previous behavior.
16246 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
16247 coding-system.
16248
16249 * coding.c (decode_coding_object): When not decoding into a buffer,
16250 obey the coding system's preference of (uni|multi)byte.
16251
162522008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
16253
16254 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
16255 every char is changed and has a different byte-length.
16256 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
16257 Fix int -> EMACS_INT.
16258
162592008-03-23 David Hansen <david.hansen@gmx.net>
16260
16261 * dbusbind.c (xd_read_message): Remove extra copying of message
16262 strings. Check for NULL `interface' or `member'.
16263
162642008-03-22 Eli Zaretskii <eliz@gnu.org>
16265
16266 * w32.c (readdir): If FindFirstFile/FindNextFile return in
16267 cFileName a file name that includes `?' characters, use the 8+3
16268 alias in cAlternateFileName instead.
16269
162702008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
16271
16272 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
16273
162742008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16275
16276 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
16277 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
16278 work on current_buffer only instead (that was already the case
16279 for some of the code anyway).
16280 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
16281 (temp_set_point, temp_set_point_both): Use EMACS_INT.
16282 (SET_PT, SET_PT_BOTH): Adjust.
16283 * intervals.h (set_point, temp_set_point, set_point_both)
16284 (temp_set_point_both): Remove redundant declarations.
16285
162862008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16287
16288 * fileio.c (Finsert_file_contents):
16289 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
16290 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
16291 when buffer != current_buffer anyway.
16292
162932008-03-20 Andreas Schwab <schwab@suse.de>
16294
16295 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
16296 as default.
16297
162982008-03-19 Jason Rumney <jasonr@gnu.org>
16299
16300 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
16301 (syms_of_w32fns): Initialize them.
16302 (HOURGLASS_ID): New constant.
16303 (x_window_to_frame): Don't check hourglass_window.
16304 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
16305 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
16306 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
16307 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
16308 Only change the cursor if hourglass is not active.
16309 (Fx_create_frame): Initialize frame's current_cursor.
16310 (hourglass_atimer): Remove.
16311 (hourglass_started): New function.
16312 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
16313 (show_hourglass): Adapt to w32, changing argument to frame.
16314
16315 * w32term.h (struct w32_output): Remove hourglass_window.
16316 Add current_cursor.
16317
16318 * eval.c (call_debugger, Fsignal):
16319 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
16320 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
16321 (Fexecute_extended_command, cancel_hourglass_unwind):
16322 * minibuf.c (read_minibuf):
16323 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
16324
163252008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
16326
16327 * window.c (run_funs): New fun.
16328 (run_window_configuration_change_hook): Use it to run the buffer-local
16329 and the global part of the hook.
16330
16331 * xdisp.c (format_mode_line_unwind_data): Add window argument.
16332 (unwind_format_mode_line): Restore selected window.
16333 (x_consider_frame_title, Fformat_mode_line): Set selected window.
16334
163352008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
16336
16337 * editfns.c (Fchar_equal): Check they are valid characters.
16338
16339 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
16340
163412008-03-17 Andreas Schwab <schwab@suse.de>
16342
16343 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
16344 against a charset.
16345
16346 * lisp.h (Fbuffer_list): Declare.
16347
163482008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 16349
aac0c6e3
MR
16350 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
16351 handlebox_widget is != 0.
16352
163532008-03-16 Juri Linkov <juri@jurta.org>
16354
16355 * callint.c (Fcall_interactively): For interactive code letters
16356 'b' and 'B' put the buffer list into the list of default "future"
16357 values of the minibuffer.
16358
163592008-03-16 Andreas Schwab <schwab@suse.de>
16360
16361 * keyboard.c (read_key_sequence): Fix downcasing of letters with
16362 modifiers.
16363
16364 * regex.c (re_match_2_internal): Correct matching of a charset
16365 against latin-1 characters.
16366
163672008-03-16 Kenichi Handa <handa@m17n.org>
16368
16369 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
16370 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
16371 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
16372 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
16373 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
16374 CHAR_STRING_ADVANCE.
16375 (produce_chars): Fix for the case that the source and the
16376 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
16377 instead of CHAR_STRING_ADVANCE.
16378 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
16379 STRING_CHAR_ADVANCE.
16380
163812008-03-15 Andreas Schwab <schwab@suse.de>
16382
16383 * regex.c (re_match_2_internal): Correct matching of eight bit
16384 characters in unibyte strings.
16385
163862008-03-15 Martin Rudalics <rudalics@gmx.at>
16387
16388 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
16389 at end of range when it coincides with the end of the buffer.
16390
163912008-03-14 Eli Zaretskii <eliz@gnu.org>
16392
16393 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
16394
16395 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
16396
163972008-03-14 Jason Rumney <jasonr@gnu.org>
16398
16399 * editfns.c (initial_tz): New variable.
16400 (syms_of_editfns): Initialize it.
16401 (Fset_time_zone_rule): Set it when first called.
16402 Use it when TZSTRING is nil.
16403
16404 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
16405 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
16406 (monitor_from_point_fn, get_monitor_info_fn): New globals.
16407 (globals_of_w32fns): Initialize them.
16408 (compute_tip_xy): Use them to position tooltips.
16409
164102008-03-14 Glenn Morris <rgm@gnu.org>
16411
16412 * emacs.c (main): Revert previous change.
16413 (standard_args): Revert -internal-script back to -scriptload,
16414 and remove the long-option form.
16415
164162008-03-13 Glenn Morris <rgm@gnu.org>
16417
16418 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
16419 Remove option -enable-font-backend.
16420
164212008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
16422
16423 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
16424
164252008-03-11 Jan Djärv <jan.h.d@swipnet.se>
16426
16427 * xterm.c (x_connection_closed): For GTK: If this is the last
16428 terminal just exit without closing the display.
16429
164302008-03-11 Jason Rumney <jasonr@gnu.org>
16431
16432 * w32font.c (w32font_full_name): Use floor to round.
16433
f0131492 164342008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
16435
16436 * sound.c (alsa_configure): Declare vol at beginning of block.
16437
16438 * fontset.c (Ffontset_info): Remove extra semicolon.
16439
164402008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
16441
16442 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
16443 size of resulting string.
16444
164452008-03-10 Jason Rumney <jasonr@gnu.org>
16446
16447 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
16448
164492008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16450
16451 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
16452 Don't pretend as if characters with display property haven't been
16453 consumed for string-replacing-string case.
16454
164552008-03-08 Kim F. Storm <storm@cua.dk>
16456
16457 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
16458 (get_next_display_element, next_element_from_string)
16459 (next_element_from_ellipsis, next_element_from_buffer): Use it.
16460
164612008-03-08 Andreas Schwab <schwab@suse.de>
16462
16463 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
16464
164652008-03-06 Jason Rumney <jasonr@gnu.org>
16466
16467 * w32font.c (w32_registry): Take font_type argument. Use ANSI
16468 when charset not specified. Only translate ANSI to unicode when
16469 font_type is truetype.
16470 (w32font_coverage_ok): New function.
16471 (add_font_entity_to_list): Use it to filter unsuitable fonts.
16472
164732008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
16474
16475 * lread.c (Fread_char): Resolve modifiers.
16476 (Fread_char_exclusive): Likewise.
16477
16478 * character.c (char_resolve_modifier_mask): New function.
16479 (char_string): Use char_resolve_modifier_mask.
16480 (Fchar_resolve_modifiers): New function.
16481 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
16482 function.
16483
164842008-03-04 Jason Rumney <jasonr@gnu.org>
16485
16486 * makefile.w32-in: Always include w32font.c in the build.
16487 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
16488
164892008-03-04 Andreas Schwab <schwab@suse.de>
16490
16491 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
16492 (versionclean): Likewise.
16493
164942008-03-04 Juanma Barranquero <lekktu@gmail.com>
16495
16496 * .cvsignore: Add oo.
16497
164982008-03-03 Andreas Schwab <schwab@suse.de>
16499
16500 * coding.c (decode_coding_object): Inhibit gap shrinking while
16501 decoding in place.
16502
165032008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
16504
16505 * w32term.c: Remove unused include "gnu.h".
16506 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
16507
16508 * gnu.h: Rename to ...
16509 * emacs-icon.h: ... this.
16510 * xterm.c: Use emacs-icon.h instead of gnu.h.
16511 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
16512
165132008-03-03 Juanma Barranquero <lekktu@gmail.com>
16514
16515 * w32font.c: Include math.h.
16516
165172008-03-03 Jason Rumney <jasonr@gnu.org>
16518
16519 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
16520 Compute options separately.
16521 (w32font_open_internal): Set glyph_idx before caching metrics.
16522
16523 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
16524 Define if system headers don't.
16525 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
16526 (w32font_encode_char): Don't declare here.
16527
16528 * w32font.c (Quniscribe, QCformat): New symbols.
16529 (syms_of_w32font): Define them.
16530 (w32font_has_char): Indicate uncertainty.
16531 (w32font_encode_char): Encode as glyph point. Make static.
16532 (recompute_cached_metrics): New function.
16533 (w32font_open_internal): Use it. Set font to use glyph points
16534 initially. Set format based on type of font.
16535 (w32font_text_extents, w32font_draw): Optionally use glyph points.
16536 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
16537 on it. Set format based on information available here.
16538 (add_font_entity_to_list): Identify backend based on opentype_only.
16539
165402008-03-02 Andreas Schwab <schwab@suse.de>
16541
16542 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
16543
16544 * coding.c (decode_coding_big5, produce_chars):
16545 Fix typos in last change.
16546
165472008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
16548
16549 * gnu.h: New icon.
16550
165512008-03-02 Kenichi Handa <handa@m17n.org>
16552
16553 * coding.c (decode_coding_utf_8): When eol-type of CODING is
16554 `dos', don't decode '\r' if that is the last in the source.
16555 (decode_coding_utf_16, decode_coding_emacs_mule)
16556 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16557 (decode_coding_raw_text, decode_coding_charset): Likewise.
16558 (produce_chars): Don't decode EOL here. Use EMACS_INT.
16559
165602008-03-01 Jason Rumney <jasonr@gnu.org>
16561
16562 * w32font.c (w32font_full_name): Report point size for scalable fonts.
16563
165642008-03-01 Kim F. Storm <storm@cua.dk>
16565
16566 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
16567
165682008-03-01 Jason Rumney <jasonr@gnu.org>
16569
16570 * w32font.c (w32font_full_name): New function.
16571 (w32font_open_internal): Use it.
16572
165732008-03-01 Kim F. Storm <storm@cua.dk>
16574
16575 * dispnew.c (line_draw_cost): Fix invalid glyph check.
16576
165772008-03-01 Jason Rumney <jasonr@gnu.org>
16578
16579 * font.c (font_unparse_fcname): Increase len when style is a symbol.
16580
165812008-03-01 Jan Djärv <jan.h.d@swipnet.se>
16582
16583 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
16584 xg_frame_resized when the event is for the edit widget.
16585
16586 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
16587
16588 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
16589 set_char_size.
16590 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
16591 operations on widgets here. Just set frame size if needed.
16592 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
16593 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
16594 (x_wm_set_size_hint): Set size hints on the edit widget only, not
16595 the whole frame.
16596 (xg_create_tool_bar): Move attachment of the tool bar to
16597 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
16598 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
16599
166002008-03-01 Jason Rumney <jasonr@gnu.org>
16601
16602 * w32fns.c (w32_msg_pump): Disable debug code.
16603
166042008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16605
16606 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
16607
166082008-02-29 Chong Yidong <cyd@stupidchicken.com>
16609
16610 * xdisp.c (next_overlay_string): Don't set
16611 overlay_strings_at_end_processed_p if we're currently reading from
16612 a display string.
16613
166142008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
16615
16616 * xdisp.c (get_overlay_strings_1): Fix typo.
16617
166182008-02-29 Chong Yidong <cyd@stupidchicken.com>
16619
16620 * xdisp.c (get_overlay_strings_1): Add missing argument type.
16621
166222008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
16623
16624 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
16625
16626 * xdisp.c (display_mode_element): Cancel the previous change.
16627 (decode_mode_spec): Likewise.
16628 (handle_auto_composed_prop): Don't make composition if it->string
16629 is a string.
16630
166312008-02-27 Kim F. Storm <storm@cua.dk>
16632
16633 * lisp.h (GLYPH): Change type from int to struct with separate char
16634 and face_id members.
16635 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
16636 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
16637 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
16638 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
16639 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
16640 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
16641 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
16642 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
16643 handle new Lisp glyph code encoding, either an integer or a cons.
16644
16645 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
16646 (GLYPH_ALIAS): Delete.
16647 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
16648 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
16649 (GLYPH_FROM_CHAR): Replace macro by ...
16650 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
16651
16652 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
16653 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
16654 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
16655 (GLYPH_INVALID_P): New macro.
16656 (spec_glyph_lookup_face): Update prototype.
16657
16658 * dispnew.c (line_draw_cost): Adapt to new glyph type.
16659 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
16660 new glyph code encoding.
16661 (spec_glyph_lookup_face): No return value; update passed glyph instead.
16662 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
16663
16664 * xdisp.c (get_next_display_element, next_element_from_display_vector):
16665 Adapt to new glyph type and new glyph code encoding.
16666
16667 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
16668
16669 * indent.c (current_column, current_column_1, Fmove_to_column)
16670 (compute_motion): Adapt to new glyph code encoding.
16671
16672 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
16673
166742008-02-27 Chong Yidong <cyd@stupidchicken.com>
16675
16676 * process.c (wait_reading_process_output): Check for window
16677 changes caused by timers.
16678 Suggested by Johan Bockgård.
16679
166802008-02-27 Glenn Morris <rgm@gnu.org>
16681
16682 * emacs.c (USAGE1): Add `--disable-font-backend'.
16683
166842008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
16685
16686 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
16687 is made to the buffer.
16688
166892008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
16690
16691 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
16692 (face_at_string_position):
16693 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
16694 (face_at_string_position):
16695 * xdisp.c (display_string, next_overlay_change):
16696 * buffer.h (overlays_at):
16697 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
16698 Update callers.
16699
167002008-02-26 Chong Yidong <cyd@stupidchicken.com>
16701
16702 * editfns.c (Fformat): Doc fix.
16703
167042008-02-26 Juanma Barranquero <lekktu@gmail.com>
16705
16706 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
16707 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
16708 (Ffont_otf_alternates, Fquery_font): Doc fixes.
16709
167102008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16711
16712 * buffer.c (Fbuffer_swap_text): New function.
16713 (syms_of_buffer): Defsubr it.
16714
167152008-02-25 Chong Yidong <cyd@stupidchicken.com>
16716
16717 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
16718
167192008-02-25 Jason Rumney <jasonr@gnu.org>
16720
16721 * w32font.c (w32font_draw): Draw one character at a time when padding.
16722
167232008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16724
16725 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
16726 Handle a nil arg. Use run_window_configuration_change_hook.
16727 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
16728 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
16729 Use run_window_configuration_change_hook.
16730
167312008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16732
16733 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
16734 1-pixel width.
16735
167362008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16737
16738 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
16739 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
16740 if the glyph in the font is zero pixel with.
16741
16742 * dispextern.h (struct glyph_string): New member padding_p.
16743
16744 * w32font.c (w32font_draw): Pay attention to s->padding_p.
16745
16746 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
16747
16748 * xfont.c (xfont_draw): Pay attention to s->padding_p.
16749
16750 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
16751
16752 * font.c: If the font driver doesn't have `shape' function, return Qnil.
16753
167542008-02-25 Jason Rumney <jasonr@gnu.org>
16755
16756 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16757
167582008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
16759
16760 Allow fine-grained image-cache flushing.
16761 * dispextern.h (struct image): Add `dependencies' field.
16762 (clear_image_caches): Change arg to Lisp_Object.
16763 * image.c (make_image): Initialize `dependencies' field.
16764 (clear_image_cache): Change arg to allow fine-grained flushing.
16765 Perform the flush even if image-cache-eviction-delay is nil.
16766 (clear_image_caches): Change arg to Lisp_Object.
16767 (Fclear_image_cache): Expand meaning of the argument.
16768 (mark_image): Mark `dependencies' field.
16769 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
16770 (lface_hash): Use XHASH rather than XFASTINT.
16771 (face_at_buffer_position): Fix int -> EMACS_INT position.
16772 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
16773 (select_frame_for_redisplay): Remove code duplication.
16774 (redisplay_internal): Adapt arg to call to clear_image_caches.
16775
167762008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
16777
16778 * s/vms4-0.h:
16779 * s/vms4-2.h:
16780 * s/vms4-4.h:
16781 * s/vms5-5.h: Remove, unused.
16782
16783 * s/irix5-2.h:
16784 * s/irix6-0.h:
16785 * s/riscos5.h:
16786 * s/mach-bsd4-3.h:
16787 * m/mips4.h: Remove files for obsolete systems.
16788
16789 * Makefile.in:
16790 * filelock.c:
16791 * unexmips.c:
16792 * m/hp9000s300.h:
16793 * m/iris4d.h:
16794 * s/aix3-1.h:
16795 * s/hpux.h:
16796 * s/msdos.h:
16797 * s/usg5-0.h:
16798 * s/usg5-2-2.h:
16799 * s/usg5-2.h:
16800 * s/usg5-3.h: Remove references to obsolete variables.
16801
16802 * s/irix5-0.h: Remove, move all the contents ...
16803 * s/irix6-5.h: ... here. Simplify.
16804 * config.in: Regenerate.
16805
168062008-02-24 Jason Rumney <jasonr@gnu.org>
16807
16808 * w32term.c (x_draw_glyph_string_background): Clear the background
16809 manually when cleartype is in use.
16810 (x_draw_glyph_string_foreground): Draw text transparently when
16811 cleartype is in use.
16812
16813 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
16814 a font into it unless we have to.
16815
168162008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16817
16818 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
16819 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 16820
aac0c6e3
MR
168212008-02-18 Jason Rumney <jasonr@gnu.org>
16822
16823 * w32fns.c (Fw32_shell_execute): Encode parameters.
16824
168252008-02-09 Eli Zaretskii <eliz@gnu.org>
16826
16827 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
16828
168292008-02-05 Juanma Barranquero <lekktu@gmail.com>
16830
16831 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
16832
168332008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
16834
16835 * xterm.c (x_set_offset): Don't change the gravity if
16836 CHANGE_GRAVITY is -1.
16837
168382008-02-23 Chong Yidong <cyd@stupidchicken.com>
16839
16840 * fileio.c (auto_save_error_occurred): New var.
16841 (auto_save_error): Set it.
16842 (Fdo_auto_save): Don't overwrite the error message if an auto-save
16843 error occurred.
16844
168452008-02-23 Eli Zaretskii <eliz@gnu.org>
16846
16847 * w32.c (globals_of_w32): Add initializations for
16848 g_b_init_get_sid_sub_authority and
16849 g_b_init_get_sid_sub_authority_count.
16850
168512008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
16852
16853 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
16854 (font_parse_xlfd): Use them for sanity check.
16855 (Finternal_set_font_style_table): Make sure the table is bijective.
16856
16857 Consolidate the image_cache to the terminal struct.
16858 * termhooks.h (P_): Remove redundant def.
16859 (struct terminal): New field `image_cache'.
16860 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
16861 of FRAME_X_IMAGE_CACHE.
16862 * xterm.h (struct x_display_info): Remove image_cache field.
16863 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16864 * w32term.h (struct w32_display_info): Remove image_cache field.
16865 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16866 * macterm.h (struct mac_display_info): Remove image_cache field.
16867 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16868 * xterm.c (x_term_init):
16869 * w32term.c (w32_term_init):
16870 * macterm.c (mac_term_init): Set the image_cache in the terminal.
16871 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
16872 Remove declarations.
16873 (clear_image_caches, mark_image_cache): New declarations.
16874 * xfaces.c (clear_face_cache):
16875 * xdisp.c (redisplay_internal): Use clear_image_caches.
16876 * image.c (clear_image_cache): Don't check that a frame is on
16877 a window-system before checking if it shares the same cache.
16878 (clear_image_caches): New function.
16879 (Fclear_image_cache): Use it.
16880 (mark_image): Move from allo.c.
16881 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
16882 * alloc.c (mark_image, mark_image_cache): Move to image.c.
16883 (mark_object): Don't call mark_image_cache for frames.
16884 (mark_terminals): Call mark_image_cache.
16885
16886 * lisp.h (Fdelete_terminal): Declare.
16887
16888 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
16889 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
16890 wrong_type_argument.
16891
168922008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
16893
16894 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
16895 malayalam.el, and tamil.el. Add sinhala.el.
16896
168972008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
16898
16899 * xterm.c (x_connection_closed): Consolidate identical tests.
16900 (x_delete_terminal): Don't crash if called via x_connection_closed.
16901
169022008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
16903
16904 * xdisp.c (decode_mode_spec): New arg string.
16905 (display_mode_element): Adjust for the above change.
16906
169072008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16908
16909 * callint.c (Fcall_interactively): Use AREF.
16910
169112008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
16912
16913 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
16914
169152008-02-18 Jan Djärv <jan.h.d@swipnet.se>
16916
16917 * xfns.c (Fx_show_tip): Set string to " " if empty.
16918
169192008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
16920
16921 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
16922 with Qt.
16923
169242008-02-17 Kenichi Handa <handa@m17n.org>
16925
16926 * ftfont.c (ftfont_shape): Return Lispy number.
16927
16928 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
16929 for GCs.
16930 (Finternal_set_font_selection_order): Call font_update_sort_order
16931 only when enable_font_backend is set.
16932 (realize_x_face): Set face->font_info to that of default face only
16933 when enable_font_backend is set.
16934
16935 * xdisp.c (handle_composition_prop): Set it->c to the fist
16936 character of the composed region.
16937 (fill_composite_glyph_string): Set base_face->font_info to
16938 s->font_info. Get a face for ascii from base_face->ascii_face.
16939 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
16940 with a face already decided.
16941 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
16942 non-negative.
16943 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
16944 call font_prepare_composition unconditionally.
16945
16946 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
16947
16948 * xterm.h (struct x_display_info): New member font.
16949
16950 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
16951 (x_set_mouse_face_gc, x_new_font): Likewise.
16952 (x_term_init): Setup display_info->font.
16953 (x_delete_terminal): Free display_info->font.
16954
16955 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
16956
16957 * ftxfont.c (ftxfont_default_fid): Delete it.
16958 (ftxfont_open): Set xfont->fid to 0.
16959 (ftxfont_end_for_frame): Clear data specific to the frame and the
16960 font-driver.
16961
16962 * xftfont.c (xftfont_default_fid): Delete it.
16963 (xftfont_open): Set xfont->fid to 0.
16964
16965 * fontset.c (FONTSET_OBJLIST): New macro.
16966 (fontset_find_font): Update font-object list of the fontset.
16967 (free_realized_fontset): New function.
16968 (free_face_fontset): Call free_realized_fontset.
16969 (Ffont_info): Call font_close_object only when enable_font_backend
16970 is set.
16971
16972 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
16973 [HAVE_NTGUI]: Include w32term.h.
16974 [MAC_OS]: Include macterm.ch.
16975 (font_otf_ValueRecord): Use make_number.
16976 (font_finish_cache): Fix handling of reference count.
16977 (font_clear_cache): Update num_fonts.
16978 (font_open_entity): Update smallest_char_width and
16979 smallest_font_height of the frame.
16980 (font_close_object): Update num_fonts.
16981 (Fclear_font_cache): Fix finding the target cache data.
16982
169832008-02-16 Glenn Morris <rgm@gnu.org>
16984
16985 * fontset.c (Finternal_char_font): Fix compilation warning.
16986
169872008-02-16 Eli Zaretskii <eliz@gnu.org>
16988
16989 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
16990 instead of char arrays. Enlarge the size of array passed to
16991 get_token_information.
16992
16993 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
16994 warnings.
16995
169962008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
16997
16998 * .gdbinit: Don't set `args', it breaks gdb --args.
16999
170002008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
17001
17002 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
17003 within a narrowed buffer.
17004
170052008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
17006
17007 * coding.c (decode_coding_object, encode_coding_object):
17008 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
17009
170102008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
17011
17012 * coding.c (coding_set_destination): Use BEG_BYTE rather than
17013 hardcoding 1.
17014 (detect_coding_system):
17015 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
17016 (string_char_to_byte, string_byte_to_char, insert_from_gap):
17017 * insdel.c (insert_from_gap):
17018 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
17019 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
17020 (string_to_multibyte):
17021 * character.c (chars_in_text, multibyte_chars_in_text):
17022 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
17023
17024 * character.h (FETCH_STRING_CHAR_ADVANCE)
17025 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
17026 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
17027 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
17028
17029 * casefiddle.c (casify_region): Only call after-change and composition
17030 functions on the part of the region that was changed.
17031
17032 * keyboard.c (read_avail_input):
17033 * frame.c (Fdelete_frame): Call Fdelete_terminal.
17034
170352008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17036
17037 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
17038 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
17039
170402008-02-11 Juanma Barranquero <lekktu@gmail.com>
17041
17042 * w32menu.c (push_submenu_start, push_submenu_end)
17043 (push_left_right_boundary, push_menu_pane, push_menu_item):
17044 * keyboard.c (read_key_sequence): Don't pass args with side effects
17045 to AREF, it fails when compiling with -DENABLE_CHECKING.
17046
170472008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
17048
17049 * Makefile.in (${lispsource}international/charprop.el):
17050 Delete this target.
17051
17052 * search.c (boyer_moore): Fix incorrect synching of the trunk and
17053 emacs-unicode-2.
17054
170552008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17056
17057 * terminal.c (Fdelete_terminal): Clean up the `force' path.
17058
170592008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17060
17061 * frame.c (Qnoelisp): New symbol.
17062 (syms_of_frame): Initialize it.
17063 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
17064 harmless Elisp code, from a strong `force' from x_connection_closed.
17065 * frame.h (Qnoelisp): Declare.
17066 * xterm.c (x_connection_closed): Pass `noelisp'.
17067
17068 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
17069 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
17070 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
17071 rather than `int' for the type of `type'.
17072
170732008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
17074
17075 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
17076
17077 * Makefile.in (GNUC): Remove support for gcc-1.x.
17078
170792008-02-10 Richard Stallman <rms@gnu.org>
17080
17081 * lisp.h (ASET): Use AREF, not ASLOT.
17082
170832008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17084
17085 * lisp.h (ASET): Check bounds.
17086
170872008-02-10 Glenn Morris <rgm@gnu.org>
17088
17089 * buffer.c (mode-name): Doc fix.
17090
170912008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17092
17093 * Makefile.in:
17094 * emacs.c:
17095 * gmalloc.c:
17096 * keyboard.c:
17097 * lisp.h:
17098 * m/ibm370aix.h:
17099 * process.c:
17100 * regex.c:
17101 * s/hpux.h:
17102 * sysdep.c:
17103 * sysselect.h:
17104 * systty.h:
17105 * unexec.c:
17106 * w32term.c:
17107 * xsmfns.c:
17108 * xterm.c: Remove code that deals with obsolete variables.
17109
17110 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
17111
17112 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
17113 nothing else needs it anymore.
17114
171152008-02-09 Eli Zaretskii <eliz@gnu.org>
17116
17117 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
17118 instead of unibyte_char_to_multibyte.
17119
171202008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17121
17122 * s/gnu-linux.h: Remove commented out code.
17123
17124 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
17125
17126 * Makefile.in: Update what RMS says about using autoconf.
17127 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
17128 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
17129 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
17130 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
17131
171322008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
17133
17134 * keymap.c (Fkey_description): Move side effect outside of macro call.
17135
17136 * xfaces.c (Finternal_make_lisp_face):
17137 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
17138
17139 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
17140 (syms_of_fontset): Use ASET.
17141
17142 * fns.c (concat): Move side effect outside of macro call.
17143 (hash_clear): Use ASET.
17144
171452008-02-08 Richard Stallman <rms@gnu.org>
17146
17147 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
17148 If FORCE, and frame has a surrogate minibuffer for another frame,
17149 delete the other frame first.
17150
171512008-02-07 Timo Savola <timo.savola@iki.fi>
17152
17153 * xterm.c (x_detect_focus_change): Handle embed client message.
17154 (handle_one_xevent): Ditto.
17155 (handle_one_xevent): If embedded and we get a button press/release,
17156 request focus.
17157 (xembed_set_info, xembed_send_message): New functions.
17158 (x_make_frame_visible): Call xembed_set_info if embedded.
17159 (x_make_frame_invisible): Call xembed_set_info if embedded.
17160 (x_term_init): Initialize Xatom_XEMBED.
17161 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
17162 (x_iconify_frame): Ditto.
17163
17164 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
17165 (enum xembed_info, enum xembed_message, enum xembed_focus)
17166 (enum xembed_modifier, enum xembed_accelerator): New.
17167 (xembed_set_info, xembed_send_message): Declare.
17168 (FRAME_X_EMBEDDED_P): New.
17169
17170 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
17171 gtk_plug_new.
17172
17173 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
17174 window ID of a frame.
17175 (x_window): Reparent frame if embedded.
17176 (Fx_create_frame): Don't set border width if embedded.
17177
17178 * emacs.c (USAGE3): Add --parent-id.
17179 (standard_args): Ditto.
17180
171812008-02-07 Jan Djärv <jan.h.d@swipnet.se>
17182
17183 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
17184
171852008-02-07 Jim Meyering <meyering@redhat.com>
17186
17187 Use "do...while (0)", not "if (1)...else" in macro definitions.
17188 The latter provokes a warning from gcc about the empty else, when
17189 followed by ";". Also, without that trailing semicolon, it would
17190 silently swallow up any following statement.
17191 * syntax.h (SETUP_SYNTAX_TABLE)
17192 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
17193 * buffer.h (DECODE_POSITION): Likewise.
17194 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
17195 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
17196 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
17197 (FETCH_CHAR_ADVANCE): Likewise.
17198 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
17199
172002008-02-07 Jim Meyering <meyering@redhat.com>
17201
17202 * lread.c [lint]: Don't include <sys/inode.h>.
17203
172042008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
17205
17206 * xselect.c (x_handle_dnd_message):
17207 * xmenu.c (digest_single_submenu, xmenu_show):
17208 * xdisp.c (with_echo_area_buffer_unwind_data)
17209 (format_mode_line_unwind_data, unwind_format_mode_line)
17210 (display_menu_bar):
17211 * eval.c (Ffetch_bytecode):
17212 * doc.c (store_function_docstring):
17213 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
17214 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
17215 * buffer.c (add_overlay_mod_hooklist): Use ASET.
17216
172172008-02-07 Kenichi Handa <handa@m17n.org>
17218
17219 * ftxfont.c (ftxfont_open): Don't set
17220 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
17221
17222 * ftfont.c (ftfont_open): Fix previous change.
17223
172242008-02-06 Jason Rumney <jasonr@gnu.org>
17225
17226 * w32font.c (w32font_text_extents): Fill in lbearing metric.
17227 Use cached metrics for ASCII characters.
17228 (w32font_open_internal): Don't set font's owning_frame.
17229 Cache metrics for ASCII characters.
17230
17231 * w32font.h (struct w32font_info): Add ascii_metrics.
17232 Remove owning_frame.
17233
172342008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
17235
17236 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
17237 to negative value.
17238
17239 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
17240
17241 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
17242
17243 * charset.c (syms_of_charset): Set QCtest and Qeq.
17244
172452008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
17246
17247 * process.c (Fstart_process):
17248 * callproc.c (Fcall_process): Handle the case where
17249 Funhandled_file_name_directory returns nil.
17250
17251 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
17252 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
17253 * font.c (check_gstring): Use them and AREF to access the vector before
17254 we know it's really a gstring.
17255 (Ffont_shape_text): Fix typo.
46e722a9 17256 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
17257
17258 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
17259 Declare.
17260
17261 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
17262
172632008-02-05 Jason Rumney <jasonr@gnu.org>
17264
17265 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
17266 Set smallest_font_height and smallest_char_width in display info.
17267
172682008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
17269
17270 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
17271
172722008-02-05 Miles Bader <miles@gnu.org>
17273
17274 * xfaces.c (get_lface_attributes, merge_named_face)
17275 (lookup_named_face, lookup_derived_face, realize_named_face):
17276 Revert 2008-02-01 change by cyd@stupidchicken.com.
17277
172782008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
17279
17280 * fontset.c (Ffontset_info): Handle the case of inhibitting the
17281 fallback fonts.
17282 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
17283
172842008-02-04 Jason Rumney <jasonr@gnu.org>
17285
17286 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
17287 set full_name.
17288 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
17289
172902008-02-03 Jason Rumney <jasonr@gnu.org>
17291
17292 * makefile.w32-in (OBJ1): Include font.o here.
17293 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
17294
172952008-02-02 Jason Rumney <jasonr@gnu.org>
17296
17297 * makefile.w32-in (temacs): Bump EMHEAP to 21.
17298
172992008-02-01 Jason Rumney <jasonr@gnu.org>
17300
17301 * s/cygwin.h: Define VIRT_ADDR_VARIES.
17302
17303 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
17304
173052008-02-01 Andreas Schwab <schwab@suse.de>
17306
17307 * Makefile.in (shortlisp, lisp): Update for rename of
17308 ../lisp/language/myanmar.el.
17309
173102008-02-01 Chong Yidong <cyd@stupidchicken.com>
17311
17312 * xfaces.c (get_lface_attributes): Delete function.
17313 (merge_named_face, lookup_named_face, lookup_derived_face)
17314 (realize_named_face): Call lface_from_face_name directly, and use
17315 the fact that merge_face_vectors does not alter its FROM argument.
17316
173172008-02-01 Jason Rumney <jasonr@gnu.org>
17318
17319 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
17320 input in the default locale. Handle non-Unicode multibyte input.
17321
173222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17323
17324 * fontset.c (reorder_font_vector): Exclude nil elements from the
17325 font group. Don't try multiple fonts.
17326 (fontset_font): Adjust for the above change.
17327 (Finternal_char_font): Return nil if the found font doesn't
17328 contain the character ch.
17329
17330 * Makefile.in (lisp, shortlisp): Add cham.el.
17331
173322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17333
17334 * font.h (FONTP): Make it return 1 also for a font-object.
17335
17336 * .gdbinit (xfontset): New function.
17337
17338 * font.c (font_find_for_lface): Check if the character C is
17339 supported or not only for the first font.
17340
17341 * fontset.c (reorder_font_vector): Fix typo.
17342 (fontset_find_font): Don't add a font-spec specifying a script.
17343 Use 0 (not Qt) for the indication of empty font-group. Change the
17344 format of RFONT-DEF. Return Qt if no font in the font-group
17345 support the character.
17346 (fontset_font): Adjust for the above change. If no font was
17347 found the character, remember that.
17348 (face_for_char): Adjust for the change of RFONT-DEF.
17349 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
17350 no font for the target.
17351 (Finternal_char_font): Adjust for the change of RFONT-DEF.
17352
173532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17354
17355 * font.c (font_load_for_face): Handle the case that the font in
17356 face->lface is a string.
17357
173582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17359
17360 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
17361
173622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17363
17364 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
17365 Fix previous change. If the frame is not on a window system,
17366 signal an error.
17367
173682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17369
17370 * coding.c (decode_coding_object, encode_coding_object): Adjust
17371 marker positions after conversion.
17372
17373 * lisp.h (struct Lisp_Marker): New member need_adjustment.
17374
173752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17376
17377 * font.c (font_find_for_lface): Fix the handling of the return
17378 value of font_has_char.
17379 (Ffont_shape_text): Fix previous change.
17380
17381 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
17382 (fontset_ref_and_range): Delete it.
17383 (fontset_find_font): Call char_table_ref_and_range instead of
17384 FONTSET_REF_AND_RANGE.
17385 (make_fontset): Don't setup font groups of Latin here.
17386 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
17387 (new_fontset_from_font): Make the specified font the default for
17388 all Latin characters.
17389
173902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17391
17392 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
17393 is on a window system before accessing the fontset of the frame.
17394
173952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17396
17397 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
17398
17399 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
17400 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
17401
17402 * font.c (Ffont_shape_text): If the font driver doesn't have a
17403 shaper function, make zero-width glyphs to have at least one-pixel
17404 width. Fix setting of `to' field of glyphs.
17405
174062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17407
17408 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
17409 glyphs.
17410
17411 * font.h (struct font_driver): Improve docstring of member `shape'.
17412
174132008-02-01 Kenichi Handa <handa@m17n.org>
17414
17415 * composite.c (syms_of_composite): Fix docstring of
17416 auto-composition-function.
17417
17418 * font.h (LGLYPH_SIZE): New macro.
17419
17420 * font.c (Ffont_fill_gstring): Stop filling when a character not
17421 supported by the font is found.
17422 (Ffont_shape_text): When a shape callback function returns nil,
17423 try at most two more times with larger gstring.
17424 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
17425
17426 * xdisp.c (handle_auto_composed_prop): Change the argument to
17427 auto-composition-function.
17428
17429 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
17430 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
17431 Lispy glyph and store it in the lgstring.
17432
17433 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
17434
17435 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
17436
174372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17438
17439 * font.c (Ffont_shape_text): Avoid unnecessary composition.
17440
17441 * fontset.c (Vfont_encoding_charset_alist): New variable.
17442 (syms_of_fontset): DEFVAR it.
17443 (reorder_font_vector, fontset_find_font): Optimize for the case of
17444 no need of reordering.
17445 (face_for_char): Map the charset property by
17446 Vfont_encoding_charset_alist.
17447
174482008-02-01 Jason Rumney <jasonr@gnu.org>
17449
17450 * w32font.c (logfonts_match): Don't check adstyle here.
17451 (font_matches_spec): Check here against physical font instead.
17452 (add_font_entity_to_list): Avoid some substitutions.
17453
17454 * font.c (font_parse_fcname): Default weight and slant to normal.
17455 (font_score): Prefer normal fonts if weight or slant unspecified.
17456 (font_score) [WINDOWSNT]: Scale weight difference down to closer
17457 match freetype scores.
17458
174592008-02-01 Jason Rumney <jasonr@gnu.org>
17460
17461 * w32font.c (w32font_text_extents): Don't use the frame stored in the
17462 font, as it may have been deleted.
17463 (w32_enumfont_pattern_entity): Map generic family to adstyle using
17464 most common hyphenless variation.
17465 (logfonts_match): Check generic family.
17466 (font_matches_spec): Don't check generic family here.
17467 (fill_in_logfont): Set generic family based on adstyle.
17468
17469 * w32font.h (w32font_get_cache): Update declaration.
17470
174712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17472
17473 * ftfont.c (ftfont_get_cache): Adjust the argument type.
17474
17475 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
17476 If none of the new drivers are available, call font_update_drivers
17477 with the old drivers.
17478
17479 * w32font.c (w32font_get_cache): Adjust the argument type.
17480
17481 * xfont.c (xfont_get_cache): Adjust the argument type.
17482
17483 * font.h (struct font_driver): Change argument type of get_cache.
17484
17485 * xftfont.c (xftfont_start_for_frame): Delete prototype.
17486
17487 * font.c (Ffont_get): Fix arguments to Fassoc.
17488 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
17489 (font_clear_cache): New function.
17490 (font_list_entities, font_matching_entity): Use font_get_cache.
17491 (font_update_drivers): Call font_clear_cache when finishing a driver.
17492
17493 * fontset.c (fontset_find_font): Fix previous change.
17494
174952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17496
17497 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
17498 dpyinfo->font_table.
17499 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
17500 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
17501
17502 * font.c (font_at): Handle the case that the arg C is negative.
17503 Handle the unibyte case.
17504 (Ffont_at): Call font_at with the arg C -1.
17505
17506 * xdisp.c (handle_auto_composed_prop): Don't get a character at
17507 the position here, and call font_at with the arg C -1.
17508 Don't check the range of the existing composition at the point.
17509
175102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17511
17512 * fontset.c (fontset_add): New args charset_id and family.
17513 Change caller.
17514 (load_font_get_repertory, fontset_find_font): Assume that
17515 font_spec is always a font-spec object.
17516 (Fset_fontset_font): Always store a font-spec object in a fontset.
17517
17518 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
17519 instead of get_property_and_range.
17520
175212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17522
17523 * xftfont.c (struct xftfont_info): Delete the member ft_face.
17524 (xftfont_open): Don't keep locking face.
17525 (xftfont_close): Don't unlock face.
17526 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
17527
17528 * fontset.c (fontset_find_font): Don't prefer a font of
17529 supplementary charset.
17530
175312008-02-01 Kenichi Handa <handa@m17n.org>
17532
17533 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
17534 script, langsys_tag to langsys, new member script.
17535 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 17536 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
17537 listing to the script specified in that property. Fix arg to
17538 OTF_check_features.
17539
175402008-02-01 Jason Rumney <jasonr@gnu.org>
17541
17542 * w32font.h: New file.
17543
17544 * w32font.c: Include it.
17545 (struct w32font_info): Add owning_frame field. Move to w32font.h.
17546 (w32font_open): Set owning_frame.
17547 (w32font_text_extents): Use owning_frame.
17548 (struct font_callback_data): Add opentype_only field.
17549 (add_font_entity_to_list): Use it to filter fonts.
17550 Don't check against full name.
17551 (w32font_list_internal): New function.
17552 (w32font_list): Use it.
17553 (w32font_match_internal): New function.
17554 (w32font_match): Use it.
17555 (w32font_open_internal): New function.
17556 (w32font_open): Use it.
17557 (w32font_get_cache, w32font_close, w32font_has_char)
17558 (w32font_encode_char, w32font_text_extents, w32font_draw):
17559 Make non-static.
17560
17561 * makefile.w32-in (w32font.o): Depend on w32font.h.
17562
175632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17564
17565 * charset.c (Fdefine_charset_internal): Record a supplementary
17566 charset at the tail of Vcharset_order_list.
17567
17568 * font.c (Ffont_shape_text): Fix the return value.
17569
17570 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
17571
17572 * xdisp.c (handle_auto_composed_prop): Fix previous change.
17573
175742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17575
17576 * ftfont.c (struct OpenTypeSpec): New struct.
17577 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
17578 (ftfont_get_open_type_spec): New function.
17579 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
17580
17581 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
17582
175832008-02-01 Jason Rumney <jasonr@gnu.org>
17584
17585 * w32font.c (add_font_entity_to_list): Compare only the beginning
17586 of full name.
17587
175882008-02-01 Kenichi Handa <handa@m17n.org>
17589
17590 * xdisp.c (handle_auto_composed_prop): Simplify the code.
17591 Never return HANDLED_RECOMPUTE_PROPS.
17592
175932008-02-01 Kenichi Handa <handa@m17n.org>
17594
17595 * font.c (font_gstring_produce): Delete it.
17596
17597 * composite.h (COMPOSITION_METHOD):
17598 Handle COMPOSITION_WITH_GLYPH_STRING.
17599
176002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17601
17602 * xfont.c (Qx): Delete.
17603 (syms_of_xfont): Don't initialize Qx.
17604
17605 * composite.h (enum composition_method):
17606 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
17607
176082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17609
17610 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
17611 (choose_face_font): Accept new form of font-spec.
17612
17613 * frame.h (font_driver_list): Declare it unconditionally.
17614 (struct frame): Define members font_driver_list and font_data_list
17615 unconditionally.
17616
17617 * fontset.c: Include "font.h" unconditionally.
17618 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
17619 (Fset_fontset_font): Accept a font-spec object.
17620
17621 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
17622 PIXEL_SIZE part a wild card.
17623
17624 * dispextern.h (struct glyph_string): Define members clip and
17625 num_clips unconditionally.
17626 (struct face): Define members font_info and extra unconditionally.
17627
17628 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
17629 ftfont_info only when HAVE_LIBOTF is defined.
17630
176312008-02-01 Andreas Schwab <schwab@suse.de>
17632
17633 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
17634 and end.
17635
176362008-02-01 Jason Rumney <jasonr@gnu.org>
17637
17638 * w32font.c (w32font_driver): Add new fields.
17639
176402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17641
17642 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
17643 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
17644 (LIBES): Add @M17N_FLT_CFLAGS@.
17645
17646 * composite.c (compose_text): Don't treat the new style
17647 composition specially.
17648
17649 * emacs.c (main): Call syms_of_font unconditionally.
17650
17651 * font.h (FONT_ENTITY_NOT_LOADABLE)
17652 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
17653 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
17654 (struct font_driver): New member shape.
17655 (font_registry_charsets): Extern it.
17656 (font_find_for_lface, font_prepare_composition): Adjust prototype.
17657 (font_otf_capability, font_drive_otf): Delete their externs.
17658
17659 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
17660 (font_charset_alist, font_registry_charsets): Move from xfont.c
17661 and rename.
17662 (font_prop_validate_otf): New function.
17663 (font_property_table): Register it for QCotf.
17664 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
17665 (font_drive_otf): Delete.
17666 (font_prepare_composition): New arg F. Adjust for the change of
17667 lispy gstring.
17668 (font_find_for_lface): New arg C.
17669 (font_load_for_face): Adjust for the change of font_find_for_lface.
17670 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
17671 lispy gstring.
17672 (Ffont_shape_text): New function.
17673 (Fopen_font): If the font size is not given, use 12-pixel.
17674 (Ffont_at): New arg STRING.
17675 (syms_of_font): Initalize font_charset_alist.
17676 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
17677 conditionally.
17678
17679 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
17680 fonts of the same font-spec. Change the format of RFONT-DEF.
17681 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
17682 Adjust for the change of RFONT-DEF.
17683 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
17684
17685 * ftfont.h: New file.
17686
17687 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
17688 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17689 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17690 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
17691 font_otf_capability and font_drive_otf, set ftfont_shape.
17692 (ftfont_list): Adjust for the change of :otf property value.
17693 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
17694 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
17695 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
17696 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17697 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
17698 (otf_gstring, gstring, m17n_flt_initialized): New variables.
17699
17700 * w32term.c (x_draw_composite_glyph_string_foreground):
17701 Adjust for the change of lispy gstring.
17702
17703 * xdisp.c (handle_composition_prop): Adjust for the change of
17704 lispy gstring. Call a function for auto-composition with the
17705 third arg it->window.
17706 (fill_composite_glyph_string): Adjust for the change of lispy string.
17707 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
17708
17709 * xfaces.c (set_font_frame_param): Adjust for the change of
17710 font_find_for_lface.
17711
17712 * xfont.c (x_font_charset_alist): Move to font.c and rename.
17713 (xfont_registry_charsets): Likewise. Change caller.
17714 (syms_of_xfont): Don't handle x_font_charset_alist.
17715
17716 * xftfont.c: Include "ftfont.h".
17717 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17718 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17719 (xftfont_close) [HAVE_LIBOTF]: Close otf.
17720 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17721 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
17722 Set xftfont_driver.shape to xftfont_shape.
17723
17724 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17725 the change of lispy gstring.
17726
177272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17728
17729 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
17730
177312008-02-01 Jason Rumney <jasonr@gnu.org>
17732
17733 * w32font.c (w32font_draw): Fill background manually.
17734
177352008-02-01 Jason Rumney <jasonr@gnu.org>
17736
17737 * font.c (Qfontp): Remove unused symbol.
17738 (QCantialias): New symbol.
17739 (syms_of_font): Define it.
17740 (font_property_table): Set a validator for QCantialias.
17741
17742 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
17743 Define if not already.
17744 (QCfamily): Share with xfaces.c.
17745 (Qstandard, Qsubpixel, Qnatural): New symbols.
17746 (syms_of_w32font): Define them. Don't define QCfamily here.
17747 (w32_antialias_type, lispy_antialias_type): New functions.
17748 (w32_enumfont_pattern_entity): New arg requested_font.
17749 Set antialias parameter if non-default was requested.
17750 (fill_in_logfont): Fill in lfQuality if :antialias specified.
17751
177522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17753
17754 * lread.c (read1): Undo the previous change.
17755
177562008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
17757
17758 * frame.c (Fdelete_frame): Call font_update_drivers only when
17759 USE_FONT_BACKEND is defined.
17760
177612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17762
17763 * font.h (struct font_bitmap): New member bits_per_pixel.
17764 (struct font_driver): New members start_for_frame and end_for_frame.
17765 (struct font_data_list): New struct.
17766 (font_put_frame_data, font_get_frame_data): Extern them.
17767
17768 * frame.h (struct frame): New member font_data_list.
17769
17770 * font.c (font_update_drivers): Call driver->start_for_frame and
17771 driver->end_for_frame at proper timings.
17772 (font_put_frame_data, font_get_frame_data): New functions.
17773 (Ffont_spec): Add usage in the docstring.
17774
17775 * frame.c (make_frame): Initialize f->font_data_list to NULL.
17776 (Fdelete_frame): Call font_update_drivers.
17777
17778 * xftfont.c (struct xftface_info): Delete the member xft_draw.
17779 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
17780 (xftfont_get_xft_draw): New function.
17781 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
17782 (xftfont_end_for_frame): New function.
17783 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
17784
17785 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
17786 Change argument. Cache GCs in the per-frame data.
17787 (struct ftxfont_frame_data): New struct.
17788 (ftxfont_draw_bitmap): New arg gc_fore and flush.
17789 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
17790 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
17791 (ftxfont_end_for_frame): New function.
17792 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
17793
17794 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
17795
177962008-02-01 Kenichi Handa <handa@m17n.org>
17797
17798 * xselect.c (Vselection_coding_system)
17799 (Vnext_selection_coding_system): Delete them.
17800 (syms_of_xselect): Don't declare selection-coding-system and
17801 next-selection-coding-system. They are declared in select.el.
17802
178032008-02-01 Jason Rumney <jasonr@gnu.org>
17804
17805 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
17806
17807 * w32fns.c: Include imm.h.
17808 (get_composition_string_fn, get_ime_context_fn): New optional
17809 system functions.
17810 (globals_of_w32fns): Load them from imm32.dll.
17811 (ignore_ime_char): New flag.
17812 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
17813 WM_IME_ENDCOMPOSITION messages.
17814
17815 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
17816 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
17817
178182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17819
17820 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
17821 (READCHAR_REPORT_MULTIBYTE): New macro.
17822 (readchar): New 2nd arg MULTIBYTE.
17823 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
17824 Make symbol's name multibyte according to the multibyteness of the
17825 source.
17826
178272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17828
17829 * xfaces.c (face_for_overlay_string): Call lookup_face with
17830 correct arguments (fix of synching with the trunk).
17831
178322008-02-01 Kenichi Handa <handa@m17n.org>
17833
17834 * font.c (font_prop_validate_symbol, font_prop_validate_style)
17835 (font_prop_validate_non_neg, font_prop_validate_spacing):
17836 Delete argument prop_index.
17837 (font_property_table): Change arguments to validater. Change Callers.
17838 (font_lispy_object): Delete.
17839 (font_at): Use font_find_object instead fo font_lispy_object.
17840
178412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17842
17843 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
17844 and file names.
17845
178462008-02-01 Jason Rumney <jasonr@gnu.org>
17847
17848 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
17849 (font_matches_spec): Remove debug output.
17850 (add_font_entity_to_list): Avoid using substituted fonts.
17851
178522008-02-01 Jason Rumney <jasonr@gnu.org>
17853
17854 * doc.c (Fsnarf_documentation):
17855 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
17856
178572008-02-01 Miles Bader <miles@gnu.org>
17858
17859 * dispextern.h (struct glyph_row): Only define "clip" field if
17860 HAVE_WINDOW_SYSTEM is defined.
17861
178622008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17863
17864 Fix up multi-tty merge.
17865
17866 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
17867 and indentation.
17868
17869 * xfaces.c (free_realized_face, clear_face_gcs):
17870 Include font_done_for_face in the input_blocked section, just in case.
17871
17872 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
17873 (get_char_face_and_encoding): Undo last change and remove the *other*
17874 duplicate definition (i.e. keep the one that's better scoped and that
17875 includes code for the font-backend).
17876
17877 * terminal.c (create_terminal): Default keyboard_coding to
17878 `no-conversion' and terminal_coding to `undecided'.
17879
17880 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
17881
17882 * fontset.c (free_realized_fontsets): Check that the table entry does
17883 contain a fontset before trying to compare it to `base'.
17884
17885 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
17886 syms_of_charset, and syms_of_coding earlier because init_window_once
17887 now needs Vcoding_system_hash_table to be setup.
17888
17889 * coding.h (default_buffer_file_coding): Remove.
17890
17891 * coding.c (default_buffer_file_coding): Remove.
17892 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
17893 than ->symbol, and use the terminal-local coding system.
17894 (syms_of_coding): Don't setup the coding-systems that are not
17895 terminal-local.
17896 (Fdefine_coding_system_internal): Use XCAR/XCDR.
17897
17898 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
17899 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
17900
17901 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
17902 in chartab.c and were re-added here by mistake.
17903 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
17904
17905 * doc.c (Fsnarf_documentation):
17906 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
17907 src to etc.
17908
17909 * ChangeLog.10: Add mistakenly removed entry.
17910
179112008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
17912
17913 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
17914
179152008-02-01 Miles Bader <miles@gnu.org>
17916
17917 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
17918 Add extra args to FACE_FOR_CHAR.
17919
179202008-02-01 Kenichi Handa <handa@m17n.org>
17921
17922 * keymap.c (where_is_internal_1): If key is a cons, store the copy
17923 in sequence.
17924
17925 * chartab.c (map_sub_char_table, map_char_table): If the range
17926 contains just one character, call the function with that character
17927 even if the depth is not 3.
17928
179292008-02-01 Jason Rumney <jasonr@gnu.org>
17930
17931 * w32font.c (w32font_text_extents): Calculate metrics for the
17932 whole string.
17933
179342008-02-01 Jason Rumney <jasonr@gnu.org>
17935
17936 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
17937
179382008-02-01 Jason Rumney <jasonr@gnu.org>
17939
17940 * w32term.c (x_set_glyph_string_clipping): Use
17941 get_glyph_string_clip_rects.
17942 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17943 Adjust for the change of struct glyph_string.
17944
17945 * w32font.c (w32font_draw): Do clipping here.
17946
179472008-02-01 Kenichi Handa <handa@m17n.org>
17948
17949 * xftfont.c (xftfont_draw): Adjust for the change of struct
17950 glyph_string.
17951
17952 * xterm.c (x_set_glyph_string_clipping): Use
17953 get_glyph_string_clip_rects.
17954 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17955 Adjust for the change of struct glyph_string.
17956
17957 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
17958 the resulting clip(s}.
17959 (expose_overlaps): Add arg r. Change callers. Set it to
17960 row->clip temporarily.
17961 (expose_window): Redraw rows overlapping the exposed area.
17962
17963 * dispextern.h (struct glyph_row): New member clip.
17964 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
17965 clip_height, new member clip, and num_clips.
17966
179672008-02-01 Kenichi Handa <handa@m17n.org>
17968
17969 * data.c (Fchar_or_string_p): Fix docstring.
17970
179712008-02-01 Kenichi Handa <handa@m17n.org>
17972
17973 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
17974 create a temporary XftDraw object.
17975
179762008-02-01 Kenichi Handa <handa@m17n.org>
17977
17978 * font.c (Ffontp): Fix docstring.
17979
17980 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
17981 strong evidence of ISO-2022.
17982
179832008-02-01 Kenichi Handa <handa@m17n.org>
17984
17985 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
17986 SYNTAX_ENTRY_FOLLOW_PARENT.
17987
179882008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17989
17990 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
17991 its type.
17992 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
17993 Update to the new type of weak_hash_tables and next_weak.
17994
17995 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
17996 a plain C pointer to Lisp_Hash_Table.
17997
17998 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
17999 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
18000 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
18001 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
18002 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
18003 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
18004 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
18005 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
18006 (GC_EQ): Remove since they've been identical to their non-GC_
18007 alter-egos ever since the markbit was eradicated.
18008
18009 * alloc.c:
18010 * buffer.c:
18011 * buffer.h:
18012 * data.c:
18013 * fileio.c:
18014 * filelock.c:
18015 * fns.c:
18016 * frame.h:
18017 * lisp.h:
18018 * macterm.c:
18019 * print.c:
18020 * process.c:
18021 * w32fns.c:
18022 * w32menu.c:
18023 * w32term.c:
18024 * xfns.c:
18025 * xmenu.c:
18026 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
18027
180282008-02-01 Kenichi Handa <handa@m17n.org>
18029
18030 * chartab.c (map_sub_char_table): Make it work for the top-level
18031 char-table. Fix handling of parent char-table.
18032 (map_char_table): Adjust for the above change.
18033
180342008-02-01 Jason Rumney <jasonr@gnu.org>
18035
18036 * w32font.c (Qgdi): Rename from Qw32.
18037
180382008-02-01 Jason Rumney <jasonr@gnu.org>
18039
18040 * w32bdf.c (get_quoted_string): Make function static.
18041
180422008-02-01 Kenichi Handa <handa@m17n.org>
18043
18044 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
18045 bigger ascent and descent than those of the font, use them as
18046 font's ascent and descent.
18047
180482008-02-01 Kenichi Handa <handa@m17n.org>
18049
18050 * Makefile.in (${lispsource}international/charprop.el): Move this
18051 target within "#ifdef HAVE_UNIDATA" and "#endif".
18052
180532008-02-01 Kenichi Handa <handa@m17n.org>
18054
18055 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
18056 (shortlisp): Add ../lisp/language/tai-viet.el.
18057
180582008-02-01 Ulrich Mueller <ulm@gentoo.org>
18059
18060 * Makefile.in (${lispsource}international/charprop.el): Depend on
18061 temacs${EXEEXT}.
18062
180632008-02-01 Jason Rumney <jasonr@gnu.org>
18064
18065 * w32font.c (w32font_close): Delete the GDI font object.
18066
18067 * w32menu.c: Include character.h.
18068
18069 * w32proc.c: Likewise.
18070
18071 * w32select.c: Likewise.
18072
18073 * makefile.w32-in (w32proc.o): Depend on character.h.
18074
180752008-02-01 Jason Rumney <jasonr@gnu.org>
18076
18077 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
18078
18079 * w32menu.c (syms_of_w32menu): Likewise.
18080
18081 * w32proc.c (syms_of_ntproc): Likewise.
18082
18083 * w32select.c (syms_of_w32select): Likewise.
18084
18085 * w32term.c (syms_of_w32term): Likewise.
18086
180872008-02-01 Jason Rumney <jasonr@gnu.org>
18088
18089 * w32font.c (w32font_draw): Delete brush after using it.
18090
180912008-02-01 Jason Rumney <jasonr@gnu.org>
18092
18093 * w32font.c (w32font_open): Don't set font_idx.
18094 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
18095 to font settings.
18096 (w32font_draw): Fill background explicitly.
18097
180982008-02-01 Jason Rumney <jasonr@gnu.org>
18099
18100 * w32term.c (w32_initialize): Don't call w32font_initialize.
18101
18102 * w32font.c (w32font_info): Remove subranges.
18103 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
18104 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
18105 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
18106 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
18107 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
18108 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
18109 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
18110 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
18111 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
18112 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
18113 New symbols.
18114 (font_callback_data): New struct.
18115 (w32font_list, w32font_match): Use it.
18116 (w32font_open): Don't populate subranges.
18117 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
18118 (w32font_encode_char): Always return unicode code-point as-is.
18119 (w32font_text_extents): Supply a transformation matrix to
18120 GetGlyphOutline. Never look up by glyph index. Avoid looping
18121 twice. Use unicode version of GetTexExtentPoint32 instead of
18122 glyph index version.
18123 (set_fonts_frame): Remove.
18124 (w32_enumfont_pattern_entity): Add frame parameter, use it to
18125 set frame parameter. Use backward compatible fake foundries.
18126 Save generic family in extra slot under QCfamily. Make width slot
18127 constant. Save QCspacing value. Save list of scripts instead of
18128 binary subranges.
18129 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
18130 (add_font_entity_to_list): Use font_callback_data struct. Filter
18131 unwanted fonts.
18132 (add_one_font_entity_to_list): Use font_callback_data struct.
18133 (w32_registry): Default to iso10646_1.
18134 (fill_in_logfont): Use dpi from extra slot. Don't bother with
18135 string font registries. Don't fill in font name if it is a generic
18136 family name, fill family instead. Use spacing, family and script
18137 extra info to fill pitch, family and charset fields.
18138 (list_all_matching_fonts): Use font_callback_data struct.
18139 (unicode_range_for_char): Remove.
18140 (font_supported_scripts): New function.
18141 (w32font_initialize): Remove.
18142 (syms_of_w32font): Update which symbols are defined.
18143
181442008-02-01 Jason Rumney <jasonr@gnu.org>
18145
18146 * font.c (font_pixel_size): Reverse assq_no_quit args.
18147
18148 * w32term.h (FONT_WIDTH): Report max width, not average.
18149 (FONT_MAX_WIDTH): Remove.
18150 (FONT_AVG_WIDTH): New macro.
18151
18152 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
18153 redefinition of FONT_WIDTH.
18154
18155 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
18156 (w32_cache_char_metrics): Use FONT_WIDTH.
18157
18158 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
18159
181602008-02-01 Jason Rumney <jasonr@gnu.org>
18161
18162 * w32font.c (w32font_open): Make lfHeight negative.
18163
18164 * w32fns.c (x_default_font_parameter): Use new style font name.
18165 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
18166
181672008-02-01 Jason Rumney <jasonr@gnu.org>
18168
18169 * w32font.c (QCsubranges): New symbol.
18170 (w32font_open, w32font_has_char): Get subranges from subproperty
18171 of extra.
18172 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
18173 (syms_of_w32font): Define :subranges symbol.
18174
18175 * font.c (font_put_extra): Expose externally.
18176
18177 * font.h (font_put_extra): Move declaration from font.c.
18178
18179 * font.c (Ffont_get): Use font driver to determine otf capability.
18180 (adjust_anchor): Check if driver defines anchor_point before using.
18181
18182 * w32font.c (w32font_open): Handle size, height and pixel_size better.
18183 (w32font_draw): Use options.
18184 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
18185 Fix detection of truetype fonts.
18186 (registry_to_w32_charset): Handle charsets other than iso8859-1
18187 expressed as lisp symbols.
18188 (w32_registry): Express charset as lisp symbol.
18189 (fill_in_logfont): Reverse pixel and point height logic.
18190 Don't set width here. Set quality to default.
18191
18192 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
18193 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
18194
18195 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18196 Remove redundant loop and allocation.
18197
18198 * makefile.w32-in (font.o, w32font.o): New objects.
18199 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
18200 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
18201
18202 * xdisp.c (fill_composite_glyph_string): Make the first arg to
18203 STORE_XCHARB a valid l-value.
18204
18205 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
18206 calculations for non-Truetype fonts.
18207 (x_draw_glyph_string): Sync with xterm.c.
18208 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18209 Remove redundant code.
18210 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
18211
18212 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
18213 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
18214
18215 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
18216 (x_to_w32_charset, w32_to_x_charset): Expose externally.
18217
18218 * w32font.c: New file for w32 font backend.
18219
182202008-02-01 Kenichi Handa <handa@m17n.org>
18221
18222 * term.c: Don't include "buffer.h" twice.
18223
182242008-02-01 Kenichi Handa <handa@m17n.org>
18225
18226 * character.c (Funibyte_string): New function.
18227 (syms_of_character): Defsubr it.
18228
182292008-02-01 Jason Rumney <jasonr@gnu.org>
18230
18231 * w32term.c [USE_FONT_BACKEND]:
18232 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
18233 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
18234 (x_draw_glyph_string, x_draw_glyph_string_foreground)
18235 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
18236 (x_free_frame_resources): Sync with xterm.c.
18237
182382008-02-01 Andreas Schwab <schwab@suse.de>
18239
18240 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
18241 char-table size.
18242
182432008-02-01 Kenichi Handa <handa@m17n.org>
18244
18245 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
18246
182472008-02-01 Kenichi Handa <handa@m17n.org>
18248
18249 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
18250 font_otf_gpos, add font_drive_otf.
18251
18252 * fontset.c (fontset_find_font): Pay attention to font size
18253 specified for a font.
18254 (reorder_font_vector): Check contents of font_def.
18255
18256 * font.c (struct otf_list): Delete it.
18257 (otf_list): Make it a lisp variable.
18258 (otf_open): Use lispy otf_list.
18259 (generate_otf_features): Rename from parse_gsub_gpos_spec.
18260 (check_otf_features): New function.
18261 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18262 New functions.
18263 (font_drive_otf): New function merging font_otf_gsub and
18264 font_otf_gpos.
18265 (font_open_for_lface): New arg spec. Change argument order.
18266 (font_load_for_face): Adjust for the change of font_open_for_lface.
18267 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
18268 Ffont_otf_gpos.
18269 (syms_of_font): Staticpro otf_list. Delete defsubr of
18270 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
18271
18272 * xfaces.c (set_font_frame_param): Adjust for the change of
18273 font_open_for_lface.
18274
18275 * font.h (font_open_for_lface): Adjust prototype.
18276 (struct font_driver): Delete members otf_gsub and otf_gpos, add
18277 member otf_drive.
18278 (font_otf_gsub, font_otf_gpos): Delete externs.
18279 (font_drive_otf): Extern it.
18280
182812008-02-01 Kenichi Handa <handa@m17n.org>
18282
18283 * font.c (font_at): If the window W is not on a window system,
18284 return Qnil.
18285
18286 * coding.c (produce_chars, encode_coding): Don't call
18287 insert_from_gap if no characters to produce.
18288
182892008-02-01 Kenichi Handa <handa@m17n.org>
18290
18291 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
18292 Fclear_face_cache.
18293
18294 * xfaces.c (face_for_font): Check also face->font==font->font.font.
18295
182962008-02-01 Miles Bader <miles@gnu.org>
18297
18298 * emacs.c (main): Change default value of `enable_font_backend' to 1.
18299 Parse "--disable-font-backend" option.
18300 (standard_args): Add "--disable-font-backend" option.
18301
183022008-02-01 Kenichi Handa <handa@m17n.org>
18303
18304 * fontset.c (fontset_find_font): New function.
18305 (fontset_font): Use fontset_find_font.
18306 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
18307 Register the specified font for all Latin characters.
18308 (new_fontset_from_font): Register the specified font for all Latin
18309 characters.
18310 (dump_fontset): For a realized fontset, include the base fontset
18311 name in the returned vector.
18312
183132008-02-01 Kenichi Handa <handa@m17n.org>
18314
18315 * character.h (CHAR_STRING): Cast C to unsigned on calling
18316 char_string.
18317
18318 * character.c (char_string): Type of arg C changed to unsigned.
18319 Signal an error if C is an invalid character code.
18320
18321 * editfns.c (general_insert_function, Fchar_to_string):
18322 Use CHARACTERP, not INTEGERP.
18323
183242008-02-01 Kenichi Handa <handa@m17n.org>
18325
18326 * character.h (MIN_MULTIBYTE_LEADING_CODE)
18327 (MAX_MULTIBYTE_LEADING_CODE): New macros.
18328
18329 * regex.c (analyse_first): Fix for multibyte characters in "case
18330 charset:" and "case categoryspec:".
18331
183322008-02-01 Andreas Schwab <schwab@suse.de>
18333
18334 * Makefile.in (LIBES): Move standard libraries to the end.
18335
183362008-02-01 Kenichi Handa <handa@m17n.org>
18337
18338 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
18339 nonzero, don't shrink the buffer nextb.
18340
18341 * buffer.h (struct buffer_text): New member inhibit_shrinking.
18342
18343 * coding.c (coding_alloc_by_making_gap): New arg offset.
18344 (alloc_destination): Call coding_alloc_by_making_gap with the arg
18345 offset.
18346 (decode_coding_iso_2022): Update coding->safe_charsets.
18347 (decode_coding_gap): Temporarily set
18348 current_buffer->text->inhibit_shrinking to 1.
18349
183502008-02-01 Kenichi Handa <handa@m17n.org>
18351
18352 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
18353 indexing into elements of s->cmp and s->char2b.
18354
183552008-02-01 Juanma Barranquero <lekktu@gmail.com>
18356
18357 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
18358
183592008-02-01 Kenichi Handa <handa@m17n.org>
18360
18361 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
18362 target_multibyte instead of multibyte.
18363 (re_match_2_internal): Call bcmp_translate with target_multibyte.
18364 (bcmp_translate): Change the argument name from multibyte to
18365 target_multibyte.
18366
183672008-02-01 Kenichi Handa <handa@m17n.org>
18368
18369 These changes are to compile a regexp into a pattern that can be
18370 used both for multibyte and unibyte targets.
18371
18372 * Makefile.in (search.o): Depend on charset.h.
18373
18374 * character.c (multibyte_char_to_unibyte_safe): New function.
18375
18376 * search.c: Include "charset.h".
18377 (compile_pattern_1): Delete argument multibyte. Don't set
18378 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
18379 (compile_pattern): Don't compare cp->buf.target_multibyte.
18380 Compare cp->buf.charset_unibyte.
18381 (compile_pattern): Set cp->buf.target_multibyte.
18382
18383 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
18384
18385 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
18386
18387 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
18388 multibyte. Change callers.
18389 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
18390 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
18391 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
18392 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
18393 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
18394 (regex_compile): Make the compiled pattern usable both for
18395 multibyte and unibyte targets.
18396 (analyse_first): Make the fastmap usable both for multibyte and
18397 unibyte targets.
18398 (TRANSLATE_VIA_MULTIBYTE): Delete.
18399 (re_match_2_internal): Pay attention to the case that the
18400 multibyteness of bufp and target may be different.
18401
184022008-02-01 Kenichi Handa <handa@m17n.org>
18403
18404 * xdisp.c (x_produce_glyphs): When a font is not found, make the
18405 empty box occupy at least one column width.
18406
184072008-02-01 Miles Bader <miles@gnu.org>
18408
18409 * Makefile.in: Remove redundant HAVE_XFT clause.
18410
184112008-02-01 Kenichi Handa <handa@m17n.org>
18412
18413 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
18414
184152008-02-01 Kenichi Handa <handa@m17n.org>
18416
18417 * fontset.c (Finternal_char_font): Fix for the case of POSITION
18418 being nil.
18419
184202008-02-01 Kenichi Handa <handa@m17n.org>
18421
18422 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
18423
184242008-02-01 Kenichi Handa <handa@m17n.org>
18425
18426 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
18427
184282008-02-01 Kenichi Handa <handa@m17n.org>
18429
18430 * search.c (simple_search): Fix previous change.
18431
184322008-02-01 Kenichi Handa <handa@m17n.org>
18433
18434 * xftfont.c (ftfont_font_format): Extern declaration.
18435
18436 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
18437
18438 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
18439 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
18440
18441 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
18442 (ftfont_font_format): Fix previous change.
18443
18444 * font.h (Ffont_xlfd_name): EXFUN it.
18445
18446 * font.c (font_parse_xlfd): Fix the array size of `f'.
18447 (register_font_driver): Use EQ to compare driver->type.
18448
18449 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
18450 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
18451 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
18452
184532008-02-01 Kenichi Handa <handa@m17n.org>
18454
18455 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
18456 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
18457
184582008-02-01 Kenichi Handa <handa@m17n.org>
18459
18460 * xfont.c (xfont_open): Set font->format.
18461
18462 * xftfont.c (xftfont_open): Set font->format.
18463
18464 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
18465 (ftfont_list): Include FC_FONTFORMAT in FcObject.
18466 (ftfont_open): Set font->format.
18467 (ftfont_font_format): New function.
18468
18469 * font.h (struct font): New member format.
18470
18471 * font.c (Qopentype): New variable.
18472 (syms_of_font): Defsym it.
18473 (Fquery_font): Change the format of the last element of the return
18474 value.
18475
184762008-02-01 Kenichi Handa <handa@m17n.org>
18477
18478 * xfns.c (xic_create_xfontset): Try the default fontset name as a
18479 last resort.
18480
184812008-02-01 Kenichi Handa <handa@m17n.org>
18482
18483 * coding.c (detect_coding_charset): Fix detection of multi-byte
18484 charset.
18485
184862008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
18487
18488 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
18489
184902008-02-01 Kenichi Handa <handa@m17n.org>
18491
18492 * xdisp.c (get_next_display_element): Set it->face_id for the
18493 first component of a composition.
18494 (x_produce_glyphs): Check if the font is changed or not for composition.
18495
184962008-02-01 Kenichi Handa <handa@m17n.org>
18497
18498 * fontset.c (Qlatin): New variable.
18499 (syms_of_fontset): Define it as a lisp symbol.
18500 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
18501
185022008-02-01 Kenichi Handa <handa@m17n.org>
18503
18504 * font.c (font_unparse_fcname): Pay attention to the case that
18505 some of font property is a null string.
18506
185072008-02-01 Kenichi Handa <handa@m17n.org>
18508
18509 * term.c: Include "composite.h".
18510 (encode_terminal_code): Output all components of composition.
18511 Check the size of encode_terminal_src.
18512 (produce_glyphs): For composition, call produce_composite_glyph.
18513 (append_composite_glyph, produce_composite_glyph): New functions.
18514
18515 * xdisp.c (x_produce_glyphs): In handling composition, if a font
18516 is not found, get font_info from the current ascii face.
18517
185182008-02-01 Kenichi Handa <handa@m17n.org>
18519
18520 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
18521 buffer-file-name to Qnil before calling insert_from_buffer.
18522
18523 * font.c (font_unparse_fcname): Pay attention to the case that
18524 foundry is a null string.
18525
185262008-02-01 Kenichi Handa <handa@m17n.org>
18527
18528 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
18529
18530 * font.c (Qunicode_sip): New variable.
18531 (syms_of_font): Declare it as a Lisp symbol.
18532
18533 * font.h (Qunicode_sip): Extern it.
18534
185352008-02-01 Kenichi Handa <handa@m17n.org>
18536
18537 * composite.c (get_composition_id): Pay attention to TAB component.
18538
18539 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
18540 TAB. Adjust for the change of s->char2b which always points to
18541 the first element of allocated memory.
18542
18543 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
18544
18545 * xdisp.c (handle_composition_prop): Set it->c to the first
18546 non-TAB component.
18547 (fill_composite_glyph_string): Change argument.
18548 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
18549 (x_produce_glyphs): Fix handling of left/right padding.
18550
185512008-02-01 Kenichi Handa <handa@m17n.org>
18552
18553 * coding.c (detect_coding_system): Fix for handling off
18554 inhibit_iso_escape_detection. Fix for the case that no coding
18555 system is defined for a specific coding category.
18556
185572008-02-01 Kenichi Handa <handa@m17n.org>
18558
18559 * font.c (font_matching_entity): Delete unused local var.
18560
18561 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
18562 opening a font.
18563
18564 * fileio.c (Finsert_file_contents): On recovering a file, assume
18565 Unix-like eol.
18566 (choose_write_coding_system): On auto-saving a file, force
18567 Unix-like eol.
18568
18569 * coding.c (setup_coding_system): Fix setting of
18570 coding->common_flags based on eol_type.
18571 (coding_inherit_eol_type): If PARENT is not nil, be sure to
18572 inherit from it.
18573
185742008-02-01 Kenichi Handa <handa@m17n.org>
18575
18576 * alloc.c (NSTATICS): Increas to 0x600.
18577
185782008-02-01 Kenichi Handa <handa@m17n.org>
18579
18580 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
18581 (ftfont_list): Don't check :name property.
18582 (ftfont_match): New function.
18583 (ftfont_pattern_entity): If the pattern doesn't contain
18584 FC_SPACING, don't assume FC_MONO.
18585
18586 * font.h (struct font_driver): New member `match'.
18587 (font_update_drivers): Adjust prototype.
18588
18589 * font.c (font_parse_fcname, font_parse_name): Don't change :name
18590 property of FONT.
18591 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
18592 them unconditionally.
18593 (font_matching_entity): New function.
18594 (font_open_by_name): Try font_matching_entity if exact match is
18595 not found.
18596 (font_update_drivers): Delete the arg FONT. Return a list of
18597 actually used backends. Don't free faces, font caches here.
18598 Don't store data in frame parameters. Don't call x_set_font.
18599 (Ffont_spec): Store :name property as is.
18600 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
18601 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
18602 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
18603 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
18604 Call font->driver->otf_gsub instead of font_otf_gsub.
18605
18606 * frame.c (x_set_font_backend): Do more works that were done in
18607 font_update_drivers before.
18608
18609 * xfont.c (xfont_match): New function.
18610 (xfont_driver): Set xfont_driver.match to xfont_match.
18611 (xfont_draw): Set font in GC if necessary.
18612
18613 * ftxfont.c (ftxfont_match): New function.
18614 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
18615
18616 * xftfont.c (xftfont_match): New function.
18617 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
18618
186192008-02-01 Kenichi Handa <handa@m17n.org>
18620
18621 * font.h (struct font): New member scalable.
18622 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
18623 (font_otf_gsub): Adjust prototype.
18624
18625 * font.c (font_otf_capability): Fix handling of the default langsys.
18626 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
18627 Check the contents of SPEC.
18628 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
18629 (check_gstring): New function.
18630 (REPLACEMENT_CHARACTER): New macro.
18631 (font_otf_gsub): New arg alternate_subst. Be sure to set all
18632 glyph codes of GSTRING.
18633 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
18634 (font_prepare_composition): Set cmp->glyph_len.
18635 (font_open_entity): Set font->scalable.
18636 (Ffont_get): Handle :otf property.
18637 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
18638 functions.
18639 (Fquery_font): Use font->font.full_name.
18640 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
18641 Sfont_otf_alternates.
18642
18643 * ftfont.c (ftfont_open): Set font->font.full_name and
18644 font->font.name properly. Fix calculation of font->font.height
18645 and font->min_width.
18646
18647 * ftxfont.c (ftxfont_create_gcs): New function.
18648 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
18649 (ftxfont_draw_backgrond): Fix filling region.
18650 (ftxfont_default_fid): New function.
18651 (ftxfont_open): Set xfont->fid to the return value of
18652 ftxfont_default_fid.
18653 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
18654 (ftxfont_done_face): Free only GCs that are created by
18655 ftxfont_create_gcs.
18656 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
18657
18658 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
18659 Clip to src->width, etc (not src->clip_XXX).
18660
18661 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
18662 FontBackend frame parameter.
18663
186642008-02-01 Kenichi Handa <handa@m17n.org>
18665
18666 * font.h (struct font_driver_list): New member `on'.
18667 (Fclear_font_cache): EXFUN it.
18668 (font_update_drivers): Extern it.
18669
18670 * font.c (font_unparse_fcname): Fix typo (swidth->width).
18671 (font_list_entities): Check driver_list->on.
18672 (register_font_driver): Initalize `on' member to 0.
18673 (font_update_drivers): New function.
18674 (Fclear_font_cache): Check driver_list->on.
18675
18676 * frame.h (Qfont_backend): Extern it.
18677 (x_set_font_backend): Extern it.
18678
18679 * frame.c (Qfont_backend): New variable.
18680 (frame_parms): New element for font-backend.
18681 (x_set_font_backend): New function.
18682
18683 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
18684 FontBackend frame parameter.
18685 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
18686 x_set_font_backend.
18687
18688 * xfont.c (xfont_list): Don't try listing by :name property if the
18689 name is not for XLFD.
18690
186912008-02-01 Kenichi Handa <handa@m17n.org>
18692
18693 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
18694 (LGLYPH_SET_TO): New macros.
18695 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
18696 element of G is vector or not.
18697 (font_at): Extern it.
18698
18699 * font.c: Include window.h.
18700 (font_lispy_object): New function.
18701 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
18702 end of valid glyph.
18703 (font_close_object): Fix getting (struct font *).
18704 (font_at): New function.
18705 (Ffont_get): If FONT is a font-object, get entity from it.
18706 (Ffont_make_gstring): Initialize elements of glyphs with nil.
18707 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
18708 range check.
18709 (Ffont_at): New function.
18710 (syms_of_font): Defsubr Sfont_at.
18711
18712 * xdisp.c (it_props): Move the entry for Qauto_composed to just
18713 before the entry for Qcomposition.
18714 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
18715 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
18716 the font in gstring.
18717 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
18718 LGLYPH_FORM (g) to detect the end of valid glyph.
18719 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
18720 we are composing with gstring.
18721
18722 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
18723 Check if adjustment is vector or not.
18724
18725 * Makefile.in (font.o): Make it depends on window.h.
18726
187272008-02-01 Kenichi Handa <handa@m17n.org>
18728
18729 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
18730 adjustment is vector or not.
18731
187322008-02-01 Miles Bader <miles@gnu.org>
18733
18734 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
18735
187362008-02-01 Kenichi Handa <handa@m17n.org>
18737
18738 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
18739 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
18740 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
18741
18742 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
18743 (DEVICE_DELTA): Fix typo.
18744 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
18745 LGLYPH format.
18746
18747 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18748 the change of LGLYPH format.
18749
187502008-02-01 Kenichi Handa <handa@m17n.org>
18751
18752 * ftfont.c (ftfont_list): Fix typo.
18753 (ftfont_build_basic_charsets): Don't include letters with diacritics.
18754
187552008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18756
18757 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
18758
18759 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
18760 xftface_info is non-NULL.
18761
187622008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18763
18764 * ftfont.c (ftfont_list): Move misplaced #endif.
18765
187662008-02-01 Kenichi Handa <handa@m17n.org>
18767
18768 * ftfont.c (ftfont_list): Pay attention to the case that
18769 FC_CAPABILITY is not defined.
18770
187712008-02-01 Kenichi Handa <handa@m17n.org>
18772
18773 * xftfont.c (xftfont_open): Set charset related members to -1.
18774
18775 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
18776 QCname.
18777 (ftfont_open): Set charset related members to -1.
18778
18779 * fontset.c (Votf_script_alist): New variable.
18780 (syms_of_fontset): Initialize it.
18781 (fontset_font): Delete unused variable.
18782
18783 * fontset.h (Votf_script_alist): Extern it.
18784
18785 * font.c (font_find_for_lface): Optimize code.
18786
18787 * font.h (font_close_object, font_merge_old_spec): Extern them.
18788
187892008-02-01 Kenichi Handa <handa@m17n.org>
18790
18791 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
18792 (syms_of_font): Initialize them.
18793 (font_pixel_size): Allow float value in dpi.
18794 (font_prop_validate_type): Delete.
18795 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
18796 Change caller.
18797 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
18798 (font_prop_validate_extra): Delete.
18799 (font_prop_validate_spacing): New function.
18800 (font_property_table): Add elements for all known properties.
18801 (get_font_prop_index): Rename from check_font_prop_name. New
18802 argument FROM. Change caller.
18803 (font_prop_validate): Validate all known properties.
18804 (font_put_extra): Delete argument force. Change caller.
18805 (font_expand_wildcards): Make it static. Fix the way of shrinking
18806 the possible range.
18807 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
18808 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
18809 Change caller.
18810 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
18811 (font_parse_fcname): Delete argument merge. Fix parsing of point
18812 size. Don't validate properties values here. Change caller.
18813 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
18814 (font_open_by_name): Delete unused variable.
18815 (Ffont_spec): Likewise. Validate property values.
18816 (Ffont_match_p): New function.
18817
18818 * font.h (QCscalable): Extern it.
18819 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
18820
18821 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
18822
18823 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
18824 (xfont_list_pattern): New function.
18825 (xfont_list): Use xfont_list_pattern.
18826
188272008-02-01 Kenichi Handa <handa@m17n.org>
18828
18829 * font.h (Flist_fonts): EXFUN it.
18830
188312008-02-01 Jason Rumney <jasonr@gnu.org>
18832
18833 * w32term.c (w32_initialize): Add back smoothing_type and
18834 smoothing_enabled definitions.
18835
188362008-02-01 Kenichi Handa <handa@m17n.org>
18837
18838 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
18839 s->face->font on determining underline position.
18840
188412008-02-01 Kenichi Handa <handa@m17n.org>
18842
18843 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
18844 (font_has_char): Accept font-object too.
18845 (font_find_for_lface): Try at first with a size specified in face.
18846
188472008-02-01 Kenichi Handa <handa@m17n.org>
18848
18849 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
18850 font_open_by_name.
18851
188522008-02-01 Kenichi Handa <handa@m17n.org>
18853
18854 * font.h (QCspacing, QCdpi): Extern them.
18855 (enum font_spacing): New enum.
18856 (FONT_PIXEL_SIZE_QUANTUM): New macro.
18857
18858 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
18859 (QCspacing, QCdpi): New variables.
18860 (syms_of_font): Initialize them.
18861 (font_pixel_size): New function.
18862 (font_put_extra): New function.
18863 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
18864 in FONT_EXTRA.
18865 (font_parse_fcname): Handle enumerated values (e.g. bold).
18866 Fix handling font size. Add QCname property that contains only
18867 unknown properties.
18868 (font_score): Change argument. Change caller. Pay attention to
18869 FONT_PIXEL_SIZE_QUANTUM.
18870 (font_sort_entites, font_list_entities, font_find_for_lface)
18871 (font_open_for_lface, font_open_by_name): Fix handling of font size.
18872 (Ffont_spec): Add QCname property that contains only unknown properties.
18873
18874 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
18875 include weight in listing pattern, instead check weight of each
18876 listed font. Don't include scalable in pattern. Pay attention to
18877 FONT_PIXEL_SIZE_QUANTUM.
18878
188792008-02-01 Kenichi Handa <handa@m17n.org>
18880
18881 * font.c (font_parse_fcname): Fix parsing of point-size.
18882 (font_unparse_fcname): Produce symbolic names for style properties.
18883 (font_list_entities): Handle float size correctly.
18884 (font_open_by_name): Prefer `normal' property values if the name
18885 doesn't specify them.
18886
18887 * fontset.c (Finternal_char_font): Use font_get_name, not
18888 Ffont_xlfd_name.
18889
18890 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
18891 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
18892 pattern. Don't force scalable.
18893
18894 * xftfont.c (xftfont_open): For generating a name, start from
18895 96-byte buffer.
18896
188972008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18898
18899 * frame.h (x_new_fontset2): Fix prototype.
18900
189012008-02-01 Kenichi Handa <handa@m17n.org>
18902
18903 * font.h (struct font_driver): Delete member parse_name.
18904 (font_match_p, font_get_spec, font_parse_fcname)
18905 (font_unparse_fcname): Extern them.
18906 (font_get_name): Adjust prototype.
18907
18908 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
18909 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
18910 (font_expand_wildcards): Fix handling ENCODING field. Avoid
18911 unnecessary checks for weight, slant, and swidth.
18912 (font_parse_fcname): New function.
18913 (font_unparse_fcname): New function.
18914 (font_parse_name): New function.
18915 (font_match_p): New function.
18916 (font_get_name): Change return value to Lisp string.
18917 (font_get_spec): New function.
18918 (Qunspecified, Qignore_defface): Don't extern them.
18919 (font_find_for_lface): Assume that LFACE is fully specified.
18920 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
18921 object, use it for FACE.
18922 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
18923 driver->parse_name.
18924 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
18925
18926 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
18927 prototype.
18928
18929 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
18930 argument F. Don't call Fnew_fontset. Instead, directly call
18931 make_fontset.
18932
18933 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
18934
18935 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
18936 of x_new_fontset2.
18937
18938 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
18939 (Qsans__serif): New variables.
18940 (ftfont_generic_family_list): New variable.
18941 (syms_of_ftfont): Initialize the above variables.
18942 (ftfont_pattern_entity): Delete argument NAME.
18943 (ftfont_list_generic_family): New function.
18944 (ftfont_parse_name): Delete this function.
18945 (ftfont_list): Try generic family only when FcFontList found no font.
18946 (ftfont_list_family): Fix args to FcObjectSetBuild.
18947
18948 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
18949 object in attrs[LFACE_FONT_INDEX].
18950 (set_lface_from_font_name): Cancel all changes for font-backend.
18951 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
18952 function.
18953 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
18954 font object in QCfont attribute.
18955 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
18956 (realize_default_face) [USE_FONT_BACKEND]: Call
18957 set_lface_from_font_and_fontset.
18958
18959 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
18960 "fixed", and signal error here if no suitable font was found.
18961
18962 * xfont.c (xfont_parse_name): Delete this function.
18963
18964 * xftfont.c (xftfont_open): Change coding style of error
18965 handling. Generate fontconfig's fontname pattern.
18966
18967 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
18968 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
18969
18970 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
18971 Both args FONTSET and FONT_OBJECT must be existing ones.
18972
189732008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18974
18975 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
18976
189772008-02-01 Kenichi Handa <handa@m17n.org>
18978
18979 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
18980
18981 * font.h (struct font): Fix typo.
18982
18983 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
18984 XLFD_XXX_INDEX.
18985 (enum xlfd_field_mask): New enum.
18986 (intern_font_field): Changed argument. Change caller. If digits
18987 are followed by non-digits, return a symbol.
18988 (font_expand_wildcards): New function.
18989 (font_parse_xlfd): Fix wildcard handling.
18990 (Ffont_spec): If :name is specified, reflect the info in the other
18991 properties.
18992
18993 * ftfont.c (ftfont_pattern_entity): Fix typo.
18994 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
18995 locale.
18996
189972008-02-01 Kenichi Handa <handa@m17n.org>
18998
18999 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
19000
19001 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
19002 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
19003 registry doesn't specify encoding part.
19004 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
19005 (font_open_by_name): At first try parsing the name.
19006 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
19007 as Lisp symbols.
19008
19009 * fontset.c (reorder_font_vector): Pay attention to the case that
19010 the 3rd element of font_def is nil.
19011 (fontset_font): For the default fontset, append one more fontset
19012 elements for a script-based font specification. Don't add script
19013 attribute on finding a font.
19014 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
19015 font name.
19016 (fontset_ascii_font): If a font can't be opened, return nil.
19017
19018 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
19019 (ftfont_pattern_entity): New function.
19020 (ftfont_get_cache): Assume that freetype_font_cache is already
19021 initialized.
19022 (ftfont_list): Handle the case that a file is specified in font
19023 name. Use ftfont_pattern_entity to generate entities.
19024 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
19025 (syms_of_ftfont): Initialize freetype_font_cache.
19026
19027 * xftfont.c (xftfont_open): Make the font name fontconfig's
19028 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
19029 (xftfont_close): Free font->font.name if not NULL.
19030
19031 * xfont.c (xfont_list): If script is specified for a font, return
19032 null_vector.
19033 (xfont_list_family): Declare argument type.
19034
19035 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
19036 name, set LFACE_FONT (lface) to nil.
19037
19038 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
19039 return Qnil.
19040
190412008-02-01 Kenichi Handa <handa@m17n.org>
19042
19043 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
19044 (standard_args): Add "-enable-font-backend".
19045
190462008-02-01 Kenichi Handa <handa@m17n.org>
19047
19048 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
19049 (struct xftdraw_list, xftdraw_list): Delete them.
19050 (register_xftdraw, check_xftdraw): Delete them.
19051 (xftfont_prepare_face): Don't call register_xftdraw.
19052 (xftfont_done_face): Don't call check_xftdraw.
19053 (xftfont_draw): Get background color only when with_background is
19054 nonzero.
19055
19056 * xfont.c (xfont_encode_char): Fix calculation of char2b.
19057
190582008-02-01 Kenichi Handa <handa@m17n.org>
19059
19060 These changes are for the new font handling codes.
19061
19062 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
19063 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
19064 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
19065 (FONTSRC, FONTOBJ): New variables.
19066 (obj): Add $(FONTOBJ).
19067 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
19068 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
19069 @LIBOTF_LIBS@.
19070 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
19071 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
19072
19073 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
19074
19075 * character.h (Vscript_representative_chars): Extern it.
19076
19077 * character.c (Vscript_representative_chars): New variable.
19078 (syms_of_character): Declare it as a Lisp variable.
19079
19080 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
19081 enable_font_backend is nonzero, accept the composition method
19082 COMPOSITION_WITH_GLYPH_STRING.
19083
19084 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
19085 enumeration COMPOSITION_WITH_GLYPH_STRING.
19086
19087 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
19088 members clip_x, clip_y, clip_width, and clip_height.
19089 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
19090
19091 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
19092 --enable-font-backend. Call syms_of_font.
19093
19094 * fns.c (assoc_no_quit): New function.
19095
19096 * fontset.h (FONT_INFO_FROM_FACE): New macro.
19097 (face_for_font, new_fontset_from_font)
19098 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
19099
19100 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
19101 (fontset_font, fontset_ascii, face_for_char)
19102 (make_fontset_for_ascii_face, Ffont_info)
19103 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
19104 is nonzero, use font-backend mechanism.
19105 (find_font_encoding): Make it non-static.
19106 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
19107 New functions.
19108
19109 * frame.h (struct frame): New members resx and resy.
19110 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
19111 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
19112
19113 * frame.c [USE_FONT_BACKEND]: Include "font.h".
19114 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
19115
19116 * lisp.h (assoc_no_quit): Extern it.
19117
19118 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
19119 Through out the file, use FONT_INFO_FROM_FACE instead of
19120 FONT_INFO_FROM_ID, use get_per_char_metric instead of
19121 rif->per_char_metric.
19122 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
19123 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
19124 (get_glyph_face_and_encoding, fill_composite_glyph_string)
19125 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19126 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
19127 nonzero, use font-backend mechanism.
19128 (get_per_char_metric): New function.
19129
19130 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
19131 (set_lface_from_font_name)
19132 (set_font_frame_param, free_realized_face)
19133 (prepare_face_for_display, clear_face_gcs)
19134 (Finternal_set_font_selection_order, realize_x_face)
19135 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
19136 font-backend mechanism.
19137 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
19138 (load_face_font) [USE_FONT_BACKEND]: Abort.
19139 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
19140 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
19141
19142 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
19143 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
19144 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
19145 nonzero, register all available font drivers. Call
19146 x_default_font_parameter for deciding a font.
19147 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
19148
19149 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
19150 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
19151 (x_set_glyph_string_clipping_exactly)
19152 (x_compute_glyph_string_overhangs)
19153 (x_draw_glyph_string_foreground)
19154 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
19155 (x_free_frame_resources) [USE_FONT_BACKEND]: If
19156 enable_font_backend is nonzero, use font-backend mechanism.
19157 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
19158
191592008-02-01 Kenichi Handa <handa@m17n.org>
19160
19161 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
19162 system_eol_type.
19163 (syms_of_coding): Initialize system_eol_type.
19164
19165 * process.c (Fset_process_coding_system): Inherit system's eol
19166 format if necessary.
19167
191682008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19169
19170 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
19171
191722008-02-01 Kenichi Handa <handa@m17n.org>
19173
19174 * coding.c (decode_eol): Pay attention to buffer relocation in
19175 del_range_2.
19176 (decode_coding): Call decode_eol before restoring undo_list.
19177
191782008-02-01 Kenichi Handa <handa@m17n.org>
19179
19180 * charset.c (Fdefine_charset_internal): Fix setting of
19181 emacs_mule_bytes.
19182
191832008-02-01 Kenichi Handa <handa@m17n.org>
19184
19185 * keyboard.c (read_char): Check if C is a character or not before
19186 looking up Vkeyboard_translate_table.
19187
191882008-02-01 Kenichi Handa <handa@m17n.org>
19189
19190 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
19191 condition to terminate the loop.
19192
191932008-02-01 Kenichi Handa <handa@m17n.org>
19194
19195 * coding.c (produce_composition): Compare charbuf[i] instead of
19196 args[i] against 0.
19197 (Fterminal_coding_system): Use EQ to compare Lisp objects.
19198
191992008-02-01 Kenichi Handa <handa@m17n.org>
19200
19201 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
19202 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
19203 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
19204 detect_coding.
19205 (emacs_mule_char): Handle old style (Emacs 20) component character
19206 of a composition.
19207 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
19208 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
19209 composition rule.
19210 (decode_coding_emacs_mule): Handle invalid bytes correctly.
19211
192122008-02-01 Kenichi Handa <handa@m17n.org>
19213
19214 * coding.c (encode_coding_ccl): Allocate destination dynamically
19215 when necessary.
19216
192172008-02-01 Kenichi Handa <handa@m17n.org>
19218
19219 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
19220 the loop. When quitted, show a proper error message.
19221
192222008-02-01 Kenichi Handa <handa@m17n.org>
19223
19224 * xterm.c (x_set_glyph_string_clipping_exactly): Set
19225 src->clip_head and src->clip_tail temporarily instead of src->hl.
19226
19227 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
19228 character sequence.
19229 (Fccl_execute_on_string): Use ASET, not XSET.
19230
192312008-02-01 Kenichi Handa <handa@m17n.org>
19232
19233 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
19234
192352008-02-01 Kenichi Handa <handa@m17n.org>
19236
19237 * coding.c (decode_coding): Fix the condition of terminating the
19238 decoding loop.
19239
192402008-02-01 Kenichi Handa <handa@m17n.org>
19241
19242 * data.c (Faset): On setting a character bigger than 255 in a
19243 unibyte string, signal an error instead of make the string multibyte.
19244
192452008-02-01 Kenichi Handa <handa@m17n.org>
19246
19247 * charset.c (map_charset_chars): Fix for ascii-compatible charset
19248 made by a mapping table.
19249
192502008-02-01 Kenichi Handa <handa@m17n.org>
19251
19252 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
19253 not.
19254 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
19255 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
19256
19257 * xterm.c (x_draw_composite_glyph_string_foreground): Check
19258 s->face is NULL or not.
19259
192602008-02-01 Kenichi Handa <handa@m17n.org>
19261
19262 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
19263 (x_draw_glyph_string): Fix drawing of right_overhang and
19264 left_overhang around/on cursor.
19265
19266 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
19267
192682008-02-01 Kenichi Handa <handa@m17n.org>
19269
19270 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
19271
192722008-02-01 Kenichi Handa <handa@m17n.org>
19273
19274 * coding.c (Fdefine_coding_system_internal)
19275 (Fdefine_coding_system_alias): Avoid a duplicated element in
19276 Vcoding_system_alist.
19277
192782008-02-01 Kenichi Handa <handa@m17n.org>
19279
19280 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
19281
19282 * coding.c (Qcoding_system_define_form): New variable.
19283 (syms_of_coding): Intern and staticpro it.
19284 (Fcoding_system_p): Check Qcoding_system_define_form.
19285 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
19286
19287 * coding.h (CODING_SYSTEM_P): If ID is not available, call
19288 Fcoding_system_p.
19289 (CHECK_CODING_SYSTEM): If ID is not available, call
19290 Fcheck_coding_system.
19291 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
19292 Try also Fcheck_coding_system.
19293
192942008-02-01 Kenichi Handa <handa@m17n.org>
19295
19296 * coding.c (code_conversion_restore): GCPRO arg.
19297
192982008-02-01 Kenichi Handa <handa@m17n.org>
19299
19300 * character.c (lisp_string_width): Check multibyteness of STRING.
19301
193022008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19303
19304 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
19305 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
19306 (decode_mac_font_name): Use decode_coding_c_string instead of
19307 decode_coding.
19308 (x_load_font): Initialize fontp->fontset to -1. Set
19309 fontp->encoding_type.
19310
193112008-02-01 Kenichi Handa <handa@m17n.org>
19312
19313 * search.c (search_buffer): Give up BM search on case-fold-search
19314 if one of a target character has a case-equivalence of different
19315 byte length even if that target charcter is an ASCII.
19316 (simple_search): Fix calculation of byte length of matched text.
19317 (boyer_moore): Fix handling of case-equivalent multibyte characters.
19318
193192008-02-01 Kenichi Handa <handa@m17n.org>
19320
19321 * coding.c (decode_coding): Fix handling of invalid bytes.
19322
193232008-02-01 Kenichi Handa <handa@m17n.org>
19324
19325 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
19326 Unicode characters.
19327
193282008-02-01 Kenichi Handa <handa@m17n.org>
19329
19330 * coding.c (encode_coding_object): If a pre-write-conversion
19331 function makes a new buffer, kill it.
19332
193332008-02-01 Kenichi Handa <handa@m17n.org>
19334
19335 * coding.c (QCascii_compatible_p): New variable.
19336 (syms_of_coding): Initialize it.
19337 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
19338 calling string_char.
19339 (record_conversion_result): Add `default:' case.
19340 (coding_charset_list): Delete unused variable `coding_type'.
19341 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
19342 property in the plist of the coding system.
19343 (Fcoding_system_put): Check QCascii_compatible_p.
19344
193452008-02-01 Miles Bader <miles@gnu.org>
19346
19347 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
19348 removed calculation of frame `f', as it's now used.
19349
193502008-02-01 Kenichi Handa <handa@m17n.org>
19351
19352 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
19353 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
19354 (UNIDATA): New variable.
19355 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
19356 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
19357 $(RUN_TEMACS) unconditionally.
19358
193592008-02-01 Kenichi Handa <handa@m17n.org>
19360
19361 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
19362 (admindir): New variable.
19363 ($(lispsource)international/charprop.el): New target.
19364
193652008-02-01 Miles Bader <miles@gnu.org>
19366
19367 * character.c (chars-in-region): Remove obsolete function.
19368 (syms_of_character): Remove its initialization.
19369
193702008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
19371
19372 * w32select.c (validate_coding_system)
19373 (setup_windows_coding_system): New functions.
19374 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
19375 setup_windows_coding_system.
19376 (setup_config, Fw32_get_clipboard_data): Use
19377 validate_coding_system.
19378 (Fx_selection_exists): Move call to setup_config to a place
19379 where signals are allowed.
19380
19381 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
19382 (Fcheck_coding_system): Add declarations.
19383
193842008-02-01 Kenichi Handa <handa@m17n.org>
19385
19386 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
19387
193882008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19389
19390 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
19391 string as the second argument for x_new_fontset.
19392
193932008-02-01 Kenichi Handa <handa@m17n.org>
19394
19395 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
19396 (encode_coding_object): Use safe_call instead of call2.
19397
193982008-02-01 Kenichi Handa <handa@m17n.org>
19399
19400 * fontset.c (Fset_fontset_font): Check family element of a given vector.
19401
19402 * Makefile.in (lisp): Include charprop.el.
19403
194042008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19405
19406 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
19407 Not sure if it's unnecessary.
19408
194092008-02-01 Steven Tamm <steventamm@mac.com>
19410
19411 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
19412 some possibly unnecessary fontset checking code that crashed
19413 when creating a new frame.
19414
194152008-02-01 Kenichi Handa <handa@m17n.org>
19416
19417 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
19418 lookup_face.
19419
19420 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
19421
19422 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
19423
194242008-02-01 Kenichi Handa <handa@m17n.org>
19425
19426 * coding.c: Cancel the change done in HEAD on 2008-02-01.
19427 (coding_charset_list): New function.
19428
19429 * coding.h (coding_charset_list): Extern it.
19430
194312008-02-01 Kenichi Handa <handa@m17n.org>
19432
19433 * fontset.c (Fset_fontset_font): Call find_font_encoding with
19434 concatenation of family and registry.
19435
194362008-02-01 Kenichi Handa <handa@m17n.org>
19437
19438 * character.h (BYTE8_STRING): Fix typo.
19439
19440 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
19441 string to multibyte (sync to HEAD).
19442
19443 * casefiddle.c (casify_region): Handle changes in byte-length
19444 using replace_range_2 (sync to HEAD).
19445
194462008-02-01 Andreas Schwab <schwab@suse.de>
19447
19448 * chartab.c (map_char_table): GCPRO table and arg.
19449
194502008-02-01 Kenichi Handa <handa@m17n.org>
19451
19452 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
19453 already at limit.
19454
194552008-02-01 Kenichi Handa <handa@m17n.org>
19456
19457 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
19458 instead of fast_c_string_match_ignore_case.
19459 (find_font_encoding): Change argument to Lisp_Object. Use
19460 fast_string_match_ignore_case instead of
19461 fast_c_string_match_ignore_case. Change caller.
19462
194632008-02-01 Kenichi Handa <handa@m17n.org>
19464
19465 * xdisp.c (get_next_display_element): In unibyte case, decide to
19466 display in octal form by checking a character by
19467 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
19468
19469 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
19470
19471 * character.c (unibyte_has_multibyte_table): New variable.
19472
19473 * character.h (unibyte_has_multibyte_table): Extern it.
19474 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
19475
194762008-02-01 Kenichi Handa <handa@m17n.org>
19477
19478 * coding.c (encode_coding_iso_2022): Fix handling of charset
19479 annotation.
19480
194812008-02-01 Kenichi Handa <handa@m17n.org>
19482
19483 * coding.c (setup_coding_system): If coding_system is nil, use
19484 Qundecided.
19485 (Fterminal_coding_system): Return nil if terminal coding system is
19486 `undecided'.
19487 (syms_of_coding): Define coding-system `undecided' here. Setup
19488 terminal_coding as `undecided'.
19489
194902008-02-01 Kenichi Handa <handa@m17n.org>
19491
19492 * xdisp.c (message_dolog, set_message_1): Call
19493 unibyte_char_to_multibyte with arg type int.
19494
19495 * lread.c (read1): Fix reading of a char-table.
19496
19497 * print.c (print_object): Include sub char-table in circularities
19498 detection.
19499
195002008-02-01 Kenichi Handa <handa@m17n.org>
19501
19502 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
19503 Append the found sequences in car of ARGS instead of prepending.
19504
195052008-02-01 Kenichi Handa <handa@m17n.org>
19506
19507 * fileio.c (report_file_error): Make a unibyte string from
19508 strerror (errorno).
19509 (Fsubstitute_in_file_name): Fix the arg to
19510 unibyte_char_to_multibyte. It is evaluated twice.
19511
195122008-02-01 Kenichi Handa <handa@m17n.org>
19513
19514 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
19515
195162008-02-01 Kenichi Handa <handa@m17n.org>
19517
19518 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
19519 BOM is not found.
19520 (detect_coding, detect_coding_system): Optimization for ISO-2022
19521 when no 8-bit data is found.
19522
195232008-02-01 Jason Rumney <jasonr@gnu.org>
19524
19525 * w32fns.c (x_to_w32_font): Update to use new coding struct.
19526
195272008-02-01 Kenichi Handa <handa@m17n.org>
19528
19529 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
19530 CHARS.
19531
195322008-02-01 Steven Tamm <steventamm@mac.com>
19533
19534 * macterm.c (mac_encode_char): Add charset argument and update
19535 to use encoding_type.
19536 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
19537 switch to pure fontset.
19538 (decode_mac_font_name): Temporarily remove decoding.
19539 (x_font_name_to_mac_font_name): Temporarily remove encoding.
19540 (x_load_font): Temporarily remove encoding.
19541
195422008-02-01 Kenichi Handa <handa@m17n.org>
19543
19544 * xfaces.c (Fface_font): If frame is not on a window system,
19545 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
19546 refer to face->font.
19547 (split_font_name_into_vector, build_font_name_from_vector)
19548 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
19549 when HAVE_WINDOW_SYSTEM is defined.
19550
195512008-02-01 Kenichi Handa <handa@m17n.org>
19552
19553 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
19554 (x_produce_glyphs): Fix setting of members of cmp in case
19555 cmp->glyph_len is zero.
19556
19557 * fontset.c (Fset_fontset_font): Fix docstring.
19558 (Ffontset_info): Make it backward compatible. New arg ALL.
19559
195602008-02-01 Kim F. Storm <storm@cua.dk>
19561
19562 * process.c (read_process_output): Grow decoding_buf when needed;
19563 this could cause a crash in allocate_string and compact_small_strings.
19564
195652008-02-01 Kenichi Handa <handa@m17n.org>
19566
19567 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
19568
195692008-02-01 Kenichi Handa <handa@m17n.org>
19570
19571 * coding.c (setup_coding_system): Set coding->common_flags
19572 correctly for raw-text.
19573 (consume_chars): On encoding unibyte text by raw-text, don't check
19574 multibyte form.
19575 (encode_coding): On encoding by raw-text, never use translation tables.
19576
19577 * fileio.c (e_write): Short cut for the case of no encoding.
19578
195792008-02-01 Kenichi Handa <handa@m17n.org>
19580
19581 * coding.c (detect_coding, detect_coding_system): Delete unused
19582 variables.
19583
195842008-02-01 Kenichi Handa <handa@m17n.org>
19585
19586 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
19587 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
19588
195892008-02-01 Kenichi Handa <handa@m17n.org>
19590
19591 * coding.c (Ffind_coding_systems_region_internal): Include
19592 raw-text and no-conversion in the result.
19593
195942008-02-01 Kenichi Handa <handa@m17n.org>
19595
19596 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
19597 (load_font_get_repertory): Delete unnecessary check of ENCODING of
19598 FONT_DEF.
19599 (font_def_arg, add_arg, from_arg, to_arg): New args.
19600 (set_fontset_font): Change argument.
19601 (Fset_fontset_font): Fix for the case that TARGET is a script
19602 name and charset name.
19603 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
19604
196052008-02-01 Kenichi Handa <handa@m17n.org>
19606
19607 * fontset.c (fontset_font): Rename from fontset_face. Change return
19608 value.
19609 (face_suitable_for_char_p, face_for_char): Adjust for the change
19610 of fontset_font.
19611 (make_fontset_for_ascii_face): Fix setting of the fontset element
19612 for ASCII.
19613 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
19614 to get a font name.
19615 (Ffontset_info): Adjust for the change of fontset_font.
19616
19617 * coding.c (emacs_mule_char): Check invalid code more rigidly.
19618
19619 * character.h (LEADING_CODE_LATIN_1_MIN)
19620 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
19621
196222008-02-01 Kenichi Handa <handa@m17n.org>
19623
19624 * editfns.c (check_translation): New function.
19625 (Ftranslate_region_internal): Handle M:N mapping.
19626
196272008-02-01 Kenichi Handa <handa@m17n.org>
19628
19629 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
19630
196312008-02-01 Kenichi Handa <handa@m17n.org>
19632
19633 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
19634 goto invalid_code.
19635 (decode_coding_iso_2022): Fix handling of invalid designation.
19636
19637 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
19638 after calling code_conversion_save.
19639
196402008-02-01 Kenichi Handa <handa@m17n.org>
19641
19642 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
19643
19644 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
19645
19646 * fontset.c: Include "intervals.h".
19647 (fontset_face): Fix comparing of Lisp_Objects.
19648 (free_face_fontset, new_fontset_from_font_name): Fix
19649 Lisp_Object/int mixup.
19650
19651 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
19652
19653 * coding.c: Add many prototypes for static functions.
19654 (get_translation_table): Allow max_lookup to be NULL.
19655 (decode_coding, Ffind_coding_systems_region_internal)
19656 (Funencodable_char_position, Fcheck_coding_systems_region): Call
19657 get_translation_table with max_lookup NULL.
19658
196592008-02-01 Kenichi Handa <handa@m17n.org>
19660
19661 * coding.c (get_translation_table): Declare it as Lisp_Object.
19662 (LOOKUP_TRANSLATION_TABLE): New macro.
19663 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
19664 instead of CHAR_TABLE_REF.
19665
196662008-02-01 Kenichi Handa <handa@m17n.org>
19667
19668 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
19669 annotation data format.
19670 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
19671 Change arguments FROM and TO to single argument NCHARS. Change caller.
19672 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
19673 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19674 (decode_coding_ccl, decode_coding_charset): Pay attention to
19675 coding->charbuf_used.
19676 (get_translation): New function.
19677 (produce_chars): New arguments translation_table and last_block.
19678 Translate characters here. Return number of carryover chars.
19679 Change caller.
19680 (produce_composition): New argument pos. Change caller.
19681 Adjust for the change of annotation data format.
19682 (produce_charset, produce_annotation): Likewise.
19683 (decode_coding, encode_coding): Don't call translate_chars.
19684 (consume_chars): New arg translation_table. Change caller.
19685 (translate_chars): Delete.
19686 (syms_of_coding): Make translation-table's number of extra slots 2.
19687
196882008-02-01 Kenichi Handa <handa@m17n.org>
19689
19690 * search.c (simple_search): Fix setting this_pos_byte in backward
19691 search.
19692
19693 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
19694 byte sequence.
19695 (detect_coding_ccl): Fix setting of the variable valids.
19696
196972008-02-01 Kenichi Handa <handa@m17n.org>
19698
19699 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
19700
19701 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
19702
19703 * editfns.c (Ftranslate_region_internal): Rename from
19704 Ftranslate_region. Accept a char-table in TABLE.
19705 (syms_of_editfns): Defsubr Stranslate_region_internal.
19706
19707 * xfaces.c (set_lface_from_font_name): If a font is specified for
19708 a frame, generate a fontset from the font.
19709 (build_scalable_font_name): If the scalable font is requested for
19710 a specific size, don't change that size.
19711 (try_font_list): Try a scalable font also in the case that a
19712 pattern string is specified.
19713
197142008-02-01 Kenichi Handa <handa@m17n.org>
19715
19716 * xfaces.c (Fface_font): New optional arg CHARACTER.
19717
197182008-02-01 Kenichi Handa <handa@m17n.org>
19719
19720 * charset.h (CHARSET_OFFSET): New macro.
19721
197222008-02-01 Kenichi Handa <handa@m17n.org>
19723
19724 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
19725
19726 * fontset.c (fontset_face): Handle the case that repertory is a
19727 char-table.
19728 (find_font_encoding): Return nil for unknown encoding.
19729 (Fset_fontset_font): Ignore a font of unknown encoding.
19730
197312008-02-01 Kenichi Handa <handa@m17n.org>
19732
19733 * keymap.c (describe_vector): Handle default value of a char table.
19734
19735 * fontset.c (fontset_face): Handle fallback fonts correctly.
19736 (Ffontset_info): Return infomation about fallback fonts.
19737
197382008-02-01 Kenichi Handa <handa@m17n.org>
19739
19740 * fontset.c (FONTSET_DEFAULT): New macro.
19741 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
19742 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
19743 the case that it is nil.
19744 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
19745 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
19746
19747 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
19748 subset or superset.
19749
197502008-02-01 Kenichi Handa <handa@m17n.org>
19751
19752 * emacs.c (main): Call init_charset after syms_of_XXX.
19753
19754 * charset.c (Vcharset_map_directory): Delete.
19755 (Vcharset_map_path): New variable.
19756 (load_charset_map_from_file): Use Vcharset_map_path instead.
19757 (init_charset): Initialize Vcharset_map_path.
19758 (syms_of_charset): Delete declaration of "charset-map-directory",
19759 add declaration of "charset-map-path".
19760
197612008-02-01 Kenichi Handa <handa@m17n.org>
19762
19763 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
19764 ASCII only string.
19765
19766 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
19767
19768 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
19769 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
19770
197712008-02-01 Kenichi Handa <handa@m17n.org>
19772
19773 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
19774
19775 * coding.c (QCmnemonic, QCdefalut_char)
19776 (QCdecode_translation_table, QCencode_translation_table)
19777 (QCpost_read_conversion, QCpre_write_conversion): New variables.
19778 (get_translation_table): Return a list of translation tables if
19779 necessary.
19780 (decode_coding): Call get_translation_table with ENCODEP 0.
19781 (char_encodable_p): If translation_table is non-nil, always call
19782 translate_char.
19783 (Fdefine_coding_system_internal): Accept list of translation
19784 tables as :encode-translation-table and :decode-translation-table.
19785 (Fcoding_system_put): New function.
19786 (syms_of_coding): Declare new symbols. Defsubr
19787 Scoding_system_put.
19788 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
19789 typically JISX0212.
19790
19791 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
19792 when the charset is superset type.
19793
19794 * character.c (translate_char): Accept list of translation tables.
19795
197962008-02-01 Kenichi Handa <handa@m17n.org>
19797
19798 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
19799 (CODING_ATTR_TRANS_TBL): New macro.
19800
19801 * coding.c (get_translation_table): New function.
19802 (translate_chars): Fix the bug of skipping annotation data.
19803 (decode_coding, encode_coding): Utilize get_translation_table.
19804 (char_encodable_p, Funencodable_char_position): Translate char if
19805 necessary.
19806 (Ffind_coding_systems_region_internal)
19807 (Fcheck_coding_systems_region): Setup translation table for encode
19808 in a coding system attribute vector in advance.
19809 (Fdefine_coding_system_internal): Allow a symbol as translation
19810 table. For shift-jis type coding system, allow 4th charset.
19811
198122008-02-01 Kenichi Handa <handa@m17n.org>
19813
19814 * coding.c (decode_coding_sjis): Check the first byte rigidly.
19815
19816 * xdisp.c (get_next_display_element): Pass -1 as POS to
19817 FACE_FOR_CHAR if displaying a C-string.
19818
198192008-02-01 Kenichi Handa <handa@m17n.org>
19820
19821 * composite.c (get_composition_id): Handle xoff and yoff in a
19822 composition rule.
19823
19824 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
19825 (struct composition): New member lbearing and rbearing.
19826
19827 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
19828 (x_get_glyph_overhangs): Handle a composition glyph.
19829 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
19830
19831 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
19832 composition glyph.
19833
198342008-02-01 Kenichi Handa <handa@m17n.org>
19835
19836 * print.c: Include charset.h.
19837 (Vprint_charset_text_property): New variable.
19838 (Qdefault): Extern it.
19839 (PRINT_STRING_NON_CHARSET_FOUND)
19840 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
19841 (print_check_string_result): New variable.
19842 (print_check_string_charset_prop): New function.
19843 (print_prune_charset_plist): New variable.
19844 (print_prune_string_charset): New function.
19845 (print_object): Call print_prune_string_charset if
19846 Vprint_charset_text_property is not t.
19847 (print_interval): Print nothing if interval->plist is nil.
19848 (syms_of_print): Declare Vprint_charset_text_property as a lisp
19849 variable. Init and staticpro print_prune_charset_plist.
19850
198512008-02-01 Kenichi Handa <handa@m17n.org>
19852
19853 * fontset.c (new_fontset_from_font_name): Use the specified font
19854 for all characters in the new fontset.
19855
19856 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19857 OBJECT args.
19858
19859 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
19860 OBJECT args for composition too.
19861
19862 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19863 OBJECT args.
19864
198652008-02-01 Kenichi Handa <handa@m17n.org>
19866
19867 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
19868
19869 * fontset.c (reorder_font_vector): Adjust for the change of
19870 FONT_DEF format.
19871 (fontset_face): New arg id. Change caller.
19872 (face_for_char): New args pos and object.
19873 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
19874 (fs_query_fontset): Check NAME by Fassoc too.
19875 (Fset_fontset_font): Allow non-XLFD font name.
19876 (Ffontset_info): Adjust for the change of FONT_DEF format.
19877
19878 * fontset.h (face_for_char): Adjust prototype.
19879
19880 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
19881 (append_space, extend_face_to_end_of_line)
19882 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19883 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
19884
19885 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
19886 POS and OBJECT args.
19887
19888 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
19889 POS and OBJECT args.
19890
198912008-02-01 Jason Rumney <jasonr@gnu.org>
19892
19893 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
19894 of GlobalAlloc'ed memory.
19895
198962008-02-01 Kenichi Handa <handa@m17n.org>
19897
19898 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
19899
19900 * charset.h (charset_table_used): Delete extern.
19901
19902 * charset.c (charset_table_used): Make it static.
19903 (map_charset_chars): Fix args to c_function with.
19904
19905 * chartab.c (map_sub_char_table_for_charset): Fix args to
19906 c_function with.
19907
19908 * coding.h (enum coding_result_code): Delete
19909 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
19910
19911 * coding.c (Qinsufficient_source, Qinconsistent_eol)
19912 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
19913 (Vlast_code_conversion_error): New variables.
19914 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
19915 (ONE_MORE_BYTE): Record error if any instead of signaling an
19916 error. If non-ASCII multibyte char is found, return the negative
19917 value of the code. All callers changed to check it.
19918 (ONE_MORE_BYTE_NO_CHECK): Likewise.
19919 (record_conversion_result): New function. Change all codes setting
19920 coding->result to call this function.
19921 (detect_coding_utf_8, decode_coding_utf_8)
19922 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
19923 Don't use the local variable incomplete.
19924 (emacs_mule_char): Change the second arg to `const'.
19925 (decode_coding): Fix of flushing out unprocessed data.
19926 (make_conversion_work_buffer): Fix making of a work buffer.
19927 (decode_coding_object): Return coding->dst_object.
19928
19929 * fontset.c (set_fontset_font): Fix args.
19930
19931 * lisp.h (CHARACTERBITS): Define as 22.
19932
19933 * process.c (send_process): Be sure to set coding->src_multibyte.
19934
19935 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
19936
199372008-02-01 Kenichi Handa <handa@m17n.org>
19938
19939 * xdisp.c (handle_auto_composed_prop): Give limit to
19940 Fnext_single_char_property_change.
19941
199422008-02-01 Kenichi Handa <handa@m17n.org>
19943
19944 * composite.c (syms_of_composite): Don't make the composition hash
19945 table weak.
19946
19947 * fontset.c (Fset_fontset_font): Fix docstring.
19948
19949 * lisp.h (detect_coding_system): Adjust prototype.
19950
19951 * fileio.c (kill_workbuf_unwind): Delete this function.
19952 (Finsert_file_contents): Adjust the call of detect_coding_system.
19953 Get conversion_buffer by code_conversion_save. Use the macro
19954 CODING_MAY_REQUIRE_DECODING. After decoding, update
19955 coding_system.
19956
19957 * coding.h (make_conversion_work_buffer): Delete extern.
19958 (code_conversion_save): Extern it.
19959
19960 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
19961 (CODING_GET_INFO): Delete argument eol_type. Change callers.
19962 (decode_coding_utf_8): Don't do eol converion.
19963 (detect_coding_utf_16): Check coding->src_chars, not
19964 coding->src_bytes. Add heuristics for those that have no signature.
19965 (decode_coding_emacs_mule, decode_coding_iso_2022)
19966 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19967 Don't do eol converion.
19968 (adjust_coding_eol_type): Return a new coding system.
19969 (detect_coding): Don't detect eol. Fix for utf-16 detection.
19970 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
19971 each change.
19972 (decode_coding): Pay attention to undo_list. Do eol conversion for
19973 all types of coding-systems (if necessary).
19974 (Vcode_conversion_work_buf_list): Delete it.
19975 (Vcode_conversion_reused_workbuf): Rename from
19976 Vcode_conversion_reused_work_buf.
19977 (Vcode_conversion_workbuf_name): New variable.
19978 (reused_workbuf_in_use): New variable.
19979 (make_conversion_work_buffer): Delete the arg DEPTH.
19980 (code_conversion_restore): Change argument to cons.
19981 (code_conversion_save): Delete the argument BUFFER. Change callers.
19982 (detect_coding_system): New argument src_chars. Change callers.
19983 Fix for utf-16 detection.
19984 (init_coding_once): Don't use ISO_carriage_return.
19985 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
19986 reused_workbuf_in_use.
19987
199882008-02-01 Kenichi Handa <handa@m17n.org>
19989
19990 * keymap.c (store_in_keymap): Pay attention to the case that idx
19991 is a cons specifying a character range.
19992
199932008-02-01 Kenichi Handa <handa@m17n.org>
19994
19995 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
19996 HANDLED_RECOMPUTE_PROPS.
19997
19998 * coding.c (Fdefine_coding_system_internal): Fix checking of
19999 ascii compatibility.
20000
200012008-02-01 Kenichi Handa <handa@m17n.org>
20002
20003 * charset.c (find_charsets_in_text): Delete unused locale variable.
20004 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
20005
20006 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
20007 Resync charset_list to Vemacs_mule_charset_list.
20008
20009 * keymap.c (store_in_keymap): Pay attention to the case that idx
20010 is a cons specifying a character range.
20011
200122008-02-01 Kenichi Handa <handa@m17n.org>
20013
20014 * composite.c (update_compositions): Bind inhibit-read-only, etc
20015 to t before calling remove-list-of-text-properties.
20016
20017 * print.c (print_object): Always print ASCII chars as is.
20018
200192008-02-01 Kenichi Handa <handa@m17n.org>
20020
20021 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
20022
20023 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
20024 is a char table.
20025
200262008-02-01 Kenichi Handa <handa@m17n.org>
20027
20028 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
20029
200302008-02-01 Kenichi Handa <handa@m17n.org>
20031
20032 * xfaces.c (set_lface_from_font_name): Fix for the case that
20033 FONTNAME is not fontset name.
20034
200352008-02-01 Kenichi Handa <handa@m17n.org>
20036
20037 * fns.c (base64_encode_1): Fix previous change.
20038
200392008-02-01 Kenichi Handa <handa@m17n.org>
20040
20041 * fontset.c (set_fontset_font): New function.
20042 (Fset_fontset_font): If a font is specified for a charset, use
20043 map_charset_chars to store the font spec in a fontset.
20044
200452008-02-01 Kenichi Handa <handa@m17n.org>
20046
20047 * fontset.c (fontset_face): Create a fallback fontset on demand.
20048 (make_fontset): Don't create a fallback fontset here.
20049 (free_face_fontset): Free a fallback fontset (if any) too.
20050 (n_auto_fontsets): Delete this variable.
20051 (auto_fontset_alist): New variable.
20052 (new_fontset_from_font_name): Check auto_fontset_alist.
20053 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
20054 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
20055 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
20056 Defsubr Sfontset_list_all.
20057
200582008-02-01 Kenichi Handa <handa@m17n.org>
20059
20060 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
20061
200622008-02-01 Kenichi Handa <handa@m17n.org>
20063
20064 * fontset.c (Fnew_fontset): Check NAME more rigidly.
20065
200662008-02-01 Kenichi Handa <handa@m17n.org>
20067
20068 * editfns.c (Fgoto_char): Fix docstring.
20069
200702008-02-01 Kenichi Handa <handa@m17n.org>
20071
20072 * insdel.c (insert_from_gap): Adjust intervals correctly.
20073
200742008-02-01 Jason Rumney <jasonr@gnu.org>
20075
20076 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
20077 (pfnGetFontUnicodeRanges): New dynamically loaded function.
20078 (w32_initialize): Try to load it.
20079 (x_get_font_repertory): Use it if available.
20080 (w32_encode_char): Add shortcut for unicode output.
20081
20082 * w32fns.c (w32_load_system_font): Default charset to -1.
20083 (x_to_w32_charset): Match all fonts for unicode.
20084 (w32_to_x_charset): New parameter matching. Don't return partial
20085 or wildcard charsets.
20086 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
20087 (w32_codepage_for_font): Return CP_UNICODE for unicode.
20088 (w32_to_x_font): Match charset to real charset.
20089 (enum_font_cb2): Always list unicode versions.
20090
20091 * makefile.w32-in (temacs): Increase EMHEAP.
20092
200932008-02-01 Jason Rumney <jasonr@gnu.org>
20094
20095 * w32term.c (w32_encode_char): New charset parameter.
20096 font_info.encoding becomes encoding_type.
20097 (x_get_font_repertory): New function. Warning: stub only!
20098 (x_new_font): Return quickly if font already set.
20099 (x_new_fontset): fontsetname parameter is Lisp_Object.
20100 Use new fs_query_fontset. Try new_fontset_from_font_name.
20101 Use fontset_name for return value.
20102
20103 * w32term.h: Declare x_get_font_repertory.
20104
20105 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
20106 place of find_charset_in_text. Use encode_coding_object in place
20107 of encode_coding.
20108 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
20109 decode_coding.
20110
20111 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
20112 of x_new_fontset.
20113 (w32_load_system_font): Initialize charset as unicode.
20114 font_info.encoding becomes encoding_type.
20115 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
20116 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
20117 (syms_of_w32fns): Set get_font_repertory_func.
20118
20119 * w32console.c: Include character.h. Use terminal_encode_buffer
20120 from term.c.
20121 (write_glyphs): Use new version of encode_terminal_code. Use
20122 encode_coding_object in place of encode_coding.
20123
20124 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
20125 encoding becomes encoding_type.
20126
20127 * term.c (terminal_encode_buffer): Make externally visible.
20128
20129 * makefile.w32-in: Add character.h dependancies.
20130 (character.o, chartab.o): New targets.
20131
201322008-02-01 Kenichi Handa <handa@m17n.org>
20133
20134 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
20135 CODING_ID_EOL_TYPE.
20136
201372008-02-01 Andreas Schwab <schwab@suse.de>
20138
20139 * coding.c (produce_chars): Revert last change.
20140
201412008-02-01 Kenichi Handa <handa@m17n.org>
20142
20143 * charset.h (charset_unicode): Extern it.
20144
20145 * charset.c (string_xstring_p): Check by (C >= 0x100).
20146 (find_charsets_in_text): Change format of the arc CHARSETS. New
20147 arg MULTIBYTE.
20148 (Ffind_charset_region, Ffind_charset_string): Adjust for the
20149 change of find_charsets_in_text.
20150 (Fsplit_char): Fix doc. Never return unknown.
20151
20152 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
20153
20154 * coding.c (Fdefine_coding_system_alias): Update
20155 Vcoding_system_list.
20156
20157 * fontset.c (load_font_get_repertory): Pay attention to the case
20158 that ENCODING of a font is specified by a char-table.
20159
20160 * xterm.c (x_get_font_repertory): Handle the case that the
20161 encoding of font is other than Unicode.
20162
201632008-02-01 Kenichi Handa <handa@m17n.org>
20164
20165 * term.c (encode_terminal_code): Don't handle glyph-table. Check
20166 if a character is encodable by the terminal coding system. If
20167 not, produces proper number of `?'s. Update
20168 terminal_encode_buffer and terminal_encode_buf_size if necessary.
20169 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
20170
201712008-02-01 Kenichi Handa <handa@m17n.org>
20172
20173 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
20174 variables.
20175 (encode_terminal_code): Change argument. Encode multiple
20176 characters at once. Store the result of encoding in
20177 terminal_encode_buffer.
20178 (write_glyphs, insert_glyphs): Adjust for the change of
20179 encode_terminal_code.
20180 (term_init): Initialize terminal_encode_buffer and
20181 terminal_encode_buf_size.
20182
20183 * coding.c (consume_chars): If coding->src_object is nil, don't
20184 check annotation.
20185
201862008-02-01 Kenichi Handa <handa@m17n.org>
20187
20188 * character.c (char_string): Use ASCII_CHAR_P instead of
20189 SINGLE_BYTE_CHAR_P.
20190
201912008-02-01 Kenichi Handa <handa@m17n.org>
20192
20193 * xdisp.c (handle_auto_composed_prop): Check if the last
20194 characters of auto-composed region is newly composed with the
20195 following characters.
20196 (handle_composition_prop): Fix checking of point being inside
20197 composition.
20198
201992008-02-01 Kenichi Handa <handa@m17n.org>
20200
20201 * fns.c (concat): Don't change multibyteness of the result by
20202 concatenating an 8-bit character.
20203
20204 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
20205 multibyteness of the result when newelt is an 8-bit character.
20206
202072008-02-01 Dave Love <fx@gnu.org>
20208
20209 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
20210 EMACS_INT.
20211
20212 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
20213
20214 * xfaces.c (face_numeric_value): Declare dim size_t.
20215 (Finternal_lisp_face_equal_p): Remove unused f.
20216
20217 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
20218 (MATRIX_ROW): Remove unused vars.
20219 (draw_glyphs, x_insert_glyphs, fast_find_position)
20220 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
20221 byte/char counts.
20222
20223 * regex.c (regex_compile): Remove unused var.
20224
20225 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20226
20227 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
20228 (Faccessible_keymaps, where_is_internal): Remove unused vars.
20229
20230 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
20231
20232 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
20233
20234 * fileio.c (Fwrite_region): Remove unused var.
20235
20236 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
20237 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
20238
20239 * composite.c (Fremove_list_of_text_properties): Declare.
20240
20241 * coding.c (inhibit_pre_post_conversion): Remove (unused).
20242 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
20243 (coding_inherit_eol_type): Remove unused attrs.
20244 (detect_coding): Cast arg of detect_eol.
20245
20246 * charset.c (syms_of_charset): Remove unused var p.
20247 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
20248 byte/char counts.
20249
20250 * casetab.c (set_case_table): Remove unused var.
20251
20252 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
20253 unused vars.
20254
202552008-02-01 Dave Love <fx@gnu.org>
20256
20257 * xterm.c (x_bitmap_mask): Declare.
20258
202592008-02-01 Dave Love <fx@gnu.org>
20260
20261 * xterm.c (x_term_init): Fix type error.
20262
20263 * lisp.h: Add Funibyte_char_to_multibyte.
20264
20265 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
20266 (Fset_coding_system_priority): Doc fix.
20267
20268 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
20269
20270 * indent.c (check_composition): Make start and end EMACS_INT.
20271
20272 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
20273
20274 * xdisp.c (handle_composition_prop, check_point_in_composition):
20275 Make buffer positions EMACS_INT.
20276
20277 * composite.c (find_composition, run_composition_function)
20278 (update_compositions, Ffind_composition_internal): Make buffer
20279 positions EMACS_INT.
20280
20281 * composite.h (find_composition, update_compositions): Make
20282 position args EMACS_INT.
20283
20284 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
20285
20286 * intervals.c (get_property_and_range):
20287 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
20288
20289 * unexalpha.c: Don't include varargs.h.
20290
202912008-02-01 Dave Love <fx@gnu.org>
20292
20293 * coding.h (ENCODE_UTF_8): New.
20294
20295 * Makefile.in (gtkutil.o): Depend on coding.h.
20296
20297 * coding.c (Fset_coding_system_priority): Doc fix.
20298
202992008-02-01 Kenichi Handa <handa@m17n.org>
20300
20301 * fileio.c (Finsert_file_contents): Call setup_coding_system in
20302 the case of auto saving.
20303
203042008-02-01 Andreas Schwab <schwab@suse.de>
20305
20306 * chartab.c (map_char_table, map_char_table_for_charset): Protect
20307 `range' from GC.
20308
203092008-02-01 Kenichi Handa <handa@m17n.org>
20310
20311 * coding.c (decode_coding_sjis): Check bytes more rigidly.
20312
203132008-02-01 Kenichi Handa <handa@m17n.org>
20314
20315 * fileio.c (choose_write_coding_system): Return a decided coding system.
20316 (Fwrite_region): Set Vlast_coding_system_used to the return value
20317 of choose_write_coding_system.
20318
203192008-02-01 Kenichi Handa <handa@m17n.org>
20320
20321 * charset.c (Fset_charset_priority): Pay attention to duplicated
20322 arguments.
20323
20324 * coding.c (QCcategory): New variable.
20325 (syms_of_coding): Defsym it. Set all elements of
20326 Vcoding_category_table and their symbol values.
20327 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
20328 coding-category-XXX, and coding-category-list.
20329 (Fdefine_coding_system_internal): Add category in the plist.
20330
203312008-02-01 Kenichi Handa <handa@m17n.org>
20332
20333 * callproc.c (Fcall_process): Handle carryover correctly.
20334
20335 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
20336 (raw_text_coding_system): Check NILP (coding_system).
20337 (coding_inherit_eol_type): Check NILP (coding_system) and
20338 NILP (parent).
20339 (consume_chars): Fix for the case of raw-text.
20340
20341 * process.c (read_process_output): Handle carryover correctly.
20342
203432008-02-01 Dave Love <fx@gnu.org>
20344
20345 * regex.c (re_search_2): Fix last change.
20346
203472008-02-01 Kenichi Handa <handa@m17n.org>
20348
20349 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
20350 target_multibyte. Even in a unibyte case, return a converted
20351 multibyte char.
20352 (GET_CHAR_AFTER): New macro.
20353 (PATFETCH): Translate via multibyte char.
20354 (HANDLE_UNIBYTE_RANGE): Delete this macro.
20355 (SETUP_MULTIBYTE_RANGE): New macro.
20356 (regex_compile): Setup compiled code so that its multibyteness
20357 matches that of a target. Fix the handling of "[X-YZ]" using
20358 SETUP_MULTIBYTE_RANGE.
20359 (analyse_first) <charset>: For filling fastmap for all multibyte
20360 characters, don't check by BASE_LEADING_CODE_P.
20361 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
20362 the same as RE_MULTIBYTE_P (bufp) now.
20363 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
20364 (TARGET_CHAR_AND_LENGTH): Delete this macro.
20365 (TRANSLATE_VIA_MULTIBYTE): New macro.
20366 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
20367 It is the same as RE_MULTIBYTE_P (bufp) now.
20368 <exactn>: Translate via multibyte.
20369 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
20370 translate it.
20371 <charset, charset_not>: Fetch a character by
20372 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
20373 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
20374 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
20375 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
20376 by GET_CHAR_AFTER.
20377 (bcmp_translate): Likewise.
20378
20379 * search.c (compile_pattern): Check the member target_multibyte,
20380 not the member multibyte of buf.
20381
20382 * lread.c (read1): While reading a string, set force_singlebyte
20383 and force_multibyte correctly.
20384
20385 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
20386 up of unibyte_to_multibyte_table.
20387
203882008-02-01 Kenichi Handa <handa@m17n.org>
20389
20390 * coding.c (setup_coding_system): If coding has
20391 post-read-conversion or pre-write-conversion, set
20392 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
20393 respectively.
20394 (decode_coding_gap): Run post-read-conversion if any.
20395
20396 * fileio.c (Finsert_file_contents): Even if we read into a
20397 unibyte buffer, check if we must decode the result or not.
20398
203992008-02-01 Kenichi Handa <handa@m17n.org>
20400
20401 * coding.c (make_conversion_work_buffer): Change the work buffer
20402 name to the same one as that of Emacs 21.
20403
204042008-02-01 Kenichi Handa <handa@m17n.org>
20405
20406 * coding.h (make_conversion_work_buffer): Adjust prototype.
20407 (code_conversion_restore): Don't extern it.
20408
20409 * coding.c (detected_mask): Delete unused variable.
20410 (decode_coding_iso_2022): Pay attention to the byte sequence of
20411 CTEXT extended segment, and retain those bytes as is.
20412 (decode_coding_ccl): Delete unused variable `valids'.
20413 (setup_coding_system): Delete unused variable `category'.
20414 (consume_chars): Delete unused variable `category'. Make it work
20415 for non-multibyte case.
20416 (make_conversion_work_buffer): Change argument.
20417 (saved_coding): Delete unused variable.
20418 (code_conversion_restore): Don't check saved_coding->destination.
20419 (code_conversion_save): New function.
20420 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
20421 instead of record_unwind_protect.
20422 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
20423 (detect_coding_system): Delete unused variable `mask'.
20424 (Fdefine_coding_system_internal): Delete unused variable id.
20425
20426 * fileio.c (kill_workbuf_unwind): New function.
20427 (Finsert_file_contents): On replacing, call
20428 make_conversion_work_buffer with correct args, and call
20429 record_unwind_protect with the first arg kill_workbuf_unwind.
20430
20431 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
20432
204332008-02-01 Kenichi Handa <handa@m17n.org>
20434
20435 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
20436 (fontset_add): Fix for the case that TO is less than TO1.
20437 (Ffontset_info): Don't use fallback fontset on checking the
20438 default fontset.
20439 (dump_fontset): New function for debugging.
20440
20441 * coding.c (Fdefine_coding_system_internal): Fix for the case that
20442 coding_type is Qcharset.
20443
204442008-02-01 Kenichi Handa <handa@m17n.org>
20445
20446 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
20447 (map_char_table): Don't inherit the value from the parent on
20448 initializing VAL. Adjust for the above change.
20449
204502008-02-01 Kenichi Handa <handa@m17n.org>
20451
20452 * coding.c (Qsignature, Qendian): Delete these variables.
20453 (syms_of_coding): Don't initialize them.
20454 (CATEGORY_MASK_UTF_16_AUTO): New macro.
20455 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
20456 detect_info->found.
20457 (decode_coding_utf_16): Don't detect BOM here.
20458 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
20459 is NOT utf_16_without_bom.
20460 (setup_coding_system): For a coding system of type utf-16, check
20461 if the attribute :endian is Qbig or not (not nil or not), and set
20462 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
20463 (detect_coding): If coding type is utf-16 and BOM detection is
20464 required, detect it.
20465 (Fdefine_coding_system_internal): For a coding system of type
20466 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
20467
204682008-02-01 Kenichi Handa <handa@m17n.org>
20469
20470 * coding.c (coding_set_source): Fix for the case that the current
20471 buffer is different from coding->src_object.
20472 (decode_coding_object): Don't use the conversion work buffer if
20473 DST_OBJECT is a buffer.
20474
204752008-02-01 Dave Love <fx@gnu.org>
20476
20477 * lread.c (read_emacs_mule_char) [len==2]: Index
20478 emacs_mule_charset correctly.
20479
204802008-02-01 Dave Love <fx@gnu.org>
20481
20482 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
20483 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
20484 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
20485 treated specially.)
20486 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
20487 (detected_mask): Remove Big5 bits.
20488
204892008-02-01 Kenichi Handa <handa@m17n.org>
20490
20491 The following changes are to make the font rescaling facility
20492 compatible with Emacs 21.
20493
20494 * xfaces.c (Vface_font_rescale_alist): Rename from
20495 Vface_resizing_fonts.
20496 (struct font_name): Rename member resizing_ratio to rescale_ratio.
20497 (font_rescale_ratio): Rename from font_resizing_ratio.
20498 (split_font_name): Set font->rescale_ratio.
20499 (better_font_p): Pay attention to font->rescale_ratio.
20500 (build_scalable_font_name): Likewise. Change RESX, and RESY
20501 fields.
20502 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
20503
205042008-02-01 Kenichi Handa <handa@m17n.org>
20505
20506 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
20507 (Qutf_16_le): Remove these variables.
20508 (syms_of_coding): Don't DEFSYM them.
20509 (decode_coding_utf_16): Fix handling of BOM.
20510 (encode_coding_utf_16): Fix handling of BOM.
20511
205122008-02-01 Kenichi Handa <handa@m17n.org>
20513
20514 * fileio.c (Finsert_file_contents): On replacing, before decoding
20515 the file into the work buffer, set point of the work buffer to the end.
20516
205172008-02-01 Dave Love <fx@gnu.org>
20518
20519 * coding.c (Fcheck_coding_systems_region): Fix type errors.
20520
205212008-02-01 Dave Love <fx@gnu.org>
20522
20523 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20524 and fix C types.
20525
205262008-02-01 Kenichi Handa <handa@m17n.org>
20527
20528 * xdisp.c (SKIP_GLYPHS): New macro.
20529 (set_cursor_from_row): Pay attention to string display properties.
20530
20531 * category.c (copy_category_entry): Fix for the case that RANGE
20532 is an integer.
20533
20534 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
20535
20536 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
20537
205382008-02-01 Kenichi Handa <handa@m17n.org>
20539
20540 * charset.c (Fcharset_id_internal): New function.
20541 (syms_of_charset): Defsubr it.
20542
20543 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
20544 with the last arg charset_list acquired from coding.
20545 (Fdefine_coding_system_internal): For ccl-based coding system, fix
20546 the attribute coding_attr_ccl_valids.
20547
20548 * coding.h (enum define_coding_ccl_arg_index): Set the first
20549 member coding_arg_ccl_decoder to coding_arg_max.
20550
20551 * ccl.h (ccl_driver): Adjust prototype.
20552
20553 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
20554 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 20555 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
20556 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
20557 last arg Qnil.
20558
205592008-02-01 Kenichi Handa <handa@m17n.org>
20560
20561 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
20562 call encode_char.
20563
20564 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
20565
205662008-02-01 Dave Love <fx@gnu.org>
20567
20568 * composite.c (syms_of_composite): Make composition_hash_table weak.
20569
205702008-02-01 Kenichi Handa <handa@m17n.org>
20571
20572 * dispextern.h (check_face_attributes, generate_ascii_font_name)
20573 (font_name_registry): Don't extern them.
20574 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
20575
20576 * fontset.h (Qfontset): Don't extern it.
20577 (new_fontset_from_font_name): Extern it.
20578
20579 * fontset.c: Give 8 extra slots to fontset objects.
20580 (Qfontset_info): New variable.
20581 (syms_of_fontset): Defsym it.
20582 (FONTSET_FALLBACK): New macro.
20583 (fontset_face): Try also the default fontset.
20584 (make_fontset): Realize a fallback fontset from the default fontset.
20585 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
20586 using split_font_name_into_vector and build_font_name_from_vector.
20587 (Fset_fontset_font): Access the elements of font_spec by enum
20588 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
20589 name by using split_font_name_into_vector.
20590 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
20591 generate a proper font name from the fontset name. Update
20592 Vfontset_alias_alist.
20593 (n_auto_fontsets): New variable.
20594 (new_fontset_from_font_name): New function.
20595 (Ffont_info): Store the information about fonts generated from the
20596 default fontset in the first extra slot of the returned char-table.
20597
20598 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
20599 (font_name_registry): Delete function.
20600 (split_font_name_into_vector): New function.
20601 (build_font_name_from_vector): New function.
20602 (font_list): The argument REGISTRY is now a list of registry names.
20603 (choose_face_font): If we are choosing an ASCII font, and ATTRS
20604 specifies an explicit font name, return the name as is. Make a
20605 list of registy names.
20606
20607 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
20608 of x_new_fontset.
20609 (Fx_create_frame): Don't call x_new_fontset here. Just use
20610 x_list_fonts to check the existence of fonts.
20611
20612 * xterm.h (x_new_fontset): Adjust prototype.
20613
20614 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
20615 string. Use new_fontset_from_font_name to create a fontset from a
20616 font name.
20617
206182008-02-01 Kenichi Handa <handa@m17n.org>
20619
20620 * syntax.c (Vfind_word_boundary_function_table): New name for
20621 Vnext_word_boundary_function_table.
20622 (find-word-boundary-function-table): New name for
20623 next-word-boundary-function-table.
20624
206252008-02-01 Dave Love <fx@gnu.org>
20626
20627 * Makefile.in: Fix some dependencies.
20628
20629 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
20630 set it to nil before returning.
20631
20632 * composite.c (update_compositions): Fix type error.
20633
20634 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
20635
206362008-02-01 Kenichi Handa <handa@m17n.org>
20637
20638 * xterm.c (x_new_font): Optimize for the case that the font is
20639 already set for the frame.
20640
206412008-02-01 Kenichi Handa <handa@m17n.org>
20642
20643 * chartab.c (char_table_ascii): Check if the char table contents
20644 is sub-char-table or not.
20645 (char_table_set, char_table_set_range): Fix argument to
20646 char_table_ascii.
20647
20648 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
20649 (detect_coding_utf_8, detect_coding_utf_16)
20650 (detect_coding_emacs_mule, detect_coding_iso_2022)
20651 (detect_coding_sjis, detect_coding_big5)
20652 (detect_coding_ccl, detect_coding_charset): Change argument MASK
20653 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
20654 sequence is valid in this coding system. Change callers.
20655 (MAX_ANNOTATION_LENGTH): New macro.
20656 (ADD_ANNOTATION_DATA): New macro.
20657 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
20658 ADD_ANNOTATION_DATA. Change the format of annotation data.
20659 (ADD_CHARSET_DATA): New macro.
20660 (emacs_mule_char): New argument ID. Change callers.
20661 (decode_coding_emacs_mule, decode_coding_iso_2022)
20662 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20663 Produce charset annotation data in coding->charbuf.
20664 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
20665 to charset annotation data in coding->charbuf.
20666 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
20667 coding->common_flags if the coding system is iso-2022 based and
20668 uses designation.
20669 (produce_composition): Adjust for the new annotation data format.
20670 (produce_charset): New function.
20671 (produce_annotation): Handle charset annotation.
20672 (handle_composition_annotation, handle_charset_annotation): New
20673 functions.
20674 (consume_chars): Handle charset annotation. Utilize the above two
20675 functions.
20676 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
20677 buffer, get the deleted text as a string and set
20678 coding->src_object to that string.
20679 (detect_coding, detect_coding_system): Use the new struct
20680 coding_detection_info.
20681
20682 * coding.h (struct coding_detection_info): New structure.
20683 (struct coding_system): Adjust prototype of the member `detector'.
20684 (CODING_ANNOTATE_CHARSET_MASK): New macro.
20685
206862008-02-01 Kenichi Handa <handa@m17n.org>
20687
20688 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
20689
206902008-02-01 Dave Love <fx@gnu.org>
20691
20692 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
20693 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
20694 to new local and nullify apropos_accumulate before returning.
20695 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
20696
206972008-02-01 Kenichi Handa <handa@m17n.org>
20698
20699 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
20700 correctly.
e3eea1fc 20701
aac0c6e3
MR
207022008-02-01 Dave Love <fx@gnu.org>
20703
20704 * fns.c (Flanginfo): Call synchronize_system_time_locale.
20705
207062008-02-01 Kenichi Handa <handa@m17n.org>
20707
20708 The following changes are to make character composition happen
20709 automatically on displaying.
20710
20711 * Makefile.in (lisp, shortlisp): Add composite.elc.
20712
20713 * composite.h (Qauto_composed, Vauto_composition_function)
20714 (Qauto_composition_function): Extern them.
20715
20716 * composite.c (Vcomposition_function_table)
20717 (Qcomposition_function_table): Delete variables.
20718 (Qauto_composed, Vauto_composition_function)
20719 (Qauto_composition_function): New variables.
20720 (run_composition_function): Don't call
20721 compose-chars-after-function.
20722 (update_compositions): Clear `auto-composed' text property.
20723 (compose_chars_in_text): Delete this function.
20724 (syms_of_composite): Staticpro Qauto_composed and
20725 Qauto_composition_function. Declare Vauto_composition_function as
20726 a Lisp variable.
20727
20728 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
20729
20730 * xdisp.c (it_props): Add an entry for Qauto_composed.
20731 (handle_auto_composed_prop): New function.
20732
20733 * xselect.c (selection_data_to_lisp_data): Don't call
20734 compose_chars_in_text.
20735
207362008-02-01 Dave Love <fx@gnu.org>
20737
20738 * keyboard.c (read_char): Modify checking around use of
20739 Vkeyboard_translate_table.
20740
20741 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20742 and fix C types.
20743
207442008-02-01 Kenichi Handa <handa@m17n.org>
20745
20746 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
20747 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20748 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
20749 the case that the last byte is '\r' correctly.
20750 (decode_coding): Flush out the unprocessed data correctly.
20751 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
20752
207532008-02-01 Dave Love <fx@gnu.org>
20754
20755 * xterm.c (XTread_socket): Fix changes for defined keysyms.
20756 Add XK_ISO... case.
20757 (xaw_scroll_callback): Revert last change.
20758
207592008-02-01 Kenichi Handa <handa@m17n.org>
20760
20761 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
20762
207632008-02-01 Kenichi Handa <handa@m17n.org>
20764
20765 * xfaces.c (Vface_resizing_fonts): New variable.
20766 (struct font_name): New member `resizing_ratio'.
20767 (font_resizing_ratio): New function.
20768 (split_font_name): Set font->resizing_ratio.
20769 (better_font_p): Pay attention to font->resizing_ratio.
20770 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
20771 RESX, and RESY fields.
20772 (try_alternative_families): Try scalable fonts if
20773 Vscalable_fonts_allowed is not Qt.
20774 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
20775
207762008-02-01 Dave Love <fx@gnu.org>
20777
20778 * xterm.c (xaw_scroll_callback): Cast correctly.
20779
207802008-02-01 Dave Love <fx@gnu.org>
20781
20782 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
20783 (lispy_kana_keys): Comment out.
20784 (make_lispy_event) [XK_kana_A]: Comment out.
20785
20786 * xterm.c (xaw_scroll_callback): Cast call_data.
20787 (XTread_socket): Deal with ASCII keysyms.
20788 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
20789
207902008-02-01 Dave Love <fx@gnu.org>
20791
20792 * xterm.c (Vx_keysym_table): New.
20793 (syms_of_xterm): Initialize it.
20794 (XTread_socket): Use it.
20795 From head: Eliminate incorrect optimization that tried to avoid
20796 decoding the output of X*LookupString.
20797 (x_get_font_repertory): Delete charset declaration.
20798
207992008-02-01 Kenichi Handa <handa@m17n.org>
20800
20801 * coding.c (detect_coding_charset): If only ASCII bytes are found,
20802 return 0.
20803 (Fdefine_coding_system_internal): Setup
20804 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
20805
208062008-02-01 Dave Love <fx@gnu.org>
20807
20808 * coding.c (Fcheck_coding_system): Doc fix.
20809
20810 * editfns.c (Finsert_byte): Return a proper value.
20811
208122008-02-01 Kenichi Handa <handa@m17n.org>
20813
20814 * coding.c (decode_coding): Fix args to translate_chars. Pay
20815 attention to Vstandard_translation_table_for_decode.
20816 (encode_coding): Fix args to translate_chars. Pay attention to
20817 Vstandard_translation_table_for_encode.
20818
20819 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
20820 SINGLE_BYTE_CHAR_P.
20821
20822 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
20823 not by SINGLE_BYTE_CHAR_P.
20824
20825 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
20826 SINGLE_BYTE_CHAR_P.
20827
20828 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
20829 SINGLE_BYTE_CHAR_P.
20830
20831 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
20832 by SINGLE_BYTE_CHAR_P.
20833
20834 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
20835 SINGLE_BYTE_CHAR_P.
20836
208372008-02-01 Dave Love <fx@gnu.org>
20838
20839 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
20840
208412008-02-01 Dave Love <fx@gnu.org>
20842
20843 * fns.c (Flanginfo): Fix typo.
20844
20845 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
20846
208472008-02-01 Kenichi Handa <handa@m17n.org>
20848
20849 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
20850 (detect_coding_emacs_mule, detect_coding_iso_2022)
20851 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
20852 incomplete byte sequence. Don't update *mask when correctly detected.
20853 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
20854 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
20855 (detect_coding, detect_coding_system): Adjust for the changes above.
20856
208572008-02-01 Kenichi Handa <handa@m17n.org>
20858
20859 * character.c (char_string): Rename from
20860 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
20861 (string_char): Rename from string_char.
20862
20863 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
20864 if C is greater than MAX_3_BYTE_CHAR.
20865 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
20866 string_char instead of string_char_with_unification.
20867
208682008-02-01 Dave Love <fx@gnu.org>
20869
20870 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
20871
208722008-02-01 Kenichi Handa <handa@m17n.org>
20873
20874 * keymap.c (push_key_description): Pay attention to force_multibyte.
20875
20876 * regex.c (re_search_2): Fix for the case of unibyte buffer.
20877
208782008-02-01 Dave Love <fx@gnu.org>
20879
20880 * charset.c (define_charset_internal): Rename `supprementary'.
20881
20882 * Makefile.in (lisp, shortlisp): Remove latin-N.
20883
208842008-02-01 Dave Love <fx@gnu.org>
20885
20886 * xfns.c (x_window, x_window): Use use_xim.
20887
20888 * xterm.c (use_xim): Initialize.
20889 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
20890 (x_term_init): Maybe set use_xim.
20891
20892 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
20893
208942008-02-01 Kenichi Handa <handa@m17n.org>
20895
20896 * search.c (search_buffer): Fix case-fold-search of multibyte
20897 characters.
20898 (boyer_moore): Rename the last argument to char_high_bits.
20899
209002008-02-01 Kenichi Handa <handa@m17n.org>
20901
20902 * xdisp.c (display_string): Fix for the case of zero width glyph.
20903
20904 * xfns.c (x_set_font): Change the error message of the case that
20905 x_new_fontset returns Qt.
20906
20907 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
20908 (Finternal_set_lisp_face_attribute): Use signal_error for the
20909 error of invalid fontset.
20910
20911 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
20912 fontset, return Qt.
20913
209142008-02-01 Dave Love <fx@gnu.org>
20915
20916 * unexelf.c (unexec): Make .got handling not SGI-specific.
20917
20918 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
20919
20920 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
20921
20922 * keyboard.c (read_key_sequence): Fix type error.
20923
20924 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
20925 type error.
20926
20927 * fontset.c (fontset_add): Return Lisp_Object.
20928
209292008-02-01 Dave Love <fx@gnu.org>
20930
20931 * charset.h (charset_ordered_list_tick): Declare extern.
20932
209332008-02-01 Kenichi Handa <handa@m17n.org>
20934
20935 The following changes (and some of 2008-02-01 changes of mine) are
20936 for handling syntax, category, and case conversion for unibyte
20937 characters by converting them to multibyte on the fly. With these
20938 changes, we don't have to setup syntax and case tables for unibyte
20939 characters in each language environment.
20940
20941 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
20942 multibyte if necessary.
20943
20944 * bytecode.c (Fbyte_code): Likewise.
20945
20946 * character.h (LEADING_CODE_LATIN_1_MIN)
20947 (LEADING_CODE_LATIN_1_MAX): New macros.
20948 (unibyte_to_multibyte_table): Extern it.
20949 (unibyte_char_to_multibyte): New macro.
20950 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
20951 (CHAR_LEADING_CODE): New macro.
20952 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
20953
20954 * character.c (unibyte_to_multibyte_table): New variable.
20955 (unibyte_char_to_multibyte): Move to character.h and define as macro.
20956 (multibyte_char_to_unibyte): If C is an eight-bit character,
20957 convert it to the corresponding byte value.
20958
20959 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
20960 not 1, signals an error. Update the elements of
20961 unibyte_to_multibyte_table.
20962 (init_charset_once): Initialize unibyte_to_multibyte_table.
20963 (syms_of_charset): Define the charset `iso-8859-1'.
20964
20965 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
20966 as is without converting it to unibyte. In a unibyte buffer,
20967 convert C to multibyte before checking the syntax.
20968
20969 * lisp.h (unibyte_char_to_multibyte): Delete extern.
20970
20971 * minibuf.c (Fminibuffer_complete_word): Use the macro
20972 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
20973
20974 * regex.h (struct re_pattern_buffer): New member target_multibyte.
20975
20976 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
20977 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
20978 that is zero, convert an eight-bit char to multibyte.
20979 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
20980 non-emacs case.
20981 (PATFETCH): Convert an eight-bit char to multibyte.
20982 (HANDLE_UNIBYTE_RANGE): New macro.
20983 (regex_compile): Setup the compiled pattern for multibyte chars
20984 even if the given regex string is unibyte. Use PATFETCH_RAW
20985 instead of PATFETCH in many places. To handle `charset'
20986 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
20987 only for ASCII chars.
20988 (analyse_first) <exactn>: Simplify because the compiled pattern
20989 is multibyte.
20990 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
20991 <charset>: Use CHAR_LEADING_CODE to get leading codes.
20992 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
20993 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
20994 multibyte always 1.
20995 (re_search_2): In emacs, set the locale variable multibyte to 1,
20996 otherwise to 0. New local variable target_multibyte. Check it
20997 to decide the multibyteness of STR1 and STR2. If
20998 target_multibyte is zero, convert unibyte chars to multibyte
20999 before translating and checking fastmap.
21000 (TARGET_CHAR_AND_LENGTH): New macro.
21001 (re_match_2_internal): In emacs, set the locale variable multibyte
21002 to 1, otherwise to 0. New local variable target_multibyte. Check
21003 it to decide the multibyteness of STR1 and STR2. Use
21004 TARGET_CHAR_AND_LENGTH to fetch a character from D.
21005 <charset, charset_not>: If multibyte is nonzero, check fastmap
21006 only for ASCII chars. Call bcmp_translate with
21007 target_multibyte, not with multibyte.
21008 <begline>: Declare the local variable C as `unsigned'.
21009 (bcmp_translate): Change the last arg name to target_multibyte.
21010
21011 * search.c (compile_pattern_1): Don't adjust the multibyteness of
21012 the regexp pattern and the matching target. Set cp->buf.multibyte
21013 to the multibyteness of the regexp pattern. Set
21014 cp->but.target_multibyte to the multibyteness of the matching target.
21015 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
21016 FETCH_STRING_CHAR_ADVANCE.
21017 (Freplace_match): Convert unibyte chars to multibyte.
21018
21019 * syntax.c (char_quoted, back_comment, scan_words)
21020 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
21021 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
21022 unibyte chars to multibyte.
21023 (skip_chars): Delete the arg syntaxp, and move the code for
21024 handling syntaxes to skip_syntaxes. Change callers.
21025 Fix the case that the multibyteness of STRING and the current
21026 buffer doesn't match.
21027 (skip_syntaxes): New function.
21028 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
21029 SINGLE_BYTE_CHAR_P.
21030
210312008-02-01 Kenichi Handa <handa@m17n.org>
21032
21033 * xfaces.c (QCfontset): New variable.
21034 (LFACE_FONTSET): New macro.
21035 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
21036 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
21037 (Finternal_set_lisp_face_attribute)
21038 (Finternal_get_lisp_face_attribute): Handle QCfontset.
21039 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
21040 check also LFACE_FONTSET_INDEX.
21041 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
21042 attrs[LFACE_FONT_INDEX].
21043 (syms_of_xfaces): Intern and staticpro QCfontset.
21044
21045 * dispextern.h (enum lface_attribute_index): New member
21046 LFACE_FONTSET_INDEX.
21047
21048 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
21049
210502008-02-01 Kenichi Handa <handa@m17n.org>
21051
21052 * coding.c (coding_set_destination): Fix coding->destination for
21053 the case converting a region.
21054 (encode_coding_utf_8): Encode eight-bit chars as single byte.
21055 (encode_coding_object): Fix coding->dst_pos and
21056 coding->dst_pos_byte for the case converting a region.
21057
21058 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
21059
21060 * character.h (BYTE8_STRING): New macro.
21061
21062 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
21063
210642008-02-01 Kenichi Handa <handa@m17n.org>
21065
21066 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
21067 characters by octal form.
21068
21069 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
21070
21071 * buffer.h (_fetch_multibyte_char_len): Delete extern.
21072 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
21073 _fetch_multibyte_char_len.
21074 (FETCH_CHAR_AS_MULTIBYTE): New macro.
21075
21076 * casetab.c (set_canon, set_identity, shuffle): Simplify.
21077
21078 * casefiddle.c (casify_object): Simplify. Handle the case that
21079 the case conversion change the byte length.
21080 (casify_region): Likewise.
21081
21082 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
21083
21084 * character.c (_fetch_multibyte_char_len): Delete this variable.
21085 (syms_of_character): Setup Vprintable_chars.
21086
21087 * editfns.c (Fchar_equal): Fix for the unibyte case.
21088 (Finsert_byte): New function.
21089 (syms_of_editfns): Defsubr it.
21090
21091 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
21092 of direct code 0x3ffff.
21093
21094 * search.c (Freplace_match): Fix for the unibyte case.
21095
210962008-02-01 Kenichi Handa <handa@m17n.org>
21097
21098 * lread.c (safe_to_load_p): Fix the logic.
21099
21100 * syntax.c (scan_words): Don't treat characters belonging to
21101 different scripts as constituting a word.
21102
21103 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21104
21105 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
21106
21107 * emacs.c (main): In the case of --unibyte, instead of aborting on
21108 finding non-empty buffer, make it unibyte.
21109
211102008-02-01 Kenichi Handa <handa@m17n.org>
21111
21112 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
21113 to create a fontset.
21114
211152008-02-01 Dave Love <fx@gnu.org>
21116
21117 * character.c (Funibyte_char_to_multibyte): Doc fix.
21118
21119 * xfns.c [HAVE_STDLIB_H]: Fix last change.
21120
211212008-02-01 Kenichi Handa <handa@m17n.org>
21122
21123 * fontset.c (fontset_add): Make the type `int'.
21124 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
21125
21126 * character.c (unibyte_char_to_multibyte)
21127 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
21128 charset_unibyte, not charset_primary.
21129
21130 * charset.h (charset_unibyte): Extern it instead of charset_primary.
21131
21132 * charset.c (charset_unibyte): Rename from charset_primary.
21133 (Funibyte_charset): Rename from Fprimary_charset.
21134 (Fset_unibyte_charset): Rename from Fset_primary_charset.
21135 (syms_of_charset): Adjust for the above changes.
21136
21137 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21138 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21139 it->multibyte_p is zero.
21140
21141 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
21142 Delete extern.
21143
211442008-02-01 Kenichi Handa <handa@m17n.org>
21145
21146 * coding.c (Fdefine_coding_system_internal): Fix category setting
21147 for a coding system of type iso-2022.
21148
211492008-02-01 Kenichi Handa <handa@m17n.org>
21150
21151 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
21152
211532008-02-01 Kenichi Handa <handa@m17n.org>
21154
21155 * syntax.c (Vnext_word_boundary_function_table): New variable.
21156 (next-word-boundary-function-table): Declare it as a Lisp variable
21157 in syms_of_syntax.
21158 (scan_words): Call functions in Vnext_word_boundary_function_table
21159 if any.
21160
21161 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
21162
21163 * fontset.c (fs_load_font): If fontp->charset is not negative,
21164 return fontp without setting its members.
21165
211662008-02-01 Dave Love <fx@gnu.org>
21167
21168 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
21169
21170 * m/sparc.h (HAVE_ALLOCA): Delete.
21171
21172 * s/irix6-5.h: Don't include strings.h.
21173 (bcopy, bzero, bcmp): Don't undef.
21174
21175 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
21176
21177 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
21178 (TIOCSIGSEND): Don't test IRIX6.
21179 (bcopy, bzero, bcmp): Define conditionally.
21180
211812008-02-01 Kenichi Handa <handa@m17n.org>
21182
21183 * buffer.c (Qas, Qmake, Qto): New variables.
21184 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
21185 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
21186
21187 * callproc.c (Fcall_process): Don't call insert_1_both directly if
21188 we are inserting a process output into a multibyte buffer.
21189
21190 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
21191 multibyte_char_to_unibyte.
21192
21193 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
21194 by the primary charset, make it eight-bit char.
21195 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
21196
21197 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
21198 (charset_8_bit__control, charset_8_bit_graphic)
21199 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
21200 (define_charset_internal): New function.
21201 (syms_of_charset): Call define_charset_internal for pre-defined
21202 charsets.
21203
21204 * charset.h (charset_8_bit): Extern it.
21205
21206 * coding.c (make_conversion_work_buffer): Adjust for the change
21207 of Fset_buffer_multibyte.
21208 (encode_coding_raw_text): Increment p0 in the loop.
21209
21210 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
21211
21212 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
21213 for the change of Fset_buffer_multibyte.
21214
21215 * fns.c (Fstring_to_multibyte): New function.
21216 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
21217
212182008-02-01 Dave Love <fx@gnu.org>
21219
21220 * xfns.c (x_put_x_image): Declare args.
21221
21222 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
21223 (try_font_list): Declare an arg.
21224
21225 * xdisp.c (message2_nolog, set_message): Declare an arg.
21226
21227 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
21228
21229 * syntax.c (scan_sexps_forward): Declare an arg.
21230
21231 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
21232 Declare an arg.
21233
21234 * lisp.h (Fnew_fontset): Declare.
21235
21236 * keymap.c (push_key_description): Call CHARACTERP correctly.
21237
21238 * fontset.c (fontset_add): Declare args. Call make_number correctly.
21239 (face_for_char): Delete unused vars.
21240 (Fset_fontset_font): Doc fix. Delete unused vars.
21241
21242 * doc.c (Fsubstitute_command_keys): Delete unused vars.
21243
21244 * composite.c (update_compositions): Declare arg.
21245
21246 * cm.c (calccost, cmgoto): Declare args.
21247
21248 * charset.c: Remove `emacs' conditional. Doc fixes.
21249 (map_char_table_for_charset): Declare.
21250
21251 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
21252
21253 * ccl.c: Remove `emacs' conditional.
21254
212552008-02-01 Kenichi Handa <handa@m17n.org>
21256
21257 The following changes are to allow specifying multiple font
21258 patterns for a character range (specified by script or charset).
21259
21260 * Makefile.in (abbrev.o): Depend on syntax.h.
21261 (xfaces.o): Depend on charset.h.
21262
21263 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
21264 SINGLE_BYTE_CHAR_P.
21265
21266 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
21267
21268 * character.h (Vchar_script_table): Extern it.
21269
21270 * character.c (Vscript_alist): Delete.
21271 (Vchar_script_table, Qchar_script_table): New variable.
21272 (syms_of_character): Declare Vchar_script_table as a lisp variable
21273 and initialize it.
21274
21275 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
21276 have property char-table-extra-slots, make no extra slot.
21277
21278 * dispextern.h (struct face): Delete member `charset'.
21279 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
21280 SINGLE_BYTE_CHAR_P.
21281 (choose_face_font, lookup_non_ascii_face, font_name_registry):
21282 Add prototypes.
21283 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
21284 (generate_ascii_font_name): Rename from generate_ascii_font.
21285
21286 * fontset.h (get_font_repertory_func): New prototype.
21287 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
21288 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
21289
21290 * fontset.c (Qprepend, Qappend): New variables.
21291 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
21292 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
21293 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
21294 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
21295 (fontset_ref_and_range, fontset_add, reorder_font_vector)
21296 (load_font_get_repertory): New functions.
21297 (fontset_set): Delete.
21298 (fontset_face): New arg FACE. Return face ID, not face.
21299 Complete re-write to handle new fontset structure. Change caller.
21300 (free_face_fontset): Use ASET istead of AREF (X) = Y.
21301 (face_for_char): Don't call lookup_face.
21302 (make_fontset_for_ascii_face): New arg FACE.
21303 (fs_load_font): New arg CHARSET_ID. Don't check
21304 Vfont_encoding_alist here.
21305 (find_font_encoding): New function.
21306 (list_fontsets): Use STRINGP, not ! NILP.
21307 (accumulate_script_ranges): New function.
21308 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
21309 re-written to handle new fontset structure.
21310 (Ffontset_font): Return a copy of element.
21311 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
21312 docstring of font-encoding-alist.
21313
21314 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
21315 (Fset_fotset_font): Fix arguments to 5.
21316
21317 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
21318
21319 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
21320 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21321 (highlight_trailing_whitespace): Adjust for the change of
21322 lookup_named_face.
21323
21324 * xfaces.c: Include charset.h.
21325 (load_face_font): Delete argument C. Change caller.
21326 (generate_ascii_font_name): Rename from generate_ascii_font.
21327 (font_name_registry): New function.
21328 (cache_face): Store ascii faces before non-ascii faces in buckets.
21329 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
21330 Lookup only ascii faces.
21331 (lookup_non_ascii_face): New function.
21332 (lookup_named_face): Delete argument C. Change caller.
21333 (lookup_derived_face): Delete argument C. Change caller.
21334 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
21335 a string, just call font_list with it.
21336 (choose_face_font): Delete arguments FACE and C. New arg
21337 FONT_SPEC. Change caller.
21338 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
21339 Change caller.
21340 (realize_non_ascii_face): New function.
21341 (realize_x_face): Call load_face_font here.
21342 (realize_tty_face): Delete argument C. Change caller.
21343 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
21344 get a face ID.
21345 (dump_realized_face): Don't print charset of FACE.
21346
21347 * xfns.c (x_set_font): Always call x_new_fontset and
21348 store_frame_parameter.
21349 (Fx_create_frame): Call x_new_fontset, not x_new_font.
21350 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
21351
21352 * xterm.h (x_get_font_repertory): Extern it.
21353
21354 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21355 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21356 it->multibyte_p is zero.
21357 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21358 (x_new_fontset): If FONTSETNAME doesn't match any existing
21359 fontsets, create a new one.
21360 (x_get_font_repertory): New function.
21361
213622008-02-01 Kenichi Handa <handa@m17n.org>
21363
21364 * coding.c (Ffind_coding_systems_region_internal): Detect an
21365 ASCII only string correctly.
21366
21367 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
21368 version is 0.
21369
213702008-02-01 Kenichi Handa <handa@m17n.org>
21371
21372 * lread.c: Include "coding.h".
21373 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
21374 (load_each_byte, unread_char): New variables.
21375 (readchar_backlog): Delete.
21376 (readchar): Return a character unless load_each_byte is nonzero.
21377 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
21378 cons. If unread_char is not -1, simply return it.
21379 (unreadchar): Handle the case that readcharfun is
21380 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
21381 (read_multibyte): Delete.
21382 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
21383 (read_emacs_mule_char): New functions.
21384 (Fload): Even if the file doesn't have the extension ".elc", if
21385 safe_to_load_p returns a positive version number, assume that the
21386 file contains bytecompiled code. If the version is less than 22,
21387 load the file while decoding multibyte sequences by emacs-mule.
21388 (readevalloop): Don't use readchar_backlog.
21389 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
21390 (Fread_from_string): Pay attention to the case that STREAM is a cons.
21391 (read_escape): Delete the arg BYTEREP.
21392 (read1): Set load_each_byte to 1 temporarily while handling
21393 #@NUMBER. Don't call read_multibyte.
21394 (read_vector): Call Fread with a cons. If readcharfun is
21395 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
21396 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
21397 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
21398 and Qload_force_doc_strings.
21399
214002008-02-01 Kenichi Handa <handa@m17n.org>
21401
21402 * xdisp.c (face_before_or_after_it_pos): Call
21403 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
21404
214052008-02-01 Kenichi Handa <handa@m17n.org>
21406
21407 * character.h (TRAILING_CODE_P): New macro.
21408 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
21409 (string_char_with_unification): Fix prototype.
21410 (Vscript_alist): Extern it.
21411
21412 * character.c (Vscript_alist): New variable.
21413 (string_char_with_unification, str_as_unibyte)
21414 (string_escape_byte8): Add `const' to local variables.
21415 (syms_of_character): Declare script-alist as a Lisp variable.
21416
21417 * charset.h (Vcharset_ordered_list): Extern it.
21418 (charset_ordered_list_tick): Extern it.
21419 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
21420 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
21421 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
21422 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
21423 (Funify_charset): Adjust for the change of Funify_charset.
21424
21425 * charset.c (charset_ordered_list_tick): New variable.
21426 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
21427 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 21428 deunify instead of unify a charset.
aac0c6e3
MR
21429 (string_xstring_p): Add `const' to local variables.
21430 (find_charsets_in_text): Add `const' to arguments and local variables.
21431 (encode_char): Adjust for the change of Funify_charset. Fix
21432 detecting of invalid code.
21433 (Fset_charset_priority): Increment charset_ordered_list_tick.
21434 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
21435 and TO_CODE.
21436
21437 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
21438 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
21439 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
21440 (decode_coding_ccl, consume_chars)
21441 (Ffind_coding_systems_region_internal)
21442 (Fcheck_coding_systems_region): Add `const' to local variables.
21443
21444 * print.c (print_object): Use octal form for printing the
21445 contents of a bool vector.
21446
214472008-02-01 Dave Love <fx@gnu.org>
21448
21449 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
21450 <version == 20>: Refuse to load.
21451
214522008-02-01 Dave Love <fx@gnu.org>
21453
21454 * fns.c: Move coding.h.
21455 (Qcodeset, Qdays, Qmonths): New.
21456 (concat): Use CHARACTERP instead of INTEGERP.
21457 (Flocale_codeset): Delete.
21458 (Flanginfo): New function.
21459 (syms_of_fns): Change accordingly.
21460
21461 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
21462
214632008-02-01 Dave Love <fx@gnu.org>
21464
21465 * casetab.c (init_casetab_once, init_casetab_once): Fix
21466 CHAR_TABLE_SET call.
21467
21468 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
21469
21470 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
21471
21472 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
21473 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
21474 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
21475
21476 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
21477
21478 * coding.c (ENCODE_DESIGNATION, decode_eol)
21479 (make_conversion_work_buffer, code_conversion_restore)
21480 (Fdefine_coding_system_internal): Convert Lisp types.
21481 (code_conversion_restore): Use EQ, not ==.
21482 (Fencode_coding_string): Fix code_convert_string call.
21483
21484 * coding.h (code_convert_region): Fix prototype.
21485
21486 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
21487
21488 * fontset.c (fontset_ref, fontset_set, fs_load_font)
21489 (Ffontset_info): Convert Lisp types.
21490
21491 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
21492
21493 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
21494
21495 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
21496
21497 * chartab.c: Include "...h", not <...h> in some cases.
21498
21499 * callproc.c (Fcall_process): Remove unused variables.
21500
215012008-02-01 Dave Love <fx@gnu.org>
21502
21503 * coding.c (Fset_coding_system_priority): Allow null arg list.
21504
215052008-02-01 Dave Love <fx@gnu.org>
21506
21507 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21508 (Fself_insert_and_exit): Use CHARACTERP.
21509
21510 * callproc.c (Fcall_process): Remove unused vars.
21511
21512 * xterm.c (XTread_socket): Add extra dead keysyms.
21513
21514 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
21515
21516 * dispextern.h: Remove prototypes for redraw_frame,
21517 redraw_garbaged_frames.
21518
21519 * cmds.c (Fself_insert_command): Use CHARACTERP.
21520
21521 * chartab.c (make_sub_char_table): Remove unused var.
21522 (Fset_char_table_default, Fmap_char_table): Doc fix.
21523
21524 * keymap.c (access_keymap): Remove generic char code.
21525 (push_key_description): Use CHARACTERP.
21526
215272008-02-01 Dave Love <fx@gnu.org>
21528
21529 * charset.c: Doc fixes.
21530 (Funify_charset): Extra checking.
21531
215322008-02-01 Dave Love <fx@gnu.org>
21533
21534 * lread.c: Remove some unused variables.
21535 (safe_to_load_p): If safe, return the magic number version byte.
21536 (Fload): Maybe use load-with-code-conversion.
21537
215382008-02-01 Kenichi Handa <handa@m17n.org>
21539
21540 * category.c (Fmodify_category_entry): Don't modify the contents
21541 of category_set for characters out of the range. Avoid
21542 unnecessary modification.
21543
21544 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
21545 Vchar_unify_table. The default value of the table is now nil.
21546
21547 * character.c (syms_of_character): Setup Vchar_width_table for
21548 eight-bit-control and raw-byte chars.
21549
21550 * charset.h (enum define_charset_arg_index): Delete
21551 charset_arg_parents and add charset_arg_subset and
21552 charset_arg_superset.
21553 (enum charset_attr_index): Delete charset_parents and add
21554 charset_subset and charset_superset.
21555 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
21556 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
21557 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
21558 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
21559 (CHARSET_SUPERSET): New macros.
21560 (charset_work): Extern it.
21561 (ENCODE_CHAR): Use charset_work.
21562 (CHAR_CHARSET_P): Adjust for the change of encoder format.
21563 (map_charset_chars): Extern it.
21564
21565 * charset.c (load_charset_map): Set the default value of encoder
21566 and deunifier char-tables to nil.
21567 (map_charset_chars): Change argument. Change callers. Use
21568 map_char_table_for_charset instead of map_char_table.
21569 (Fmap_charset_chars): New optional args from_code and to_code.
21570 (Fdefine_charset_internal): Adjust for the change of
21571 `define-charset' (:parents -> :subset or :superset).
21572 (charset_work): New variable.
21573 (encode_char, syms_of_charset): Adjust for the change of
21574 Fdefine_charset_internal.
21575 (Ffind_charset_string): Setup the vector `charsets' correctly.
21576
21577 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
21578 the previous change.
21579 (char_table_ref_and_range): Adjust for the above change.
21580 (map_sub_char_table_for_charset): New function.
21581 (map_char_table_for_charset): New function.
21582
21583 * keymap.c (describe_vector): Handle a char-table directly here.
21584 (describe_char_table): Delete.
21585
21586 * lisp.h (map_charset_chars): Delete.
21587
215882008-02-01 Dave Love <fx@gnu.org>
21589
21590 * fns.c (count_combining): Comment out (unused).
21591 (Flocale_codeset): New.
21592 (syms_of_fns): Defsubr it.
21593
21594 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
21595 (size_t): Remove.
21596
215972008-02-01 Dave Love <fx@gnu.org>
21598
21599 * Makefile.in (chartab.o): Depend on charset.h.
21600
216012008-02-01 Kenichi Handa <handa@m17n.org>
21602
21603 * character.c (syms_of_character): Set the default value of
21604 Vprintable_chars to Qnil.
21605
216062008-02-01 Dave Love <fx@gnu.org>
21607
21608 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
21609
216102008-02-01 Kenichi Handa <handa@m17n.org>
21611
21612 * charset.c (load_charset_map): Handle the case that from < to
21613 correctly.
21614
21615 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
21616 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
21617 Pay attention to raw-8-bit chars.
21618
216192008-02-01 Kenichi Handa <handa@m17n.org>
21620
21621 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
21622 It is not bytecompiled now.
21623
21624 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
21625 (charset_jisx0208): New variables.
21626 (Fdefine_charset_internal): Setup them if appropriate.
21627 (init_charset_once): Initialize them to -1.
21628
21629 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
21630 (charset_jisx0208): Extern them.
21631
21632 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
21633 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
21634 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
21635 (setup_iso_safe_charsets): Fix arguments to Fassq.
21636 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
21637 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
21638 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
21639 (encode_coding_iso_2022): Change the 1st arg to
21640 ENCODE_ISO_CHARACTER to a variable.
21641
216422008-02-01 Kenichi Handa <handa@m17n.org>
21643
21644 * charset.h (enum define_charset_arg_index): New enums
21645 charset_arg_min_code and charset_arg_max_code.
21646 (struct charset): New member char_index_offset.
21647
21648 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
21649 Take charset->char_index_offset into account.
21650 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
21651 args[charset_arg_max_code]. Setup charset.char_index_offset.
21652 (syms_of_charset): Fix args to Fdefine_charset_internal.
21653
216542008-02-01 Dave Love <fx@gnu.org>
21655
21656 * coding.c (decode_coding_utf_8): Reject overlong sequences.
21657
216582008-02-01 Dave Love <fx@gnu.org>
21659
21660 * coding.c: Doc fixes.
21661 (Fcoding_system_aliases): Fix return value.
21662 (Qmac): Remove (duplicated) definition.
21663
216642008-02-01 Dave Love <fx@gnu.org>
21665
362654a6
JB
21666 * charset.c (Fcharset_priority_list, Fset_charset_priority):
21667 New functions.
aac0c6e3
MR
21668
21669 * character.c (Fstring): Doc fix.
21670
21671 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
21672
362654a6 21673 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
21674 (font-encoding-alist): Doc fix.
21675
216762008-02-01 Dave Love <fx@gnu.org>
21677
21678 * term.c (costs_set): Declare static, non-initialized for pcc.
21679 (encode_terminal_code): Remove unused var.
21680
21681 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
21682 for K&R.
21683
21684 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
21685
21686 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
21687 (suffixes): Move out of make_subsidiaries for K&R.
21688
21689 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
21690
21691 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
21692
216932008-02-01 Dave Love <fx@gnu.org>
21694
21695 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
21696
21697 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
21698
216992008-02-01 Yong Lu <lyongu@asia-infonet.com>
21700
21701 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
21702
21703 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
21704
217052008-02-01 Kenichi Handa <handa@m17n.org>
21706
21707 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
21708 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
21709
217102008-02-01 Kenichi Handa <handa@m17n.org>
21711
21712 * coding.c (decode_coding_charset): Adjust for the change of
21713 Fdefine_coding_system_internal.
21714 (Fdefine_coding_system_internal): For a coding system of
21715 `charset' type, store a list of charset IDs in
21716 `charset_attr_charset_valids' element of coding attributes.
21717
217182008-02-01 Kenichi Handa <handa@m17n.org>
21719
21720 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
21721 (emacs_mule_char): New arg src. Delete arg `composition'. Change
21722 caller. Handle 2-byte and 3-byte charsets correctly.
21723 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
21724 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
21725 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
21726 (DECODE_EMACS_MULE_21_COMPOSITION): Call
21727 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
21728 sequence.
21729 (decode_coding_emacs_mule): Handle composition correctly. Rewind
21730 `src' and `consumed_chars' correctly before calling emacs_mule_char.
21731 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
21732 and alt&rule composition.
21733 (decode_coding_iso_2022): Handle composition correctly.
21734 (init_coding_once): Setup emacs_mule_bytes for private charsets.
21735
21736 * charset.c (Fdefine_charset_internal): Fix bug for the case of
21737 re-defining a charset. If the charset has :emacs-mule-id, setup
21738 emacs_mule_bytes.
21739 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
21740
217412008-02-01 Kenichi Handa <handa@m17n.org>
21742
21743 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
21744 (encode_coding_big5, encode_coding_charset): If coding requires safe
21745 encoding, produce a character specified by
21746 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
21747
217482008-02-01 Dave Love <fx@gnu.org>
21749
21750 * xterm.c (XSetIMValues): Declare.
21751
21752 * process.c: Conditionally include sys/wait.h, pty.h.
21753
21754 * print.c (print_object): Fix print format for 64-bit systems.
21755
21756 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
21757
21758 * buffer.c (emacs_strerror): Declare.
21759
21760 * fontset.c (Fclear_face_cache): Declare.
21761 (accumulate_font_info): Comment-out (unused).
21762 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
21763 variables.
21764
21765 * character.h (string_escape_byte8): Declare.
21766
21767 * charset.c (load_charset_map, load_charset_map_from_file): Remove
21768 unused vars.
21769 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
21770 (Fmap_charset_chars): Doc fix.
21771
21772 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
21773 (Fset_coding_system_priority, Fset_coding_system_priority)
21774 (Fdefine_coding_system_internal): Doc fix.
21775
217762008-02-01 Dave Love <fx@gnu.org>
21777
21778 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
21779
217802008-02-01 Kenichi Handa <handa@m17n.org>
21781
21782 * character.c (string_escape_byte8): Make multibyte string with
21783 correct size.
21784
21785 * charset.c (Fmake_char): Delete unnecessary code.
21786
217872008-02-01 Kenichi Handa <handa@m17n.org>
21788
21789 * xfns.c (x_encode_text): Allocate coding.destination here, and
21790 call encode_coding_object with dst_object Qnil.
21791
21792 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
21793 multibyte form correctly.
21794
21795 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
21796 against Vfont_encoding_alist.
21797
21798 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
21799 handling of charset list.
21800 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
21801 (decode_coding_object): Move point to coding->dst_pos before
21802 calling post-read-conversion function.
21803 (encode_coding_object): Give correct arguments to
21804 pre-write-conversion. Ignore the return value of
21805 pre-write-conversion function. Pay attention to the case that
21806 pre-write-conversion changes the current buffer. If dst_object is
21807 Qt, even if coding->src_bytes is zero, allocate at least one byte
21808 to coding->destination.
21809
21810 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
21811
21812 * charset.c (Fmake_char): Make it more backward compatible.
21813 (Fmap_charset_chars): Fix docstring.
21814
218152008-02-01 Dave Love <fx@gnu.org>
21816
21817 * coding.c: Doc fixes.
21818 (Fdefine_coding_system_alias): Use names, not symbols, in
21819 coding-system-alist.
21820
218212008-02-01 Kenichi Handa <handa@m17n.org>
21822
21823 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
21824 of calling free_realized_face.
21825
218262008-02-01 Yong Lu <lyongu@asia-infonet.com>
21827
21828 * charset.c (read_hex): Don't treat SPC as a comment starter.
21829 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
21830 (Fdecode_char): Fix typo.
21831
218322008-02-01 Kenichi Handa <handa@m17n.org>
21833
21834 * charset.h (struct charset): New member `code_space_mask'.
21835
21836 * coding.c (coding_set_source): Delete the local variable beg_byte.
21837 (encode_coding_charset, Fdefine_coding_system_internal):
21838 Delete the local variable charset.
21839 (Fdefine_coding_system_internal): Setup
21840 attrs[coding_attr_charset_valids] correctly.
21841
21842 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
21843 member to check if CODE is valid or not.
21844 (Fdefine_charset_internal): Initialize `code_space_mask' member.
21845 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
21846 is within the range of charset->min_code and carset->max_code.
21847
218482008-02-01 Dave Love <fx@gnu.org>
21849
21850 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
21851
21852 * dispextern.h (generate_ascii_font): Fix return type.
21853
21854 * xfaces.c (generate_ascii_font): Fix arg declaration.
21855
21856 * coding.c (coding_inherit_eol_type)
21857 (Fset_terminal_coding_system_internal)
21858 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
21859
218602008-02-01 Kenichi Handa <handa@m17n.org>
21861
21862 * coding.c (decode_coding_charset, encode_coding_charset): Handle
21863 multiple charsets correctly.
21864
218652008-02-01 Kenichi Handa <handa@m17n.org>
21866
21867 * search.c (boyer_moore): Fix handling of multibyte character
21868 translation.
21869
21870 * xdisp.c (display_mode_element): When the variable `elt' is
21871 changed, update `this' and `lisp_string'.
21872
218732008-02-01 Kenichi Handa <handa@m17n.org>
21874
21875 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
21876
21877 * callproc.c (Fcall_process): Be sure to give the current buffer
21878 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
21879
21880 * charset.c (struct charset_map_entries): New struct.
21881 (load_charset_map): Rename from parse_charset_map. New args
21882 entries and n_entries. Change caller.
21883 (load_charset_map_from_file): Rename from load_charset_map.
21884 Change caller. New arg control_flag. Call load_charset_map at
21885 the tail.
21886 (load_charset_map_from_vector): New function.
21887 (Fdefine_charset_internal): Setup charset.compact_codes_p.
21888 (encode_char): If the charset is compact, change a character index
21889 to a code point.
21890
21891 * coding.c (coding_alloc_by_making_gap): Check the case that the
21892 source and destination are the same correctly.
21893 (decode_coding_raw_text): Set coding->consumed_char and
21894 coding->consumed to 0.
21895 (produce_chars): If coding->chars_at_source is nonzero, update
21896 coding->consumed_char and coding->consumed before calling
21897 alloc_destination.
21898 (Fdefine_coding_system_alias): Register ALIAS in
21899 Vcoding_system_alist.
21900 (syms_of_coding): Define `no-conversion' coding system at the tail.
21901
21902 * fileio.c (Finsert_file_contents): Set coding_system instead of
21903 val. If the current buffer is multibyte, always call
21904 decode_coding_gap.
21905
21906 * xfaces.c (try_font_list): Give higher priority to fontset's
21907 family than face's family.
21908
219092008-02-01 Kenichi Handa <handa@m17n.org>
21910
21911 * callproc.c (Fcall_process): Be sure to give the current buffer
21912 to decode_coding_c_string.
21913
21914 * xfaces.c (try_font_list): Give a family specified in a fontset
21915 higher priority than a family specified in a face.
21916
219172008-02-01 Kenichi Handa <handa@m17n.org>
21918
21919 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
21920 Fix arguments to insert_from_buffer.
21921
21922 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
21923
219242008-02-01 Kenichi Handa <handa@m17n.org>
21925
21926 * coding.c (produce_chars): Set the variable `multibytep' correctly.
21927 (decode_coding_gap): Set coding->dst_multibyte correctly.
21928
219292008-02-01 Kenichi Handa <handa@m17n.org>
21930
21931 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
21932 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
21933 (encode_coding_utf_16): Substitute coding->default_char for
21934 non-Unicode characters.
21935 (decode_coding): Don't call record_insert here.
21936 (setup_coding_system): Initialize `surrogate' of
21937 coding->spec.utf_16 to 0.
21938 (EMIT_ONE_BYTE): Fix for multibyte case.
21939
21940 * insdel.c (insert_from_gap): Call record_insert.
21941
219422008-02-01 Kenichi Handa <handa@m17n.org>
21943
21944 * casefiddle.c (casify_region): Fix multibyte case.
21945
21946 * character.c (c_string_width): Add return type `int'.
21947 (char_string_with_unification): Delete arg ADVANCED.
21948
21949 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
21950 (CHAR_STRING): Adjust for the change of char_string_with_unification.
21951 (CHAR_STRING_ADVANCE): Make it do-while statement.
21952
21953 * chartab.c (sub_char_table_set_range): Optimize for the case
21954 DEPTH == 3. Add workaround code for a GCC optimization bug.
21955
21956 * charset.c (parse_charset_map): Remove an unused variable.
21957
21958 * coding.c: Delete unused variables.
21959
21960 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
21961 earlier. If inserted is zero and the coding system doesn't
21962 require flushing, don't call decode_coding_gap.
21963
21964 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
21965
219662008-02-01 Kenichi Handa <handa@m17n.org>
21967
21968 The following changes are for using Unicode as an internal
21969 character model, and use UTF-8 format for buffer/string
21970 representation.
21971
21972 * .gdbinit (xchartable): Adjust for the change of char table structure.
21973 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
21974
21975 * Makefile.in (obj): Add character.o and chartab.o.
21976 (lisp, shortlisp): Remove utf-8.elc.
21977 (*.o): For many files, change dependency on charset.h to
21978 character.h, and add dependency on character.h.
21979 (character.o, chartab.o): New targets.
21980
21981 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
21982 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
21983 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
21984 of "charset.h".
21985
21986 * dired.c, filelock.c: Include "character.h".
21987
21988 * alloc.c: Include "character.h" instead of "charset.h".
21989 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
21990 (syms_of_alloc): Remove defsubr for Smake_char_table.
21991
21992 * buffer.c: Include "character.h" instead of "charset.h", don't
21993 include "coding.h".
21994 (Fset_buffer_multibyte): Adjust for UTF-8.
21995
21996 * buffer.h: EXFUN Fbuffer_live_p.
21997
21998 * callproc.c: Include "character.h" instead of "charset.h".
21999 (Fcall_process): Big change for the new code-conversion APIs.
22000
22001 * casetab.c: Include "character.h" instead of "charset.h".
22002 (set_canon, set_identity, shuffle): Adjust for the new
22003 map_char_table spec.
22004 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
22005 accessing the char table structure.
22006
22007 * chartab.c: New file that implements char table.
22008
22009 * category.c: Include "character.h".
22010 (copy_category_entry): New function.
22011 (copy_category_table): Call map_char_table and copy_category_entry.
22012 (Fmake_category_table): Initialize all top-level slots.
22013 (char_category_set): New function.
22014 (modify_lower_category_set): Delete.
22015 (Fmodify_category_entry): Call char_table_ref_and_range.
22016
22017 * category.h (CATEGORY_SET): Just call char_category_set.
22018
22019 * ccl.c: Include "character.h".
22020 (Qccl, Qcclp): New variables.
22021 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
22022 it's less than 256.
22023 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
22024 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
22025 and DST type.
22026 (ccl_driver): Change types of argument, adjust code accordingly.
22027 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
22028 ccl_driver.
22029 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
22030
22031 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
22032 New members src_multibyte, dst_multibyte, consumed, and produced.
22033 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
22034 (CODING_SPEC_CCL_PROGRAM): New macro.
22035 (ccl_driver): Update prototype.
22036 (Qccl, Qcclp, Fccl_program_p): Extern them.
22037 (CHECK_CCL_PROGRAM): New macro.
22038
22039 * character.c, character.h, chartab.c: New files.
22040
22041 * charset.c: Mostly re-written. Move character and multibyte sequence
22042 handling codes to character.c.
22043
22044 * charset.h: Mostly re-written. Move character and multibyte sequence
22045 handling codes to character.h.
22046
22047 * coding.c, coding.h: Mostly re-written.
22048
22049 * composite.c: Include "character.h" instead of "charset.h".
22050 (CHAR_WIDTH): Move to character.h.
22051 (HASH_KEY, HASH_VALUE): Delete.
22052
22053 * composite.h (enum composition_method): Change order of enumeration
22054 symbols.
22055
22056 * data.c: Include "character.h" instead of "charset.h".
22057 (Faref): Call CHAR_TABLE_REF for a char table.
22058 (Faset): Call CHAR_TABLE_SET for a char table.
22059
22060 * dispextern.h (free_realized_face, check_face_attribytes)
22061 (generate_ascii_font): Extern them.
22062 (free_realized_multibyte_face): Delete extern.
22063
22064 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
22065 table structure.
22066
22067 * editfns.c: Include "character.h" instead of "charset.h".
22068 (Fchar_to_string): Always call CHAR_STRING.
22069
22070 * emacs.c (main): Call init_charset_once, init_charset,
22071 syms_of_chartab, and syms_of_character.
22072
22073 * fileio.c: Include "character.h" instead of "charset.h".
22074 (Finsert_file_contents): Big change for the new code-conversion API.
22075 (choose_write_coding_system, Fwrite_region): Likewise.
22076 (build_annotations_2): Delete.
22077 (e_write): Big change for the new code-conversion API.
22078
22079 * fns.c: Include "character.h" instead of "charset.h".
22080 (copy_sub_char_table): Move to chartab.c.
22081 (Fcopy_sequence): Call copy_char_table for a char table.
22082 (concat): Delete codes calling count_multibyte.
22083 (string_char_to_byte, string_byte_to_char): Adjust for the new
22084 multibyte form.
22085 (internal_equal): Adjust for the change of char table structure.
22086 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
22087 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
22088 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
22089 (char_table_translate, optimize_sub_char_table)
22090 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
22091 chartab.c.
22092 (char_table_ref_and_index): Delete.
22093 (HASH_KEY, HASH_VALUE): Move to lisp.h.
22094 (Fmd5): Call preferred_coding_system instead of accessing
22095 Vcoding_category_list. Adjust for the new code-conversion API.
22096 (syms_of_fns): Move defsubr for char table related functions to
22097 chartab.c.
22098
22099 * fontset.c: Mostly re-written.
22100
22101 * fontset.h (struct font_info): Change type of the member encoding_type.
22102 (enum FONT_SPEC_INDEX): New enum.
22103 (fontset_font_pattern, fs_load_font): Update prototype.
22104 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
22105
22106 * indent.c: Include "character.h" instead of "charset.h".
22107 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
22108
22109 * insdel.c: Include "character.h" instead of "charset.h".
22110 (copy_text): Don't refer to Vnonascii_translation_table.
22111 (insert_from_gap): New function.
22112
22113 * keyboard.c: Include "character.h" instead of "charset.h".
22114 (command_loop_1): Never call direct_output_forward_char before
22115 a non-ASCII character.
22116 (read_char): If Vkeyboard_translate_table is a char table, always
22117 translate a character.
22118
22119 * keymap.c: Include "character.h".
22120 (store_in_keymap): Handle the case that IDX is a cons.
22121 (Fdefine_key): Handle the case that KEY is a cons and the car part
22122 is also a cons (range).
22123 (push_key_description): Adjust for the new character code.
22124 (describe_vector): Call describe_char_table for a char table.
22125 (describe_char_table): New function.
22126
22127 * keymap.h (describe_char_table): Extern it.
22128
22129 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
22130 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
22131 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
22132 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
22133 Delete.
22134 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
22135 structure.
22136 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
22137 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
22138 (CHARTAB_SIZE_BITS_3): New macros.
22139 (chartab_size): Extern it.
22140 (struct Lisp_Char_Table): Re-design.
22141 (struct Lisp_Sub_Char_Table): New structure.
22142 (HASH_KEY, HASH_VALUE): Move from fns.c.
22143 (CHARACTERBITS): Define as 22.
22144 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
22145 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
22146 (GC_SUB_CHAR_TABLE_P): New macro.
22147 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
22148 (code_convert_string_norecord): Deleted extern.
22149 (init_character_once, syms_of_character, init_charset)
22150 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
22151
22152 * lread.c: Include "character.h".
22153 (read_multibyte): New arg NBYTES.
22154 (read_escape): Change the meaning of returned *BYTEREP.
22155 (to_multibyte): Delete.
22156 (read1): Adjust the handling of char table and string.
22157
22158 * print.c: Include "character.h" instead of "charset.h".
22159 (print_string): Convert 8-bit raw bytes to octal form by
22160 string_escape_byte8.
22161 (print_object): Adjust for the new multibyte form. Print 8-bit
22162 raw bytes always in octal form. Handle sub char table correctly.
22163
22164 * process.c: Include "character.h" instead of "charset.h".
22165 (read_process_output, send_process): Adjust for the new
22166 code-conversion API.
22167
22168 * puresize.h (BASE_PURESIZE): Increase.
22169
22170 * regex.c: Include "character.h" instead of "charset.h".
22171 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
22172 (regex_compile): Accept a range whose starting and ending
22173 character have different leading bytes.
22174 (analyse_first): Adjust for the above change.
22175
22176 * search.c: Include "character.h" instead of "charset.h".
22177 (search_buffer, boyer_moore): Adjust for the new multibyte form.
22178 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
22179
22180 * syntax.c: Include "character.h" instead of "charset.h".
22181 (syntax_parent_lookup): Delete.
22182 (Fmodify_syntax_entry): Accept a cons as CHAR.
22183 (skip_chars): Adjust for the new multibyte form.
22184 (init_syntax_once): Call char_table_set_range instead of directly
22185 accessing the structure of a char table.
22186
22187 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
22188 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
22189 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
22190 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
22191
22192 * term.c: Include "buffer.h" and "character.h".
22193 (encode_terminal_code, write_glyphs): Adjust for the new
22194 code-conversion API.
22195 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
22196
22197 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
22198
22199 * xdisp.c: Include "character.h".
22200 (get_next_display_element): Adjust for the new multibyte form.
22201 (disp_char_vector): Adjust for the new char table structure.
22202 (decode_mode_spec_coding): Adjust for the new structure of
22203 coding system.
22204 (decode_mode_spec): Adjust for the new code-conversion API.
22205
22206 * xfaces.c: Include "character.h" instead of "charset.h".
22207 (load_face_font): Adjust for the change of choose_face_font and
22208 FS_LOAD_FONT.
22209 (generate_ascii_font): New function.
22210 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
22211 (set_font_frame_param): Adjust for the change of choose_face_font.
22212 (free_realized_face): Make it public.
22213 (free_realized_faces_for_fontset): Rename from
22214 free_realized_multibyte_face. Free also faces realized for ASCII.
22215 (choose_face_font): Change arguments. Adjust for the change of
22216 fontset_font_pattern and FS_LOAD_FONT.
22217
22218 * xfns.c: Include "character.h".
22219 (x_encode_text): Adjust for the new code-conversion API.
22220
22221 * xselect.c: Don't include "charset.h".
22222 (selection_data_to_lisp_data): Adjust for the new code conversion API.
22223
22224 * xterm.c: Include "character.h".
22225 (x_encode_char): New argument CHARSET. Change caller.
22226 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
22227 Call ENCODE_CHAR instead of SPLIT_CHAR.
22228 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
22229 CHAR_WIDTH instead of CHARSET_WIDTH.
22230 (XTread_socket): Adjust for the new code-conversion API.
22231 (x_new_font): Adjust for the change of FS_LOAD_FONT.
22232 (x_load_font): Adjust for the change of struct font.
22233
222342008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22235
22236 * xfaces.c (face_at_buffer_position): Remove unused vars.
22237
222382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22239
22240 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
22241 Fix overflow checking.
22242
222432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22244
22245 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
22246 Cancel previous change.
22247
222482008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22249
22250 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
22251 ccl->eight_bit_control. Fix check for buffer overflow.
22252 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
22253 (ccl_driver): Initialize extra_bytes to 0.
22254
222552008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22256
22257 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
22258 return it ORed with ctrl_modifier.
22259
222602008-01-29 Miles Bader <miles@gnu.org>
22261
22262 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
22263
222642008-01-28 Jason Rumney <jasonr@gnu.org>
22265
22266 * w32.c (stat): Don't double check for networked drive.
22267
222682008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
22269
22270 * window.c (run_window_configuration_change_hook): New function.
22271 Code extracted from set_window_buffer. Set the selected frame.
22272 (set_window_buffer): Use it.
22273 * window.h (run_window_configuration_change_hook): Declare.
22274 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
22275
22276 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
22277
222782008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
22279
22280 * Makefile.in: Remove references to unused macros.
22281
222822008-01-26 Eli Zaretskii <eliz@gnu.org>
22283
22284 * w32.c (g_b_init_get_sid_sub_authority)
22285 (g_b_init_get_sid_sub_authority_count): New static variables.
22286 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
22287 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
22288 (init_user_info): Use them to retrieve uid and gid.
22289 Use 500/513, the Windows defaults, as Administrator's uid/gid.
22290 (fstat): Use pw_uid and pw_gid from the_passwd structure for
22291 st_uid and st_gid of the file.
22292
222932008-01-26 Jason Rumney <jasonr@gnu.org>
22294
22295 * w32.c (logon_network_drive): New function.
22296 (stat): Use it.
22297
222982008-01-26 Chong Yidong <cyd@stupidchicken.com>
22299
22300 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
22301 invisible text covered with an ellipsis.
22302
223032008-01-25 Richard Stallman <rms@gnu.org>
22304
22305 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
22306 jump back to beginning. Move some other initializations after that.
22307 (Qwindow_text_change_functions, Vwindow_text_change_functions):
22308 New variables.
22309 (syms_of_xdisp): Init them.
22310
22311 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
22312
22313 * buffer.c (reset_buffer_local_variables):
22314 Implement `permanent-local-hook'.
22315 (Qpermanent_local_hook): New variable.
22316 (syms_of_buffer): Init and staticpro it.
22317
223182008-01-25 Michael Albinus <michael.albinus@gmx.de>
22319
22320 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
22321
223222008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
22323
22324 * fns.c (Fclrhash): Return TABLE.
22325
223262008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22327
22328 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
22329 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
22330 is set even without positional changes.
22331 (x_scroll_bar_clear): Set bar->redraw_needed_p.
22332
22333 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
22334
223352008-01-23 Jason Rumney <jasonr@gnu.org>
22336
22337 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
22338
22339 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
22340 the unicode range available in MULE by locale-coding-system.
22341 Improve dbcs lead byte detection. Set event timestamp and modifiers
22342 earlier.
22343
223442008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22345
22346 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
22347 [MAC_OSX] (init_mac_osx_environment): Initialize it.
22348 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
22349 when used on child processes.
22350
223512008-01-21 Michael Albinus <michael.albinus@gmx.de>
22352
22353 * dbusbind.c (Fdbus_method_return_internal): Rename from
22354 Fdbus_method_return.
22355 (Fdbus_unregister_object): Move to dbus.el.
22356 (Fdbus_call_method, Fdbus_method_return_internal)
22357 (Fdbus_send_signal): Improve debug messages.
22358
223592008-01-20 Martin Rudalics <rudalics@gmx.at>
22360
22361 * undo.c (undo_inhibit_record_point): New variable.
22362 (syms_of_undo): Initialize it.
22363 (record_point): Don't record point when undo_inhibit_record_point
22364 is set.
22365
223662008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
22367
22368 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
22369
22370 * xdisp.c (Qauto_hscroll_mode): New var.
22371 (syms_of_xdisp): Initialize it.
22372 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
22373 window's buffer.
22374 (hscroll_windows): Don't check automatic_hscrolling_p here.
22375
22376 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
22377 vscroll if we're setting window-buffer to the value it already has.
22378
223792008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
22380
22381 * m/intel386.h: Remove references to XENIX.
22382
223832008-01-17 Andreas Schwab <schwab@suse.de>
22384
22385 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
22386 instead of HAVE_X86_64_LIB64_DIR.
22387 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
22388
223892008-01-17 Glenn Morris <rgm@gnu.org>
22390
22391 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
22392 to HAVE_X86_64_LIB64_DIR.
22393
223942008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
22395
22396 * s/irix3-3.h:
22397 * s/irix4-0.h:
22398 * s/386-ix.h:
22399 * s/domain.h:
22400 * s/hpux9-x11r4.h:
22401 * s/hpux9shxr4.h: Remove files for systems no longer supported.
22402
22403 * sysdep.c: Remove code containing references to symbols defined
22404 by unsupported systems.
22405
224062008-01-16 Glenn Morris <rgm@gnu.org>
22407
22408 * coding.c (select-safe-coding-system-function): Doc fix.
22409
224102008-01-15 Glenn Morris <rgm@gnu.org>
22411
22412 * config.in: Revert 2008-01-13 change: this is a generated file.
22413
224142008-01-13 Tom Tromey <tromey@redhat.com>
22415
22416 * lisp.h: Fix typo.
22417
224182008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22419
22420 * m/sequent-ptx.h:
22421 * m/sequent.h:
22422 * s/ptx.h:
22423 * s/ptx4-2.h:
22424 * s/ptx4.h: Remove files for systems no longer supported.
22425
22426 * callproc.c (Fcall_process): Fix previous change.
22427
224282008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22429
22430 * unexsunos4.c: Remove file, system not supported anymore.
22431
22432 * m/mips.h:
22433 * m/intel386.h:
22434 * callproc.c:
22435 * config.in:
22436 * ecrt0.c:
22437 * emacs.c:
22438 * fileio.c:
22439 * frame.c:
22440 * getpagesize.h:
22441 * keyboard.c:
22442 * lread.c:
22443 * process.c:
22444 * puresize.h:
22445 * sysdep.c:
22446 * systty.h:
22447 * syswait.h:
22448 * unexec.c:
22449 * xdisp.c:
22450 * alloc.c: Remove code containing references to symbols defined by
22451 unsupported systems.
22452
224532008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
22454
22455 * coding.c (detect_coding_mask): Fix previous change.
22456
224572008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
22458
22459 * coding.c (detect_coding_iso2022): New arg
22460 latin_extra_code_state. Allow Latin extra codes only
22461 when *latin_extra_code_state is nonzero.
22462 (detect_coding_mask): If there is a NULL byte, detect the encoding
22463 as UTF-16 or binary. If Latin extra codes exist, detect the
22464 encoding as ISO-2022 only when there's no other proper encoding is
22465 found.
22466
224672008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22468
22469 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
22470 #ifdef MAC_OS.
22471
224722008-01-08 Richard Stallman <rms@gnu.org>
22473
22474 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
22475
224762008-01-06 Nick Roberts <nickrob@snap.net.nz>
22477
22478 * keyboard.c (parse_menu_item): Don't enclose key bindings on
22479 menu bar in parentheses.
22480
224812008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
22482
22483 * m/7300.h:
22484 * m/acorn.h:
22485 * m/alliant-2800.h:
22486 * m/alliant.h:
22487 * m/alliant1.h:
22488 * m/alliant4.h:
22489 * m/altos.h:
22490 * m/amdahl.h:
22491 * m/apollo.h:
22492 * m/att3b.h:
22493 * m/aviion-intel.h:
22494 * m/aviion.h:
22495 * m/celerity.h:
22496 * m/clipper.h:
22497 * m/cnvrgnt.h:
22498 * m/convex.h:
22499 * m/cydra5.h:
22500 * m/delta88k.h:
22501 * m/dpx2.h:
22502 * m/dual.h:
22503 * m/elxsi.h:
22504 * m/f301.h:
22505 * m/gould-np1.h:
22506 * m/gould.h:
22507 * m/i860.h:
22508 * m/ibmps2-aix.h:
22509 * m/ibmrt-aix.h:
22510 * m/ibmrt.h:
22511 * m/irist.h:
22512 * m/is386.h:
22513 * m/isi-ov.h:
22514 * m/mega68.h:
22515 * m/mg1.h:
22516 * m/news-r6.h:
22517 * m/news-risc.h:
22518 * m/news.h:
22519 * m/nh3000.h:
22520 * m/nh4000.h:
22521 * m/ns16000.h:
22522 * m/ns32000.h:
22523 * m/nu.h:
22524 * m/orion.h:
22525 * m/orion105.h:
22526 * m/paragon.h:
22527 * m/pfa50.h:
22528 * m/plexus.h:
22529 * m/pyramid.h:
22530 * m/pyrmips.h:
22531 * m/sh3el.h:
22532 * m/sps7.h:
22533 * m/sr2k.h:
22534 * m/stride.h:
22535 * m/sun1.h:
22536 * m/sun2.h:
22537 * m/sun3-68881.h:
22538 * m/sun3-fpa.h:
22539 * m/sun3-soft.h:
22540 * m/sun3.h:
22541 * m/sun386.h:
22542 * m/symmetry.h:
22543 * m/tad68k.h:
22544 * m/tahoe.h:
22545 * m/targon31.h:
22546 * m/tek4300.h:
22547 * m/tekxd88.h:
22548 * m/tower32.h:
22549 * m/tower32v3.h:
22550 * m/ustation.h:
22551 * m/wicat.h:
22552 * m/xps100.h:
22553 * s/cxux.h:
22554 * s/cxux7.h:
22555 * s/dgux.h:
22556 * s/dgux4.h:
22557 * s/dgux5-4-3.h:
22558 * s/dgux5-4r2.h:
22559 * s/esix.h:
22560 * s/esix5r4.h:
22561 * s/hiuxmpp.h:
22562 * s/hiuxwe2.h:
22563 * s/iris3-5.h:
22564 * s/iris3-6.h:
22565 * s/isc2-2.h:
22566 * s/isc3-0.h:
22567 * s/isc4-0.h:
22568 * s/isc4-1.h:
22569 * s/newsos5.h:
22570 * s/newsos6.h:
22571 * s/osf1.h:
22572 * s/osf5-0.h:
22573 * s/riscix1-1.h:
22574 * s/riscix12.h:
22575 * s/sco4.h:
22576 * s/sco5.h:
22577 * s/sunos4-0.h:
22578 * s/sunos4-1.h:
22579 * s/sunos413.h:
22580 * s/sunos4shr.h:
22581 * s/umax.h:
22582 * s/unipl5-2.h:
22583 * s/xenix.h:
22584 * cxux-crt0.s:
22585 * unexapollo.c:
22586 * unexconvex.c:
22587 * unexenix.c:
22588 * unexsni.c: Remove files for systems no longer supported.
22589
22590 * m/intel386.h: Remove references to unsupported systems.
22591
22592 * w32.c (get_emacs_configuration): Remove reference to i860.
22593
22594 * sysdep.c: Remove dead code.
22595
225962008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
22597
22598 * s/rtu.h:
22599 * m/masscomp.h: Remove files. Platform is obsolete.
22600
226012008-01-04 Michael Albinus <michael.albinus@gmx.de>
22602
22603 * dbusbind.c (Fdbus_method_return): New function.
22604 (xd_read_message): Add the serial number to the event.
22605 (Fdbus_register_method): Activate the function.
22606
226072008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
22608
22609 * keyboard.c (read_key_sequence): Fix typo.
22610
226112008-01-03 Michael Albinus <michael.albinus@gmx.de>
22612
22613 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
22614 (xd_signature, xd_append_arg): Handle element type detection for
22615 empty arrays.
22616 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
22617 SDATA () calls; this must be solved more general.
22618 (Fdbus_register_signal): Use SBYTES instead of strlen.
22619
226202008-01-03 Magnus Henoch <magnus@zemdatav>
22621
22622 * dbusbind.c (xd_append_arg): Use unsigned char instead of
22623 unsigned int for byte values (necessary for big-endian platform).
22624 (Fdbus_call_method): Handle the case of no returned arguments.
22625
226262007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
22627
22628 * dbusbind.c (xd_read_message): Use non-static input_event struct.
22629
226302007-12-31 Magnus Henoch <mange@freemail.hu>
22631
22632 * dbusbind.c (xd_signature): Signature of variant is just "v".
22633
226342007-12-30 Michael Albinus <michael.albinus@gmx.de>
22635
22636 * dbusbind.c: Fix several errors and compiler warnings.
22637 Reported by Tom Tromey <tromey@redhat.com>.
22638 (XD_ERROR, XD_DEBUG_MESSAGE)
22639 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
22640 (xd_append_arg): Part for basic D-Bus types rewritten.
22641 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
22642 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
22643 appropriate.
22644 (xd_read_message): Return Qnil. Don't signal an error; it is not
22645 useful during event reading.
22646 (Fdbus_register_signal): Signal an error if the check for
22647 FUNCTIONP fails.
22648 (Fdbus_register_method): New function. The implementation is not
22649 complete, the call of the function signals an error therefore.
22650 (Fdbus_unregister_object): New function, renamed from
22651 Fdbus_unregister_signal. The initial check signals an error, if
22652 the object is not well formed.
22653
226542007-12-30 Richard Stallman <rms@gnu.org>
22655
22656 * textprop.c (get_char_property_and_overlay):
22657 Signal error if POSITION is out of range in a buffer.
22658
226592007-12-29 Martin Rudalics <rudalics@gmx.at>
22660
22661 * w32fns.c (Fx_create_frame): Make copy of frame parameters
22662 because the original parameters are in pure storage now.
22663
226642007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22665
22666 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
22667
226682007-12-22 Eli Zaretskii <eliz@gnu.org>
22669
22670 * callint.c (syms_of_callint) <command-history>: Add reference to
22671 history-length in the doc string.
22672
226732007-12-17 Jason Rumney <jasonr@gnu.org>
22674
22675 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
22676 before passing as wParam.
22677
226782007-12-22 Michael Albinus <michael.albinus@gmx.de>
22679
22680 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
22681 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
22682 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
22683 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
22684 as number.
22685 (Fdbus_call_method): Fix docstring.
22686
226872007-12-21 Michael Albinus <michael.albinus@gmx.de>
22688
22689 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
22690 New macros.
22691 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
22692 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
22693 Simplify.
22694 (xd_signature): New function.
22695 (xd_append_arg): Compute also signatures. Major rewrite.
22696 (xd_retrieve_arg): Make debug messages friendly.
22697 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
22698 Check for signatures of arguments.
22699
227002007-12-19 Michael Albinus <michael.albinus@gmx.de>
22701
22702 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
22703 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
22704 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
22705 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
22706 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
22707 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
22708 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
22709 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
22710 (xd_retrieve_value): Remove. Functionality included in ...
22711 (xd_append_arg): New function.
22712 (Fdbus_call_method, Fdbus_send_signal): Apply it.
22713
227142007-12-16 Michael Albinus <michael.albinus@gmx.de>
22715
22716 * dbusbind.c (top): Include <stdio.h>.
22717 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
22718 dbus_message_new_method_call and dbus_message_new_signal.
22719 (Fdbus_register_signal): Rename unique_name to uname.
22720 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
22721 non-existing unique name. Fix typos in matching rule. Return an
22722 object which is useful in Fdbus_unregister_signal.
22723 (Fdbus_unregister_signal): Reimplementation, in order to remove
22724 only the corresponding entry.
22725 (Vdbus_registered_functions_table): Change the order of entries.
22726 Apply these changes in xd_read_message and Fdbus_register_signal.
22727
227282007-12-16 Andreas Schwab <schwab@suse.de>
22729
22730 * fileio.c (Finsert_file_contents): Fix overflow check to not
22731 depend on undefined integer overflow.
22732
227332007-12-14 Jason Rumney <jasonr@gnu.org>
22734
22735 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
22736 for characters above 127.
22737
227382007-12-13 Jason Rumney <jasonr@gnu.org>
22739
22740 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
22741 before dereferencing array.
22742 (lookup_vk_code): Remove zero comparison.
22743
227442007-12-14 Michael Albinus <michael.albinus@gmx.de>
22745
22746 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
22747 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
22748 Use `unsigned int' instead of `uint'.
22749 (xd_read_message, Fdbus_register_signal): Split expressions into
22750 multiple lines before operators "&&" and "||", according to the
22751 GNU Coding Standards.
22752
227532007-12-14 Eli Zaretskii <eliz@gnu.org>
22754
22755 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
22756
227572007-12-12 Juri Linkov <juri@jurta.org>
22758
22759 * buffer.c (Frename_buffer): In interactive spec replace
22760 `read-buffer' with `read-string' that uses `buffer-name-history'
22761 as history, and the current buffer's name as default.
22762
227632007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
22764
22765 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
22766 manipulating the backtrace manually.
22767 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
22768 (struct backtrace, backtrace_list): Remove.
22769 (command_loop_1): Remove dead var `no_direct'.
22770
22771 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
22772 preserve non-built-in buffer-local variables.
22773 (Fkill_all_local_variables): Don't re-create&re-set permanent
22774 buffer-local variables.
22775
227762007-12-09 Juri Linkov <juri@jurta.org>
22777
22778 * buffer.c (Frename_buffer): Change interactive spec from "s" to
22779 Lisp code that uses `read-buffer' with current buffer as default.
22780
227812007-12-08 Michael Albinus <michael.albinus@gmx.de>
22782
22783 * dbusbind.c (xd_read_message): Generate an event for every
22784 registered handler. There might be several handlers registered
22785 for the same signal.
22786 (Fdbus_register_signal): Don't overwrite a registration for the
22787 same signal. Add a new registration if handlers are different.
22788 (Vdbus_registered_functions_table): Rework doc string.
22789
227902007-12-07 Michael Albinus <michael.albinus@gmx.de>
22791
22792 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
22793 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
22794 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
22795 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
22796 Unify argument lists.
22797 (xd_read_message, Fdbus_register_signal): Reorder and extend event
22798 arguments and hash table keys. Use unique name for service.
22799 (Fdbus_unregister_signal): Remove checks.
22800 (Vdbus_registered_functions_table): Fix doc string.
22801
228022007-12-05 Magnus Henoch <mange@freemail.hu>
22803
22804 * process.c (make_process): Initialize pty_flag to 0.
22805
228062007-12-05 Jason Rumney <jasonr@gnu.org>
22807
22808 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
22809 specified XBMs.
22810
228112007-12-05 Richard Stallman <rms@gnu.org>
22812
22813 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
22814
228152007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22816
22817 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
22818 New variable.
22819 (mac_try_close_socket) [MAC_OSX]: New function.
22820 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
22821 Update cfsockets_for_select. Replace invalid CFRunLoop source.
22822
22823 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
22824 Use mac_try_close_socket.
22825
228262007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22827
22828 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
22829 reloc_base.
22830 (copy_dysymtab): Compute relocation base here.
22831 (rebase_reloc_address) [__ppc64__]: New function.
22832 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
22833 changed.
22834
228352007-12-05 Jason Rumney <jasonr@gnu.org>
22836
22837 * w32proc.c (sys_spawnve): Quote args with wildcards.
22838
228392007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22840
22841 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
22842 __objc_* sections.
22843 (unrelocate) [_LP64]: Set relocation base to address of data segment.
22844
228452007-12-05 Michael Albinus <michael.albinus@gmx.de>
22846
22847 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
22848 Move check for Vdbus_registered_functions_table to
22849 xd_read_queued_messages.
22850 (xd_read_queued_messages): Protect xd_read_message calls by
22851 internal_condition_case_1.
22852
228532007-12-04 Michael Albinus <michael.albinus@gmx.de>
22854
22855 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
22856 Qdbus_system_bus and Qdbus_session_bus, respectively.
22857 (Vdbus_intern_symbols): Remove.
22858 (Vdbus_registered_functions_table): New hash table.
22859 (XD_SYMBOL_INTERN_SYMBOL): Remove.
22860 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
22861 Rewrite in order to manage registered functions by hash table
22862 Vdbus_registered_functions_table.
22863
228642007-12-03 Jan Djärv <jan.h.d@swipnet.se>
22865
22866 * xterm.c: Update URL to Window Manager Specification in comment.
22867
228682007-12-02 Michael Albinus <michael.albinus@gmx.de>
22869
22870 * config.in (HAVE_DBUS): Add.
22871
22872 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
22873 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
22874 (obj): Add $(DBUS_OBJ).
22875 (LIBES): Add $(DBUS_LIBS).
22876 (dbusbind.o): New target.
22877
22878 * dbusbind.c: New file.
22879
22880 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
22881
22882 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
22883 (Qdbus_event): New Lisp symbol.
22884 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
22885 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 22886 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
22887
22888 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
22889
228902007-12-01 Richard Stallman <rms@gnu.org>
22891
22892 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
22893
228942007-11-30 Jason Rumney <jasonr@gnu.org>
22895
22896 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
22897 (w32con_reset_terminal_modes): Clear screen buffer.
22898 (w32_face_attributes): Don't use color indexes that are out of range.
22899 Only reverse the default colors.
22900
22901 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
22902 WINDOWSNT.
22903
22904 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
22905
229062007-11-29 Jason Rumney <jasonr@gnu.org>
22907
22908 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
22909 (w32_face_attributes): Use Vtty_defined_color_alist to determine
22910 if the terminal colors are initialized.
22911 (unspecified_fg, unspecified_bg): Remove unused declarations.
22912
229132007-11-29 Andreas Schwab <schwab@suse.de>
22914
22915 * keyboard.c (apply_modifiers): Fix typo.
22916
229172007-11-29 Richard Stallman <rms@gnu.org>
22918
22919 * keymap.c (Fcurrent_local_map): Doc fix.
22920
229212007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
22922
22923 * s/gnu-kfreebsd.h: New file.
22924
229252007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
22926
22927 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
22928 Don't cast redundantly.
22929
22930 * keyboard.c (KEY_TO_CHAR): New macro.
22931 (parse_modifiers, apply_modifiers): Accept integer arguments.
22932 (read_key_sequence): Use them to unify the "shift->unshift" mapping
22933 for chars and symbol keys.
22934 After doing such remapping, apply function-key-map again.
22935
229362007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
22937
22938 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
22939 compiled anymore.
22940
229412007-11-26 Andreas Schwab <schwab@suse.de>
22942
22943 * process.c (list_processes_1): Fix indentation level of the
22944 command column.
22945
229462007-11-23 Andreas Schwab <schwab@suse.de>
22947
22948 * editfns.c (Fformat): Handle %c specially since it requires the
22949 argument to be of type int.
22950
229512007-11-23 Markus Triska <markus.triska@gmx.at>
22952
22953 * emacs.c (main): Call init_editfns before init_process, since
22954 init_process sets Vprocess_connection_type depending on OS release.
22955
229562007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
22957
22958 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
22959 (find_symbol_value): Use do_symval_forwarding.
22960
22961 * data.c (set_internal): Set the value in the `cons-cell' (for
22962 Buffer_Local_values) not only for frame-local variables.
22963
229642007-11-22 Andreas Schwab <schwab@suse.de>
22965
22966 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
22967 values to sprintf.
22968 * keymap.c (Fsingle_key_description): Likewise.
22969 * print.c (print_object): Likewise.
22970
229712007-11-22 Jan Djärv <jan.h.d@swipnet.se>
22972
22973 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
22974 file for image is nil.
22975
229762007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
22977
22978 * term.c: Include stdarg.h.
22979 (fatal): Implement using varargs.
22980 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
22981
229822007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22983
22984 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
22985 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
22986 Update call to buffer_slot_type_mismatch.
22987 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
22988 (buffer_slot_type_mismatch): Update.
22989 * buffer.c (buffer_local_types): Remove.
22990 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
22991 (defvar_per_buffer): Set the type in the buffer_objfwd.
22992
229932007-11-21 Jason Rumney <jasonr@gnu.org>
22994
22995 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
22996 CreateFileMapping returns NULL on failure.
22997
229982007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22999
23000 * search.c (Fset_match_data): Remove the `evaporate' feature.
23001 (unwind_set_match_data): Don't use the `evaporate' feature.
23002
230032007-11-21 Jason Rumney <jasonr@gnu.org>
23004
23005 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
23006
23007 * w32console.c (w32con_write_glyphs): Remove unused variables.
23008
230092007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
23010
23011 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
23012
23013 * s/darwin.h (MULTI_KBOARD): Remove.
23014
23015 * macfns.c (x_create_tip_frame, Fx_create_frame)
23016 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
23017
230182007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
23019
23020 * buffer.c (Fbuffer_local_value): Remove redundant test.
23021 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
23022 than in `current-buffer' to match the comment.
23023 Do the swap using swap_in_global_binding.
23024
23025 * data.c (store_symval_forwarding, set_internal):
23026 * eval.c (specbind): Remove dead code.
23027
23028 * coding.c (detect_coding, Fupdate_coding_systems_internal):
23029 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
23030 Since we do not want to see internal Lisp_*fwd objects here.
23031
230322007-11-18 Jan Djärv <jan.h.d@swipnet.se>
23033
23034 * sysdep.c (init_system_name): Use getaddrinfo if available.
23035
23036 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
23037 (x_scroll_bar_note_movement): start, end, with, height in struct
23038 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
23039
230402007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
23041
23042 * puresize.h (BASE_PURESIZE): Increase to 1190000.
23043
230442007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
23045
23046 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
23047 This undoes Richard's change of 14-Oct-2002.
23048
23049 * alloc.c (allocate_other_vector):
23050 * lisp.h (allocate_other_vector): Remove.
23051
23052 * window.c (struct save_window_data): Move non-lisp data to the end
23053 and make it `int' rather than Lisp_Object.
23054 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
23055 Done wrap/unwrap integer values.
23056 (Fset_window_configuration, compare_window_configurations):
23057 Update use of fields to their new types.
23058
23059 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
23060 Turn integer fields into `int'. Merge x_window_low and x_window_high.
23061 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
23062 (SET_SCROLL_BAR_X_WINDOW): Remove.
23063 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
23064 Access the new x_window field directly.
23065 * xterm.c (x_scroll_bar_create): Use a pseudovector.
23066 Don't wrap/unwrap integers into Lisp_Objects.
23067 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
23068 (x_scroll_bar_report_motion):
23069 Don't wrap/unwrap integers into Lisp_Objects.
23070 (x_term_init): Use SDATA.
23071 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
23072 (x_scroll_bar_set_handle, x_scroll_bar_remove)
23073 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
23074 (x_scroll_bar_report_motion, x_scroll_bar_clear):
23075 * xfns.c (x_set_background_color):
23076 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
23077 Access the new x_window field directly.
23078
23079 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
23080 (allocate_pseudovector): Make non-static.
23081
23082 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
23083 (allocate_pseudovector): Declare.
23084 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
23085
230862007-11-15 Andreas Schwab <schwab@suse.de>
23087
23088 * editfns.c (Fformat): Correctly format EMACS_INT values.
23089 Also take precision into account when formatting an integer.
23090
23091 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
23092
230932007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
23094
23095 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
23096 (syms_of_keyboard): Defsubr it.
23097
23098 * data.c (swap_in_global_binding): Fix longstanding bug where
23099 store_symval_forwarding was not called with the right second argument,
23100 thus causing objfwd-ing from being dropped.
23101
231022007-11-14 Juanma Barranquero <lekktu@gmail.com>
23103
23104 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
23105 (Fx_display_pixel_height, Fx_display_planes)
23106 (Fx_display_color_cells, Fx_server_max_request_size)
23107 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23108 (Fx_display_visual_class, Fx_display_save_under):
23109 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
23110 (Fx_display_pixel_height, Fx_display_planes)
23111 (Fx_display_color_cells, Fx_server_max_request_size)
23112 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
23113 (Fx_display_mm_height, Fx_display_mm_width)
23114 (Fx_display_backing_store, Fx_display_visual_class)
23115 (Fw32_select_font, Fx_display_save_under):
23116 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
23117 (Fx_display_pixel_height, Fx_display_planes)
23118 (Fx_display_color_cells, Fx_server_max_request_size)
23119 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23120 (Fx_display_save_under): Fix typos in docstrings.
23121
231222007-11-14 Juanma Barranquero <lekktu@gmail.com>
23123
23124 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
23125 corresponding to deleted entries; they are an implementation detail.
23126 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
23127 Remove variables.
23128 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
23129 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
23130 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
23131 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
23132 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
23133 (Fw32_define_rgb_color, Fw32_load_color_file)
23134 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
23135 Fix typos in docstrings.
23136 (Fx_server_version): Reflow docstring.
23137 (Fw32_shell_execute): Doc fixes.
23138
231392007-11-13 Juanma Barranquero <lekktu@gmail.com>
23140
23141 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
23142 if w32_parse_hot_key returned nil.
23143
231442007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
23145
23146 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
23147
231482007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 23149
aac0c6e3
MR
23150 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
23151
23152 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
23153
23154 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
23155 Remove W32_SCROLL_BAR_CLICK_EVENT.
23156
23157 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
23158 Add MULTIMEDIA_KEY_EVENT.
23159
23160 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
23161 (lispy_multimedia_keys) [WINDOWSNT]: New array.
23162 (make_lispy_event) [WINDOWSNT]: Use it to translate
23163 MULTIMEDIA_KEY_EVENT.
23164
23165 * w32term.h (WM_APPCOMMAND): Define if not already.
23166 (GET_APPCOMMAND_LPARAM): Likewise.
23167
23168 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
23169 WM_APPCOMMAND.
23170
23171 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
23172 (syms_of_w32fns): Export and initialize it.
23173 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
23174
231752007-11-09 Chong Yidong <cyd@stupidchicken.com>
23176
23177 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
23178 twice.
23179
23180 * xdisp.c (handle_face_prop): Fix last change.
23181
231822007-11-09 Richard Stallman <rms@gnu.org>
23183
23184 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
23185 not just for after-strings and before-strings.
23186 Call face_for_overlay_string and pass the overlay to it.
23187 (handle_display_prop): Determine whether property came from an overlay.
23188 Pass OVERLAY arg to handle_single_display_spec.
23189 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
23190 (load_overlay_strings): Fill in it->string_overlays.
23191 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
23192
23193 * xfaces.c (face_for_overlay_string): Function renamed from
23194 face_at_buffer_position_no_overlays, and add arg OVERLAY.
23195
23196 * dispextern.h (struct it): New elt string_overlays.
23197 New elt from_overlay, also in stack.
23198 Rearrange a few elements.
23199 (face_for_overlay_string): Decl renamed from
23200 face_at_buffer_position_no_overlays, and add argument.
23201
232022007-11-09 Richard Stallman <rms@gnu.org>
23203
23204 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
23205 to get the base face for an overlay string.
23206
23207 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
23208
23209 * xfaces.c (face_at_buffer_position_no_overlays): New function.
23210
23211 * xdisp.c (handle_stop): Move some code out of loop.
23212
232132007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23214
23215 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
23216 Fix conversion from Lisp object to ATSUFontID.
23217
232182007-11-09 Jason Rumney <jasonr@gnu.org>
23219
23220 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
23221
232222007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23223
23224 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
23225 Don't assume regions are aligned to page boundary.
23226 (print_load_command_name): Add LC_UUID if defined.
23227
232282007-11-09 Richard Stallman <rms@gnu.org>
23229
23230 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
23231
232322007-11-07 Jason Rumney <jasonr@gnu.org>
23233
23234 * s/windows95.h: Remove.
23235
232362007-11-06 Jan Djärv <jan.h.d@swipnet.se>
23237
23238 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
23239 abort with a message on unhandled store_type values.
23240
232412007-11-01 Jan Djärv <jan.h.d@swipnet.se>
23242
23243 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
23244 Remove HAVE_X11R5 and HAVE_X11R4.
23245
232462007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23247
23248 * Makefile.in: Remove references to sunfns.c and sunfns.o.
23249
232502007-11-01 Johan Bockgård <bojohan@gnu.org>
23251
23252 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
23253 Don't set s->stippled_p here, since it has already been set by
23254 x_set_glyph_string_gc from x_draw_glyph_string.
23255
232562007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23257
23258 * sunfns.c: Remove file.
23259
23260 * m/sun386.h:
23261 * m/sun2.h:
23262 * m/sparc.h: Remove Sun windows code.
23263
232642007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
23265
23266 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
23267 (init_keyboard): Set current_kboard's window-system to nil.
23268 (tty_read_avail_input): Typo.
23269 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
23270
232712007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
23272
23273 * s/usg5-4.h:
23274 * s/usg5-3.h:
23275 * s/ptx.h:
23276 * m/is386.h:
23277 * m/ibmps2-aix.h:
23278 * Makefile.in: Remove all mentions of X10.
23279
23280 * dispnew.c (syms_of_display): Don't mention version 10.
23281
232822007-10-28 Juanma Barranquero <lekktu@gmail.com>
23283
23284 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
23285 ($(BLD)/abbrev.$(O)): Remove.
23286
232872007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
23288
23289 Rewrite abbrev.c in Elisp.
23290 * image.c (Qcount): Don't declare as extern.
23291 (syms_of_image): Initialize and staticpro `Qcount'.
23292 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
23293 * emacs.c (main): Don't call syms_of_abbrev.
23294 * Makefile.in (obj): Remove abbrev.o.
23295 (abbrev.o): Remove.
23296 * abbrev.c: Remove.
23297
232982007-10-26 Martin Rudalics <rudalics@gmx.at>
23299
23300 * window.c (window_min_size_2): Don't count header-line.
23301
233022007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
23303
23304 * frame.h (struct frame): Move all bit fields after the first bit
23305 field to take advantage of the available space. Group all the
23306 chars together to reduce wasted space due to padding.
23307
233082007-10-26 Juanma Barranquero <lekktu@gmail.com>
23309
23310 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
23311
23312 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
23313 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
23314 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
23315 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
23316 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
23317 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
23318 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
23319 (last_marked, mark_object_loop_halt): Make static.
23320
23321 * frame.c (syms_of_frame) <delete-frame-functions>:
23322 Fix typo in docstring.
23323
233242007-10-25 Juanma Barranquero <lekktu@gmail.com>
23325
23326 * w32.c (init_environment): Fix tiny memory leak.
23327 (w32_get_resource): Remove unused variable `ok'.
23328
233292007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
23330
23331 Make `window-system' into a keyboard-local variable (rather than
23332 frame-local as done originally by multi-tty).
23333
23334 * keyboard.h (struct kboard): Add Vwindow_system.
23335 * keyboard.c (init_kboard): Set a default for Vwindow_system.
23336 (mark_kboards): Mark Vwindow_system.
23337
23338 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
23339 (init_display): Don't set the obsolete `window-system' frame-param.
23340
23341 * xterm.c (x_term_init):
23342 * w32term.c (w32_create_terminal):
23343 * term.c (init_tty): Set Vwindow_system.
23344 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
23345 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
23346
23347 * xfns.c (Fx_create_frame, x_create_tip_frame):
23348 * w32fns.c (Fx_create_frame, x_create_tip_frame):
23349 * macfns.c (Fx_create_frame):
23350 Don't set the obsolete `window-system' frame-param.
23351
23352 * frame.h (Qwindow_system): Remove.
23353 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
23354 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
23355
233562007-10-24 Richard Stallman <rms@gnu.org>
23357
23358 * frame.c (x_figure_window_size): For fullscreen case,
23359 set USPosition | PPosition without clobbering rest of window_prompting.
23360
23361 * keyboard.c (Fcurrent_idle_time): Doc fix.
23362
23363 * print.c (Fwith_output_to_temp_buffer): Doc fix.
23364
233652007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
23366
23367 * process.c (unwind_request_sigio): Only define if __ultrix__.
23368
23369 * callproc.c (child_setup): Remove spurious *.
23370
23371 * lisp.h (Fget_text_property): Declare.
23372 (have_menus_p): Declare it here rather than in sys-dep header files.
23373 * macterm.h (have_menus_p):
23374 * msdos.h (have_menus_p):
23375 * xterm.h (have_menus_p): Remove.
23376
23377 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
23378 (Fmake_variable_frame_local): Just check the variable's const-ness
23379 rather than checking nil or t.
23380
233812007-10-22 Jason Rumney <jasonr@gnu.org>
23382
23383 * w32fns.c: Include math.h.
23384 (w32_abort): Declaration moved to nt/config.nt.
23385
23386 * s/ms-w32.h (HAVE_STDLIB_H): Define.
23387 (abort): Redefinition moved to nt/config.nt.
23388
23389 * m/windowsnt.h: Remove.
23390
233912007-10-22 Juanma Barranquero <lekktu@gmail.com>
23392
23393 * emacs.c (Fdump_emacs): Fix typo in message.
23394 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
23395 <installation-directory>: Reflow docstring.
23396
233972007-10-22 Juri Linkov <juri@jurta.org>
23398
23399 * minibuf.c: Allow minibuffer default to be a list of default values.
23400 With empty input use the first element of this list as returned default.
23401 (string_to_object)
23402 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
23403 (read_minibuf): If defalt is cons, set histstring to its car.
23404 (Fread_string): If default_value is cons, set val to its car.
23405 (Fread_buffer): If def is cons, use its car.
23406 (Fcompleting_read): If defalt is cons, set val to its car.
23407
234082007-10-21 Michael Albinus <michael.albinus@gmx.de>
23409
23410 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
23411
234122007-10-20 Juanma Barranquero <lekktu@gmail.com>
23413
23414 * doc.c (Fdocumentation): Check for advice in all cases.
23415
234162007-10-19 Chong Yidong <cyd@stupidchicken.com>
23417
23418 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
23419
234202007-10-19 Richard Stallman <rms@gnu.org>
23421
23422 * doc.c (Fdocumentation): Check for and handle an advised function.
23423
234242007-10-19 Juanma Barranquero <lekktu@gmail.com>
23425
23426 * process.c (Fset_process_filter): Doc fix.
23427
234282007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
23429
23430 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
23431 which caused key-translation-map to applied repeatedly (thus breaking
23432 double-mode).
23433
234342007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23435
23436 * xselect.c (x_own_selection, x_handle_selection_clear)
23437 (x_clear_frame_selections):
23438 * w32menu.c (list_of_panes, list_of_items):
23439 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
23440 * textprop.c (validate_plist, interval_has_all_properties)
23441 (interval_has_some_properties, interval_has_some_properties_list)
23442 (add_properties, text_property_list):
23443 * process.c (Fget_buffer_process, list_processes_1, status_notify):
23444 * minibuf.c (Fassoc_string):
23445 * macselect.c (x_own_selection, x_clear_frame_selections)
23446 (Fx_disown_selection_internal):
23447 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
23448 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
23449
234502007-10-17 Chong Yidong <cyd@stupidchicken.com>
23451
23452 * process.c: Link to libs for calling res_init() if available.
23453 (Fmake_network_process): Call res_init() before getaddrinfo or
23454 gethostbyname, if possible.
23455
234562007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23457
23458 * lread.c (read1): Set pvectype for char_tables.
23459
23460 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
23461 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
23462 Add type checks.
23463 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
23464
23465 * alloc.c (free_misc): Use XMISCTYPE.
23466 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
23467
234682007-10-17 Glenn Morris <rgm@gnu.org>
23469
23470 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
23471 (syms_of_minibuf): Add Qcompletion_ignore_case.
23472 * dired.c (Qcompletion_ignore_case): Change to external.
23473 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
23474 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
23475 (Fread_file_name): Use it rather than intern'ing.
23476
23477 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
23478 (Fread_coding_system): Ignore case of user input.
23479
234802007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23481
23482 * xdisp.c (handle_display_prop): Ignore display specs after
23483 replacing one when string text is being replaced.
23484 (handle_single_display_spec): Pretend as if characters with display
23485 property haven't been consumed only when buffer text is being replaced.
23486
234872007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
23488
23489 * xfns.c (Fx_create_frame, Fx_display_list):
23490 * window.c (window_fixed_size_p, enlarge_window)
23491 (shrink_window_lowest_first):
23492 * macterm.c (init_font_name_table):
23493 * macfns.c (Fx_create_frame, Fx_display_list):
23494 * lread.c (close_load_descs):
23495 * keyboard.c (read_char_x_menu_prompt):
23496 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
23497 * coding.c (code_convert_region_unwind): Test the type of an object
23498 rather than just !NILP before extracting data from it.
23499
23500 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
23501
23502 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
23503 (XMISCANY): New macro.
23504 (XMISCTYPE): Use it.
23505 (struct Lisp_Misc_Any): New type.
23506 (union Lisp_Misc): Use it.
23507 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
23508 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
23509 (find_symbol_value, set_internal, default_value, Fset_default)
23510 (Fmake_variable_buffer_local, Fmake_local_variable)
23511 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
23512 (Flocal_variable_if_set_p, Fvariable_binding_locus):
23513 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
23514 * alloc.c (allocate_buffer): Set the size and tag.
23515 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
23516 Use XMISCANY.
23517 (die): Follow the GNU convention for error messages.
23518 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
23519 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
23520 tag any more.
23521 (set_buffer_internal_1):
23522 * frame.c (store_frame_param):
23523 * eval.c (specbind):
23524 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
23525
23526 * doc.c (Fsnarf_documentation): Simplify.
23527
235282007-10-14 Juanma Barranquero <lekktu@gmail.com>
23529
23530 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
23531 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
23532
235332007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
23534
23535 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
23536
235372007-10-14 Juanma Barranquero <lekktu@gmail.com>
23538
23539 * eval.c (do_autoload): Don't save autoloads.
23540
23541 * data.c (Ffset): Save autoload of the function being set.
23542
235432007-10-07 John Paul Wallington <jpw@pobox.com>
23544
23545 * xfns.c (x_create_tip_frame): Set the `display-type' frame
23546 parameter before setting up faces.
23547
235482007-10-13 Eli Zaretskii <eliz@gnu.org>
23549
23550 * ccl.c (Fregister_code_conversion_map):
23551 * keyboard.c (append_tool_bar_item): Reformat last change.
23552
23553 * lisp.h (eabs): Rename from `abs'. All callers changed.
23554
235552007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
23556
23557 * buffer.c (add_overlay_mod_hooklist):
23558 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
23559 * fontset.c (make_fontset):
23560 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
23561 (append_tool_bar_item):
23562 * macmenu.c (grow_menu_items):
23563 * w32menu.c (grow_menu_items):
23564 * xmenu.c (grow_menu_items): Use larger_vector.
23565
235662007-10-13 Eli Zaretskii <eliz@gnu.org>
23567
23568 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
23569 selected frame'' on MSDOS).
23570
235712007-10-12 Martin Rudalics <rudalics@gmx.at>
23572
23573 * frame.c (Qexplicit_name): New variable.
23574 (x_report_frame_params): Report it in parameter alist.
23575 (syms_of_frame): Intern and staticpro it.
23576
235772007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
23578
23579 * macfns.c (x_create_tip_frame): Set terminal for frame.
23580
235812007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
23582
23583 * frame.c (Qenvironment): Remove.
23584 (syms_of_frame) <Qenvironment>: Don't initialize.
23585 (Fdelete_frame): Don't treat the `environment' param specially.
23586 * frame.h (Qenvironment): Don't declare.
23587 * callproc.c (set_initial_environment): Don't set unused frame param.
23588
23589 * frame.c (Fframe_with_environment): Remove.
23590 (syms_of_frame) <Sframe_with_environment>: Don't declare.
23591
23592 * lisp.h (Fframe_with_environment): Don't declare.
23593
235942007-10-10 Juanma Barranquero <lekktu@gmail.com>
23595
23596 * indent.c (indent_tabs_mode, last_known_column)
23597 (last_known_column_modified): Make static.
23598 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
23599
236002007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
23601
23602 * puresize.h (BASE_PURESIZE): Increase to 1170000.
23603
236042007-10-09 Jason Rumney <jasonr@gnu.org>
23605
23606 * w32term.c (x_set_window_size): Disable code that attempts to tell
23607 Lisp code about a size change before it actually happens.
23608
236092007-10-09 Richard Stallman <rms@gnu.org>
23610
23611 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
23612 return HANDLED_RETURN.
23613
236142007-10-08 Martin Rudalics <rudalics@gmx.at>
23615
23616 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
23617 when there's an unread command event.
23618
23619 * frame.c (focus_follows_mouse): Move here from frame.el to allow
23620 window autoselection act appropriately when leaving selected frame.
23621 (syms_of_frame): Initialize focus_follows_mouse.
23622 * frame.h (focus_follows_mouse): Extern it.
23623 * macterm.c (XTread_socket): When focus_follows_mouse is nil
23624 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
23625 * msdos.c (dos_rawgetc): Likewise.
23626 * w32term.c (w32_read_socket): Likewise.
23627 * xterm.c (handle_one_xevent): Likewise.
23628 * xdisp.c (syms_of_xdisp): In doc-string of
23629 mouse-autoselect-window mention focus-follows-mouse.
23630
236312007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23632
23633 * macterm.c (mac_load_query_font): Fix missing return value.
23634 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
23635 Add BLOCK_INPUT.
23636
236372007-10-08 Richard Stallman <rms@gnu.org>
23638
23639 * xdisp.c (get_window_cursor_type): Implement documented behavior
23640 for cursor-in-non-selected-windows = t.
23641
236422007-10-08 Jason Rumney <jasonr@gnu.org>
23643
23644 * w32.c (w32_get_resource): Always close registry keys.
23645
236462007-10-08 Jason Rumney <jasonr@gnu.org>
23647
23648 * makefile.w32-in (LIBS): Add COMCTL32.
23649
23650 * w32fns.c (globals_of_w32fns): Init common controls.
23651
236522007-10-08 Richard Stallman <rms@gnu.org>
23653
23654 * image.c (our_memory_buffer): Rename from omfib_buffer.
23655
236562007-10-08 Richard Stallman <rms@gnu.org>
23657
23658 * buffer.c (Foverlays_at): Doc fix.
23659
236602007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
23661
23662 * fns.c (Fplist_put): Preserve uneven tail data.
23663
236642007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
23665
23666 * termhooks.h (enum event_kind): Remove trailing comma.
23667
23668 * frame.h (enum): Remove trailing comma.
23669
236702007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
23671
23672 * w32proc.c (delete_child): Don't terminate threads of zombies.
23673
236742007-10-08 Martin Rudalics <rudalics@gmx.at>
23675
23676 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
23677
23678 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
23679 last-repeatable-command.
23680 (init_kboard): Initialize Vlast_repeatable_command.
23681 (command_loop_1): Set it to real_this_command unless that was
23682 bound to an input event.
23683 (mark_kboards): Mark it.
23684
236852007-10-08 Richard Stallman <rms@gnu.org>
23686
23687 * eval.c (condition-case): Doc fix.
23688
236892007-10-08 Masatake YAMATO <jet@gyve.org>
23690
23691 * xfaces.c (tty_supports_face_attributes_p): Fix code
23692 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
23693 was copied and not edited.
23694
236952007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
23696
23697 Add new `input-decode-map' keymap and use it for terminal
23698 escape sequences.
23699 * keyboard.h (struct kboard): Add Vinput_decode_map.
23700 Remove Vlocal_key_translation_map.
23701 * keyboard.c (read_key_sequence): Add support for input-decode-map.
23702 (init_kboard): Init input-decode-map.
23703 Replace local-key-translation-map back with key-translation-map.
23704 (syms_of_keyboard): Declare input-decode-map.
23705 Remove local-key-translation-map. Update docstrings.
23706 (mark_kboards): Mark Vinput_decode_map.
23707 Don't mark Vlocal_key_translation_map.
23708 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
23709 Replace local-key-translation-map back with key-translation-map.
23710 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
23711 Bind in input-decode-map rather than function-key-map.
23712
23713 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
23714 This was made redundant by the previous introduction of XSETPVECTYPE.
23715
237162007-10-09 Richard Stallman <rms@gnu.org>
23717
23718 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
23719
237202007-09-29 Richard Stallman <rms@gnu.org>
23721
23722 * eval.c (internal_condition_case_2, internal_condition_case_1)
23723 (internal_condition_case): Reenable abort if x_catching_errors ()
23724 to see if that really happens and why.
23725
237262007-10-06 Andreas Schwab <schwab@suse.de>
23727
23728 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
23729
237302007-10-04 Juanma Barranquero <lekktu@gmail.com>
23731
23732 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
23733
237342007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
23735
23736 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
23737
237382007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
23739
23740 * window.h (struct window):
23741 * window.c (struct save_window_data, struct saved_window):
23742 * termhooks.h (struct terminal):
23743 * process.h (struct Lisp_Process):
23744 * frame.h (struct frame):
23745 * buffer.h (struct buffer):
23746 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
23747 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
23748 The size field of (pseudo)vectors is now unsigned.
23749 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
23750
23751 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
23752 Turn `count' into an integer.
23753
23754 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
23755 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
23756 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
23757 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
23758 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
23759
23760 * alloc.c (allocate_pseudovector): New fun.
23761 (ALLOCATE_PSEUDOVECTOR): New macro.
23762 (allocate_window, allocate_terminal, allocate_frame)
23763 (allocate_process): Use it.
23764 (mark_vectorlike): New function.
23765 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
23766 (mark_terminals): Use it.
23767 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
23768 (Fmake_byte_code): Use XSETPVECTYPE.
23769
23770 * frame.c (Fframe_parameters): Minor simplification.
23771
23772 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
23773
23774 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
23775
23776 * buffer.c (Fget_buffer_create, init_buffer_once):
23777 * lread.c (defsubr):
23778 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
23779
23780 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
23781 defined differently in the m/*.h files.
23782 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
23783 (XSETPVECTYPE): New macro.
23784 (XSETPSEUDOVECTOR): Use it.
23785
23786 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
23787 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
23788
23789 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
23790 * lread.c (defvar_per_buffer):
23791 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
23792
23793 * window.c (candidate_window_p): Only consider as visible frames that
23794 are on the same terminal.
23795
23796 * m/ibms390x.h (MARKBIT): Remove unused macro.
23797
237982007-10-01 Juanma Barranquero <lekktu@gmail.com>
23799
23800 * lread.c (Fload): Fix typo in docstring.
23801
238022007-10-01 Michaël Cadilhac <michael@cadilhac.name>
23803
23804 * floatfns.c (Fexpt): Manually check for overflows, so that a power
23805 of a non-zero value can't yield zero.
23806
238072007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
23808
23809 * term.c (term_clear_mouse_face, term_mouse_highlight)
23810 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
23811
23812 * print.c (safe_debug_print): Use XHASH.
23813
23814 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
23815 Lisp elements such as tags.
23816 (XHASH): New macro.
23817 (EQ): Use it.
23818 (SREF, SSET, STRING_COPYIN): Use SDATA.
23819 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
23820
23821 * alloc.c (mark_terminal): Remove left-over declaration.
23822 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
23823 (allocate_vectorlike): Remove type argument. Adjust callers.
23824 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
23825 Only handle the one remaining MEM_TYPE_VECTORLIKE.
23826
23827 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
23828 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
23829 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
23830 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
23831 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
23832 Use them.
23833
23834 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
23835 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
23836 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
23837
238382007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
23839
23840 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
23841 loaded by default.
23842
238432007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
23844
23845 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
23846 on this tty.
23847 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
23848
23849 * term.c (mouse_face_window): Rename from Qmouse_face_window.
23850 Update all users.
23851 (handle_one_term_event): Use Gpm_DrawPointer.
23852 (Fgpm_mouse_start): Rename from Fterm_open_connection.
23853 Signal errors instead of returning nil. Always return nil.
23854 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
23855 Make it a noop if gpm-mouse was not activated.
23856 (syms_of_term): Update names.
23857
238582007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
23859
23860 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
23861 (init_sys_modes): Check that gpm_tty is the current tty.
23862
23863 * alloc.c (allocate_terminal): Set the vector size to only count the
23864 lisp fields. Initialize those to nil.
23865 (mark_object): Don't treat terminals specially.
23866 (mark_terminal): Remove.
23867 (mark_terminals): Use mark_object instead.
23868
23869 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
23870 the GC to the beginning.
23871
23872 * indent.h:
23873 * indent.c: Use EMACS_INT for ints coming from Elisp data.
23874
23875 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
23876
238772007-09-25 Jason Rumney <jasonr@gnu.org>
23878
23879 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
23880
23881 * w32console.c (create_w32cons_output): Remove.
23882
23883 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
23884
23885 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
23886 (reset_sys_modes): Use reset_terminal_modes_hook.
23887
238882007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
23889
23890 * eval.c (do_autoload): Don't output any message.
23891
238922007-09-24 Juri Linkov <juri@jurta.org>
23893
23894 * emacs.c (standard_args): Change priority of "--no-splash"
23895 from 40 to 3. Add "--no-desktop" with the same priority.
23896
238972007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
23898
23899 * alloc.c (gc_sweep): Check cons cell mark bits word by word
23900 and optimize the case where they are all 1.
23901
239022007-09-23 Johannes Weiner <hannes@saeurebad.de>
23903
23904 * lisp.h (abs): Define if not defined.
23905 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
23906 Don't define `abs', since it's defined in lisp.h.
23907
239082007-09-22 Eli Zaretskii <eliz@gnu.org>
23909
23910 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
23911 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
23912 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
23913 (init_tty): Use DEV_TTY instead of "/dev/tty".
23914 [WINDOWSNT]: No need to protect from NAME arg being null.
23915
239162007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
23917
23918 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
23919 up the tty state.
23920
239212007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23922
23923 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
23924 (gpm_tty): Change its type.
23925 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
23926 (gpm_tty): Change its type and initialize it.
23927 (Fterm_open_connection): Check the frame is indeed a tty.
23928 Use the new gpm_tty.
23929 (Fterm_close_connection): Use the new gpm_tty.
23930 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
23931 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
23932
239332007-09-21 Juanma Barranquero <lekktu@gmail.com>
23934
23935 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
23936 underline_color, to draw strike-through.
23937
239382007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23939
23940 * lisp.h (allocate_terminal): Declare.
23941
23942 * window.c (candidate_window_p): Consider frames that are being placed
23943 by the user as somewhere between visible and iconified.
23944 (window_loop): Prefer windows on the current frame.
23945 (Fselect_window): Move the use of select-frame to the beginning so we
23946 can just delegate all the work (it'll call us back anyway).
23947
23948 * frame.c (Qdisplay_environment_variable):
23949 * frame.h (Qdisplay_environment_variable): Delete.
23950
23951 * .gdbinit (xbacktrace): Print the arg's address rather than the value
23952 of the first arg, since that value may be a union.
23953
23954 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
23955 parameter rather than Qdisplay_environment_variable. If all else
23956 fails, look for DISPLAY in initial-environment.
23957
239582007-09-21 Glenn Morris <rgm@gnu.org>
23959
23960 * Makefile.in (emacstool): Remove target.
23961 (lisp, shortlisp): Remove termdev.elc.
23962
239632007-09-21 Markus Triska <markus.triska@gmx.at>
23964
23965 * xterm.c (x_delete_display): Compile session management conditionally.
23966
239672007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
23968
23969 * callproc.c (getenv_internal_1): New function.
23970 (getenv_internal): Use it.
23971 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
23972
23973 * terminal.c (get_terminal): Don't accept ints to represent terminals.
23974 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
23975 (Fset_terminal_parameter): Work with dead terminals as well.
23976 (Fmodify_terminal_parameters): Remove.
23977
23978 * terminal.c (get_terminal): Handle terminals.
23979 Make sure the terminal returned is live.
23980 (create_terminal): Use allocate_terminal.
23981 (mark_terminals): Move to alloc.c.
23982 (delete_terminal): Use terminal->name as liveness status.
23983 NULL out fields after freeing their contents.
23984 Don't deallocate the object.
23985 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
23986 rather than an int.
23987 (Fterminal_live_p): Accept non-integer arguments.
23988 (Fterminal_list): Return terminal objects rather than an ints.
23989
23990 * alloc.c (enum mem_type): New member for `terminal' objects.
23991 (allocate_terminal): New function.
23992 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
23993 Handle terminals.
23994 (mark_terminal): New fun.
23995 (mark_terminals): Move from terminal.c.
23996
23997 * term.c (get_tty_terminal): Don't treat output_initial specially.
23998 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
23999 (delete_tty): Use terminal->name as liveness status.
24000
24001 * termhooks.h (struct terminal): Make it into a pseudovector.
24002 Remove `deleted' replaced by checking `name's nullness.
24003
24004 * print.c (print_object): Handle terminals.
24005
24006 * lisp.h (enum pvec_type): New `terminal' pseudovector.
24007 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
24008
24009 * frame.c (make_terminal_frame):
24010 * keyboard.c (tty_read_avail_input):
24011 * w32term.c (x_delete_terminal):
24012 * xfns.c (Fx_create_frame, x_create_tip_frame):
24013 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
24014
240152007-09-20 Glenn Morris <rgm@gnu.org>
24016
24017 * process.c (Fmake_network_process): Doc fix.
24018
240192007-09-19 Jason Rumney <jasonr@gnu.org>
24020
24021 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
24022
240232007-09-19 Michaël Cadilhac <michael@cadilhac.name>
24024
24025 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
24026 Fix a C warning regarding variable constness.
24027
24028 * xterm.c (handle_one_xevent): Fix a C warning.
24029
240302007-09-18 Jason Rumney <jasonr@gnu.org>
24031
24032 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
24033
240342007-09-17 Jan Djärv <jan.h.d@swipnet.se>
24035
24036 * gtkutil.c (gdpy_def): New variable.
24037 (xg_initialize): Initialize gdpy_def.
24038 (xg_display_close): If no other display exists, set gdpy_def to a
24039 new connection.
24040
240412007-09-16 Jan Djärv <jan.h.d@swipnet.se>
24042
24043 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
24044 when we have no file name for the icon.
24045 (xg_tool_bar_expose_callback): Remove.
24046 (xg_create_tool_bar): Don't connect expose signal to
24047 xg_tool_bar_expose_callback.
24048 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
24049
240502007-09-16 Andreas Schwab <schwab@suse.de>
24051
24052 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
24053 values instead of zapping them.
24054
240552007-09-14 Glenn Morris <rgm@gnu.org>
24056
24057 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
24058 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
24059 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
24060 scope and rename to omfib_buffer for clarity.
24061 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
24062
240632007-09-14 Kenichi Handa <handa@m17n.org>
24064
24065 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
24066
240672007-09-13 Jason Rumney <jasonr@gnu.org>
24068
24069 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
24070
24071 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
24072
24073 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
24074 (mac_term_init): Call here instead, passing rif.
24075
240762007-09-13 Glenn Morris <rgm@gnu.org>
24077
24078 * s/hpux.h: No longer define `static' as nothing.
24079
240802007-09-13 Johan Bockgård <bojohan@gnu.org>
24081
24082 * callint.c (Fcall_interactively): Remove unused var `fun'.
24083
240842007-09-12 Romain Francoise <romain@orebokech.com>
24085
24086 * window.c (prefer_window_split_horizontally, display_buffer):
24087 Revert 2007-09-08 change.
24088
240892007-09-12 Glenn Morris <rgm@gnu.org>
24090
24091 * alloca.c: Remove file.
24092 * Makefile.in (alloca): Do not undef.
24093 (allocaobj, alloca.o): Remove.
24094 (otherobj): Remove allocaobj.
24095 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
24096 * regex.c (C_ALLOCA): Remove all references and code that was only
24097 used when this was defined.
24098 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
24099 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
24100 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
24101
24102 * Makefile.in (SOURCES, unlock, relock): Delete.
24103
24104 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
24105 (menu_grab_callback): All uses changed.
24106
24107 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
24108 (x_reply_selection_request): All uses changed.
24109
241102007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
24111
24112 * lread.c (load_warn_old_style_backquotes): Change message to look
24113 better when it appears in the middle of byte-compiler messages.
24114
241152007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
24116
24117 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
24118
24119 * xterm.c (x_create_terminal): Add comment.
24120
24121 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
24122
241232007-09-10 Richard Stallman <rms@gnu.org>
24124
24125 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
24126
241272007-09-10 Michaël Cadilhac <michael@cadilhac.name>
24128
24129 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
24130 (DEFUN): Document `intspec', use it instead of `prompt'.
24131
24132 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
24133
24134 * data.c (Finteractive_form): If the interactive specification starts
24135 with a `(', use it as a Lisp form.
24136
24137 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
24138 name and file modes.
24139
24140 * callint.c (Fcall_interactively): Comment fixes.
24141
241422007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
24143
24144 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
24145 and compiled functions.
24146
241472007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
24148
24149 * window.c (prefer_window_split_horizontally): New variable.
24150 (display_buffer): Consider splitting window horizontally depending
24151 on prefer_window_split_horizontally.
24152
241532007-09-08 Eli Zaretskii <eliz@gnu.org>
24154
24155 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
24156
241572007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24158
24159 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
24160
24161 * frame.c (x_set_frame_parameters): Check number is positive before
24162 using XFASTINT.
24163
24164 * window.c (freeze_window_start): Don't presume selected_window holds
24165 a window object.
24166 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
24167
241682007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
24169
24170 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
24171
241722007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24173
24174 * window.c (Vsplit_window_preferred_function): New var.
24175 (Fdisplay_buffer): Use it.
24176 (syms_of_window): Export, and initialize it.
24177
241782007-09-06 Pixel <pixel@mandriva.com> (tiny change)
24179
24180 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
24181
241822007-09-06 Glenn Morris <rgm@gnu.org>
24183
24184 * gtkutil.c (menu_grab_callback) <cnt>:
24185 * xselect.c (x_reply_selection_request) <cnt>: Move static
24186 variable to file scope.
24187
241882007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
24189
24190 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
24191 consistent values of selected_frame and selected_window.
24192
241932007-09-04 Jason Rumney <jasonr@gnu.org>
24194
24195 * w32console.c (initialize_w32_display): Zero unused hooks.
24196
241972007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24198
24199 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
24200 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
24201
242022007-09-04 Jason Rumney <jasonr@gnu.org>
24203
24204 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
24205 in w32console.c. Set up input. Remove XXX comments that have been
24206 confirmed as correct.
24207
24208 * s/ms-w32.h (MULTI_KBOARD): Define.
24209
24210 * w32console.c (one_and_only_w32cons): Remove.
24211 (initialize_w32_display): Take terminal argument.
24212
24213 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
24214 initialize_w32_display.
24215 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
24216
24217 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
24218
24219 * keyboard.c (discard_mouse_events): Discard it.
24220 (make_lispy_event): Translate it to a lisp event.
24221 (lispy_wheel_names): Add wheel-left and right events.
24222 (syms_of_keyboard): Enlarge wheel_syms.
24223
24224 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
24225 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
24226
24227 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
24228
24229 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
24230 from WM_MOUSEHWHEEL.
24231 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
24232
24233 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
24234 terminal.
24235
24236 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
24237 keyboard for the terminal.
24238
242392007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24240
24241 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
24242 (Vresume_tty_hook): Rename from Vresume_tty_functions.
24243 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
24244 and resume-tty-function to resume-tty-hook.
24245 (Fsuspend_tty, Fresume_tty): Use new names.
24246
242472007-09-02 Jan Djärv <jan.h.d@swipnet.se>
24248
24249 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
24250 if it starts with "n:".
24251
242522007-08-31 Jan Djärv <jan.h.d@swipnet.se>
24253
24254 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
24255
242562007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
24257
24258 * frame.h:
24259 * frame.c (Qterm_environment_variable): Remove.
24260 (syms_of_frame): Don't init and staticpro it.
24261
24262 * callproc.c (getenv_internal): Remove special case for $TERM.
24263
24264 * callproc.c (Vinitial_environment): New variable.
24265 (set_initial_environment): Initialize it.
24266 (syms_of_callproc): Declare it.
24267 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
24268 TERM under which a process runs is never related to the TERM in which
24269 Emacs is running.
24270
242712007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24272
24273 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
24274 * s/darwin.h: ... do it here.
24275
242762007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
24277
24278 * lisp.h (set_initial_environment): Rename from set_global_environment.
24279
24280 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
24281 removed by mistake on the multi-tty branch.
24282
24283 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
24284 (Fmodify_frame_parameters): Return a value.
24285
24286 * image.c (png_load): Comment-out var only used in commented-out code.
24287
24288 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
24289 before passing it to mark_object.
24290
24291 * xfaces.c (internal_resolve_face_name): Return a value.
24292 (internal_resolve_face_name, resolve_face_name_error): Comment out.
24293
24294 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
24295 (x_icon): Comment-out var only used in commented-out code.
24296
242972007-08-29 Romain Francoise <romain@orebokech.com>
24298
24299 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
24300 QUIT hasn't been provided.
24301
243022007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24303
24304 * callproc.c (child_setup, getenv_internal): Use the
24305 display-environment-variable and term-environment-variable frame params.
24306 (set_initial_environment): Initialise Vprocess_environment.
24307
24308 * config.in: Disable multi-keyboard support on a mac.
24309
24310 * frame.c (Qterm_environment_variable)
24311 (Qdisplay_environment_variable): New variables.
24312 (syms_of_frame): Intern and staticpro them.
24313 (Fmake_terminal_frame): Disable output method test.
24314
24315 * frame.h: Declare them here.
24316
24317 * macfns.c (x_set_mouse_color): Get rif from the frame.
24318 (x_set_tool_bar_lines): Don't use updating_frame.
24319 (mac_window): Add 2 new parameters for consistency with other systems.
24320 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
24321 frame parameters following what is done in X11 and w32. Don't use
24322 FRAME_MAC_DISPLAY_INFO.
24323 (Fx_open_connection, start_hourglass): Remove window-system check.
24324 (x_create_tip_frame): Get the keyboard from the terminal.
24325
24326 * macmenu.c: Reorder includes.
24327 (Fx_popup_menu): Use terminal specific mouse_position_hook.
24328
24329 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
24330 terminal parameter.
24331 (x_clear_frame): Add a frame parameter.
24332 (note_mouse_movement): Get rif from the frame.
24333 (mac_term_init): Initialize the terminal.
24334 (mac_initialize): Make static and move terminal initialization ...
24335 (mac_create_terminal): ... to this new function.
24336
24337 * macterm.h (struct mac_display_info): Add terminal.
24338 (mac_initialize): Delete declaration.
24339
24340 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
24341
24342 * sysdep.c: Comment out text after #endif.
24343
24344 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
24345 is defined. Better initialize ttys in windows. Use terminal
24346 specific mouse_position_hook.
24347
24348 * termhooks.h (union display_info): Add mac_display_info.
24349
24350 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
24351 Set the default minibuffer frame, window_system and the rest of the
24352 frame parameters following what is done in X11.
24353
24354 * w32term.c (w32_initialize): Make static.
24355
24356 * xselect.c (x_handle_selection_clear): Only access
24357 terminal->kboard when MULTI_KBOARD is defined.
24358
24359 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
24360 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
24361
243622007-08-29 Jason Rumney <jasonr@gnu.org>
24363
24364 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
24365 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
24366
24367 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
24368 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
24369
24370 * keyboard.c (restore_kboard_configuration): Only define when
24371 MULTI_KBOARD defined.
24372
24373 * makefile.w32-in: Update dependancies from Makefile.in.
24374 (OBJ1): Add terminal.$(O)
24375
24376 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
24377 Don't define function body.
24378 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
24379
24380 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
24381
24382 * w32.c (request_sigio, unrequest_sigio): Remove.
24383
24384 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
24385 (w32con_clear_frame, w32con_clear_end_of_line)
24386 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
24387 (w32con_delete_glyphs, w32con_set_terminal_window)
24388 (scroll_line, w32_sys_ring_bell): Add frame arg.
24389 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
24390 Add terminal arg.
24391 (PICK_FRAME): Remove.
24392 (w32con_write_glyphs): Use frame specific terminal coding.
24393 (one_and_only_w32cons): New global variable.
24394 (initialize_w32_display): Use it for storing hooks.
24395 (create_w32cons_output): New function.
24396
24397 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
24398 arg a frame.
24399
24400 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
24401 Set window_system.
24402 (x_set_tool_bar_lines): Don't use updating_frame.
24403 (Fx_create_frame): Set terminal and ref count.
24404 (Fx_open_connection): Remove window-system check.
24405
24406 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
24407
24408 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
24409 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
24410 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
24411 Add frame arg.
24412 (x_delete_terminal, w32_create_terminal): New functions.
24413 (w32_term_init): Create a terminal.
24414 (w32_initialize): Move terminal specific initialization to
24415 w32_create_terminal.
24416
24417 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
24418 (w32_clear_rect, w32_clear_area): Use background from frame.
24419 (w32_display_info): Add terminal.
24420 (w32_sys_ring_bell, x_delete_display): Declare here.
24421
24422 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
24423
24424 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
24425
244262007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
24427
24428 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
24429 Fix get_named_tty calls for the controlling tty.
24430
244312007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
24432
194d44e7 24433 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
24434
244352007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
24436
24437 * term.c (tty_insert_glyphs): Add missing first parameter.
24438
244392007-08-29 Károly Lőrentey <karoly@lorentey.hu>
24440
24441 * buffer.c (Fbuffer_list, Fbury_buffer):
24442 Take frame->buried_buffer_list into account.
24443
24444 * cm.c (current_tty): New variable, for cmputc().
24445 (cmputc): Use it.
24446 (cmcheckmagic): Add tty parameter, look up terminal streams there.
24447 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
24448 (cmgoto): Add tty parameter. Pass it on to calccost().
24449 Use emacs_tputs() instead of tputs().
24450
24451 * cm.h (emacs_tputs): New macro to set current_tty, and then call
24452 tputs().
24453 (current_tty): New variable, for cmputc().
24454 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
24455
24456 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
24457 (internal_condition_case, internal_condition_case_1)
24458 (internal_condition_case_2): Don't abort when x_catching_errors.
24459
24460 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
24461 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
24462 prevent crashes caused by bogus longjmps in read_char.
24463
24464 * keymap.h (Fset_keymap_parent): Add EXFUN.
24465
24466 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
24467 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24468 Remove redundant definition.
24469
24470 * macfns.c (x_set_mouse_color, x_make_gc):
24471 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24472
24473 * w32term.c (x_free_frame_resources):
24474 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24475 (w32_initialize): Use the accessor macros for terminal characteristics.
24476
24477 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
24478 Use the accessor macros for terminal characteristics.
24479 * msdos.c (internal_terminal_init): Use the accessor macros for
24480 terminal characteristics.
24481 (ScreenVisualBell, internal_terminal_init):
24482 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24483
24484 * termopts.h (no_redraw_on_reenter): Declare.
24485
24486 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
24487 (mark_terminals, mark_ttys): Declare.
24488 (Fgarbage_collect): Call them.
24489 (mark_object): Mark buried_buffer_list.
24490
24491 * prefix-args.c: Include stdlib.h for exit.
24492
24493 * syssignal.h: Add comment.
24494
24495 * indent.c: Include stdio.h.
24496
24497 * window.h (Vinitial_window_system): Declare.
24498 (Vwindow_system): Delete declaration.
24499
24500 * fontset.c (Finternal_char_font): Use FRAME_RIF.
24501
24502 * image.c (lookup_image): Don't initialize `c' until the xasserts
24503 have been run.
24504
24505 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
24506 FRAME_FOREGROUND_PIXEL.
24507
24508 * print.c (print_preprocess): Don't lose print_depth levels while
24509 iterating.
24510
24511 * widget.c (update_from_various_frame_slots):
24512 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24513
24514 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
24515 frames.
24516 (window_internal_height): Remove bogus make_number call.
24517 (init_window_once): Call make_terminal_frame with two zero parameters.
24518
24519 * fileio.c (Fread_file_name): Update comment.
24520
24521 * callint.c (Fcall_interactively):
24522 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
24523 Make sure it is correctly unwound.
24524
24525 * xsmfns.c (x_session_close): New function.
24526
24527 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
24528 Delete declarations.
24529
24530 * xterm.h: Remove declaration for x_fully_uncatch_errors.
24531 (x_output): Remove background_pixel and foreground_pixel fields.
24532 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
24533 (x_delete_device, x_session_close): Declare.
24534
24535 * lread.c: Include setjmp.h. Update declaration of `read_char'.
24536 (read_filtered_event): Call `read_char' with a local
24537 `wrong_kboard_jmpbuf'.
24538
24539 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
24540 Don't call single_kboard_state. Use FRAME_RIF.
24541
24542 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
24543 systems.
24544
24545 * lisp.h (set_process_environment): Rename to `set_global_environment'.
24546 (Fframe_with_environment, Fset_input_meta_mode)
24547 (Fset_quit_char): EXFUN.
24548 (x_create_device, tty_output, terminal, tty_display_info): Declare.
24549 (init_sys_modes, reset_sys_modes): Update prototypes.
24550 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
24551
24552 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
24553 Vlocal_key_translation_map, and Vkeyboard_translate_table.
24554 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
24555 Delete declarations.
24556 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
24557 (temporarily_switch_to_single_kboard, tty_read_avail_input):
24558 New declarations.
24559
24560 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
24561 already does that during init_display(). Call syms_of_keymap
24562 before syms_of_keyboard. Call `syms_of_terminal'.
24563 Call set_initial_environment, not set_process_environment.
24564 (shut_down_emacs): Call reset_all_sys_modes() instead of
24565 reset_sys_modes().
24566
24567 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
24568 (internal_resolve_face_name, resolve_face_name_error): New functions.
24569 (resolve_face_name): Protect against loops and errors thrown by Fget.
24570 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
24571 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
24572
24573 * scroll.c: Replace CURTTY() with local variables throughout the
24574 file (where applicable).
24575 (calculate_scrolling, calculate_direct_scrolling)
24576 (scrolling_1, scroll_cost): Use the accessor macros for terminal
24577 characteristics.
24578
24579 * keymap.c (Vfunction_key_map): Remove.
24580 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
24581 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
24582 (Vkey_translation_map): Remove.
24583 (syms_of_keymap): Remove DEFVAR for key-translation-map.
24584 (Fdescribe_buffer_bindings)
24585 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
24586 Update for terminal-local key-translation-map.
24587
24588 * Makefile.in (callproc.o): Update dependencies.
24589 (lisp, shortlisp): Add termdev.elc.
24590 (obj): Add terminal.o.
24591 (terminal.o): Add dependencies.
24592 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
24593 (data.o, fns.o): Add termhooks.h dependency.
24594 (SOME_MACHINE_LISP): Add dnd.elc.
24595 (minibuf.o): Fix typo.
24596 Update dependencies.
24597
24598 * data.c (do_symval_forwarding, store_symval_forwarding)
24599 (find_symbol_value): Use the selected frame's keyboard, not
24600 current_kboard.
24601
24602 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
24603 Vwindow_system.
24604
24605 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
24606 Fmenu_bar_open.
24607 (syms_of_xmenu): Update defsubr.
24608 (mouse_position_for_popup, Fx_popup_menu)
24609 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
24610 (set_frame_menubar, free_frame_menubar)
b97439ce 24611 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
24612 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
24613 an X frame.
24614
24615 * xselect.c (x_own_selection): Abort if not an X frame.
24616 (some_frame_on_display): Check if it is an X frame.
24617 (x_handle_selection_clear): Deal with MULTI_KBOARD.
24618
24619 * coding.c: Include frame.h and termhooks.h.
24620 (terminal_coding, keyboard_coding): Delete.
24621 (Fset_terminal_coding_system_internal)
24622 (Fset_keyboard_coding_system_internal)
24623 (Fkeyboard_coding_system)
24624 (Fterminal_coding_system): Add a terminal parameter.
24625 Get terminal_coding from the terminal.
24626 (init_coding_once): Don't call setup_coding_system here.
24627
24628 * dispextern.h (set_scroll_region, turn_off_insert)
24629 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
24630 (tty_clear_end_of_line, tty_setup_colors)
24631 (delete_tty, updating_frame)
24632 (produce_special_glyphs, produce_glyphs, write_glyphs)
24633 (insert_glyphs): Remove.
24634 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
24635 (tty_turn_off_highlight, get_tty_size): Add declaration.
24636 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
24637
24638 * frame.h (enum output_method): Add output_initial.
24639 (struct x_output): Delete.
24640 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24641 Access foreground_pixel and background_pixel directly from the frame.
24642 (tty_display): Delete.
24643 (struct frame): Add buried_buffer_list, foreground_pixel,
24644 background_pixel and terminal. Delete kboard.
24645 (union output_data): Add tty.
24646 (FRAME_KBOARD): Get the kboard from the terminal.
24647 (FRAME_INITIAL_P): New macro.
24648 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
24649 (Qterm_environment_variable, Qdisplay_environment_variable)
24650 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
24651 New declarations.
24652
24653 * termchar.h (tty_output, tty_display_info): New structures.
24654 (tty_list): Declare.
24655 (FRAME_TTY, CURTTY): New macros.
24656 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
24657 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
24658 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
24659 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
24660
24661 * callproc.c: Include frame.h and termhooks.h, for terminal
24662 parameters.
24663 (add_env): New function.
24664 (child_setup): Use it.
24665 (child_setup, getenv_internal): Handle the new Vprocess_environment.
24666 (getenv_internal): Fix get_terminal_param call.
24667 (Fgetenv_internal, egetenv): Update doc.
24668 (syms_of_callproc): Initialize Vprocess_environment to nil.
24669 Register and initialize them. Remove obsolete defvars. Update doc
24670 strings.
24671 (child_setup): Handle Vlocal_environment_variables.
24672 (getenv_internal): Add terminal parameter.
24673 Handle Vlocal_environment_variables.
24674 (Fgetenv_internal): Add terminal parameter.
24675 (child_setup, getenv_internal, Fgetenv_internal): Store the local
24676 environment in a frame (not terminal) parameter. Update doc strings.
24677 (set_initial_environment): Rename from set_global_environment.
24678 Store Emacs environment in initial frame parameter.
24679
24680 * xdisp.c (redisplay_internal): Update references to
24681 `previous_terminal_frame'.
24682 (display_mode_line, Fformat_mode_line): Replace calls to
24683 `push_frame_kboard' with `push_kboard'.
24684 (get_glyph_string_clip_rects): Add extra parentheses and
24685 braces to prevent compiler warnings.
24686 (calc_pixel_width_or_height): Add xassert to check that the
24687 frame is alive. Don't call `lookup_image' on a termcap frame.
24688 (message2_nolog, message3_nolog, redisplay_internal)
24689 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
24690 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
24691 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
24692 (Fx_display_pixel_width, Fx_display_pixel_height)
24693 (Fx_display_planes, Fx_display_color_cells)
24694 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
24695 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
24696 (Fx_display_backing_store, Fx_display_visual_class)
24697 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
24698 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
24699
24700 * xfns.c (x_set_foreground_color x_set_background_color)
24701 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
24702 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24703 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
24704 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
24705 terminal that is being deleted.
24706 (Fx_create_frame): Use `store_frame_param' to set `window-system'
24707 frame parameter, and make sure it overrides any user-supplied setting.
24708 (Fx_close_connection, Fx_synchronize): Unify argument names with
24709 the rest of the DEFUNs.
24710
24711 * dispnew.c (Fsend_string_to_terminal): Update call to
24712 `get_tty_terminal'.
24713 (Fredraw_frame, Fsend_string_to_terminal)
24714 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
24715 FRAME_TERMCAP_P and FRAME_TTY.
24716 (window_change_signal): Don't believe width/height values that are
24717 impossibly small.
24718 (Vinitial_window_system): Rename from Vwindow_system.
24719 (termscript, Wcm, rif): Delete.
24720
24721 * termhooks.h (struct terminal): New struct containing the
24722 previously global text display hooks and new members NAME,
24723 DELETED and PARAM_ALIST.
24724 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
24725 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
24726 (FRAME_RIF): New macros.
24727 (get_terminal_param, get_device): New declarations.
24728 (termscript): Delete declaration.
24729
24730 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
24731 (XTflash, x_free_frame_resources, x_scroll_bar_create)
24732 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
24733 FRAME_FOREGROUND_PIXEL.
24734 (x_fully_uncatch_errors): Disable definition.
24735 (x_scroll_bar_expose): Fix reference to foreground pixel.
24736 (XTread_socket): Disable loop on all X displays.
24737 (x_delete_terminal): Don't set terminal->deleted and let
24738 delete_terminal delete the frames on the terminal.
24739 (x_delete_display): Doc update to reflect changes in
24740 delete_terminal.
24741 (x_display_info) <terminal>: Move member earlier in the struct.
24742 (deleting_tty): Remove old variable.
24743 (Fsuspend_tty): Call clear_tty_hooks.
24744 (Fresume_tty, init_tty): Call set_tty_hooks.
24745 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
24746 errors on X frames.
24747 (x_catch_errors_unwind): Abort if x_error_message is NULL.
24748 (handle_one_xevent): Initialize `f' to NULL.
24749 (x_delete_terminal, x_create_terminal): New functions.
24750 (XTset_terminal_modes, XTreset_terminal_modes)
24751 (XTread_socket, x_connection_closed, x_term_init)
24752 (x_term_init, x_delete_display): Add terminal parameter.
24753 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
24754 X connections.
24755
24756 * frame.c: Include termchar.h.
24757 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
24758 (Qwindow_system, Qenvironment, Qterm_environment_variable)
24759 (Qdisplay_environment_variable): New vars.
24760 (Fframep): Deal with output_initial.
24761 (Fframe-live-p): Doc fix.
24762 (Fwindow-system): New function.
24763 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
24764 (make_terminal_frame): Don't create frames on a terminal that is
24765 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24766 (store_frame_param): Check for found_for_frame before calling XFRAME.
24767 (Fmake_terminal_frame): Handle NULL tty names correctly.
24768 (syms_of_frame): Enhance doc string of `default-frame-alist'.
24769 (Fdelete_frame): Remove unused variable `count'. Don't allow other
24770 frames to refer to a deleted frame in their 'environment parameter.
24771 (Fframe_with_environment): New function.
24772 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
24773 (get_future_frame_param): New function.
24774 (Fmake_terminal_frame): Use it.
24775 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
24776
24777 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
24778 * sysdep.c (reset_sys_modes): Update for renames.
24779
24780 * keyboard.c (tty_read_avail_input): New function.
24781 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
24782 (syms_of_keyboard): Defsubr them.
24783 (Fset_input_meta_mode, Fset_quit_char): New functions.
24784 (Fset_input_mode): Split to above functions.
24785 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
24786 parameter. Use it in call to `read_char'.
24787 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
24788 Set wrong_kboard_jmpbuf correctly in recursive calls.
24789 Use current_kboard to access Vkeyboard_translate_table.
24790 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
24791 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
24792 Update longjmp invocations. Remember the original current_kboard,
24793 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
24794 changes it. Comment out unnecessary calls to
24795 `record_single_kboard_state' and `any_kboard_state'.
24796 Update recursive calls.
24797 (wrong_kboard_jmpbuf): Remove global variable.
24798 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
24799 Handle deleted interrupted_kboards correctly; that is a legal
24800 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
24801 and read_char calls. Abort if interrupted_kboard died in read_char.
24802 (any_kboard_state, single_kboard_state)
24803 (push_frame_kboard): Remove function.
24804 (pop_kboard): Switch out of single_kboard mode if the kboard has
24805 been deleted. Remove unused variable. Help debugging by not
24806 changing current_kboard unnecessarily. Set current_kboard to the
24807 kboard of the selected frame when the stored kboard object has
24808 been deleted before pop_kboard.
24809 (temporarily_switch_to_single_kboard): Change first parameter to a
24810 frame pointer. Throw an error when caller wants to change kboards
24811 while in single_kboard mode. Don't push_kboard if we weren't in
24812 single kboard state. Don't pop_kboard if we popped into any
24813 kboard state.
24814 (restore_kboard_configuration): Abort if pop_kboard changed the
24815 kboard in single_kboard mode. Call pop_kboard only after setting
24816 up single_kboard mode.
24817 (Frecursive_edit): Switch to single_kboard mode only in nested
24818 command loops.
24819 (cmd_error, command_loop, command_loop_1, timer_check):
24820 Comment out unnecessary call to `any_kboard_state' and
24821 `record_single_kboard_state'.
24822 (delete_kboard): Exit single_kboard mode if we have just deleted
24823 that kboard. Use FRAME_KBOARD.
24824 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
24825 `fatal_error_signal'.
24826 (record_single_kboard_state): Don't push_kboard if we weren't in
24827 single kboard state. Don't pop_kboard if we popped into any
24828 kboard state.
24829 (push_frame_kboard): Rename to push_kboard.
24830 (kbd_buffer_get_event): Use FRAME_TERMINAL.
24831 (read_avail_input): Read input from all terminals.
24832 (mark_kboards): Also mark Vkeyboard_translate_table.
24833 (kbd_buffer_store_event_hold): Simplify condition.
24834 (read_key_sequence): Reinitialize fkey and keytran at each replay.
24835 (Vkeyboard_translate_table): Move to struct kboard.
24836 (init_kboard): Initialize Vkeyboard_translate_table.
24837 (syms_of_keyboard): Use DEFVAR_KBOARD to define
24838 Vkeyboard_translate_table. Update doc strings. Update docs of
24839 local-function-key-map and function-key-map.
24840
24841 * terminal.c: New file.
24842
24843 * term.c: Include errno.h.
24844 (Vring_bell_function, device_list, initial_device)
24845 (next_device_id, ring_bell, update_begin, update_end)
24846 (set_terminal_window, cursor_to, raw_cursor_to)
24847 (clear_to_end, clear_frame, clear_end_of_line)
24848 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
24849 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
24850 (syms_of_term): Move their initialization to terminal.c.
24851 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
24852 (Ftty_display_color_cells)
24853 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
24854 (clear_tty_hooks, set_tty_hooks)
24855 (init_tty, maybe_fatal): New functions.
24856 (Ftty_type): Return nil if terminal is not on a tty instead of
24857 throwing an error. Doc update.
24858 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
24859 Doc update. Initialize new subrs and variables.
24860 (delete_tty): Use terminal->deleted.
24861 (tty_set_terminal_modes): Rename from set_terminal_modes.
24862 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
24863 (set_scroll_region): Rename to `tty_set_scroll_region'.
24864 (turn_on_insert): Rename to `tty_turn_on_insert'.
24865 (turn_off_insert): Rename to `tty_turn_off_insert'.
24866 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
24867 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
24868 (toggle_highligh): Rename to `tty_toggle_highlight'.
24869 (background_highlight): Rename to `tty_background_highlight'.
24870 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
24871 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
24872 (tty_set_scroll_region, tty_background_highlight)
24873 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
24874 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
24875 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
24876 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
24877 Add static modifier.
24878 (tty_reset_terminal_modes, tty_set_terminal_window)
24879 (tty_set_scroll_region, tty_background_highlight)
24880 (tty_highlight_if_desired, tty_cursor_to)
24881 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
24882 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
24883 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
24884 renames.
24885
248862007-08-28 Jan Djärv <jan.h.d@swipnet.se>
24887
24888 * keyboard.c: Qrtl is new.
24889 (parse_tool_bar_item): Handle :rtl keyword.
24890 (syms_of_keyboard): Intern :rtl keyword.
24891
24892 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
24893
24894 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
24895 so no Lisp code is executed.
24896 (file_for_image, find_rtl_image): New functions.
24897 (xg_get_image_for_pixmap): Use file_for_image.
24898 (update_frame_tool_bar): If direction is RTL, use RTL image if
24899 defined. Use Gtk stock images if defined.
24900
249012007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24902
24903 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
24904 for nonexistent or zero-width glyph in composition glyph.
24905
249062007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
24907
24908 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
24909
24910 * xdisp.c (Finvisible_p): New function.
24911 (syms_of_xdisp): defsubr it.
24912
249132007-08-24 Juanma Barranquero <lekktu@gmail.com>
24914
24915 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
24916 Doc fixes.
24917
249182007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24919
24920 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
24921
249222007-08-24 Martin Rudalics <rudalics@gmx.at>
24923
24924 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
24925 whether decoding has modified buffer contents.
24926
249272007-08-24 Jason Rumney <jasonr@gnu.org>
24928
24929 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
24930 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
24931 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
24932 (init_svg_functions) [HAVE_NTGUI]: New function.
24933 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
24934 (svg_load_image): Use them.
24935 (svg_load_image) [HAVE_NTGUI]: Implement background.
24936
249372007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24938
24939 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
24940 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
24941 (LIBX): Remove @RSVG_LIBS@.
24942 (LIBES): Add $(RSVG_LIBS).
24943
24944 * image.c (svg_load_image): Blend with specified background if exists.
24945 Use IMAGE_BACKGROUND. Add Mac OS Support.
24946
24947 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
24948 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
24949 Remove macros.
24950 [MAC_OSX] (socket_callback): Do nothing.
24951 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
24952 ReceiveNextEvent.
24953 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
24954 socket_callback.
24955 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
24956
249572007-08-22 Glenn Morris <rgm@gnu.org>
24958
24959 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
24960
249612007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
24962
24963 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
24964
24965 * image.c: Add support for SVG images. Some additional comments
24966 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
24967 (svg_image_p): New function to test for SVG image.
24968 (svg_load): New function to load SVG image.
24969 (svg_load_image): New function, helper for svg_load.
24970 (Qsvg): New Lisp_object.
24971 (svg_keyword_index): New enum.
24972 (svg_format): New static `image_keyword' struct.
24973 (svg_type): New static `image_type' struct.
24974 (librsvg/rsvg.h): Include it.
24975
249762007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
24977
24978 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
24979
249802007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
24981
24982 * lread.c (Qold_style_backquotes): New var.
24983 (syms_of_lread): Init and staticpro it.
24984 (load_warn_old_style_backquotes): New fun.
24985 (Fload): Use them to warn about old style backquotes.
24986 (end_of_file_error, Fload): Remove unused vars.
24987
24988 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
24989
24990 * lread.c (Vold_style_backquotes): New var.
24991 (syms_of_lread): Init and export it to Elisp.
24992 (read1): Set it when we find an old-style (back)quote.
24993
249942007-08-22 Jason Rumney <jasonr@gnu.org>
24995
24996 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
24997
249982007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
24999
25000 * puresize.h (BASE_PURESIZE): Increase to 1140000.
25001
250022007-08-19 Richard Stallman <rms@gnu.org>
25003
25004 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
25005
250062007-08-19 Andreas Schwab <schwab@suse.de>
25007
25008 * alloc.c (pure): Round PURESIZE up.
25009
250102007-08-17 Jan Djärv <jan.h.d@swipnet.se>
25011
25012 * xterm.c (handle_one_xevent): Remove check that mouse click is in
25013 active frame.
25014
250152007-08-16 Richard Stallman <rms@gnu.org>
25016
25017 * eval.c (Fcommandp): Add parens to clarify.
25018
25019 * minibuf.c (Fall_completions): Use enum for type of table.
25020
25021 * emacs.c (USAGE2): Improve text.
25022
250232007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
25024
25025 * term.c (tty_default_color_capabilities): Declare static
25026 variables in file scope, to avoid HPUX compiler problem.
25027
250282007-08-13 Jan Djärv <jan.h.d@swipnet.se>
25029
25030 * gtkutil.c (update_frame_tool_bar): Use -1 as index
25031 to gtk_toolbar_insert.
25032
250332007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
25034
25035 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
25036
25037 * insdel.c (reset_var_on_error): New fun.
25038 (signal_before_change, signal_after_change):
25039 Use it to reset (after|before)-change-functions to nil in case of error.
25040 Bind inhibit-modification-hooks to t.
25041 Don't bind (after|before)-change-functions to nil while they run.
25042
250432007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25044
25045 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
25046 filling pixmap with stippled background.
25047
250482007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25049
25050 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
25051 Don't use invisible frame as parent window for repositioning.
25052
250532007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
25054
25055 * print.c (new_backquote_output): Rename from old_backquote_output.
25056 (print): Inverse its logic (according to its name) so as to match the
25057 behavior of new_backquote_flag in lread.c.
25058
250592007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25060
25061 * gmalloc.c (posix_memalign): New function.
25062
25063 * macterm.c (frame_highlight, frame_unhighlight): Don't call
25064 ActivateControl/DeactivateControl here.
25065 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
25066 frame-notice-user-settings is non-nil.
25067 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
25068 for kEventParamFMFontStyle.
25069 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
25070 mac_pass_command_to_system and mac_pass_control_to_system here.
25071 (XTread_socket): Call ActivateControl/DeactivateControl here.
25072 (XTread_socket) [TARGET_API_MAC_CARBON]:
25073 Check mac_pass_command_to_system and mac_pass_control_to_system here.
25074 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
25075 for window repositioning.
25076
250772007-08-08 Glenn Morris <rgm@gnu.org>
25078
25079 * Replace `iff' in doc-strings and comments.
25080
250812007-08-07 Chong Yidong <cyd@stupidchicken.com>
25082
25083 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
25084
250852007-08-07 Martin Rudalics <rudalics@gmx.at>
25086
25087 * fileio.c (Finsert_file_contents): Run format-decode and
25088 after_insert_file_functions on entire buffer when REPLACE is
25089 non-nil and inhibit modification_hooks and point_motion_hooks.
25090 For consistency, run after_insert_file_functions iff something
25091 got inserted. Move signal_after_change and update_compositions
25092 after code running after_insert_file_functions. Make sure that
25093 undo_list doesn't record intermediate steps of the decoding process.
25094
250952007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25096
25097 * emacs.c (main)
25098 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
25099 Call malloc_enable_thread on interactive startup.
25100
25101 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
25102 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
25103 [USE_PTHREAD]: Conditionalize with it.
25104 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
25105 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
25106 New functions.
25107
251082007-08-06 Chong Yidong <cyd@stupidchicken.com>
25109
25110 * xdisp.c (redisplay_window): When restoring original buffer
25111 position, make sure it is still valid.
25112
25113 * image.c (png_load): Ignore png-supplied background color.
25114
251152007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25116
25117 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
25118 Use kCFAbsoluteTimeIntervalSince1970.
25119
25120 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
25121 New variable.
25122 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
25123 event loop should be quit.
25124 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
25125 Quit dialog event loop if quit_dialog_event_loop is set.
25126
25127 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
25128 (Selection): New typedef. Use instead of ScrapRef.
25129 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
25130 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
25131 (mac_clear_selection): Rename from clear_scrap.
25132 (get_flavor_type_from_symbol): New argument SEL and subsume function of
25133 scrap_has_target_type. All uses changed.
25134 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
25135 (mac_selection_has_target_p): New functions.
25136 (mac_put_selection_value): Rename from put_scrap_string.
25137 (mac_get_selection_value): Rename from get_scrap_string.
25138 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
25139 (put_scrap_private_timestamp, scrap_has_target_type)
25140 (get_scrap_private_timestamp): Remove functions.
25141 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
25142 (x_own_selection, x_get_local_selection):
25143 Use mac_valid_selection_value_p.
25144 (x_own_selection): Don't use put_scrap_private_timestamp.
25145 Record OWNERSHIP-INFO into Vselection_alist instead.
25146 (x_get_local_selection): Don't check type if request is local.
25147 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
25148 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
25149
251502007-08-04 Jan Djärv <jan.h.d@swipnet.se>
25151
25152 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
25153 add comment explaining why.
25154
251552007-08-03 Richard Stallman <rms@gnu.org>
25156
25157 * fileio.c (Fvisited_file_modtime): Use make_time.
25158
251592007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
25160
25161 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
25162 build.
25163
251642007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
25165
25166 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
25167
251682007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
25169
25170 * puresize.h (BASE_PURESIZE): Increase to 1130000.
25171
251722007-07-30 Richard Stallman <rms@gnu.org>
25173
25174 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
25175
251762007-07-29 Jan Djärv <jan.h.d@swipnet.se>
25177
25178 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
25179
251802007-07-28 Nick Roberts <nickrob@snap.net.nz>
25181
25182 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
25183 remote default-directory.
25184
25185 * buffer.c (mode-line-format): Update doc string.
25186
251872007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25188
25189 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
25190 scroll bar gap.
25191 (x_scroll_bar_create): Set bar->fringe_extended_p.
25192 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
25193 on frame edge. Check fringe background extension. Don't clear
25194 extended fringe background area.
25195
25196 * w32term.h (struct scroll_bar): New member fringe_extended_p.
25197 (w32_fill_area): Enclose multiple statements with do ... while (0).
25198
25199 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
25200 Extend fringe background to scroll bar gap.
25201 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
25202 Set bar->fringe_extended_p.
25203 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25204 Put leftmost/rightmost scroll bars on frame edge. Check fringe
25205 background extension. Don't clear extended fringe background area.
25206
25207 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25208 New member fringe_extended_p.
25209
252102007-07-25 Glenn Morris <rgm@gnu.org>
25211
25212 * Relicense all FSF files to GPLv3 or later.
25213
25214 * COPYING: Switch to GPLv3.
25215
252162007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
25217
25218 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
25219
25220 * data.c (Finteractive_form): Check for the presence of an
25221 `interactive-form' symbol property more thoroughly.
25222
25223 * data.c (Finteractive_form): Use an `interactive-form' property if
25224 present, analogous to the function-documentation property.
25225
252262007-07-24 Jason Rumney <jasonr@gnu.org>
25227
25228 * w32fns.c (x_real_positions): Get real position from OS instead of
25229 calculating it.
25230
252312007-07-23 Jason Rumney <jasonr@gnu.org>
25232
25233 * filelock.c (current_lock_owner): Allow for @ sign in username.
25234
252352007-07-22 Nick Roberts <nickrob@snap.net.nz>
25236
25237 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
25238 remote default-directory.
25239
25240 * buffer.c (mode-line-format): Describe above case in doc string.
25241
252422007-07-20 Eli Zaretskii <eliz@gnu.org>
25243
25244 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
25245 Define if not defined.
25246
252472007-07-18 Jason Rumney <jasonr@gnu.org>
25248
25249 * w32proc.c (w32_executable_type): Handle 64 bit executables.
25250
252512007-07-18 Richard Stallman <rms@gnu.org>
25252
25253 * data.c (Fsetq_default): Doc fix.
25254
25255 * eval.c (Fsetq): Doc fix.
25256
252572007-07-18 Juanma Barranquero <lekktu@gmail.com>
25258
25259 * coding.c (Ffind_operation_coding_system):
25260 * eval.c (For, Fand): Doc fixes.
25261 Reported by Johan Bockgård.
25262
252632007-07-18 Jan Djärv <jan.h.d@swipnet.se>
25264
25265 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
25266
25267 * xterm.h: Declare x_ewmh_activate_frame.
25268
25269 * xterm.c (x_ewmh_activate_frame): New function.
25270 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
25271
252722007-07-17 Martin Rudalics <rudalics@gmx.at>
25273
25274 * window.c (Fdisplay_buffer): If largest or LRU window is the
25275 only window, split it even if it is not eligible for splitting.
25276 This restores the original behavior broken by the 2007-07-15
25277 change.
25278
252792007-07-17 Glenn Morris <rgm@gnu.org>
25280
25281 * abbrev.c (abbrev_check_chars): New function.
25282 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
25283 Call abbrev_check_chars to check abbrev characters are word
25284 constituents. Doc fix.
25285
252862007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
25287
25288 * process.c (Fstart_process, Fmake_network_process)
25289 (read_process_output): Fix up last changes.
25290
252912007-07-16 Eli Zaretskii <eliz@gnu.org>
25292
25293 * makefile.w32-in (clean): Don't delete *~.
25294
252952007-07-16 Andreas Schwab <schwab@suse.de>
25296
25297 * window.c (Fdisplay_buffer): Use NILP.
25298 (Fset_window_scroll_bars): Likewise.
25299
253002007-07-15 Martin Rudalics <rudalics@gmx.at>
25301
25302 * window.c (window_min_size_2): New function.
25303 (window_min_size_1, size_window, Fdisplay_buffer)
25304 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
25305 windows without mode- or header-lines when window-min-height is
25306 too small.
25307 (size_window): Reset nodelete_p after testing it, following an
25308 earlier note by Kim F. Storm.
25309 (display_buffer): Do not set split_height_threshold to twice the
25310 value of window_min_height to avoid changing the value of a
25311 customizable variable. Rather explicitly check whether the
25312 height of the window that shall be splitted is at least as large
25313 as split_height_threshold.
25314 (Fwindow_full_width_p): New defun.
25315 (syms_of_window): Defsubr it.
25316
25317 * window.h: Add EXFUN for Fwindow_full_width_p.
25318
253192007-07-14 Jason Rumney <jasonr@gnu.org>
25320
25321 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
25322
253232007-07-14 Richard Stallman <rms@gnu.org>
25324
25325 * eval.c (maybe_call_debugger): New function.
25326 (find_handler_clause): Use maybe_call_debugger.
25327 Call it when the handler says `debug'.
25328 Eliminate DEBUGGER_VALUE_PTR.
25329 (Fsignal): Eliminate debugger_value.
25330 (Qdebug): New variable.
25331 (syms_of_eval): Initialize it.
25332
253332007-07-14 Juanma Barranquero <lekktu@gmail.com>
25334
25335 * eval.c (Fprogn):
25336 * keyboard.c (Ftrack_mouse):
25337 * print.c (Fwith_output_to_temp_buffer):
25338 * window.c (Fsave_window_excursion): Doc fix.
25339
253402007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
25341
25342 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
25343
253442007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
25345
25346 * process.h (struct Lisp_Process): Turn slots infd, outfd,
25347 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
25348 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
25349 read_output_delay, and read_output_skip from Lisp_Objects to ints.
25350 Remove unused encoding_carryover.
25351 * process.c: Adjust all functions accordingly.
25352
253532007-07-12 Richard Stallman <rms@gnu.org>
25354
25355 * term.c: Include unistd.h only if HAVE_UNISTD_H.
25356
253572007-07-11 Jason Rumney <jasonr@gnu.org>
25358
25359 * makefile.w32-in (LIBS): Include OLE32.
25360
25361 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
25362 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
25363
253642007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
25365
25366 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
25367 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
25368 from a Lisp_Object into a bare pointer.
25369 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
25370 Adjust the code correspondingly.
25371
25372 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
25373
25374 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
25375 (term_show_mouse_face): Remove unused var `j'.
25376 (handle_one_term_event): Remove unused vars `i' and `j'.
25377 Don't cast return value of ttyname since it's not necessary.
25378
253792007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
25380
25381 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
25382 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
25383
25384 * fns.c (map_char_table): Use an array of int for `indices' rather than
25385 an array of Lisp_Objects (which are only ever integers anyway).
25386 (Fmap_char_table): Update caller.
25387 * lisp.h: Update prototype.
25388 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
25389 * fontset.c (Ffontset_info):
25390 * casetab.c (set_case_table): Update callers.
25391
25392 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
25393
25394 * keymap.c (struct accessible_keymaps_data)
25395 (struct where_is_internal_data): New structures.
25396 (accessible_keymaps_1, where_is_internal_1): Use them to change
25397 interface to adhere to the one used by map_keymap.
25398 (Faccessible_keymaps, where_is_internal): Use map_keymap.
25399 (accessible_keymaps_char_table, where_is_internal_2): Remove.
25400
25401 * keymap.h (map_keymap_function_t): More informative prototype.
25402
254032007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
25404
25405 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
25406 (looking_at_1): Don't change search_regs and last_thing_searched
25407 if `inhibit-changing-match-data' is non-nil.
25408 (string_match_1, search_buffer, set_search_regs): Likewise.
25409 (syms_of_search): Add Lisp level definition for
25410 `inhibit-changing-match-data' and set it to nil.
25411 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
25412 start and end of the match, instead of using values in search_regs.
25413
254142007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
25415
25416 * minibuf.c (Fcompleting_read): New value `confirm-only'
25417 for `require-match'.
25418
254192007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
25420
25421 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
25422 part of the 2007-06-27 change to syms_of_fileio.
25423
254242007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25425
25426 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
25427 Check WINDOWP before using XWINDOW. Consolidate return statements.
25428
254292007-06-27 Richard Stallman <rms@gnu.org>
25430
25431 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
25432
254332007-06-27 Juanma Barranquero <lekktu@gmail.com>
25434
25435 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
25436
254372007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25438
25439 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
25440 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
25441 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
25442 (_free_internal, memalign): Use them.
25443 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
25444 Initialize to PTHREAD_MUTEX_INITIALIZER.
25445 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
25446 (morecore_nolock): Rename from morecore. All uses changed.
25447 Use only nolock versions of internal allocation functions.
25448 (_malloc_internal_nolock, _realloc_internal_nolock)
25449 (_free_internal_nolock): New functions created from
25450 _malloc_internal, _realloc_internal, and _free_internal.
25451 (_malloc_internal, _realloc_internal, _free_internal): Use them.
25452 Copy hook value to automatic variable before its use.
25453 (memalign): Copy hook value to automatic variable before its use.
25454
254552007-06-26 Kenichi Handa <handa@m17n.org>
25456
25457 * coding.c (Ffind_operation_coding_system): Docstring improved.
25458 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
25459
254602007-06-25 David Kastrup <dak@gnu.org>
25461
25462 * keymap.c (Fcurrent_active_maps): Add `position' argument.
25463 (Fwhere_is_internal): Adjust call to `current-active-maps' to
25464 cater for additional parameter.
25465
25466 * keymap.h: Adjust number of parameters to `current-active-maps'.
25467
25468 * doc.c (Fsubstitute_command_keys): Adjust call of
25469 `current-active-maps'.
25470
254712007-06-25 David Kastrup <dak@gnu.org>
25472
25473 * callint.c (Fcall_interactively): Make the parsing of interactive
25474 specs somewhat more readable.
25475
254762007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25477
25478 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
25479 to scroll bar gap also when bitmap fills fringe. Draw only foreground
25480 if extended background has already been filled.
25481
254822007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25483
25484 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
25485 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
25486
25487 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
25488 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
25489 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
25490 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
25491 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
25492 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
25493 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
25494 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
25495 Run timers during dialog popup.
25496 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
25497
254982007-06-21 Jason Rumney <jasonr@gnu.org>
25499
25500 * image.c (convert_mono_to_color_image): Swap fore and background.
25501
255022007-06-20 Jason Rumney <jasonr@gnu.org>
25503
25504 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
25505 (w32_free_bdf_font): Unmap memory not handle.
25506
255072007-06-20 Sam Steingold <sds@gnu.org>
25508
25509 * gmalloc.c (__morecore): Fix the declaration to comply with the
25510 definition.
25511
255122007-06-20 Juanma Barranquero <lekktu@gmail.com>
25513
25514 * w32term.c (w32_delete_display): Remove leftover declaration.
25515 (w32_define_cursor, w32_initialize): Make static.
25516
25517 * w32.c (_wsa_errlist): Fix typo in error message.
25518 (init_environment): Ignore any environment variable from the
25519 registry having a null value.
25520
255212007-06-20 Glenn Morris <rgm@gnu.org>
25522
25523 * Makefile.in (LIBGIF): Default to -lgif.
25524
255252007-06-17 Jason Rumney <jasonr@gnu.org>
25526
25527 * w32menu.c (add_menu_item): Don't use multibyte string functions on
25528 unicode strings.
25529
255302007-06-16 Juanma Barranquero <lekktu@gmail.com>
25531
25532 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
25533 Fix typo in docstring.
25534
255352007-06-16 Eli Zaretskii <eliz@gnu.org>
25536
25537 * w32menu.c (add_menu_item): Escape `&' characters in menu items
25538 and their keybindings.
25539
255402007-06-15 Chong Yidong <cyd@stupidchicken.com>
25541
25542 * composite.c (update_compositions): Fix last fix.
25543
255442007-06-14 Jason Rumney <jasonr@gnu.org>
25545
25546 * w32.c (get_process_times_fn): New function pointer.
25547 (globals_of_w32): Intialize it if present in kernel32.dll.
25548 (w32_get_internal_run_time): New function.
25549
25550 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
25551
255522007-06-14 Kenichi Handa <handa@etlken.m17n.org>
25553
25554 * composite.c (update_compositions): Check the validness of
25555 compositions.
25556
255572007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25558
25559 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
25560 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
25561
25562 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
25563 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
25564
25565 * macgui.h (USE_MAC_TOOLBAR): New define.
25566
25567 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25568 Return immediately unless popup is activated.
25569
25570 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
25571 background to scroll bar gap.
25572 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
25573 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
25574 scroll bars on frame edge. Check fringe background extension.
25575 Don't clear extended fringe background area.
25576 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
25577 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
25578 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
25579 [USE_MAC_TOOLBAR]: New macros.
25580 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
25581 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
25582 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
25583 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
25584 [USE_MAC_TOOLBAR]: New functions.
25585 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
25586 manually if previous repositioning has failed.
25587 (mac_handle_keyboard_event): Use precomputed event kind.
25588 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
25589 as tool bar item click. Handle mouse movement over tool bar items.
25590
25591 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
25592 toolbar_win_gravity.
25593 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
25594 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
25595 Add externs.
25596
25597 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
25598 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
25599
256002007-06-14 Chong Yidong <cyd@stupidchicken.com>
25601
25602 * image.c (search_image_cache): Remove unused variable.
25603
256042007-06-13 Chong Yidong <cyd@stupidchicken.com>
25605
25606 * xfns.c, xmenu.c: Link to xaw3d if available.
25607
256082007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25609
25610 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
25611 frame_foreground and frame_background.
25612
25613 * image.c (lookup_image): Save frame foreground and background colors.
25614 (search_image_cache): Check if saved and current frame colors match.
25615
256162007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
25617
25618 * regex.c (regex_compile): Remove the `regnum' counter.
25619 Use bufp->re_nsub instead. Add support for \(?N:RE\).
25620
256212007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
25622
25623 * term.c: Include intervals.h to declare Fget_text_property.
25624
256252007-06-10 Jason Rumney <jasonr@gnu.org>
25626
25627 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
25628
256292007-06-08 Juanma Barranquero <lekktu@gmail.com>
25630
25631 * callint.c (Fcall_interactively):
25632 * editfns.c (Fdelete_and_extract_region):
25633 * fileio.c (Fread_file_name):
25634 * fns.c (Fmapconcat):
25635 * keyboard.c (cmd_error_internal):
25636 * keymap.c (Fkey_description):
25637 * lread.c (openp):
25638 * minibuf.c (read_minibuf):
25639 * search.c (wordify):
25640 * sunfns.c (sel_read):
25641 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
25642 * xfns.c (x_default_scroll_bar_color_parameter):
25643 * xmenu.c (menu_help_callback):
25644 * xselect.c (Fx_get_atom_name):
25645 * xterm.c (x_term_init): Use empty_unibyte_string.
25646
256472007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
25648
25649 * alloc.c (init_strings): Initialize canonical empty strings.
25650 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
25651 canonical empty string when the requested size is 0.
25652
25653 * emacs.c (empty_unibyte_string): Rename from empty_string.
25654 (empty_multibyte_string): New canonical empty string.
25655 (syms_of_emacs): Don't initialize empty_string.
25656
25657 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
25658 string, if appropriate.
25659 (empty_unibyte_string, empty_multibyte_string): New externs.
25660 (empty_string): Remove extern.
25661
25662 * lread.c (syms_of_lread): Use empty_unibyte_string.
25663
256642007-06-07 Jason Rumney <jasonr@gnu.org>
25665
25666 * s/ms-w32.h: Don't define HAVE_TZNAME.
25667
25668 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
25669
256702007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25671
25672 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
25673
25674 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
25675 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
25676
25677 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25678 Don't call next handler.
25679 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
25680 Remove argument. Install handler to application.
25681 (set_frame_menubar): Don't change deep_p.
25682 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
25683 FRAME_OUTER_TO_INNER_DIFF_Y.
25684 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
25685 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
25686 [HAVE_DIALOGS]: New macros.
25687 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
25688 Use them.
25689 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
25690
25691 * macselect.c [MAC_OSX] (install_service_handler): Rename from
25692 init_service_handler. All callers changed. Return OSStatus value.
25693
25694 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
25695 All callers changed so as not to call SetPortWindowPort.
25696 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
25697 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
25698 mac_draw_string_common.
25699 (mac_draw_image_string_qd): Likewise.
25700 (mac_draw_string_common): Use them. Add INLINE.
25701 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
25702 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
25703 GetGlobalMouse.
25704 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
25705 and FRAME_OUTER_TO_INNER_DIFF_Y.
25706 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
25707 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
25708 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
25709 repositioning window to mac_handle_window_event.
25710 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
25711 saving window location to mac_handle_window_event
25712 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
25713 (install_menu_target_item_handler): Remove argument in extern.
25714 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
25715 Also accept command events.
25716 (do_keystroke): New function created from XTread_socket.
25717 (init_command_handler): Remove functions.
25718 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
25719 and save window location by kEventWindowShowing and kEventWindowHiding
25720 handlers here. Don't call next handler for window state change and
25721 focus events.
25722 (mac_handle_application_event, mac_handle_keyboard_event)
25723 [TARGET_API_MAC_CARBON]: New functions.
25724 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
25725 kEventWindowShowing and kEventWindowHiding events. Move installation
25726 of mouse, font, text input and menu target item handlers to
25727 install_application_handler.
25728 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
25729 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25730 New function.
25731 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25732 Register it.
25733 (XTread_socket) [TARGET_API_MAC_CARBON]:
25734 Consolidate SendEventToEventTarget calls.
25735 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
25736 Move application activation handler to mac_handle_application_event.
25737 Move keyboard handler to mac_handle_keyboard_event.
25738 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
25739 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
25740 init_command_handler. Call install_application_handler.
25741
25742 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
25743 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
25744
257452007-06-07 Glenn Morris <rgm@gnu.org>
25746
25747 * emacs.c (main): Use `emacs-copyright' in --version output.
25748
257492007-06-06 Chong Yidong <cyd@stupidchicken.com>
25750
25751 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
25752
257532007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25754
25755 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
25756
25757 * macgui.h: Replace WindowPtr with WindowRef.
25758
25759 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25760 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25761 Replace ControlHandle with ControlRef.
25762 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
25763
25764 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25765 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25766 Replace ControlHandle with ControlRef.
25767 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
25768 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
25769
25770 * macterm.h (struct scroll_bar): Rename member control_handle_low
25771 and control_handle_high to control_ref_low and control_ref_high.
25772 All uses changed.
25773 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
25774 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
25775 respectively. All uses changed.
25776 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
25777 (install_window_handler, remove_window_handler): Replace WindowPtr
25778 with WindowRef in externs.
25779
257802007-06-05 Juanma Barranquero <lekktu@gmail.com>
25781
25782 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
25783
257842007-06-03 Nick Roberts <nickrob@snap.net.nz>
25785
25786 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
25787
25788 * frame.c (Fmouse_position, Fmouse_pixel_position):
25789 Condition on HAVE_GPM too.
25790
25791 * term.c (term_mouse_highlight): Remove unused variables.
25792 (Fterm_open_connection): Set gpm_zerobased to 1.
25793 (term_mouse_movement, term_mouse_click, handle_one_term_event):
25794 Use zero based co-ordinates.
25795 (handle_one_term_event): Report a drag as mouse movement too.
25796
25797 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
25798
257992007-06-03 Chong Yidong <cyd@stupidchicken.com>
25800
25801 * image.c (search_image_cache): New function. Require background
25802 color match if background color is unspecified in the image spec.
25803 (uncache_image, lookup_image): Use it.
25804
258052007-06-01 Juanma Barranquero <lekktu@gmail.com>
25806
25807 * window.c (Fshrink_window): Reflow docstring.
25808
258092007-06-02 Chong Yidong <cyd@stupidchicken.com>
25810
25811 * Version 22.1 released.
25812
258132007-06-01 Richard Stallman <rms@gnu.org>
25814
25815 * xfns.c (x_encode_text): Add GCPRO.
25816
258172007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25818
25819 * xfns.c (x_set_name_internal): Save encoded name before
25820 x_encode_text in case string data is relocated.
25821
258222007-05-31 Richard Stallman <rms@gnu.org>
25823
25824 * buffer.c (syms_of_buffer): Doc fix.
25825
258262007-05-30 Nick Roberts <nickrob@snap.net.nz>
25827
25828 * sysdep.c (init_sys_modes): Add rather than replace with
25829 O_NONBLOCK.
25830
25831 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
25832 term_mouse_moveto.
25833
25834 * termhooks.h (term_mouse_moveto): New extern.
25835
25836 * term.c (mouse_face_window): Rename...
25837 (Qmouse_face_window): ...to this.
25838 (term_show_mouse_face, term_clear_mouse_face)
25839 (term_mouse_highlight): Use Qmouse_face_window.
25840 (term_mouse_moveto): New function.
25841 (term_mouse_position): Make it work.
25842 (syms_of_term): Uncomment assignment to mouse_position_hook.
25843 Staticpro Qmouse_face_window.
25844
258452007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25846
25847 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
25848 around current_column call.
25849
258502007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
25851
25852 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
25853 * xdisp.c (next_element_from_buffer):
25854 * window.c (delete_window):
25855 * term.c (term_mouse_highlight):
25856 * msdos.c (getdefdir):
25857 * macterm.c (mac_create_bitmap_from_bitmap_data)
25858 (init_font_name_table):
25859 * fns.c (Fsxhash):
25860 * data.c (Fmake_local_variable):
25861 * ccl.c (ccl_driver): Likewise.
25862
258632007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25864
25865 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
25866 Call mac_wakeup_from_rne on window size change.
25867
258682007-05-25 Chong Yidong <cyd@stupidchicken.com>
25869
25870 * image.c (uncache_image): Fix typo.
25871
258722007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
25873
25874 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
25875
258762007-05-22 Richard Stallman <rms@gnu.org>
25877
25878 * xterm.c (x_connection_closed): Remove NO_RETURN.
25879
258802007-05-22 Martin Rudalics <rudalics@gmx.at>
25881
25882 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
25883
258842007-05-21 Chong Yidong <cyd@stupidchicken.com>
25885
25886 * image.c (uncache_image): New function.
25887 (Fimage_refresh): New function.
25888
258892007-05-20 Jan Djärv <jan.h.d@swipnet.se>
25890
25891 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
25892
258932007-05-20 Nick Roberts <nickrob@snap.net.nz>
25894
25895 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
25896 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
25897
258982007-05-20 Nick Roberts <nickrob@snap.net.nz>
25899
25900 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
25901 conditional on [HAVE_GPM_H].
25902
259032007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
25904
25905 * syntax.c (skip_chars): Update syntax-table only after we checked that
25906 the new location is valid.
25907
259082007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25909
25910 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
25911 mac_get_window_bounds.
25912
259132007-05-20 Nick Roberts <nickrob@snap.net.nz>
25914
25915 * Makefile.in (LIBGPM): Allow it to be set from configure.
25916 If set then link Emacs with it.
25917
25918 * config.in: Regenerate.
25919
25920 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
25921 New externs.
25922
25923 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
25924 Include gpm.h.
25925 (handle_one_term_event, term_gpm): New externs.
25926
25927 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
25928 and allow it to be interrupted by SIGIO.
25929
25930 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
25931 (wait_reading_process_output): Wait on gpm_fd too.
25932 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
25933 (add_gpm_wait_descriptor_called_flag): New variable.
25934 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
25935
25936 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
25937 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
25938 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
25939 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
25940 (make_lispy_event): Add case GPM_CLICK_EVENT.
25941 (read_avail_input): Handle mouse input.
25942
25943 * term.c (write_glyphs_with_face): New function.
25944 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
25945 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
25946 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
25947 (mouse_face_face_id, term_gpm, pos_x, pos_y)
25948 (last_mouse_x, last_mouse_y): New variables.
25949 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
25950 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
25951 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
25952 (Fterm_close_connection): New functions.
25953 (term_init): Initialise mouse_face_window.
25954
259552007-05-19 Chong Yidong <cyd@stupidchicken.com>
25956
25957 * xdisp.c (redisplay_window): If first window line is a
25958 continuation line, recompute the new window start instead of
25959 recentering.
25960
259612007-05-18 Glenn Morris <rgm@gnu.org>
25962
25963 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
25964 Suggested by Alfred M. Szmidt <ams@gnu.org>.
25965
259662007-05-17 Glenn Morris <rgm@gnu.org>
25967
25968 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
25969
259702007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25971
25972 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
25973 dead key repeat and up events.
25974
259752007-05-14 Chong Yidong <cyd@stupidchicken.com>
25976
25977 * image.c (pbm_load): Check image size for monochrome pbm.
25978
259792007-05-13 Chong Yidong <cyd@stupidchicken.com>
25980
25981 * xterm.c (XTread_socket): Revert last change.
25982
259832007-05-12 Chong Yidong <cyd@stupidchicken.com>
25984
25985 * image.c (pbm_load): Correctly check image size for greyscale pbm.
25986
25987 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
25988
259892007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25990
25991 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
25992 mixup (YAILOM).
25993
259942007-05-07 Andreas Schwab <schwab@suse.de>
25995
25996 * keymap.c (Flookup_key): Fix typo in last change.
25997
259982007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25999
26000 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
26001 mapping for unibyte strings.
26002
260032007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26004
26005 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
26006 (Fx_popup_dialog) [MAC_OSX]: Likewise.
26007
260082007-04-29 Richard Stallman <rms@gnu.org>
26009
26010 * insdel.c (replace_range): For undo, record insertion first.
26011
260122007-04-29 Andreas Schwab <schwab@suse.de>
26013
26014 * lisp.h (VECSIZE): Use OFFSETOF.
26015
260162007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26017
26018 * xdisp.c (try_window_reusing_current_matrix): Fix number of
26019 disabled lines.
26020
260212007-04-28 Richard Stallman <rms@gnu.org>
26022
26023 * lread.c (read_escape): In a string, \s is always space.
26024
260252007-04-27 Jan Djärv <jan.h.d@swipnet.se>
26026
26027 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
26028
26029 * gtkutil.c (xg_update_menubar, create_menus): Create empty
26030 submenu for menu bar items.
26031
26032See ChangeLog.10 for earlier changes.
26033
26034;; Local Variables:
26035;; coding: utf-8
26036;; add-log-time-zone-rule: t
aac0c6e3
MR
26037;; End:
26038
e3eb1dae 26039 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
26040
26041 This file is part of GNU Emacs.
26042
26043 GNU Emacs is free software: you can redistribute it and/or modify
26044 it under the terms of the GNU General Public License as published by
26045 the Free Software Foundation, either version 3 of the License, or
26046 (at your option) any later version.
26047
26048 GNU Emacs is distributed in the hope that it will be useful,
26049 but WITHOUT ANY WARRANTY; without even the implied warranty of
26050 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26051 GNU General Public License for more details.
26052
26053 You should have received a copy of the GNU General Public License
26054 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
26055
26056;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40