* dbusbind.c (xd_initialize): Don't compare boolean with a constant.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
de06a2dd
AS
12010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2
3 * dbusbind.c (xd_initialize): Don't compare boolean with a
4 constant.
5
fc549af9
EZ
62010-07-12 Eli Zaretskii <eliz@gnu.org>
7
8 * process.c (setup_process_coding_systems): Move to the part
9 shared by non-subprocesses systems, and make its body empty when
10 subprocesses is not defined.
11 (close_process_descs): Move to the part shared by non-subprocesses
12 systems.
1408902e
EZ
13 (wait_reading_process_output) [!subprocesses]: Convert arg list to
14 ANSI C.
fc549af9 15
d5a3eaaf
AS
162010-07-12 Andreas Schwab <schwab@linux-m68k.org>
17
18 * editfns.c (transpose_markers): Convert old-style definition.
19 * emacs.c (abort, shut_down_emacs, fixup_locale)
20 (synchronize_system_time_locale)
21 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
22 * floatfns.c (extract_float, matherr, init_floatfns)
23 (syms_of_floatfns): Likewise.
24 * fns.c (make_hash_table): Likewise.
25 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
26 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
27 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
28 (ftfont_variation_glyphs): Likewise.
29 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
30 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
31 * lread.c (read_filtered_event): Likewise.
32 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
33 * process.c (wait_reading_process_output): Likewise.
34 * scroll.c (do_line_insertion_deletion_costs): Likewise.
35 * search.c (search_buffer, boyer_moore): Likewise.
36 * syntax.c (scan_sexps_forward): Likewise.
37 * xdisp.c (try_scrolling): Likewise.
38 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
39 (face_at_string_position): Likewise.
40 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
41 * xselect.c (x_get_window_property, receive_incremental_selection)
42 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
43 Likewise.
44 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
45
6f704c76
DN
462010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
47
ded80a25
DN
48 * callproc.c (child_setup): Remove subprocesses conditional.
49 Remove code dealing with SET_EMACS_PRIORITY, unused.
50
49d937f4 51 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
52 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
53
54 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
55 (__do_global_dtors, __main): Use void in definition.
56 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
57 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
58 the only users from ...
59 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
60 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
61 (HAVE_VOLATILE): Remove, unused.
62
6f704c76
DN
63 Convert more function definitions to standard C.
64 * xdisp.c (window_box_edges, handle_single_display_spec)
65 (display_string): Convert definition to standard C.
66 * scroll.c (do_direct_scrolling, scrolling_1):
67 * dispnew.c (allocate_matrices_for_frame_redisplay)
68 (mirrored_line_dance):
69 * coding.c (code_convert_string):
70 * charset.c (map_charset_chars):
71 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
72 (Fregister_ccl_program, Fregister_code_conversion_map):
73 * keyboard.c (kbd_buffer_nr_stored): Likewise.
74 (head_table): Make static and const.
75
e6cfa7c3
AS
762010-07-12 Andreas Schwab <schwab@linux-m68k.org>
77
78 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
79 (PROFILING_LDFLAGS): Set from substitution.
80 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
81 CFLAGS last.
82
892dd565
KH
832010-07-12 Kenichi Handa <handa@m17n.org>
84
6f2cdcd1
KH
85 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
86 (shortlisp): Likewise.
87
892dd565
KH
88 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
89
90 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
91 of FONT_ENTITY_INDEX.
92 (Ffont_get): If KEY is :otf and the font-object doesn't have the
93 property, get the property value dynamically.
94 (Ffont_put): Accept font-entity and font-object too.
95 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
96 return value changed.
97 (syms_of_font): Adjusted for the above change.
98
ae96d47a
AS
992010-07-11 Andreas Schwab <schwab@linux-m68k.org>
100
c8fc18ee
AS
101 * blockinput.h: Remove obsolete comment.
102
89887d67
AS
103 * lisp.h: Include <stddef.h>.
104 (OFFSETOF): Don't define.
105 (VECSIZE): Use offsetof instead of OFFSETOF.
106 (PSEUDOVECSIZE): Likewise.
107 * process.c (conv_sockaddr_to_lisp): Likewise.
108 * alloc.c: Don't include <stddef.h>.
109 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
110
ae96d47a
AS
111 * process.c: Remove obsolete comment.
112
635c0aa1
CY
1132010-07-11 Chong Yidong <cyd@stupidchicken.com>
114
115 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
116
a64df650
AS
1172010-07-11 Andreas Schwab <schwab@linux-m68k.org>
118
8966b757
AS
119 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
120 index, rindex.
121 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
122 * editfns.c (Fuser_full_name, Fformat): Likewise.
123 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
124 * fileio.c (Ffile_symlink_p): Likewise.
125 * filelock.c (current_lock_owner): Likewise.
126 * font.c (font_parse_name, font_parse_family_registry): Likewise.
127 * fontset.c (fontset_pattern_regexp): Likewise.
128 * lread.c (read1): Likewise.
129 * sysdep.c (init_system_name): Likewise.
130 * xfns.c (select_visual): Likewise.
131 * s/hpux10-20.h (index, rindex): Don't define.
132 * s/ms-w32.h (index): Likewise.
133 * s/usg5-4.h: Likewise.
134
cf237e27
AS
135 * callproc.c (relocate_fd): Use F_DUPFD if defined.
136
a8fe7202
AS
137 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
138 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
139 (egetenv): Likewise.
140 * doprnt.c (doprnt): Likewise.
141 * editfns.c (set_time_zone_rule, format2): Likewise.
142 * emacs.c (decode_env_path): Likewise.
143 * eval.c (signal_error, error): Likewise.
144 * insdel.c (replace_range_2): Likewise.
145 * keyboard.c (cmd_error_internal): Likewise.
146 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
147 * print.c (write_string, write_string_1, print_error_message):
148 Likewise.
149 * vm-limit.c (warn_function, memory_warnings): Likewise.
150 * xdisp.c (message1, message1_nolog, message_with_string)
151 (vmessage, message, message_nolog): Likewise.
152 * emacs.c: Remove duplicate declaration.
153 * keyboard.h: Likewise.
154 * lisp.h: Update prototypes.
155
bb8e180f
AS
156 * eval.c: Fix indentation problem.
157
83380e65
AS
158 * keyboard.c: Include "process.h"
159
a64df650
AS
160 * eval.c: Remove obsolete noinline declaration.
161 * fns.c: Likewise.
162
6a8033e1
KR
1632010-07-11 Ken Raeburn <raeburn@raeburn.org>
164
165 * doprnt.c (doprnt): Take a va_list argument instead of count and
166 pointer.
167 * eval.c (error): Change to a standard-C variadic function.
168 * xdisp.c (vmessage): Renamed from message, made static, and
169 changed to take a va_list argument.
170 (message): New variadic wrapper.
171 (message_nolog): Now a variadic function, calling vmessage.
172 * lisp.h: Include stdarg.h for va_list.
173 (doprnt, error, message, message_nolog): Decls updated.
174
462aa963
EZ
1752010-07-11 Eli Zaretskii <eliz@gnu.org>
176
177 * process.c (syms_of_process) <delete-exited-processes>: Define
178 even if !subprocesses.
179 (delete_exited_processes): Ditto.
180
181 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
182 (delete_exited_processes): Don't define.
183
48104462
CY
1842010-07-10 Chong Yidong <cyd@stupidchicken.com>
185
186 * frame.c (make_frame): Initialize menu_bar_lines and
187 tool_bar_lines members.
188 (make_initial_frame, make_terminal_frame): Initialize
189 menu_bar_lines using value of menu-bar-mode.
190
191 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
192
f388c88a
EZ
1932010-07-10 Eli Zaretskii <eliz@gnu.org>
194
195 * process.c: Reshuffle #include's. Condition some of the global
196 and static variables on `subprocesses'.
197 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
198 Leave only one implementation.
199 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
200 (kill_buffer_processes, Flist_system_processes)
201 (Fprocess_attributes, init_process, syms_of_process): Unify the
202 implementations for with subprocesses and without them.
203
723f5a07
J
2042010-07-09 Jan Djärv <jan.h.d@swipnet.se>
205
206 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
207 correct size for Motif.
208 (free_frame_menubar): Call x_set_window_size to update frame size.
209
210 * xfns.c (x_window): Set borderWidth to 0 for pane and
211 EmacsFrame. Frame size calculation is wrong otherwise.
212
2536a4b7
MA
2132010-07-09 Michael Albinus <michael.albinus@gmx.de>
214
215 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
216 allows to suppress errors when polling in Emacs' main loop.
217 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
218 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
219 (Fdbus_method_error_internal, Fdbus_send_signal)
220 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
221 (Fdbus_register_method): Use it. (Bug#6579)
222
5842a27b
DN
2232010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
224
225 * alloc.c: Convert DEFUNs to standard C.
226 * buffer.c:
227 * bytecode.c:
228 * callint.c:
229 * callproc.c:
230 * casefiddle.c:
231 * casetab.c:
232 * category.c:
233 * character.c:
234 * charset.c:
235 * chartab.c:
236 * cmds.c:
237 * coding.c:
238 * composite.c:
239 * data.c:
240 * dbusbind.c:
241 * dired.c:
242 * dispnew.c:
243 * doc.c:
244 * dosfns.c:
245 * editfns.c:
246 * emacs.c:
247 * eval.c:
248 * fileio.c:
249 * filelock.c:
250 * floatfns.c:
251 * fns.c:
252 * font.c:
253 * fontset.c:
254 * frame.c:
255 * fringe.c:
256 * image.c:
257 * indent.c:
258 * insdel.c:
259 * keyboard.c:
260 * keymap.c:
261 * lread.c:
262 * macros.c:
263 * marker.c:
264 * menu.c:
265 * minibuf.c:
266 * msdos.c:
267 * nsfns.m:
268 * nsmenu.m:
269 * nsselect.m:
270 * print.c:
271 * process.c:
272 * search.c:
273 * sound.c:
274 * syntax.c:
275 * term.c:
276 * terminal.c:
277 * textprop.c:
278 * undo.c:
279 * w16select.c:
280 * w32console.c:
281 * w32fns.c:
282 * w32font.c:
283 * w32menu.c:
284 * w32proc.c:
285 * w32select.c:
286 * window.c:
287 * xdisp.c:
288 * xfaces.c:
289 * xfns.c:
290 * xmenu.c:
291 * xselect.c:
292 * xsettings.c:
293 * xsmfns.c: Likewise.
294
295
d568829b
EZ
2962010-07-08 Eli Zaretskii <eliz@gnu.org>
297
298 * process.c (kbd_is_on_hold, hold_keyboard_input)
299 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
300
52214050
J
3012010-07-08 Jan Djärv <jan.h.d@swipnet.se>
302
303 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
304 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
305 unless USE_LUCID.
306
313d9eb2
DN
3072010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
308
d8825aa3
DN
309 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative declaration.
310
295d0d8f
DN
311 Clean up include guards.
312 * tparam.c: Remove include guards for config.h, string.h and code
313 that assumes #ifndef emacs.
314 * termcap.c:
315 * unexalpha.c:
316 * sysdep.c:
317 * filemode.c:
318 * filelock.c:
319 * bidi.c: Likewise.
320
49d9e6b0
DN
321 Remove prefix-args.c
322 * prefix-args.c: Remove file.
323 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
324 * Makefile.in (temacs${EXEEXT}): Remove references to
325 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
326 (mostlyclean): Remove reference to prefix-args.
327 (prefix-args): Remove.
328
313d9eb2
DN
329 Simplify cstart_of_data, start_of_code and related code.
330 * mem-limits.h: Remove !emacs and _LIBC conditional code.
331 (start_of_data): Merge into start_of_data function.
332 * sysdep.c (start_of_text): Remove. Move simplified versions of
333 it in the only users: unexaix.c and unexec.c.
334 (read_input_waiting): Remove local declaration of quit_char.
335 (start, etext): Remove declarations.
336 (start_of_data): Merge with the version in mem-limits.h and move
337 to vm-limits.c.
338 * vm-limit.c (start_of_data): Merged and simplified version of the
339 code formerly in mem-limits.h and sysdep.c.
340 * unexec.c (start): New declaration, moved from sysdep.c.
341 (start_of_text): Simplified version of the code formerly in sysdep.c.
342 * unexaix.c (start_of_text): Simplified version of the code
343 formerly in sysdep.c.
344 * m/alpha.h (HAVE_TEXT_START): Remove.
345 (TEXT_START): Move ...
346 * unexalpha.c (TEXT_START): ... here.
347 * s/hpux10-20.h (TEXT_START): Remove.
348 * s/darwin.h (TEXT_START):
349 * m/mips.h (TEXT_START):
350 * m/macppc.h (HAVE_TEXT_START):
351 * m/m68k.h (TEXT_START):
352 * m/iris4d.h (TEXT_START):
353 * m/intel386.h (TEXT_START):
354 * m/ibmrs6000.h (TEXT_START):
355 * m/ia64.h (HAVE_TEXT_START):
356 * s/msdos.h (TEXT_START): Likewise.
357
72af86bd
AS
3582010-07-07 Andreas Schwab <schwab@linux-m68k.org>
359
360 * alloc.c (overrun_check_malloc, overrun_check_realloc)
361 (overrun_check_free, xstrdup, allocate_string)
362 (allocate_string_data, compact_small_strings, Fmake_string)
363 (make_unibyte_string, make_multibyte_string)
364 (make_string_from_bytes, make_specified_string, make_float)
365 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
366 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
367 memcpy, memmove, memset, memcmp.
368 * atimer.c (start_atimer, set_alarm): Likewise.
369 * buffer.c (clone_per_buffer_values, report_overlay_modification)
370 (mmap_realloc, init_buffer_once): Likewise.
371 * callint.c (Fcall_interactively): Likewise.
372 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
373 (getenv_internal_1): Likewise.
374 * casefiddle.c (casify_object): Likewise.
375 * ccl.c (ccl_driver): Likewise.
376 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
377 * charset.c (load_charset_map_from_file)
378 (load_charset_map_from_file, load_charset_map_from_vector)
379 (Fdefine_charset_internal): Likewise.
380 * cm.c (Wcm_clear): Likewise.
381 * coding.c (decode_eol, decode_coding_object)
382 (Fset_coding_system_priority, make_subsidiaries): Likewise.
383 * data.c (Faset): Likewise.
384 * dired.c (directory_files_internal, file_name_completion_stat):
385 Likewise.
386 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
387 (clear_glyph_row, copy_row_except_pointers)
388 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
389 (save_current_matrix, restore_current_matrix)
390 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
391 (mirror_line_dance, scrolling_window): Likewise.
392 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
393 Likewise.
394 * doprnt.c (doprnt): Likewise.
395 * editfns.c (Fuser_full_name, make_buffer_string_both)
396 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
397 * emacs.c (sort_args): Likewise.
398 * eval.c (Fapply, Ffuncall): Likewise.
399 * fileio.c (Ffile_name_directory, make_temp_name)
400 (Fexpand_file_name, search_embedded_absfilename)
401 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
402 (auto_save_error): Likewise.
403 * fns.c (Fstring_equal, Fcopy_sequence, concat)
404 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
405 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
406 (Fmake_hash_table): Likewise.
407 * fringe.c (Fdefine_fringe_bitmap): Likewise.
408 * ftfont.c (ftfont_text_extents): Likewise.
409 * getloadavg.c (getloadavg): Likewise.
410 * image.c (define_image_type, make_image, make_image_cache)
411 (x_create_x_image_and_pixmap, xbm_image_p)
412 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
413 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
414 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
415 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
416 (tiff_image_p, tiff_read_from_memory, gif_image_p)
417 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
418 Likewise.
419 * indent.c (scan_for_column, compute_motion): Likewise.
420 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
421 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
422 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
423 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
424 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
425 (store_user_signal_events, menu_bar_items, tool_bar_items)
426 (process_tool_bar_item, append_tool_bar_item)
427 (read_char_minibuf_menu_prompt, read_key_sequence)
428 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
429 Likewise.
430 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
431 Likewise.
432 * lisp.h (STRING_COPYIN): Likewise.
433 * lread.c (Fload, read1, oblookup): Likewise.
434 * msdos.c (Frecent_doskeys): Likewise.
435 * nsfns.m (Fx_create_frame): Likewise.
436 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
437 Likewise.
438 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
439 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
440 Likewise.
441 * nsmenu.m (ns_update_menubar): Likewise.
442 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
443 * print.c (print_unwind, printchar, strout, print_string)
444 (print_error_message): Likewise.
445 * process.c (conv_lisp_to_sockaddr, set_socket_option)
446 (Fmake_network_process, Fnetwork_interface_list)
447 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
448 (init_process): Likewise.
449 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
450 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
451 Likewise.
452 * scroll.c (do_scrolling, do_direct_scrolling)
453 (scrolling_max_lines_saved): Likewise.
454 * search.c (search_buffer, wordify, Freplace_match): Likewise.
455 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
456 * syntax.c (skip_chars, skip_syntaxes): Likewise.
457 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
458 (emacs_set_tty): Likewise.
459 * term.c (encode_terminal_code, calculate_costs)
460 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
461 Likewise.
462 * termcap.c (tgetst1, gobble_line): Likewise.
463 * termhooks.h (EVENT_INIT): Likewise.
464 * tparam.c (tparam1): Likewise.
465 * unexalpha.c (unexec): Likewise.
466 * unexec.c (write_segment): Likewise.
467 * unexmacosx.c (unexec_write_zero): Likewise.
468 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
469 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
470 * w32font.c (w32font_list_family, w32font_text_extents)
471 (w32font_list_internal, w32font_match_internal)
472 (w32font_open_internal, compute_metrics, Fx_select_font):
473 Likewise.
474 * w32menu.c (set_frame_menubar, add_menu_item)
475 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
476 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
477 * w32uniscribe.c (uniscribe_list_family): Likewise.
478 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
479 * window.c (make_window, replace_window, set_window_buffer)
480 (Fsplit_window): Likewise.
481 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
482 (add_to_log, message3, x_consider_frame_title)
483 (append_space_for_newline, extend_face_to_end_of_line)
484 (decode_mode_spec_coding, init_glyph_string): Likewise.
485 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
486 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
487 (face_attr_equal_p, make_realized_face, make_face_cache)
488 (free_realized_faces, lookup_named_face, smaller_face)
489 (face_with_height, lookup_derived_face)
490 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
491 (Finternal_set_font_selection_order, realize_default_face)
492 (compute_char_face, face_at_buffer_position)
493 (face_for_overlay_string, face_at_string_position, merge_faces):
494 Likewise.
495 * xfns.c (xic_create_fontsetname, Fx_create_frame)
496 (Fx_window_property, x_create_tip_frame)
497 (Fx_backspace_delete_keys_p): Likewise.
498 * xfont.c (xfont_list, xfont_match, xfont_list_family)
499 (xfont_text_extents): Likewise.
500 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
501 * xrdb.c (magic_file_p, x_get_resource): Likewise.
502 * xselect.c (x_queue_event, x_get_window_property)
503 (receive_incremental_selection): Likewise.
504 * xsmfns.c (x_session_check_input): Likewise.
505 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
506 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
507 Likewise.
508 * character.h (BCOPY_SHORT): Removed.
509 * config.in: Regenerate.
510 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
511 * emacs.c (main) [PROFILING]: Don't declare
512 dump_opcode_frequencies.
513 * lisp.h (safe_bcopy): Remove declaration.
514 (memset) [!HAVE_MEMSET]: Declare.
515 (memcpy) [!HAVE_MEMCPY]: Likewise.
516 (memmove) [!HAVE_MEMMOVE]: Likewise.
517 (memcmp) [!HAVE_MEMCMP]: Likewise.
518 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
519 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
520 Don't define.
521 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
522 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
523 (BCOPY_DOWNWARD_SAFE): Don't define.
524 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
525 (memcpy) [!HAVE_MEMCPY]: Define.
526 (memmove) [!HAVE_MEMMOVE]: Define.
527 (memcmp) [!HAVE_MEMCMP]: Define.
528
cb768704
J
5292010-07-07 Jan Djärv <jan.h.d@swipnet.se>
530
531 * process.c (kbd_is_on_hold): New variable.
532 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p): New
533 functions.
534 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
535 select on empty input mask.
536 (init_process): Initialize kbd_is_on_hold to 0.
537
538 * process.h (hold_keyboard_input, unhold_keyboard_input)
539 (kbd_on_hold_p): Declare.
540
541 * keyboard.c (input_available_signal): Declare.
542 (kbd_buffer_nr_stored): New function.
543 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
544 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
545 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
546 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
547 (tty_read_avail_input): If input is on hold, return.
548 Don't read more that free slots in kbd_buffer (Bug#6571).
549
3a8ce822
EZ
5502010-07-07 Eli Zaretskii <eliz@gnu.org>
551
552 * msdos.h:
553 * msdos.c:
554 * dosfns.c:
555 * w16select.c: Convert function definitions to ANSI C.
556
557 * msdos.h (ctrl_break_func, install_ctrl_break_check): Remove
558 unused prototypes.
559
cf84bb53
JB
5602010-07-07 Juanma Barranquero <lekktu@gmail.com>
561
562 * coding.c, sysdep.c: Convert some more functions to standard C.
563
1a4990fb
JB
5642010-07-07 Juanma Barranquero <lekktu@gmail.com>
565
566 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
567 (encode_coding_object): Use SPECPDL_INDEX.
568 (syms_of_coding): Use DOS_NT.
569
c0f2f16b
DN
5702010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
571
48fb6855
DN
572 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
573
c0f2f16b
DN
574 Make the function member of Lisp_Subr use standard C prototypes.
575 * lisp.h (struct Lisp_Subr): Use a union for the function member.
576 (DECL_ALIGN): Add a cast for the function.
577 * eval.c (Feval, Ffuncall): Use the proper type for each type
578 function call.
579
67aecef9
CY
5802010-07-06 Chong Yidong <cyd@stupidchicken.com>
581
582 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
583 fringe face id, so face-remapping-alist works (Bug#6091).
584
b56ceb92
JB
5852010-07-06 Juanma Barranquero <lekktu@gmail.com>
586
587 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
588 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
589 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
590
7af07b96
AS
5912010-07-06 Andreas Schwab <schwab@linux-m68k.org>
592
593 * xterm.c (x_get_keysym_name): Change type of parameter to int.
594 * lisp.h: Declare x_get_keysym_name.
595 * keyboard.c (modify_event_symbol): Don't declare
596 x_get_keysym_name here.
597
69e24e34
DN
5982010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
599
600 * ecrt0.c: Revert conversion to standard C.
601
d3da34e0 6022010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
603
604 * vm-limit.c (memory_warnings):
605 * keyboard.c (modify_event_symbol):
606 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
607 (round2, emacs_rint):
608 * process.c (send_process, old_sigpipe): Convert function
609 definitions and declarations to standard C.
610
6112010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
612
613 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
614 * xdisp.c: Convert function definitions to standard C.
615
616 * cm.c (cmputc): Arg C is now int, not char.
617 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
618
00be444c
J
6192010-07-05 James Cloos <cloos@jhcloos.com>
620
621 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
622
623 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
624 _NET_WM_ICON_NAME atoms.
625
626 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
627 and _NET_WM_ICON_NAME properties, too, matching what is
628 done in the Gtk+ case.
629
e4c8d29a
J
6302010-07-05 Jan Djärv <jan.h.d@swipnet.se>
631
ff919460
J
632 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
633
e4c8d29a
J
634 * xsmfns.c (SSDATA): New macro.
635 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
636 passed to strlen/strcpy/strcat.
637 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
638 7:th arg to XChangeProperty to (unsigned char *)
639
640 * xsettings.c (something_changedCB, parse_settings)
641 (apply_xft_settings): Reformat prototype.
642 (something_changedCB, init_gconf): Remove unused variable i.
643 (read_settings): Remove unused variable long_len.
644
645 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
646 (xg_get_image_for_pixmap, create_dialog)
647 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
648 (menuitem_highlight_callback, make_menu_item)
649 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
650 (xg_create_scroll_bar, xg_update_scrollbar_pos)
651 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
652 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
653 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
654 (xg_tool_bar_item_expose_callback): Reformat prototype.
655 (xg_update_menubar): GList *group => GSList *group.
656 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
657 before use.
658 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
659 to GTK_IMAGE (wimage).
660
dd4c5104
DN
6612010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
662
898b4c5c
DN
663 * atimer.c: Use "" instead of <> for local includes for
664 consistency with the rest of the code.
665
dd4c5104
DN
666 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
667 * xrdb.c (get_system_name):
668 * window.c (shrink_windows):
669 * syntax.c (forw_comment):
670 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
671 (ins_del_costs):
672 * mem-limits.h (start_of_data):
673 * lread.c (readevalloop):
674 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
675 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
676 * frame.c (x_get_focus_frame):
677 * floatfns.c (fmod_float):
678 * fileio.c (choose_write_coding_system):
679 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
680 (malloc_initialize_hook, sort_args, synchronize_locale):
681 * doprnt.c (doprnt):
682 * dired.c (compile_pattern):
683 * data.c (fmod_float):
684 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
685 (map_char_table_for_charset):
686 * charset.c (define_charset_internal):
687 * alloc.c (Fgarbage_collect): Convert declarations or definitions
688 to standard C.
689
9a39b306 6902010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 691 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
692
693 * lread.c (read1): Fix up last change to not mess up `c'.
694
e6cb2cbb
JB
6952010-07-04 Juanma Barranquero <lekktu@gmail.com>
696
697 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
698
438105ed
JB
6992010-07-04 Juanma Barranquero <lekktu@gmail.com>
700
701 Fix prototypes.
702
e5447b22 703 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 704 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
705 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
706 arg, as required by internal_condition_case_1.
dcc7404b 707 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
708 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
709 (analyse_first): Fix "const const".
e5447b22 710 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 711 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 712 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 713
971de7fb
DN
7142010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
715
716 * alloc.c: Convert function definitions to standard C.
717 * atimer.c:
718 * bidi.c:
719 * bytecode.c:
720 * callint.c:
721 * callproc.c:
722 * casefiddle.c:
723 * casetab.c:
724 * category.c:
725 * ccl.c:
726 * character.c:
727 * charset.c:
728 * chartab.c:
729 * cmds.c:
730 * coding.c:
731 * composite.c:
732 * data.c:
733 * dbusbind.c:
734 * dired.c:
735 * dispnew.c:
736 * doc.c:
737 * doprnt.c:
738 * ecrt0.c:
739 * editfns.c:
740 * fileio.c:
741 * filelock.c:
742 * filemode.c:
743 * fns.c:
744 * font.c:
745 * fontset.c:
746 * frame.c:
747 * fringe.c:
748 * ftfont.c:
749 * ftxfont.c:
750 * gtkutil.c:
751 * indent.c:
752 * insdel.c:
753 * intervals.c:
754 * keymap.c:
755 * lread.c:
756 * macros.c:
757 * marker.c:
758 * md5.c:
759 * menu.c:
760 * minibuf.c:
761 * prefix-args.c:
762 * print.c:
763 * ralloc.c:
764 * regex.c:
765 * region-cache.c:
766 * scroll.c:
767 * search.c:
768 * sound.c:
769 * strftime.c:
770 * syntax.c:
771 * sysdep.c:
772 * termcap.c:
773 * terminal.c:
774 * terminfo.c:
775 * textprop.c:
776 * tparam.c:
777 * undo.c:
778 * unexelf.c:
779 * window.c:
780 * xfaces.c:
781 * xfns.c:
782 * xfont.c:
783 * xftfont.c:
784 * xgselect.c:
785 * xmenu.c:
786 * xrdb.c:
787 * xselect.c:
788 * xsettings.c:
789 * xsmfns.c:
790 * xterm.c: Likewise.
791
ae492bec
EZ
7922010-07-03 Eli Zaretskii <eliz@gnu.org>
793
76ea4cc9
EZ
794 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
795 frames other than the initial one. Fix reversal of colors when
796 `reverse' is specified in the frame parameters. Call
797 update_face_from_frame_parameter instead of
798 internal-set-lisp-face-attribute. Initialize screen colors from
799 initial_screen_colors[] when f->default_face_done_p is zero,
800 instead of depending on being called with default-frame-alist as
801 the alist argument.
802
803 * xfaces.c (update_face_from_frame_parameter): Move out of
804 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
805 with HAVE_WINDOW_SYSTEM.
806
1e6255ae
EZ
807 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
808 to menu-bar-mode, if not set in the frame parameters or in
809 default-frame-alist.
810
ae492bec
EZ
811 * w32console.c (sys_tputs): Adjust argument list to prototype in
812 term.c.
813
3a35a84c
JB
8142010-07-03 Juanma Barranquero <lekktu@gmail.com>
815
816 * lisp.h (memory_warnings): Fix prototype.
817
818 * cm.h (evalcost): Fix prototype.
819
820 * cm.c (evalcost): Fix arg type.
821
c532d349
DN
8222010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
823
824 * term.c (term_clear_mouse_face, Fidentity):
825 * syssignal.h (signal_handler_t):
826 * lisp.h (memory_warnings):
827 * coding.h (preferred_coding_system):
828 * cm.h (evalcost):
829 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
830
c0b36d46
EZ
8312010-07-02 Eli Zaretskii <eliz@gnu.org>
832
833 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
834 from prototypes.
835
836 * msdos.h (load_pixmap): Don't define away.
837
383e0970
J
8382010-07-02 Jan Djärv <jan.h.d@swipnet.se>
839
f57e2426
J
840 * lisp.h:
841 * atimer.h: Remove define for P_.
842
843 * alloc.c: Remove __P and P_ from .c and .m files.
844 * atimer.c:
845 * buffer.c:
846 * callint.c:
847 * category.c:
848 * charset.c:
849 * chartab.c:
850 * cm.c:
851 * coding.c:
852 * composite.c:
853 * data.c:
854 * dired.c:
855 * dispnew.c:
856 * doc.c:
857 * editfns.c:
858 * emacs.c:
859 * eval.c:
860 * fileio.c:
861 * filelock.c:
862 * fns.c:
863 * font.c:
864 * fontset.c:
865 * frame.c:
866 * ftfont.c:
867 * ftxfont.c:
868 * gmalloc.c:
869 * gtkutil.c:
870 * image.c:
871 * indent.c:
872 * intervals.c:
873 * keyboard.c:
874 * keymap.c:
875 * lread.c:
876 * marker.c:
877 * menu.c:
878 * minibuf.c:
879 * print.c:
880 * process.c:
881 * scroll.c:
882 * search.c:
883 * sound.c:
884 * strftime.c:
885 * syntax.c:
886 * sysdep.c:
887 * term.c:
888 * terminal.c:
889 * textprop.c:
890 * unexalpha.c:
891 * w32console.c:
892 * w32fns.c:
893 * w32font.c:
894 * w32menu.c:
895 * w32term.c:
896 * w32uniscribe.c:
897 * window.c:
898 * xdisp.c:
899 * xfaces.c:
900 * xfns.c:
901 * xfont.c:
902 * xftfont.c:
903 * xmenu.c:
904 * xselect.c:
905 * xterm.c: Likewise.
906
383e0970 907 Remove P_ and __P macros.
f57e2426
J
908 * atimer.h: Remove P_ and __P macros.
909 * buffer.h:
383e0970
J
910 * category.h:
911 * ccl.h:
912 * character.h:
913 * charset.h:
914 * cm.h:
915 * coding.h:
916 * composite.h:
917 * dispextern.h:
918 * disptab.h:
9e892c8d 919 * dosfns.h:
383e0970
J
920 * font.h:
921 * fontset.h:
922 * frame.h:
923 * gtkutil.h:
924 * indent.h:
925 * intervals.h:
926 * keyboard.h:
927 * keymap.h:
928 * lisp.h:
929 * macros.h:
930 * md5.h:
931 * menu.h:
932 * msdos.h:
933 * nsterm.h:
934 * puresize.h:
935 * region-cache.h:
936 * syntax.h:
937 * syssignal.h:
938 * systime.h:
939 * termhooks.h:
9e892c8d 940 * w32font.h:
383e0970
J
941 * w32term.h:
942 * widget.h:
943 * window.h:
944 * xgselect.h:
945 * xsettings.h:
946 * xterm.h: Likewise.
947
98601119
DN
9482010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
949
d9170db5
DN
950 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
951
98601119
DN
952 Cleanup old code.
953 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
954 * syssignal.h: Remove code for Lynx, not supported anymore.
955 * vm-limit.c: Remove unused code the depends on emacs not being
956 defined and NO_LIM_DATA being defined.
957 * mem-limits.h: Remove dead code.
958
1f984e12
J
9592010-07-01 Jan Djärv <jan.h.d@swipnet.se>
960
c49d071a
J
961 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
962
9d5405ec
J
963 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
964 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
965
7a18115b
J
966 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
967 parameters, they are already absolute.
968
581a8100
J
969 * nsterm.m (x_set_window_size, initFrameFromEmacs): Renamed
970 FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
971
972 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGH
973
974 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar): Update
975 FRAME_TOOLBAR_HEIGHT.
976
1f984e12
J
977 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Add
978 BLOCK/UNBLOCK_INPUT so asserts don't trigger.
979
c1ef4455
CY
9802010-06-30 Chong Yidong <cyd@stupidchicken.com>
981
982 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
983 check default-frame-alist.
984
ce8f5a9a
AS
9852010-06-30 Andreas Schwab <schwab@linux-m68k.org>
986
987 * process.c (create_process): Avoid using invalid file descriptors.
988
989 * callproc.c (child_setup): Avoid closing a file descriptor twice.
990
bf935339
J
9912010-06-30 Jan Djärv <jan.h.d@swipnet.se>
992
993 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
994 Improve documentation. Return font regardless of use_system_font.
995 (syms_of_xsettings): Improve documentation for font-use-system-font.
996
7c33a057
CY
9972010-07-10 Chong Yidong <cyd@stupidchicken.com>
998
2ec1b5ee
CY
999 * xfaces.c (realize_face): Garbage the frame if a face is removed
1000 (Bug#6593).
1001
10022010-07-05 Andreas Schwab <schwab@linux-m68k.org>
1003
1004 * keyboard.c: Remove duplicate <setjmp.h>.
1005 (read_key_sequence): Remove volatile qualifiers.
1006
10072010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1008
1009 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
1010 (struct glyph_row): New members left_fringe_offset and
1011 right_fringe_offset.
1012
1013 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
1014 specially.
1015 * w32term.c (w32_draw_fringe_bitmap): Likewise.
1016 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
1017
1018 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
1019 Take account of bitmap offset.
1020 (draw_window_fringes): Take account of window vscroll.
1021 (update_window_fringes): Likewise. Extend top-aligned top indicator
1022 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
1023 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
1024 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
1025
10262010-07-04 Juanma Barranquero <lekktu@gmail.com>
1027
1028 * w32fns.c (Qtooltip): Declare.
1029 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
1030
10312010-07-03 Jan Djärv <jan.h.d@swipnet.se>
1032
1033 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
1034 grab on just Press (Bug#6499).
1035
10362010-07-02 Chong Yidong <cyd@stupidchicken.com>
1037
1038 * frame.c (Qtooltip): New var.
1039 (delete_frame): Use it. Fix faulty if statement. Don't update
1040 mode line for tooltip frames. Suggested by Martin Rudalics.
1041
1042 * xfns.c (x_create_tip_frame):
1043 * w32fns.c (x_create_tip_frame): Use it.
1044
10452010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
1046
1047 * xftfont.c (xftfont_open): Check font width one by one also when
1048 spacing is dual.
1049
1050 * ftfont.c (ftfont_open): Ditto.
1051
6259c2ec
GM
10522010-06-30 Glenn Morris <rgm@gnu.org>
1053
a46007e9
GM
1054 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
1055
6259c2ec
GM
1056 * Makefile.in (CANNOT_DUMP): Update for configure name change.
1057
1058 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
1059 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
1060 * s/darwin.h (SYSTEM_MALLOC):
1061 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
1062
5d1d3d04
J
10632010-06-29 Jan Djärv <jan.h.d@swipnet.se>
1064
1065 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
1066 (ns_get_screen): Don't assign integer to f.
1067 (Fx_display_color_cells): Declarations before statements.
1068
e547b051
J
10692010-06-28 Jan Djärv <jan.h.d@swipnet.se>
1070
5fc8e5bc
J
1071 * xfns.c (x_default_font_parameter): Remove got_from_system
1072 (Bug#6526).
1073
e547b051
J
1074 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
1075 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
1076 defines based on what configure finds.
1077
1078 * xterm.c (XTflash): Use gtk_widget_get_window.
1079 (xg_scroll_callback): Use gtk_adjustment_get_upper and
1080 gtk_adjustment_get_page_size.
1081 (handle_one_xevent): Use gtk_widget_get_mapped.
1082 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
1083 messages.
1084
1085 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
1086
1087 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
1088 HAVE_GTK_FILE_SELECTION_NEW.
1089
1090 * gtkutil.c (xg_display_open, xg_display_close): Remove
1091 HAVE_GTK_MULTIDISPLAY, it is always defined.
1092 (xg_display_open): Return type is void.
1093 (gtk_widget_set_has_window)
1094 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
1095 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
1096 (gtk_adjustment_set_page_increment)
1097 (gtk_adjustment_get_step_increment): #define these if not found
1098 by configure.
1099 (remove_submenu): New define based on Gtk+ version.
1100 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
1101 gtk_widget_get_window.
1102 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
1103 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
1104 (create_dialog): Use gtk_dialog_get_action_area and
1105 gtk_dialog_get_content_area.
1106 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
1107 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
1108 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
1109 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
1110 g_object_ref and g_object_unref.
1111 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
1112 gtk_widget_get_sensitive.
1113 (xg_update_submenu): Use remove_submenu.
1114 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
1115 properties instead to get old x and y position.
1116 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
1117 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 1118 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
1119 (xg_get_tool_bar_widgets): New function.
1120 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
1121 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
1122 (toolbar_set_orientation): New #define based on if configure
1123 finds gtk_orientable_set_orientation.
1124 (xg_create_tool_bar): Call toolbar_set_orientation.
1125 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
1126 instead of gtk_box_pack_start_defaults.
1127
b9229673
CY
11282010-06-28 Chong Yidong <cyd@stupidchicken.com>
1129
1130 * cmds.c (Fdelete_backward_char): Move into Lisp.
1131
bbc803b0
DN
11322010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
1133
1134 * s/freebsd.h (BSD4_2): Remove redundant definition.
1135 bsd-common.h defines it already.
1136
6431f2e6
CY
11372010-06-27 Chong Yidong <cyd@stupidchicken.com>
1138
1139 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
1140 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
1141 tool-bar-mode, which are now set using these X resources at
1142 startup, to determine the defaults (Bug#2249).
1143
1144 * w32fns.c (Fx_create_frame):
1145 * nsfns.m (Fx_create_frame): Likewise.
1146
1147 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
1148
8c079ebb
JB
11492010-06-24 Juanma Barranquero <lekktu@gmail.com>
1150
1151 * gtkutil.c (xg_update_scrollbar_pos):
1152 Avoid C99 mid-block variable declaration.
1153
e9b7ab96
JD
11542010-06-22 Jan Djärv <jan.h.d@swipnet.se>
1155
bc869eca
JD
1156 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
1157
2b7e356a 1158 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
1159
1160 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
1161 if height is less than scroll bar min size.
1162 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
1163
e9b7ab96
JD
1164 * xfns.c (x_default_font_parameter): Try to open font from system
1165 before using it (bug#6478). Rename got_from_gconf to got_from_system.
1166
32a679fd
JD
11672010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
1168
1169 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
1170
70c4cfbb
EZ
11712010-06-20 Eli Zaretskii <eliz@gnu.org>
1172
1173 * xdisp.c (try_scrolling): When scroll-conservatively is set to
1174 most-positive-fixnum, be extra accurate when scrolling window
1175 start, to avoid missing the cursor line.
1176
ad5a12b5
EZ
11772010-06-19 Eli Zaretskii <eliz@gnu.org>
1178
1179 * xdisp.c (try_scrolling): Compute the limit for searching point
1180 in forward scroll from scroll_max, instead of an arbitrary limit
1181 of 10 screen lines. See
1182 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
1183 and
1184 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
1185 for details.
1186
2a64315a 11872010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
1188
1189 * editfns.c (Fbyte_to_string): Pacify compiler.
1190
288cf4e9
SM
11912010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
1192
1193 * lread.c (read1): Phase out old-style backquotes a bit more.
1194
6e6e5760
EZ
11952010-06-12 Eli Zaretskii <eliz@gnu.org>
1196
cbc4fd20
EZ
1197 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
1198 bidimirror.h.
1199
1200 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
1201
317fbf33
EZ
1202 * bidi.c (bidi_initialize): Remove explicit initialization of
1203 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 1204 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 1205 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
1206
1207 * biditype.h: New file.
1208
cbc4fd20
EZ
1209 * bidimirror.h: New file.
1210
6e6e5760
EZ
1211 * window.c (syms_of_window): Doc fix (bug#6409).
1212
4176cba2
RF
12132010-06-12 Romain Francoise <romain@orebokech.com>
1214
1215 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
1216 ediff-hook.
1217
cb4bfcb5
GM
12182010-06-10 Glenn Morris <rgm@gnu.org>
1219
64c60c2f
GM
1220 * editfns.c (Fbyte_to_string): Pacify compiler.
1221
cb4bfcb5
GM
1222 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
1223
2ec1b5ee
CY
12242010-06-26 Andreas Schwab <schwab@linux-m68k.org>
1225
1226 * alloc.c (Fmake_byte_code): Don't access undefined argument
1227 (Bug#6517).
1228
12292010-06-25 Chong Yidong <cyd@stupidchicken.com>
1230
1231 * xdisp.c (next_element_from_image): Ensure that after-strings are
1232 read the next time we hit handle_stop (Bug#1336).
1233
12342010-06-23 Andreas Schwab <schwab@linux-m68k.org>
1235
1236 * lread.c (read1): Signal error if #s is not followed by paren.
1237
12382010-06-19 Chong Yidong <cyd@stupidchicken.com>
1239
1240 * image.c (free_image): Mark frame as garbaged (Bug#6426).
1241
1242 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
1243
12442010-06-15 Glenn Morris <rgm@gnu.org>
1245
1246 * editfns.c (Fbyte_to_string): Pacify compiler.
1247
e454a4a3
SM
12482010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
1249
1250 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
1251 Check `object's type before accessing its guts.
1252
c1b1acc2
DN
12532010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
1254
1255 * s/usg5-4.h: Fix previous change.
1256 Suggested by Lawrence Mitchell <wence@gmx.li>
1257
657d4c0b
AS
12582010-06-08 Andreas Schwab <schwab@linux-m68k.org>
1259
1260 * minibuf.c (Fall_completions): Add more checks.
1261
9b27fd9f
JB
12622010-06-08 Juanma Barranquero <lekktu@gmail.com>
1263
1264 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
1265
a99ebb40
DN
12662010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
1267
d7c5d87d
DN
1268 * lread.c (X_OK): Remove, unused.
1269
0263a941
DN
1270 * dispnew.c: Remove obsolete comment.
1271
a99ebb40
DN
1272 Remove INCLUDED_FCNTL.
1273 * xterm.c (INCLUDED_FCNTL):
1274 * callproc.c (INCLUDED_FCNTL):
1275 * alloc.c (INCLUDED_FCNTL):
1276 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
1277 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
1278
13b5221f
MR
12792010-06-07 Martin Rudalics <rudalics@gmx.at>
1280
1281 * window.c (Fselect_window): Move `record_buffer' up to the
1282 beginning of this function, so the buffer gets recorded
1283 even if the selected window does not change.
1284 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
1285
5220357f
JB
12862010-06-07 Juanma Barranquero <lekktu@gmail.com>
1287
1288 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
1289 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
1290
3085237c
DN
12912010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
1292
1293 Remove BSTRING related code, all platforms define it.
1294 * s/usg5-4.h (BSTRING): Remove definition.
1295 * s/template.h (BSTRING):
1296 * s/msdos.h (BSTRING):
1297 * s/ms-w32.h (BSTRING):
1298 * s/hpux10-20.h (BSTRING):
1299 * s/gnu-linux.h (BSTRING):
1300 * s/darwin.h (BSTRING):
1301 * s/cygwin.h (BSTRING):
1302 * s/bsd-common.h (BSTRING):
1303 * s/aix4-2.h (BSTRING): Likewise.
1304 * sysdep.c: Remove code depending on BSTRING not being defined.
1305
409f2919
JB
13062010-06-05 Juanma Barranquero <lekktu@gmail.com>
1307
1308 Remove obsolete macro BASE_LEADING_CODE_P.
1309 * character.h (BASE_LEADING_CODE_P): Remove.
1310 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
1311 * buffer.c (Fset_buffer_multibyte):
1312 * indent.c (scan_for_column, compute_motion):
1313 * insdel.c (count_combining_before, count_combining_after):
1314 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
1315
087fc47a
JB
13162010-06-04 Juanma Barranquero <lekktu@gmail.com>
1317
1318 Turn `directory-sep-char' into a noop.
1319
1320 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
1321 (DIRECTORY_SEP): Define unconditionally.
1322
1323 * s/ms-w32.h (DIRECTORY_SEP): Remove.
1324
1325 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
1326 call dostounix_filename directly.
1327
1328 * fileio.c (CORRECT_DIR_SEPS): Remove.
1329 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
1330 (Fsubstitute_in_file_name): Use dostounix_filename instead.
1331 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
1332 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
1333
1334 * w32proc.c (CORRECT_DIR_SEPS): Remove.
1335 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
1336
0eb7675e
AS
13372010-06-03 Andreas Schwab <schwab@linux-m68k.org>
1338
1339 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 1340 address. (Bug#6346)
0eb7675e 1341
78edd3b7
JB
13422010-06-03 Juanma Barranquero <lekktu@gmail.com>
1343
1344 * ccl.c (Fccl_program_p): Fix typo in docstring.
1345
eb697db5
DN
13462010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
1347
1348 Move UNEXEC definition to autoconf.
1349 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
1350 * s/sol2-10.h (UNEXEC):
1351 * s/irix6-5.h (UNEXEC):
1352 * s/hpux10-20.h (UNEXEC):
1353 * s/gnu-linux.h (UNEXEC):
1354 * s/darwin.h (UNEXEC):
1355 * s/cygwin.h (UNEXEC):
1356 * s/bsd-common.h (UNEXEC):
1357 * s/aix4-2.h (UNEXEC):
1358 * m/alpha.h (UNEXEC): Likewise.
1359 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
1360
aa3830c4
JB
13612010-06-03 Juanma Barranquero <lekktu@gmail.com>
1362
1363 Remove obsolete pre-unicode2 macros.
1364 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
1365 * composite.c (composition_reseat_it):
1366 * data.c (Faset):
1367 * fns.c (Ffillarray):
1368 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
1369 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
1370
d234d13e
JL
13712010-06-03 Juri Linkov <juri@jurta.org>
1372
1373 * buffer.c (Fother_buffer): Add CHECK_FRAME.
1374 (Fswitch_to_buffer): Remove unused variable `err'.
1375
0d4bcf4d
GM
13762010-06-03 Glenn Morris <rgm@gnu.org>
1377
e23dc1e2
GM
1378 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
1379
05b09564
GM
1380 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
1381 now that AH_BOTTOM does it.
1382
824e2978
GM
1383 * m/hp800.h (HAVE_ALLOCA):
1384 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
1385
0d4bcf4d
GM
1386 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
1387 Remove NOT_C_CODE tests, it is always true now.
1388
c55d2abf
DN
13892010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
1390
08a494a3
DN
1391 Fix config.h includes.
1392 * xsettings.c:
1393 * xgselect.c:
1394 * nsterm.m:
1395 * nsselect.m:
1396 * nsimage.m:
1397 * nsfont.m:
1398 * nsfns.m:
1399 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
1400 other files do.
1401
75934b1d
DN
1402 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
1403
9f32a766
DN
1404 * s/sol2-6.h: Remove obsolete comments.
1405
c55d2abf
DN
1406 Remove unnecessary alloca.h includes.
1407 * keymap.c: Do not include alloca.h, config.h does that.
1408 * sysdep.c: Likewise. Do not define fwrite, not used.
1409
06ac62b4
SM
14102010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
1411
1412 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
1413 the HAVE_TERMIO where it belongs (bug#6149).
1414
1ab8293c
SM
14152010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
1416
1417 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
1418 of bug#6305).
1419
6dcfd253
EZ
14202010-05-30 Eli Zaretskii <eliz@gnu.org>
1421
1422 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
1423 state is always cached (bug#6306).
1424
6d26bbb2
EZ
14252010-05-29 Eli Zaretskii <eliz@gnu.org>
1426
06fa4a23
EZ
1427 Fix cursor motion in bidi-reordered continued lines.
1428 * xdisp.c (try_cursor_movement): Backup to non-continuation line
1429 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
1430 over continuation lines in bidi-reordered buffers. Return
1431 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
1432 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
1433
f5783df3
MA
14342010-05-28 Michael Albinus <michael.albinus@gmx.de>
1435
1436 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
1437
7d56b2dd
KH
14382010-05-28 Kenichi Handa <handa@m17n.org>
1439
1440 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
1441 Don't sheck SPEC if it is nil.
1442 (font_list_entities): Call font_delete_unmatched if
b925d231 1443 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 1444
e58d4ff7
GM
14452010-05-28 Glenn Morris <rgm@gnu.org>
1446
1447 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
1448
f1a5d776
CY
14492010-05-27 Chong Yidong <cyd@stupidchicken.com>
1450
1451 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
1452 whether to trash.
1453 (internal_delete_file, Frename_file): Callers changed.
1454 (delete_by_moving_to_trash): Doc fix.
1455 (Fdelete_directory_internal): Don't move to trash.
1456
1457 * callproc.c (delete_temp_file):
1458 * buffer.c (Fkill_buffer): Callers changed.
1459
1460 * lisp.h: Update prototype.
1461
f44a59e6
CY
14622010-05-27 Chong Yidong <cyd@stupidchicken.com>
1463
1464 * xdisp.c (redisplay_window): After redisplay, check if point is
1465 still valid before setting it (Bug#6177).
1466
81ac4f35
GM
14672010-05-27 Glenn Morris <rgm@gnu.org>
1468
1469 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
1470 Convert comments to Makefile format.
1471
1472 * Makefile.in (bootstrap-clean): No more Makefile.c.
1473
ccd89fb3
GM
14742010-05-26 Glenn Morris <rgm@gnu.org>
1475
90278cb6
GM
1476 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
1477 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
1478
ccd89fb3
GM
1479 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1480 Remove.
1481 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1482
b7050583
KH
14832010-05-26 Kenichi Handa <handa@m17n.org>
1484
1485 * composite.c (composition_compute_stop_pos): Fix condition for
1486 backward scanning.
1487
e5458003
GM
14882010-05-25 Glenn Morris <rgm@gnu.org>
1489
c345fe90
GM
1490 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1491 Move before TEMACS_LDFLAGS.
1492 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1493 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1494
2e0689ab
GM
1495 * Makefile.in (NOT_C_CODE): No longer define.
1496 (config.h): No longer include.
1497
8009a5e8
GM
1498 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
1499 variables it may reference.
1500
e5458003
GM
1501 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
1502 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
1503
10f72a37
KH
15042010-05-25 Kenichi Handa <handa@m17n.org>
1505
1506 * dispextern.h (struct composition_it): New members rule_idx and
1507 charpos.
1508
1509 * xdisp.c (set_iterator_to_next): While scanning backward, assume
1510 that the character positions of IT point the last character of the
1511 current grapheme cluster.
1512 (next_element_from_composition): Don't change character positions
1513 of IT.
1514 (append_composite_glyph): Set glyph->charpos to
1515 it->cmp_it.charpos.
1516
1517 * composite.c (autocmp_chars): Change the first argument to RULE,
1518 and try composition with RULE only.
1519 (composition_compute_stop_pos): Record the index number of the
1520 composition rule in CMP_IT->rule_idx.
1521 (composition_reseat_it): Call autocmp_chars repeatedly until the
1522 correct rule of the composition is found.
1523 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
1524 is at the last character of the current grapheme cluster when
1525 CMP_IT->reversed_p is nonzero.
1526
171eda53 15272010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 1528
171eda53
SM
1529 * editfns.c (Fbyte_to_string): New function.
1530
66a9f7f4
SM
15312010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
1532
1533 * process.c (Fmake_network_process): Set :host to nil if it's not used.
1534 Suggested by Masatake YAMATO <yamato@redhat.com>.
1535
d8c315d1
EZ
15362010-05-23 Eli Zaretskii <eliz@gnu.org>
1537
171eda53 1538 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 1539
f5b416d2 15402010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
1541
1542 * s/netbsd.h: If terminfo is found, use it in preference to
1543 termcap. (Bug#6190) [Backport from trunk]
1544
0416466c
EZ
15452010-05-19 Eli Zaretskii <eliz@gnu.org>
1546
11117830 1547 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
1548
1549 * dispextern.h (struct glyph_row): New members minpos and maxpos.
1550 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
1551 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
1552 and maxpos members instead of start.pos and end.pos, respectively.
1553
1554 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
1555 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
1556 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
1557 (try_window_reusing_current_matrix, try_window_id):
1558 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
1559 (init_from_display_pos, init_iterator): Use EMACS_INT for
1560 character and byte positions.
66a9f7f4 1561 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
1562 arguments for minimum and maximum buffer positions seen by
1563 display_line for this row. Don't use iterator to find the
1564 position following the maximum one; instead, increment the
11117830
EZ
1565 position found by display_line directly. Fix logic; eol_pos
1566 should be tested before the rest. Handle the case of characters
1567 delivered from display vector (bug#6036). Fix tests related to
1568 it->method. Handle the truncated_on_right_p rows.
1569 (RECORD_MAX_MIN_POS): New macro.
1570 (display_line): Use it to record the minimum and maximum buffer
1571 positions for glyphs in the row being assembled. Record the
1572 position of the newline that terminates the line. If word wrap is
1573 in effect, restore minimum and maximum positions seen up to the
1574 wrap point, when iterator returns to it.
1575 (try_window_reusing_current_matrix): Give up if in bidi-reordered
1576 row and cursor not already at point. Restore original pre-bidi
1577 code for unidirectional buffers.
d36fe237
EZ
1578
1579 * dispnew.c (increment_row_positions, check_matrix_invariants):
1580 Increment and check row->start.pos and row->end.pos, in addition
1581 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
1582
11117830
EZ
1583 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
1584 Display truncated_on_left_p and truncated_on_right_p flags.
1585 Formatting fixes.
1586 (pmtxrows): Display the ordinal number of each row. Don't display
1587 rows beyond the last one.
1588
1589 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
1590 it is not copied by bidi_copy_it.
1591
6e83d800
EZ
15922010-05-22 Eli Zaretskii <eliz@gnu.org>
1593
1594 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
1595 (Bug#6237)
1596
110683ad
CY
15972010-05-22 Chong Yidong <cyd@stupidchicken.com>
1598
1599 * image.c (Fimage_flush): Rename from image-refresh.
1600
98fe5161
CY
16012010-05-21 Chong Yidong <cyd@stupidchicken.com>
1602
1603 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
1604 just one window.
1605
1606 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
1607 (clear_image_cache): If the number of cached images is unusually
1608 large, decrease the cache eviction delay (Bug#6230).
1609
e8752c66
GM
16102010-05-21 Glenn Morris <rgm@gnu.org>
1611
66dbf213
GM
1612 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
1613 Move these rules to ns.mk.
1614 * ns.mk: New file.
1615
04384b2d
GM
1616 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
1617
e8752c66
GM
1618 * Makefile.in (CANNOT_DUMP): New, set by configure.
1619 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
1620
2e2bbddb
JL
16212010-05-20 Juri Linkov <juri@jurta.org>
1622
1623 * fileio.c (Fdelete_file): Change interative spec to use
1624 `read-file-name' like in `find-file-read-args' where the default
1625 value is `default-directory' instead of `buffer-file-name'.
1626 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
1627
31c4aaf6
KR
16282010-05-20 Kevin Ryde <user42@zip.com.au>
1629
1630 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
1631 (Voverriding_terminal_local_map, Vsystem_key_alist)
1632 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
1633
9d5cf9b6
GM
16342010-05-20 Glenn Morris <rgm@gnu.org>
1635
1636 * Makefile.in (DEPDIR): New constant.
1637 (DEPFLAGS): Set with configure, not cpp.
1638 (MKDEPDIR): New, set by configure.
1639 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
1640 (clean): Use $DEPDIR.
1641 (deps_frag): Include from configure.
1642 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
1643 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
1644
ead6f8f5
EZ
1645 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
1646 reallocation of the cache. (Bug#6210)
1647
7f34aec3
GM
16482010-05-19 Glenn Morris <rgm@gnu.org>
1649
d494e8f2
GM
1650 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
1651
c1d0dcfd
GM
1652 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
1653 (GNULIB_VAR): Remove.
1654 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
1655
1656 * m/ibms390x.h (LINKER):
1657 * m/macppc.h (LINKER) [GNU_LINUX]:
1658 * s/aix4-2.h (ORDINARY_LINK):
1659 * s/cygwin.h (LINKER):
1660 * s/darwin.h (ORDINARY_LINK):
1661 * s/gnu.h (ORDINARY_LINK):
1662 * s/netbsd.h (LINKER):
1663 * s/usg5-4.h (ORDINARY_LINK):
1664 Move to configure.
1665
7f34aec3
GM
1666 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
1667
754790b6
CY
16682010-05-18 Chong Yidong <cyd@stupidchicken.com>
1669
1670 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
1671 prevent stack overflow if number of arguments is too large
1672 (Bug#6214).
1673
161e44d1
JB
16742010-05-18 Juanma Barranquero <lekktu@gmail.com>
1675
1676 * charset.c (load_charset_map_from_file): Don't call close after fclose.
1677
be4ff9da
GM
16782010-05-18 Glenn Morris <rgm@gnu.org>
1679
9539dc5d
GM
1680 * s/gnu-linux.h: Combine two conditionals.
1681
1682 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
1683 $(POST_ALLOC_OBJ).
1684
40dc6bf4
GM
1685 * Makefile.in (RALLOC_OBJ): New, set by configure.
1686 (rallocobj): Replace with the previous variable.
1687 (otherobj): Use $RALLOC_OBJ.
1688
1689 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
1690 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
1691
be4ff9da
GM
1692 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
1693 (gmallocobj, vmlimitobj): Replace with previous two variables.
1694 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
1695
16455a85
GM
16962010-05-17 Glenn Morris <rgm@gnu.org>
1697
1698 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
1699 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
1700
5fdb7468
GM
17012010-05-16 Glenn Morris <rgm@gnu.org>
1702
7ca1f3f9
GM
1703 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
1704
7541dad5
GM
1705 * Makefile.in (clean): Get rid of HAVE_NS conditional.
1706
da53fab9
GM
1707 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
1708 trailing "/".
1709
b02a6645
GM
1710 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
1711 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
1712
8877ca0f
GM
1713 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
1714 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
1715 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
1716 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
1717 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
1718
5fdb7468
GM
1719 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
1720 Remove ${STARTFLAGS}, nothing ever sets it.
1721
95adb4b1
DN
17222010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
1723
1724 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
1725
676b6304
GM
17262010-05-16 Glenn Morris <rgm@gnu.org>
1727
9beab9ce
GM
1728 * Makefile.in (LIBX_BASE): Always define.
1729
8a95f0e7
GM
1730 * Makefile.in (LIBX_OTHER): Move out of cpp section.
1731
676b6304
GM
1732 * Makefile.in (LIBXT): Always define.
1733
6e546d18
GM
17342010-05-15 Glenn Morris <rgm@gnu.org>
1735
4235ca47 1736 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 1737
6e546d18
GM
1738 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
1739 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
1740
8c5ff6dd
KR
17412010-05-15 Ken Raeburn <raeburn@raeburn.org>
1742
560bb7ae 1743 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
1744 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
1745
8b4eb796
KR
1746 * emacs.c (main): Initialize initial-environment and
1747 process-environment before generating from env, not after.
1748
8c5ff6dd
KR
1749 Handle --version reasonably in CANNOT_DUMP configuration.
1750 * emacs.c (emacs_version, emacs_copyright): New string variables.
1751 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
1752 (syms_of_emacs): Defvar them, and initialize them from the C
1753 string variables.
1754 (main): If initialization hasn't been done, print initial version
1755 info from the C strings, instead of starting an interactive session.
1756
dbd3f723
EZ
17572010-05-15 Eli Zaretskii <eliz@gnu.org>
1758
d20e1419
EZ
1759 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
1760 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
1761 (bidi_paragraph_init): Remove redundant assertion that we are at
1762 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
1763
1764 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
1765 (syms_of_xdisp): Defsubr it.
1766
d36fe237
EZ
1767 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
1768
dbd3f723
EZ
1769 * Makefile.in: Fix MSDOS-related comments.
1770
02be533b
GM
17712010-05-15 Glenn Morris <rgm@gnu.org>
1772
1a82cca9
GM
1773 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
1774 (really-lwlib, really-oldXMenu): Always define.
1775 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
1776
3df7b338
GM
1777 * Makefile.in: Simplify cpp conditional.
1778
2b5f541b
GM
1779 * Makefile.in (${ns_appdir}): Simplify using umask.
1780
02be533b
GM
1781 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
1782
4e2db1fe
SM
17832010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
1784
1785 * eval.c (specbind): Remove left-over duplicate test.
1786 Disallow let-binding frame-local vars. Add comment.
1787
4b292a22
EZ
17882010-05-14 Eli Zaretskii <eliz@gnu.org>
1789
2fe72643 1790 Make the cache of bidi iterator states dynamically allocated.
1edbd309 1791 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
1792 (bidi_init_it): Call it.
1793 (bidi_cache_iterator_state): Enlarge the cache if needed.
1794
4e2db1fe 1795 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
1796 bidi_get_next_char_visually. All callers changed.
1797
82ebc97b
KH
17982010-05-14 Kenichi Handa <handa@m17n.org>
1799
1800 * dispextern.h (struct composition_it): New member reversed_p.
1801
1802 * composite.c (composition_compute_stop_pos): Search backward if
1803 ENDPOS < CHARPOS.
1804 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
1805 Set CMP_IT->reversed_p.
b4b6e17e 1806 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 1807
4e2db1fe
SM
1808 * xdisp.c (set_iterator_to_next):
1809 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
1810 scanning backward. Call composition_compute_stop_pos if scan
1811 direction is changed.
1812 (next_element_from_buffer): Call composition_compute_stop_pos with
1813 negative ENDPOS if we are scanning backward.
1814 (next_element_from_composition): Pay attention to
1815 IT->cmp_it.reversed_p.
1816
0e5d7800
KH
18172010-05-14 Kenichi Handa <handa@m17n.org>
1818
560bb7ae 1819 * font.c (font_range): Return the range for the font found at first.
0e5d7800 1820
cb027b32
GM
18212010-05-14 Glenn Morris <rgm@gnu.org>
1822
177b0288
GM
1823 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
1824
fbc00890
GM
1825 * Makefile.in (mktime, X11, register): Move undefs to configure.
1826
f14d1dfd
GM
1827 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
1828 (MSDOS_X_OBJ): New variable.
1829 (MSDOS_SUPPORT_REAL): New constant.
1830 (MSDOS_SUPPORT): Set as a variable, not with cpp.
1831 (obj): Use MSDOS_X_OBJ.
1832 (lisp): Use MSDOS_SUPPORT as a variable.
1833
11842bd8
GM
1834 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
1835 (GPM_MOUSE_SUPPORT): Now it's a constant.
1836 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
1837 not cpp.
1838
489d31a4 1839 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 1840 (ns_appresdir): Remove, unused.
e20f1f07 1841
489d31a4
GM
1842 * Makefile.in (SHELL): Move outside cpp section.
1843
cb027b32
GM
1844 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
1845
5a903aa9
GM
18462010-05-13 Glenn Morris <rgm@gnu.org>
1847
3369c79f
GM
1848 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
1849 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
1850
d5e982a6
GM
1851 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
1852 HAVE_WINDOW_SYSTEM must be too.
1853
6192e163
GM
1854 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
1855 (lisp): Remove WINNT_SUPPORT.
1856
472c5d6b
GM
1857 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
1858 Let configure set these variables (to empty) in this case as well.
1859
0116466b
GM
1860 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
1861 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
1862
5a903aa9
GM
1863 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
1864 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
1865 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
1866 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
1867 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 1868 the values output by configure.
5a903aa9
GM
1869 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
1870
1a0d7c06
GM
18712010-05-12 Glenn Morris <rgm@gnu.org>
1872
b5457f14
GM
1873 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
1874 (LINKER_WAS_SPECIFIED): Remove.
1875
1a0d7c06
GM
1876 * Makefile.in (LIB_GCC): Set using configure, not cpp.
1877 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
1878 * m/arm.h (LIB_GCC) [GNU_LINUX]:
1879 * s/cygwin.h (LIB_GCC):
1880 * s/freebsd.h (LIB_GCC):
1881 * s/gnu-linux.h (LIB_GCC):
1882 * s/msdos.h (LIB_GCC):
1883 * s/netbsd.h (LIB_GCC):
1884 Move to configure.
1885
3ffd4615 18862010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
1887
1888 * ftfont.c: Fix incorrect parentheses of #if condition for
1889 definining M17N_FLT_USE_NEW_FEATURE.
1890
acddf8ae
GM
18912010-05-11 Glenn Morris <rgm@gnu.org>
1892
1893 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
1894 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
1895
ae5e04fa
EZ
18962010-05-10 Eli Zaretskii <eliz@gnu.org>
1897
1898 * xdisp.c (init_iterator): Don't turn on bidi reordering in
1899 unibyte buffers. See
1900 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
1901
7490175b
GM
19022010-05-10 Glenn Morris <rgm@gnu.org>
1903
97efb629
GM
1904 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
1905 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
1906 (LIBES): Use LIBS_SYSTEM as a variable.
1907 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
1908 * s/aix4-2.h (LIBS_SYSTEM):
1909 * s/freebsd.h (LIBS_SYSTEM):
1910 * s/hpux10-20.h (LIBS_SYSTEM):
1911 * s/sol2-6.h (LIBS_SYSTEM):
1912 * s/unixware.h (LIBS_SYSTEM):
1913 Move to configure.
1914
7490175b
GM
1915 * s/aix4-2.h (MAIL_USE_LOCKF):
1916 * s/bsd-common.h (MAIL_USE_FLOCK):
1917 * s/darwin.h (MAIL_USE_FLOCK):
1918 * s/gnu-linux.h (MAIL_USE_FLOCK):
1919 * s/irix6-5.h (MAIL_USE_FLOCK):
1920 * s/template.h (MAIL_USE_FLOCK):
1921 Move to configure.
1922
0235128c 19232010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
1924
1925 * Version 23.2 released.
1926
0235128c 19272010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
1928
1929 * composite.c (autocmp_chars): Save point as marker before calling
1930 auto-composition-function (Bug#5984).
1931
1932 * lisp.h (restore_point_unwind): Add prototype.
1933
1934 * fileio.c (restore_point_unwind): Remove static attribute.
1935
0235128c 19362010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
1937
1938 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
1939 new feature of libotf and m17n-flt.
0235128c
SM
1940 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
1941 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
1942 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
1943 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
1944 that OUT is NULL. Use OTF_drive_gsub_with_log and
1945 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
1946 OTF_drive_gpos.
1947 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
1948 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
1949 Setup mflt_enable_new_feature and mflt_try_otf.
1950
4721152c
J
19512010-05-08 Jan Djärv <jan.h.d@swipnet.se>
1952
1953 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
1954
1955 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
1956 box and toolbar (Bug #6139).
1957 (xg_create_tool_bar): Remove comment (Bug #6139).
1958 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
1959 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
1960
ee0a16cf
JB
19612010-05-08 Juanma Barranquero <lekktu@gmail.com>
1962
1963 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
1964 Update dependencies.
1965
96d79611
EZ
19662010-05-08 Eli Zaretskii <eliz@gnu.org>
1967
1968 * fringe.c (update_window_fringes): Set up truncation bitmaps for
1969 R2L lines.
1970
40c17879
GM
19712010-05-08 Glenn Morris <rgm@gnu.org>
1972
7b42b29f
GM
1973 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
1974
40c17879
GM
1975 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
1976 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
1977 (termcapobj): Replace with TERMCAP_OBJ.
1978 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
1979 (LIBES): Use LIBS_TERMCAP as a variable.
1980
1981 * s/freebsd.h (osreldate.h): No longer include, since this file
1982 does not use __FreeBSD_version any more.
1983
1984 * s/aix4-2.h (TERMINFO):
1985 * s/cygwin.h (TERMINFO):
1986 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1987 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
1988 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1989 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1990 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
1991 * s/irix6-5.h (TERMINFO):
1992 * s/netbsd.h (LIBS_TERMCAP):
1993 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
1994 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
1995 * s/usg5-4.h (TERMINFO):
1996 Move to configure.
1997
94b612ad
SM
19982010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
1999
2000 * eval.c (unbind_to): Don't unbind a local binding into the global
2001 binding when the local binding disappeared. Inversely, don't unbind
2002 a global binding into a newly created local binding.
2003 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
2004 can specify the frame to use, when applicable. Adjust callers.
2005
15e12598 20062010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 2007 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
2008
2009 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
2010
f724825e
EZ
20112010-05-07 Eli Zaretskii <eliz@gnu.org>
2012
5cba3209
EZ
2013 * w32fns.c: Include w32.h.
2014 (Fw32_shell_execute): Decode the error message before passing it
2015 to `error'. (Bug#6126)
2016
d16bdfc3
EZ
2017 * msdos.c (dos_set_window_size):
2018 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
2019 instead of `XSYMBOL (foo)->value'.
2020
59d93e87
EZ
20212010-05-07 Eli Zaretskii <eliz@gnu.org>
2022
9fdec8bc
EZ
2023 Fix the MS-DOS build, broken by autoconfiscation.
2024
2025 * Makefile.in: Don't use Make-style comments past the "start of
2026 cpp stuff" line.
2027 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
2028
2029 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
2030 edited directly by msdos/sed1v2.inp).
f724825e 2031
2f86b22b
GM
20322010-05-07 Glenn Morris <rgm@gnu.org>
2033
2034 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
2035 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
2036 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
2037 move out of cpp section.
2038 * s/freebsd.h (LD_SWITCH_SYSTEM):
2039 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
2040 * s/netbsd.h (LD_SWITCH_SYSTEM):
2041 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
2042
49ebbd65
DN
20432010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2044
2045 Define LIB_STANDARD and START_FILES using autoconf.
2046 * s/usg5-4.h (LIB_STANDARD):
2047 * s/netbsd.h (START_FILES):
2048 * s/irix6-5.h (LIB_STANDARD):
2049 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
2050 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2051 * s/freebsd.h (START_FILES):
2052 * s/darwin.h (START_FILES):
2053 * s/cygwin.h (START_FILES):
2054 * s/aix4-2.h (LIB_STANDARD):
2055 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
2056 * Makefile.in (STARTFILES): Rename to START_FILES, define using
2057 autoconf, not cpp.
2058
d43c06d6
DN
20592010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
2060
28823648
DN
2061 Remove NEED_BSDTTY and NEED_UNISTD_H.
2062 * s/hpux10-20.h (NEED_BSDTTY): Remove.
2063 * s/aix4-2.h (NEED_UNISTD_H): Remove.
2064 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
2065 <sys/ptyio.h> and <unistd.h>.
2066
aca00430
DN
2067 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
2068
d43c06d6
DN
2069 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
2070 * s/gnu.h (START_FILES): Remove empty definition.
2071
3e56b11d
JD
20722010-05-06 Jan Djärv <jan.h.d@swipnet.se>
2073
2074 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
2075
e3cf0cde
GM
20762010-05-06 Glenn Morris <rgm@gnu.org>
2077
2078 * Makefile.in (CPP, LN_S): Remove unused variables.
2079
774b9a60
SM
20802010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2081
2082 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
2083
4ab92842
LM
20842010-05-05 Lawrence Mitchell <wence@gmx.li>
2085
2086 * m/sparc.h: Fix typo in earlier change.
2087
178f2507
SM
20882010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2089
2090 Misc tweaks.
2091 * eval.c (Fdefvaralias): Remove unintended nested if.
2092 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
2093
80f00217 20942010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
2095
2096 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
2097
ef03a4e6
DN
20982010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2099
58eb6cf0
DN
2100 Remove BSD_PGRPS.
2101 * s/bsd-common.h (BSD_PGRPS): Remove undef.
2102 * s/gnu-linux.h (BSD_PGRPS): Remove.
2103 * term.c (dissociate_if_controlling_tty):
2104 * sysdep.c (narrow_foreground_group, widen_foreground_group)
2105 (init_sys_modes, reset_sys_modes):
2106 * emacs.c (main):
2107 * callproc.c (Fcall_process, child_setup): Remove code depending
2108 on BSD_PGRPS.
2109
ef03a4e6
DN
2110 Remove POSIX_SIGNALS.
2111 * s/usg5-4.h (POSIX_SIGNALS):
2112 * s/netbsd.h (POSIX_SIGNALS):
2113 * s/msdos.h (POSIX_SIGNALS):
2114 * s/ms-w32.h (POSIX_SIGNALS):
2115 * s/hpux11.h (POSIX_SIGNALS):
2116 * s/gnu.h (POSIX_SIGNALS):
2117 * s/gnu-linux.h (POSIX_SIGNALS):
2118 * s/freebsd.h (POSIX_SIGNALS):
2119 * s/darwin.h (POSIX_SIGNALS):
2120 * s/cygwin.h (POSIX_SIGNALS):
2121 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
2122 * s/unixware.h:
2123 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
2124 * process.c (create_process):
2125 * syssignal.h:
2126 * sysdep.c (wait_for_termination, init_signals):
2127 * process.c (create_process):
2128 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
2129 remove all code that assumes the contrary.
2130
49628785
GM
21312010-05-04 Glenn Morris <rgm@gnu.org>
2132
27a2cdfc
GM
2133 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
2134 variable.
2135 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2136 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
2137 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2138 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
2139 LD_SWITCH_SYSTEM_tmp.
2140 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
2141 New variables, set by configure.
2142
eb21eab5
GM
2143 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2144 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
2145 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2146 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
2147 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
2148
49628785
GM
2149 * s/aix4-2.h (C_SWITCH_SYSTEM):
2150 * m/alpha.h (C_SWITCH_MACHINE):
2151 Move to configure.in.
2152 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
2153 New variables, set by configure.
2154 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
2155 $c_switch_machine and $c_switch_system.
2156
7dff330b
DN
21572010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2158
2159 * s/hpux10-20.h (LIB_STANDARD): New definition.
2160 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
2161 on it, not used anymore.
2162
53967e09
CY
21632010-05-03 Chong Yidong <cyd@stupidchicken.com>
2164
2165 * eval.c (internal_condition_case_n): Rename from
2166 internal_condition_case_2.
2167 (internal_condition_case_2): New function.
2168
2169 * xdisp.c (safe_call): Use internal_condition_case_n.
2170
2171 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
2172 (internal_delete_file, Frename_file): Callers changed.
2173
2174 * buffer.c (Fkill_buffer):
2175 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
2176
2177 * lisp.h: Update prototypes.
2178
3dee6fdb
GM
21792010-05-03 Glenn Morris <rgm@gnu.org>
2180
2181 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
2182 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
2183 (LIBXT): Set with configure, not cpp.
2184 (LIBX): Remove.
2185 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
2186
a101e0fb
DN
21872010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2188
2189 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
2190 The FreeBSD is not needed, the default works, Solaris version is
2191 not needed, and the remaining case is not supported by configure.
2192
f63d0028
JD
21932010-05-02 Jan Djärv <jan.h.d@swipnet.se>
2194
2195 * xsmfns.c (CHDIR_OPT): New define.
2196 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
2197 restarting emacs.
2198
2199 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
2200 shut_down_emacs.
2201
2202 * emacs.c (USAGE1): Mention --chdir.
2203 (main): Handle --chdir.
2204 (standard_args): Add --chdir.
2205 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
2206 #5552).
2207
e4814a9f
DN
22082010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
2209
cd03c74a
DN
2210 Remove LD_SWITCH_MACHINE.
2211 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
2212 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
2213
c3a398a1
DN
2214 Clean up IRIX code.
2215 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
2216 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
2217
87e7285c
DN
2218 Clean up AIX code.
2219 * m/ibmrs6000.inp: Remove file, unused.
2220 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
2221 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
2222 definition ...
2223 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
2224
80f00217
JB
2225 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
2226 unused.
e4814a9f 2227
59ca28de
EZ
22282010-05-01 Eli Zaretskii <eliz@gnu.org>
2229
197daef4
EZ
2230 Emulate POSIX_SIGNALS on MS-Windows.
2231
2232 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
2233 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
2234
2235 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
2236 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
2237 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
2238
80f00217
JB
2239 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
2240 New stubs.
197daef4 2241
af7c7572
EZ
2242 Miscellaneous fixes of bidi display.
2243
59ca28de
EZ
2244 * xdisp.c (find_row_end): New function, refactored from display_line.
2245 (display_line): Use it.
017ea819
EZ
2246 (extend_face_to_end_of_line): In almost-filled rows, extend only
2247 if the row is R2L and not continued.
166e930d 2248 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 2249 Preserve overlay and string info in row->end.
166e930d
EZ
2250 (insert_left_trunc_glyphs): Support addition of left truncation
2251 glyphs to R2L rows.
b47e0dcf 2252 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
2253 glyph between adjacent windows. Fix a crash when a display string
2254 is continued to the next line. Don't return zero if cursor was
2255 found by `cursor' property of a display string.
b47e0dcf
EZ
2256 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
2257 test for that explicitly.
59ca28de 2258
7acac9f4
GM
22592010-05-01 Glenn Morris <rgm@gnu.org>
2260
2261 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
2262 for clarity.
2263 (OTHER_OBJ): Remove.
2264 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
2265 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
2266
45841e65
KK
22672010-05-01 Karel Klíč <kklic@redhat.com>
2268
2269 * fileio.c (Ffile_selinux_context): Context functions may return null.
2270
afc61943
DN
22712010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
2272
80f00217 2273 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 2274
5a1bb006
GM
22752010-04-30 Glenn Morris <rgm@gnu.org>
2276
2277 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
2278 (OTHER_OBJ): Define as a separate variable, for clarity.
2279
210af043
J
22802010-04-30 Jan Djärv <jan.h.d@swipnet.se>
2281
2282 * xsettings.c: include limits.h and update file comment.
2283
0a7df391
GM
22842010-04-30 Glenn Morris <rgm@gnu.org>
2285
d5096f16
GM
2286 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
2287 Set with configure, not cpp.
2288 (LIBW): Remove, replace with $TOOLKIT_LIBW.
2289
7eb1ac33
GM
2290 * Makefile.in (mallocobj): Remove.
2291 (otherobj): Simplify using @OTHER_OBJ@.
2292
517d086b
GM
2293 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
2294 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
2295 Don't bother making nsgui.h dependency platform-specific.
2296
0a7df391
GM
2297 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
2298
d6d23852
SM
22992010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
2300
d2630aef
SM
2301 * process.c (read_process_output, exec_sentinel): Don't burp if the
2302 sentinel/filter kills the current buffer (bug#6060).
2303
f9dddf52 2304 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
2305 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
2306 Remove unused var `args'.
2307 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
2308 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
2309 * doc.c (store_function_docstring): Use XSETCAR.
2310
f1e3642a
GM
23112010-04-28 Glenn Morris <rgm@gnu.org>
2312
faf535f8
GM
2313 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
2314 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
2315
c40f9449
GM
2316 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
2317
658f86ca
GM
2318 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
2319 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
2320
bc0b5f61
GM
2321 * Makefile.in (FONT_OBJ): New, set by configure.
2322 (FONT_DRIVERS): Use $FONT_OBJ.
2323
294c50a0
GM
2324 * Makefile.in (LIBXMU): Set with configure, not cpp.
2325 * s/aix4-2.h (LIBXMU):
2326 * s/hpux10-20.h (LIBXMU):
2327 Remove definition, now set in configure.
2328
e6ec4e99
GM
2329 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
2330
f1e3642a
GM
2331 * m/amdx86-64.h [i386]: Move this test to configure.in.
2332
c6ea2936
GM
23332010-04-27 Glenn Morris <rgm@gnu.org>
2334
8fdac2c3
GM
2335 * Makefile.in (LIBXTR6): Set with configure, not cpp.
2336 * s/unixware.h (NEED_LIBW): Remove definition.
2337
986fb647
GM
2338 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
2339 (TOOLKIT_LIBW): New, set by configure.
2340 (@X_TOOLKIT_TYPE@): No longer define it.
2341
c6ea2936
GM
2342 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
2343 (MOTIF_LIBW): Set with configure, not cpp.
2344 * s/aix4-2.h (LIB_MOTIF):
2345 * s/gnu-linux.h (LIB_MOTIF):
2346 * s/unixware.h (LIB_MOTIF): Move to configure.in.
2347
aaa36002
DN
23482010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
2349
2350 Reduce CPP usage.
2351 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
2352 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
2353 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
2354 definitions and undefs. Inline definitions in the only user.
2355 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 2356
b678dd8b
GM
23572010-04-27 Glenn Morris <rgm@gnu.org>
2358
76cda504
GM
2359 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
2360 since the defaults (set by the system file) are fine in most cases.
2361 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
2362 * m/ibms390x.h (START_FILES, LIB_STANDARD):
2363 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
2364 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
2365 Remove definitions, since they are set correctly in s/gnu-linux.h.
2366 * s/freebsd.h (START_FILES, LIB_STANDARD):
2367 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2368 * s/hpux10-20.h (START_FILES):
2369 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
2370 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
2371
b678dd8b
GM
2372 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
2373 (MOTIF_LIBW): Use $LIBXP.
2374 (otherobj): Use $WIDGET_OBJ.
2375
9452ded1
DN
23762010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
2377
7e10844c
DN
2378 * Makefile.in (LIBS_MACHINE): Remove, unused.
2379
9452ded1
DN
2380 Use autoconf instead of cpp for LIB_MATH.
2381 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
2382 * s/cygwin.h (LIB_MATH): Likewise.
2383 * Makefile.in (LIB_MATH): Do not define with cpp.
2384 (LIBES): Use autoconf for LIB_MATH.
2385
fcebfc6a
KH
23862010-04-26 Kenichi Handa <handa@m17n.org>
2387
2388 * composite.c (Ffind_composition_internal): Fix the return value
2389 for an automatic composition.
2390
39e2ad1b
DN
23912010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
2392
2393 Remove all NO_ARG_ARRAY uses.
2394 * fns.c (concat2, concat3, nconc2):
2395 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
2396 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
2397 * m/xtensa.h (NO_ARG_ARRAY):
2398 * m/template.h (NO_ARG_ARRAY):
2399 * m/sparc.h (NO_ARG_ARRAY):
2400 * m/sh3.h (NO_ARG_ARRAY):
2401 * m/mips.h (NO_ARG_ARRAY):
2402 * m/macppc.h (NO_ARG_ARRAY):
2403 * m/iris4d.h (NO_ARG_ARRAY):
2404 * m/intel386.h (NO_ARG_ARRAY):
2405 * m/ibms390x.h (NO_ARG_ARRAY):
2406 * m/ibms390.h (NO_ARG_ARRAY):
2407 * m/ibmrs6000.h (NO_ARG_ARRAY):
2408 * m/ia64.h (NO_ARG_ARRAY):
2409 * m/hp800.h (NO_ARG_ARRAY):
2410 * m/arm.h (NO_ARG_ARRAY):
2411 * m/amdx86-64.h (NO_ARG_ARRAY):
2412 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
2413
adf4f59c
EZ
24142010-04-25 Eli Zaretskii <eliz@gnu.org>
2415
6bdf5d65
EZ
2416 * xdisp.c (display_line): Don't assume 2nd call to
2417 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
2418 (iterate_out_of_display_property): New function, body from pop_it.
2419 (pop_it): Use it.
adf4f59c 2420
dfbbda83
GM
24212010-04-24 Glenn Morris <rgm@gnu.org>
2422
2423 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
2424 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
2425 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
2426 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
2427
2d4018aa
EZ
24282010-04-24 Eli Zaretskii <eliz@gnu.org>
2429
a49884a6
EZ
2430 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
2431 use `get_next_display_element' and `set_iterator_to_next' to
2432 advance to the next character, when looking for the character that
2433 begins the next row.
2434
76db6fcc 2435 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
2436 definition of "struct Lisp_Symbol".
2437
70eab5c1
GM
24382010-04-24 Glenn Morris <rgm@gnu.org>
2439
2440 * Makefile.in (CRT_DIR): New variable, set by configure.
2441 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
2442 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
2443
1ad4cc3d
DN
24442010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2445
e769f484
DN
2446 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
2447
4196ff33
DN
2448 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
2449
879b0ee4
DN
2450 Remove redundant flags.
2451 * s/freebsd.h (C_SWITCH_SYSTEM):
2452 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
2453 * s/netbsd.h (C_SWITCH_SYSTEM):
2454 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
2455 of these.
2456
03cbbcb8
DN
2457 Simplify m/intel386.h.
2458 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
2459 user: ecrt0.c.
2460 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
2461 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
2462 the only user: s/unixware.h.
2463 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
2464 from m/intel386.h.
2465 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
2466 moved here from m/intel386.h.
2467
1ad4cc3d
DN
2468 * m/mips.h: Remove #if 0 code.
2469
8785b888
EZ
24702010-04-23 Eli Zaretskii <eliz@gnu.org>
2471
728588cc
EZ
2472 Fix display of composed characters from L2R scripts in bidi buffers.
2473 * xdisp.c (set_iterator_to_next, next_element_from_composition):
2474 After advancing IT past the composition, resync the bidi iterator
2475 with IT's position. (Bug#5977)
2476
a63f80b4
DN
24772010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2478
2479 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
2480 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
2481
ff5dec5c
SM
24822010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
2483
2484 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
2485
8785b888
EZ
24862010-04-23 Eli Zaretskii <eliz@gnu.org>
2487
58ccf243 2488 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
2489 * xdisp.c (pop_it): When the stack is popped after displaying
2490 from a string, bidi-iterate to exit from the text portion covered
2491 by the `display' property or overlay. (Bug#5988, bug#5920)
2492
feeb1604
DN
24932010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2494
8e324eb6
DN
2495 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
2496 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
2497
809fcaba
DN
2498 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
2499 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
2500
ed710380
DN
2501 Simplify STARTFILES definition.
2502 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
2503 relying on Makefile.in to define it.
2504 * s/cygwin.h (START_FILES): Likewise.
2505 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
2506
feeb1604
DN
2507 Clean up Solaris code.
2508 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
2509 (LIB_MOTIF): Remove, configure takes care of this.
2510 (NOT_USING_MOTIF): Remove, unused.
2511 * xrdb.c: Remove #if 0-ed #include.
2512 (SYSV): Remove conditional for old SysV.
2513 * sysdep.c (closedir): Remove conditional code for Solaris,
2514 Solaris has closedir.
2515
a0d0b563
JD
25162010-04-22 Jan Djärv <jan.h.d@swipnet.se>
2517
2518 * xsettings.c (read_and_apply_settings): Check if current_font is
2519 NULL before strcmp (Bug#6001).
2520
56bae7c7
DN
25212010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
2522
2523 Clean up HP-UX files.
2524 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
2525 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
2526 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
2527 * s/hpux10-20.h: ... to the only user, here.
2528
372b7a95
EZ
25292010-04-21 Eli Zaretskii <eliz@gnu.org>
2530
2531 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
2532 use buffer-local values of paragraph-start and paragraph-separate.
2533 <paragraph_start_re, paragraph_separate_re>: Rename from
2534 fallback_paragraph_start_re and fallback_paragraph_separate_re.
2535 (Bug#5992)
2536
f904c0f9
JD
25372010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2538
2539 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
2540 current_tool_bar_style are new.
2541 (store_config_changed_event): Rename from store_font_changed_event.
2542 (XSETTINGS_TOOL_BAR_STYLE): New define.
2543 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
2544 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
2545 HAVE_XFT.
2546 (something_changedCB): store_font_changed_event is now
2547 store_config_changed_event
2548 (parse_settings): Rename from parse_xft_settings. Read
2549 non-xft xsettings outside #ifdef HAVE_XFT.
2550 (read_settings): Renamed from read_xft_settings.
2551 (apply_xft_settings): Take current settings as parameter. Do not
2552 call read_(xft)_settings.
2553 (read_and_apply_settings): New function.
2554 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
2555 read_and_apply_settings if there are settings to be read.
2556 (init_xsettings): Renamed from init_xfd_settings.
2557 Call read_and_apply_settings unconditionally.
2558 (xsettings_initialize): Call init_xsettings.
2559 (Ftool_bar_get_system_style): New function.
2560 (syms_of_xsettings): Define Qmonospace_font_name and
2561 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 2562 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 2563 dynamic-setting.
31a01b90 2564 Move misplaced HAVE_GCONF
f904c0f9
JD
2565
2566 * xsettings.h (Ftool_bar_get_system_style): Declare.
2567
2568 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
2569 Qtext, Qboth, Qboth_horiz are new.
2570 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
2571 Vtool_bar_style, tool_bar_max_label_size.
2572
2573 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
2574
2575 * keyboard.c: QClabel is new.
2576 (parse_tool_bar_item): Take out QClabel from tool bar items.
2577 Try to construct a label if ther is no QClabel.
2578 (syms_of_keyboard): Intern :label as QClabel.
2579
2580 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
2581 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
2582 New.
2583
2584 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
2585 dynamic-setting.el.
2586
2587 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
2588 (xg_make_tool_item, xg_show_toolbar_item): New function.
2589 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
2590 Call xg_make_tool_item to make a tool bar item.
2591 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
2592
2593 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
2594 into account for toolbars.
2595
c632dfda
JD
25962010-04-21 Jan Djärv <jan.h.d@swipnet.se>
2597
2598 * data.c (make_blv): Declarations before code (Bug#5993).
2599
10efe302
GM
26002010-04-21 Glenn Morris <rgm@gnu.org>
2601
2602 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
2603 Define using autoconf, not cpp.
2604 (LIBXSM): New variable, set by autoconf.
2605 (LIBXT): Use $LIBXSM.
2606
4285ac5a
DN
26072010-04-21 Dan Nicolaescu <local_user@dannlt>
2608
3ec759e7
DN
2609 Remove NOMULTIPLEJOBS, unused.
2610 * s/template.h (NOMULTIPLEJOBS):
2611 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
2612
4285ac5a
DN
2613 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
2614 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
2615 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
2616 detects -znocombreloc and passes it to the linker
2617 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
2618
2807228d
GM
26192010-04-21 Glenn Morris <rgm@gnu.org>
2620
2621 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
2622
574c05e2
KK
26232010-04-21 Karel Klíč <kklic@redhat.com>
2624
2625 * Makefile.in (LIBSELINUX_LIBS): New.
2626 (LIBES): Add $LIBSELINUX_LIBS.
2627 * eval.c, lisp.h (call7): New function.
2628 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
2629 (Ffile_selinux_context, Fset_file_selinux_context):
2630 New functions.
2631 (Fcopy_file): New parameter preserve-selinux-context.
2632 (Frename_file): Preserve selinux context when renaming by copy-file.
2633
91eac4bb 26342010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 2635 Eli Zaretskii <eliz@gnu.org>
91eac4bb 2636
50426a04
JB
2637 Don't depend on cm.c or termcap.c on Windows, use stubs.
2638 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
2639 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
2640 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
2641 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
2642 (sys_tputs, sys_tgetstr): New stubs.
2643 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
2644 (tputs, tgetstr): New; define to sys_*.
91eac4bb 2645
938efb77
JB
26462010-04-20 Juanma Barranquero <lekktu@gmail.com>
2647
2648 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
2649
b4bf28b7
SM
26502010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2651
8b1e1112
SM
2652 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
2653 Just signal a warning rather than an error when inside a let.
2654 (Fmake_variable_frame_local): Add the same test.
2655
933ac235
SM
2656 * font.c (syms_of_font): Make the style table vars read-only.
2657
b4bf28b7
SM
2658 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
2659 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
2660
2661 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
2662
93d68d0c
EZ
26632010-04-20 Eli Zaretskii <eliz@gnu.org>
2664
2665 Fix R2L paragraph display on TTY.
2666
2667 * xdisp.c (unproduce_glyphs): New function.
2668 (display_line): Use it when produced glyphs are discarded from R2L
2669 glyph rows.
2670 (append_composite_glyph): In R2L rows, prepend the glyph rather
2671 than appending it.
2672
2673 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
2674 rather than append it. Set up the resolved_level and bidi_type
2675 attributes of the appended glyph.
283ccc18
EZ
2676 (produce_special_glyphs): Mirror the backslash continuation
2677 character in R2L lines.
93d68d0c 2678
283ccc18 2679 Implement display of R2L paragraphs in GUI sessions.
26cdf528 2680
283ccc18
EZ
2681 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
2682 append_stretch_glyph.
2683 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
2684 off-by-one error in computing x at end of text in the row.
2685 (append_stretch_glyph): In reversed row, prepend the glyph rather
2686 than append it. Set resolved_level and bidi_type of the glyph.
2687 (extend_face_to_end_of_line): If the row is reversed, prepend a
2688 stretch glyph whose width is such that the rightmost glyph will be
2689 drawn at the right margin of the window. Fix off-by-one error on
2690 TTY frames in testing whether a line needs face extension. Fix
2691 face extension at ZV. If this is the last glyph row, use
2692 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
2693 region face.
2694 (set_cursor_from_row, display_line): Use
26cdf528
EZ
2695 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
2696 row->continuation_lines_width.
283ccc18
EZ
2697 (next_element_from_buffer): Don't call bidi_paragraph_init if we
2698 are at ZV. Fixes a crash when reseated to ZV by
2699 try_window_reusing_current_matrix.
45903529
EZ
2700 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
2701 which happens with R2L glyph rows. Fixes a crash when inserting a
2702 character at end of an R2L line.
283ccc18
EZ
2703 (set_cursor_from_row): Don't be fooled by truncated rows: don't
2704 treat them as having zero-width characters. Improve comments.
2705 Don't reverse pos_before and pos_after for reversed glyph rows.
2706 Set cursor.x to negative value when the cursor might be on the
2707 left fringe.
2708 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
2709 left fringe, not the right one.
f951a506
EZ
2710 (notice_overwritten_cursor, draw_phys_cursor_glyph)
2711 (erase_phys_cursor): For reversed cursor_row, support cursor on
2712 the left fringe.
2713
283ccc18
EZ
2714 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
2715 of continuation indicators on the fringes.
2716 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
2717 left fringe.
2718
f951a506
EZ
2719 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
2720 draw cursor on the left fringe.
2721
2722 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
2723 cursor on the left fringe.
2724
f951a506
EZ
2725 * dispnew.c (update_text_area): Handle reversed desired rows when
2726 the cursor is on the left fringe.
2727 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
2728 below, not by 0, for when the cursor is on the left fringe.
2729
3bb49aaf
JD
27302010-04-20 Jan Djärv <jan.h.d@swipnet.se>
2731
2732 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
2733 widget is a scrollbar.
2734
c0be27fd
KH
27352010-04-20 Kenichi Handa <handa@m17n.org>
2736
2737 * charset.c (char_charset): Consider Vcharset_non_preferred_head
2738 only when the arg CHARSET_LIST is nil.
2739
ce5b453a
SM
27402010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2741
2742 Make variable forwarding explicit rather the using special values.
2743 Basically, this makes the structure of buffer-local values and object
2744 forwarding explicit in the type of Lisp_Symbols rather than use
2745 special Lisp_Objects for that. This tends to lead to slightly more
2746 verbose code, but is more C-like, simpler, and makes it easier to make
2747 sure we handled all cases, among other things by letting the compiler
2748 help us check it.
2749 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
2750 Removing forwarding objects.
2751 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
2752 (struct Lisp_Symbol): Make the various forms of variable-forwarding
2753 explicit rather than hiding them inside Lisp_Object "values".
2754 (XFWDTYPE): New macro.
2755 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
2756 (XBUFFER_LOCAL_VALUE): Remove.
2757 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
2758 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
2759 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
2760 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
2761 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
2762 Remove the Lisp_Misc_* header.
2763 (struct Lisp_Buffer_Local_Value): Redefine.
2764 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
2765 (struct Lisp_Misc_Any): Add filler to get the right size.
2766 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
2767 Lisp_Intfwd.
2768 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
2769 (DEFVAR_KBOARD): Allocate a forwarding object.
2770 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
2771 (let_shadows_global_binding_p): New function.
2772 (union Lisp_Val_Fwd): New type.
2773 (make_blv): New function.
2774 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
2775 (store_symval_forwarding, swap_in_global_binding, Fboundp)
2776 (swap_in_symval_forwarding, find_symbol_value, Fset)
2777 (let_shadows_buffer_binding_p, set_internal, default_value)
2778 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
2779 (Fkill_local_variable, Fmake_variable_frame_local)
2780 (Flocal_variable_p, Flocal_variable_if_set_p)
2781 (Fvariable_binding_locus):
2782 * xdisp.c (select_frame_for_redisplay):
2783 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
2784 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
2785 * frame.c (store_frame_param):
2786 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
2787 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
2788 value structure.
2789 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
2790 (clone_per_buffer_values): Only adjust markers into the current buffer.
2791 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
2792 (Fbuffer_local_value, set_buffer_internal_1)
2793 (swap_out_buffer_local_variables):
2794 Adapt to the new symbol value structure.
2795 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
2796 (defvar_per_buffer): Take a new arg for the fwd object.
2797 (buffer_lisp_local_variables): Return a proper alist (different fix
2798 for bug#4138).
2799 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
2800 (Fgarbage_collect): Don't handle buffer_defaults specially.
2801 (mark_object): Handle new symbol value structure rather than the old
2802 special Lisp_Misc_* objects.
2803 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
2804 * term.c (set_tty_color_mode):
2805 * bidi.c (bidi_initialize): Don't access the ->value field directly.
2806 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
2807 a buffer_local_flags.
2808 * print.c (print_object): Get rid of impossible forwarding objects.
2809
fd3998ff
EZ
28102010-04-19 Eli Zaretskii <eliz@gnu.org>
2811
2812 * bidi.c (bidi_get_type, bidi_get_category)
2813 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
2814 (bidi_type_of_next_char, bidi_level_of_next_char):
2815 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 2816
e42cd1a7
JB
28172010-04-19 Juanma Barranquero <lekktu@gmail.com>
2818
2819 * dired.c (Ffile_attributes): Fix typo in docstring.
2820
6e104790 28212010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
2822
2823 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
2824 NSInteger (Bug#5811).
2825
6e104790 28262010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
2827
2828 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
2829 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
2830
6e104790 28312010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
2832
2833 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
2834
6e104790
SM
28352010-04-19 Chong Yidong <cyd@stupidchicken.com>
2836
2837 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
2838 terminal frames (Bug#5837).
2839
37dcfea0
EZ
28402010-04-19 Eli Zaretskii <eliz@gnu.org>
2841
d1da276f
EZ
2842 * .gdbinit (xsubchartable): New command.
2843
37dcfea0
EZ
28442010-04-19 Eli Zaretskii <eliz@gnu.org>
2845
2846 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 2847 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
2848 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
2849 and
2850 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
2851
e9515805
SM
28522010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2853
2854 * alloc.c (Fpurecopy): Hash-cons if requested.
2855 (syms_of_alloc): Update purify-flag docstring.
2856
22aa44a8
JD
28572010-04-18 Jan Djärv <jan.h.d@swipnet.se>
2858
2859 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
2860 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
2861
ebb5722e
EZ
28622010-04-17 Eli Zaretskii <eliz@gnu.org>
2863
2864 Fix a crash when an NSM character is inserted at BEGV.
2865
2866 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
2867 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
2868 NEUTRAL_B or UNKNOWN_BT.
2869
0f4442ef
EZ
28702010-04-16 Eli Zaretskii <eliz@gnu.org>
2871
2872 * xdisp.c (set_cursor_from_row): Don't consider possibility of
2873 other rows with cursor unless they are different from this row and
2874 this row is part of a continued line. (Bug#5943)
2875
7d4e45f8
DN
28762010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
2877
2878 * s/freebsd.h: Restore osreldate.h include.
2879 Suggested by Naohiro Aota.
2880
5ba5ec85
J
28812010-04-16 Jan Djärv <jan.h.d@swipnet.se>
2882
2883 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
2884
20af301d
CY
28852010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
2886
2887 * s/cygwin.h: Avoid linking against static libgcc.
2888
a4b000fb
JL
28892010-04-15 Juri Linkov <juri@jurta.org>
2890
2891 * window.c: Add Qscroll_command.
2892 Remove Vscroll_preserve_screen_position_commands.
2893 (window_scroll_pixel_based, window_scroll_line_based): Check the
2894 `scroll-command' property on the last command instead of searching
2895 the last command in Vscroll_preserve_screen_position_commands.
2896 (syms_of_window): Initialize and staticpro `Qscroll_command'.
2897 Put Qscroll_command property on Qscroll_up and Qscroll_down.
2898 (scroll-preserve-screen-position): Doc fix.
2899 (Vscroll_preserve_screen_position_commands): Remove variable.
2900
bc319ba4
DN
29012010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2902
6bb24457
DN
2903 * xdisp.c (message): Do not use NO_ARG_ARRAY.
2904
19d4c244
DN
29052010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
2906
2907 Reduce cpp use in Makefile.in.
2908 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
2909 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
2910 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
2911 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
2912 (CRT0_COMPILE): Remove, inline it in the only user.
2913
32129746
JL
29142010-04-14 Juri Linkov <juri@jurta.org>
2915
2916 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
2917 `scroll-up-command' and `M-v' from `scroll-down' to
2918 `scroll-down-command'.
2919
9013a7f8
JL
29202010-04-14 Juri Linkov <juri@jurta.org>
2921
2922 * window.c (Vscroll_preserve_screen_position_commands): New variable
2923 with the default value as the list of Qscroll_down and Qscroll_up.
2924 (window_scroll_pixel_based, window_scroll_line_based): Search the
2925 last command in the list Vscroll_preserve_screen_position_commands
2926 instead of comparing with Qscroll_up and Qscroll_down.
2927
4bef8d26
JD
29282010-04-13 Jan Djärv <jan.h.d@swipnet.se>
2929
92848133
JD
2930 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
2931 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
2932 does that.
2933
4bef8d26
JD
2934 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
2935 to zero.
2936
58b963f7
SM
29372010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2938
84164a0d
SM
2939 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
2940
2b0a91e7
SM
2941 Try to solve the problem of spurious EOF chars in long lines of text
2942 sent to interactive subprocesses.
2943 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
2944 (system_process_attributes): Remove unused var `ttotal'.
2945 * process.c (send_process): Don't bother breaking long line with EOF
2946 chars when talking to ttys any more.
2947 (wait_reading_process_output): Output a warning when called in such
2948 a way that it could block without being interruptible.
2949
58b963f7
SM
2950 Try to detect file modification within the same second.
2951 * buffer.h (struct buffer): New field modtime_size.
2952 * buffer.c (reset_buffer): Initialize it.
2953 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
2954 (Fverify_visited_file_modtime): Check it.
2955 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
2956 (Fset_visited_file_modtime): Set (or clear) it.
2957
01f5787b
SM
29582010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2959
2960 * process.c (status_notify): Remove unused var `ro'.
2961
83725342
JD
29622010-04-12 Jan Djärv <jan.h.d@swipnet.se>
2963
2964 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
2965 more than one visual (Bug#5938).
2966
b9465836
DN
29672010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
2968
50426a04
JB
2969 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
2970 Undefine.
b9465836 2971
8d9c8ece
DN
29722010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
2973
b1f52161
DN
2974 Remove C_SWITCH_SYSTEM_TEMACS.
2975 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
2976 (malloc, realloc, free): Use emacs, not temacs for conditional
2977 definition.
2978
2979 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
2980 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
2981
8d9c8ece
DN
2982 Use autoconf, not cpp for some variables.
2983 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
2984 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
2985 (ALL_CFLAGS): Use them as make variables.
2986 (really-lwlib, really-oldXMenu): Do not pass them.
2987
1ecb2d3f
JD
29882010-04-11 Jan Djärv <jan.h.d@swipnet.se>
2989
2990 * xmenu.c (apply_systemfont_to_dialog): New.
2991 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
2992
3a4fa2f2
SM
29932010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2994
97e53006
SM
2995 * process.c (exec_sentinel): Preserve current-buffer.
2996
3a4fa2f2
SM
2997 * process.c (read_process_output): Move the save-current-buffer to
2998 apply to both the filter and the non-filter branches.
2999
88df7221
DN
30002010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
3001
3002 * s/msdos.h (UNEXEC): New definition.
3003
5634ff85
YM
30042010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3005
6eff5c3d
YM
3006 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
3007 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
3008
3009 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
3010 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
3011 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
3012 TRY_WINDOW_CHECK_MARGINS.
3013
3014 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
3015 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
3016 width only when it is for padding.
5634ff85 3017
b13aef54
J
30182010-04-09 Jan Djärv <jan.h.d@swipnet.se>
3019
3020 * xfns.c (Fx_show_tip): Call try_window in a loop until
3021 fonts_changed_p is zero (Bug#2423).
3022
21d28484
EZ
30232010-04-08 Eli Zaretskii <eliz@gnu.org>
3024
3025 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
3026 the end of TEXT_AREA. (Bug#5856)
3027
0269ef77
JD
30282010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3029
3030 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
3031 HAVE_GCONF.
3032
5930fe97
EZ
30332010-04-08 Eli Zaretskii <eliz@gnu.org>
3034
3035 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
3036 prev.orig_type, for resolving type of NSM. (Bug#5858)
3037
99852628
JD
30382010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3039
3040 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
3041 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
3042 in current_font.
3043 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
3044 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
3045 New functions.
3046 (syms_of_xsettings): Initialize current_font.
3047 defsubr Sfont_get_system_normal_font.
99852628
JD
3048
3049 * xsettings.h (Ffont_get_system_normal_font,
3050 xsettings_get_system_normal_font): Declare.
3051
3052 * xfns.c (extern xlwmenu_default_font): Remove.
3053 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
3054 to xlwmenu.c.
3055
3056 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
3057 menu items in UTF-8.
3058
3059 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
3060 (apply_systemfont_to_menu): New function.
3061 (set_frame_menubar, create_and_show_popup_menu): Call
3062 apply_systemfont_to_menu.
3063
7fc874c4
J
30642010-04-07 Jan Djärv <jan.h.d@swipnet.se>
3065
3066 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
3067 FRAME_LINE_TO_PIXEL_Y.
3068
3069 * xterm.c (x_set_window_size_1): Don't add border_width/height to
3070 pixelwidth/height.
3071
863bf481
DN
30722010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
3073
5e5a3b92
DN
3074 Simplify code for HP machines.
3075 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
3076 for GNU_LINUX, not needed.
3077 (UNEXEC, NEED_BSDTTY): Move definitions...
3078 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
3079
863bf481
DN
3080 * m/iris4d.h (UNEXEC): Move definition ...
3081 * s/irix6-5.h (UNEXEC): ... here.
3082
3e6bec3b
JD
30832010-04-04 Jan Djärv <jan.h.d@swipnet.se>
3084
3085 * xfns.c (set_machine_and_pid_properties): New function.
3086 (Fx_create_frame): Call set_machine_and_pid_properties.
3087
2912322b
SM
30882010-04-03 Eli Zaretskii <eliz@gnu.org>
3089
1502b819
EZ
3090 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
3091 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
3092 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
3093
2912322b
SM
3094 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
3095 in this function. (Bug#5703)
3096
30972010-04-03 Chong Yidong <cyd@stupidchicken.com>
3098
3099 * nsterm.h: Fix last change.
3100
c435b432
DN
31012010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
3102
a568f507
DN
3103 * m/intel386.h (NO_REMAP): Move definition ...
3104 * s/msdos.h (NO_REMAP): ... here.
3105
4cd9f6c2
DN
3106 * m/vax.h (CRT0_DUMMIES): Remove, unused.
3107
c435b432
DN
3108 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
3109 used on those platforms.
3110
42a2c622
DN
31112010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
3112
3113 Remove extern errno declarations.
3114 * xterm.c:
3115 * xrdb.c:
3116 * w32term.c:
3117 * unexec.c:
3118 * unexaix.c:
3119 * sysdep.c:
3120 * process.c:
3121 * lread.c:
3122 * keyboard.c:
3123 * floatfns.c:
3124 * filelock.c:
3125 * fileio.c:
3126 * emacs.c (main):
3127 * ecrt0.c:
3128 * dispnew.c:
3129 * callproc.c:
3130 * buffer.c: Remove errno extern declarations.
3131 * s/netbsd.h (NEED_ERRNO): Remove.
3132
8224f93d
DN
31332010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
3134
3135 Remove all uses of LIBX11_SYSTEM.
3136 * Makefile.in (LIBX11_SYSTEM): Remove.
3137 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
3138 instead.
3139
814062c7
EZ
31402010-04-01 Eli Zaretskii <eliz@gnu.org>
3141
ed68db4d
EZ
3142 Remove support for DJGPP v1.x (bug#5813).
3143
3144 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
3145 * s/msdos.h:
3146 * unexec.c (make_hdr, copy_text_and_data):
3147 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 3148 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
3149 (IT_set_terminal_modes, __write, _rename, gethostname)
3150 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
3151 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
3152 the value of __DJGPP__.
ed68db4d
EZ
3153 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
3154 compatibility code.
8224f93d
DN
3155 * lread.c:
3156 * gmalloc.c (memalign):
3157 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
3158 * emacs.c (main):
3159 * dosfns.c (init_dosfns):
ed68db4d
EZ
3160 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
3161
52f4d8d5
EZ
31622010-04-01 Eli Zaretskii <eliz@gnu.org>
3163
814062c7
EZ
3164 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
3165 string with `cursor' property comes from an `after-string'
3166 overlay. (Bug#5816)
3167
0dc2e11d
GM
31682010-04-01 Glenn Morris <rgm@gnu.org>
3169
3170 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
3171 Define as Makefile variables.
3172 (LIBX): Use above variables rather than directly using autoconf.
3173
1d29df59
DN
31742010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
3175
3176 Clean up BSD_SYSTEM use.
3177 * xterm.c:
3178 * process.c:
3179 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
3180 for including <sys/ioctl.h>.
3181 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
3182 code is only used for MSDOS.
3183
1546c559
JL
31842010-03-31 Juri Linkov <juri@jurta.org>
3185
3186 * image.c: Add `Qextension_data'.
3187 (syms_of_image): Initialize and staticpro `Qextension_data'.
3188 (Fimage_metadata): Rename from `Fimage_extension_data'.
3189 (gif_load): Put GIF extension data to the property
3190 `Qextension_data'.
3191
6521c534
CY
31922010-03-31 Chong Yidong <cyd@stupidchicken.com>
3193
3194 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
3195 * nsterm.h: Fix prototype.
3196
52c30783
EZ
31972010-03-31 Eli Zaretskii <eliz@gnu.org>
3198
3199 * xdisp.c (highlight_trailing_whitespace): Support highlight of
3200 trailing whitespace in right-to-left rows.
3201
855a0da7
SM
32022010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3203
3204 Get rid of the direct_output optimizations.
3205 * keyboard.c (nonundocount): Remove extern declaration.
3206 (command_loop_1): Remove brittle optimisation for cheap and
3207 common operations.
3208 * xdisp.c (redisplay_internal): Don't bother checking
3209 redisplay_performed_directly_p any more.
3210 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
3211 any more.
3212 * dispnew.c (redisplay_performed_directly_p)
3213 (direct_output_for_insert, direct_output_forward_char):
3214 * dispextern.h (redisplay_performed_directly_p)
3215 (direct_output_for_insert, direct_output_forward_char): Remove.
3216 * cmds.c (nonundocount): Make it static.
3217
85738751 32182010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
3219
3220 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
3221
85738751 32222010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
3223
3224 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
3225 invisible (Bug#5766).
3226
85738751 32272010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 3228
855a0da7
SM
3229 * xdisp.c (x_consider_frame_title, update_window_cursor):
3230 Remove HAVE_NS conditionals.
194d44e7 3231 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
3232
3233 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
3234 filename for the title.
3235 (ns_set_doc_edited): Do nothing if the selected window is a
3236 minibuffer window.
3237
3238 * nsterm.h: Add prototypes for ns_set_name_as_filename and
3239 ns_set_doc_edited.
3240
3241 * nsterm.m: Remove unneeded prototype.
3242
85738751 32432010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
3244
3245 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
3246 in the DOC file. (Bug#5336)
3247
85738751 32482010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
3249
3250 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
3251
75d1428c
SM
32522010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3253
3254 * window.c (keys_of_window): Remove redundant/overridden bindings.
3255
82043cfb
EZ
32562010-03-30 Eli Zaretskii <eliz@gnu.org>
3257
3258 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
3259 Restore original behavior when the iterator is not bidi_p.
3260
b5dd0ae7
DN
32612010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3262
3263 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
3264
bd924a5d
EZ
32652010-03-30 Eli Zaretskii <eliz@gnu.org>
3266
3267 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
3268 are outside the range of cached character positions.
3269
3580374b
JB
32702010-03-30 Juanma Barranquero <lekktu@gmail.com>
3271
3272 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
3273
a7b02820
EZ
32742010-03-30 Eli Zaretskii <eliz@gnu.org>
3275
3276 Initial support for bidirectional editing.
3277
3278 * Makefile.in (obj): Include bidi.o.
3279 (bidi.o): New target.
3280
3281 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
3282 ($(BLD)/bidi.$(O)): New target.
3283
3284 * bidi.c: New file.
3285
3286 * buffer.h (struct buffer): New members bidi_display_reordering
3287 and bidi_paragraph_direction.
3288
3289 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
3290 and bidi_paragraph_direction.
3291 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
3292 and bidi-paragraph-direction.
3293 (Fbuffer_swap_text): Swap the values of
3294 bidi_display_reordering and bidi_paragraph_direction.
3295
3296 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
3297 (bidi_type_t, bidi_dir_t): New types.
3298 (bidi_saved_info, bidi_stack, bidi_it): New structures.
3299 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
3300 prev_stop, base_level_stop, and eol_pos.
3301 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
3302 (IT_STACK_SIZE): Enlarge to 5.
3303 (struct glyph_row): New member reversed_p.
3304 <string_buffer_position>: Update prototype.
3305 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
3306 glyph_row if bidi_it.paragraph_dir == R2L.
3307 (struct glyph): New members resolved_level and bidi_type.
3308
3309 * dispnew.c (direct_output_forward_char): Give up if we need bidi
3310 processing or buffer's direction is right-to-left.
3311 (prepare_desired_row): Preserve the reversed_p flag.
3312 (row_equal_p): Compare the reversed_p attributes as well.
3313
3314 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
3315 bidi_init_it and set it->paragraph_embedding from the current
3316 buffer's value of bidi_paragraph_direction.
3317 (reseat_1): Initialize bidi_it.first_elt.
3318 (set_iterator_to_next, next_element_from_buffer): Use the value of
3319 paragraph_embedding to determine the paragraph direction.
3320 (set_iterator_to_next): Under bidi reordering, call
3321 bidi_get_next_char_visually. Call bidi_paragraph_init if the
3322 new_paragraph flag is set in the bidi iterator.
3323 (next_element_from_buffer): If bidi_it.first_elt is set,
3324 initialize paragraph direction and find the first character to
3325 display in the visual order. If reseated to a middle of a line,
3326 prime the bidi iterator starting at the line's beginning. Handle
3327 the situation where we overstepped stop_charpos due to
3328 non-linearity of the bidi iteration. Likewise for when we back up
3329 beyond the previous stop_charpos. When moving across stop_charpos,
3330 record it in prev_stop.
3331 (display_line): Set row->end and it->start for the next row to the
3332 next character in logical order. Always extend reversed_p rows to
3333 the end of line, even if they end at ZV. Copy the reversed_p flag
3334 to the next glyph row. Keep calling set_cursor_from_row for
3335 bidi-reordered rows even if we already have a possible candidate
3336 for cursor position. Set row_end after all the row's glyphs have
3337 been produced, by looping over the glyphs. Record the position
3338 after EOL in it->eol_pos, and use it to set end_pos of the last
3339 row produced for a continued line.
3340 <Qright_to_left, Qleft_to_right>: New variables.
3341 (syms_of_xdisp): Initialize and staticpro them.
3342 (string_buffer_position_lim): New function.
3343 (string_buffer_position): Most of code moved to
3344 string_buffer_position_lim. Last argument and return value are
3345 now EMACS_INT; all callers changed.
3346 (set_cursor_from_row): Rewritten to support bidirectional text and
3347 reversed glyph rows.
3348 (text_outside_line_unchanged_p, try_window_id): Disable
3349 optimizations if we are reordering bidirectional text and the
3350 paragraph direction can be affected by the change.
3351 (append_glyph, append_composite_glyph)
3352 (produce_image_glyph, append_stretch_glyph): Set the
3353 resolved_level and bidi_type members of each glyph.
3354 (append_glyph): If the glyph row is reversed, prepend the glyph
3355 rather than appending it.
3356 (handle_stop_backwards): New function.
3357 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
3358 (reseat): call handle_stop_backwards to recompute prev_stop and
3359 base_level_stop for the new position.
3360 (handle_invisible_prop): Under bidi iteration, skip invisible text
3361 using bidi_get_next_char_visually. If we are `reseat'ed, init the
3362 paragraph direction. Update IT->prev_stop after skipping
3363 invisible text.
3364 (move_it_in_display_line_to): New variables prev_method
3365 and prev_pos. Compare for strict equality in
3366 BUFFER_POS_REACHED_P.
3367 (try_cursor_movement): Examine all the candidate rows that occlude
3368 point, to return the best match. If rows are bidi-reordered
3369 and point moved backwards, back up to the row that is not a
3370 continuation line, and start looking for a suitable row from
3371 there.
3372
3373 * term.c (append_glyph): Reverse glyphs by pre-pending them,
3374 rather than appending, if the glyph_row's reversed_p flag is set.
3375 Set the resolved_level and bidi_type members of each glyph.
3376
3377 * .gdbinit (pbiditype): New command.
3378 (pgx): Use it to display bidi level and type of the glyph.
3379 (pitx): Display some bidi information about the iterator.
3380 (prowlims, pmtxrows): New commands.
3381
32a8894e
DN
33822010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3383
3384 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
3385 * s/usg5-4.h (LIBS_DEBUG):
3386 * s/irix6-5.h (C_DEBUG_SWITCH):
3387 * s/gnu-linux.h (LIBS_DEBUG):
3388 * s/darwin.h (LIBS_DEBUG):
3389 * s/bsd-common.h (LIBS_DEBUG):
3390 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
3391 * m/iris4d.h (LIBS_DEBUG):
3392 * m/hp800.h (LIBS_DEBUG): Remove definitions.
3393
3394 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
3395 (LIBS_DEBUG): Remove definition.
3396
649dbf36
CY
33972010-03-27 Chong Yidong <cyd@stupidchicken.com>
3398
3399 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
3400 Windows.
3401
cad4261f
YM
34022010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3403
3404 * process.c (Fmake_network_process): Don't call turn_on_atimers around
3405 `connect' (Bug#5723).
3406
cd591dbc
HE
34072010-03-25 Helmut Eller <eller.helmut@gmail.com>
3408
3409 * process.c (Fmake_network_process): Call `select' for interrupted
3410 `connect' rather than creating new socket (Bug#5173).
3411
e867cb5d 34122010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
3413
3414 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
3415
3416 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
3417
3418 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
3419
e867cb5d 34202010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
3421
3422 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
3423 XLoadQueryFont.
3424
e867cb5d 34252010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
3426
3427 * coding.c (decode_coding_ccl): Fix previous change for the
3428 multibyte case.
fb608df3
KH
3429 (encode_coding_ccl): Don't setup ccl program here. Fix for the
3430 case that the output buffer is fullfilled.
3431 (encode_coding): Setup ccl program here.
fbdc1721 3432
5845f0ed
DN
34332010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
3434
814fb708
DN
3435 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
3436
5845f0ed
DN
3437 Simplify LIBS_MACHINE definitions.
3438 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
3439 * m/iris4d.h (LIBS_MACHINE): Likewise.
3440 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
3441 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 3442 * s/netbsd.h: Remove commented out code.
5845f0ed 3443
b7064064
DN
34442010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
3445
df7734b2
DN
3446 Remove dead code dealing with POSIX_SIGNALS.
3447 * atimer.c (set_alarm): Remove dead code, all USG systems define
3448 POSIX_SIGNALS.
3449 * data.c (arith_error): Likewise.
3450 * keyboard.c (input_available_signal, handle_user_signal)
3451 (interrupt_signal): Likewise.
3452 * process.c (sigchld_handler): Likewise.
3453 (create_process): Remove if 0 code. Remove HPUX conditional when
3454 !defined (POSIX_SIGNALS), it cannot be true.
3455 * syssignal.h: Remove USG5_4 and USG conditionals when
3456 !POSIX_SIGNALS, they cannot be true.
3457
b7064064
DN
3458 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
3459 NO_SOCK_SIGIO, not used anymore.
3460
55da5ee3
DN
34612010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
3462
0be96e3a
DN
3463 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
3464 support vax on BSDs.
3465
55da5ee3
DN
3466 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
3467 * s/aix4-2.h (ORDINARY_LINK): ... here.
3468
c0282183
AS
34692010-03-21 Andreas Schwab <schwab@linux-m68k.org>
3470
82c3d67a
AS
3471 * Makefile.in (abs_builddir): Define.
3472 (bootstrap_exe): Use it.
3473 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 3474
3613edce
SM
34752010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3476
3477 * Makefile.in (bootstrap_exe): Use an absolute name.
3478
7f110ddc
DN
34792010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3480
22e87574
DN
3481 Remove support for old GNU/Linux using libc version 5.
3482 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
3483 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
3484
05a670e6
DN
3485 Consolidate redundant definitions in s/bsd-common.h.
3486 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3487 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3488 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
3489 doing it in all files that include this one.
3490 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3491 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3492 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3493 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3494 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3495 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3496 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3497 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3498 (LDAV_SYMBOL, KERNEL_FILE): Remove.
3499
2968f561
DN
3500 Consolidate redundant definitions.
3501 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
3502 it's undefined in all files that include this one.
3503 (POSIX_SIGNALS): Define here instead of doing it in all files that
3504 include this one.
3505 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3506 (POSIX_SIGNALS): Do not define.
3507 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3508 (POSIX_SIGNALS): Do not define.
3509 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
3510 (POSIX_SIGNALS): Do not define.
3511
15d25dc0
DN
3512 Remove support for old UNIX System V systems.
3513 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
3514 * s/usg-5-4-2.h: Remove.
3515
07e339e4
DN
3516 Remove support for Solaris on PPC and for old versions.
3517 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
3518 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
3519 that cancel each other.
3520 * s/sol2-3.h:
3521 * s/sol2-4.h:
3522 * s/sol2-5.h: Remove.
3523 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
3524 (NO_REMAP): Remove, unused.
3525 (UNEXEC): Move definition ...
3526 * s/aix4-2.h (UNEXEC): ... here.
3527
7f110ddc
DN
3528 * s/openbsd.h: Remove support for non-ELF and for systems that do
3529 not support shared libraries.
3530 * s/netbsd.h:
3531 * s/freebsd.h: Likewise.
3532
605f35cd
DN
35332010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3534
3535 Remove non-working support for lynxos 3.0.
3536 * s/lynxos.h: Remove file.
3537
3538 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
3539 COFF_BSD_SYMBOLS, nothing defines it anymore.
3540
aed71cf4
DN
35412010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3542
3543 Remove obsolete uses of HAVE_SHM.
3544 * emacs.c (standard_args):
3545 (Fdump_emacs):
3546 (syms_of_emacs): Remove code depending on HAVE_SHM.
3547
3548 * alloc.c: Remove HAVE_SHM dependent definition.
3549
3550 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
3551
aded53ff
GM
35522010-03-18 Glenn Morris <rgm@gnu.org>
3553
17284745
GM
3554 * emacs.c (USAGE4): Hard-code bug address.
3555 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
3556 (bug_reporting_address): Remove.
3557 (main): Don't call bug_reporting_address.
3558
aded53ff
GM
3559 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
3560 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
3561
303500aa
CY
35622010-03-15 Chong Yidong <cyd@stupidchicken.com>
3563
3564 * xfns.c (Fx_create_frame):
3565 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
3566 on left.
3567
cef3058f
CY
35682010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
3569
3570 * editfns.c (Fformat): Account for string precision when computing
3571 field width (Bug#5710).
3572
a647d59d
CY
35732010-03-12 Chong Yidong <cyd@stupidchicken.com>
3574
4fa42018
CY
3575 * xfns.c (Fx_create_frame): Set default to Qright.
3576
a647d59d
CY
3577 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
3578 all window systems.
3579
6da23aaa
EZ
35802010-03-12 Eli Zaretskii <eliz@gnu.org>
3581
a96f6398 3582 These changes remove termcap.c from the build on Posix platforms.
83d02def 3583 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
3584 (MSDOS_OBJ): ...to here.
3585 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
3586 now identical to when LIBS_TERMCAP is defined.
3587
3588 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
3589
3590 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
3591
a96f6398 3592 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 3593
288f9fc0
CY
35942010-03-10 Chong Yidong <cyd@stupidchicken.com>
3595
3596 * Branch for 23.2.
3597
d48cd3f4
SM
35982010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3599
3600 Cleanup setup of gl_state in various parts of the code.
3601 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
3602 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
3603 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
3604 (skip_chars):
3605 * regex.c (regex_compile): Use it.
3606 (re_compile_pattern): Don't set gl_state.current_syntax_table since
3607 it's now set in regex_compile when/if we need it.
3608
618db430
SM
36092010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
3610
c0335e02
SM
3611 Make it possible to C-g in a tight bytecode loop again (bug#5680).
3612 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
3613 (QUIT): Use it to consolidate code and remove redundancy.
3614 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
3615
254c06a8
SM
3616 * regex.c (regex_compile): Setup gl_state as well.
3617
618db430
SM
3618 * syntax.c (skip_chars): Setup gl_state (bug#3823).
3619 (in_classes): Use CONSP before XCAR/XCDR.
3620
233f0c9f
CY
36212010-03-03 Chong Yidong <cyd@stupidchicken.com>
3622
3623 * keymap.c (Fwhere_is_internal): Use Fequal to compare
3624 definitions, so that keyboard macros are correctly handled
3625 (Bug#5481).
3626
75f80e63
EZ
36272010-03-02 Eli Zaretskii <eliz@gnu.org>
3628
3629 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
3630 text that could be relocated inside the call to emacs_mule_char.
3631 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
3632 (CODING_DECODE_CHAR): Add a comment describing its purpose.
3633
dcfb9bc4
KH
36342010-03-02 Kenichi Handa <handa@m17n.org>
3635
fc9a17bc
KH
3636 * character.c (parse_str_as_multibyte): Fix handling of the
3637 multibyte form of raw-bytes.
3638 (str_as_multibyte): Likewise.
3639
dcfb9bc4
KH
3640 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
3641 form of raw-bytes.
3642
412c01b6
CY
36432010-02-28 Chong Yidong <cyd@stupidchicken.com>
3644
3645 * charset.c (load_charset_map_from_file)
3646 (load_charset_map_from_vector): Zero out allocated
3647 charset_map_entries before using them.
3648
df7e1ea0
AS
36492010-02-27 Andreas Schwab <schwab@linux-m68k.org>
3650
3651 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
3652
fe69a722
CY
36532010-02-27 Chong Yidong <cyd@stupidchicken.com>
3654
4ed28cf4
CY
3655 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
3656 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 3657
7379cfce
KH
36582010-02-26 Kenichi Handa <handa@m17n.org>
3659
f88cc4d6
KH
3660 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
3661
7379cfce
KH
3662 * xdisp.c (reseat_to_string): Fix previous change.
3663
cf2fdcfb
CY
36642010-02-26 David Reitter <david.reitter@gmail.com>
3665
3666 * nsfont.m (nsfont_draw): ns_antialias_text should be a
3667 Lisp_Object (Bug#4736).
3668
cc6c7c75
KH
36692010-02-25 Kenichi Handa <handa@m17n.org>
3670
3671 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
3672
32e737d7
JD
36732010-02-24 Jan Djärv <jan.h.d@swipnet.se>
3674
3675 * xterm.c (XTflash): Move declarations before statements.
3676
3677 * gtkutil.c (xg_get_gdk_display): Remove (unused).
3678 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
3679 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
3680 (xg_create_tool_bar): Remove unused variables.
3681 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 3682 (xg_create_frame_widgets): Remove variable grav.
32e737d7 3683
676cae9f
CY
36842010-02-21 Chong Yidong <cyd@stupidchicken.com>
3685
3686 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
3687
886cc2b8
SM
36882010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
3689
3690 * term.c (fatal): Add a final \n if needed (bug#5596).
3691
ddb2d8e2
CY
36922010-02-18 Chong Yidong <cyd@stupidchicken.com>
3693
3694 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
3695
2a4f8d3d
GM
36962010-02-18 Glenn Morris <rgm@gnu.org>
3697
3698 * callint.c (Finteractive): Doc fix.
3699
ebaf11b6
KH
37002010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
3701
886cc2b8
SM
3702 * coding.c (record_conversion_result):
3703 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
3704 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
3705 memory allocation error.
3706
d0396581
KH
37072010-02-17 Kenichi Handa <handa@m17n.org>
3708
886cc2b8
SM
3709 * coding.c (decode_coding_ccl): Don't setup ccl program here.
3710 Fix for the case that the output buffer is fullfilled.
d0396581
KH
3711 (decode_coding): Setup ccl program here. Keep looping when the
3712 decoder stopped because the output buffer is
3713 fullfilled (bug#5534).
3714
3715 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
3716
98599f74
JD
37172010-02-13 Jan Djärv <jan.h.d@swipnet.se>
3718
471e4f04 3719 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 3720 bug #5571.
886cc2b8 3721 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 3722 overdrawn.
98599f74 3723
182659ae
JD
37242010-02-10 Jan Djärv <jan.h.d@swipnet.se>
3725
3726 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
3727 doing_interact here.
3728 (ice_connection_closed): New function.
3729 (x_session_check_input, smc_die_CB, ice_io_error_handler)
3730 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
3731 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
3732 returns I/O error.
3733 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
3734 bug #5512.
3735
9be32c4e 37362010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
3737
3738 * nsfont.m (nsfont_open): The system's value for the font descent
3739 is negative, so round it down to avoid clipping.
3740
a2f3eb19
CY
37412010-02-06 Chong Yidong <cyd@stupidchicken.com>
3742
3743 * charset.c (load_charset_map_from_file)
3744 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 3745 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 3746
3088147c
CY
37472010-02-05 Chong Yidong <cyd@stupidchicken.com>
3748
3749 * charset.c (load_charset_map_from_file): Allocate large
3750 charset_map_entries structure on the heap rather than the stack.
3751 (Bug#5526).
3752
b57d9029
KH
37532010-01-31 Kenichi Handa <handa@m17n.org>
3754
3755 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 3756 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 3757
c67d885b
CY
37582010-01-31 Chong Yidong <cyd@stupidchicken.com>
3759
3760 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
3761 <deactivated@gmail.com> (Bug#3605).
3762
8fab2362
CY
37632010-01-31 David De La Harpe Golden <david@harpegolden.net>
3764
3765 * fileio.c (Frename_file): Correctly rename symlinks to
3766 directories (Bug#5496).
3767
cb2a62f2
CY
37682010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
3769
3770 * nsterm.m (ns_ring_bell): Handle visible bell like X.
3771
944c7a26
AS
37722010-01-30 Andreas Schwab <schwab@linux-m68k.org>
3773
3774 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
3775
c024ac08
CY
37762010-01-29 Chong Yidong <cyd@stupidchicken.com>
3777
3778 * frame.c (DEFAULT_ROWS): Change default to 35.
3779
3780 * xfns.c (x_default_font_parameter): Change default XFT font to
3781 monospace-10 (Bug#3643).
3782
af93af83
EZ
37832010-01-29 Eli Zaretskii <eliz@gnu.org>
3784
3785 * w32inevt.c (key_event): Remove unnecessary comparison of
3786 event->uChar.AsciiChar with 128.
3787
ca0eb708
CY
37882010-01-28 Chong Yidong <cyd@stupidchicken.com>
3789
b242dbfc
CY
3790 * fileio.c (Frename_file): Fix last change (Bug#5487).
3791
ca0eb708
CY
3792 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
3793
3794 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
3795
45d45af5
JD
37962010-01-28 Jan Djärv <jan.h.d@swipnet.se>
3797
3798 * xfns.c (Fx_create_frame): Remove window size matching code from
3799 2010-01-15.
a73f9c9d 3800 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 3801
7e233730
JR
38022010-01-27 Jason Rumney <jasonr@gnu.org>
3803
3804 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 3805 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 3806
86e893e3
KH
38072010-01-27 Kenichi Handa <handa@m17n.org>
3808
3809 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 3810 pattern string (Bug#4209).
86e893e3 3811
8719abec
CY
38122010-01-27 David De La Harpe Golden <david@harpegolden.net>
3813
3814 * fileio.c (Frename_file): Call copy-directory and
3815 delete-directory for directories, in order to handle cross-device
3816 renaming (Bug#3353).
3817
844794c8
JD
38182010-01-25 Jan Djärv <jan.h.d@swipnet.se>
3819
aa3e13b5 3820 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 3821 sizes 24 and 10. Bug #3643.
844794c8 3822
bd4b5750
SM
38232010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
3824
8dc1adf6 3825 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
3826 * keymap.c (shadow_lookup): Add `remap' arg.
3827 (describe_map, describe_vector): Update calls to shadow_lookup.
3828 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
3829 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
3830 perform remapping during shadow_lookup check of remapped_sequences.
3831
285d07e2
CY
38322010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
3833
3834 * image.c (png_load): Use png_sig_cmp instead of the obsolete
3835 png_check_sig, which has been removed in libpng 1.4.
3836
c6d09b8d
CY
38372010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
3838
3839 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
3840 lacks this header file).
3841
3d782998
YM
38422010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3843
3844 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
3845 as in Emacs 22.
3846
2aff7c53
YM
38472010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3848
3849 * lisp.h (make_pure_string): String pointer arg now points to const.
3850
3851 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
3852 args now point to const.
3853
74327f7a
EZ
38542010-01-22 Eli Zaretskii <eliz@gnu.org>
3855
3856 * lread.c (Fload): Don't treat files without .elc extension as
3857 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
3858 them. (bug#5303)
3859
4d1e6632
KH
38602010-01-20 Kenichi Handa <handa@m17n.org>
3861
3862 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
3863 treat the source as actual byte sequence.
3864
1fdede8f
AM
38652010-01-19 Alan Mackenzie <acm@muc.de>
3866
3867 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 3868 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
3869 `signal_after_change_p' to `coherent_change_p', and make the
3870 invocation of `modify_region' conditional on it.
3871
67477f30
JD
38722010-01-19 Jan Djärv <jan.h.d@swipnet.se>
3873
3874 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
3875 for debug purpose.
3876 (syms_of_xsettings): Declare xft-settings.
3877
244b023e
CY
38782010-01-18 Chong Yidong <cyd@stupidchicken.com>
3879
3880 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
3881
617364fe
CY
38822010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3883
3884 * xterm.c (event_handler_gdk): Block input (Bug#5037).
3885
4fe22cdf
CY
38862010-01-16 Chong Yidong <cyd@stupidchicken.com>
3887
3888 * emacs.c (standard_args): Adjust arg priorities to reflect how
3889 they are processed in startup.el.
3890
e118d2be
AS
38912010-01-16 Andreas Schwab <schwab@linux-m68k.org>
3892
3893 * Makefile.in (lisp, shortlisp): Update.
3894
523ae620
SM
38952010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3896
3897 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
3898 code, link the new kboard into all_kboard before running Lisp code,
3899 and protect the new terminal with GCPRO (Bug#5365).
3900 (x_term_init): Remove unused var `atom'.
3901 (x_delete_display, x_delete_terminal): Remove unused var `i'.
3902
f0d13888
JD
39032010-01-15 Jan Djärv <jan.h.d@swipnet.se>
3904
3905 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
3906 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
3907 to find out usable size of the desktop. Don't make frames larger than
ac146f82 3908 this. Bug #3643.
f0d13888 3909
cc320f07
KH
39102010-01-15 Kenichi Handa <handa@m17n.org>
3911
3912 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
3913
7ffdf101
CY
39142010-01-15 Chong Yidong <cyd@stupidchicken.com>
3915
3916 * nsterm.m (Qnone): Define.
3917
3918 * nsfns.m (Qnone): Move definition to nsterm.m.
3919
d12bd917
KH
39202010-01-14 Kenichi Handa <handa@m17n.org>
3921
3922 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
3923 systems.
3924
d9a7c140
KH
39252010-01-14 Kenichi Handa <handa@m17n.org>
3926
3927 Make auto-composition work on all buffers even if they are
3928 fundamental mode.
3929
3930 * composite.c (Vauto_composition_mode): New variable.
3931 (composition_compute_stop_pos): Check Vauto_composition_mode
3932 instead of Vauto_composition_function.
3933 (composition_adjust_point, Ffind_composition_internal): Likewise.
3934 (syms_of_composite): Declare Lisp variable
3935 "auto-composition-mode" here.
3936
63286bb2
CY
39372010-01-13 Chong Yidong <cyd@stupidchicken.com>
3938
3939 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
3940 during call to vendor-specific-keysyms (Bug#5365).
3941
c2623ee7
YM
39422010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3943
3944 * keyboard.c (input_available_signal) [SYNC_INPUT]:
3945 Call SIGNAL_THREAD_CHECK (Bug#5333).
3946
3947 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
3948 Call SIGNAL_THREAD_CHECK.
3949
0b5397c2
SM
39502010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
3951
3952 Try to fix bug#5314. This is probably not the final word, tho.
3953 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
3954 recent-auto-save-p as a side-effect.
3955 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
3956 * buffer.c (Fkill_buffer, reset_buffer):
3957 * editfns.c (Fsubst_char_in_region):
3958 * fileio.c (Finsert_file_contents, Fdo_auto_save)
3959 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
3960
dc954cb2
KH
39612010-01-13 Kenichi Handa <handa@m17n.org>
3962
3963 Display buffer name, etc. in mode line by composing correctly.
3964
3965 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
3966 STRING is not nil.
0b5397c2 3967 (display_mode_element): Adjust for the change of
dc954cb2
KH
3968 decode_mode_spec and display_line.
3969 (decode_mode_spec): Change arg MULTIBYTE to STRING.
3970 (display_string): Handle the case that STRING is non-null and
3971 LISP_STRING is not nil.
3972
0b5397c2
SM
3973 * xterm.c (x_draw_composite_glyph_string_foreground):
3974 Pay attention to s->face->overstrike.
dc954cb2
KH
3975
3976 * composite.c (composition_reseat_it): Don't check PT if STRING is
3977 non nil.
3978
4a00eaca
YM
39792010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3980
3981 * keyboard.c (read_char): Don't apply previous change when current
3982 buffer is unchanged by command execution.
3983
60abb287
JD
39842010-01-12 Jan Djärv <jan.h.d@swipnet.se>
3985
3986 * keyboard.c (read_char): Return after executing from special map.
3987
893db5bc
GM
39882010-01-12 Glenn Morris <rgm@gnu.org>
3989
3990 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
3991 bug-gnu-emacs rather than emacs-pretest-bug.
3992
4d03ece0
CY
39932010-01-11 Chong Yidong <cyd@stupidchicken.com>
3994
3995 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
3996 initializing the Lisp variables that depend on them.
3997
1df47e38
YM
39982010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3999
4000 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
4001 Clear areas that will not be updated after change of menu bar lines.
4002 Clear the menu bar window's current matrix when the window gets empty.
4003
2f1c6384
CY
40042010-01-09 Chong Yidong <cyd@stupidchicken.com>
4005
e398c61c
CY
4006 * intervals.h, textprop.c (extend_property_ranges): Return value
4007 and args changed. Discard properties that begin at or after the
4008 new end (Bug#5306).
4009
4010 * editfns.c (Fformat): Caller changed.
4011
e5a29a10
CY
4012 * nsterm.m (ns_set_default_prefs): Delete function.
4013 (syms_of_nsterm): Initialize ns_command_modifier,
4014 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
4015 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
4016
2f1c6384
CY
4017 * xdisp.c (pos_visible_p): Check for invisible text at the correct
4018 position (Bug#4040).
4019
d427a9fa
EZ
40202010-01-09 Eli Zaretskii <eliz@gnu.org>
4021
4022 * editfns.c (Ffloat_time): Doc fix.
4023
21b9df2f
JD
40242010-01-09 Jan Djärv <jan.h.d@swipnet.se>
4025
4026 * xfns.c (Fx_create_frame): Don't create frame larger than display
4027 by default bug#3643.
4028
4b00d3b1
YM
40292010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4030
4031 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
4032 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
4033 windows above internal border.
4034
4035 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
4036 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
4037 windows above internal border.
4038
4039 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
4040 tool bar windows specially.
4041
4042 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
4043
4044 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
4045 specially.
4046 (XTflash): Take account of menu bar height.
4047
4048 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
4049 specially.
4050
5075d853
JD
40512010-01-08 Jan Djärv <jan.h.d@swipnet.se>
4052
ac146f82 4053 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
4054 also be true before we can return early (bug #5339).
4055
474217c8
CY
40562010-01-06 David Reitter <david.reitter@gmail.com>
4057
4058 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
4059 (Fns_display_usable_bounds): Rewrite, computing bounds properly
4060 (Bug#3233).
4061
c0e6d47d
JD
40622010-01-06 Jan Djärv <jan.h.d@swipnet.se>
4063
d0cf45b7
JD
4064 * font.c (font_open_entity): Enable chache and call cached_font_ok
4065 for the driver if defined.
4066 (QCuser_spec): New symbol.
4067 (font_spec_from_name): Save name as user-spec.
4068 (font_load_for_lface): Keep user-spec instead of name.
4069 (font_open_by_name): Save name as user-spec.
4070 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 4071 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
4072
4073 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
4074 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
4075 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
4076
4077 * font.h (struct font_driver): Add cached_font_ok.
4078
c0e6d47d
JD
4079 * xterm.c (x_clear_frame): Queue draw for scroll bars.
4080
7c583cd8
JD
40812010-01-05 Jan Djärv <jan.h.d@swipnet.se>
4082
4083 * xterm.c (x_new_font): Move code for setting rows/cols before
4084 resizing ...
ac146f82 4085 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
4086
4087 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
4088 (xg_frame_resized, xg_frame_set_char_size):
4089 Call xg_clear_under_internal_border.
7c583cd8 4090 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 4091
03f77f0a
CY
40922010-01-05 Chong Yidong <cyd@stupidchicken.com>
4093
4094 * keyboard.c (read_key_sequence): Catch keyboard switch after
4095 making a new tty frame (Bug#5095).
4096
2a1ef5be
KH
40972010-01-05 Kenichi Handa <handa@m17n.org>
4098
4099 * fontset.c (fontset_find_font): Fix getting the frame pointer.
4100
e3eb1dae
SM
41012010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
4102
4103 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
4104 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
4105 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
4106
777013f2
MA
41072010-01-03 Michael Albinus <michael.albinus@gmx.de>
4108
4109 * dbusbind.c (xd_add_watch): Improve debug message.
4110 (xd_remove_watch): Improve debug message. If DATA is the session
4111 bus, unset D-Bus session environment.
4112 (Fdbus_init_bus): Pass the bus as argument to
4113 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 4114
8932b1c2
CY
41152010-01-01 Chong Yidong <cyd@stupidchicken.com>
4116
87231e2c
CY
4117 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
4118
4801c5fa
CY
4119 * lread.c (syms_of_lread): Make it clearer that these are the
4120 names of loaded files (Bug#5068).
4121
8932b1c2
CY
4122 * eval.c (run_hook_with_args): Handle the case where the global
4123 value has the obsolete single-function form (Bug#5026).
4124
11e3c684
CY
41252009-12-27 Chong Yidong <cyd@stupidchicken.com>
4126
4127 * minibuf.c (Fall_completions): Minor optimization.
4128
5b28ce35
EZ
41292009-12-26 Eli Zaretskii <eliz@gnu.org>
4130
5ce6e4f4
JB
4131 * .gdbinit (pgx): Fix display of composite glyphs.
4132 Display cmp.from and cmp.to as well.
4133 (pitx): Fix last change.
5b28ce35 4134
bcffff46
KH
41352009-12-25 Kenichi Handa <handa@m17n.org>
4136
4137 * composite.h (composition_adjust_point): Update prototype.
4138
4139 * composite.c (composition_reseat_it): Don't make a composition
4140 spanning over point.
4141 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
4142 composable characters.
4143 (composition_adjust_point): New arg NEW_PT. Callers changed.
4144
4145 * keyboard.c (command_loop_1): Force redisplay if the last point
4146 was within a composition.
4147 (adjust_point_for_property): Don't adjust point for automatic
4148 composition when called after buffer modification.
4149
3f670e9a
EZ
41502009-12-19 Eli Zaretskii <eliz@gnu.org>
4151
5ce6e4f4
JB
4152 * .gdbinit (pitx): Don't use enum names, use their values.
4153 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
4154 (pgx): Don't use enum names, use their values.
4155 (pitmethod): New helper command.
4156 (pitx): Use it to display iteration method.
4157 (pgrowit): New command.
4158
ad903955
EZ
4159 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
4160
3f670e9a
EZ
4161 Update dependencies in Makefile.in.
4162
4163 * Makefile.in (alloc.o): Depend on termhooks.h.
4164 (atimer.o): Depend on blockinput.h.
4165 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
4166 and frame.h.
4167 (callint.o): Depend on systime.h, coding.h, and composite.h.
4168 (callproc.o): Depend on buffer.h.
4169 (casefiddle.o): Don't depend on charset.h.
4170 (casetab.o): Depend on character.h.
4171 (ccl.o): Depend on composite.h.
4172 (chartab.o): Depend on ccl.h.
4173 (cm.o): Depend on dispextern.h.
4174 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
4175 (coding.o): Don't depend on $(INTERVALS_H).
4176 (composite.o): Don't depend on dispextern.h explicitly (it's in
4177 $(INTERVALS_H)). Depend on ccl.h.
4178 (data.o): Depend on systime.h, coding.h, composite.h,
4179 dispextern.h, font.h, and ccl.h.
4180 (dired.o): Depend on composite.h.
4181 (dispnew.o): Depend on coding.h. Don't depend explicitly on
4182 composite.h (it's in $(INTERVALS_H)).
4183 (doc.o): Depend on systime.h, coding.h, and composite.h.
4184 (editfns.o): Don't depend explicitly on dispextern.h.
4185 (emacs.o): Depend on frame.h and coding.h.
4186 (eval.o): Depend on coding.h, composite.h, and xterm.h.
4187 (fileio.o): Depend on frame.h and commands.h. Don't depend
4188 explicitly on dispextern.h.
4189 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
4190 composite.h.
4191 (fns.o): Don't depend on termhooks.h.
4192 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
4193 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
4194 coding.h, $(INTERVALS_H), window.h, xterm.h.
4195 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
4196 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
4197 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
4198 fontset.h, ccl.h, and ftfont.h.
4199 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4200 (gtkutil.o): Depend on dispextern.h and composite.h.
4201 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
4202 termhooks.h, and ccl.h.
4203 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
4204 (intervals.o): Depend on systime.h and coding.h.
4205 (keyboard.o): Depend on composite.h and coding.h.
4206 (keymap.o): Depend on coding.h and frame.h.
4207 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
4208 (macros.o): Depend on systime.h, coding.h, and composite.h.
4209 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
4210 and atimer.h.
4211 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
4212 dispextern.h explicitly.
0b5397c2
SM
4213 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
4214 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
4215 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
4216 (regex.o): Don't depend on charset.h.
4217 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
4218 (search.o): Don't depend explicitly on composite.h.
4219 (sound.o): Depend on atimer.h and systime.h.
4220 (syntax.o): Don't depend explicitly on composite.h.
4221 (sysdep.o): Depend on coding.h and composite.h.
4222 (term.o): Depend on xterm.h and buffer.h.
4223 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
4224 (textprop.o): Don't depend on dispextern.h explicitly.
4225 (undo.o): Depend on dispextern.h.
4226 (window.o): Depend on coding.h and termhooks.h. Don't depend on
4227 dispextern.h and composite.h explicitly.
4228 (xdisp.o): Depend on ccl.h.
4229 (xfaces.o): Depend on coding.h and ccl.h.
4230 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
4231 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4232 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
4233 ftfont.h.
4234 (xgselect.o): New dependency.
4235 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
4236 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
4237 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
4238 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
4239 (xsmfns.o): Depend on frame.h and dispextern.h.
4240 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
4241 sysselect.h.
4242
7a6f7fea
AS
42432009-12-19 Andreas Schwab <schwab@linux-m68k.org>
4244
4245 * font.c (Fclear_font_cache): Pass correct cache argument to
4246 font_clear_cache.
4247
f4c21026
AS
42482009-12-16 Andreas Schwab <schwab@linux-m68k.org>
4249
4250 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
4251 twice.
4252
f7ab0997
CY
42532009-12-15 Chong Yidong <cyd@stupidchicken.com>
4254
4255 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
4256 calling file-remote-p. Reported by Jim Meyering.
4257
fa8e045a
MA
42582009-12-15 Michael Albinus <michael.albinus@gmx.de>
4259
4260 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 4261 avoid compiler warnings. (Bug #5217)
fa8e045a 4262
a63dba42
KH
42632009-12-14 Kenichi Handa <handa@m17n.org>
4264
4265 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
4266 in 8-bit encoding.
4267
5ce6e4f4 42682009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
4269
4270 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
4271 tooltip windows.
4272
223e5fc6
JD
42732009-12-13 Jan Djärv <jan.h.d@swipnet.se>
4274
36acb2a7
JD
4275 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
4276 Xatom_net_window_type.
4277
4278 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
4279 Xatom_net_window_type.
4280
b8f00677
JD
4281 * xterm.c (my_log_handler): New function.
4282 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 4283 so we can filter out buggy messages. (Bug #5120).
b8f00677 4284
e5f0bc9a
JD
4285 * xterm.c (xg_scroll_callback): Parameter list changed,
4286 use parameter GtkScrollType to determine scroll/line/page.
4287 Only allow dragging if a button < 4 is grabbed (bug #5177).
4288 (xg_end_scroll_callback): New function.
4289 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
4290 xg_create_scroll_bar.
4291
4292 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
4293 (scroll_end_callback): Remove.
4294 (xg_create_scroll_bar): Add parameter end_callback, bind it to
4295 button-release-event. Replace value-changed event with change-value,
4296 bug #5177,
4297 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
4298 bug #5177.
4299
4300 * gtkutil.h (XG_LAST_SB_DATA): Remove.
4301 (xg_create_scroll_bar): Add GCallback end_callback.
4302
223e5fc6
JD
4303 * xftfont.c (QClcdfilter): New variable.
4304 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
4305 (syms_of_xftfont): Initialize QClcdfilter.
4306
3c055b77
JD
43072009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4308
4309 * xsettings.c (struct xsettings): Add member seen.
4310 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 4311 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
4312 (apply_xft_settings): Only update Xft settings with what member seen
4313 indicates as new.
4314
05fe33ff
EZ
43152009-12-12 Eli Zaretskii <eliz@gnu.org>
4316
4317 * dispextern.h (struct text_pos): Use EMACS_INT;
4318 (struct glyph): Use EMACS_INT for charpos.
4319 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
4320 region_beg_charpos, region_end_charpos,
4321 redisplay_end_trigger_charpos, and also for
4322 iterator_stack_entry.end_charpos and
4323 iterator_stack_entry.stop_charpos.
4324
e8d7886a
JD
43252009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4326
5ce6e4f4 4327 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
4328 (xg_create_scroll_bar): Call scroll_end_callback on button release
4329 event (bug #5177).
4330 (xg_event_is_for_scrollbar): != replaced with ==.
4331
d0db2ec8
KH
43322009-12-12 Kenichi Handa <handa@m17n.org>
4333
4334 * ftfont.c (struct ftfont_info): New member matrix.
4335 (ftfont_open): Setup xftfont_info->matrix.
4336 (MFLTFontFT): New member matrix.
4337 (FLOOR, CEIL, ROUND): New macros.
4338 (ftfont_get_metrics): Handle matrix transformation.
4339 (ftfont_shape_by_flt): New arg matrix. Callers changed.
4340
4341 * xftfont.c (struct xftfont_info): New member matrix.
4342 (xftfont_open): Setup xftfont_info->matrix.
4343
43442009-12-10 Kenichi Handa <handa@m17n.org>
4345
4346 * xdisp.c (append_space_for_newline): Consider face-remapping.
4347
2cc7b62f
AS
43482009-12-09 Andreas Schwab <schwab@linux-m68k.org>
4349
b87dd913
AS
4350 * xsettings.c: Include "keyboard.h".
4351
eba5eb94
AS
4352 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
4353
2cc7b62f
AS
4354 Fix implicit function declarations.
4355 * cmds.c: Include "frame.h".
4356 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
4357 * frame.h: Move declaration of delete_frame outside of
4358 HAVE_WINDOW_SYSTEM.
4359
a4ef73c8
CY
43602009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
4361
4362 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
4363
4364 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
4365 GTK builds.
4366
944a300c
AS
43672009-12-07 Andreas Schwab <schwab@linux-m68k.org>
4368
4369 * unexelf.c (unexec): Don't search for .data twice.
4370
022eef62
CY
43712009-12-05 Chong Yidong <cyd@stupidchicken.com>
4372
426ac949
CY
4373 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
4374 if push failed.
4375 (handle_line_prefix): Set avoid_cursor_p here. Check return value
4376 of push_display_prop (Bug#5000).
4377
022eef62
CY
4378 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
4379 value of font_list_entities (Bug#5085).
4380
be95bee9
JB
43812009-12-04 Juanma Barranquero <lekktu@gmail.com>
4382
4383 Fix `string-to-number' to deal consistently with integers and floats.
4384 * lread.c (isfloat_string): New argument ignore_trailing to accept all
4385 trailing characters, not just whitespace.
4386 (read1): Pass new arg 0 to keep old behavior.
4387 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
4388 trailing chars, as it is already done for integers. Doc fixes.
4389 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
4390
24c2d7ce
EZ
43912009-12-04 Eli Zaretskii <eliz@gnu.org>
4392
0b5397c2
SM
4393 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
4394 Delete unused enumeration value.
24c2d7ce 4395
7e694795
EZ
43962009-12-03 Eli Zaretskii <eliz@gnu.org>
4397
4398 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
4399
84b31826
SM
44002009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
4401
4402 * process.c (Fmake_network_process): Fix up the tests for
4403 "connectionless socket", so they DTRT for seqpacket sockets as well.
4404
f00c449b
SM
44052009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
4406
4407 * process.c (Qseqpacket): New symbol.
4408 (HAVE_SEQPACKET): New macro.
4409 (Fmake_network_process): Accept new :type `seqpacket'.
4410 (init_process): Add `seqpacket' feature when applicable.
4411 (syms_of_process): Initialize Qseqpacket.
4412
8096a0ff
YM
44132009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4414
4415 * font.c (font_load_for_lface, font_open_by_name): Don't store name
4416 if entity is Qnil.
4417
3e0de07f
SM
44182009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
4419
4420 * print.c (print_preprocess): Preprocess the key_and_value table of
4421 hashtables, even tho they're "hidden" (bug#5082).
4422
abeafb2a
JD
44232009-11-29 Jan Djärv <jan.h.d@swipnet.se>
4424
4425 * frame.c (frame_make_pointer_invisible)
4426 (frame_make_pointer_visible): Declare f before statements.
4427
4bf47195
EZ
44282009-11-28 Eli Zaretskii <eliz@gnu.org>
4429
4430 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
4431 omitted dependencies on lisp.h.
4432
c525b3f2
JD
44332009-11-27 Jan Djärv <jan.h.d@swipnet.se>
4434
ece2d4ed
JD
4435 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
4436 is NULL.
4437
4438 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
4439
4440 * frame.c (frame_make_pointer_invisible)
3e0de07f 4441 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
4442 frame.
4443
c525b3f2
JD
4444 * search.c (simple_search): Remove warning by making *p const.
4445
2f00e299
DN
44462009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
4447
4448 * xdisp.c (power_letter): Remove duplicate const.
4449
084b049b
JD
44502009-11-25 Jan Djärv <jan.h.d@swipnet.se>
4451
a1fadc6f
JD
4452 * term.c (delete_tty): Remove check for last terminal (bug#4970).
4453
5ce6e4f4 4454 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
4455 defaults (bug #5025).
4456
28259cac
SM
44572009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
4458
4459 * insdel.c (adjust_markers_for_delete): Move it in the
4460 right direction! (bug#4803)
4461
e8e14166
YM
44622009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4463
4464 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
4465
4466 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
4467
86677b58
GM
44682009-11-24 Glenn Morris <rgm@gnu.org>
4469
4470 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
4471
581e51e8
JD
44722009-11-23 Jan Djärv <jan.h.d@swipnet.se>
4473
cfc86c7a
JD
4474 * Makefile.in: Must create deps for ecrt0.o in its rule.
4475
581e51e8
JD
4476 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
4477 because that is what Gtk+ font dialog understands.
4478
4479 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
4480 of Fcopy_sequence.
4481 (font_open_by_name): Put name given into QCname for font-object returned.
4482
4483 * frame.c (x_set_font): Save original font name as frame parameter
4484 font-parameter.
4485
4486 * xsettings.c (set_default_xft_settings): New function.
4487 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
4488 is found.
4489
8b264ecb
AS
44902009-11-22 Andreas Schwab <schwab@linux-m68k.org>
4491
4492 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
4493 searching backwards through multibyte buffer.
4494
872870b2
JD
44952009-11-21 Jan Djärv <jan.h.d@swipnet.se>
4496
4497 * xterm.c: #include xgselect.h.
4498 (x_initialize): Call xgselect_initialize.
4499
4500 * xsettings.c (something_changedCB): C++ comments => C comments.
4501 (init_gconf): Do not deal with any GLib file descriptors, xg_select
4502 does that now.
4503
4504 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
4505 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
4506 (scroll_bar_button_cb): Remove.
5ce6e4f4 4507 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
4508 event.
4509 (xg_create_scroll_bar): Don't bind button-press-event and
4510 button-release-event.
4511
4512 * process.c: Include xgselect.h if defined (USE_GTK) ||
4513 defined (HAVE_GCONF).
4514 (wait_reading_process_output): Call xg_select for the same condition.
4515
4516 * xgselect.c (xg_select): New function to better integrate with
4517 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
4518
4519 * xgselect.h: New file, declare xg_select, xgselect_initialize.
4520
4521 * Makefile.in (XOBJ): Add xgselect.o.
4522
62a6e103
AS
45232009-11-21 Andreas Schwab <schwab@linux-m68k.org>
4524
0b5397c2
SM
4525 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
4526 Remove ignored second argument. All callers changed.
62a6e103
AS
4527 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
4528 (RE_STRING_CHAR_AND_LENGTH): Likewise.
4529 * xdisp.c (string_char_and_length): Likewise.
4530
b0ca0f33
DN
45312009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
4532
4533 * xterm.c (x_new_font):
4534 * print.c (print_object):
4535 * cmds.c (Fself_insert_command): Move declarations before statements.
4536
dd5a6279
CY
45372009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
4538
4539 * s/cygwin.h: Remove unneeded linker flags.
4540
4a8e097d
JD
45412009-11-20 Jan Djärv <jan.h.d@swipnet.se>
4542
0d1d0d26
JD
4543 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
4544
4545 * xsettings.h: Declare xsettings_get_system_font.
4546
4547 * xsettings.c (xsettings_get_system_font): New function.
4548 (init_gconf): No use initiating gconf unless we have Xft also.
4549 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
4550 HAVE_GCONF.
4551
4a8e097d
JD
4552 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
4553 add a blank entry so it doesn't collapse into nothing.
4554
8ab1650e
SM
45552009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4556
4557 * lread.c (Funintern): Comment out last change.
4558
82c602f0
RS
45592009-11-19 Richard Stallman <rms@gnu.org>
4560
4561 * lread.c (Funintern): Error if symbol is t or nil.
4562
87e32266
SM
45632009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
4564
4565 * insdel.c (make_gap_larger): Don't make as many assumptions about the
4566 representation of Lisp integers.
4567 Reported by MJ Chan <mjchan.inbox@gmail.com>.
4568
1b9ac145
AS
45692009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4570
4571 * lisp.h: Remove declaration of Ffont_get_system_font.
4572 * xfns.c: Move include of "xsettings.h".
4573 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
4574
dfb3c4c6
JD
45752009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4576
87e32266
SM
4577 * xsettings.c (something_changedCB, Ffont_get_system_font):
4578 Check use_system_font.
dfb3c4c6
JD
4579 (syms_of_xsettings): DEFVAR font-use-system-font.
4580
9370c1d8
AS
45812009-11-17 Andreas Schwab <schwab@linux-m68k.org>
4582
25fe851a
AS
4583 * xfns.c (x_default_font_parameter): Remove dead assignment.
4584
9370c1d8
AS
4585 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
4586
637fa988
JD
45872009-11-17 Jan Djärv <jan.h.d@swipnet.se>
4588
87e32266 4589 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 4590 not have FC_LCD_*. #define them if not there.
a6eb20d8 4591
87e32266 4592 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 4593
637fa988
JD
4594 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
4595
4596 * xterm.c (handle_one_xevent): Call xft_settings_event for
4597 ClientMessage, PropertyNotify and DestroyNotify.
4598 (x_term_init): If we have XFT, get DPI from Xft.dpi.
4599 Call xsettings_initialize.
4600
4601 * xftfont.c (xftfont_fix_match): New function.
4602 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
4603 Call xftfont_fix_match after XftFontMatch.
4604
4605 * xfont.c (xfont_driver): Initialize all members.
4606
87e32266
SM
4607 * xfns.c (x_default_font_parameter):
4608 Try font from Ffont_get_system_font.
637fa988
JD
4609 Do not get font from x_default_parameter if we got one from
4610 Ffont_get_system_font.
87e32266 4611 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
4612
4613 * w32font.c (w32font_driver): Initialize all members.
4614
4615 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
4616
4617 * lisp.h: Declare syms_of_xsettings.
4618
87e32266
SM
4619 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
4620 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
4621
4622 * ftfont.c (ftfont_filter_properties): New function.
4623
4624 * frame.c (x_set_font): Remove unused variable lval.
4625
87e32266 4626 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
4627
4628 * font.c (font_put_extra): Don't return if val is nil, it means
4629 boolean option is off.
4630 (font_parse_fcname): Collect all extra properties in extra_props
4631 and call filter_properties for all drivers with extra_props and
4632 font as parameter.
87e32266
SM
4633 (font_open_entity): Do not use cache, it does not pick up new
4634 fontconfig settings like hinting.
637fa988
JD
4635 (font_load_for_lface): If spec had a name in it, store it in entity.
4636
a73f9c9d 4637 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
4638
4639 * config.in: HAVE_GCONF is new.
4640
4641 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
4642 xsettings.o is new.
4643
5a942932
KH
46442009-11-17 Kenichi Handa <handa@m17n.org>
4645
4646 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
4647 back to the default font in case that no suitable font is found.
4648
b7c7a4d1
SM
46492009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
4650
4651 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
4652 Suggested by Chad Brown <yandros@mit.edu>.
4653 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
4654
072f1e39
JD
46552009-11-16 Jan Djärv <jan.h.d@swipnet.se>
4656
4657 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
4658
5d1e70a2
AS
46592009-11-14 Andreas Schwab <schwab@linux-m68k.org>
4660
87e32266 4661 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 4662
a53cfbe5
JD
46632009-11-14 Jan Djärv <jan.h.d@swipnet.se>
4664
473a99b7
JD
4665 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
4666 has a parent.
4667
a53cfbe5 4668 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 4669 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
4670
4671 * config.in: Generated (AUTO_DEPEND).
4672
f04bb9b2
MA
46732009-11-13 Michael Albinus <michael.albinus@gmx.de>
4674
b7c7a4d1 4675 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
4676 Vdbus_registered_functions_table, because it contains also
4677 properties. Fix docstring.
b7c7a4d1 4678 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 4679
8f11f7ec
SM
46802009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
4681
4682 * alloc.c (mark_object): Don't reprocess marked strings.
4683 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
4684 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
4685
8a605fe8
KH
46862009-11-13 Kenichi Handa <handa@m17n.org>
4687
8f11f7ec 4688 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
4689 semantics of Vword_combining_categories.
4690 (Vword_combining_categories): Describe the slight change of the
4691 semantics.
4692
241c4680
EZ
46932009-11-13 Eli Zaretskii <eliz@gnu.org>
4694
4695 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
4696
4697 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
4698
5d58e44c
SM
46992009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
4700
4701 * xdisp.c (syms_of_xdisp): Fix typo in last change.
4702
5e13f9d3
JB
47032009-11-12 Juanma Barranquero <lekktu@gmail.com>
4704
4705 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
4706
cf54c754
DR
47072009-11-11 David Reitter <david.reitter@gmail.com>
4708
4709 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
4710 variables to fix 2009-11-09 change.
4711
a4ada374
DN
47122009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
4713
91433552
DN
4714 * process.c (ifflag_def): Make flag_sym constant.
4715 (Fnetwork_interface_info): Use a constant pointer.
4716 (ifflag_table):
4717 * xfns.c (cursor_bits):
4718 * xdisp.c (power_letter):
4719 * termcap.c (speeds, esctab):
4720 * sysdep.c (baud_convert):
4721 * keyboard.c (lispy_accent_codes, modifier_names):
4722 * image.c (xbm_format, xpm_format, pbm_format, png_format)
4723 (jpeg_format, tiff_format, gif_format, svg_format)
4724 (interlace_start, interlace_increment, gs_format):
4725 * gtkutil.c (separator_names):
4726 * fringe.c (swap_nibble):
4727 * fns.c (base64_value_to_char, base64_char_to_value):
4728 * fileio.c (make_temp_name_tbl):
4729 * coding.c (suffixes): Make constant.
4730
f4265f6c
DN
4731 * frame.c (make_initial_frame):
4732 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
4733 build_string.
4734 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
4735
04420943
DN
4736 * s/freebsd.h:
4737 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
4738
0a5d24ae
DN
4739 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
4740 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
4741
a4ada374
DN
4742 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
4743 * xterm.c (syms_of_xterm):
4744 * xfaces.c (syms_of_xfaces):
4745 * xdisp.c (syms_of_xdisp):
4746 * lread.c (syms_of_lread):
4747 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
4748 build_string.
91433552 4749
a4ada374
DN
4750 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
4751
af98fc7f
SM
47522009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4753
8ab1650e 4754 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 4755
e90292a9
JD
47562009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4757
4758 * keyboard.h: Declare timer_check.
4759
4760 * keyboard.c (timer_check_2): New function that does what the old
4761 timer_check did.
4762 (timer_check): Call timer_check_2 until -1 or a non-zero time is
4763 returned, i.e. don't return -1 with timers pending.
4764
4765 * process.c: Remove extern declaration of timer_check.
4766
4767 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
4768 even if timer_check returned -1.
4769
af98fc7f
SM
4770 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
4771 xg_dialog_data.
e90292a9
JD
4772 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
4773 the event loop.
4774 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
4775 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
4776 Destroy the dialog after xg_dialog_run.
4777
045b83c0
SM
47782009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4779
4780 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
4781
1fb99a3a
JD
47822009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4783
4784 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
4785
04e452cb
JB
47862009-11-09 Juanma Barranquero <lekktu@gmail.com>
4787
4788 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
4789
ef7417fd
SM
47902009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
4791
4792 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
4793 w32menu.c, and nsmenu.m.
4794 Simplify the obsolete case where position is nil.
4795 (cleanup_popup_menu): New function, moved from nsmenu.m.
4796 (struct skp): Remove slot `notreal'.
4797 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
4798 adjust callers.
4799 (single_menu_item): Adjust call to parse_menu_item.
4800 (syms_of_menu): Defsubr x-popup-menu.
4801 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
4802 (keymap_panes): Don't export any more.
4803 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
4804 (xmenu_show): Declare.
4805 * keyboard.c (parse_menu_item): Remove arg `notreal'.
4806 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
4807 * keyboard.h (parse_menu_item): Update declaration.
4808 * xmenu.c (Fx_popup_menu): Remove.
4809 (syms_of_xmenu): Don't defsubr x-popup-menu.
4810 * w32menu.c (Fx_popup_menu): Remove.
4811 (syms_of_w32menu): Don't defsubr x-popup-menu.
4812 * nsmenu.m (cleanup_popup_menu): Remove.
4813 (ns_menu_show): Rename from ns_popup_menu and remove all the code
4814 moved to menu.c's Fx_popup_menu.
4815 (Fx_popup_menu): Remove.
4816 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
4817 menu_items (it's done in menu.c already).
4818
424d6179
SM
48192009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
4820
4821 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
4822 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
4823
c0df13a6 48242009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
4825
4826 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 4827 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
4828 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
4829 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
4830
2de9f71c
SM
48312009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4832
4833 Let integers use up 2 tags to give them one extra bit and thus double
4834 their range.
4835 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
4836 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
4837 New macros.
4838 (enum Lisp_Type): Use them. Give explicit values.
4839 (Lisp_Type_Limit): Remove.
4840 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
4841 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
4842 Pay attention to USE_2_TAGS_FOR_INTS.
4843 (INTEGERP): Use LISP_INT_TAG_P.
4844 * fns.c (internal_equal): Simplify the default case.
4845 (sxhash): Use case_Lisp_Int.
4846 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
4847 any more.
4848 (Ftype_of): Use case_Lisp_Int.
4849 (store_symval_forwarding): Take into account the fact that Ints can
4850 now have more than one tag.
4851 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
4852 buffer_slot_type_mismatch):
4853 * xfaces.c (face_attr_equal_p):
4854 * print.c (print_object):
4855 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
4856 Use case_Lisp_Int.
4857
323637a2
EZ
48582009-11-06 Eli Zaretskii <eliz@gnu.org>
4859
7ac65b38
EZ
4860 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
4861
323637a2
EZ
4862 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
4863 warning.
4864
e511451f
JD
48652009-11-06 Jan Djärv <jan.h.d@swipnet.se>
4866
4867 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
4868
4869 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
4870
4871 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
4872 ButtonPressRelease and MotionNotify (bug#4870).
4873
5e2327cf
DN
48742009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
4875
5adc433e
DN
4876 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
4877
d67b4f80
DN
4878 * xterm.c (syms_of_xterm):
4879 * xselect.c (syms_of_xselect):
4880 * xmenu.c (syms_of_xmenu):
4881 * xfns.c (syms_of_xfns):
4882 * xfaces.c (syms_of_xfaces):
4883 * xdisp.c (syms_of_xdisp):
4884 * window.c (syms_of_window):
4885 * w32fns.c (syms_of_w32fns):
4886 * undo.c (syms_of_undo):
4887 * textprop.c (syms_of_textprop):
4888 * terminal.c (syms_of_terminal):
4889 * syntax.c (syms_of_syntax):
4890 * sound.c (syms_of_sound):
4891 * search.c (syms_of_search):
4892 * print.c (syms_of_print):
4893 * minibuf.c (syms_of_minibuf):
4894 * macros.c (syms_of_macros):
4895 * keymap.c (syms_of_keymap, initial_define_key)
4896 (initial_define_lispy_key):
4897 * keyboard.c (syms_of_keyboard):
4898 * insdel.c (syms_of_insdel):
4899 * image.c (syms_of_image):
4900 * fringe.c (syms_of_fringe):
4901 * frame.c (syms_of_frame):
4902 * fontset.c (syms_of_fontset):
4903 * fns.c (syms_of_fns):
4904 * fns.c (syms_of_fns):
4905 * fileio.c (syms_of_fileio):
4906 * fileio.c (syms_of_fileio):
4907 * eval.c (syms_of_eval):
4908 * doc.c (syms_of_doc):
4909 * dispnew.c (syms_of_display):
4910 * dired.c (syms_of_dired):
4911 * dbusbind.c (syms_of_dbusbind):
4912 * data.c (syms_of_data):
4913 * composite.c (syms_of_composite):
4914 * coding.c (syms_of_coding):
4915 * cmds.c (syms_of_cmds):
4916 * charset.c (define_charset_internal, syms_of_character):
4917 * ccl.c (syms_of_ccl):
4918 * category.c (syms_of_category, init_category_once):
4919 * casetab.c (syms_of_casetab):
4920 * casefiddle.c (syms_of_casefiddle):
4921 * callint.c (syms_of_callint):
4922 * bytecode.c (syms_of_bytecode):
4923 * buffer.c (keys_of_buffer, syms_of_buffer):
4924 * alloc.c (syms_of_alloc):
4925 * process.c (syms_of_process, init_process):
4926 * lread.c (syms_of_lread, init_obarray):
4927 * font.c (build_style_table):
4928 * emacs.c (syms_of_emacs, main): Replace calls to intern with
4929 intern_c_string, calls to make_pure_string with
4930 make_pure_c_string. Use pure_cons instead of Fcons.
4931
5e2327cf
DN
4932 * process.c (socket_options): Make it const.
4933 (set_socket_option, init_process): Use a const pointer.
4934
4935 * lread.c (intern_c_string): New function.
4936 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4937 (defvar_int): Uset it. Make the name const char*.
4938
4939 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4940 (defvar_int): Update prototypes.
4941 (DEFUN, EXFUN): Support for prototypes is now required.
4942 (intern_c_string): New prototype.
4943 (struct Lisp_Subr): Make symbol_name constant.
4944
4945 * font.c (struct table_entry): Remove unused member. Make NAMES
4946 constant.
4947 (weight_table, slant_table, width_table): Make constant.
4948
4949 * emacs.c (struct standard_args): Make name and longname constant.
4950
4951 * character.h (DEFSYM): Use intern_c_string.
4952
a56eaaef
DN
49532009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4954
4955 * alloc.c (make_pure_c_string): New function.
4956
4957 * eval.c (Fautoload): Purecopy all arguments.
4958
f6a07420
KH
49592009-11-05 Kenichi Handa <handa@m17n.org>
4960
4961 * fileio.c (Finsert_file_contents): Be sure set coding-system of
4962 the buffer in case of replace.
4963
5d28d4b1
DN
49642009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
4965
4966 * puresize.h (BASE_PURESIZE): Increase to 1620000.
4967
b349d111
SM
49682009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
4969
d528b1ce
SM
4970 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
4971 when applicable (bug#4851).
4972
b349d111
SM
4973 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
4974 (P_): Support for prototypes is now required.
4975
c38eb027
CY
49762009-10-31 Chong Yidong <cyd@stupidchicken.com>
4977
4978 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
4979 (Bug#4827).
4980
0405f8d9
EZ
49812009-10-30 Eli Zaretskii <eliz@gnu.org>
4982
d528b1ce 4983 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 4984
ca0a881a
DN
49852009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
4986
4987 * puresize.h (BASE_PURESIZE): Increase to 1470000.
4988
d528b1ce
SM
4989 * lread.c (Fload): Purecopy the file name when building
4990 Vpreloaded_file_list.
ca0a881a 4991
47e0e0e4
JR
49922009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
4993
4994 * w32fns.c (syms_of_w32fns): Change default value of
4995 w32-scroll-lock-modifier to nil. (Bug#2827)
4996
057bce6f
JB
49972009-10-26 Juanma Barranquero <lekktu@gmail.com>
4998
782a943e 4999 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 5000
242bc74c
AS
50012009-10-26 Andreas Schwab <schwab@redhat.com>
5002
5003 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
5004
522d013a
JB
50052009-10-26 Juanma Barranquero <lekktu@gmail.com>
5006
5007 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
5008 For delta < 0, skip check that only makes sense when the mini-window
5009 is going to be enlarged. (Bug#4534)
5010
18060980
CY
50112009-10-25 Chong Yidong <cyd@stupidchicken.com>
5012
5013 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
5014 string in menu maps (Bug#4471).
5015
fec8f0fe
CY
50162009-10-24 Chong Yidong <cyd@stupidchicken.com>
5017
5018 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
5019 FRAME_NS_VIEW on terminal frames (Bug#4765).
5020
10d66ec0
AS
50212009-10-24 Andreas Schwab <schwab@linux-m68k.org>
5022
1cae01f7
AS
5023 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
5024 DBUS_TYPE_UINTnn separately to get proper sign extension.
5025
58a12889
AS
5026 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
5027 can properly handle unsigned types.
d528b1ce 5028 (make_uid, make_gid): Remove.
58a12889 5029
987c9327
AS
5030 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
5031 types again.
5032
522d013a 5033 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
5034 (system_process_attributes): Likewise.
5035
905a9ed3
DN
50362009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
5037
5038 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
5039
5040 * eval.c (Fautoload): Purecopy the filename. Simplify.
5041
5042 * category.c (Fdefine_category): Purecopy docstring.
5043
a599b3e8
AS
50442009-10-23 Andreas Schwab <schwab@linux-m68k.org>
5045
7b792fc9
AS
5046 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
5047
a599b3e8
AS
5048 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
5049
b35ac83e
CY
50502009-10-23 Chong Yidong <cyd@stupidchicken.com>
5051
5052 * window.c (Fwindow_edges, Fwindow_pixel_edges)
5053 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
5054 (Bug#4775).
5055
e8903e00
SM
50562009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
5057
5058 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
5059 (init_fileio_once):
5060 * lisp.h (init_fileio_once): Remove.
5061 * emacs.c (main): Don't call init_fileio_once.
5062
8f43cbf3
DN
50632009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
5064
5065 * puresize.h (BASE_PURESIZE): Increase to 1430000.
5066
26898943
AS
50672009-10-21 Andreas Schwab <schwab@linux-m68k.org>
5068
5069 * doprnt.c (doprnt): Fix overflow check.
5070
5c646d5a
JD
50712009-10-21 Jan Djärv <jan.h.d@swipnet.se>
5072
3132a7ea
JD
5073 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
5074
5c646d5a
JD
5075 * xterm.h (x_wait_for_event): Declare it.
5076
5077 * xterm.c (pending_event_wait): New variable.
5078 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
5079 see pending_event_wait.eventtype.
5080 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
5081 (x_new_font): Call change_frame_size with new rows/columns before we
5082 try to resize the frame.
5c646d5a 5083 (x_wait_for_event): New function.
d528b1ce
SM
5084 (x_set_window_size_1): Don't change gravity unless change_gravity
5085 is set.
5c646d5a
JD
5086 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
5087 don't change frame size, instead wait for the ConfigureNotify.
5088 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
5089 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
5090 (x_initialize): Initialize pending_event_wait.
5091
5092 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
5093 size.
5094
5095 * widget.c (EmacsFrameSetValues): Add comment.
5096 (EmacsFrameSetCharSize): Just call x_set_window_size.
5097
5098 * gtkutil.c (xg_frame_set_char_size): Flush events and call
5099 x_wait_for_event.
d528b1ce 5100 (flush_and_sync): Remove again.
5c646d5a
JD
5101 (xg_get_font_name): Suggest monospace if no previous font is known.
5102
e9c1637d
SM
51032009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
5104
5105 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 5106 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 5107
5a72cccb
YM
51082009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5109
5110 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
5111 processing pending events when event is filtered for input method.
ab04798f 5112 (Bug#3681)
5a72cccb 5113
2629aa37
JB
51142009-10-20 Juanma Barranquero <lekktu@gmail.com>
5115
5116 * fns.c: Add #endif accidentally removed in previous change.
5117
c3417a74
DN
51182009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5119
5120 * fns.c: Remove code for unsupported system: MAC_OS.
5121 * image.c: Likewise. Include setjmp.h.
5122
9685cef2
JD
51232009-10-19 Jan Djärv <jan.h.d@swipnet.se>
5124
5125 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
5126 pixel -1 (bug #4742).
5127
d7306fe6
DN
51282009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5129
019d2c4c
DN
5130 * process.c (create_pty): Remove conditionals for no longer
5131 supported systems: UNIPLUS and RTU.
5132
ee6bacd4
DN
5133 * xterm.c:
5134 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
5135
d7306fe6
DN
5136 * alloc.c: Do not define struct catchtag.
5137 * eval.c: Move struct catchtag definition ...
5138 * lisp.h: ... here.
5139
5140 * image.c: Move png.h #include earlier to avoid warnings.
5141
5142 * xterm.c:
5143 * xsmfns.c:
5144 * xselect.c:
5145 * xrdb.c:
5146 * xmenu.c:
5147 * xftfont.c:
5148 * xfont.c:
5149 * xfns.c:
5150 * xfaces.c:
5151 * xdisp.c:
5152 * window.c:
5153 * widget.c:
5154 * w32xfns.c:
5155 * w32uniscribe.c:
5156 * w32term.c:
5157 * w32select.c:
5158 * w32reg.c:
5159 * w32proc.c:
5160 * w32menu.c:
5161 * w32inevt.c:
5162 * w32heap.c:
5163 * w32font.c:
5164 * w32fns.c:
5165 * w32console.c:
5166 * w32.c:
5167 * w16select.c:
5168 * vm-limit.c:
5169 * unexsol.c:
5170 * unexec.c:
5171 * unexcw.c:
5172 * unexaix.c:
5173 * undo.c:
5174 * tparam.c:
5175 * textprop.c:
5176 * terminfo.c:
5177 * terminal.c:
5178 * termcap.c:
5179 * term.c:
5180 * syntax.c:
5181 * sound.c:
5182 * sheap.c:
5183 * search.c:
5184 * scroll.c:
5185 * region-cache.c:
5186 * regex.c:
5187 * ralloc.c:
5188 * process.c:
5189 * print.c:
b024548b
DN
5190 * nsterm.m:
5191 * nsselect.m:
5192 * nsmenu.m:
5193 * nsimage.m:
5194 * nsfont.m:
5195 * nsfns.m:
d7306fe6
DN
5196 * msdos.c:
5197 * minibuf.c:
5198 * menu.c:
5199 * marker.c:
5200 * macros.c:
5201 * keymap.c:
5202 * keyboard.c:
5203 * intervals.c:
5204 * insdel.c:
5205 * indent.c:
5206 * gtkutil.c:
5207 * ftxfont.c:
5208 * ftfont.c:
5209 * fringe.c:
5210 * frame.c:
5211 * fontset.c:
5212 * font.c:
5213 * fns.c:
5214 * floatfns.c:
5215 * filelock.c:
5216 * fileio.c:
5217 * emacs.c:
5218 * editfns.c:
5219 * dosfns.c:
5220 * doprnt.c:
5221 * doc.c:
5222 * dispnew.c:
5223 * dired.c:
5224 * dbusbind.c:
5225 * data.c:
5226 * composite.c:
5227 * coding.c:
5228 * cmds.c:
5229 * cm.c:
5230 * chartab.c:
5231 * charset.c:
5232 * character.c:
5233 * ccl.c:
5234 * category.c:
5235 * casetab.c:
5236 * casefiddle.c:
5237 * callproc.c:
5238 * callint.c:
5239 * bytecode.c:
5240 * buffer.c:
5241 * atimer.c: Include setjmp.h. (Bug#4643)
5242
fd5f21e6
SM
52432009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
5244
4c0354d7
SM
5245 Remove leftover table unibyte_to_multibyte_table.
5246 * character.c (unibyte_to_multibyte_table): Remove.
5247 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
5248 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
5249 * character.h (UNIBYTE_TO_CHAR): New macro.
5250 (MAKE_CHAR_MULTIBYTE): Use it.
5251 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
5252 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
5253 (message_dolog, set_message_1):
5254 * search.c (Freplace_match):
5255 * editfns.c (Fcompare_buffer_substrings):
5256 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
5257 (concat):
5258 * insdel.c (copy_text, count_size_as_multibyte):
5259 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
5260 * term.c (produce_glyphs):
5261 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
5262 * regex.c (RE_CHAR_TO_MULTIBYTE):
5263 * cmds.c (internal_self_insert):
5264 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
5265
fd5f21e6
SM
5266 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
5267
4418646e
DN
52682009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
5269
5270 * puresize.h (BASE_PURESIZE): Increase to 1310000.
5271
35f5c1d2
JB
52722009-10-16 Juanma Barranquero <lekktu@gmail.com>
5273
5274 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
5275
a0cd8f6b
AR
52762009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5277
5278 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
5279 still needed under Tiger.
5280
5281 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
5282
5283 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
5284 __Apple__.
5285
5286 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
5287
01a8d3fa
KH
52882009-10-15 Kenichi Handa <handa@m17n.org>
5289
5290 * print.c (print_object): Escape a symbol like "2E10" too.
5291
bf6c75c9 52922009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
5293
5294 Cleanups and changes for 64-bit compile under Snow Leopard.
5295 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
5296
5297 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
5298
c5959062 5299 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
5300 (ns_findfonts, nsfont_list_family): Use long format in printf, and
5301 cast argument.
5302 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 5303 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
5304
5305 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
5306
5307 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
5308 where appropriate.
5309
5310 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
5311 where appropriate.
6e4780c5
JB
5312 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
5313 Use stringWithUTF8String.
bf6c75c9
AR
5314 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
5315
6e4780c5
JB
5316 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
5317 Add formal protocol mention to inheritance.
bf6c75c9
AR
5318 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
5319
6e4780c5
JB
5320 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
5321 Fix printf format.
bf6c75c9
AR
5322 (ns_query_color): Use CGFloat where appropriate.
5323 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 5324 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
5325 argument.
5326
3d87f118
AR
5327 * config.in (NS_HAVE_NSINTEGER): Drop.
5328
a95c8102
AR
5329 * dbusbind.c (dbus-method-return-internal)
5330 (dbus-method-error-internal): Use long format in printf, and cast
5331 argument.
5332
5333 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
5334 in printf, and cast argument.
5335
6873acca 5336 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
5337 cast argument.
5338
9ec6f100
GM
53392009-10-11 Glenn Morris <rgm@gnu.org>
5340
5341 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
5342
5be883cd
JD
53432009-10-08 Jan Djärv <jan.h.d@swipnet.se>
5344
5345 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
5346 menu bar with a small width so it doesn't enlarge the frame.
5347
d7a39b51
JB
53482009-10-08 Juanma Barranquero <lekktu@gmail.com>
5349
5350 * fontset.c (Fset_fontset_font): Fix typos in error messages.
5351
0c2b6f8e
GM
53522009-10-06 Glenn Morris <rgm@gnu.org>
5353
5354 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
5355 SOME_MACHINE_LISP (this enters indirectly via DOC).
5356
e02131a2
EZ
53572009-10-05 Eli Zaretskii <eliz@gnu.org>
5358
5359 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
5360
b4744254
EZ
53612009-10-04 Eli Zaretskii <eliz@gnu.org>
5362
5363 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
5364 Doc fix.
5365
dbf64827
JB
53662009-10-03 Martin Rudalics <rudalics@gmx.at>
5367
5368 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
5369
e9a0aef8
MA
53702009-10-02 Michael Albinus <michael.albinus@gmx.de>
5371
d528b1ce 5372 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
5373 used anymore outside fileio.c.
5374
5375 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
5376
64eb2b56
JB
53772009-10-01 Juanma Barranquero <lekktu@gmail.com>
5378
5379 * lisp.h (Qdelete_directory_internal):
5380 Declare, instead of Qdelete_directory.
5381
5382 * w32fns.c (Fsystem_move_file_to_trash): Use it.
5383
9d28c33e
SM
53842009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
5385
5386 * eval.c (Fcalled_interactively_p): Add `kind' argument.
5387
9d8f3bd9
MA
53882009-10-01 Michael Albinus <michael.albinus@gmx.de>
5389
9d28c33e 5390 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
5391 Fdelete_directory. It is not a command anymore. It has no file
5392 name handler.
5393
9694740b
SM
53942009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
5395
5396 * xdisp.c (get_next_display_element): Use an enum in last change.
5397
748e162f
KH
53982009-09-28 Kenichi Handa <handa@m17n.org>
5399
9694740b 5400 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
5401 unibyte_display_via_language_environment in handling
5402 Vnobreak_char_display.
5403
17efd58d
AR
54042009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5405
5406 * nsterm.h (ns_app_name): New extern variable.
5407
5408 * nsterm.m (ns_app_name): New variable.
5409 (ns_term_init): Set and use it.
5410 (ns_term_shutdown): Use it.
5411
5412 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
5413 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
5414
5415 * nsfns.m (ns_set_name_iconic, ns_set_name)
5416 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
5417 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
5418
9694740b
SM
5419 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
5420 Remove double-casting in client_data comparison.
31c2d412 5421
3208cb35
YM
54222009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5423
5424 * keyboard.c (make_lispy_event): Remember last wheel direction.
5425 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
5426
b7d552d6
GM
54272009-09-26 Glenn Morris <rgm@gnu.org>
5428
5429 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
5430 internal.elc. Add term/pc-win.elc.
5431 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
5432 term/x-win.elc.
5433 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
5434 term/w32-win.elc.
5435 (NS_SUPPORT): New.
5436 (lisp): Add NS_SUPPORT.
5437 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
5438
4ff670a8
DR
54392009-09-25 David Reitter <david.reitter@gmail.com>
5440
5441 * nsmenu.m (EmacsMenu-clear): Recognize application menu
5442 on Mac OS X 10.6+ (bug#4513).
5443
feabfb6c
JB
54442009-09-24 Juanma Barranquero <lekktu@gmail.com>
5445
5446 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
5447 some parts of Emacs code (like font selection) don't grok them.
5448 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 5449
de59072a
AS
54502009-09-24 Andreas Schwab <schwab@redhat.com>
5451
5452 * coding.c (decode_coding_iso_2022): Fix operator precedence.
5453
a489517b
JB
54542009-09-24 Juanma Barranquero <lekktu@gmail.com>
5455
5456 * dired.c (Fdirectory_files): Fix typo in docstring.
5457
0592970c
AR
54582009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5459
5460 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
5461 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
5462 (EmacsScroller-setPosition:portion:whole:): Remove -display call
5463 under GNUstep.
5464 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
5465
5466 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
5467 glyph advancement.
5468
48e8a88b
AR
54692009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5470
5471 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 5472 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
5473
5474 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
5475 deleted (bug #4492).
5476
e14f0a78
AR
5477 * nsfont.m (Vns_reg_to_script): New lisp variable.
5478 (syms_of_nsfont): Declare it.
5479 (ns_registry_to_script): New function.
5480 (ns_get_req_script): Call it.
5481 (ns_findfonts): Don't give up on non-unicode registry.
5482
5483 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
5484
5b650faa
SM
54852009-09-20 Tom Tromey <tromey@redhat.com>
5486
5487 * eval.c (find_handler_clause): Make stack-trace-on-error work in
5488 batch mode (bug#4228).
5489
a489517b 54902009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
5491
5492 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 5493 carefully. (Bug #4339)
0bae4e09 5494
fcfe06f3
CY
54952009-09-18 Chong Yidong <cyd@stupidchicken.com>
5496
d798ba87 5497 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 5498
31642728
AR
54992009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5500
5501 * emacs.c (inhibit_x_resources): Update doc string for NS.
5502 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 5503 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
5504
5505 * nsterm.h (ns_no_defaults): Remove.
5506
5507 * nsterm.m (ns_no_defaults): Remove.
5508 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
5509 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
5510 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
5511 don't update the NSWindow itself.
5512 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 5513 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
5514
5515 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
5516 ns_use_qd_smoothing.
5517
5518 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
5519 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 5520 (x-close-connection): Drop PSFlush() under OS X.
a489517b 5521 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 5522
8686ac71
JB
55232009-09-17 Juanma Barranquero <lekktu@gmail.com>
5524
5525 * emacs.c (inhibit_x_resources): New variable.
5526 (main) [HAVE_NS]: Don't process --quick command line option.
5527 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
5528
5529 * lisp.h (inhibit_x_resources): Declare it extern.
5530
5531 * w32reg.c (x_get_string_resource):
5532 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
5533
e227ba05
EZ
55342009-09-17 Eli Zaretskii <eliz@gnu.org>
5535
362654a6
JB
5536 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
5537 Add lisp/term/internal.elc.
e227ba05 5538
742d40e8
SM
55392009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5540
5541 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
5542 (bug#4461).
5543
005bd5a2
DN
55442009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
5545
5546 * puresize.h (BASE_PURESIZE): Increase to 1290000.
5547
5548 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
5549 (OBJECTS_MACHINE): Remove, unused.
5550
f9af9719
SM
55512009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
5552
5553 * frame.c (x_get_resource_string): Remove unused.
5554
0307c7d2
JD
55552009-09-15 Jan Djärv <jan.h.d@swipnet.se>
5556
5557 * xterm.c (x_new_font): Call change_frame_size before calling
5558 x_set_window_size, in case frame size won't change.
5559
5560 * frame.c (x_set_font): Remove dead code.
5561
428b13d6
SM
55622009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
5563
5564 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
5565
5766c380
SM
55662009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5567
5568 * lread.c (Fload): Don't output a message after loading an obsolete
5569 package any more (done in Lisp now).
5570
2fd0161b
CY
55712009-09-12 Chong Yidong <cyd@stupidchicken.com>
5572
5573 * fns.c (syms_of_fns): Doc fix (Bug#4227).
5574
bc5e75b6
SM
55752009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5576
5577 * keymap.c (Fwhere_is_internal): Use nconc2.
5578
c31c985e
AM
55792009-09-11 Alan Mackenzie <acm@muc.de>
5580
5581 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
5582 batch mode.
5583
78012bd2
AS
55842009-09-11 Andreas Schwab <schwab@linux-m68k.org>
5585
5586 * xdisp.c (display_mode_element): Detect cycles.
5587
9d889332
SM
55882009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5589
5590 * keymap.c (where_is_internal): Don't erroneously return nil right after
5591 filling the cache.
5592 (where_is_internal_1): Fix up typo.
5593
7ab5d780
GM
55942009-09-11 Glenn Morris <rgm@gnu.org>
5595
5596 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
5597 share a common doc-string.
5598
5238a749
SM
55992009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5600
66d77eda
SM
5601 * keymap.c (get_keymap): Return the actual keymap symbol rather than
5602 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
5603
5238a749
SM
5604 * keymap.c (QCadvertised_binding): New constant.
5605 (syms_of_keymap): Initialize it.
5606 (Fwhere_is_internal): Try and use bindings from :advertised-binding
5607 if applicable.
5608
19f48442
SM
56092009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
5610
50d4ba39
SM
5611 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
5612 (parse_menu_item): Streamline since bindings are recomputed all the
5613 time anyway. Don't bother checking Vdefine_key_rebound_commands any
5614 more and don't support lmenu's menu-alias any more either.
5615
a88a5372
SM
5616 * keymap.c (where_is_internal_data): Make noindirect a boolean.
5617 (where_is_internal): Strip it down to only traverse the keymaps.
5618 Move the cache handling from Fwhere_is_internal to here.
5619 (Fwhere_is_internal): Move the handling of remapping and the choice of
5620 the best binding from where_is_internal to here.
5621 Unify the cached/noncached paths, so remapping is also handled
5622 correctly when the cache is used, and so the cache can be used to
5623 speed up remap-handling when applicable.
5624 Give preference to non-remapped bindings.
5625 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
5626 non-remapped bindings.
5627 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
5628 command remapping.
5629
19f48442
SM
5630 * xdisp.c (display_mode_element): Move list length limit from 50 to
5631 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
5632
599498c3 56332009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
5634
5635 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
5636
f9b7b5ac
SM
56372009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
5638
a53af587
JB
5639 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
5640 (Bug#4334)
5641
f9b7b5ac
SM
5642 * keymap.c (where_is_internal): Filter out shadowed remappings.
5643 Assume that where_is_internal returns unshadowed bindings to simplify
5644 the code and get rid of the gotos. Use ASIZE.
5645
04f4b72d
JD
56462009-09-04 Jan Djärv <jan.h.d@swipnet.se>
5647
4da146f2
JD
5648 * xterm.c (x_focus_changed): If we get a focusout and pointer
5649 is invisible, make it visible.
5650
04f4b72d
JD
5651 * xterm.h: Remove condition for declaration of
5652 x_*_window_to_frame.
5653
7cef7ce3
SM
56542009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
5655
5656 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
5657 initial terminal as well.
5658
a54fa5b7
JD
56592009-09-02 Jan Djärv <jan.h.d@swipnet.se>
5660
5661 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 5662 x_menubar_window_to_frame.
a54fa5b7 5663
50426a04 5664 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
5665 (XTmouse_position): Do not return valid positions
5666 for clicks in the menubar and the toolbar for Gtk+.
5667
5668 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
5669 if the widget for the event has the same top level as a frame,
5670 return the frame.
5671 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
5672 internal windows, bug #4122.
5673 (x_non_menubar_window_to_frame): Remove.
5674
5a021dd0
GM
56752009-09-02 Glenn Morris <rgm@gnu.org>
5676
5677 * buffer.c (default-major-mode): Move most of the doc from here...
5678 (major-mode): ... to here.
5679
548fe2f3
NR
56802009-08-30 Nick Roberts <nickrob@snap.net.nz>
5681
5682 * process.c (wait_reading_process_output): Keep the descriptor
5683 when pty is used by a non-child process, e.g., in I/O buffer of
5684 GDB this allows inferior to be restarted.
5685
e0840eef
EZ
56862009-08-29 Eli Zaretskii <eliz@gnu.org>
5687
5688 * xdisp.c (redisplay_internal): Remove redundant test and collapse
5689 both branches into one.
5690
82e98df4
SM
56912009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
5692
5693 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
5694 (main): Use enable-multibyte-characters rather than
5695 default-enable-multibyte-characters. Output a warning message when
5696 running a unibyte session.
5697
890617cb
YM
56982009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5699
5700 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
5701 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
5702 (copy_data_segment): Also copy __program_vars section.
5703 (copy_dyld_info) [LC_DYLD_INFO]: New function.
5704 (dump_it) [LC_DYLD_INFO]: Use it.
5705
5706 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
5707
e7adeadc
EZ
57082009-08-28 Eli Zaretskii <eliz@gnu.org>
5709
5710 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
5711 $(SRC)/buildobj.h.
5712 (buildobj.h): Renamed from $(SRC)/buildobj.h.
5713 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
5714 $(SRC)/buildobj.h.
5715 (clean): Add buildobj.h.
5716
3ed8bbdc
TZ
57172009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
5718
5719 * print.c (print_object): Set escapeflag to 1 when printing
5720 hashtable keys and values.
5721
155a6764
SM
57222009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
5723
5724 * lread.c (read_integer): Use doubles (and potentially return a float
5725 number) as we do in string-to-number.
5726 (read1): Use strtol to read integers, signal errors on strtol's
5727 overflow and use floats if strtol's output is too large for
5728 Elisp integers.
5729
877610de
EZ
57302009-08-27 Eli Zaretskii <eliz@gnu.org>
5731
5732 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
5733 (make-buildobj-SH): Fix last change.
5734 (SRC): Move to before where it's first used.
5735
ef73e7be
KH
57362009-08-27 Kenichi Handa <handa@m17n.org>
5737
550c8289
KH
5738 * process.c (send_process): Use encode_coding_object instead of
5739 encode_coding_string to perform eol-conversion even if the string
5740 is unibyte.
5741
60afa08d
KH
5742 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
5743 character.
5744
ef73e7be 5745 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 5746 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 5747
7b3a82d7
DN
57482009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
5749
5654bf63
DN
5750 * callproc.c (Fcall_process): Remove always true #if.
5751
7b3a82d7
DN
5752 * lisp.h: Replace #if 0 code for checking with text pointing to
5753 the --enable-checking configure flag.
5754
5755 * emacs.c (main): Mention the --enable-profiling configure flag
5756 instead of using CFLAGS.
5757
878bde49
KR
57582009-08-26 Ken Raeburn <raeburn@raeburn.org>
5759
5760 * Makefile.in (buildobj.h): New target.
5761 (doc.o): Depend on it.
5762 (temacs${EXEEXT}): Don't generate buildobj.lst.
5763 (mostlyclean): Delete buildobj.h, not buildobj.lst.
5764 * makefile.w32-in ($(SRC)/buildobj.h): New target.
5765 ($(BLD)/doc.$(O)): Depend on it.
5766 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
5767 provided by Eli Zaretskii.)
5768 ($(TEMACS)): Don't generate buildobj.lst.
5769 * doc.c: Include buildobj.h.
5770 (buildobj): New static variable.
5771 (Fsnarf_documentation): Use it, instead of opening and reading
5772 buildobj.lst.
5773
1574224c
MA
57742009-08-25 Michael Albinus <michael.albinus@gmx.de>
5775
5776 * dbusbind.c (Fdbus_call_method)
5777 (Fdbus_call_method_asynchronously): Use English numeric format for
5778 timeout values in doc string.
5779
d9da2f45
KH
57802009-08-25 Kenichi Handa <handa@m17n.org>
5781
ef73e7be
KH
5782 * alloc.c (mark_char_table): New function.
5783 (mark_object): Use mark_char_table for a char-table.
5784
d9da2f45
KH
5785 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
5786 (CHAR_TABLE_REF): Use it.
5787
c8edcc01
KR
57882009-08-23 Ken Raeburn <raeburn@raeburn.org>
5789
5790 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
5791 before invoking the newly build emacs to check for load-path
5792 shadowing.
5793
7763401b
GM
57942009-08-22 Glenn Morris <rgm@gnu.org>
5795
5796 * Makefile.in (bootstrap_exe): New variable.
5797 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
5798 Use ${bootstrap_exe}.
5799
729eadda
EZ
58002009-08-22 Eli Zaretskii <eliz@gnu.org>
5801
5802 * coding.h (encode_coding_string): Don't encode unibyte strings.
5803 (Bug#4047)
5804
eb4c6ace
MA
58052009-08-22 Michael Albinus <michael.albinus@gmx.de>
5806
5807 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
5808
5809 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
5810 intended as hotfix only.
5811 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
5812
36e34d1b
AR
58132009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5814
5815 * nsterm.m (ns_get_color): Update documentation properly for last
5816 change, and clean up loose ends in the code left by it. Fix
5817 longstanding bug with 16-bit hex parsing, and add support for
5818 yet another X11 format (rgb:r/g/b) for compatibility.
5819 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
5820 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
5821
f983eb8a
SM
58222009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
5823
5824 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
5825
3f56d3c6
MA
58262009-08-20 Michael Albinus <michael.albinus@gmx.de>
5827
5828 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
5829 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
5830 (xd_initialize, xd_pending_messages): Check, whether
5831 $DBUS_SESSION_BUS_ADDRESS is set.
5832
fb641d68
YM
58332009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5834
5835 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
5836
5837 * nsterm.m (ns_get_color): Remove incompatible color formats again.
5838
cf59a374
GM
58392009-08-20 Glenn Morris <rgm@gnu.org>
5840
5841 * emacs.c (system-type): Doc fix.
5842
1373f3be
SM
58432009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
5844
5845 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
5846 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
5847
058ed861
MA
58482009-08-18 Michael Albinus <michael.albinus@gmx.de>
5849
1373f3be
SM
5850 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
5851 New functions.
058ed861
MA
5852 (xd_initialize): Revert change from 2009-08-16.
5853
563a866e 58542009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
5855
5856 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 5857 font-group vector, return nil.
5fc05db0 5858
e42bdf01
CY
58592009-08-17 Chong Yidong <cyd@stupidchicken.com>
5860
5861 * process.c (status_notify): Don't perform redisplay.
5862 (Fdelete_process, list_processes_1, process_send_signal):
5863 Expliticly perform redisplay.
5864 (wait_reading_process_output): Always check process status, but
5865 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
5866
4230ab74
KR
58672009-08-17 Ken Raeburn <raeburn@raeburn.org>
5868
1373f3be 5869 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
5870 (XFLOAT_INIT): New macro for storing a float value.
5871 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
5872 * fns.c (sxhash): Copy out the value of a float in order to
5873 examine its bytes.
5874 * dbusbind.c (xd_append_arg): Likewise.
5875
4230ab74
KR
5876 * emacs.c (main): Don't call syms_of_data twice.
5877
a0645cdd
MA
58782009-08-16 Michael Albinus <michael.albinus@gmx.de>
5879
5880 * dbusbind.c (xd_initialize): Add connection file descriptor to
5881 input_wait_mask, in order to let select() detect, whether a new
5882 message has been arrived.
ca4f31ea 5883 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 5884
485db0ba
MA
58852009-08-15 Michael Albinus <michael.albinus@gmx.de>
5886
1373f3be
SM
5887 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
5888 New functions.
485db0ba
MA
5889
5890 * lisp.h (xd_pending_messages): Declare.
5891
5892 * keyboard.c (readable_events): Call xd_pending_messages.
5893
b5b98ff4
CY
58942009-08-15 Chong Yidong <cyd@stupidchicken.com>
5895
1373f3be 5896 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 5897
f8354c6e
CY
5898 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
5899
b5b98ff4
CY
5900 * buffer.c (set_buffer_internal_1)
5901 (swap_out_buffer_local_variables): Check for unbound local
5902 variables (Bug#4138).
5903
8b9fc636
EZ
59042009-08-14 Eli Zaretskii <eliz@gnu.org>
5905
5906 * process.c (create_pty): Fix last change.
5907
ce959360
CY
59082009-08-13 Chong Yidong <cyd@stupidchicken.com>
5909
5910 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
5911 (xbm_load_image): Caller changed.
64b807c9 5912 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 5913
c7baf7e9
NR
59142009-08-13 Nick Roberts <nickrob@snap.net.nz>
5915
5916 * process.c (create_pty): New function.
5917 (Fstart_process): Use it to allow Emacs to just associate a pty
5918 with the buffer. See associated change in gdb-mi.el.
5919 (list_processes_1): Deal with no program name.
5920 (start_process_unwind): Use pid == -2 to mean no process.
5921
1ac9108a
SM
59222009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
5923
5924 * cmds.c (nonundocount): New global variable.
5925 (keys_of_cmds): Initialize it.
5926 (Fself_insert_command): Use it to combine upto 20 sequential chars
5927 into a single undo entry, just like the Qself_insert_command code in
5928 keyboard.c does.
5929 Call frame_make_pointer_invisible, also like the Qself_insert_command
5930 code in keyboard.c does.
5931 * keyboard.c (command_loop_1): Use the new global nonundocount rather
5932 than its own local replacement for it.
5933
e267324c
KR
59342009-08-10 Ken Raeburn <raeburn@raeburn.org>
5935
1ac9108a 5936 * fns.c (concat): Don't re-set string length to its current value.
77437343 5937
1ac9108a
SM
5938 * coding.h (decode_coding_string, encode_coding_string):
5939 Use SBYTES macro.
f0bed503 5940
1ac9108a 5941 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
5942 (doprnt): Merge with doprnt1, discarding lispstrings code.
5943 * lisp.h (doprnt_lisp): Don't declare.
5944
416e006d
JL
59452009-08-07 Juri Linkov <juri@jurta.org>
5946
5947 * puresize.h (BASE_PURESIZE): Increase to 1270000.
5948
6f7d5780
DN
59492009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
5950
5951 * print.c (syms_of_print): Undo previous change.
5952
f19a0f5b
TZ
59532009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
5954
5955 * lread.c (read1, syms_of_lread): Read hashtables back from the
5956 readable format.
5957
5958 * print.c (print_preprocess, print_object): Print hashtables fully
5959 and readably.
5960 (syms_of_print): Provide 'hashtable-print-readable.
5961
b9173dc2
AR
59622009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5963
5964 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
5965 no family set.
5966 (nsfont_open): Handle case when entity has no family.
5967
1586503c
AR
59682009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5969
5970 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
5971 element, not a list, for match case.
5972
087048cd
KH
59732009-07-28 Kenichi Handa <handa@m17n.org>
5974
5975 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
5976 rigidly.
5977
5978 * xfont.c (xfont_list_pattern): Don't ignore the return value of
5979 font_parse_xlfd. Check font properties more rigidly.
5980
780c2506
DN
59812009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
5982
31fd7c5c
JB
5983 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
5984 bsd-common.h.
780c2506 5985
a8c0cc18
KH
59862009-07-27 Kenichi Handa <handa@m17n.org>
5987
5988 * xfaces.c (face_with_height): Call font_clear_prop.
5989
4fbe2306
CY
59902009-07-26 Chong Yidong <cyd@stupidchicken.com>
5991
111d9af3
CY
5992 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
5993
5994 * xterm.c (x_term_init): Use Qx.
5995
4fbe2306
CY
5996 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
5997
1ac9108a 5998 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
5999 (ns_get_color): Revert 2009-07-16 change.
6000
beb0b7f9
EZ
60012009-07-25 Eli Zaretskii <eliz@gnu.org>
6002
6003 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 6004 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 6005
2baf5e76
KR
60062009-07-25 Ken Raeburn <raeburn@raeburn.org>
6007
1ac9108a
SM
6008 * coding.h (decode_coding_string, encode_coding_string):
6009 Use SCHARS macro.
8890e5f5 6010
2baf5e76 6011 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 6012 (load_depth): Delete.
2baf5e76
KR
6013 (Qload_in_progress): New variable.
6014 (load_unwind): Don't reference load_depth or load_in_progress.
6015 (Fload): Likewise; specbind Qload_in_progress instead.
6016 (init_lread): Don't initialize load_depth.
6017 (syms_of_lread): Initialize and protect Qload_in_progress.
6018
1395c6f5
AR
60192009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6020
6021 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
6022
4e2f36cf
AR
60232009-07-23 Yavor Doganov <yavor@gnu.org>
6024
6025 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
6026
5dd9a6f7
AR
60272009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6028
6029 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
6030 Bugs 3792, 3720, 2402.
6031 (ns_lookup_indexed_color): Check for bad index.
6032 (ns_index_color): Init unused slot to 0.
6033 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
6034 Bug 3714, possibly 3082.
5dd9a6f7 6035
c902b920
JR
60362009-07-22 Jason Rumney <jasonr@gnu.org>
6037
1ac9108a
SM
6038 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
6039 Position IME window at cursor (Bug#2570).
c902b920
JR
6040 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
6041 (globals_of_w32fns): Dynamically load functions required above.
6042
6043 * w32term.c (w32_draw_window_cursor): Send message to reposition
6044 any IME window.
6045
090101cf
CY
60462009-07-21 Chong Yidong <cyd@stupidchicken.com>
6047
6048 * fileio.c: Revert 2009-07-16 changes.
6049 (Vauto_save_include_big_deletions): New variable.
6050 (Fdo_auto_save): Disable auto-save only if
6051 auto-save-include-big-deletions is nil.
6052
e6583e3d
CY
60532009-07-21 Chong Yidong <cyd@stupidchicken.com>
6054
6055 * xdisp.c (move_it_to): For continued lines ending in a tab, take
6056 the overflowed pixels into account (Bug#3879).
6057
ece435a5
KR
60582009-07-21 Ken Raeburn <raeburn@raeburn.org>
6059
6060 * lread.c (load_depth): New variable.
6061 (Fload, load_unwind, init_lread): Set it to the load recursion
6062 depth; set load_in_progress as a simple boolean based on the
6063 current load_depth. (Bug#3892)
6064
40b2d973
AR
60652009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6066
6067 * nsfont.m (ns_has_attribute): Remove.
6068 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
6069
10be7e0d
JL
60702009-07-18 Juri Linkov <juri@jurta.org>
6071
6072 * process.c (Fset_process_query_on_exit_flag): Mention killing
6073 a buffer in docstring.
6074
fa055055
KH
60752009-07-17 Kenichi Handa <handa@m17n.org>
6076
6077 * casetab.c (shuffle): Fix the logic of setting up the cycle.
6078
042f7b69
YM
60792009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6080
6081 * nsfns.m (Fns_set_alpha): Remove function.
6082 (syms_of_nsfns): Don't defsubr it.
6083
6084 * nsterm.m (ns_get_color): Remove incompatible color formats.
6085 (ns_color_to_lisp): Generate #rrggbb color format string.
6086
4be941e3
RS
60872009-07-16 Richard Stallman <rms@gnu.org>
6088
6089 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
6090 (Fset_buffer_auto_saved): Handle save_length = -2.
6091
4e6b227d
CY
60922009-07-16 Chong Yidong <cyd@stupidchicken.com>
6093
6094 * xterm.c (Qx_gtk_map_stock): New var.
6095
6096 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
6097 of calling intern each time.
6098
a1856973
YM
60992009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6100
6101 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
6102 does tiling.
6103
6104 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
6105
497e54d8
KH
61062009-07-14 Kenichi Handa <handa@m17n.org>
6107
72d36834
KH
6108 * font.c (font_vconcat_entity_vectors): New function.
6109 (struct font_sort_data): New member font_driver_preference.
6110 (font_compare): Check font_driver_preference.
6111 (font_sort_entities): The format of the first argument changed.
6112 (font_delete_unmatched): Likewise.
6113 (font_list_entities): The return type changed.
6114 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
6115 (font_find_for_lface): Adjuste for the above changes.
6116 Don't suppress the checking of C even if the repertory supports it.
6117 (Flist_fonts): Adjust for the above changes.
72d36834 6118
1ac9108a
SM
6119 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
6120 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
6121 Reject a font who has adstyle property that is different from a
6122 langname derived from registry property.
1ac9108a 6123 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 6124
b6046155
EZ
61252009-07-13 Eli Zaretskii <eliz@gnu.org>
6126
6127 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
6128 local copy of dirfilename.
6129
fb6b6049
KH
61302009-07-13 Kenichi Handa <handa@m17n.org>
6131
e2402a5e
KH
6132 * chartab.c (sub_char_table_ref_and_range): Fix the range check
6133 against max_char.
6134
fb6b6049
KH
6135 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
6136 calling XSYMBOL (sym).
6137
65156807
EZ
61382009-07-11 Eli Zaretskii <eliz@gnu.org>
6139
1ac9108a
SM
6140 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
6141 New function.
6142 (directory_files_internal) [WINDOWSNT]:
6143 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
6144 the filesystem of the directory is fast or slow.
6145
6146 * w32.c (logon_network_drive): Don't assume PATH is an absolute
6147 file name.
6148 (is_slow_fs): New function.
6149 (stat): Use it to determine whether to issue more system calls to
6150 get accurate file attributes, when w32-get-true-file-attributes is
6151 `local'.
6152
e0ab5fcf
JD
61532009-07-10 Jan Djärv <jan.h.d@swipnet.se>
6154
6155 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 6156 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
6157 parameter font-parameter as default to the font dialog.
6158
784ceded
KH
61592009-07-10 Kenichi Handa <handa@m17n.org>
6160
6161 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
6162
fb8edc0b
EZ
61632009-07-09 Eli Zaretskii <eliz@gnu.org>
6164
1ac9108a 6165 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 6166
fb8edc0b
EZ
6167 * w32.c (stat): Treat UNC file names as residing on remote
6168 drives. (Bug#3542)
6169
635c75b1
KH
61702009-07-09 Kenichi Handa <handa@m17n.org>
6171
6172 * fontset.c (fontset_find_font): Fix previous change.
6173
c1d5ce94
MA
61742009-07-08 Michael Albinus <michael.albinus@gmx.de>
6175
6176 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
6177 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
6178 error flag.
6179
edb61b39
KH
61802009-07-08 Kenichi Handa <handa@m17n.org>
6181
374bf7e4
KH
6182 * fontset.c (fontset_find_font): Fix the logic of handling
6183 charset_matched.
6184 (font_for_char): Delete unused var.
6185 (generate_ascii_font_name): Delete it.
6186
edb61b39
KH
6187 * coding.h (JIS_TO_SJIS2): Fix the code range check.
6188
6189 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
6190 (encode_coding_sjis): Fix the code range check.
6191
0f3f018c
CY
61922009-07-07 Chong Yidong <cyd@stupidchicken.com>
6193
6194 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
6195 (Fexpand_file_name): Copy string data properly (Bug#3772).
6196
fcaf6f3a
JD
61972009-07-07 Jan Djärv <jan.h.d@swipnet.se>
6198
6199 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
6200 first MapNotify.
6201
6809ca75
KH
62022009-07-07 Kenichi Handa <handa@m17n.org>
6203
6204 * character.h (unibyte_has_multibyte_table): Delete extern.
6205 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
6206
6207 * charset.c (Fset_charset_priority): Update charset_unibyte.
6208 (syms_of_charset): Initialize charset_unibyte.
6209
6210 * character.c (unibyte_has_multibyte_table): Delete it.
6211 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
6212 charset_unibyte.
6213 (multibyte_char_to_unibyte_safe): Likewise.
6214 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
6215
1ac9108a 6216 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
6217 (x_produce_glyphs): Likewise.
6218
6219 * .gdbinit (xcharset): Fix the treating $arg0.
6220
ad9e2d54
EZ
62212009-07-04 Eli Zaretskii <eliz@gnu.org>
6222
6223 Emulation of `getloadavg' on MS-Windows.
50426a04 6224 * w32.c: Include float.h.
ad9e2d54
EZ
6225 (g_b_init_get_native_system_info, g_b_init_get_system_times)
6226 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
6227 (get_native_system_info, get_system_times): New functions.
6228 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
6229 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
6230 (globals_of_w32): Initialize g_b_init_get_native_system_info,
6231 g_b_init_get_system_times, and num_of_processors.
6232
0a3472c7
JR
62332009-07-03 Jason Rumney <jasonr@gnu.org>
6234
6235 * w32term.c (w32_initialize): Use standard types.
6236
80904120
EZ
62372009-07-03 Eli Zaretskii <eliz@gnu.org>
6238
6239 * dired.c (Ffile_attributes): Decode user and group names by the
6240 locale's encoding. (Bug#3443)
6241
6978862d
DN
62422009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
6243
f8d23104
DN
6244 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
6245 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
6246
6247 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
6248
6249 * term.c (init_tty): Remove spurious #ifdef.
6250
6978862d
DN
6251 * m/mips.h: Mention this file is also used for netbsd.
6252 * m/pmax.h: Remove file.
6253
e044e4fc
JD
62542009-07-03 Jan Djärv <jan.h.d@swipnet.se>
6255
6256 * xterm.h (struct x_display_info): Add invisible_cursor.
6257 (struct x_output): Add current_cursor.
6258
6259 * xterm.c (XTtoggle_invisible_pointer): New function.
6260 (x_define_frame_cursor): Don't define cursor if invisible or the
6261 same as before. Set current_cursor.
6262 (x_create_terminal): Set toggle_invisible_pointer_hook.
6263
6264 * xfns.c (make_invisible_cursor): New function.
6265 (x_set_mouse_color): Call make_invisible_cursor.
6266 Set current_cursor.
6267 (x_window): Set current_cursor.
6268
6269 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
6270
6271 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
6272 inserting a character.
6273 (read_avail_input): Call frame_make_pointer_visible.
6274
6275 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
6276 (frame_make_pointer_invisible, frame_make_pointer_visible):
6277 New functions.
e044e4fc
JD
6278 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
6279
6280 * frame.h: Declare frame_make_pointer_invisible and
6281 frame_make_pointer_visible.
6282 (struct frame): Add pointer_invisible.
6283
574c8efa
JD
62842009-07-02 Jan Djärv <jan.h.d@swipnet.se>
6285
7b507248
JD
6286 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
6287 frame isn't visible.
6288 (xg_frame_resized): If width/height is -1, get size of window
6289 from X server.
6290
6291 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
6292 for MapNotify.
6293
835bdaa7 6294 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 6295 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 6296 (flush_and_sync): Reintroduce.
574c8efa 6297
3f1c6666 62982009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 6299
31fd7c5c 6300 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
6301
6302 * xterm.c (x_handle_net_wm_state): Also look for sticky.
6303 (x_term_init): Initialize Xatom_net_wm_state_sticky.
6304
6305 * frame.h: Declare Qsticky.
6306
cad9ef74
JD
6307 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
6308
6309 * nsfns.m (ns_frame_parm_handlers): Ditto.
6310
6311 * frame.c: Declare Qsticky.
6312 (frame_parms): Add sticky.
6313
6314 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
6315
6316 * xterm.h: Declare x_set_sticky.
6317
6318 * xterm.c (x_set_sticky): New function.
6319
69b16610
JD
6320 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
6321 (xg_tool_bar_menu_proxy): Attach enter/leave events to
6322 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
6323
6324 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
6325
6326 * frame.c: Qmaximized is new.
6327 (x_set_frame_parameters): Do not handle fullscreen specially.
6328 Only set width and height if explicitly set.
6329 (x_set_fullscreen): Handle Qmaximized.
6330 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
6331 (syms_of_frame): Initialize Qmaximized.
6332
1ac9108a
SM
6333 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
6334 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
6335
6336 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
6337 for Expose event. Add call to x_check_fullscreen for MapNotify event.
6338 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
6339 set gravity to NorthWestGravity when USE_GTK.
6340 (set_wm_state): New function.
31fd7c5c 6341 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
6342 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
6343 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 6344 or the case when no window manager is running. That means remove calls
3f1c6666
JD
6345 to x_real_positions and x_fullscreen_adjust.
6346
6347 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
6348 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
6349 flush_and_sync.
6350 (xg_height_changed): New function.
6351 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
6352 and gtk_window_set_policy. Set frame gravity after parsing the
6353 geometry string.
3f1c6666
JD
6354 (xg_update_frame_menubar, free_frame_menubar)
6355 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
6356 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
6357 Remove calls to xg_frame_set_char_size.
6358
fd503d99
KH
63592009-07-01 Kenichi Handa <handa@m17n.org>
6360
6361 * keyboard.c (decode_keyboard_code): New function.
6362 (tty_read_avail_input): Decode the input bytes if necessary.
6363
1ac9108a
SM
6364 * coding.c (setup_coding_system):
6365 Initialize coding->carryover_bytes to 0.
fd503d99
KH
6366 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
6367 use Qno_conversion.
6368
24ed93fb
YM
63692009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6370
6371 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
6372
99061dfc
CY
63732009-06-30 Chong Yidong <cyd@stupidchicken.com>
6374
1ac9108a 6375 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 6376
ff90fbde
JR
63772009-06-30 Jason Rumney <jasonr@gnu.org>
6378
6379 * w32term.c (w32_initialize): Use GetModuleHandle for library that
6380 is already loaded.
6381 Set user model ID if supported (bug#1849).
6382
5f445726
JM
63832009-06-29 Jim Meyering <meyering@redhat.com>
6384
6385 Remove useless if-before-xfree test.
6386 * nsfont.m (nsfont_close): Remove useless test.
6387 * term.c (delete_tty): Likewise.
6388 * w32.c (system_process_attributes): Likewise.
6389 * w32font.c (w32font_close): Likewise.
6390 * xfaces.c (x_free_gc): Likewise.
6391 * xselect.c (buffer): Likewise.
6392
b9607587
AS
63932009-06-28 Andreas Schwab <schwab@linux-m68k.org>
6394
6395 * process.c (send_process): Keep decoded string in a local
6396 variable and protect it from GC. (Bug#3521)
6397
89ba96f4
EZ
63982009-06-28 Eli Zaretskii <eliz@gnu.org>
6399
6400 * term.c (create_tty_output) [MSDOS]: #ifdef away.
6401 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
6402
098a1589
CY
64032009-06-28 Chong Yidong <cyd@stupidchicken.com>
6404
485422be
CY
6405 * xdisp.c (start_display, handle_face_prop)
6406 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
6407 (redisplay_window, try_window_id, produce_image_glyph):
6408 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 6409
098a1589
CY
6410 * xterm.c (x_update_window_begin, x_new_focus_frame)
6411 (x_scroll_bar_handle_click, handle_one_xevent)
6412 (handle_one_xevent, XTread_socket, x_focus_on_frame)
6413 (x_make_frame_visible, x_make_frame_invisible)
6414 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
6415 code chunks that are now obsolete.
6416
78c38319
MA
64172009-06-28 Michael Albinus <michael.albinus@gmx.de>
6418
6419 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
6420 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
6421 for hours, when optimzation is enabled.
6422 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
6423 (xd_read_message): Make them static.
6424
4189ed40
CY
64252009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
6426
6427 * term.c (turn_on_face): Allow simultaneously bold and dim
6428 terminal faces (Bug#3530).
6429
cd9b5e16
CY
64302009-06-27 Chong Yidong <cyd@stupidchicken.com>
6431
4e23bedb
CY
6432 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
6433
cd9b5e16
CY
6434 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
6435 truncation glyphs (Bug#3686).
6436
07cc3c35
GM
64372009-06-27 Glenn Morris <rgm@gnu.org>
6438
6439 * m/pmax.h: Restore file, with only netbsd portions.
6440
31fd7c5c 64412009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 6442
cd9b5e16 6443 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 6444
42d4a64f
KH
64452009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
6446
6447 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
6448 the arg FORCE_SYMBOL.
6449
930fe55b 64502009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
6451
6452 * fontset.c (fontset_find_font): When a usable rfont_def is found
6453 in a fallback font-group, make it the first element of the group.
6454
57ebc3fd
CY
64552009-06-24 Chong Yidong <cyd@stupidchicken.com>
6456
6457 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
6458
f084f942
KH
64592009-06-24 Kenichi Handa <handa@m17n.org>
6460
6461 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
6462 set for C.
6463 (fontset_font): Record the availability of a font for C both in
6464 the realized fontsets of the current one and the default one.
6465
2f686c87
DN
64662009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
6467
6468 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
6469 conditional, it is always defined on AIX.
6470
666e158e
MB
64712009-06-23 Miles Bader <miles@gnu.org>
6472
6473 * window.c (Vrecenter_redisplay): New variable.
6474 (syms_of_window): Initialize it.
6475 (Qtty): New extern declaration.
6476 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
6477
c6da7cd2
JM
64782009-06-23 Jim Meyering <meyering@redhat.com>
6479
1ac9108a
SM
6480 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
6481 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 6482 pointer dereferences are guaranteed to be valid.
c6da7cd2 6483
678dca3d
KH
64842009-06-23 Kenichi Handa <handa@m17n.org>
6485
74d75424
KH
6486 * emacs.c (main): Call init_font ().
6487
6488 * font.h (Vfont_log): Extern it.
6489 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
6490
6491 * font.c (font_sort_entities, font_list_entities)
6492 (font_matching_entity, font_open_entity)
6493 (font_close_object): Change font_add_log to FONT_ADD_LOG.
6494 (Vfont_log): Delete static.
6495 (font_log_env_checked): Delete this variable.
6496 (font_add_log): Don't check font_log_env_checked.
6497 (font_deferred_log): Check Vfont_log.
6498 (init_font): New function.
6499
678dca3d
KH
6500 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
6501
6502 * w32font.c: Change font_add_log to FONT_ADD_LOG.
6503
6504 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
6505
6506 * xfont.c: Change font_add_log to FONT_ADD_LOG.
6507
6508 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
6509 (face_for_char): Don't call font_deferred_log here.
6510 (font_for_char): Likewise.
6511
8a668709
CY
65122009-06-22 Chong Yidong <cyd@stupidchicken.com>
6513
9a01ee33
CY
6514 * w32term.c (x_draw_glyph_string): Use the glyph string's width
6515 rather than its background_width for drawing the overline and
6516 underline (Bug#489).
6517
6518 * xterm.c (x_draw_glyph_string): Use the glyph string's width
6519 rather than its background_width for drawing the overline and
6520 underline (Bug#489).
ec7c9926
CY
6521 (xg_default_icon_file): New variable.
6522 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
6523 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 6524
8a668709
CY
6525 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
6526 (load_overlay_strings): Remove externs.
6527 (fast_find_position): Function deleted.
6528 (mouse_face_from_buffer_pos): New function, based on
6529 fast_find_position. Correctly handle before-strings,
6530 display-strings, and after-strings (Bug#1220).
6531 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
6532
4d4c02d8
CY
65332009-06-21 Chong Yidong <cyd@stupidchicken.com>
6534
1ac9108a 6535 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
6536 (move_it_in_display_line_to, move_it_in_display_line_to)
6537 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
6538
70243478
CY
65392009-06-21 Chong Yidong <cyd@stupidchicken.com>
6540
6541 * Branch for 23.1.
6542
13087e59
JR
65432009-06-21 Jason Rumney <jasonr@gnu.org>
6544
6545 * w32term.c (keyboard_codepage): New static variable.
6546 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
6547 (w32_read_socket) [WM_CHAR]: Use it to decode character
6548 input (bug#3237).
6549 (w32_initialize): Initialize it.
6550 (codepage_for_locale): New function.
6551
4735b74e
KR
65522009-06-20 Ken Raeburn <raeburn@raeburn.org>
6553
6554 * process.c (status_message): Pass Faset index argument as a lisp
6555 object, so as to work with USE_LISP_UNION_TYPE.
6556
0e727afa
YM
65572009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6558
6559 * coding.c (Ffind_coding_systems_region_internal):
6560 Cache checked characters.
6561
cf299835
KH
65622009-06-18 Kenichi Handa <handa@m17n.org>
6563
1ac9108a 6564 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 6565
90f20d94
AS
65662009-06-18 Andreas Schwab <aschwab@redhat.com>
6567
6568 * xdisp.c (redisplay_internal): Check that the frame is still
6569 live after redisplay of its windows.
6570 (redisplay_windows): Check that the window is still live.
6571
7f1faf1c
KH
65722009-06-17 Andreas Schwab <schwab@linux-m68k.org>
6573
6574 * coding.c (detect_coding_utf_16): Fix previous change.
6575
cc13543e
KH
65762009-06-16 Kenichi Handa <handa@m17n.org>
6577
6578 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
6579 UTF-16 by checking the dispersion of Eth and Oth bytes.
6580
977b85f4
AS
65812009-06-15 Andreas Schwab <schwab@linux-m68k.org>
6582
6583 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
6584
66bd43d1
KH
65852009-06-15 Kenichi Handa <handa@m17n.org>
6586
6587 * process.c (status_message): Fix previous change. Be sure to
6588 decode a localized string.
6589
cb5ca9c5
YM
65902009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6591
6592 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
6593 add comment explaining why.
6594
ec7709ba 65952009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 6596
ec7709ba 6597 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 6598
4b7f335c
AR
65992009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
6600
6601 * nsfont.m (ns_attribute_value): Remove.
6602 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
6603 (ns_has_attribute): Shrink the normal range.
6604 (ns_findfonts): Don't worry about requested spec in determining
6605 need for synthItal.
e41820ee 6606 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 6607
73b26103
SZ
66082009-06-14 Seiji Zenitani <zenitani@mac.com>
6609
6610 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
6611
5753e4da
KH
66122009-06-11 Kenichi Handa <handa@m17n.org>
6613
6614 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6615 overhang for the static composition case.
6616
3561b671
KH
66172009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6618
5753e4da
KH
6619 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6620 overhang for the automatic composition case.
6621
3561b671
KH
6622 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
6623 composition case.
6624
852bbd41
CY
66252009-06-10 Chong Yidong <cyd@stupidchicken.com>
6626
6627 * xdisp.c (get_next_display_element): When handling wrap-prefix
6628 and line-prefix, treat \n as a control character (bug#3502).
6629
9903d1e6
KH
66302009-06-10 Kenichi Handa <handa@m17n.org>
6631
6632 * font.c (font_parse_family_registry): Fix for one-char foundry.
6633 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
6634
0bcbaaaa
CY
66352009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
6636
6637 * process.c (status_message): Fix handling of multibyte signal
6638 string (Bug#3499).
6639
40aa3f13
JM
66402009-06-09 Jim Meyering <meyering@redhat.com>
6641
1f80c7e2
CY
6642 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
6643 color name is missing.
40aa3f13 6644
72d51285
KH
66452009-06-09 Kenichi Handa <handa@m17n.org>
6646
6647 * charset.c (Fmap_charset_chars): In docstring, state clearly that
6648 FROM-CODE and TO-CODE are codepoints of CHARSET.
6649
c1d04d84
AR
66502009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6651
6652 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
6653
66542009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6655
6656 Changes to support :script/:lang/:otf in NS font driver.
6657 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
6658 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
6659 indicate not part of font driver interface, and change callers.
6660 (ns_get_family): Remove pointless null check.
6661 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
6662 ns_spec_to_descriptor, ns_descriptor_to_entity.
6663 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
6664 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
6665 (ns_spec_to_descriptor, ns_descriptor_to_entity)
6666 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
6667 (ns_get_req_script, ns_accumulate_script_ranges)
6668 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
6669 New functions.
6670 (nsfont_list, nsfont_match): Use ns_findfonts.
6671 (nsfont_open): Use font descriptor instead of traits.
6672 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
6673 (dump_glyphstring): Rename to ns_dump_glyphstring.
6674
c7eb9816
AR
6675 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
6676
c1d04d84
AR
6677 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
6678
6679 * fontset.c (fontset_from_font): Remove NS-specific code.
6680
ec7709ba 66812009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
6682
6683 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
6684 nonactive windows.
6685
31fd7c5c 66862009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 6687
1ac9108a 6688 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 6689
68852c13 66902009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
6691
6692 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
6693
6756cd1d
CY
66942009-06-07 Chong Yidong <cyd@stupidchicken.com>
6695
6696 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
6697 account for the overflowing of newlines into the last glyph on the
6698 display line (Bug#3482).
6699
28bf482a
DR
67002009-06-05 David Reitter <david.reitter@gmail.com>
6701
ec7709ba
JB
6702 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
6703 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
6704 Fns_selection_exists_p, Fns_selection_owner_p.
6705
fdb55376
JR
67062009-06-03 Jason Rumney <jasonr@gnu.org>
6707
6708 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
6709 available. (Bug#3379)
6710
05129fbe
KH
67112009-05-29 Kenichi Handa <handa@m17n.org>
6712
1ac9108a
SM
6713 * coding.c (get_translation_table):
6714 Check Venable_character_translation.
05129fbe 6715
ec7709ba 67162009-05-26 David Reitter <david.reitter@gmail.com>
15891144 6717
ec7709ba
JB
6718 * nsterm.m (ns_raise_frame): Only raise frame if visible.
6719 (x_make_frame_visible): Move frame to front rather than calling
15891144 6720 ns_raise_frame().
ec7709ba 6721 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 6722 isn't key window.
ec7709ba 6723 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
6724 drawRect may be called by NSView even if the frame is hidden.
6725
ec7709ba
JB
6726 * nsfns.m (Fx_create_frame): Follow other ports in
6727 determining visibility; default to t. Ensure async_visible is set.
15891144 6728
21f73755
EZ
67292009-05-23 Eli Zaretskii <eliz@gnu.org>
6730
6731 * dired.c (Ffile_attributes): Doc fix.
6732
34001e41
CY
67332009-05-22 Chong Yidong <cyd@stupidchicken.com>
6734
6735 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
6736
46306a17
SM
67372009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
6738
6739 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
6740 and xfont_scratch_props.
6741 (syms_of_xfont): Do it here instead.
6742 (xfont_find_ccl_program): Delete, unused.
6743 (xfont_open): Delete unused var `i'.
6744
ef6e0694
KH
67452009-05-21 Kenichi Handa <handa@m17n.org>
6746
6747 * fontset.c (Qlatin): Don't make it static.
6748
46306a17
SM
6749 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
6750 New functions.
ef6e0694
KH
6751 (xfont_scripts_cache, xfont_scratch_props): New variables.
6752 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
6753 (xfont_list_pattern): Argument changed. Callers changed.
6754 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
6755 (xfont_list): Don't reject a font spec with :script property.
6756 (xfont_has_char): Fix setting of encoding.
6757 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
6758 xfont_scratch_props.
6759
67602009-05-19 Kenichi Handa <handa@m17n.org>
6761
46306a17 6762 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
6763 Callers changed.
6764
67652009-05-18 Kenichi Handa <handa@m17n.org>
6766
6767 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
6768
ac71ced7
SM
67692009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
6770
6771 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
6772 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
6773
1c6d1051
YM
67742009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6775
6776 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
6777 (x_delete_terminal): Dissociate resource database from display and
6778 then call XrmDestroyDatabase before closing display.
6779
9b9b779c
AR
67802009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6781
6782 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
6783 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
6784 whether selected frame is viable before raising it (based on patch
6785 by David Reitter), and improve commentary.
6786 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 6787
cccd42d5
KH
67882009-05-15 Kenichi Handa <handa@m17n.org>
6789
6790 * font.c (Ffont_spec): Check arguments.
6791
337fbd17
CY
67922009-05-14 Chong Yidong <cyd@stupidchicken.com>
6793
6794 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
6795 weight when testing attributes (Bug#3282).
6796
47a6002f
JD
67972009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6798
6799 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
6800 what we expect to get in the next ConfigureNotify event.
6801
9cb363db
YM
6802 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
6803 before Xft one (Bug#1696).
6804
b9126609
CY
68052009-05-07 David Reitter <david.reitter@gmail.com>
6806
6807 * nsfns.m (Fx_display_planes): Compute bitplanes using
6808 NSBitsPerPixelFromDepth (Bug#3207).
6809
27a69fd9
CY
68102009-05-10 Chong Yidong <cyd@stupidchicken.com>
6811
6812 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
6813
00f37552
TTN
68142009-05-10 Ulrich Mueller <ulm@gentoo.org>
6815
6816 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
6817
2d82a920
DR
68182009-05-07 David Reitter <david.reitter@gmail.com>
6819
ec7709ba
JB
6820 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
6821 Respect mouse face background.
2d82a920 6822
46b0d52d
DR
68232009-05-07 David Reitter <david.reitter@gmail.com>
6824
ec7709ba
JB
6825 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
6826 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
6827 in ns_update_begin and ns_update_end.
6828
ce1b23bb
SM
68292009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6830
5996e1b7
SM
6831 * nsfns.m (ns_get_screen): Rewrite.
6832 Don't presume selected-frame is of type `ns'.
6833
ba98e3a0
SM
6834 * font.c (font_update_drivers): Sanity fallback to avoid disabling
6835 all drivers.
6836
ce1b23bb
SM
6837 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
6838
bcda200f
YM
68392009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6840
6841 * keyboard.h (add_user_signal): Fix typo in extern.
6842
6843 * lisp.h (add_user_signal): Remove extern.
6844
6845 * unexelf.c (unexec): Consider a section to precede the .bss section
6846 if its addresses overlap that of .bss.
6847 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
6848 instead of dumping process.
6849
864660a2
SM
68502009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6851
6852 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
6853
50da4e56
SM
68542009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
6855
6856 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
6857
51520a1a
DN
68582009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
6859
6860 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
6861 any statements.
6862
409ea3a1
AS
68632009-05-02 Andreas Schwab <schwab@linux-m68k.org>
6864
59c4c60f
AS
6865 * process.c (read_process_output): Make sure the current buffer is
6866 always restored.
6867
409ea3a1
AS
6868 * coding.c (record_conversion_result): Don't modify
6869 Vlast_code_conversion_error for successful result.
6870 (alloc_destination): Don't clobber conversion result. (Bug#1650)
6871
56f00ed2
KH
68722009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6873
6874 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 6875 (load_charset_map): Remove unnecessary code.
56f00ed2 6876
4491c9d2
DR
68772009-04-30 David Reitter <david.reitter@gmail.com>
6878
35f5b128 6879 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
6880 through f24.
6881
6970f632
CY
68822009-04-30 Chong Yidong <cyd@stupidchicken.com>
6883
6884 * xfaces.c (face_at_buffer_position): New arg base_face_id.
6885
6886 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
6887 face_at_buffer_position.
6888 (face_before_or_after_it_pos, get_next_display_element)
6889 (note_mouse_highlight): Update face_at_buffer_position call.
6890
6891 * term.c (term_mouse_highlight):
6892 * msdos.c (IT_note_mouse_highlight):
6893 * fontset.c (Finternal_char_font):
35f5b128 6894 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
6895
6896 * dispextern.h (face_at_buffer_position): Update prototype.
6897
0c616f63
KH
68982009-04-30 Kenichi Handa <handa@m17n.org>
6899
35f5b128 6900 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 6901
ad3aaf33
AS
69022009-04-29 Andreas Schwab <schwab@linux-m68k.org>
6903
6904 * callproc.c (Fcall_process): Fix GC protection. Make sure
6905 current buffer is always restored.
6906
c3c963a0
YM
69072009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6908
6909 * atimer.c (init_atimer): Also clear stopped_atimers.
6910
6911 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
6912
7e3386cb
YM
6913 * process.c (create_process): Clean up merger residues of
6914 2008-07-17 change.
6915
91f68422
CY
69162009-04-29 Ulrich Mueller <ulm@gentoo.org>
6917
6918 * lread.c (Vread_circle): New variable.
6919 (read1): Disable recursive read if Vread_circle is nil.
6920
24b34550
KH
69212009-04-29 Kenichi Handa <handa@m17n.org>
6922
6923 * fontset.h (set_default_ascii_font): Delete extern.
6924
6925 * fontset.c (set_default_ascii_font): Delete this unused function.
6926
6927 * frame.c (x_set_font): When ARG is a font-object, check if the
6928 font-object matches with the ASCII font-spec of the frame's
9c358bda 6929 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 6930
77bf07e1
AS
69312009-04-28 Andreas Schwab <schwab@linux-m68k.org>
6932
6933 * fns.c (Flocale_info): Protect vector from GC during decoding.
6934
6935 * process.c (Fstart_process): Protect argv strings from GC during
6936 encoding.
6937
2c55aacf
AS
69382009-04-27 Andreas Schwab <schwab@linux-m68k.org>
6939
6940 * sysdep.c: Include <ctype.h>.
6941
b892d3c9
DR
69422009-04-27 David Reitter <david.reitter@gmail.com>
6943
35f5b128 6944 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
6945 Remove commented-out code.
6946
9d0644c4
JB
69472009-04-26 Johan Bockgård <bojohan@gnu.org>
6948
6949 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6950
b7053016
JR
69512009-04-25 Jason Rumney <jasonr@gnu.org>
6952
6953 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
6954
4e8231f3
YM
69552009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6956
6957 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
6958 Swap bytes in short integer if fringe bitmap width > 8.
6959
493dcf2c
KH
69602009-04-23 Kenichi Handa <handa@m17n.org>
6961
6962 * xfaces.c (Fx_list_fonts): If a font size is specified in
6963 PATTERN, set it in returned scalable fonts.
6964
401e9e57
CY
69652009-04-22 Chong Yidong <cyd@stupidchicken.com>
6966
708e05dc
CY
6967 * keyboard.c (Fset_input_meta_mode): Doc fix.
6968
6969 * dispnew.c (Fsend_string_to_terminal): Doc fix.
6970
1ac9108a 6971 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
6972
6973 * coding.c (Fterminal_coding_system): Doc fix.
6974
6975 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
6976 (Fx_display_pixel_height, Fx_display_planes)
6977 (Fx_display_color_cells, Fx_server_max_request_size)
6978 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6979 (Fx_display_mm_height, Fx_display_mm_width)
6980 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
6981 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
6982 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
6983 (check_x_display_info): Handle terminal objects instead of
6984 terminal ids.
6985
401e9e57
CY
6986 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
6987 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
6988 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
6989 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 6990
df80c7f0
KH
69912009-04-21 Kenichi Handa <handa@m17n.org>
6992
5a8f12af 6993 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 6994 (font_score): Check AVGWIDTH too.
908567ef 6995
df80c7f0
KH
6996 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
6997 worst case.
1ac9108a
SM
6998 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
6999 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 7000
705af33f
JR
70012009-04-19 Jason Rumney <jasonr@gnu.org>
7002
7003 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 7004 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
7005
7006 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
7007 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
7008 get_phys_cursor_geometry.
7009
b71ac3dd 7010 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
7011 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
7012 using get_phys_cursor_geometry.
7013
7014 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
7015 correctly calculated.
7016
dc2933eb
JD
70172009-04-19 Jan Djärv <jan.h.d@swipnet.se>
7018
1ac9108a
SM
7019 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
7020 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
7021 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
7022 is deprecated.
7023
973e7849
AS
70242009-04-18 Andreas Schwab <schwab@linux-m68k.org>
7025
7026 * font.c (font_put_frame_data): Use xfree instead of free.
7027
314d66f4
JB
70282009-04-17 Juanma Barranquero <lekktu@gmail.com>
7029
7030 * w32font.c (Qja, Qko): Remove declarations.
7031 (syms_of_w32font): Don't DEFSYM them.
7032
cf702558
CY
70332009-04-17 Chong Yidong <cyd@stupidchicken.com>
7034
7035 * font.c (Qja, Qko): Move definitions here from ftfont.c.
7036
7037 * font.h (Qja, Qko): Extern them.
7038
7039 * ftfont.c (Qja, Qko): Remove declarations.
7040
7041 * xfont.c (Qja, Qko): Remove declarations.
7042
b50504f5
KH
70432009-04-17 Kenichi Handa <handa@m17n.org>
7044
bde25748
KH
7045 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
7046 string from a vector to handle Latin-1 characters correctly.
7047
b50504f5
KH
7048 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
7049 entity even if the cache hits.
7050
f4646fff
AS
70512009-04-16 Andreas Schwab <schwab@linux-m68k.org>
7052
7053 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 7054 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 7055
e7deaab0
AS
7056 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
7057 * lisp.h: Adjust prototypes.
7058
0a0e7d49
CY
70592009-04-16 Chong Yidong <cyd@stupidchicken.com>
7060
7061 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
7062 change (Bug#3003).
7063
3c908a57
KH
70642009-04-16 Kenichi Handa <handa@m17n.org>
7065
1ac9108a 7066 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
7067
7068 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
7069 adstyle.
7070
7071 * ftfont.c (Qja, Qko): Don't make them static.
7072 (enum ftfont_cache_for): New enum.
7073 (fc_charset_table): Undo the previous change.
7074 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
7075 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
7076 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
7077 non-scarable font, try to get AVERAGE_WIDTH.
7078 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
7079 Change ft_face_cache from a list of a hash-table. Don't check
7080 `ja' and `ko' adstyle here.
7081 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
7082 FTFONT_CACHE_FOR_CHARET.
7083 (ftfont_get_charset): Undo the previous change.
1ac9108a 7084 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
7085 (ftfont_close): Likewise.
7086 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
7087
7088 * font.c (font_sort_entites): Change the meaning of the arg
7089 BEST-ONLY. Don't optimize for VEC of lenght 1.
7090 (font_select_entity): Just return the value of font_sort_entites.
7091
7092 * xfaces.c (merge_face_vectors): Reflect font properties in
7093 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
7094 font_clear_prop if a face attribute doesn't change.
7095
3c908a57
KH
7096 * charset.h (charset_ksc5601): Extern it.
7097
7098 * charset.c (charset_ksc5601): New variable.
7099 (Fdefine_charset_internal): Set charset_ksc5601.
7100 (init_charset_once): Initialize charset_ksc5601 to -1.
7101
d65859c3
DN
71022009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
7103
7104 * fileio.c (history_delete_duplicates): Remove unused declaration.
7105
7106 * callint.c (history_delete_duplicates): New declaration.
7107 (Fcall_interactively): Remove command history duplicates when
7108 history_delete_duplicates is true.
7109
3ba010e5
EZ
71102009-04-14 Eli Zaretskii <eliz@gnu.org>
7111
7112 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
7113
06f19b91
KH
71142009-04-14 Kenichi Handa <handa@m17n.org>
7115
7116 * font.c (Ffont_info): Fix docstring. Fix the second element of
7117 the returned value (bug#2949).
7118
2cce8bfc
CY
71192009-04-14 Chong Yidong <cyd@stupidchicken.com>
7120
7121 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
7122
d156542d
KH
71232009-04-14 Kenichi Handa <handa@m17n.org>
7124
7125 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
7126 encoding charset is ascii_compatible.
7127
7128 * charset.c (Fdefine_charset_internal): Make charset
7129 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
7130 code_offset is 0, and covers all ASCII characters.
7131
86fa089e
SM
71322009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
7133
7134 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
7135 (ns_string_to_pasteboard_internal):
7136 * nsmenu.m (process_dialog):
7137 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
7138 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
7139 * lisp.h (Fx_load_color_file): Declare.
7140
a8a3728b
KH
71412009-04-13 Kenichi Handa <handa@m17n.org>
7142
1ac9108a 7143 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
7144 (font_select_entity): Suppress the code to optimize for the same
7145 kind of fonts.
7146 (font_load_for_lface): Get a font that supports at least ASCII
7147 characters.
7148
7149 * ftfont.c (Qja, Qko): New variables.
7150 (fc_charset_table): Delete uniquifier data for iso8859-1.
7151 (ftfont_get_latin1_charset): New function.
7152 (get_adstyle_property): New function.
7153 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
7154 bitmap fonts.
7155 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
7156 Delete iso-8859-1 range from the charset of fonts whose adstyle is
7157 `ko' or `ja'.
7158 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 7159 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
7160 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
7161 property.
7162 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
7163 (syms_of_ftfont): DEFSYM Qja and Qko.
7164
483670b5
KH
71652009-04-09 Kenichi Handa <handa@m17n.org>
7166
12b55765
KH
7167 * charset.c (map_charset_chars): For a charset of `superset'
7168 method, fix calculation of code range.
7169
483670b5
KH
7170 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
7171 from the list of extra properties.
7172 (font_clear_prop): Be sure to delete `:name' font property.
7173
57d3b93b
KH
71742009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7175
b4b2c2ca
YM
7176 * dispnew.c (redraw_overlapping_rows): Fix detection of
7177 overlapping for topmost and bottommost rows.
7178
1ac9108a 7179 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 7180
472c3609
JR
71812009-04-06 Jason Rumney <jasonr@gnu.org>
7182
7183 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
7184
ab193662
KH
71852009-04-06 Kenichi Handa <handa@m17n.org>
7186
7187 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
7188
7189 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
7190
0c26f026
KH
71912009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7192
7193 * ftfont.c (ftfont_open): Fix checking of the return value of
7194 FT_Load_Char. Fix setting font->underline_thickness.
7195
e173bbce
CY
71962009-04-04 Chong Yidong <cyd@stupidchicken.com>
7197
7198 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
7199 (Fterminal_parameters, Fterminal_parameter)
7200 (Fset_terminal_parameter): In doc string, refer to terminal
7201 objects rather than terminal ids.
7202
693a2698
EZ
72032009-04-04 Eli Zaretskii <eliz@gnu.org>
7204
7205 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
7206 ret_lim_data. (Bug#2867)
7207
d5221487
CY
72082009-04-03 Chong Yidong <cyd@stupidchicken.com>
7209
7210 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
7211 so they don't get wider than the window, matching 2006-01-23
7212 change to the partner function in xdisp.c (Bug#2800).
7213
223509a3
KH
72142009-04-03 Kenichi Handa <handa@m17n.org>
7215
7216 * print.c (print_object): Make each lowest sub_char_table start a
7217 new line (Bug#2866).
7218
74fcd0b1
KH
72192009-04-02 Kenichi Handa <handa@m17n.org>
7220
7221 * fontset.c (fontset_font): Record no-font when a fontset
7222 explicitly tells not to try another font-specs.
7223
c542407d
SM
72242009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
7225
7226 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
7227
e3869731
KH
72282009-03-30 Kenichi Handa <handa@m17n.org>
7229
d8d2f142
KH
7230 * fontset.c (fontset_from_font): Specify only registry in a
7231 font-spec for all characters supported by that registry.
7232
e3869731
KH
7233 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
7234 even if HAVE_M17N_FLT is not defined.
7235
5da5f805
CY
72362009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
7237
7238 * ftfont.c: Conditionalize prototyping and use of
7239 ftfont_variation_glyphs.
7240
ab226c50
SM
72412009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
7242
9628fed7
SM
7243 * frame.c (delete_frame): Work around compiler bug.
7244
7245 * editfns.c (general_insert_function): Adjust to insdel.c changes.
7246 * insdel.c (prepare_to_modify_buffer, signal_before_change):
7247 Some more EMACS_INT.
7248 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
7249
7250 * xdisp.c (dump_glyph): Fix typo.
7251
ae19ba7c
SM
7252 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
7253 (adjust_markers_gap_motion, adjust_markers_for_delete)
7254 (adjust_markers_for_insert, adjust_point)
7255 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
7256 (make_gap, copy_text, count_size_as_multibyte, insert)
7257 (insert_and_inherit, insert_before_markers)
7258 (insert_before_markers_and_inherit, insert_1)
7259 (count_combining_before, count_combining_after, insert_1_both)
7260 (insert_from_string, insert_from_string_before_markers)
7261 (insert_from_string_1, insert_from_gap, insert_from_buffer)
7262 (insert_from_buffer_1, adjust_after_replace)
7263 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
7264 (replace_range_2, del_range, del_range_1, del_range_byte)
7265 (del_range_both, del_range_2, modify_region)
7266 (prepare_to_modify_buffer, signal_before_change)
7267 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
7268 for buffer positions and sizes.
7269 * lisp.h: Adjust prototypes accordingly.
7270
7271 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
7272 (non_regular_inserted, non_regular_nbytes, read_non_regular)
7273 (Finsert_file_contents): Use EMACS_INT for buffer positions.
7274
ab226c50
SM
7275 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
7276
46dfb8fb
JD
72772009-03-27 Jan Djärv <jan.h.d@swipnet.se>
7278
7279 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
7280 lines and columns so we keep the same pixel height and width.
7281
7282 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
7283 the property _NET_WM_STATE has changed.
46dfb8fb
JD
7284 (x_handle_net_wm_state): New function to update frame parameter
7285 fullscreen.
7286 (x_term_init): Initialize atoms for _NET_WM_STATE.
7287
7288 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
7289
d347e494
SM
72902009-03-27 Kevin Ryde <user42@zip.com.au>
7291
7292 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
7293 Gpm_GetEvent as an error that justifies closing the filedescriptor.
7294 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
7295 (Fgpm_mouse_stop): Pass that new parameter.
7296 * termhooks.h (close_gpm): Adjust prototype.
7297
84db11d6
SM
72982009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
7299
c95a5008
SM
7300 * lisp.h (Fx_focus_frame): Declare.
7301
84db11d6
SM
7302 * callint.c (Fcall_interactively): For '^' just delegate the work to
7303 handle-shift-selection.
7304 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
7305
0a1958d6
CY
73062009-03-24 Chong Yidong <cyd@stupidchicken.com>
7307
0bfdff23
CY
7308 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
7309
0a1958d6
CY
7310 * data.c (Qinteractive_form): New variable.
7311 (Finteractive_form): Use it.
7312
7313 * eval.c (Fcommandp): Use Qinteractive_form.
7314
58aec0d6
JR
73152009-03-24 Jason Rumney <jasonr@gnu.org>
7316
7317 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
7318 Calculate total size precisely. Decode environment variables
7319 before substituting. (Bug#38)
7320
553dd618
KH
73212009-03-24 Kenichi Handa <handa@m17n.org>
7322
7323 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 7324 encoding (Bug#2722).
553dd618 7325
c39ea606
JD
73262009-03-23 Jan Djärv <jan.h.d@swipnet.se>
7327
7328 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
7329 that gdpy is set.
7330
bc9b2b5e
AM
73312009-03-22 Alan Mackenzie <acm@muc.de>
7332
7333 * callint.c (Finteractive): Clarify the doc string - even
7334 promptless elements need \n separators.
7335
9f995a76
JR
73362009-03-22 Jason Rumney <jasonr@gnu.org>
7337
7338 * w32term.c (syms_of_w32term): Doc fix for
7339 x-use-underline-position-properties.
7340
22749e9a
EZ
73412009-03-21 Eli Zaretskii <eliz@gnu.org>
7342
7343 * w32.c (getpwuid): Change argument type to unsigned.
7344 (struct w32_id): Change type of `rid' member to unsigned.
7345 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
7346 argument ID to unsigned. All callers changed.
7347 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
7348
e00553bf
EZ
73492009-03-20 Eli Zaretskii <eliz@gnu.org>
7350
7351 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
7352 negative, produce a float value.
7353
7354 * dired.c (make_uid, make_gid): New functions.
7355 (Ffile_attributes): Use them to avoid negative UID and GID.
7356
f761d6b6
JB
73572009-03-20 Juanma Barranquero <lekktu@gmail.com>
7358
7359 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
7360 (syms_of_keyboard) <command-hook-internal, input-method-function>:
7361 Fix typos in docstrings.
7362
d507f8d7
KH
73632009-03-19 Kenichi Handa <handa@m17n.org>
7364
7365 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
7366 changed, use font_load_for_lface to get a new font object.
7367 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
7368
7369 * frame.c (x_set_font): Handle the case that ARG is a cons.
7370
c68845e0
GM
73712009-03-19 Glenn Morris <rgm@gnu.org>
7372
7373 * fileio.c (Fsubstitute_in_file_name): Doc fix.
7374
bfa49dd1
CY
73752009-03-19 Chong Yidong <cyd@stupidchicken.com>
7376
7377 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
7378
8458d4c1
KH
73792009-03-19 Kenichi Handa <handa@m17n.org>
7380
7381 * charset.c (load_charset_map_from_file): When a mapfile can't be
7382 loaded, signal an error.
7383
78e7d1fe
EZ
73842009-03-18 Eli Zaretskii <eliz@gnu.org>
7385
7386 * dired.c (Ffile_attributes): Make sure UID and GID are always
7387 positive, even if the value is too large for a positive EMACS_INT.
7388 Doc fix.
7389
7390 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
7391
5da9fdfa
YM
73922009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7393
7394 * xmenu.c (xdialog_show): Move Fredisplay call ...
7395 (Fx_popup_dialog): ... here.
7396
7519c40d
SM
73972009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
7398
7399 * dired.c (file_name_completion): Disable the first optimization just
7400 installed, since it is not implemented correctly.
7401
2cd298e2
SM
74022009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
7403
7404 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 7405 only if the entry can affect bestmatch.
2cd298e2
SM
7406 Stop the search early, as Ftry_completion already does.
7407
48d37adf
CY
74082009-03-17 Chong Yidong <cyd@stupidchicken.com>
7409
e10c9c93 7410 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 7411
9286b16a
CY
74122009-03-15 Chong Yidong <cyd@stupidchicken.com>
7413
7414 * keyboard.c (parse_menu_item): Don't display remappings as menu
7415 equivalent bindings (Bug#788).
7416
f7b146dc
JR
74172009-03-15 Jason Rumney <jasonr@gnu.org>
7418
7419 * w32term.h (WM_EMACS_PAINT): New message.
7420 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
7421 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
7422 before passing to lisp thread. (Bug#950)
7423
f761d6b6 74242009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 7425
d93f9575
CY
7426 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
7427 variable as it was never reset.
7428 (ns_term_init): Remove initialization of Lisp-settable defaults
7429 and ns_expand_space.
7430 (-setPanelFromDefaultValues): Remove ns_expand_space.
7431 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
7432 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
7433 i.e. no additional spacing, similar to Carbon port.
7434
d93f9575
CY
7435 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
7436 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 7437
305018ec
JD
74382009-03-14 Jan Djärv <jan.h.d@swipnet.se>
7439
7440 * sound.c (alsa_configure): Remove call to deprecated
7441 snd_pcm_sw_params_set_xfer_align.
7442
f761d6b6 74432009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
7444
7445 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
7446 after clicking in a detached tool bar.
7447 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
7448
46e722a9
SM
74492009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
7450
348db3dd
SM
7451 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
7452 int/Lisp_Object mixup).
46e722a9 7453
a3d16f39
KH
74542009-03-13 Kenichi Handa <handa@m17n.org>
7455
7456 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 7457 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
7458 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
7459 (set_fontset_font): Change ARG to a vector. Handle range_list in
7460 ARG correctly.
7461 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 7462 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
7463 the above change.
7464 (fontset_from_font): Fix previous change.
fe24f56a 7465 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
7466 entry. If FONTSET is the default fontset, don't set the extra
7467 slot of the returning char-table.
7468
b066e6b6
JB
74692009-03-12 Juanma Barranquero <lekktu@gmail.com>
7470
7471 * nsfns.m (Fx_close_connection): Doc fix.
7472 (Fns_do_applescript): Reflow docstring.
7473 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
7474 (Fx_display_pixel_width, Fx_display_pixel_height)
7475 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
7476 Fix typos in docstrings.
7477 (Fns_set_alpha): Fix typos in error messages.
7478
d472514e 74792009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 7480
d472514e 7481 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
7482 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
7483 were used for such events.
7484
d472514e
JB
7485 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
7486 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 7487
d472514e 7488 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
7489 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
7490
fb930676
KH
74912009-03-11 Kenichi Handa <handa@m17n.org>
7492
ff85581a
KH
7493 * font.h (font_open_by_spec): Extern it.
7494
c50b7e98
KH
7495 * font.c (font_open_by_spec): New function.
7496 (font_open_by_name): Use font_open_by_spec.
7497
fb930676
KH
7498 * frame.c (x_set_font): When ARG is a font-object, don't alter the
7499 fontset of the frame.
7500
7501 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
7502 modify the default font of frames that use this fontset.
7503 (num_auto_fontsets): New variable.
7504 (fontset_from_font): Use num_auto_fontsets to decide a fontset
7505 name. Be sure to set FONTSET_ASCII to the correct font name.
7506 (update_auto_fontset_alist): New function.
7507
df4e8455
JB
75082009-03-11 Juanma Barranquero <lekktu@gmail.com>
7509
7510 * makefile.w32-in: Update dependencies.
7511
0a375797
AR
75122009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7513
7514 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
7515
61313fa3
SM
75162009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
7517
7518 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
7519
b55103fb
CY
75202009-03-10 Chong Yidong <cyd@stupidchicken.com>
7521
7522 * lread.c (Feval_buffer): Doc fix.
7523
dde2559c
KH
75242009-03-09 Kenichi Handa <handa@m17n.org>
7525
7526 * charset.c (Qfile_name_handler_alist): Extern it.
7527 (load_charset_map_from_file): Temporarily bind
7528 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
7529
df4e8455 75302009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 7531
47f588bb
GM
7532 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
7533 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 7534
4ddf94bd
AR
75352009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7536
4c9bdfc2
AR
7537 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
7538 (x_set_window_size): Change back to calculated method of setting
7539 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
7540 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
7541 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
7542
fe41ae9e
AR
7543 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
7544
4c9bdfc2
AR
7545 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
7546 accelerator in parens under GNUstep.
7547
825d0875
KH
75482009-03-06 Kenichi Handa <handa@m17n.org>
7549
7550 These changes are to detect incorrect composition sequence without
f3b3be74 7551 looking ahead the source. (Bug#2370)
825d0875
KH
7552
7553 * coding.h: Include "composite.h".
7554 (enum compisition_state): New enum.
7555 (struct compisition_status): New struct.
7556 (struct iso_2022_spec): New member cmp_status.
7557 (struct emacs_mule_spec): New struct.
7558 (struct coding_system): New members ctext_extended_segment_len and
7559 embedded_utf_8. Change the union member
7560 spec.emacs_mule_full_support to spec.emacs_mule.
7561
7562 * coding.c (CODING_ISO_CMP_STATUS): New macro.
7563 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 7564 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
7565 (ADD_COMPOSITION_DATA): New arg nbytes.
7566 (emacs_mule_char): New arg cmp_status.
7567 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
7568 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
7569 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
7570 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
7571 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
7572 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
7573 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
7574 (EMACS_MULE_COMPOSITION_END): New macro.
7575 (emacs_mule_finish_composition): New function.
7576 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
7577 (decode_coding_emacs_mule): Avoid long looking ahead while
7578 handling composition.
7579 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
7580 (ENCODE_COMPOSITION_RULE): New macro.
7581 (finish_composition): New function.
7582 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
7583 (DECODE_COMPOSITION_START): New implementation.
7584 (DECODE_COMPOSITION_END): Likewise.
7585 (STORE_COMPOSITION_RULE): New macro.
7586 (decode_coding_iso_2022): Avoid long looking ahead while handling
7587 composition, CTEXT extended segment, and embedded UTF-8.
7588 (setup_coding_system): For a coding of type iso-2022, reset
7589 CODING_ISO_EXTSEGMENT_LEN (coding) and
7590 CODING_ISO_EMBEDDED_UTF_8 (coding).
7591 (get_translation): Delete arguments last_block, from_nchars,
7592 to_nchars. Callers changed.
7593 (produce_chars): Don't modify charbuf. Adjusted for the change of
7594 get_translation.
98a326f7 7595 (produce_composition): Adjust for the new annotation sequence.
825d0875 7596 (handle_composition_annotation): Likewise.
98a326f7 7597 (consume_chars): Adjust for the change of get_translation.
825d0875 7598
ccbc4452
AR
75992009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
7600
4ddf94bd 7601 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 7602
988a7ddb
KH
76032009-03-05 Kenichi Handa <handa@m17n.org>
7604
7605 * font.c (font_select_entity): New function.
7606 (font_find_for_lface): Use font_select_entity to select a font.
7607
7608 * fontset.c (fontset_find_font): If a font found without
a8a3728b 7609 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
7610 font with C restriction.
7611
98a326f7 76122009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 7613
be1bce46 7614 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 7615
10ea2b82
JR
76162009-03-04 Jason Rumney <jasonr@gnu.org>
7617
2c93b248 7618 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 7619 characters that have already been read. (Bug#2569)
2c93b248 7620
10ea2b82
JR
7621 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
7622 Log an error message if check_image_size failed.
7623 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 7624 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 7625
71a0c011
EZ
76262009-03-02 Eli Zaretskii <eliz@gnu.org>
7627
7628 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
7629 when decoding process output.
7630
2f63bba8
RS
76312009-03-01 Richard M Stallman <rms@gnu.org>
7632
7633 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
7634
7635 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
7636
0a9564cb
EZ
76372009-02-28 Eli Zaretskii <eliz@gnu.org>
7638
7639 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
7640 (decode_coding_emacs_mule, decode_coding_iso_2022)
7641 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7642 (decode_coding_raw_text, decode_coding_charset)
7643 (setup_coding_system, decode_eol, decode_coding, consume_chars):
7644 Honor inhibit-eol-conversion. (Bug #2186)
7645
449148b3
JR
76462009-02-28 Jason Rumney <jasonr@gnu.org>
7647
7648 * coding.c (detect_coding_charset): If not checking latin extra,
7649 fail on characters between 0x80 and 0xA0. (Bug#2354)
7650
a4aee864
EZ
76512009-02-28 Eli Zaretskii <eliz@gnu.org>
7652
7653 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 7654 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 7655
d88bee5a
GM
76562009-02-27 Glenn Morris <rgm@gnu.org>
7657
7658 * callint.c (Finteractive): Doc fix.
7659
a808f22d
KH
76602009-02-27 Kenichi Handa <handa@m17n.org>
7661
7662 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
7663
caf8d60c
CY
76642009-02-27 Chong Yidong <cyd@stupidchicken.com>
7665
7666 * font.c (font_style_to_value): Set value for unknown symbols to
7667 100 instead of 255.
b61137ea
CY
7668 (weight_table, slant_table, width_table): Treat "unspecified" as
7669 the default value.
caf8d60c 7670
1a0de25c
JB
76712009-02-26 Juanma Barranquero <lekktu@gmail.com>
7672
7673 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
7674
8fc45744
JB
76752009-02-25 Juanma Barranquero <lekktu@gmail.com>
7676
107bd7d1
JB
7677 * lread.c (Fload): Stop checking Vloads_in_progress and signal
7678 error as soon as a recursive load is detected.
8fc45744 7679
f097e223
AR
76802009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7681
7682 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
7683 before caching.
7684
8810a12f
KH
76852009-02-24 Kenichi Handa <handa@m17n.org>
7686
7687 * fontset.c (fontset_find_font): Fix the condition for checking
7688 unavailable font.
7689
2c7d1565
GM
76902009-02-24 Glenn Morris <rgm@gnu.org>
7691
7692 * xfaces.c (Finternal_set_font_selection_order): Remove leading
7693 whitespace that confuses documentation.
7694
a20878b6
MB
76952009-02-23 Miles Bader <miles@gnu.org>
7696
7697 * process.c (Flist_system_processes, Fprocess_attributes)
7698 (syms_of_process): Rename `system-process-attributes' to
7699 `process-attributes'.
7700
b3b58c01
AS
77012009-02-22 Andreas Schwab <schwab@linux-m68k.org>
7702
1b3b981b
AS
7703 * coding.h (struct coding_system): Make safe_charsets a pointer to
7704 unsigned char.
7705 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
7706 being 255.
7707 (SAFE_CHARSET_P): Likewise.
7708 (setup_iso_safe_charsets): Properly setup safe_charsets.
7709 (Fdefine_coding_system_internal): Likewise.
7710 (setup_coding_system): Likewise. Remove unneeded casts.
7711 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
7712 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
7713 unneeded casts.
7714
b3b58c01
AS
7715 * insdel.c (del_range_2): Don't modify gap contents when called
7716 from decode_coding_object. (Bug#1809)
7717
0b6f228c
CY
77182009-02-21 Chong Yidong <cyd@stupidchicken.com>
7719
7720 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
7721 Qfont_object.
7722 (Ftype_of): Recognize font objects.
7723
7724 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
7725
7726 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
7727 moved to data.c.
7728
52f8870b
AR
77292009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7730
7731 * nsterm.m (x_make_frame_invisible): Unset async_visible,
7732 async_iconified. Based on a patch by Christian Lynbech
7733 <christian.lynbech@tieto.com>.
7734 (EmacsView-windowDidMiniaturize:): Unset async_visible.
7735
7087d5e9
GM
77362009-02-20 Glenn Morris <rgm@gnu.org>
7737
7738 * syntax.c (Fskip_chars_forward): Fix doc typo.
7739
41d2ceef
CY
77402009-02-20 Chong Yidong <cyd@stupidchicken.com>
7741
7742 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
7743
1a3b7ca6
CY
77442009-02-19 Chong Yidong <cyd@stupidchicken.com>
7745
7746 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
7747
73cce38d
KH
77482009-02-19 Kenichi Handa <handa@m17n.org>
7749
7750 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 7751 Don't overflow coding->carryover. (Bug#2370)
73cce38d 7752
a51092ee
DN
77532009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
7754
7755 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
7756
c423ecca
KH
77572009-02-18 Kenichi Handa <handa@m17n.org>
7758
7759 * font.c (font_check_otf_features): Fix handling of `nil' element.
7760 (Ffont_spec): Describe :lang and :otf in the docstring.
7761
4c1958f4
AS
77622009-02-16 Andreas Schwab <schwab@suse.de>
7763
7764 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
7765 string.
7766
5704f39a
KH
77672009-02-16 Kenichi Handa <handa@m17n.org>
7768
7769 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 7770 (Bug#1723)
5704f39a 7771
8f0085aa
CY
77722009-02-14 Chong Yidong <cyd@stupidchicken.com>
7773
a057d86a 7774 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
7775
7776 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
7777 (handle_line_prefix): Suppress wrapping of wrap prefixes.
7778
aff01dd9
EZ
77792009-02-14 Eli Zaretskii <eliz@gnu.org>
7780
7781 * msdos.c (MAX_SCREEN_BUF): New macro.
7782 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
7783 Encode the entire run of glyphs sharing the same face, instead of
7784 doing that one glyph at a time (fixes a bug with displaying
7785 double-size characters).
7786
ba301db3
AR
77872009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
7788
7789 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
7790
7791 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
7792 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 7793 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
7794
7795 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 7796 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 7797
51d861de
SM
77982009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
7799
ac146f82 7800 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
7801 invisible areas.
7802
7fed8996
JR
78032009-02-12 Jason Rumney <jasonr@gnu.org>
7804
631ea4fb
JR
7805 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
7806 (add_font_entity_to_list): Call check_face_name even when family
7807 is unspecified.
7808
cb4a3e42
JR
7809 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7810 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 7811 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 7812
7fed8996 7813 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 7814 raster fonts. (Bug#2219)
7fed8996 7815
895416e3
KH
78162009-02-12 Kenichi Handa <handa@m17n.org>
7817
7818 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
7819 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
7820 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 7821 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7822 (find_automatic_composition): While looking forward and backward,
7823 check static composition. Fix where to stop looking forward.
7824 (composition_adjust_point): Fix checking of static composition.
7825 (Fcomposition_get_gstring): Pay attention to
1dacf998 7826 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7827
7828 * lisp.h (fast_looking_at): Extern it.
7829
7830 * search.c (fast_looking_at): New function.
7831
51d861de 7832 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
7833 <struct glyph>.u.cmp.to.
7834 (append_composite_glyph): Likewise.
7835
51d861de 7836 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
7837 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
7838 composition.
51d861de 7839 (append_composite_glyph): Adjust for the change of
895416e3
KH
7840 <strcut glyph>.u.cmp.to.
7841
8510724d
JB
78422009-02-11 Juanma Barranquero <lekktu@gmail.com>
7843
7844 * casetab.c (init_casetab_once):
7845 * coding.c (ALLOC_CONVERSION_WORK_AREA):
7846 * font.c (font_update_lface):
7847 * fontset.c (Fnew_fontset):
7848 * ftfont.c (ftfont_drive_otf):
7849 * xfont.c (xfont_open):
7850 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
7851
294fa707
SM
78522009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
7853
7854 * fileio.c (Fwrite_region): !NILP -> CONSP.
7855
b5bfebec
AS
78562009-02-10 Andreas Schwab <schwab@suse.de>
7857
7858 * process.c (send_process): Properly relocate pointer into data
adab88bd 7859 when using encoded data. (Bug#2272)
b5bfebec 7860
cb84a2be
KH
78612009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
7862
7863 * coding.c (detect_coding_charset): Fix previous change.
7864
89e09428
JR
78652009-02-08 Jason Rumney <jasonr@gnu.org>
7866
7867 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 7868 disappeared while hourglass was displayed. (Bug #2193)
89e09428 7869
4470a277
AS
78702009-02-07 Andreas Schwab <schwab@suse.de>
7871
7872 * unexelf.c (unexec): Fix error message.
7873
3175b12a
AR
78742009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
7875
7876 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 7877 when modal window is active. (Bug #2152)
3175b12a
AR
7878 (applicationShouldTerminate:): Remove now-unneeded while loop
7879 around NSRunAlertPanel.
7880
7881 * nsmenu.m (popupSession): New file-global variable.
7882 (pop_down_menu): End the popupSession before closing dialog.
7883 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
7884 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
7885 don't query NSApp for events (just sleep instead).
7886
8434d0b8
EZ
78872009-02-07 Eli Zaretskii <eliz@gnu.org>
7888
51d861de
SM
7889 * coding.c (syms_of_coding) <translation-table-for-input>:
7890 Modify doc string to discourage use for character code unification.
8434d0b8 7891
aa82edfd
CY
78922009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7893
7894 * atimer.c (run_timers): Update pending_atimers.
7895
2d283c7c
CY
78962009-02-06 Chong Yidong <cyd@stupidchicken.com>
7897
eb306cab
CY
7898 * image.c (svg_load_image): Fix last change.
7899
2d283c7c
CY
7900 * xfns.c (Fx_create_frame): Signal an error if no font is
7901 found (Bug#2147).
7902
4d8e170e
JB
79032009-02-05 Juanma Barranquero <lekktu@gmail.com>
7904
7905 * character.c (syms_of_character) <script-representative-chars>:
7906 Fix typo in docstring.
7907
c96169a0
AR
79082009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7909
7910 * nsmenu.m (pop_down_menu): New function.
7911 (ns_popup_dialog): Call it on unwind.
7912 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
7913 call timer_check() (Bug#2154).
7914 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
7915 handling_signal is set.
7916 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
7917
31fd7c5c 7918 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
7919
7920 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
7921
7922 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
7923
51d861de
SM
7924 * keyboard.c (poll_for_input_1, handle_async_input):
7925 Set handling_signal under HAVE_NS.
c96169a0 7926
aacd8ba1
GM
79272009-02-04 Glenn Morris <rgm@gnu.org>
7928
7929 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
7930
4cb75c4b
KH
79312009-02-04 Kenichi Handa <handa@m17n.org>
7932
7933 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
7934
7935 * charset.c (Fchar_charset): New optional arg restriction.
7936
7937 * coding.h (coding_system_charset_list): Extern it.
7938
7939 * coding.c (coding_system_charset_list): New function.
7940
7941 * composite.c: Include coding.h and termhooks.h.
7942 (composition_gstring_p): Fix for the terminal case.
7943 (composition_gstring_width): Likewise.
7944 (fill_gstring_body): Likewise.
7945 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
7946 the frame.
7947 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
7948 is within a composition.
867d4bb3 7949 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
7950
7951 * term.c (encode_terminal_code): Fix handling of composition.
7952 (produce_composite_glyph): For static composition, get pixel_width
7953 from struct composition.
7954
826ba17e
AS
79552009-02-02 Andreas Schwab <schwab@suse.de>
7956
7957 * unexelf.c (unexec): Handle unaligned bss offset.
7958
8ad093db
AR
79592009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7960
7961 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
7962 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 7963
8ad093db
AR
7964 * keyboard.c (handle_interrupt): Don't call
7965 quit_throw_to_read_char() under NS.
d0a76a6e 7966
8ad093db
AR
7967 * blockinput.h: Remove NS-specific code.
7968
4d18a7a2
DN
79692009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
7970
db878925
DN
7971 * dispnew.c (window_change_signal): Don't try to get the size of a
7972 suspended tty frame.
7973 * term.c (Fresume_tty): Resize if the size has changed while the
7974 tty was suspended.
7975
4d18a7a2
DN
7976 * alloc.c (mark_stack): Properly conditionalize previous change.
7977
8984df7c
JB
79782009-01-30 Juanma Barranquero <lekktu@gmail.com>
7979
7980 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
7981 * w32term.c (w32_read_socket) [SYNC_INPUT]:
7982 Remove; this code is not used on Windows.
7983
75f4f1ac
EZ
79842009-01-30 Eli Zaretskii <eliz@gnu.org>
7985
7986 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
7987 EOLs that also has stray ^M characters.
7988
07a1e794
JB
79892009-01-30 Juanma Barranquero <lekktu@gmail.com>
7990
7991 * atimer.c (run_timers, alarm_signal_handler):
7992 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
7993 * w32inevt.c (w32_console_read_socket):
7994 * w32term.c (w32_read_socket):
7995 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
7996
a8b11cc9
CY
79972009-01-30 Chong Yidong <cyd@stupidchicken.com>
7998
7999 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
8000 Initialize it as a relative filename pattern.
8001 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
8002 (Fcall_process_region): Simplify temp file creation using
8003 temporary-file-directory.
8004
c279587b
EZ
80052009-01-29 Eli Zaretskii <eliz@gnu.org>
8006
8007 * msdos.c: Rename pending_signals to msdos_pending_signals.
8008 (sig_suspender, sigprocmask): Adjust.
8009
a8fe3242
CY
80102009-01-29 Chong Yidong <cyd@stupidchicken.com>
8011
8012 * keyboard.c (pending_signals): New var.
8013 (poll_for_input, input_available_signal, init_keyboard): Set it.
8014 (process_pending_signals): New function.
8015
8016 * lisp.h (QUIT): Check pending_signals instead of
8017 interrupt_input_pending. Use process_pending_signals.
8018
51d861de 8019 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 8020
51d861de 8021 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
8022
8023 * sysdep.c (emacs_write): Use process_pending_signals.
8024
8025 * xterm.c (XTread_socket): Update pending_signals.
8026
8027 * w32term.c (w32_read_socket): Update pending_signals.
8028
8029 * w32inevt.c (w32_console_read_socket): Update pending_signals.
8030
6570a1c4
KH
80312009-01-29 Kenichi Handa <handa@m17n.org>
8032
8033 * xftfont.c (xftfont_has_char): New function.
8034 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
8035
d72a4afa
AR
80362009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8037
8038 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
8039 under GNUstep.
8040 (ns_query_color): New declaration.
8041
8042 * nsterm.m (ns_confirm_quit): New variable.
8043 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
8044 (EmacsApp-applicationShouldTerminate:): Use it.
8045 (EmacsPrefsController): Let user set it.
8046 (ns_query_color): New function.
8047 (ns_defined_color): Use it.
8048 (ns_initialize): Drop.
8049 (ns_term_init): Add two lines from ns_initialize(), and set
8050 input_interrupt_mode to nil.
8051
8052 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 8053 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 8054
9fe78804
KH
80552009-01-28 Kenichi Handa <handa@m17n.org>
8056
8057 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
8058 (fontset_get_font_group): Remember that no font-group is specified
8059 for C.
9fe78804 8060
fa57de36
CY
80612009-01-27 Chong Yidong <cyd@stupidchicken.com>
8062
930600e9
CY
8063 * fns.c (concat): Check for string overflow (bug#1787).
8064
fa57de36
CY
8065 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
8066 Quadruple undo limits (bug#1501).
8067
7179ce7b
KH
80682009-01-27 Kenichi Handa <handa@m17n.org>
8069
8070 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
8071 directly use GT_Get_Char_index.
8072
8073 * xftfont.c (struct xftfont_info): New member `index'.
8074
8075 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 8076 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 8077
5be8fcc0
CY
80782009-01-26 Kenichi Handa <handa@m17n.org>
8079
8080 * fontset.c (fontset_find_font): Fix handling of non-cons return
8081 value of fontset_get_font_group.
8082 (fontset_font): Revert last change.
8083
19ae3e61
JR
80842009-01-26 Jason Rumney <jasonr@gnu.org>
8085
8086 * w32font.c (w32font_list_internal): Return quickly if registry is
8087 unknown. Simplify final return.
8088 (add_font_entity_to_list): Break complex logic down into more
8089 manageable chunks. Move unknown registry check to
8090 w32font_list_internal.
8091
8612b71a
AR
80922009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
8093
8094 Changes to remove Feval calls from GUI under NS.
8095
d8038940
JB
8096 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
8097 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
8098 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
8099
8100 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
8101 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
8102 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
8103 instead of NON_ASCII_KEYSTROKE_EVENT.
8104 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
8105 (EmacsApp-applicationShouldTerminate:): Query user.
8106 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
8107 instead of Feval.
8108
8109 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
8110
8111 * keyboard.c (kbd_buffer_get_event): Check for it.
8112 (keys_of_keyboard): Define lispy keys for
8113 ns-put/unput-working-text.
8114
8115 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
8116 versions.
8117 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
8118
6288ae55
CY
81192009-01-25 Chong Yidong <cyd@stupidchicken.com>
8120
8121 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 8122 setting current_buffer directly. (Bug#2044)
6288ae55 8123
289e7f8f
CY
81242009-01-24 Chong Yidong <cyd@stupidchicken.com>
8125
5ce87308 8126 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 8127 any work. (Bug#1952, bug#1990).
5ce87308 8128
64cc3cf6 8129 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 8130
b3243e6f
AR
81312009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8132
8133 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
8134 (ns_no_defaults): New declaration.
8135 (main): Use it.
e0d2e69a 8136
d900b2af 8137 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 8138
d900b2af 8139 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 8140
d900b2af
AR
8141 * nsterm.m (ns_no_defaults): New variable.
8142 (ns_initialize): Don't read defaults when ns_no_defaults.
8143 (EmacsView-readSelectionFromPasteboard:)
8144 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 8145 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
8146 (ns_dumpglyphs_stretch): New function.
8147 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 8148 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 8149
e0d2e69a
AR
8150 * nsimage.m (setPixmapData:): Set to ignore image DPI.
8151
3ac71f5d
CY
81522009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
8153
8154 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
8155 call for Sparc64.
8156
3fe53a83
AR
81572009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8158
8159 * nsfns.m:
8160 * nsgui.h:
8161 * nsmenu.m:
8162 * nsselect.m:
8163 * nsterm.h:
8164 * nsterm.m: Remove '23' comments that indicated code added during
8165 update from emacs-20 -> emacs-23.
8166
10f87c6f 81672009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
8168
8169 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 8170 ns_alternate_modifier. (Bug#1217)
a3b53a85 8171
c7cef62d
AR
8172 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
8173 Display all shortcuts, including those w/o super modifier.
8174
575fb8bd
AR
8175 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
8176
918b848b
CY
81772009-01-22 Chong Yidong <cyd@stupidchicken.com>
8178
8179 * fileio.c (Vwrite_region_post_annotation_function)
8180 (Vwrite_region_annotation_buffers): New vars.
8181 (build_annotations_unwind): Just reset
8182 Vwrite_region_annotation_buffers.
8183 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
8184 Call write-region-post-annotation-function.
8185 (build_annotations): Add to Vwrite_region_annotation_buffers if
8186 buffer changes.
8187
a39e2539
AR
81882009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8189
8190 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
8191 Tiger.
51d861de
SM
8192 * nsfns.m (ns_do_applescript):
8193 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 8194
35ed44db
AR
81952009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8196
8197 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
8198
cbe0b5bf
AR
81992009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8200
8201 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 8202
6049d3a0
AR
8203 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
8204
8205 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
8206 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
8207 handle Ctrl-tab. (Bug#1841)
8208 (ns_get_color): Use unsigned long long for scanned hex string value.
8209 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 8210 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 8211 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 8212 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 8213 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 8214 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 8215 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 8216
d3810c21 8217 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 8218 DPI. (Bug#1316)
d3810c21
AR
8219 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
8220 values in onTiger section.
4c7077c3 8221
e301e634
CY
82222009-01-19 Chong Yidong <cyd@stupidchicken.com>
8223
7f82490b
CY
8224 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
8225 Check return value of font_spec_from_name.
64cc3cf6 8226 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
8227
8228 * font.c (font_spec_from_name): Return Qnil if font name could not
8229 be parsed.
8230 (font_parse_name): Treat a `?' character as part of an XLFD.
8231
e301e634
CY
8232 * fns.c (Fsubstring): Doc fix.
8233
1c0db158
KH
82342009-01-19 Kenichi Handa <handa@m17n.org>
8235
51d861de 8236 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
8237 (ftfont_list): Likewise.
8238
acf20901
JB
82392009-01-18 Juanma Barranquero <lekktu@gmail.com>
8240
fff4e459
JB
8241 * dbusbind.c (Fdbus_register_signal):
8242 * process.c (conv_sockaddr_to_lisp):
8243 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
8244
acf20901
JB
8245 * callproc.c (Fgetenv_internal): Doc fix.
8246
e7abcdfb
CY
82472009-01-16 Chong Yidong <cyd@stupidchicken.com>
8248
8249 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
8250 it is not even used.
8251
b60861e6
GM
82522009-01-16 Glenn Morris <rgm@gnu.org>
8253
8254 * font.c (Ffont_variation_glyphs): Silence compiler.
8255
8db52afe
JB
82562009-01-15 Juanma Barranquero <lekktu@gmail.com>
8257
8258 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
8259 Reported by David Robinow <drobinow@gmail.com>.
8260
4cddb209
KH
82612009-01-15 Kenichi Handa <handa@m17n.org>
8262
51d861de 8263 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 8264
f247f67b
JR
82652009-01-14 Jason Rumney <jasonr@gnu.org>
8266
8267 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 8268 never a fontset. (Bug#1562)
f247f67b 8269
f56a4450
KH
82702009-01-14 Kenichi Handa <handa@m17n.org>
8271
8272 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 8273 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 8274
4e99855e
CY
82752009-01-13 Chong Yidong <cyd@stupidchicken.com>
8276
8277 * font.c (font_clear_prop): If clearing the family, clear the font
8278 width index too.
8279
fff4e459 8280 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 8281
24f01470
JB
82822009-01-12 Juanma Barranquero <lekktu@gmail.com>
8283
8284 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
8285 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
8286 functions, use sizeof.
8287
a41240a3
MR
82882009-01-12 Martin Rudalics <rudalics@gmx.at>
8289
8290 * keyboard.c (read_char): Fix case where last_nonmenu_event
8291 returned a bad value with submenus. (Bug#447)
8292
944636b8
CY
82932009-01-12 Chong Yidong <cyd@stupidchicken.com>
8294
8295 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
8296 family, clear the font width index too.
8297
0dad7c6f
JR
82982009-01-11 Jason Rumney <jasonr@gnu.org>
8299
8300 * keyboard.c (cmd_error_internal): Exit when errors occur before
8301 frame creation and not in daemon mode. (Bug#1836)
8302
7c2363af
CY
83032009-01-10 Chong Yidong <cyd@stupidchicken.com>
8304
8305 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
8306 of a display vector, backtrack.
8307 (try_window_reusing_current_matrix): Check glyph type before
8308 referencing charpos member.
8309
97b1b294
EZ
83102009-01-10 Eli Zaretskii <eliz@gnu.org>
8311
8312 Fix Bug #876:
8313
8314 * coding.c (inhibit_null_byte_detection): New variable.
8315 (detect_coding, detect_coding_system): Don't pay attention to null
8316 bytes if inhibit_null_byte_detection is non-zero.
51d861de 8317 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
8318 <inhibit-iso-escape-detection>: Doc fix.
8319
4624b6e3
JR
83202009-01-09 Jason Rumney <jasonr@gnu.org>
8321
8322 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 8323 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
8324 Only report Unicode Plane 2 fonts as unicode-sip.
8325
323b840c
CY
83262009-01-09 Chong Yidong <cyd@stupidchicken.com>
8327
51d861de
SM
8328 * xfaces.c (Fx_font_family_list): Delete function.
8329 Move compatibility version to faces.el.
323b840c 8330
51d861de 8331 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 8332
eba7400d
MR
83332009-01-09 Martin Rudalics <rudalics@gmx.at>
8334
8335 * frame.c (x_set_frame_parameters): Remember requested value for
8336 fullscreen before it's reset by the parameter handler.
8337
4b09796d
GM
83382009-01-09 Glenn Morris <rgm@gnu.org>
8339
8340 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 8341 (last_command_event): ... and update all users.
4b09796d
GM
8342 (last_input_char): For clarity, rename to...
8343 (last_input_event): ... and update all users.
8344 (last-command-char, last-input-char): Move to subr.el as aliases.
8345 * cmds.c, commands.h: Update for last_command_char rename.
8346
14ccea62
CY
83472009-01-08 Chong Yidong <cyd@stupidchicken.com>
8348
51d861de 8349 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 8350
5f004711
JR
83512009-01-08 Jason Rumney <jasonr@gnu.org>
8352
8353 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
8354 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
8355 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
8356 Don't declare.
fff4e459 8357 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
8358 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
8359
b71f6f73
KH
83602009-01-07 Kenichi Handa <handa@m17n.org>
8361
50b06221 8362 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 8363 remember the coding system used for decoding in
50b06221
KH
8364 coding_system (Bug#1039).
8365
b71f6f73 8366 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 8367 breaking the loop. (Bug#870)
b71f6f73
KH
8368 (decode_coding_utf_16, decode_coding_emacs_mule)
8369 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8370 (decode_coding_charset): Likewise.
8371
56f668f7
MR
83722009-01-05 Martin Rudalics <rudalics@gmx.at>
8373
8374 * frame.c (x_set_frame_parameters): Make sure height (width) get
8375 applied when fullwidth (fullheight) is set. (Bug#1522)
8376
5da9424d
JB
83772009-01-04 Juanma Barranquero <lekktu@gmail.com>
8378
8379 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
8380 (utc_base): Declare as ULONGLONG, not long double.
8381 (convert_time_raw): Delete.
8382 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
8383 (initialize_utc_base): New function.
8384 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
8385 (convert_from_time_t): Use initialize_utc_base; compute result with
8386 64-bit arithmetic.
8387 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
8388
c4605e09
EZ
83892009-01-03 Eli Zaretskii <eliz@gnu.org>
8390
9acef61c 8391 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
8392 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
8393 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
8394 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
8395 [!subprocesses]: Define.
8396 (syms_of_process) [!subprocesses]: Intern and staticpro them.
8397 (Flist_system_processes, Fsystem_process_attributes)
8398 [!subprocesses]: Call list_system_processes and
8399 system_process_attributes instead of returning Qnil.
8400
9acef61c
JB
8401 * dosfns.c (system_process_attributes, list_system_processes):
8402 New functions.
c4605e09
EZ
8403
8404 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
8405
8406 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
8407 Don't use the default (no-op) implementation.
8408
8b7d0a16
JR
84092009-01-03 Jason Rumney <jasonr@gnu.org>
8410
a6d46bc1
JR
8411 * keyboard.c (parse_modifiers_uncached): Wheel events are
8412 clicks (bug#687).
8413
8b7d0a16
JR
8414 * w32term.c (x_query_colors, x_query_color): New functions.
8415
8416 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
8417 (svg_load_image): Cast returned pointers from dynamically loaded
8418 functions. Eliminate W32 specific code.
8419
bfe11752
DN
84202009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
8421
89e2438a
DN
8422 * nsfns.m (x_set_foreground_color, x_set_background_color)
8423 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
8424 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
8425 x_ prefix instead of ns_. Update references.
8426 (syms_of_nsfns): Add a FIXME comment.
8427
8428 * nsterm.m (x_set_cursor_type): New prototype.
8429 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
8430
bfe11752
DN
8431 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
8432 for Solaris instead of incorrectly providing Qutime and Qcutime.
8433
031da700
EZ
84342009-01-02 Eli Zaretskii <eliz@gnu.org>
8435
8436 * w32.c (process_times): Compute sum of utime and stime.
8437 (system_process_attributes): Add Qtime to the alist.
8438
8439 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
8440 and add them to the alist.
8441
8442 * process.c (top level) <Qtime, Qctime>: New variables.
8443 (syms_of_process): staticpro them.
8444 (Fsystem_process_attributes): Add their documentation to the doc
8445 string.
8446
8447 * process.h: Declare Qtime and Qctime.
8448
df23bf08
JR
84492009-01-02 Jason Rumney <jasonr@gnu.org>
8450
9acef61c 8451 * image.c (Qgobject): New symbol.
df23bf08
JR
8452 (syms_of_image): Initialize it.
8453 (init_svg_functions): Load some functions from gobject library.
8454
5bbdf7aa
DN
84552009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
8456
8457 * frame.c (make_terminal_frame): Remove redundant code and useless
8458 block.
8459
63136da6
AS
84602009-01-01 Andreas Schwab <schwab@suse.de>
8461
8462 * process.c (conv_sockaddr_to_lisp): Add workaround for
8463 getsockname bug on BSD.
8464
9ef69046
CY
84652009-01-01 Chong Yidong <cyd@stupidchicken.com>
8466
d6fafbe0
CY
8467 * xfns.c (x_create_tip_frame): Set border width of the X window.
8468
51d861de 8469 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 8470
f9c34147
JR
84712009-01-01 Jason Rumney <jasonr@gnu.org>
8472
9acef61c 8473 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
8474 Don't block input, as per earlier xterm.c changes.
8475
f5497e45
AR
84762008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
8477
8478 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
8479 (ns_appkit_version_int): New function.
8480 (x-server-version): Use ns_appkit_version_int and follow 21+
8481 convention of returning 3 integers.
8482
c19cab20
KH
84832008-12-30 Kenichi Handa <handa@m17n.org>
8484
8485 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
8486 (CHAR_SURROGATE_PAIR_P): New macro.
8487
8488 * font.h (struct font_driver): New member get_variation_glyphs.
8489
9acef61c 8490 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
8491 (Ffont_variation_glyphs): New function.
8492 (syms_of_font): Defsubr it.
8493
8494 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
8495 ftfont_variation_glyphs.
8496 (setup_otf_gstring): New function.
8497 (ftfont_drive_otf): Use it.
8498 (ftfont_shape_by_flt): Handle variation selector.
8499 (ftfont_variation_glyphs): New function.
8500
28cd591f
MR
85012008-12-30 Martin Rudalics <rudalics@gmx.at>
8502
8503 * frame.c (Vemacs_iconified): Remove.
8504
7f714baf
JR
85052008-12-30 Jason Rumney <jasonr@gnu.org>
8506
8507 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 8508 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 8509
9d2d22ab
CY
85102008-12-30 Chong Yidong <cyd@stupidchicken.com>
8511
8512 * indent.c (Fvertical_motion): Don't advance iterator if we have
8513 reseated to the desired position.
8514
8515 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
8516 checking for pos match.
8517
545312c2
KH
85182008-12-30 Kenichi Handa <handa@m17n.org>
8519
1ede3eb6
KH
8520 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
8521 just get the low 8-bit of the code.
8522
545312c2
KH
8523 * font.c (font_intern_prop): Validate str as multibyte.
8524
bd7bbf29
DN
85252008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8526
31e0750e
DN
8527 * dispextern.h (struct face): Move lface and hash from the middle
8528 of bitfields.
8529
bd7bbf29
DN
8530 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
8531
b5672e7c
DN
85322008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
8533
8534 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
8535 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
8536 instead of intervals.h.
8537
d704470f
AS
85382008-12-26 Andreas Schwab <schwab@suse.de>
8539
8540 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
8541 cons.
8542
54b33868
MR
85432008-12-26 Martin Rudalics <rudalics@gmx.at>
8544
8545 * textprop.c (Qminibuffer_prompt): New variable.
8546 (syms_of_textprop): Initialize it.
8547 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
8548 in minibuffer-prompt face. (Bug#1662)
8549
40b615d6
JR
85502008-12-25 Jason Rumney <jasonr@gnu.org>
8551
8552 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
8553
baae5c2d
JR
85542008-12-24 Jason Rumney <jasonr@gnu.org>
8555
8556 * ralloc.c (r_alloc_reset_variable): New function.
8557
8558 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 8559 record of what points where. (Bug#716)
baae5c2d 8560
a9051c88
DN
85612008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
8562
8563 * minibuf.c (read_minibuf): Follow the non-interactive case when
8564 running as a daemon, before detaching.
8565
8b146312
AS
85662008-12-22 Andreas Schwab <schwab@suse.de>
8567
8568 * buffer.c (init_buffer): Use realloc instead of xrealloc.
8569 * gtkutil.c (free_widget_value): Use xfree instead of free.
8570
56f2de10
MR
85712008-12-22 Martin Rudalics <rudalics@gmx.at>
8572
8573 * frame.c (delete_frame): New function derived from
8574 Fdelete_frame to handle Qnoelisp value for FORCE argument.
8575 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
8576 (Fdelete_frame): Call delete_frame. Remove line from doc-string
8577 saying that FORCE non-nil doesn't run `delete-frame-functions'.
8578 * frame.h: Extern delete_frame.
8579 * window.c (window_loop):
8580 * terminal.c (delete_terminal):
8581 * xterm.c (x_connection_closed):
8582 * xfns.c (Fx_hide_tip):
9acef61c 8583 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 8584
1fc200d6
JR
85852008-12-21 Jason Rumney <jasonr@gnu.org>
8586
8587 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
8588 when character maps to .notdef character.
8589
5e252df2
SM
85902008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
8591
8592 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
8593
99b72cc4
JR
85942008-12-20 Jason Rumney <jasonr@gnu.org>
8595
8596 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 8597 a graphical frame on Windows. (Bug#1325)
99b72cc4 8598
acc49a52
JD
85992008-12-20 Jan Djärv <jan.h.d@swipnet.se>
8600
8601 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
8602
6ea15123
CY
86032008-12-20 Chong Yidong <cyd@stupidchicken.com>
8604
8605 * minibuf.c (Fread_buffer): Doc fix.
8606
b2dab6c8
JR
86072008-12-20 Jason Rumney <jasonr@gnu.org>
8608
54ea0c87 8609 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 8610 server name in UNC paths. (Bug#719)
54ea0c87 8611
b2dab6c8 8612 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 8613 charbuf. (Bug#1035)
b2dab6c8 8614
6d1921be
DN
86152008-12-19 Daniel Engeler <engeler@gmail.com>
8616
8617 * sysdep.c (serial_configure): Fix typo.
8618
53934c98
DN
86192008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8620
8621 * sysdep.c: Include alloca.h.
f4f634e8
DN
8622 (system_process_attributes): Add implementation for Solaris.
8623
8624 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 8625
06e111a6
DN
86262008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8627
8628 Reorganize implementation of Flist_system_processes and
8629 Fsystem_process_attributes. No functional changes.
8630 * process.c: Don't #include pwd.h, grp.h and limits.h.
8631 (Flist_system_processes): Just call list_system_processes.
8632 (Fsystem_process_attributes): Just call system_process_attributes.
8633 (procfs_list_system_processes, time_from_jiffies)
8634 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
8635 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
8636
8637 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
8638 (list_system_processes): Rename from
8639 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
8640 Provide a do nothing implementation.
8641 (system_process_attributes): Rename from
8642 procfs_list_system_processes.
8643 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 8644 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
8645
8646 * w32.c (list_system_processes): Rename from
8647 w32_list_system_processes.
8648 (system_process_attributes): Rename from
8649 w32_system_process_attributes.
8650
8651 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
8652
8653 * process.h (w32_list_system_processes)
8654 (w32_system_process_attributes): Remove.
362654a6
JB
8655 (list_system_processes, system_process_attributes):
8656 New prototypes.
06e111a6 8657
6a705b23
KH
86582008-12-19 Kenichi Handa <handa@m17n.org>
8659
8660 * xfont.c (xfont_decode_coding_xlfd): New function.
8661 (xfont_encode_coding_xlfd): New function.
8662 (xfont_list_pattern): Decode XLFD by iso-8859-1.
8663 (xfont_list): Decode and encode XLFD by iso-8859-1.
8664 (xfont_match): Likewise.
8665 (xfont_list_family): Likewise.
8666 (xfont_open): Likewise.
8667
d66c0241 8668 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
8669 names are utf-8.
8670
d66c0241 8671 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
8672 names are utf-8.
8673
5a130941
JD
86742008-12-18 Jan Djärv <jan.h.d@swipnet.se>
8675
8676 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
8677 changed.
bfd20325
JD
8678 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
8679 clicked on a detached tool bar button.
5a130941 8680
fd95644b
DN
86812008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
8682
8683 * emacs.c (main): Print and error and exit when no data is read
8684 from the pipe.
8685
e6eee6ae
JR
86862008-12-17 Jason Rumney <jasonr@gnu.org>
8687
8688 * w32font.c (w32font_has_char): Always return -1.
8689
a35dd56b
KH
86902008-12-16 Kenichi Handa <handa@m17n.org>
8691
8692 * font.c (font_open_entity): Fix previous change.
8693
0e3635c2
DN
86942008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
8695
8696 * process.c: Include <limits.h>.
8697
d4835507 86982008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
8699
8700 * font.c (font_update_drivers): Fix mistake in reconstructing the
8701 driver list.
8702
87032008-12-16 Chong Yidong <cyd@stupidchicken.com>
8704
8705 * font.c (font_clear_cache): Fix format of font cache data.
8706
e2cbc401
CY
87072008-12-15 Chong Yidong <cyd@stupidchicken.com>
8708
8709 * xftfont.c (xftfont_open): Free Xft font pattern if
8710 XftFontOpenPattern fails.
8711
8712 * xterm.c (x_free_frame_resources): Remove extraneous call to
8713 free_frame_faces.
8714
b131d535
CY
87152008-12-13 Chong Yidong <cyd@stupidchicken.com>
8716
8717 * xterm.c (x_delete_display): Move xim_close_dpy call to
8718 x_delete_terminal.
8719 (x_delete_terminal): Call xim_close_dpy.
8720
e6df5336
JR
87212008-12-13 Jason Rumney <jasonr@gnu.org>
8722
8723 * w32font.c (intern_font_name): New function.
8724 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
8725 (w32font_open_internal, Fx_select_font): Decode font name.
8726 (fill_in_logfont, list_all_matching_fonts): Encode font name.
8727
8728 * w32font.h (intern_font_name): Declare new function.
8729
8730 * w32uniscribe.c (add_opentype_font_name_to_list):
8731 Use intern_font_name.
8732
20d68145
CY
87332008-12-13 Chong Yidong <cyd@stupidchicken.com>
8734
9f2554de
CY
8735 * frame.c (Fdelete_frame): Call free_font_driver_list.
8736
3d9bec9a
CY
8737 * font.c (free_font_driver_list): Implement missing function.
8738
20d68145
CY
8739 * w32term.c (w32_term_init): Don't initialize the image cache
8740 here; it will be done in init_frame_faces.
8741
8742 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
8743 (struct x_display_info): Remove unused member null_pixel. New
8744 member xim_callback_data.
8745
8746 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
8747 (xim_initialize): Save pointer to callback function data.
8748 (xim_close_dpy): Free callback function data. Call XCloseIM,
8749 reverting 2008-11-04 change by David Smith.
8750 (x_term_init): Don't initialize the image cache here; it will be
8751 done in init_frame_faces. Remove ancient "null_pixel" cruft.
8752 (x_delete_display): Free x_dnd_atoms member.
8753
96f9306b
KH
87542008-12-13 Kenichi Handa <handa@m17n.org>
8755
6dec9044
JB
8756 * font.c (font_rescale_ratio): Moved from xfaces.c.
8757 Argument type changed. Handle a font-spec too.
96f9306b 8758 (font_score): Check Vface_font_rescale_alist.
6dec9044 8759 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
8760
8761 * xfaces.c (font_rescale_ratio): Moved to font.c.
8762
8d5b4964
CY
87632008-12-13 Chong Yidong <cyd@stupidchicken.com>
8764
8765 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
8766
e6df5336
JR
87672008-12-12 Jason Rumney <jasonr@gnu.org>
8768
8769 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
8770 Vwindow_system_version to the real w32 major version.
8771
97c6058a
DN
87722008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
8773
8774 * term.c (init_tty): Move setting the terminal name before the
8775 potential user: maybe_fatal.
8776
ec4e88d7
CY
87772008-12-11 Chong Yidong <cyd@stupidchicken.com>
8778
d4835507
JB
8779 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
8780 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 8781
b4233ec9
JR
87822008-12-11 Jason Rumney <jasonr@gnu.org>
8783
8ec71e23 8784 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 8785 SYMBOL_CHARSET. (Bug#547)
8ec71e23 8786
b4233ec9 8787 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 8788 size for surrogates. (Bug#1096, bug#872)
b4233ec9 8789
011a0143
JB
87902008-12-11 Juanma Barranquero <lekktu@gmail.com>
8791
8792 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
8793
3c309f34
JB
87942008-12-11 Juanma Barranquero <lekktu@gmail.com>
8795
8796 * process.c (Fsystem_process_attributes, syms_of_process):
8797 Fix typo in name of Ssystem_process_attributes.
8798 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
8799
fedc6ab5
JB
88002008-12-11 Juanma Barranquero <lekktu@gmail.com>
8801
8802 * syntax.c (Fmodify_syntax_entry): Doc fix.
8803
ba3de0e8
JB
88042008-12-10 Juanma Barranquero <lekktu@gmail.com>
8805
8806 * font.c (Ffont_spec): Move usage to end of docstring.
8807
174f1c74
JR
88082008-12-10 Jason Rumney <jasonr@gnu.org>
8809
8810 * w32font.c (Qcham): New symbol.
8811 (font_supported_scripts): Add cham, and comments for other new
8812 scripts in bitfield from OpenType spec.
9d32f818
JR
8813 (add_font_entity_to_list): Limit unicode-sip fonts to those that
8814 contain characters beyond the bmp.
174f1c74 8815
7b649478
KH
88162008-12-10 Kenichi Handa <handa@m17n.org>
8817
8818 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 8819 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
8820 Qunicode_sip.
8821
2133e2d1
JB
88222008-12-10 Juanma Barranquero <lekktu@gmail.com>
8823
8824 * coding.c (QCdefault_char): Rename from QCdefalut_char.
8825 (Fcoding_system_put): Use QCdefault_char.
8826 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
8827
9af886ee
CY
88282008-12-09 Chong Yidong <cyd@stupidchicken.com>
8829
74d819eb
CY
8830 * xftfont.c (syms_of_xftfont): Fix typo.
8831
4ccfa1c0 8832 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 8833
7c19d3ae
DN
88342008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
8835
8836 * emacs.c (main): Close daemon_pipe on exec.
8837
567826bb
CY
88382008-12-08 Chong Yidong <cyd@stupidchicken.com>
8839
8840 * termchar.h (struct tty): New members termcap_term_buffer and
8841 termcap_strings_buffer.
8842
8843 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 8844 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
8845 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
8846 All callers changed.
8847 (init_tty): Store termcap data and string buffers in new struct
8848 tty members termcap_term_buffer and termcap_strings_buffer.
8849 (delete_tty): Free them.
4ccfa1c0 8850 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 8851
aa96c42b
SZ
88522008-12-07 Seiji Zenitani <zenitani@mac.com>
8853
8854 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 8855 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 8856
b7e1d896
CY
88572008-12-06 Chong Yidong <cyd@stupidchicken.com>
8858
8859 * coding.c (make_conversion_work_buffer): Disable buffer
8860 modification hooks in the work buffer.
8861
b5ec91a5
EZ
88622008-12-05 Eli Zaretskii <eliz@gnu.org>
8863
8864 * process.c (procfs_system_process_attributes): If `nread' has a
8865 negative value, assign zero to it.
8866
a5d2a52b
CY
88672008-12-05 Chong Yidong <cyd@stupidchicken.com>
8868
68c5540b 8869 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 8870
7bf1bb21
KH
88712008-12-05 Kenichi Handa <handa@m17n.org>
8872
8873 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
8874 second character is a combining character.
8875
2fdc7d00
EZ
88762008-12-05 Eli Zaretskii <eliz@gnu.org>
8877
8878 * process.c (procfs_system_process_attributes): Don't use cmd,
8879 cmdsize, and q without initializing them first.
8880
bf6bfba8
JR
88812008-12-04 Jason Rumney <jasonr@gnu.org>
8882
8883 * w32font.c (w32font_draw): Initialize orig_clip before getting
8884 it, and delete it when finished.
8885
a3b1a468
DN
88862008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
8887
8888 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
8889 case when running as a daemon before detaching.
8890
8b8be8eb
JB
88912008-12-03 Juanma Barranquero <lekktu@gmail.com>
8892
805f2638 8893 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 8894
b1bde622
KH
88952008-12-03 Kenichi Handa <handa@m17n.org>
8896
e500c47d
KH
8897 * font.c (font_at): Set `multibyte' at first.
8898
ca516334
KH
8899 * coding.c (decode_coding_charset): Check type of an element of
8900 vector VALIDS.
7bf1bb21 8901 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 8902
4ccfa1c0 8903 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
8904 (font_for_char): Likewise.
8905
1e5ecd37
CY
89062008-12-03 Chong Yidong <cyd@stupidchicken.com>
8907
d5b01609 8908 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
8909 (font_update_lface): Handle fonts with corrupted size specs,
8910 i.e. non-int and non-float.
d5b01609 8911
11e3a6e4 8912 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 8913 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 8914 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 8915
ab06788b
CY
8916 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
8917
1e5ecd37 8918 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 8919 underline_minimum_offset for underline position.
1e5ecd37 8920
63c125ab
DN
89212008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
8922
8923 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
8924
8925 * character.c (c_string_width): Specify the type for LEN.
8926
3a8406e1
KH
89272008-12-03 Kenichi Handa <handa@m17n.org>
8928
4ccfa1c0 8929 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 8930 (decode_coding_utf_8): Likewise.
4ccfa1c0 8931 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 8932 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 8933
651df7d9
CY
89342008-12-02 Chong Yidong <cyd@stupidchicken.com>
8935
8936 * keyboard.c (make_lispy_position): Only use PT if the selected
8937 window is current.
8938
1f625c6c
AS
89392008-12-02 Andreas Schwab <schwab@suse.de>
8940
f7741ce9
AS
8941 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
8942
1f625c6c
AS
8943 * doprnt.c (doprnt1): Fix size of charbuf.
8944
92bc2678
CY
89452008-12-02 Chong Yidong <cyd@stupidchicken.com>
8946
8947 * keyboard.c (timer_check): Revert last change.
8948
93b9e8cc
JB
89492008-12-02 Juanma Barranquero <lekktu@gmail.com>
8950
8951 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
8952
fd7a37d5
JB
89532008-12-01 Juanma Barranquero <lekktu@gmail.com>
8954
8955 * makefile.w32-in: Update dependencies.
8956 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
8957
c115043b
AS
89582008-12-01 Andreas Schwab <schwab@suse.de>
8959
8960 * font.c (register_font_driver): Use xmalloc.
8961 (font_put_frame_data): Likewise.
8962
f5668d2a
CY
89632008-12-01 Chong Yidong <cyd@stupidchicken.com>
8964
860d96be
CY
8965 * xfaces.c (realize_x_face): Make abort condition clearer.
8966
f5668d2a
CY
8967 * gtkutil.c (update_frame_tool_bar): Initialize variable.
8968
379c17e7
CY
89692008-11-30 Chong Yidong <cyd@stupidchicken.com>
8970
8971 * keyboard.c (timer_check): After a timer runs, ensure that the
8972 selected window's buffer is current.
8973
35f36d65
JB
89742008-11-30 Juanma Barranquero <lekktu@gmail.com>
8975
f952c61c
JB
8976 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
8977 It was accidentally restored by the Unicode merge.
8978
35f36d65
JB
8979 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
8980
b23077df
JB
89812008-11-29 Juanma Barranquero <lekktu@gmail.com>
8982
8983 * w32proc.c: Include "coding.h".
8984 (Fw32_short_file_name): Encode filename passed to Windows API.
8985 (Fw32_long_file_name): Encode filename passed to Windows API and
8986 decode back the result. (Bug#1433)
8987
b8ebe9dd
KH
89882008-11-29 Kenichi Handa <handa@m17n.org>
8989
8cc53f96
KH
8990 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
8991 not before accessing it.
8992
b8ebe9dd
KH
8993 * charset.c (Fdefine_charset_internal): After calculating
8994 min_char, max_char, and fastmap, copy the charset structure again.
8995 (encode_char): Fix the previous change.
8996
59bc82c0
SZ
89972008-11-28 Seiji Zenitani <zenitani@mac.com>
8998
8999 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
9000
9001 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
9002
9003 * nsterm.m (x_set_frame_alpha): New function.
9004
32247e3d
EZ
90052008-11-27 Eli Zaretskii <eliz@gnu.org>
9006
9007 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
9008
b003e5ff
JB
90092008-11-27 Juanma Barranquero <lekktu@gmail.com>
9010
9011 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
9012 pointer to check_face_name.
9013
708550f5
KH
90142008-11-27 Kenichi Handa <handa@m17n.org>
9015
9016 * category.h (SET_CATEGORY_SET): Call set_category_set.
9017 (set_category_set): Extern it.
9018
9019 * category.c (hash_get_category_set): New function.
9020 (Fmodify_category_entry): Adjusted for the change of
9021 char_table_ref_and_range. Call hash_get_category_set to get a
9022 category set to store in the table.
9023
9024 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
9025 Funify_charset.
9026
2ae37cf0 9027 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
9028 (DECODE_CHAR): Check if the decoder vector is ready.
9029 (ENCODE_CHAR): Check if the encoder char-table is ready.
9030 (maybe_unify_char): Extern it.
9031
9032 * charset.c (Vchar_unified_charset_table): Delete it.
9033 (inhibit_load_charset_map): New variable.
9034 (temp_charset_work): New variable.
9035 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
9036 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
9037 New macros.
9038 (load_charset_map): Meaning of control_flag changed. If
9039 inhibit_load_charset_map is nonzero, setup a table in
9040 temp_charset_work.
9041 (load_charset): New argument control_flag.
9042 (map_charset_for_dump): New function.
9043 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
9044 map_charset_for_dump.
9045 (Fdefine_charset_internal): If the charset method is MAP, load
9046 mapping tables by calling load_charset.
9047 (Funify_charset): Don't load a mapping table but directly set
9048 Vchar_unify_table.
9049 (maybe_unify_char): New function.
9050 (decode_char): Don't handle the deleted method MAP_DEFERRED.
9051 Handle the case of inhibit_load_charset_map being nonzero.
9052 (encode_char): Don't handle the deleted method MAP_DEFERRED.
9053 Handle the case of inhibit_load_charset_map being nonzero.
9054 (Fclear_charset_maps): Just free temp_charset_work.
9055 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
9056 variable.
9057
9058 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
9059 change of char_table_ref_and_range.
9060 (char_table_ref_and_range): Change the meaning of argument FROM
9061 and TO. Now the caller must provide initial values for *FROM
9062 and *TO.
9063
9064 * fontset.c (fontset_add): Adjusted for the change of
9065 char_table_ref_and_range.
9066 (fontset_get_font_group): Likewise.
9067 (Ffontset_info): Likewise.
9068
9069 * keymap.c (describe_vector): Adjusted for the change of
9070 char_table_ref_and_range. For char-table, put boundary between
9071 non-ASCII and 8-bit characters.
9072
9073 * print.c (print_object): For bool-vector, delete unnecessary
9074 check of ASCII_BYTE_P.
9075
9196133b
JR
90762008-11-26 Jason Rumney <jasonr@gnu.org>
9077
9078 * w32font.c (w32font_open_internal): Don't include external
9acef61c 9079 leading in font height. (Bug#879)
9196133b 9080
9f688acf
GM
90812008-11-26 Glenn Morris <rgm@gnu.org>
9082
9083 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
9084 redefinition with ifdef. (Bug#1383)
9085
90d19aff
AR
90862008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9087
9088 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
9089
4ccfa1c0 90902008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
9091
9092 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
9093 New EmacsView methods.
9094 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
9095 Fixes bug #1048,1357,1414.
9096
90972008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9098
9099 Fix bug #1362.
9100 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
9101 is not an indexed color.
9102 * nsterm.m (free_indexed_color): Add argument checking.
9103 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
9104
e7d5ecb3
CY
91052008-11-24 Chong Yidong <cyd@stupidchicken.com>
9106
9107 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
9108 Document confirm-after-completion value for
9109 minibuffer-completion-confirm.
9110
c285743c
JR
91112008-11-24 Jason Rumney <jasonr@gnu.org>
9112
9113 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
9114 warning.
9115
b0857706
JR
91162008-11-23 Jason Rumney <jasonr@gnu.org>
9117
9118 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
9119 restored before returning.
9120
9121 * w32font.c (check_face_name): New function.
9122 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 9123 fonts. (Bug#642)
b0857706 9124
ee50ff07
MR
91252008-11-22 Martin Rudalics <rudalics@gmx.at>
9126
9127 * buffer.c (Fswitch_to_buffer): Reword and mention new option
9128 confirm-nonexistent-file-or-buffer in doc-string.
9129
b8ff72fa
SM
91302008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9131
9132 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
9133 Fix copy/paste typo. Add checks.
9134
cee53ed4
KH
91352008-11-21 Kenichi Handa <handa@m17n.org>
9136
9137 * coding.c (detect_coding_iso_2022): Reject invalid composition
9138 sequence.
9139 (DECODE_COMPOSITION_START): If the current source is the last
9140 block, and the current composition doesn't end, regard this
9141 sequence as invalid.
9142 (decode_coding_iso_2022): Handle invalid composition sequence.
9143
f6ef1e65
MR
91442008-11-20 Martin Rudalics <rudalics@gmx.at>
9145
9146 * window.c (coordinates_in_window): Don't return
9147 ON_VERTICAL_BORDER for the rightmost position of a mode/header
9148 line when the window is not the rightmost one. (Bug#1372)
9149
e08b1705
MR
91502008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
9151
9152 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
9153
ad98e89f
EZ
91542008-11-15 Eli Zaretskii <eliz@gnu.org>
9155
9156 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
9157 and bright_bg if noninteractive is non-zero.
9158
fb098a4b
CY
91592008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9160
9161 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
9162 x_draw_glyph_string_background.
9163
9164 * w32term.c (x_draw_glyph_string): Likewise.
9165
ce952b6e
CY
91662008-11-15 Chong Yidong <cyd@stupidchicken.com>
9167
9168 * xterm.c (x_draw_glyph_string): Stop drawing the background of
9169 the next glyph string once past the overhang width.
9170
9171 * nsterm.m (ns_draw_glyph_string): Likewise.
9172
9173 * w32term.c (x_draw_glyph_string): Likewise.
9174
26ea7079
CY
91752008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
9176
9177 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
9178 double file close.
9179
1c33c906
MR
91802008-11-14 Martin Rudalics <rudalics@gmx.at>
9181
9182 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
9183 dedicated status of window before attempting to display another
9184 buffer in it.
9185
8fc29035
JB
91862008-11-14 Juanma Barranquero <lekktu@gmail.com>
9187
9188 * msdos.c (Fmsdos_long_file_names):
9189 (syms_of_msdos) <dos-unsupported-char-glyph>:
9190 * dosfns.c (Fint86): Fix typos in docstrings.
9191
55fb4286
EZ
91922008-11-14 Eli Zaretskii <eliz@gnu.org>
9193
9194 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
9195
3fda0315
KY
91962008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
9197
9198 * puresize.h (BASE_PURESIZE): Increase to 1260000.
9199
7e849c17
CY
92002008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
9201
9202 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
9203
9204 * frame.h: Negative alpha means "don't touch".
9205
9206 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
9207
9208 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
9209
b9fd67bd
DN
92102008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
9211
9212 * hftctl.c:
9213 * chpdef.h:
9214 * acldef.h: Remove files used only for systems no longer supported.
9215
9216 * Makefile.in: Fix .o alphabetical ordering.
9217 (hftctl.o): Remove dependency, file removed.
9218 (keymap.o, print.o): Depend on charset.h.
9219
d5998e03
KH
92202008-11-10 Kenichi Handa <handa@m17n.org>
9221
2ae37cf0 9222 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 9223
be70e183
CY
92242008-11-08 Chong Yidong <cyd@stupidchicken.com>
9225
9226 * dired.c (file_name_completion): If completion_ignore_case is
9227 enabled, ignore case when checking completion-regexp-list.
9228
7cf94eac
EZ
92292008-11-08 Eli Zaretskii <eliz@gnu.org>
9230
9231 * vm-limit.c (get_lim_data): Fix last change.
9232
ee107a89
KH
92332008-11-08 Kenichi Handa <handa@m17n.org>
9234
9235 * character.c (Fget_byte): New function.
9236 (syms_of_character): Defsubr Fget_byte.
9237
5fd15622
CY
92382008-11-07 Chong Yidong <cyd@stupidchicken.com>
9239
9240 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
9241 cursor position is valid after scrolling.
9242
13d62fad
JB
92432008-11-06 Juanma Barranquero <lekktu@gmail.com>
9244
9245 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
9246
a1dd2936
GM
92472008-11-06 Glenn Morris <rgm@gnu.org>
9248
9249 * xterm.c (handle_one_xevent): Don't let popup menus cause
9250 mouse-autoselect-window related window switching. (Bug#1261)
9251
860cd236
CY
92522008-11-04 David Smith <davidsmith@acm.org> (tiny change)
9253
9254 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
9255
653a3150
AS
92562008-11-04 Andreas Schwab <schwab@suse.de>
9257
9258 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
9259
870f5cac
CY
92602008-11-03 Chong Yidong <cyd@stupidchicken.com>
9261
9262 * xfns.c (Fx_wm_set_size_hint): New function.
9263
1e02f3cb
MR
92642008-11-03 Martin Rudalics <rudalics@gmx.at>
9265
9266 * textprop.c (Fprevious_single_char_property_change): Return 0
9267 when there's no change in a string. (Bug#1301)
9268
e630dfc6
MR
92692008-11-02 Martin Rudalics <rudalics@gmx.at>
9270
9271 * frame.c (do_switch_frame): New argument NORECORD passed to
9272 Fselect_window.
9273 (Fselect_frame): New argument NORECORD passed to
9274 do_switch_frame.
9275 (Fset_frame_selected_window): New argument NORECORD passed to
9276 Fselect_frame.
9277 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
9278 in call of do_switch_frame.
9279 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
9280 Handle NORECORD argument in call of Fselect_frame.
9281 * lisp.h (do_switch_frame, Fselect_frame)
9282 (Fset_frame_selected_window): Adjust declarations.
9283 * window.c (select_frame_norecord): New function.
9284 (run_window_configuration_change_hook): Use it and call
9285 Fselect_frame with NORECORD set.
9286 (Fselect_window): Pass NORECORD to Fselect_frame.
9287 (Fset_window_configuration): Handle NORECORD argument in call of
9288 do_switch_frame.
9289 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
9290 Fset_frame_selected_window.
9291 * keyboard.c (command_loop_1): Handle NORECORD in call of
9292 Fselect_frame (currently ifdefd).
9293
9020b223
GM
92942008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
9295
9296 * emacs.c (USAGE2): Untabify.
9297
793ffee8
SM
92982008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
9299
9300 * composite.c (fill_gstring_header): Fix copy/paste typo.
9301
ab6d1131
MR
93022008-10-31 Martin Rudalics <rudalics@gmx.at>
9303
9304 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
9305 (Fother_window): Rename argument and rewrite doc-string.
9306 (select_window_norecord): Fix return value. (Bug#1276)
9307
601a9cf1
JB
93082008-10-30 Juanma Barranquero <lekktu@gmail.com>
9309
9310 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
9311 new frames overriding foreground for tooltips. Based on similar patch
9312 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
9313
813b0652
CY
93142008-10-29 Chong Yidong <cyd@stupidchicken.com>
9315
9316 * emacs.c (Fdaemon_initialized): Initialize nfd.
9317
4414f58f
MR
93182008-10-29 Martin Rudalics <rudalics@gmx.at>
9319
9320 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
9321 (Fwindow_text_height): Clarify doc-strings.
9322 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
9323 doc-string of window-scroll-functions.
9324
ecdcaa09
RS
93252008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
9326
9327 * category.c (syms_of_category): Fix typo in docstring.
9328
23fe745a
JB
93292008-10-28 Juanma Barranquero <lekktu@gmail.com>
9330
9331 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
9332 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
9333 Fix typos in docstrings.
9334
ff808935
DN
93352008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
9336
9337 * emacs.c (daemon_pipe): Make non-static.
9338 (IS_DAEMON): Move definition ...
9339 * lisp.h (IS_DAEMON): ... here.
9340 (daemon_pipe): Declare.
9341 (is_daemon): Remove.
9342 * dispnew.c (init_display): Use IS_DAEMON.
9343
fc012771
SM
93442008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
9345
9346 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
9347 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
9348
9349 * emacs.c (is_daemon): Remove.
9350 (main): Don't set is_daemon.
9351 (IS_DAEMON): New macro.
9352 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 9353 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
9354 parent exits.
9355 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
9356
d8bdbe6f
CY
93572008-10-27 Chong Yidong <cyd@stupidchicken.com>
9358
d1a072bf
CY
9359 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
9360 over-sized glyph, draw it with the default glyph width.
9361
e2e325aa
CY
9362 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
9363 glyph, draw it with the default glyph width.
9364
9365 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
9366 glyph, draw it with the default glyph width.
9367
d8bdbe6f
CY
9368 * xdisp.c (try_scrolling): When computing the distance from the
9369 scroll margin to PT, try moving some distance past the window
9370 bottom before giving up.
9371
7bfac547
MR
93722008-10-27 Martin Rudalics <rudalics@gmx.at>
9373
9374 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
9375 (Fset_window_buffer): Explain in doc-string that a window can be
9376 "strongly" dedicated to its buffer.
9377
4ff029f6
DN
93782008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
9379
9380 * emacs.c (daemon_name): New variable.
9381 (main): Deal with --daemon=SERVER_NAME.
9382 (Fdaemonp): Return a name if one was passed to --daemon.
9383
5790ef40
DN
93842008-10-26 Romain Francoise <romain@orebokech.com>
9385
f9bd0df9 9386 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
9387 (main): Create a pipe before forking, make the parent exit only after
9388 the child has closed its end of the pipe. Move closing the
9389 descriptors ...
9390 (Fdaemon_initialized): ... here. New function.
9391
f5385255
SM
93922008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
9393
4d632321
SM
9394 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
9395 the previous unoptimized table.
9396
f5385255
SM
9397 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
9398 the distinction between non-nil and non-t value of `dedicated'.
9399
6c56a0f3
CY
94002008-10-25 Chong Yidong <cyd@stupidchicken.com>
9401
9402 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 9403 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 9404
fec89261
MR
94052008-10-25 Martin Rudalics <rudalics@gmx.at>
9406
9407 * window.c (Fget_buffer_window, Fdelete_windows_on)
9408 (Freplace_buffer_in_windows): Make buffer argument optional and
9409 rename to buffer_or_name.
9410
34fcddd0
CY
94112008-10-24 Chong Yidong <cyd@stupidchicken.com>
9412
f5385255
SM
9413 * xdisp.c (handle_single_display_spec, handle_display_prop):
9414 Undo 2005-05-16 change.
34fcddd0
CY
9415 (handle_stop): Pop iterator if it's loaded with an empty string.
9416 (get_overlay_strings_1): Don't save iterator if it's loaded with
9417 an empty string (bug#1201).
9418
064766f2
KH
94192008-10-24 Kenichi Handa <handa@m17n.org>
9420
9421 * ftfont.c (ftfont_otf_features): Fix previous change.
9422 (ftfont_otf_capability): Check FeatureList.FeatureCount before
9423 calling ftfont_otf_features.
9424
f9bd0df9 94252008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
9426
9427 * font.c (font_match_p): Fix for the case that a vector of
9428 characters is in script-representative-chars.
9429
1dae9197
MA
94302008-10-24 Michael Albinus <michael.albinus@gmx.de>
9431
9432 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 9433 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
9434 (xd_read_queued_messages): Catch Qdbus_error from the macros.
9435 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 9436 macro. (Bug#1186)
1dae9197 9437
f9bd0df9 94382008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
9439
9440 * s/sol2-10.h: New file.
9441
878a4584
JB
94422008-10-23 Juanma Barranquero <lekktu@gmail.com>
9443
9444 * xdisp.c (fill_glyph_string): Fix typo in source (though the
9445 poor beast has survived 9+ years and the jump from xterm.c!).
9446
cd265ca6
MR
94472008-10-23 Martin Rudalics <rudalics@gmx.at>
9448
9449 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
9450 Reword doc-string.
f5385255 9451 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 9452
472a4dc9
JB
94532008-10-23 Juanma Barranquero <lekktu@gmail.com>
9454
9455 * character.c (syms_of_character) <script-representative-chars>:
9456 <unicode-category-table>: Doc fixes.
9457
159bd5a2
NF
94582008-10-23 Noah Friedman <friedman@splode.com>
9459
9460 * coding.c (make_conversion_work_buffer): Check that
9461 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
9462 Fget_buffer_create.
9463
49f9c344
KH
94642008-10-23 Kenichi Handa <handa@m17n.org>
9465
9466 * font.c (font_add_log): Check the values of extra properties.
9467
12bb3111
MR
94682008-10-22 Martin Rudalics <rudalics@gmx.at>
9469
9470 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9471 Reword doc-string.
9472 (Fset_window_parameter): Use NILP.
9473 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 9474 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 9475
bbeb4e99
JB
94762008-10-22 Juanma Barranquero <lekktu@gmail.com>
9477
9478 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
9479
94802008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
9481
9482 * nsfns.m (ns_appkit_version): New function.
9483 (x-server-version): Use it.
9484 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
9485 (x-server-vendor): Don't check_ns().
9486
9487 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
9488
a9b555d3
JB
94892008-10-22 Juanma Barranquero <lekktu@gmail.com>
9490
9491 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
9492 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
9493
4626499f
KH
94942008-10-22 Kenichi Handa <handa@m17n.org>
9495
e3681952
KH
9496 * syntax.c (scan_words): Call word_boundary_p instead of comparing
9497 scripts.
9498
4626499f
KH
9499 * category.c (word_boundary_p): Check scripts instead of charset.
9500 Handle nil value in word-separating-categories and
9501 word-combining-categories.
9502 (syms_of_category): Fix docstrings of word-separating-categories
9503 and word-combining-categories.
9504
1560f91a
EZ
95052008-10-21 Eli Zaretskii <eliz@gnu.org>
9506
9507 * coding.c (Fencode_coding_region, Fdecode_coding_region)
9508 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
9509
f4668441
MR
95102008-10-21 Martin Rudalics <rudalics@gmx.at>
9511
9512 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
9513 Rename arg "buffer" to "buffer_or_name".
9514 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
9515 it optional.
9516 (no_switch_window): Remove since the return value is not used.
a9b555d3 9517 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
9518 Consider window as dedicated when Fwindow_dedicated_p returns a
9519 non-nil value.
9520 * lisp.h: Remove prototype for no_switch_window.
9521
fd75ddb2
JD
95222008-10-21 Jan Djärv <jan.h.d@swipnet.se>
9523
9524 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 9525 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 9526
07295713
KH
95272008-10-21 Kenichi Handa <handa@m17n.org>
9528
9529 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
9530 check Vlatin_extra_code_table.
9531
712adc82
EZ
95322008-10-20 Eli Zaretskii <eliz@gnu.org>
9533
9534 * fileio.c (Fset_file_modes): Doc fix.
9535
f549eb0b
MA
95362008-10-19 Michael Albinus <michael.albinus@gmx.de>
9537
9538 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
9539 in arrays.
9540
aac0c6e3
MR
95412008-10-19 Martin Rudalics <rudalics@gmx.at>
9542
9543 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9544 Mention kill-buffer in doc-string.
9545 (Fset_window_buffer): Reinsert tem check removed in last commit.
9546 (Fenlarge_window, Fshrink_window): Have argument names and
9547 doc-string follow Elisp manual more closely.
9548
95492008-10-18 Eli Zaretskii <eliz@gnu.org>
9550
9551 * fileio.c (Fset_file_modes): Doc fix.
9552
95532008-10-18 Martin Rudalics <rudalics@gmx.at>
9554
9555 * window.c (Fwindow_width, Fset_window_start)
9556 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
9557 (Fdelete_windows_on, Freplace_buffer_in_windows):
9558 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
9559 (Fwindow_dedicated_p): Make window argument optional.
9560 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
9561 (Fset_window_buffer): Respect any non-nil dedicated value for
9562 window. Rename "buffer" argument to "buffer_or_name".
9563
95642008-10-18 Ulrich Mueller <ulm@gentoo.org>
9565
9566 * m/sh3.h: New file, machine description for SuperH.
9567
95682008-10-17 Martin Rudalics <rudalics@gmx.at>
9569
9570 * window.c (Fsplit_window): Rename arg horflag to horizontal.
9571
95722008-10-17 Kenichi Handa <handa@m17n.org>
9573
9574 * ftfont.c (ftfont_otf_features): Fix indexing
9575 gsub_gpos->FeatureList.Feature. Check the validity of indices.
9576
95772008-10-16 Magnus Henoch <mange@freemail.hu>
9578
9579 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
9580 (Fdbus_call_method_asynchronously): Ditto.
9581 This change makes C-h f display the argument list.
9582
95832008-10-16 Chong Yidong <cyd@stupidchicken.com>
9584
9585 * fileio.c (Fexpand_file_name): Doc fix.
9586
9587 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
9588 of :foreground and :background equivalent to unspecified (20.x
9589 compatibility).
9590
95912008-10-15 Eli Zaretskii <eliz@gnu.org>
9592
9593 * buffer.c (syms_of_buffer): Doc fix.
9594
95952008-10-14 Kenichi Handa <handa@m17n.org>
9596
9597 * font.c (font_clear_prop): When clearing font width, clear the
9598 average width field too.
9599
96002008-10-12 Andreas Schwab <schwab@suse.de>
9601
9602 * ftfont.c (ftfont_shape_by_flt): Make static.
9603 * ftfont.h (ftfont_shape_by_flt): Don't declare.
9604
9605 * font.c: Don't include <m17n-flt.h>.
9606
96072008-10-10 Eli Zaretskii <eliz@gnu.org>
9608
9609 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
9610
96112008-10-09 Eli Zaretskii <eliz@gnu.org>
9612
9613 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
9614 away code.
9615
96162008-10-09 Chong Yidong <cyd@stupidchicken.com>
9617
9618 * dispnew.c (update_text_area): Avoid looping due to large glyph
9619 overhangs (bug#1070).
9620
96212008-10-09 Kenichi Handa <handa@m17n.org>
9622
9623 * fontset.c (face_for_char): If face->fontset is negative, just
9624 return ascii_face.
9625
f5385255
SM
9626 * font.c (font_delete_unmatched): Fix previous change.
9627 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
9628
96292008-10-09 Martin Rudalics <rudalics@gmx.at>
9630
9631 * frame.c (Fraise_frame): On text-only terminals select frame in
9632 order to make it visible. (Bug#1061)
9633
96342008-10-08 Chong Yidong <cyd@stupidchicken.com>
9635
9636 * fontset.c (fontset_find_font): Check frame validity.
9637
96382008-10-07 Chong Yidong <cyd@stupidchicken.com>
9639
a9b555d3 9640 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
9641 (xg_display_close): Allow Emacs to close all displays (bug#985).
9642
96432008-10-06 Andreas Schwab <schwab@suse.de>
9644
f5385255 9645 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
9646
96472008-10-06 Chong Yidong <cyd@stupidchicken.com>
9648
f5385255 9649 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 9650
a9b555d3 9651 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
9652
9653 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
9654 during initialization.
9655
96562008-10-04 Eli Zaretskii <eliz@gnu.org>
9657
9658 * xdisp.c (redisplay_internal): If frame switched, redisplay the
9659 whole thing on MSDOS frames as well as on a TTY.
9660
9661 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
9662 well as for TTY.
9663 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
9664 well as on a TTY.
9665
9666 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
9667 as well as for TTY.
9668
9669 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
9670
9671 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
9672 MSDOS frames as well.
9673
96742008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9675
9676 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
9677 correct arguments.
b71ac3dd 9678 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
9679
96802008-10-03 Glenn Morris <rgm@gnu.org>
9681
9682 * emacs.c (USAGE1): Add --daemon.
9683
96842008-10-02 Eli Zaretskii <eliz@gnu.org>
9685
9686 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
9687 100, so it's in percents as advertised.
9688
96892008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9690
9691 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
9692 (ns_output.current_cursor, ns_output.desired_cursor)
9693 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
9694 (FRAME_NEW_CURSOR_COLOR): Remove.
9695
9696 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 9697 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
9698 enumeration (HOLLOW_BOX_CURSOR, etc.).
9699
9700 * nsterm.m (ns_frame_rehighlight): Remove commented code.
9701 (draw_window_cursor): Simplify code.
f5385255
SM
9702 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
9703 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 9704 updates manually.
a9b555d3
JB
9705 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
9706 Use core Emacs cursor types.
aac0c6e3 9707
b8ff72fa 9708 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
9709
97102008-10-02 Martin Rudalics <rudalics@gmx.at>
9711
9712 * process.c (Faccept_process_output): Fix doc-string.
9713
97142008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
9715
9716 * gmalloc.c (__sbrk): Also define for uClibc.
9717
9718 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
9719 for uClibc.
9720
97212008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9722
9723 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
9724 styles.
9725 (nsfont_open): Reenable the cache.
9726
97272008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9728
9729 * font.c (font_matching_entity): Reflect ATTRS in font selection.
9730 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
9731
97322008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
9733
9734 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
9735 a suspended terminal.
9736
97372008-09-30 Michael Albinus <michael.albinus@gmx.de>
9738
9739 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
9740
97412008-09-30 Eli Zaretskii <eliz@gnu.org>
9742
9743 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
9744
97452008-09-30 Chong Yidong <cyd@stupidchicken.com>
9746
9747 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
9748 in a continued line coincides with a line beginning.
9749
97502008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9751
9752 * nsfont.m (nsfont_trait_distance): Fix bug.
9753 (nsfont_list): Return a list rather than a vector (syncs with Handa
9754 changes of 2008-05-14).
9755 (nsfont_open): Improve logging.
9756
97572008-09-29 Andreas Schwab <schwab@suse.de>
9758
9759 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9760
97612008-09-28 Martin Rudalics <rudalics@gmx.at>
9762
9763 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
9764 name as char-resolve-modifiers.
9765 Reported by: Markus Triska <markus.triska@gmx.at>
9766
97672008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
9768
9769 * dispnew.c (init_display): Return earlier when running as a daemon.
9770
97712008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9772
9773 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
9774
97752008-09-27 Eli Zaretskii <eliz@gnu.org>
9776
9777 * composite.c (Fcomposition_get_gstring)
9778 (Fcompose_region_internal, Fcompose_string_internal)
9779 (Ffind_composition_internal): Doc fix.
9780 (syms_of_composite) <compose-chars-after-function>: Doc fix.
9781 (syms_of_composite) <auto-composition-function>: Doc fix.
9782 (syms_of_composite) <composition-function-table>: Doc fix.
9783
97842008-09-25 Chong Yidong <cyd@stupidchicken.com>
9785
9786 * search.c (wordify): New argument for lax word-ends.
9787 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
9788
97892008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
9790
9791 * lisp.h (is_daemon): Declare.
9792 * dispnew.c (init_display): Do not try to initialize the terminal
9793 when running as a daemon.
9794
97952008-09-22 Chong Yidong <cyd@stupidchicken.com>
9796
9797 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
9798 x_display_pixel_height.
9799
98002008-09-22 Martin Rudalics <rudalics@gmx.at>
9801
9802 * undo.c (record_point): Don't call Fundo_boundary for first
9803 change. (Bug#731)
9804
98052008-09-22 Juanma Barranquero <lekktu@gmail.com>
9806
9807 * emacs.c (Fdaemonp): Doc fix.
9808
98092008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
9810
9811 * emacs.c (main): Place #ifdef in the proper place.
9812
98132008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
9814
9815 * emacs.c (standard_args): Add --daemon.
9816 (main): Disconnect from the terminal when --daemon is passed.
9817 (is_daemon): New variable.
9818 (Fdaemonp): New function.
9819 (syms_of_emacs): Defsubr it.
9820
98212008-09-20 Chong Yidong <cyd@stupidchicken.com>
9822
9823 * xdisp.c (get_next_display_element): Handle string display
9824 correctly when checking for the end of a box run.
9825
98262008-09-20 Glenn Morris <rgm@gnu.org>
9827
9828 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
9829 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
9830 (Frename_file): Avoid copying to trash if a rename involves
9831 a delete. (Bug#964).
9832
98332008-09-20 Eli Zaretskii <eliz@gnu.org>
9834
9835 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
9836 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
9837 frames as well as termcap frames.
9838 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
9839 get_named_tty.
9840
98412008-09-19 Eli Zaretskii <eliz@gnu.org>
9842
9843 * process.c (procfs_system_process_attributes): Fix cmdline in
9844 case /proc/PID/cmdline is empty.
9845
9846 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
9847 x_display_pixel_height.
9848
98492008-09-19 Juanma Barranquero <lekktu@gmail.com>
9850
9851 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
9852
9853 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
9854 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
9855
98562008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
9857
9858 * dispextern.h (struct it): Move line_wrap away from the middle of
9859 bitfields. Move voffset in struct iterator_stack_entry after the
9860 bitfields. Move tab_width near after another short.
9861
98622008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
9863
9864 * frame.h (struct frame): Move alpha from the middle of bitfields.
9865
9866 * window.h (struct window): Move frozen_window_start_p after the
9867 rest of the bitfields to reduce padding.
9868
98692008-09-18 Chong Yidong <cyd@stupidchicken.com>
9870
9871 * xterm.h (x_display_info): Remove `height' and `width' members.
9872
9873 * nsterm.h (ns_display_info): Remove `height' and `width' members.
9874
9875 * w32term.h (w32_display_info): Remove `height', `width',
9876 `height_in', and `width_in' members.
9877
b8ff72fa
SM
9878 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9879 New functions.
aac0c6e3
MR
9880 (x_calc_absolute_position): Use them.
9881 (x_term_init): Omit removed `height' and `width' members.
9882
b8ff72fa
SM
9883 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9884 New functions.
aac0c6e3
MR
9885 (w32_read_socket, x_calc_absolute_position): Use them.
9886 (w32_initialize_display_info, w32_term_init): Omit removed members
9887 of w32_display_info.
9888
b8ff72fa
SM
9889 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
9890 New functions.
9891 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 9892
b8ff72fa
SM
9893 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9894 New functions.
aac0c6e3
MR
9895 (x_calc_absolute_position): Use them.
9896 (x_term_init): Omit removed `height' and `width' members.
9897
9898 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
9899 (compute_tip_xy):
9900 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
9901 * xmenu.c (menu_position_func): Use x_display_pixel_height and
9902 x_display_pixel_width.
9903
99042008-09-18 Kenichi Handa <handa@m17n.org>
9905
9906 * composite.c (fill_gstring_header): Don't check FROM and TO here.
9907 (composition_compute_stop_pos): Fix handling of static composition.
9908 (Fcomposition_get_gstring): Check FROM and TO at first.
9909
99102008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
9911
46e722a9 9912 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
9913 mixup (YAILOM).
9914
99152008-09-17 Chong Yidong <cyd@stupidchicken.com>
9916
9917 * indent.c (Fvertical_motion): Use position reported by iterator
9918 instead of PT for determining screen motion (bug#943).
9919
99202008-09-17 Romain Francoise <romain@orebokech.com>
9921
9922 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
9923
99242008-09-17 Kenichi Handa <handa@m17n.org>
9925
9926 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
9927
9928 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
9929 if necessary.
9930
99312008-09-16 Kenichi Handa <handa@m17n.org>
9932
9933 * coding.c (make_conversion_work_buffer): Avoid calling
9934 Fget_buffer_create if it is not necessary.
9935
99362008-09-15 Martin Rudalics <rudalics@gmx.at>
9937
9938 * window.c (Fselect_window): Don't update window_select_count and
9939 use_time when norecord is not nil.
9940
99412008-09-14 Kenichi Handa <handa@m17n.org>
9942
9943 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
9944 specpdl_ptr.
9945
99462008-09-12 Kenichi Handa <handa@m17n.org>
9947
9948 * indent.c (scan_for_column): Don't handle automatic composition
9949 if the current buffer is not associated with a window.
9950
9951 * composite.c (composition_reseat_it): If the current buffer is
9952 not associated with a window, ignore the automatic composition.
9953 (find_automatic_composition): Likewise.
9954
99552008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
9956
9957 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
9958 (Fgpm_mouse_stop): Use it.
9959 * termhooks.h (close_gpm): Declare.
9960 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
9961 connection if Gpm_GetEvent fails.
9962
9963 * window.c (set_window_buffer): Always preserve current-buffer.
9964
99652008-09-12 Glenn Morris <rgm@gnu.org>
9966
9967 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
9968
99692008-09-11 Glenn Morris <rgm@gnu.org>
9970
9971 * charset.c (charset-map-path): Doc fix.
9972
99732008-09-10 Kenichi Handa <handa@m17n.org>
9974
9975 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
9976
9977 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
9978 compose a grapheme cluster with the preceding base glyph.
9979
9980 * composite.c (composition_compute_stop_pos): Fix previous change.
9981 Reset cmp_it->id to -1 at first.
9982
99832008-09-10 Glenn Morris <rgm@gnu.org>
9984
9985 * Makefile.in (character.o, chartab.o): Fix config.h typo.
9986
99872008-09-09 Chong Yidong <cyd@stupidchicken.com>
9988
9989 * keyboard.c (read_key_sequence): Reapply translation maps when
9990 switching keyboards.
9991
99922008-09-09 Kenichi Handa <handa@m17n.org>
9993
9994 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
9995 characters.
9996
9997 * composite.c (FORWARD_CHAR): Fix calculation
9998 of (POSITION).pos_byte.
9999 (composition_compute_stop_pos): Limit the search of composition to
10000 at most 500 characters ahead. If we reach the limit or find a
10001 newline, set cmp_it->ch to -2 and return 0.
10002 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
10003
100042008-09-08 Kenichi Handa <handa@m17n.org>
10005
10006 * indent.c (Fvertical_motion): Be sure to set
10007 it_overshoot_expected if it.cmp_it.id is non-negative.
10008
100092008-09-07 Andreas Schwab <schwab@suse.de>
10010
10011 * callproc.c (Fcall_process): Don't hold references to string data
10012 across garbage collection. Move initialisation of new_argv down
10013 to avoid compiler bug.
10014
100152008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10016
10017 * process.c (Fsystem_process_attributes): Doc fix.
10018
100192008-09-07 Chong Yidong <cyd@stupidchicken.com>
10020
10021 * callproc.c (Fcall_process): Canonicalize current directory name.
10022
10023 * xdisp.c (move_it_to): When moving by vpos, ensure that the
10024 iterator advances to the next line if the current line ends in a
10025 continued tab.
10026
100272008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
10028
10029 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
10030 member to point to cmp_from.
10031
10032 * xdisp.c: Doc fix for references to gidx data member.
10033
100342008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10035
10036 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
10037
100382008-09-07 Kenichi Handa <handa@m17n.org>
10039
10040 * composite.c (FORWARD_CHAR): Check STOP after
10041 incrementing (POSITION).pos.
10042
100432008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10044
10045 * process.c (Fsystem_process_attributes): Doc fix.
10046
100472008-09-06 Chong Yidong <cyd@stupidchicken.com>
10048
10049 * keyboard.c (Ftop_level): Doc fix.
10050
100512008-09-06 Eli Zaretskii <eliz@gnu.org>
10052
10053 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
10054 minibuffer, don't let lower part of menu invade the echo area.
10055
10056 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
10057 "char *q" to access menu text and advance through it. Revert the
10058 change that displayed ">" instead of ASCII character 0x10.
10059
100602008-09-05 Eli Zaretskii <eliz@gnu.org>
10061
10062 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
10063 toggle boxes and radio buttons on MS-DOS as well.
10064
100652008-09-05 Kenichi Handa <handa@m17n.org>
10066
10067 * composite.c (autocmp_chars): Check lookback count.
10068 (composition_compute_stop_pos): Set cmp_it->lookback.
10069 (composition_reseat_it): Check lookback count.
10070 (struct position_record): New struct.
10071 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
10072 (find_automatic_composition): New function.
10073 (composition_adjust_point): Use find_automatic_composition.
10074
10075 * dispextern.h (struct composition_it): New member lookback.
10076
100772008-09-02 Chong Yidong <cyd@stupidchicken.com>
10078
10079 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
10080 if moving by a single line.
10081
100822008-09-02 Andreas Schwab <schwab@suse.de>
10083
10084 * xterm.c (x_delete_display): Fix merge error.
10085
10086 * fileio.c (Fexpand_file_name): Remove unused variables.
10087
100882008-09-02 Eli Zaretskii <eliz@gnu.org>
10089
10090 * fileio.c (Fexpand_file_name): Copy argument `name' into local
10091 storage on all platforms, not just on DOS_NT.
10092
100932008-09-02 Jason Rumney <jasonr@gnu.org>
10094
b8ff72fa
SM
10095 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
10096 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
10097
100982008-09-01 Chong Yidong <cyd@stupidchicken.com>
10099
10100 * xfaces.c (Finternal_set_alternative_font_family_alist)
10101 (Finternal_set_alternative_font_registry_alist): Properly copy
10102 entire alist structure.
10103
101042008-09-01 Kenichi Handa <handa@m17n.org>
10105
d66c0241 10106 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 10107 representative chars of the script is a vector.
d66c0241
JB
10108 (ftfont_list): Handle the case where the representative chars of
10109 the script is a vector.
aac0c6e3
MR
10110
10111 * character.c (syms_of_character): Docstring of
10112 script-representative-chars fixed.
10113
101142008-08-31 Eli Zaretskii <eliz@gnu.org>
10115
10116 * msdos.c (BUILD_CHAR_GLYPH): New macro.
10117 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
10118 the menu. Allocate larger buffer for `text', to account for
10119 possible ^C characters.
10120
101212008-08-31 Martin Rudalics <rudalics@gmx.at>
10122
10123 * xdisp.c (prepare_menu_bars): Don't call
10124 Vwindow_size_change_functions with arg Qt.
10125
101262008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
10127
10128 * font.h (font_range):
10129 * fileio.c (report_file_error):
46e722a9
SM
10130 * composite.c (composition_update_it): Yet another int/Lisp_Object
10131 mixup (YAILOM).
aac0c6e3
MR
10132
101332008-08-30 Glenn Morris <rgm@gnu.org>
10134
10135 * data.c (Fmake_variable_frame_local): Doc fix.
10136
10137 * frame.c (Fmodify_frame_parameters): Doc fix.
10138
101392008-08-30 Eli Zaretskii <eliz@gnu.org>
10140
10141 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
10142 needed by GetTokenInformation.
10143 (w32_system_process_attributes): Check return values of all system
10144 APIs.
10145
10146 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
10147 only when the state changes.
10148 (IT_update_begin, IT_update_end): Add termscript trace.
10149
10150 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
10151 clipboard is unavailable. Set dst to NULL if it doesn't point to
10152 malloc'ed data.
10153 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
10154 passing random values to xfree.
10155
10156 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 10157 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
10158
101592008-08-29 Jason Rumney <jasonr@gnu.org>
10160
10161 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
10162
101632008-08-29 Eli Zaretskii <eliz@gnu.org>
10164
10165 * composite.c (fill_gstring_body): Avoid compiler warnings.
10166
10167 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
10168 LGLYPH_SET_CODE to avoid compiler warnings.
10169
2ae37cf0 10170 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
10171
10172 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
10173
10174 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
10175 LGLYPH_SET_CODE.
10176
101772008-08-29 Kenichi Handa <handa@m17n.org>
10178
10179 * fileio.c (report_file_error): Don't downcase the first character
10180 of errstring if it is still unibyte.
10181
101822008-08-29 Kenichi Handa <handa@m17n.org>
10183
10184 These changes are to re-implement the automatic composition so
10185 that it doesn't use text properties.
10186
10187 * Makefile.in (ftfont.o): Depend on composite.h.
10188 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
10189
10190 * character.h (Vunicode_category_table): Extern it.
10191
10192 * character.c (Vunicode_category_table): New variable.
10193 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
10194
10195 * chartab.c (optimize_sub_char_table): Perform more greedy
10196 optimization.
10197
b8ff72fa
SM
10198 * composite.h (enum composition_method):
10199 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
10200 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
10201 (Vcomposition_function_table): Extern it.
10202 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
10203 (composition_gstring_put_cache, composition_gstring_from_id)
10204 (composition_gstring_p, composition_gstring_width)
10205 (composition_compute_stop_pos, composition_reseat_it)
10206 (composition_update_it, composition_adjust_point): Extern them.
10207 (Fcomposition_get_gstring): EXFUN it.
10208
d66c0241 10209 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
10210 (Vcomposition_function_table)
10211 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
10212 (gstring_hash_table, gstring_work, gstring_work_headers):
10213 New variables.
aac0c6e3
MR
10214 (gstring_lookup_cache, composition_gstring_put_cache)
10215 (composition_gstring_from_id, composition_gstring_p)
10216 (composition_gstring_width, fill_gstring_header)
10217 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
10218 (composition_reseat_it, composition_update_it)
b8ff72fa 10219 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
10220 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
10221 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 10222 Defsubr composition_get_gstring.
aac0c6e3
MR
10223
10224 * dispextern.h (struct glyph): New union u.cmp. Delete the member
10225 cmp_id.
10226 (struct glyph_string): Delete the member gidx. New members
10227 cmp_id, cmp_from, and cmp_to.
10228 (enum it_method): Delete GET_FROM_COMPOSITION.
10229 (struct composition_it): New struct.
10230 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
10231 Delete c, len, cmp_id, cmp_len in u.comp.
10232
10233 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 10234 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 10235 (enum lglyph_indices): Likewise.
b8ff72fa 10236 (font_range): Adjust extern.
aac0c6e3
MR
10237 (font_fill_lglyph_metrics): Extern it.
10238
10239 * font.c (QCf): New variable.
10240 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10241 (font_prepare_composition): Delete this function.
10242 (font_range): Type and arguments changed.
10243 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
10244 (font_fill_lglyph_metrics): New function.
b8ff72fa 10245 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 10246 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
10247 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
10248 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
10249
10250 * fontset.h (font_for_char): Extern it.
10251
10252 * fontset.c (font_for_char): New function.
10253
10254 * ftfont.c: Include composite.h.
10255 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 10256 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
10257
10258 * indent.c: Include composite.h and dispextern.h.
10259 (check_composition): Delete this function.
10260 (scan_for_column): Handle composition by
10261 composition_compute_stop_pos, composition_reseat_it, and
10262 composition_update_it.
10263 (compute_motion): Likewise.
10264 (Fvertical_motion): Fix checking of composition.
10265
10266 * keyboard.c (adjust_point_for_property): Check composition by
10267 composition_adjust_point.
10268
b8ff72fa 10269 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
10270 struct glyph_string.
10271
b8ff72fa
SM
10272 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
10273 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
10274 struct glyph.
10275 (produce_composite_glyph): Likewise.
10276
b8ff72fa
SM
10277 * w32term.c (x_draw_composite_glyph_string_foreground):
10278 Adjust for the change of struct glyph_string.
aac0c6e3
MR
10279 (x_draw_glyph_string): Likewise.
10280
10281 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
10282 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10283
10284 * xdisp.c: Include font.h.
10285 (it_props): Delete the entry for Qauto_composed.
10286 (init_iterator): Initialize it->cmp_it.id to -1.
10287 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 10288 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
10289 (handle_auto_composed_prop): Delete it.
10290 (handle_composition_prop): Handle only static composition.
10291 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
10292 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 10293 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
10294 (pop_it): Likewise.
10295 (get_next_element): Delete next_element_from_composition.
10296 (CHAR_COMPOSED_P): New macro.
10297 (get_next_display_element): For automatic composition, get a face
10298 from the font in the glyph-string.
10299 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 10300 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
10301 (next_element_from_string): Check if the character at the current
10302 position is composed by CHAR_COMPOSED_P.
10303 (next_element_from_buffer): Likewise.
d66c0241
JB
10304 (next_element_from_composition): Adjust for the change of struct it.
10305 Update it->cmp_it.
b8ff72fa
SM
10306 (dump_glyph): Adjust for the change of struct glyph.
10307 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
10308 it and struct glyph. Don't handle automatic composition here.
10309 (fill_gstring_glyph_string): New function.
10310 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 10311 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
10312 (BUILD_GSTRING_GLYPH_STRING): New macro.
10313 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
10314 automatic composition.
b8ff72fa 10315 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 10316 struct glyph.
b8ff72fa 10317 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 10318
b8ff72fa 10319 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
10320 the change of struct glyph_string.
10321 (x_draw_glyph_string): Likewise.
10322
103232008-08-29 Glenn Morris <rgm@gnu.org>
10324
10325 * buffer.c (word-wrap): Doc fix.
10326 * xdisp.c (truncate-partial-width-windows): Doc fix.
10327 Increase default to 50.
10328
103292008-08-29 Chong Yidong <cyd@stupidchicken.com>
10330
10331 * xdisp.c (update_tool_bar_unwind): New function.
10332 (update_tool_bar): Temporarily set selected frame before building
10333 tool-bar items.
10334
103352008-08-28 Michael Albinus <michael.albinus@gmx.de>
10336
10337 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
10338 snprintf, respectively.
10339 (xd_append_arg): Convert strings with Fstring_make_unibyte.
10340
103412008-08-28 Chong Yidong <cyd@stupidchicken.com>
10342
10343 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
10344 LDFLAGS to GNUstep CC invocation.
10345
103462008-08-27 Chong Yidong <cyd@stupidchicken.com>
10347
10348 * indent.c (Fvertical_motion): Revert last change. Handle the
10349 general case where we are moving forward, and PT spans multiple
10350 screen lines.
10351
10352 * eval.c (find_handler_clause): Temporarily increase
10353 max-lisp-eval-depth while printing the backtrace buffer, to
10354 guarantee that help-mode code can run.
10355
103562008-08-27 Eli Zaretskii <eliz@gnu.org>
10357
10358 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
10359 colors under -rv.
10360 (IT_set_frame_parameters): Don't swap foreground and background
10361 colors if `(reverse . t)' is present in the frame properties.
10362 (internal_terminal_init): Call init_frame_faces only for the
10363 initial frame.
10364
103652008-08-27 Andreas Schwab <schwab@suse.de>
10366
10367 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
10368
103692008-08-27 Andreas Schwab <schwab@suse.de>
10370
10371 * search.c (search_buffer): Set char_base to zero only at the end.
10372
103732008-08-27 Kenichi Handa <handa@m17n.org>
10374
b8ff72fa 10375 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
10376
103772008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
10378
10379 * xterm.c (x_term_init): Temporarily hide the partially
10380 initialized terminal while calling vendor-specific-keysyms.
10381
103822008-08-26 Eli Zaretskii <eliz@gnu.org>
10383
10384 * msdos.c (internal_terminal_init): Most initializations done only
10385 once, especially initial_screen_colors[] and termscript open.
10386
103872008-08-26 Chong Yidong <cyd@stupidchicken.com>
10388
10389 * eval.c (Fcondition_case): Doc fix.
10390
10391 * widgetprv.h (EmacsFramePart): Change font member to the new font
10392 struct.
10393
10394 * widget.c: Include character.h and font.h for XSETFONT.
10395 (setup_frame_gcs): Compute X font id from font struct, just once.
10396
103972008-08-26 Eli Zaretskii <eliz@gnu.org>
10398
10399 * term.c (get_named_tty): Fix last change.
10400
104012008-08-26 Chong Yidong <cyd@stupidchicken.com>
10402
10403 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 10404 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
10405
104062008-08-25 Eli Zaretskii <eliz@gnu.org>
10407
10408 * frame.c (do_switch_frame): Mark previously displayed frame as
10409 obscured for FRAME_MSDOS_P frames as well.
10410
104112008-08-24 Eli Zaretskii <eliz@gnu.org>
10412
10413 * frame.c (make_terminal_frame): Initialize f->terminal,
10414 f->terminal->reference_count, and scroll bars on MS-DOS as well.
10415 Set the top frame to newly created frame.
10416 (Fmake_terminal_frame): Reuse the_only_display_info.
10417
10418 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
10419 estimating available memory.
10420
b97439ce 104212008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
10422
10423 * nsterm.m (ns_draw_window_cursor): Don't call
10424 NSDisableScreenUpdates and NSEnableScreenUpdates on
10425 non-NS_IMPL_COCOA systems.
10426
104272008-08-23 Andreas Schwab <schwab@suse.de>
10428
10429 * process.c (procfs_system_process_attributes): Fix use of
10430 uninitialized variables.
10431
104322008-08-23 Eli Zaretskii <eliz@gnu.org>
10433
10434 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
10435
10436 * dispnew.c (init_display): Remove MS-DOS specific conditions for
10437 calling tty-set-up-initial-frame-faces.
10438
b8ff72fa
SM
10439 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
10440 Allow MSDOS frames along with X frames.
aac0c6e3
MR
10441
10442 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
10443 addition to output_termcap.
10444
10445 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
10446
10447 * termchar.h (FRAME_TTY): Support output_msdos_raw.
10448 (struct tty_display_info) [MSDOS]: Add fields related to mouse
10449 highlight.
10450
10451 * process.c [!subprocesses]: Define QCname.
10452 (syms_of_process): Intern and staticpro it.
10453
10454 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
10455 Adjust for changes in encoding/decoding routines.
10456 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
10457 encode_coding and decode_coding.
10458
b8ff72fa 10459 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
10460
10461 * dosfns.c: Include frame.h before termhooks.h.
10462 (dos_cleanup): Use CURTTY ()->termscript instead of a global
10463 variable termscript.
10464
10465 * s/msdos.h (USER_FULL_NAME): Define.
10466 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
10467
10468 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
10469 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
10470 pw->pw_gecos.
10471
10472 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
10473 SELECTED_FRAME as additional (1st) argument.
10474 (tty_read_avail_input): Handle output_msdos_raw in
10475 addition to output_termcap.
10476
10477 * msdos.c: Include frame.h before termhooks.h.
10478 (mouse_on, mouse_off, mouse_moveto, mouse_init)
10479 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
10480 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
10481 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
10482 (IT_set_terminal_modes, IT_reset_terminal_modes)
10483 (IT_set_frame_parameters): Use tty->termscript instead of a global
10484 variable termscript.
10485 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
10486 global variable terminal_coding. Don't refer to
10487 Vnonascii_translation_table.
10488 (internal_terminal_init): Set Vwindow_system in current_kboard.
10489 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
10490 Announce date and time of session start, if termscript is open.
10491 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
10492 term.c:init_tty). Open termscript only of not already open.
10493 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
10494 here instead of dos_ttraw. Don't initialize display if this is an
10495 initial tty. Don't set FRAME_FONT.
10496 (Vwindow_system_version): Bump to 23.
10497 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
10498 is available, set up mouse_position_hook.
10499 (dos_ttraw, IT_set_terminal_modes): If called with initial
10500 terminal, do nothing.
10501 (IT_set_frame_parameters): Handle the Qtty_type frame
10502 parameter by calling internal_terminal_init.
10503 (dos_set_window_size, show_mouse_face)
10504 (clear_mouse_face, IT_note_mode_line_highlight)
10505 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
10506 (dos_rawgetc): Use tty_display_info instead of x_display_info.
10507 (initialize_msdos_display): New function.
10508 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
10509 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
10510 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
10511 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 10512 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
10513 (request_sigio, unrequest_sigio): Don't define, now defined on
10514 sysdep.c.
10515 (IT_write_glyphs): Rewrite to use encode_terminal_code.
10516
10517 * term.c [MSDOS]: Include msdos.h.
10518 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
10519 conditional to DOS_NT. Allow only one call to this function in a
10520 session. Don't allocate a new struct tty_display_info; instead,
10521 reuse the_only_display_info. Call get_tty_size to get screen
10522 dimensions. Call init_baud_rate to set bad_rate.
10523 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
10524 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 10525 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
10526 (get_tty_terminal, get_named_tty, Ftty_type)
10527 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
10528 output_termcap.
b8ff72fa
SM
10529 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
10530 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 10531 only when subprocesses are supported.
aac0c6e3
MR
10532
10533 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
10534 f->output_data.x.
10535 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
10536 terminal devices.
10537
5582fbc7 10538 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
10539 x_output.
10540 (FRAME_FONT): Use output_data.tty.
10541 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
10542 (struct x_display_info): Rename from display_info. Update all users in
10543 msdos.c.
aac0c6e3 10544 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 10545 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
10546 (dos_ttraw): Update prototype.
10547
10548 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
10549 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
10550
105512008-08-23 Jason Rumney <jasonr@gnu.org>
10552
10553 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
10554 (fn_TIFFSetDirectory): New library function used.
10555 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
10556 (tiff_load): Use :index to select among multiple images. Set count
10557 property when multiple images exist.
10558 (gif_format): Use :index, not :image.
10559
105602008-08-23 Chong Yidong <cyd@stupidchicken.com>
10561
10562 * xdisp.c (try_scrolling): Check INT_MAX instead of
10563 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
10564 to obtain INT_MAX.
10565
105662008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
10567
10568 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
10569
105702008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
10571
10572 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
10573 GNUstep library location.
10574
105752008-08-21 Chong Yidong <cyd@stupidchicken.com>
10576
10577 * xfaces.c (x_update_menu_appearance): Check validity of menu font
10578 before using it.
10579
10580 * puresize.h (BASE_PURESIZE): Increase to 1250000.
10581
105822008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10583
10584 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
10585 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
10586 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
10587 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
10588 (EmacsApp-cursor_blink_handler): Remove declaration.
10589 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
10590 match 01 Feb 2008 changes in xterm.c.
10591 (ns_read_socket): Add cast to avoid warning.
10592 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
10593 GNUstep.
10594
105952008-08-20 Chong Yidong <cyd@stupidchicken.com>
10596
10597 * xselect.c (x_get_foreign_selection): Return nil if desired
10598 selection could not be obtained, instead of signalling an error.
10599
106002008-08-20 David Reitter <david.reitter@gmail.com>
10601
10602 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
10603 * nsterm.m: Remove ns-specific code for cursor blinking.
10604 (ns_draw_window_cursor): Clear cursor properly rather than
10605 redrawing the area. Respect width of bar cursors.
10606 These changes enable the use of generic blink-cursor-mode and
10607 generic cursor types in NS and support smooth cursor movements (do
10608 not blink off after command).
10609 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
10610 Nextstep, too.
10611
106122008-08-19 Kenichi Handa <handa@m17n.org>
10613
10614 * font.c (Vfont_log_deferred): New variable.
10615 (font_add_log): Check Vfont_log_deferred.
10616 (font_deferred_log): New function.
10617
10618 * font.h (font_deferred_log): Extern it.
10619
10620 * fontset.c (reorder_font_vector): Use encoding charset of fonts
10621 for sorting.
10622 (face_for_char): Use deferred log.
10623
106242008-08-18 Kenichi Handa <handa@m17n.org>
10625
10626 * fontset.c (face_for_char): Add font log.
10627
10628 * font.c (font_add_log): Add the font properties :script, :lang,
10629 and :otf in the log.
10630
106312008-08-17 Chong Yidong <cyd@stupidchicken.com>
10632
10633 * xdisp.c: Remove dead code.
10634 (handle_invisible_prop, next_overlay_string): Defer call to
10635 setup_for_ellipsis.
10636 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
10637
106382008-08-15 Chong Yidong <cyd@stupidchicken.com>
10639
10640 * xfaces.c (lookup_derived_face): Properly handle possible zero
10641 return value of get_lface_attributes.
10642 (merge_faces): Don't tell lookup_derived_face to signal an error
10643 if face is not found.
10644
10645 * dired.c (Fdirectory_files): Doc fix.
10646
10647 * process.c (make_process): Initialize kill_without_query struct
10648 member.
10649
106502008-08-15 Eli Zaretskii <eliz@gnu.org>
10651
10652 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
10653 Alternative calculation of totphys for Visual Studio 6.
10654
10655 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
10656
10657 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
10658 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
10659 All users changed.
10660 (stat): Only root directory passed to GetDriveType. Allow RAM
10661 disk as well as local fixed disk when w32-get-true-file-attributes
10662 is set to `local'.
10663 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
10664 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
10665 (w32_cached_id, w32_add_to_cache): New functions.
10666 (get_name_and_id): Look account names in the cache before calling
10667 lookup_account_sid.
10668 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
10669 New initialization flags.
10670 (globals_of_w32): Initialize them to zero.
10671 (w32_system_process_attributes): Use w32_cached_id and
10672 w32_add_to_cache.
10673
106742008-08-14 Lawrence Mitchell <wence@gmx.li>
10675
10676 * lread.c (Fread_char, Fread_char_exclusive): If no character
10677 event is read before timeout is reached, return nil, rather than
10678 converting to a number.
10679
106802008-08-14 Chong Yidong <cyd@stupidchicken.com>
10681
10682 * fns.c (use_dialog_box): Doc fix.
10683
10684 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
10685 on OS X.
10686
106872008-08-13 Chong Yidong <cyd@stupidchicken.com>
10688
10689 * frame.c (Qns_parse_geometry): New var.
10690 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
10691
106922008-08-11 Chong Yidong <cyd@stupidchicken.com>
10693
10694 * xdisp.c (x_produce_glyphs): Handle the case when font has no
10695 space character in calculating tabs.
10696
106972008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
10698
10699 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
10700
107012008-08-10 Glenn Morris <rgm@gnu.org>
10702
10703 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
10704 silence gcc "limited range of data type" warnings in some
10705 make_fixnum_or_float calls.
10706
107072008-08-09 Eli Zaretskii <eliz@gnu.org>
10708
10709 * w32.c (w32_system_process_attributes): If the process does not
10710 exist, return nil.
10711
10712 * w32.c: Include thelp32.h, psapi.h and coding.h.
10713 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
10714 declarations.
10715 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
10716 (Process32Next_Proc): New typedefs.
10717 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
10718 (g_b_init_process32_next, g_b_init_open_thread_token)
10719 (g_b_init_impersonate_self, g_b_init_revert_to_self)
10720 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
10721 (g_b_init_get_process_working_set_size)
10722 (g_b_init_global_memory_status_ex): New static variables.
10723 (globals_of_w32): Initialize them.
10724 (create_toolhelp32_snapshot, process32_first, process32_next)
10725 (open_thread_token, impersonate_self, revert_to_self)
10726 (get_process_memory_info, get_process_working_set_size)
10727 (global_memory_status, global_memory_status_ex): New wrapper
10728 functions.
10729 (w32_list_system_processes, w32_system_process_attributes)
10730 (enable_privilege, restore_privilege, ltime, process_times):
10731 New functions.
10732 (convert_time_raw): New function.
10733 (convert_time): Remove conversion of FILETIME into time in 100
10734 nsec units, call convert_time_raw instead.
10735
10736 * process.h (w32_list_system_processes, w32_system_process_attributes):
10737 Add prototypes.
10738 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
10739 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
10740 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
10741 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
10742
10743 * process.c (Fsystem_process_attributes): Doc fix.
10744
107452008-08-08 Chong Yidong <cyd@stupidchicken.com>
10746
10747 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
10748 a continued multi-char glyph; if so, advance to the actual glyph.
10749
107502008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
10751
10752 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
10753
10754 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
10755 (.m.o): Use it.
10756 * config.in: Regenerate.
10757
107582008-08-07 Chong Yidong <cyd@stupidchicken.com>
10759
10760 * xdisp.c (redisplay_window): Revert last change.
10761 (try_window): Check bottom scroll margin too.
10762
107632008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10764
10765 * config.in: Regenerate.
10766
10767 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
10768 -list-load-path-shadows'.
10769 (nsgui.h): Reduce number of things depending on it.
10770
107712008-08-06 Chong Yidong <cyd@stupidchicken.com>
10772
10773 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
10774 instead of window-end which does the wrong thing at eob.
10775 (try_cursor_movement): Minor optimization.
10776 (redisplay_window): If scroll margin is defined, don't assume
10777 window doesn't need scrolling.
10778
107792008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10780
10781 * config.in: Regenerate.
10782
10783 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
10784 (mostlyclean): Don't delete *.d under NS.
10785
10786 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
10787
107882008-08-06 Kenichi Handa <handa@m17n.org>
10789
10790 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
10791
107922008-08-06 Andreas Schwab <schwab@suse.de>
10793
10794 * config.in: Regenerate.
10795
107962008-08-05 Chong Yidong <cyd@stupidchicken.com>
10797
10798 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
10799 forcing a window start.
10800
10801 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
10802 (auto_save_1): Update modtime when auto-save-list-file-name is on.
10803
108042008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10805
10806 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
10807 argument.
10808
108092008-08-05 Juanma Barranquero <lekktu@gmail.com>
10810
10811 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
10812 <scroll-down-aggressively, before-change-functions>:
10813 <after-change-functions>: Reflow docstrings.
10814
108152008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 10816 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
10817
10818 Dock menu customization, based on a patch by Ken Raeburn, plus some
10819 other fixes.
10820 * nsmenu.m (dockMenu): New variable.
10821 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
10822
10823 * nsterm.h (dockMenu): Declare.
10824
10825 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
10826 (ns_term_init): Initialize dockMenu.
10827 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
10828 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
10829 left.
10830
10831 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
10832
108332008-08-04 Chong Yidong <cyd@stupidchicken.com>
10834
10835 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
10836
10837 * config.in: Regenerate.
10838
108392008-08-04 Seiji Zenitani <zenitani@mac.com>
10840
10841 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
10842
108432008-08-04 Chong Yidong <cyd@stupidchicken.com>
10844
10845 * nsterm.h (find_and_call_menu_selection): Fix prototype.
10846
108472008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10848
10849 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
10850
10851 * keyboard.h: Comment an #endif.
10852
10853 * lisp.h (have_menus_p): Adjust comment.
10854
10855 * menu.c (find_and_return_menu_selection): Fix comparison with
10856 client_data.
10857
10858 * nsmenu.m (popup_activated_flag): New variable.
10859 (popup_activated): New function.
10860 (menu-or-popup-active-p): New exported lisp definition.
10861 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
10862 when popup done.
10863 (ns_popup_dialog): Set popup_activated_flag.
10864
10865 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
10866 version for GNUstep (handled by conditional typedef in nsterm.m).
10867 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
10868 in rgb.txt).
10869
10870 * process.c (init_process): Use DARWIN_OS, not DARWIN.
10871
10872 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
10873
10874 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
10875
10876 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
10877 shortcircuit if popup_activated like GTK and X toolkit.
10878
10879 * m/inter386.h: Change DARWIN to DARWIN_OS.
10880
10881 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
10882 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
10883 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
10884 comment on NO_SOCK_SIGIO.
10885
108862008-08-03 Chong Yidong <cyd@stupidchicken.com>
10887
10888 * nsterm.m (windowDidResize): Remove stopModal call.
10889
108902008-08-03 Andreas Schwab <schwab@suse.de>
10891
10892 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
10893 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
10894
108952008-08-02 Chong Yidong <cyd@stupidchicken.com>
10896
10897 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
10898 Don't use uninitialized pointer variable when using getrlimit.
10899
109002008-08-02 Jason Rumney <jasonr@gnu.org>
10901
10902 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
10903
109042008-08-02 Eli Zaretskii <eliz@gnu.org>
10905
10906 * alloc.c (NSTATICS): Bump to 0x640.
10907
10908 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
10909
10910 * lisp.h: Add prototype for directory_files_internal.
10911
10912 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
10913 New functions.
10914 (syms_of_process): Defsubr them. Add initializations for various
10915 Q* symbols used in procfs_system_process_attributes.
10916 (procfs_list_system_processes, procfs_system_process_attributes)
10917 [HAVE_PROCFS]: New functions.
10918 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
10919 (procfs_get_total_memory): New functions.
10920
109212008-08-01 Juanma Barranquero <lekktu@gmail.com>
10922
10923 * xfaces.c (Fx_load_color_file): Fix previous change;
10924 it is #ifdef WINDOWSNT, not WINDOWS_NT.
10925
109262008-08-01 Michael Albinus <michael.albinus@gmx.de>
10927
10928 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
10929
109302008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10931
10932 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
10933
109342008-08-01 Chong Yidong <cyd@stupidchicken.com>
10935
10936 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
10937
10938 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
10939 define NSApplicationDelegateReplySuccess.
10940 (EmacsView -converstationIdentifier): Use long instead of
10941 NSInteger for GNUstep, since it doesn't have NSInteger.
10942
10943 * xmenu.c: Revert last change.
10944
10945 * keyboard.h: Fix last change.
10946
109472008-08-01 Juanma Barranquero <lekktu@gmail.com>
10948
10949 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
10950 on Windows.
10951
109522008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10953
10954 Warning clearing and clean-up in NS port.
10955 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
10956 Add prototypes.
10957 * nsgui.h (FACE_DEFAULT): Remove, unused.
10958 (XGCValues): Change colors to unsigned long.
10959 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
10960 nsterm.m.
10961 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
10962 (ns_list_fonts): Remove, unused.
10963 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
10964 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
10965 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
10966 (nsfont_draw): Compare face colors to 0, not nil.
10967 * nsmenu.m (struct widget_value): Drop unneeded declaration.
10968 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
10969 (-addSubmenuWithTitle:): Use NSMenuItem class.
10970 (ns_popup_menu): Use NO, not NULL, for enabled setting.
10971 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
10972 (ns_clip_to_row): Make gc arg a BOOL.
10973 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
10974 ns_clip_to_row() call.
10975 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
10976 used). Cast FRAME_FONT assignments.
10977 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
10978 (ns_string_to_lispmod): Change arg to const char.
10979 (ns_term_init): Use NSMenuItem class.
10980 (EmacsApp -openFile:): Move to different section of file.
10981 (EmacsApp -application:openFiles:): Don't return a value, call
10982 -replyToOpenOrPrint:.
10983 (EmacsView -keyDown:): Fix up cast.
10984 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
10985 (EmacsView -menuDown:): Cast tag in call to
10986 find_and_call_menu_selection().
10987 (ns_list_fonts): Remove, unused.
10988 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
10989 (ns_fontname_to_xlfd): Make static.
10990 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
10991 Remove prototypes (now in keyboard.h).
10992 (next_menubar_widget_id): Remove, unused.
10993 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
10994 Remove prototypes (now in keyboard.h).
10995 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
10996
109972008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
10998
10999 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
11000 (floatfns.o): Depend on syssignal.h.
11001 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
11002
11003 * systty.h: Fix previous change that removed BSD_TERMIOS.
11004 Add comments to #ifdefs.
11005
110062008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11007
11008 * w32fns.c (w32-load-color-file): Remove.
11009 (x-open-connection): Use renamed Fx_load_color_file.
11010 * xfaces.c (x-load-color-file): Add.
11011 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
11012 Emacs.clr.
11013 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
11014
110152008-07-31 Michael Albinus <michael.albinus@gmx.de>
11016
11017 * dbusbind.c (Fdbus_call_method_asynchronously)
11018 (Fdbus_method_error_internal): New defuns.
11019 (xd_read_message): Handle also reply messages.
11020 (Vdbus_registered_functions_table): Extend docstring.
11021
110222008-07-31 Juanma Barranquero <lekktu@gmail.com>
11023
11024 * keyboard.c (gobble_input): Fix previous change.
11025
110262008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11027
11028 * bitmaps/README:
11029 * xfns.c:
11030 * termcap.c:
11031 * term.c:
11032 * syswait.h:
11033 * systty.h:
11034 * systime.h:
11035 * syssignal.h:
11036 * sysdep.c:
11037 * process.h:
11038 * process.c:
11039 * print.c:
11040 * ndir.h:
11041 * lread.c:
11042 * keyboard.c:
11043 * getpagesize.h:
11044 * floatfns.c:
11045 * fileio.c:
11046 * emacs.c:
11047 * doc.c:
11048 * dispnew.c:
11049 * dired.c:
11050 * data.c:
11051 * callproc.c:
11052 * buffer.c:
11053 * README:
11054 * Makefile.in:
11055 * s/template.h:
11056 * s/msdos.h:
11057 * m/vax.h: Remove VMS support.
11058 * s/vms.h:
11059 * vlimit.h:
11060 * uaf.h:
11061 * temacs.opt:
11062 * param.h:
11063 * ioctl.h: Remove file.
11064
110652008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11066
11067 * s/ms-w32.h (MULTI_KBOARD): Remove.
11068 * xterm.c:
11069 * xselect.c:
11070 * xfns.c:
11071 * window.c:
11072 * w32term.c:
11073 * w32fns.c:
11074 * terminal.c:
11075 * termhooks.h:
11076 * term.c:
11077 * sysdep.c:
11078 * keyboard.h:
11079 * keyboard.c:
11080 * frame.h:
11081 * frame.c:
11082 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
11083 * config.in: Regenerate.
11084
110852008-07-30 Jason Rumney <jasonr@gnu.org>
11086
11087 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
11088
11089 * w32font.c (w32font_encode_char): Leave as unicode if in range.
11090 (w32font_open_internal): Get unicode version of textmetrics.
11091 Don't enable or disable glyph indices here.
11092 (w32font_open): Disable use of glyph indices.
11093
11094 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
11095
110962008-07-30 Chong Yidong <cyd@stupidchicken.com>
11097
11098 * minibuf.c (Vread_buffer_function): Doc fix.
11099
111002008-07-30 John Paul Wallington <jpw@pobox.com>
11101
11102 * minibuf.c (read_buffer_completion_ignore_case): New var.
11103 (Fread_buffer): Use it.
11104
111052008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
11106
11107 * systty.h (sensemode): Remove empty #if. Remove reference to
11108 BSD_TERMIOS, unused.
11109
11110 * sysdep.c: Remove reference to DGUX.
11111 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
11112
11113 * config.in: Regenerate.
11114
111152008-07-30 Jason Rumney <jasonr@gnu.org>
11116
11117 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
11118
111192008-07-29 Jason Rumney <jasonr@gnu.org>
11120
11121 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
11122 is populated.
11123 (uniscribe_encode_char): Always use uniscribe.
11124 Avoid using context if cache is populated.
11125
111262008-07-29 Jan Djärv <jan.h.d@swipnet.se>
11127
11128 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
11129 open menu.
11130
11131 * gtkutil.c (menu_nav_ended): Remove.
11132 (create_menus): Remove signal connect for menu_nav_ended.
11133
111342008-07-28 Chong Yidong <cyd@stupidchicken.com>
11135
11136 * xdisp.c (redisplay_window): Check return value of
11137 compute_window_start_on_continuation_line before forcing a window
11138 start.
11139
111402008-07-28 Jason Rumney <jasonr@gnu.org>
11141
11142 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
11143
11144 * w32term.c (w32_enable_unicode_output, cleartype_active):
11145 Remove obsolete display options.
11146 (x_draw_glyph_string_background): Don't use old cleartype_active
11147 workaround.
11148 (w32_initialize): Remove cleartype_active initialization.
11149 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
11150
111512008-07-28 Andreas Schwab <schwab@suse.de>
11152
11153 * lisp.h (init_weak_hash_tables, syms_of_font)
11154 (xd_read_queued_messages, syms_of_dbusbind): Declare.
11155 (remove_hash_entry): Don't declare.
11156 * eval.c (maybe_call_debugger): Make static and move before use.
11157 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
11158 * xdisp.c: Include "gtkutil.h" if USE_GTK.
11159 * xterm.h (x_set_frame_alpha): Declare.
11160
111612008-07-28 Jan Djärv <jan.h.d@swipnet.se>
11162
11163 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
11164 (create_menus): Connect selection-done to menu_nav_ended.
11165
111662008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11167
11168 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
11169 Set Vx_resource_name to a fallback. Replace read of 'buffered'
11170 parameter with read of 'alpha' one.
11171 (Qns_frame_parameter): Remove.
5582fbc7 11172 * nsselect.m (selection-coding-system)
aac0c6e3
MR
11173 (next-selection-coding-system, Vselection_coding_system)
11174 (Vnext_selection_coding_system): Drop.
11175
111762008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11177
11178 * nsfns.m (do-applescript, do_applescript): Rename to
11179 ns-do-applescript, ns_do_applescript, and move within file.
11180
111812008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11182
11183 Remove support for Mac Carbon.
11184 * mactoolbox.c:
11185 * macterm.h:
11186 * macterm.c:
11187 * macselect.c:
11188 * macmenu.c:
11189 * macgui.h:
11190 * macfns.c:
11191 * mac.c: Remove file.
11192 * s/darwin.h:
11193 * m/intel386.h:
11194 * xfaces.c:
11195 * xdisp.c:
11196 * window.c:
11197 * tparam.c:
11198 * termhooks.h:
11199 * termcap.c:
11200 * term.c:
11201 * syssignal.h:
11202 * sysselect.h:
11203 * sysdep.c:
11204 * process.c:
11205 * lread.c:
11206 * lisp.h:
11207 * keyboard.c:
11208 * image.c:
11209 * fringe.c:
11210 * frame.h:
11211 * frame.c:
11212 * fontset.c:
11213 * font.h:
11214 * font.c:
11215 * fns.c:
11216 * fileio.c:
11217 * emacs.c:
11218 * dispnew.c:
11219 * dispextern.h:
11220 * config.in:
11221 * atimer.c:
2ae37cf0 11222 * Makefile.in: Remove code for Carbon.
aac0c6e3 11223
f0131492 112242008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11225
11226 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
11227
112282008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11229
11230 * macterm.h (kCGBitmapByteOrder32Host): New define for
11231 non-universal SDKs.
11232
11233 * image.c (mac_create_cg_image_from_image, image_load_image_io)
11234 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11235
11236 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
11237 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11238
112392008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
11240
11241 * w32inevt.c: Include dispextern.h.
11242
112432008-07-26 Andreas Schwab <schwab@suse.de>
11244
11245 * print.c (print_object): Fix off-by-one in last change.
11246
112472008-07-25 Juanma Barranquero <lekktu@gmail.com>
11248
11249 * term.c (syms_of_term): Don't initialize default_orig_pair,
11250 default_set_foreground and default_set_background on Windows.
11251
112522008-07-25 Jason Rumney <jasonr@gnu.org>
11253
11254 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
11255 ScriptItemize. Clean up return value checking. Remove unused
11256 variables.
11257 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
11258 shaping engine.
11259
11260 * w32font.c (w32font_has_char): Handle the case where we can't
11261 determine the script for a character.
11262
112632008-07-25 Chong Yidong <cyd@stupidchicken.com>
11264
11265 * term.c (syms_of_term): Initialize default_orig_pair,
11266 default_set_foreground, and default_set_background.
11267
11268 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11269 clash (bug#86).
11270 (getloadavg): Callers changed.
11271
11272 * image.c (svg_load_image): Fix last change.
11273 (svg_load_image): Use rsvg_handle_get_dimensions to check that
11274 image size is valid. Use g_object_unref instead of deprecated
11275 rsvg_handle_free to free rsvg handle.
11276 (x_from_xcolors): Don't initialize pixmap (silence compiler).
11277
112782008-07-25 Jason Rumney <jasonr@gnu.org>
11279
11280 * w32font.c (w32font_encode_char): Encode characters outside BMP as
11281 surrogates before looking up glyph index.
11282 (w32font_text_extents): Encode as surrogates if falling back to
11283 functions that need UTF-16 wide chars.
11284
11285 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
11286 BMP as surrogates before looking up glyph index.
11287
112882008-07-25 Chong Yidong <cyd@stupidchicken.com>
11289
11290 * image.c (svg_load_image): Check for failure in return value of
11291 rsvg_handle_get_pixbuf. Free rsvg handle when done.
11292
112932008-07-25 Jason Rumney <jasonr@gnu.org>
11294
11295 * w32font.c (Fx_select_font): Reverse sense of second arg.
11296
112972008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
11298
11299 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
11300 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
11301
11302 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
11303 (PURESIZE): Use it.
11304
113052008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
11306
11307 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
11308 * m/alpha.h (TEXT_END):
11309 * m/ibmrs6000.h (TEXT_END):
11310 * m/macppc.h (TEXT_END):
11311 * s/darwin.h (TEXT_END):
11312 * s/msdos.h (TEXT_END): Remove, unused.
11313 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
11314 * s/cygwin.h: Remove comment.
11315
11316 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
11317 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
11318 * m/intel386.h (DOT_GLOBAL_START):
11319 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
11320 (USG): Remove, file not used on USG platforms.
11321
11322 * Makefile.in (HAVE_X11): Remove empty #else.
11323
113242008-07-24 Andreas Schwab <schwab@suse.de>
11325
11326 * fileio.c (Finsert_file_contents): Properly adjust undo list
11327 after format conversion.
11328
113292008-07-24 Jan Djärv <jan.h.d@swipnet.se>
11330
11331 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
11332 (menu_nav_ended): Remove.
11333 (create_menus): Remove signal connect for menu_nav_ended.
11334 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
11335 create_menus.
11336 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
11337
113382008-07-23 Jason Rumney <jasonr@gnu.org>
11339
11340 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
11341 with opened font.
11342 (w32font_open): Set font type to gdi.
11343
11344 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
11345
113462008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
11347
11348 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
11349 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
11350 defines it.
11351 * unexec.c (ADDR_CORRECT): Define unconditionally.
11352
11353 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
11354
11355 * unexec.c: Remove code depending on !COFF and USG, the file is
11356 not used for such systems.
11357
11358 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
11359 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
11360 (LD_SWITCH_SYSTEM_1): Remove, update users.
11361
11362 * s/darwin.h (DATA_END):
11363 * m/intel386.h (DATA_END):
11364 * m/ibmrs6000.h (DATA_END):
11365 * m/alpha.h (DATA_END): Remove, unused.
11366
11367 * config.in: Regenerate.
11368 * s/ms-w32.h (subprocesses): Define unconditionally.
11369 * s/template.h (subprocesses): Update comment.
11370 * s/vms.h (subprocesses):
11371 * s/usg5-4.h (subprocesses):
11372 * s/hpux10-20.h (subprocesses):
11373 * s/gnu-linux.h (subprocesses):
11374 * s/cygwin.h (subprocesses):
11375 * s/bsd-common.h (subprocesses):
11376 * s/aix4-2.h (subprocesses):
11377 * s/darwin.h (subprocesses): Do not define, defined by default now.
11378
11379 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
11380 Remove all references.
11381 (temacs): Add GNUstep specific ld flags.
11382
11383 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
11384 similarly to what X does.
11385
113862008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11387
11388 * nsfns.m (x-list-fonts): Remove.
11389 (syms_of_nsfns): Drop the x-list-fonts declaration.
11390 * nsterm.m: Get rid of remaining "//" comments.
11391
113922008-07-22 Chong Yidong <cyd@stupidchicken.com>
11393
11394 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
11395
11396 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
11397 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
11398 (Fns_own_selection_internal, Fx_disown_selection_internal)
11399 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
11400
11401 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
11402 ... */' style of docstrings. Doc fixes.
11403
114042008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11405
11406 * terminfo.c (UP, BC, PC): Undo previous change.
11407
11408 * nsfns.m: Rename ns prefixed functions/variables to the
11409 corresponding x versions. Update references.
11410
114112008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
11412
11413 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
11414
114152008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11416
11417 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
11418 Remove forwarding functions.
11419 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
11420 non-static.
11421 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
11422 non-static.
11423 (ns_frame_parm_handlers): Use the new names.
11424 (syms_of_nsfns): Move to the end of file.
11425
11426 * nsterm.m (syms_of_nsterm): Move to the end of file.
11427
11428 * dispnew.c (init_display): Remove code for X10.
11429
114302008-07-22 Jason Rumney <jasonr@gnu.org>
11431
11432 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
11433 bare drive.
11434
114352008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11436
11437 * nsterm.m (syms_of_nsterm): Remove debugging println.
11438
114392008-07-22 David Reitter <david.reitter@gmail.com>
11440
11441 * nsfns.m (do_applescript, F_do_applescript): NS version of the
11442 Carbon implementation of the same functionality: execute arbitrary
11443 AppleScript code.
11444
114452008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11446
11447 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
11448 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
11449 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
11450 (Fx_display_mm_height, Fx_display_mm_width)
11451 (Fx_display_backing_store, Fx_display_visual_class)
11452 (Fx_display_save_under, Fx_open_connection)
11453 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
11454 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
11455 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11456 (Fx_display_pixel_width, Fx_display_pixel_height)
11457 (Fx_display_usable_bounds, Fx_display_planes)
11458 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
11459 ... */' style of docstrings.
11460
114612008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
11462
11463 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
11464 on this platform.
11465 (mips):
11466 * m/iris4d.h (mips): Do not define.
11467 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
11468
11469 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
11470
11471 * image.c:
11472 * nsfns.m:
11473 * nsselect.m:
11474 * nsterm.h:
11475 * nsterm.m: Rename ns prefixed functions/variables to the
11476 corresponding x versions. Update references.
11477
11478 * m/ibms390x.h (NO_REMAP): Do not undefine.
11479
11480 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
11481
114822008-07-21 Chong Yidong <cyd@stupidchicken.com>
11483
11484 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
11485 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
11486 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
11487 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
11488 (Fns_display_mm_height, Fns_display_mm_width)
11489 (Fns_display_backing_store, Fns_display_visual_class)
11490 (Fns_display_save_under, Fns_open_connection)
11491 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
11492 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
11493 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11494 (Fns_display_pixel_width, Fns_display_pixel_height)
11495 (Fns_display_usable_bounds, Fx_display_planes)
11496 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
11497
114982008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
11499
11500 * print.c (print_object): Check print_depth before searching for
11501 circularities.
11502
115032008-07-21 Michael Albinus <michael.albinus@gmx.de>
11504
11505 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
11506 only sprintf.
11507
115082008-07-21 Kenichi Handa <handa@m17n.org>
11509
11510 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
11511
115122008-07-20 Andreas Schwab <schwab@suse.de>
11513
11514 * syntax.c (find_start_pos, find_start_value)
11515 (find_start_value_byte, find_start_begv, find_defun_start)
11516 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
11517
115182008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11519
11520 * s/sol2-3.h: Insert contents of s/sol2.h.
11521 (LD_SWITCH_SYSTEM): Remove redundant definition.
11522 * s/sol2.h: Remove, unused.
11523
115242008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11525
11526 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
11527
115282008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11529
11530 * Makefile.in (ns_appdir): Fix typo in find command.
11531
115322008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
11533
11534 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
11535
11536 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
11537 added not supported anymore.
11538
11539 * s/usg5-4-2.h (LIBS_SYSTEM):
11540 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
11541
11542 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11543 * s/lynxos.h (GETPGRP_NO_ARG):
11544 * s/hpux10-20.h (NO_SIOCTL_H):
11545 * s/gnu.h (GETPGRP_NO_ARG):
11546 * s/gnu-linux.h (NO_SIOCTL_H):
11547 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
11548 * s/cygwin.h (GETPGRP_NO_ARG):
11549 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
11550 (C_DEBUG_SWITCH): Remove duplicate definition.
11551
11552 * m/ibms390.h: Remove boilerplate comments.
11553
11554 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
11555
11556 * process.c (HAVE_SERIAL): Consolidate ifdefs.
11557 (wait_reading_process_output): Remove code for SunOS, platform not
11558 supported anymore. Use SOLARIS2 instead of sun.
11559
115602008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11561
11562 * font.c (font_open_by_name): Under NS, default lface height to zero.
11563 (font_open_for_lface): Under NS, set size based on frame fontsize.
11564 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
11565 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
11566
115672008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11568
11569 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
11570 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
11571 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
11572 YES/NO.
11573 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
11574 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
11575 * Makefile.in (clean): Clear out build destination dir.
11576
115772008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11578
11579 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
11580 xterm, xselect.
11581 * lisp.h: Remove declaration of hash_remove.
11582 * nsgui.h: Remove redefinitions of hash_remove.
11583 * fns.c (hash_remove): Rename to hash_remove_from_table.
11584
115852008-07-19 Seiji Zenitani <zenitani@mac.com>
11586
11587 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
11588 strdup() the family UTF8String before modifying it.
11589
115902008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
11591
11592 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
11593 NS_FACE_BACKGROUND with 0 instead of nil.
11594 * nsfont.m (nsfont_draw): Same.
11595
115962008-07-19 Chong Yidong <cyd@stupidchicken.com>
11597
11598 * nsfns.m (ns_set_background_color): Fix crash.
11599
116002008-07-18 Chong Yidong <cyd@stupidchicken.com>
11601
11602 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
11603
116042008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
11605
11606 * puresize.h (BASE_PURESIZE): Increase to 1240000.
11607
116082008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11609
11610 * gtkutil.c: Include <config.h> instead of "config.h".
11611
11612 * lisp.h (Foverlay_buffer): Add EXFUN.
11613
11614 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
11615 child process to complete child_setup. Undo 2005-09-21 change.
11616
11617 * s/darwin.h: Mention setsid after vfork.
11618
116192008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11620
11621 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
11622 Depend on macgui.h.
11623
11624 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
11625 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
11626
11627 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
11628 and f19.
11629 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
11630
11631 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
11632 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
11633 Remove enumerators.
11634
11635 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
11636 Check if FACE_FROM_ID returns NULL.
11637
116382008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
11639
11640 * w32inevt.c (change_frame_size): Remove extern declaration.
11641 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
11642 change_frame_size.
11643
116442008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11645
11646 * getloadavg.c: Revert last change (2008-07-15).
11647
116482008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11649
11650 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 11651 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
11652 from configure.
11653
116542008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
11655
11656 * s/sol2.h:
11657 * s/sol2-4.h: Reorganize conditionals.
11658
11659 * ecrt0.c: Remove code depending on m68000, not used anymore.
11660
11661 * fns.c (hash_remove): Make static.
11662 * lisp.h (hash_remove): Don't prototype.
11663
11664 * m/ibmrs6000.h:
11665 * m/ibms390x.h:
11666 * m/macppc.h: Remove boilerplate comments.
11667
11668 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
11669 Solaris, which does not need them.
11670
11671 * m/vax.h: Remove comments about unsupported systems.
11672
11673 * s/darwin.h: Reorganize ifdefs.
11674
116752008-07-17 Andreas Schwab <schwab@suse.de>
11676
11677 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
11678
116792008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
11680
11681 Use SDATA. Follow coding convention of placing operators at
11682 beginning of next line rather than end of previous line, and placing
11683 spaces around infix operators.
11684
11685 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
11686 in case it was defined already.
11687 USE @GNUSTEP_MAKEFILES@ rather than envvars.
11688 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
11689 ns_default.
11690 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
11691 Lisp_Objects.
11692 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
11693 (ns_defined_color, ns_color_to_lisp): Declare.
11694 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
11695 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
11696 it's accepted even with USE_LISP_UNION_TYPE.
11697 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
11698 (update_frame_tool_bar): Remove apparently obsolete tests for
11699 non-integerness of f->tool_bar_lines.
11700 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
11701 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
11702 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
11703 (nsfont_open): Don't confuse NULL for Qnil.
11704 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
11705 * menu.h (find_and_call_menu_selection):
11706 * menu.c (find_and_call_menu_selection): Use just int for vector size.
11707 (find_and_return_menu_selection): Always return something.
11708 * frame.h: Include dispextern.h for Display_Info.
11709 (display_x_get_resource): Declare.
11710
117112008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
11712
11713 * syntax.c: Remove stdio.h include accidentally introduced in
11714 Emacs.app commit.
11715 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
11716 NS_IMPL_COCOA.
11717 * keyboard.c (handle_async_input, input_available_signal): Remove
11718 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
11719
117202008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11721
11722 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
11723 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
11724 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
11725 Use SDATA.
11726
11727 * keymap.c: Remove all NS-specific code.
11728 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
11729 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
11730 where_is_preferred_modifier, return a different value depending on how
11731 preferred is the binding.
11732 (where_is_internal): Adjust accordingly.
11733 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
11734 Adjust to new preferred_sequence_p.
11735 (syms_of_keymap): Declare `where-is-preferred-modifier'.
11736 * keyboard.c (parse_solitary_modifier): Not static any more.
11737 * keyboard.h (parse_solitary_modifier): Declare.
11738
117392008-07-16 Andreas Schwab <schwab@suse.de>
11740
11741 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
11742 of easymenu.
11743
117442008-07-16 Chong Yidong <cyd@stupidchicken.com>
11745
11746 * xdisp.c (move_it_in_display_line): Account for word wrap, so
11747 that we don't move off the line.
11748
117492008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11750
11751 * keyboard.c (Qsuper): Remove.
11752 (parse_menu_item): Don't call where_is_internal specially for NS.
11753
117542008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11755
11756 * s/gnu-linux.h: Remove boilerplate comments.
11757
11758 * m/alpha.h (__ELF__): Consolidate conditions.
11759
11760 * m/m68k.h (linux): Use GNU_LINUX instead.
11761 Remove boilerplate comments.
11762
11763 * m/intel386.h: Undo refactoring from previous change.
11764 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
11765 too, remove dead code.
11766 (linux): Use GNU_LINUX instead.
11767
117682008-07-16 Jason Rumney <jasonr@gnu.org>
11769
11770 * w32gui.h: Repeat 26 June changes lost by last change.
11771
117722008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11773
11774 * systty.h: Remove code for Aix on 386, unsupported platform.
11775
11776 * s/ms-w32.h: Remove boilerplate comments.
11777 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
11778
11779 * s/gnu-linux.h (TERM): Remove support.
11780 (HAVE_SYSVIPC): Remove, unused.
11781 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
11782 for this system.
11783
11784 * process.c: Remove support for IRIS, unused.
11785 Remove support for TERM, not relevant anymore.
11786
11787 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
11788 used with the definition.
11789
11790 * s/aix4-2.h (static): Do not undef.
11791
11792 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
11793 only used on Aix.
11794 (HAVE_SYSVIPC): Remove, unused.
11795
11796 * m/hp800.h (CANNOT_DUMP): Do not undef.
11797
11798 * m/alpha.h: Fix comment.
11799
11800 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
11801 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
11802 used by this configuration.
11803 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
11804 * unexec.c: Remove code depending on HPUX and
11805 USG_SHARED_LIBRARIES, not used with this file. Remove code
11806 depending on IRIS, unused. Remove if 0-ed code.
11807
11808 * s/template.h: Remove comments about static.
11809
11810 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
11811 Remove if 0-ed code.
11812 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
11813 were the same as the default.
11814 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
11815 Remove boilerplate comments.
11816 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
11817 (HAVE_SYSVIPC): Remove, unused.
11818 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
11819
11820 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11821 Remove boilerplate comments.
11822 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11823 Remove boilerplate comments.
11824 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11825 Remove boilerplate comments.
11826 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
11827
11828 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
11829 USG systems which do not use DATA_SEG_BITS.
11830 Refactor code. Remove boilerplate comments.
11831
11832 * m/ibms390.h:
11833 * m/m68k.h:
11834 * s/bsd-common.h:
11835 * s/cygwin.h:
11836 * s/darwin.h:
11837 * s/freebsd.h:
11838 * s/gnu.h:
11839 * s/msdos.h: Remove boilerplate comments.
11840
11841 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 11842 do not use this file.
aac0c6e3
MR
11843 (IRIS_4D): Remove, unused.
11844
11845 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 11846 do not use this file.
aac0c6e3
MR
11847 (SIGN_EXTEND_CHAR):
11848 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
11849 * unexmips.c: Remove file, unused.
11850
11851 * editfns.c (Fuser_full_name): Replace the only use of
11852 USER_FULL_NAME with its value.
11853 * config.in: Regenerate.
11854
118552008-07-16 David Reitter <david.reitter@gmail.com>
11856
11857 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
11858 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
11859
118602008-07-16 Glenn Morris <rgm@gnu.org>
11861
11862 * emacs.c (system-type): Doc fix.
11863
118642008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
11865
11866 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
11867 If the cache doesn't work, let's fix it, rather than work around it.
11868
118692008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11870
11871 * Makefile.in: Correct additions for nsfont.o in last commit.
11872 * nsfont.m: New file (forgot last commit).
11873
118742008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
11875
11876 * callproc.c (set_initial_environment): Initialize
11877 Vprocess_environment under CANNOT_DUMP (fixes crash when
11878 batch-compiling for bootstrap).
11879
118802008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 11881 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11882
11883 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
11884 fix crash due to different init order.
11885
118862008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11887
11888 Changes and additions for NeXTstep windowing system (Cocoa and
11889 GNUstep) support.
11890
11891 * Makefile.in:
11892 * config.in: Support defines and build commands for NS port.
11893 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
11894 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
11895 * dispextern.h: Include nsgui.h and add needed typedefs under NS
11896 windowing.
11897 (struct face): Add synth_ital field.
11898 * dispnew.c: Include nsterm.h when compiling under NS windowing.
11899 (init_display): Initialize Vinitial_window_system to "ns" when so
11900 compiled.
11901 * emacs.c: Include GSConfig.h when compiling under GNUstep.
11902 (display_arg): Use under NS.
11903 (main): Under NS, allocate autorelease pool and handle command line
11904 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
11905 (standard_args): Add NS-specific args.
11906 (shut_down_emacs): Shut down NS terminal if compiled under NS.
11907 * font.c (DEFAULT_ENCODING): New variable.
11908 (font_find_for_lface): Use it.
11909 (syms_of_font): Load syms_of_nsfont under NS.
11910 * font.h: Declare nsfont_driver when compiled under NS.
11911 * fontset.c: When compiling under NS, include nsterm.h.
11912 (fontset_from_font): Autoconstruct fontset under NS.
11913 * frame.c (various): Under NS, include nsterm.h, add Qns window system
11914 symbol, document and use it.
11915 (do_switch_frame): When for_deletion under Cocoa, add
11916 Fraise_frame(Qnil).
11917 (x_set_frame_parameters): Ensure font attribute changes are picked up.
11918 (x_get_arg): Allow "yes" and "no" as boolean values.
11919 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
11920 Qright under Cocoa.
11921 (focus-follows-mouse): Default to 0 under NS.
11922 * frame.h (enum output_method): Add output_ns.
11923 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
11924 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
11925 (FRAME_WINDOW_P): NS-specific definition.
11926 * fringe.c (max_used_fringe_bitmap): Make public.
11927 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
11928 (getloadavg): Use NeXT code under descendant OS's.
11929 * image.c (includes and header section, x_create_bitmap_from_data)
11930 (x_create_bitmap_from_file, free_bitmap_record, image_background)
11931 (image_background_transparent, x_clear_image_1)
11932 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
11933 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
11934 (x_to_xcolors, x_from_xcolors, x_disable_image)
11935 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
11936 other GUIs, including XPM support using code originally written for
11937 Carbon GUI.
11938 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
11939 using NS API.
11940 (image_ascent): Use font metrics macros instead of direct struct field
11941 access.
11942 * keyboard.c (includes): Add nsterm.h when compiling under NS.
11943 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
11944 Also, handle NS as GTK for menu bar purposes.
11945 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
11946 toolkit where they differ.
11947 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
11948 use cachelist, still needed under NS.
11949 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
11950 (struct widget_value): Define it here for menu.c.
11951 * keymap.c (includes): Include modifier internals.
11952 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
11953 NS.
11954 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
11955 support for preferring sequences using certain modifiers, specified by
11956 the FIRSTONLY argument.
11957 * lisp.h (hash_remove): Rename to avoid name clash when compiling
11958 under NS GNUstep implementation.
11959 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
11960 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
11961 * menu.c: Include nsterm.h under NS.
11962 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
11963 (free_menubar_widget_tree_value, update_submenu_strings)
11964 (find_and_call_menu_selection): Treat NS as X and NT.
11965 (find_and_return_menu_selection): New function, used for popup menus.
11966 * nsgui.h:
11967 * nsterm.h:
11968 * nsfns.m:
11969 * nsimage.m:
11970 * nsmenu.m:
11971 * nsselect.m:
11972 * nsterm.m: New files.
11973 * process.c (wait_reading_process_output): Under NS, call ns_select()
11974 instead of plain select().
11975 * syntax.c (char_quoted): Under NS, avoid a crash when called near
11976 beginning of buffer.
11977 * sysselect.h (init_process): Rename when compiling under Cocoa to
11978 avoid name conflict.
11979 * termhooks.h (display_info): Add ns_display_info to union.
11980 * terminal.c (Fterminal_live_p): Add ns to terminal types.
11981 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
11982 COCOA environment.
11983 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
11984 unexec() signature. (Note, this will dump, but the resulting file
11985 crashes; unexosx is used instead; keeping around for reference and
11986 possible aid in getting dump working under GNUstep.)
11987 * w32gui.h (button_type, widget_value): Remove definitions (now in
11988 keyboard.h).
11989 * window.c: Include nsterm.h when compiling under NS.
11990 * xdisp.c (includes): Include nsterm.h when compiling under NS.
11991 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
11992 other GUI windowing systems.
11993 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
11994 GTK.
11995 (x_consider_frame_title): Under NS, set icon type and frame
11996 modified-state indicator; use ns_set_name_as_filename() when using
11997 formatted title.
11998 (update_window_cursor): Make public when compiling under NS.
11999 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
12000 (hourglass_atimer, Vhourglass_delay
12001 * xfaces.c (header section, init_frame_faces, clear_font_table)
12002 (defined_color, unload_color, x_face_list_fonts)
12003 (prepare_face_for_display): Add NS support parallel to other GUIs.
12004 Emulate GCs like other non-X GUIs.
12005 (split_font_name): Don't lowercase font name under NS.
12006 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
12007 under NS.
12008 * s/darwin.h: Add support for compilation under NS.
12009
120102008-07-15 Jason Rumney <jasonr@gnu.org>
12011
12012 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
12013 (w32_show_hourglass): Rename from show_hourglass.
12014 (w32_hide_hourglass): Rename from hide_hourglass.
12015 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
12016 (Vhourglass_delay): Declare extern.
12017 (hourglass_started): Remove.
12018
12019 * xdisp.c (Vhourglass_delay): Remove static.
12020 (hourglass_started, start_hourglass, cancel_hourglass):
12021 Don't include these versions on WINDOWSNT.
12022
120232008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12024
12025 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
12026 variables (formerly in xfns.c).
12027 (show_hourglass, hide_hourglass): New prototypes (same).
12028 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
12029 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
12030 in xfns.c).
12031 (syms_of_xdisp): Declare/initialize display-hourglass,
12032 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
12033 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
12034 formerly in xfns.c.
12035 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12036 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12037 (start_hourglass, cancel_hourglass): Remove.
12038 (show_hourglass, hide_hourglass): Remove prototypes and static
12039 modifiers.
12040 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
12041 hourglass_atimer, hourglass_shown_p declaration/initialization.
12042 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12043 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12044 (start_hourglass, cancel_hourglass): Remove.
12045 (show_hourglass, hide_hourglass): Remove prototypes and static
12046 modifiers.
12047 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
12048 hourglass_atimer, hourglass_shown_p declaration/initialization.
12049 * w32fns.c (display_hourglass_p, Vhourglass_delay)
12050 (DEFAULT_HOURGLASS_DELAY): Remove.
12051 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
12052 hourglass_shown_p declaration/initialization.
12053
120542008-07-14 Jason Rumney <jasonr@gnu.org>
12055
12056 * w32fns.c (w32_get_arg): Remove wrapper function.
12057 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
12058 directly.
12059 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
12060
120612008-07-14 Kenichi Handa <handa@m17n.org>
12062
12063 * xfont.c (xfont_open): Add workaround for X's bug.
12064
120652008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12066
12067 * fontset.c: Include <stdio.h> unconditionally.
12068
120692008-07-13 Michael Albinus <michael.albinus@gmx.de>
12070
12071 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
12072 for filtering.
12073
120742008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
12075
12076 * s/vms.h: Use __GNUC__ instead of _GNUC_.
12077
12078 * m/macppc.h:
12079 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
12080
12081 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
12082 (SPECIAL_EMACS_INT):
12083 * m/ia64.h (SPECIAL_EMACS_INT):
12084 * m/amdx86-64.h (SPECIAL_EMACS_INT):
12085 * s/gnu.h (NLIST_STRUCT):
12086 * s/aix4-2.h (X11R5_INHIBIT_I18N):
12087 * s/gnu-linux.h (LINUX):
12088 * s/msdos.h (HAVE_FACES):
12089 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
12090
12091 * systty.h:
12092 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
12093 anymore.
12094
120952008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
12096
12097 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
12098 always defined as int.
12099
12100 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
12101 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
12102 * s/gnu-linux.h (HAVE_WAIT_HEADER):
12103 * s/freebsd.h (HAVE_WAIT_HEADER):
12104 * s/bsd-common.h (HAVE_UNION_WAIT):
12105 * s/aix4-2.h (HAVE_WAIT_HEADER):
12106 * m/mips.h (HAVE_UNION_WAIT):
12107 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
12108 (COFF, static): Do not define, they are undefined later in the file.
12109
12110 * process.c (update_status): Don't use a union.
12111 (status_convert):
12112 (sigchld_handler): Use int instead of WAITTYPE.
12113
121142008-07-12 Chong Yidong <cyd@stupidchicken.com>
12115
12116 * indent.c (Fvertical_motion): Restore hscroll before moving to
12117 goal column.
12118
121192008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12120
12121 * lisp.h: Remove left over code.
12122
121232008-07-11 Andreas Schwab <schwab@suse.de>
12124
12125 * lisp.h: Fix logic in last change.
12126
12127 * menu.h: New file.
12128 * menu.c: Include it.
12129 * xmenu.c: Likewise.
12130 * Makefile.in: Update dependencies.
12131
121322008-07-11 Kenichi Handa <handa@m17n.org>
12133
12134 * fontset.c (fontset_from_font): Cancel the previous change.
12135
121362008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12137
12138 * lisp.h:
12139 * w32heap.c:
12140 * emacs.c:
12141 * alloc.c: Replace all references of NO_UNION_TYPE with
12142 USE_LISP_UNION_TYPE.
12143
12144 * m/xtensa.h (NO_UNION_TYPE):
12145 * m/vax.h (NO_UNION_TYPE):
12146 * m/template.h (NO_UNION_TYPE):
12147 * m/sparc.h (NO_UNION_TYPE):
12148 * m/mips.h (NO_UNION_TYPE):
12149 * m/macppc.h (NO_UNION_TYPE):
12150 * m/m68k.h (NO_UNION_TYPE):
12151 * m/iris4d.h (NO_UNION_TYPE):
12152 * m/intel386.h (NO_UNION_TYPE):
12153 * m/ibms390x.h (NO_UNION_TYPE):
12154 * m/ibms390.h (NO_UNION_TYPE):
12155 * m/ibmrs6000.h (NO_UNION_TYPE):
12156 * m/ia64.h (NO_UNION_TYPE):
12157 * m/hp800.h (NO_UNION_TYPE):
12158 * m/arm.h (NO_UNION_TYPE):
12159 * m/amdx86-64.h (NO_UNION_TYPE):
12160 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
12161 defining it the same.
12162
121632008-07-10 Chong Yidong <cyd@stupidchicken.com>
12164
12165 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
12166
121672008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12168
12169 * fileio.c:
50426a04 12170 * sysdep.c:
aac0c6e3
MR
12171 * systty.h:
12172 * m/ibmrs6000.h:
12173 * m/iris4d.h:
12174 * s/aix4-2.h:
12175 * s/freebsd.h:
12176 * s/gnu-linux.h:
12177 * s/hpux10-20.h:
12178 * s/hpux11.h:
12179 * s/netbsd.h:
12180 * s/sol2-3.h:
12181 * s/sol2-4.h:
12182 * s/sol2.h:
12183 * s/usg5-4.h:
12184 * s/vms.h: Remove references to unused variables.
12185
121862008-07-10 Andreas Schwab <schwab@suse.de>
12187
12188 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
12189 pattern before matching the generic family.
12190
121912008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12192
12193 * unexec.c:
12194 * s/vms.h:
12195 * s/usg5-4-2.h:
12196 * s/sol2-5.h:
12197 * s/freebsd.h:
12198 * s/darwin.h: Remove dead code.
12199
12200 * m/template.h:
12201 * m/sparc.h:
12202 * m/mips.h:
12203 * m/m68k.h:
12204 * m/iris4d.h:
12205 * m/intel386.h:
12206 * m/ibms390x.h:
12207 * m/ibms390.h:
12208 * m/ia64.h:
12209 * m/hp800.h:
12210 * m/arm.h:
12211 * m/amdx86-64.h: Remove dead code and references to unused
12212 and compiler defined symbols.
12213
12214 * unexmips.c:
12215 * unexelf.c: Remove references to desupported systems.
12216
12217 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
12218
12219 * m/powermac.h: Remove boilerplate comments.
12220 (NO_REMAP): Remove unused definition.
12221
12222 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
12223 define them.
12224
122252008-07-10 Kenichi Handa <handa@m17n.org>
12226
12227 * xfont.c (xfont_open): Log the reason of failure.
12228
122292008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
12230
12231 * fontset.c (fontset_get_font_group):
12232 * font.c (font_check_otf): Specify argument types.
12233
122342008-07-09 Kenichi Handa <handa@m17n.org>
12235
12236 * coding.c (detect_coding_utf_8): Set detect_info->found only when
12237 non-ASCII char is found.
12238
12239 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
12240 (reorder_font_vector): Change the arg preferred_family to font.
12241 Prefer the spec matching with font.
12242 (fontset_get_font_group): New function.
12243 (fontset_find_font): Change the format of an element of a realized
12244 fontset. Use fontset_get_font_group.
12245 (fontset_font): Try the current fontset, the default fontset, the
12246 fallbacks of the current fontset, and the fallbacks of the default
12247 fontset in this order.
12248 (face_for_char): Delete the shortcut to use the current font.
12249 (fontset_from_font): Don't set fonts for Latin in the fontset.
12250
12251 * font.h (font_make_object, font_match_p): Adjust prototypes.
12252
12253 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
12254
12255 * font.c (font_make_object): New arg entity and pixelsize.
12256 (font_check_otf_features, font_check_otf): New functions.
12257 (font_match_p): Check :lang, :script, and :otf properties.
12258
12259 * xfont.c (xfont_open): Adjust it for the change of
12260 font_make_object.
12261 (xfont_text_extents): Fix initial setting of metrics.
12262
12263 * ftfont.c (struct ftfont_info): New member index, delete member
12264 fc_charset_idx. Make the member order compatible with struct
12265 xftfont_info.
12266 (fc_charset_table): Change charset names to registry names.
12267 (ftfont_pattern_entity): Delete the args registry and
12268 fc_charset_idx. Change the value of :font-entity property
12269 to (FONTNAME . INDEX). Always set :registry property to
12270 `iso10646-1'.
12271 (struct ftfont_cache_data): New struct.
12272 (ftfont_lookup_cache): New arg for_face.
12273 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
12274 (ftfont_driver): Set the member otf_capability.
12275 (ftfont_get_charset): Adjust it for the change of
12276 fc_charset_table.
12277 (OTF_TAG_SYM): New macro.
12278 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
12279 for the change of fc_charset_table.
12280 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
12281 ftfont_pattern_entity. Add FC_INDEX to objset.
12282 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
12283 and ftfont_pattern_entity.
12284 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
12285 font_make_object, struct ftfont_info.
12286 (ftfont_has_char): Use ftfont_get_fc_charset.
12287 (ftfont_otf_features, ftfont_otf_capability): New functions.
12288 (ftfont_shape): Use ftfont_get_otf.
12289 (ftfont_text_extents): Fix initial setting of metrics.
12290
12291 * xftfont.c (struct xftfont_info): New member ft_size. Make the
12292 member order compatible with struct ftfont_info.
12293 (xftfont_open): Add FC_CHARSET to the pattern. Set
12294 xftfont_info->ft_size. Don't unlock the face. Check BDF
12295 properties if appropriate.
12296 (xftfont_close): Unlock the face.
12297 (xftfont_anchor_point, xftfont_shape): Deleted.
12298 (syms_of_xftfont): Don't set members anchor_point and shape of
12299 xftfont_driver.
12300
12301 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
12302 font_make_object.
12303
12304 * w32font.c (w32font_open): Adjust it for the change of
12305 font_make_object.
12306 (w32font_open_internal): Don't set properties of font_object here.
12307
123082008-07-08 Chong Yidong <cyd@stupidchicken.com>
12309
12310 * macfns.c (x_create_tip_frame):
12311 * w32fns.c (x_create_tip_frame):
12312 * xfns.c (x_create_tip_frame): Pass parameter argument to
12313 face-set-after-frame-default.
12314
12315 * xfaces.c (Finternal_merge_in_global_face): Save merged
12316 attributes for the default face back into the face vector.
12317
123182008-07-08 Andreas Schwab <schwab@suse.de>
12319
12320 * fontset.h: Declare fontset_from_font. Don't declare
12321 new_fontset_from_font and fontset_from_font_name.
12322 * xterm.c: Include "fontset.h".
12323 * Makefile.in (xterm.o): Update dependencies.
12324
123252008-07-08 Glenn Morris <rgm@gnu.org>
12326
12327 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
12328 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
12329
123302008-07-07 Chong Yidong <cyd@stupidchicken.com>
12331
12332 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
12333 (x_set_frame_parameters): Don't bind it.
12334
123352008-07-07 Juanma Barranquero <lekktu@gmail.com>
12336
12337 * w32fns.c (map_w32_filename): Declare extern.
12338
123392008-07-07 Jason Rumney <jasonr@gnu.org>
12340
12341 * w32term.c (WS_EX_LAYERED): Define if not already.
12342
123432008-07-06 Chong Yidong <cyd@stupidchicken.com>
12344
12345 * xfaces.c (set_font_frame_param): Don't try to set the font
12346 parameter if it is still unspecified in the lface.
12347
123482008-07-05 Chong Yidong <cyd@stupidchicken.com>
12349
12350 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
12351 face if it didn't already exist.
12352
12353 * xdisp.c (try_window_id): Give up if word-wrapping is on.
12354
123552008-07-05 Andreas Schwab <schwab@suse.de>
12356
12357 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
12358
123592008-07-05 Chong Yidong <cyd@stupidchicken.com>
12360
12361 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
12362 word-wrapping.
12363 (IT_DISPLAYING_WHITESPACE): New macro.
12364 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
12365 when word-wrapping. Simplify word-wrapping logic. Use correct
12366 pixel positions when saving copies of the iterator.
12367 (display_line): Use proper wrap point if the last character on a
12368 line was preceded by whitespace.
12369
123702008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
12371
12372 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
12373
123742008-07-04 Kenichi Handa <handa@m17n.org>
12375
12376 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
12377
12378 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
12379
123802008-07-02 Jason Rumney <jasonr@gnu.org>
12381
12382 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 12383 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
12384
12385 * xdisp.c (next_element_from_display_vector): Move assignment out
12386 of if statement.
12387
123882008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
12389
12390 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
12391
12392 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
12393 (syms_of_fileio): Initialize and export them.
12394 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
12395
12396 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
12397 (Fsystem_move_file_to_trash): New function.
12398 (syms_of_w32fns): Export it to lisp.
12399
124002008-07-01 Jason Rumney <jasonr@gnu.org>
12401
12402 * w32font.c (w32font_text_extents): Don't count overhang as part
12403 of width.
12404
124052008-06-30 Miles Bader <miles@gnu.org>
12406
12407 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
12408 Add `avoid_cursor_p' field.
12409
12410 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
12411 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
12412 (append_glyph, append_composite_glyph, produce_image_glyph)
12413 (append_stretch_glyph): Initialize avoid_cursor_p.
12414 (get_it_property): Rename from `get_line_height_property'.
12415 (x_produce_glyphs): Use get_it_property.
12416 (handle_line_prefix, push_display_prop): New functions.
12417 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
12418 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
12419 New variables.
12420 (syms_of_xdisp): Initialize them.
12421
124222008-06-30 Kenichi Handa <handa@m17n.org>
12423
12424 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
12425 XftDefaultSubstitute (they are called in XftFontMatch).
12426 (xftfont_open): Fix args to ftfont_font_format.
12427
12428 * ftfont.c (fc_charset_table): New member lang.
12429 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 12430 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
12431 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
12432 (ftfont_open): Fix args to ftfont_font_format.
12433 (ftfont_font_format): New arg filename.
12434
124352008-06-30 Chong Yidong <cyd@stupidchicken.com>
12436
12437 * xfaces.c (Finternal_merge_in_global_face): If default face was
12438 modified, realize it again. Update the font face attribute.
12439
124402008-06-29 Jason Rumney <jasonr@gnu.org>
12441
12442 * w32term.c (x_set_frame_alpha): Fix logic.
12443
124442008-06-29 Kenichi Handa <handa@m17n.org>
12445
12446 * fontset.c (Finternal_char_font): Return font-object instead of
12447 font-name.
12448
12449 * composite.c (get_composition_id): Fix the width calculation for TAB.
12450
124512008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
12452
12453 * indent.c (Fvertical_motion): Properly handle float column arg.
12454
124552008-06-28 Jason Rumney <jasonr@gnu.org>
12456
12457 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
12458 (pfnSetLayeredWindowAttributes): New function pointer.
12459 (w32_initialize): Initialize it when supported.
12460 (x_set_frame_alpha): New function.
12461
12462 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
12463 (w32_frame_parm_handlers): Set alpha handler.
12464
12465 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
12466
124672008-06-27 Jason Rumney <jasonr@gnu.org>
12468
12469 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
12470 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
12471 (w32_to_x_charset, x_to_w32_charset)
12472 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12473 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12474 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12475 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12476 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12477 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12478 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
12479 (Qw32_charset_unicode): Remove.
12480 (syms_of_w32fns): Update for above changes.
12481
12482 * w32font.c (w32_to_x_charset, x_to_w32_charset)
12483 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12484 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12485 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12486 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12487 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12488 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12489 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
12490 (syms_of_w32font): Update for above changes.
12491
124922008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
12493
12494 * s/usg5-4.h: Fix previous change: keep the correct branch of a
12495 removed #if.
12496 (USG_SHARED_LIBRARIES): Remove duplicate definition.
12497
124982008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 12499 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
12500
12501 * makefile.w32-in (LOCAL_FLAGS):
12502 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
12503
12504 * sysdep.c (_spawnlp, _getpid):
12505 Declare with explicit _cdecl instead of _CRTAPI1.
12506
12507 * editfns.c (Fget_internal_run_time):
12508 Check for WINDOWSNT with #ifdef, not #if.
12509
125102008-06-26 Jason Rumney <jasonr@gnu.org>
12511
12512 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
12513
12514 * w32term.c (x_draw_glyph_string_foreground)
12515 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
12516 Use FONT_HANDLE macro.
12517 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
12518
12519 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12520 (uniscribe_encode_char): Use FONT_HANDLE macro.
12521
12522 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
12523 (w32font_text_extents): Use precast w32_font.
12524 (w32font_close): Free cached metrics.
12525 (w32font_open_internal): Allocate space for name on stack.
12526
125272008-06-26 Chong Yidong <cyd@stupidchicken.com>
12528
12529 * xdisp.c (extend_face_to_end_of_line): Fix last change.
12530
125312008-06-26 Jason Rumney <jasonr@gnu.org>
12532
12533 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
12534 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
12535
125362008-06-26 Juanma Barranquero <lekktu@gmail.com>
12537
12538 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
12539
125402008-06-26 Jason Rumney <jasonr@gnu.org>
12541
12542 * w32bdf.c, w32bdf.h: Remove obsolete files.
12543
12544 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
12545
12546 * w32gui.h: Don't include w32bdf.h.
12547 (XCharStruct, enum w32_char_font_type, W32FontStruct):
12548 Remove obsolete font support.
12549
12550 * w32font.h (struct w32font_info): Remove compat_w32_font.
12551 Add hfont member.
12552 (FONT_COMPAT): Remove obsolete macro.
12553
12554 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
12555 (w32font_encode_char, w32font_text_extents): Use new hfont member.
12556 (w32font_open_internal): Remove compat code. Set new hfont member.
12557 (Fx_select_font): Use new hfont member.
12558
12559 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
12560 (uniscribe_encode_char): Use new hfont member.
12561
12562 * w32term.c (x_draw_glyph_string_foreground)
12563 (x_draw_composite_glyph_string_foreground): Use new hfont member.
12564 (x_draw_glyph_string): Use metrics in w32font_info.
12565
125662008-06-26 Kenichi Handa <handa@m17n.org>
12567
12568 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
12569
125702008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
12571
12572 * unexnext.c:
12573 * m/ews4800.h:
12574 * m/hp9000s300.h:
12575 * m/ibm370aix.h:
12576 * m/mips-siemens.h:
12577 * m/ncr386.h:
12578 * m/next.h:
12579 * m/pmax.h:
12580 * m/powerpcle.h:
12581 * m/tandem-s2.h:
12582 * s/386bsd.h:
12583 * s/bsd386.h:
12584 * s/bsd4-1.h:
12585 * s/bsd4-2.h:
12586 * s/bsdos2-1.h:
12587 * s/bsdos2.h:
12588 * s/bsdos3.h:
12589 * s/bsdos4.h:
12590 * s/nextstep.h:
12591 * s/ultrix4-3.h:
12592 * s/usg5-0.h:
12593 * s/usg5-2-2.h:
12594 * s/usg5-2.h:
12595 * s/usg5-4-3.h:
12596 * s/ux4800.h:
12597 * s/uxpds.h:
12598 * s/uxpv.h: Remove support for obsolete systems.
12599 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 12600 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
12601 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
12602 Remove, insert contents in s/aix4-2.h.
12603 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
12604 * s/bsd4-3.h: Rename to ...
12605 * s/bsd-common.h: ... this.
12606 * data.c:
12607 * doc.c:
12608 * ecrt0.c:
12609 * emacs.c:
12610 * fileio.c:
12611 * floatfns.c:
12612 * keyboard.c:
12613 * mem-limits.h:
12614 * print.c:
12615 * process.c:
12616 * sysdep.c:
12617 * syssignal.h:
12618 * systty.h:
12619 * syswait.h:
12620 * term.c:
12621 * unexec.c:
12622 * unexelf.c:
12623 * unexhp9k800.c:
12624 * m/hp800.h:
12625 * m/ibmrs6000.h:
12626 * m/mips.h:
12627 * m/vax.h:
12628 * s/darwin.h:
12629 * s/freebsd.h:
12630 * s/gnu.h:
12631 * s/ms-w32.h:
12632 * s/msdos.h:
12633 * s/netbsd.h:
12634 * s/template.h: Remove references to obsolete variables.
12635
12636 * Makefile.in: Add dependencies for all unexec files.
12637 (admindir): Remove unused variable.
12638 (UNEXEC_SRC): Remove references.
12639
126402008-06-25 Chong Yidong <cyd@stupidchicken.com>
12641
12642 * xfns.c (x_default_font_parameter): If Xft is available, first
12643 try Monospace-12 for the default font.
12644
126452008-06-25 Jason Rumney <jasonr@gnu.org>
12646
12647 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
12648
126492008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
12650
12651 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
12652
12653 * buffer.c (syms_of_buffer): Remove default-word-wrap.
12654
126552008-06-25 Juanma Barranquero <lekktu@gmail.com>
12656
12657 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
12658 <scroll-conservatively>: Fix typo in docstring.
12659
12660 * xselect.c (Fx_send_client_event): Doc fix.
12661
126622008-06-25 Kenichi Handa <handa@m17n.org>
12663
12664 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
12665
12666 * font.c (font_parse_fcname): Remove unused variables.
12667 (font_sort_entites): Delete the arg SPEC. Caller changed.
12668 Fix for the case of ! best_only.
12669 (font_delete_unmatched): Check DPI and AVGWIDTH too.
12670
12671 * lisp.h (Fstring_to_unibyte): EXFUN it.
12672
12673 * character.h (str_to_unibyte): Extern it.
12674
12675 * character.c (str_to_unibyte): New function.
12676
12677 * fns.c (Fstring_to_unibyte): New function.
12678 (syms_of_fns): Defsubr it.
12679
126802008-06-24 Kenichi Handa <handa@m17n.org>
12681
12682 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
12683 DPI too.
12684 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
12685
126862008-06-24 Andreas Schwab <schwab@suse.de>
12687
12688 * Makefile.in (${lispsource}loaddefs.el): Rename from
12689 ../lisp/loaddefs.el.
12690 (bootstrap-clean): Do what distclean does but don't remove
12691 Makefile.
12692 (distclean): Depend on bootstrap-clean and remove Makefile.
12693
126942008-06-24 Chong Yidong <cyd@stupidchicken.com>
12695
12696 * buffer.h (struct buffer): New member word_wrap.
12697
12698 * buffer.c (syms_of_buffer): New variables default-word-wrap and
12699 word-wrap.
12700 (init_buffer_once): Initialize them.
12701
12702 * dispextern.h (struct it): Replace bool truncate_lines_p with a
12703 line_wrap enum possessing three possible values.
12704
12705 * termopts.h: Replace truncate_partial_width_windows with
12706 Vtruncate_partial_width_windows.
12707
12708 * dispnew.c (direct_output_for_insert): Avoid direct output when
12709 inserting a space with word wrap on.
12710
12711 * indent.c (compute_motion): Obey integer values of
12712 truncate-partial-width-windows.
12713
12714 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
12715 replacing truncate_partial_width_windows.
12716 (init_iterator): If Vtruncate_partial_width_windows is an integer,
12717 truncate only if the window width is below that integer.
12718 (start_display, resize_mini_window, produce_stretch_glyph)
12719 (display_string, move_it_in_display_line_to): Use line_wrap.
12720 (back_to_previous_visible_line_start, reseat_1): Reset
12721 string_from_display_prop_p.
12722 (display_line): Extend default face to end of line when wrapping.
12723
127242008-06-24 Kim F. Storm <storm@cua.dk>
12725
12726 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
12727 to wrap continued lines at word boundaries.
12728
127292008-06-24 Jason Rumney <jasonr@gnu.org>
12730
12731 * font.c (Ffont_face_attributes): Multiply pixel size before point
12732 conversion to avoid multiplying rounding error.
12733
127342008-06-23 Jason Rumney <jasonr@gnu.org>
12735
12736 * w32term.c (x_draw_glyph_string_background)
12737 (x_draw_glyph_string): Remove old bdf font code.
12738
12739 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
12740
127412008-06-22 Kenichi Handa <handa@m17n.org>
12742
12743 * font.c (font_find_for_lface): Try the adstyle specified in
12744 the property of LFACE_FONT of LFACE (if any).
12745
127462008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 12747 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12748
12749 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
12750
127512008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
12752
12753 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
12754 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
12755 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
12756 (witness-emacs): Remove.
12757 (lisp, shortlisp): Move loaddefs.el earlier.
12758 (mostlyclean): Forget about witness-emacs.
12759
127602008-06-22 Glenn Morris <rgm@gnu.org>
12761
12762 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
12763 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
12764
127652008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12766
12767 * Makefile.in (PRECOMP): Remove.
12768 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
12769 (witness-emacs): Run `compile-first'.
12770 (.el.elc): Use the new compile-onefile target.
12771
127722008-06-21 Kenichi Handa <handa@m17n.org>
12773
12774 * xftfont.c (xftfont_open): Handle QCembolden only when
12775 FC_EMBOLDEN is defined.
12776
127772008-06-21 Andreas Schwab <schwab@suse.de>
12778
12779 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
12780 (.el.elc): Likewise.
12781
127822008-06-21 Miles Bader <miles@gnu.org>
12783
12784 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
12785 build dir, not the lisp source dir.
12786
127872008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12788
12789 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
12790 (bootstrapclean): Remove.
12791 (.el.elc): New rule.
12792 (PRECOMP): New var.
12793 (../lisp/subdirs.el): Remove.
12794 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
12795 (witness-emacs): New target.
12796 (mostlyclean): Remove witness-emacs as well.
12797 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
12798 Add witness-emacs dependency.
12799
128002008-06-20 Chong Yidong <cyd@stupidchicken.com>
12801
12802 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
12803 defined by the font.
12804
128052008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12806
12807 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
12808 (bootstrap-clean): New target that keeps TAGS around.
12809 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
12810 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
12811
128122008-06-20 Jason Rumney <jasonr@gnu.org>
12813
12814 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
12815 Remove obsolete font code.
12816
12817 * w32font.c (font_matches_spec): Use csb bitfield from font signature
12818 to determine language support.
12819
128202008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12821
12822 * sysdep.c (cfsetspeed): New fun extracted from the code.
12823 (cfmakeraw): Move before first use.
12824
128252008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
12826
12827 * sysdep.c (cfmakeraw): Provide fallback implementation.
12828 (serial_configure): Provide fallback implementation of cfsetspeed.
12829
128302008-06-20 Kenichi Handa <handa@m17n.org>
12831
12832 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
12833 the pattern.
12834
12835 * fontset.c (fontset_from_font): Copy font_spec before changing
12836 the elements.
12837
12838 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
12839
128402008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12841
12842 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
12843 for explicit `font' parameters.
12844
12845 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
12846
128472008-06-19 Kenichi Handa <handa@m17n.org>
12848
12849 * frame.c: Include <ctype.h>.
12850 (x_set_font_backend): Allow spacing characters in the X resource
12851 for FontBackend.
12852
128532008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
12854
12855 * w32fns.c, xfns.c (Qfont_param): New var.
12856 (syms_of_w32fns): Initialize it.
12857 (x_default_font_parameter): Record explicit `font' into
12858 `font-parameter'.
12859
128602008-06-18 Kenichi Handa <handa@m17n.org>
12861
12862 * font.c (font_parse_xlfd): Fix previous change.
12863 (font_parse_fcname): Don't use :fc-unknown-spec.
12864 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
12865 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
12866 (font_add_log): Prepend the driver name to the resulting fonts.
12867
12868 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
12869 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
12870 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
12871
12872 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
12873 (QCembolden): New variables.
12874 (syms_of_xftfont): DEFSYM them.
12875 (xftfont_open): Call XftFontMatch. Don't trust the result of
12876 XftTextExtents8 if the pixel_size is less than 5.
12877
128782008-06-18 Andreas Schwab <schwab@suse.de>
12879
12880 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
12881 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
12882
128832008-06-18 Jason Rumney <jasonr@gnu.org>
12884
12885 * w32font.c (w32font_list, w32font_match): Add logging.
12886
12887 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
12888
128892008-06-17 Chong Yidong <cyd@stupidchicken.com>
12890
12891 * font.c (font_parse_fcname): Store divider characters for
12892 unknown-spec list. For known key symbols, intern using correct
12893 symbol name.
12894
128952008-06-17 Kenichi Handa <handa@m17n.org>
12896
12897 * xfaces.c (realize_default_face): If the frame is not on window
12898 system, set the fontset of face to nil.
12899
129002008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12901
12902 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
12903
129042008-06-16 Juanma Barranquero <lekktu@gmail.com>
12905
12906 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
12907 (build_font_name_from_vector): Delete externs.
12908
12909 * xfaces.c (struct font_name): Don't declare.
12910
129112008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
12912
12913 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
12914
129152008-06-16 Chong Yidong <cyd@stupidchicken.com>
12916
12917 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
12918
129192008-06-16 Juanma Barranquero <lekktu@gmail.com>
12920
12921 * font.c (Ffont_spec): Fix usage in docstring.
12922 (Ffont_face_attributes): Doc fix.
12923
129242008-06-16 Andreas Schwab <schwab@suse.de>
12925
12926 * font.c (Ffont_face_attributes): Fix definition.
12927
129282008-06-16 Jason Rumney <jasonr@gnu.org>
12929
12930 * font.h (font_style_symbolic_from_value): Remove.
12931
12932 * font.c (font_style_symbolic_from_value): Remove.
12933 (font_style_symbolic): Revert to pre 2008-06-13 version.
12934
12935 * w32font.c (w32_to_fc_weight): New function.
12936 (w32font_full_name, logfont_to_fcname): Use it.
12937
129382008-06-16 Kenichi Handa <handa@m17n.org>
12939
12940 * font.c (font_check_object): Delete it.
12941 (font_clear_cache): Check if a font-object is alive.
12942 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
12943 font-object to nil.
12944 (font_close_object): Don't check FONT_CLOSE_OBJECT.
12945 (font_at): Don't call font_check_object.
12946 (Ffont_get): Return a symbol for :weight, :slant, and :width.
12947
129482008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
12949
12950 * puresize.h (BASE_PURESIZE): Increase to 1230000.
12951
129522008-06-16 Chong Yidong <cyd@stupidchicken.com>
12953
12954 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
12955
129562008-06-15 Chong Yidong <cyd@stupidchicken.com>
12957
12958 * font.c (font_parse_fcname): Only one decimal point.
12959 (font_unparse_fcname): Handle data in family and foundry indices
12960 as symbols, not strings.
12961 (font_unparse_gtkname, Ffont_face_attributes): New functions.
12962
12963 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
12964
12965 * font.h (font_unparse_gtkname): Add prototype.
12966
129672008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12968
12969 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
12970
129712008-06-15 Andreas Schwab <schwab@suse.de>
12972
12973 * font.c (font_update_drivers): Fix crash when no drivers match.
12974
129752008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
12976
12977 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
12978 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
12979
129802008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
12981
12982 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
12983
129842008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
12985
12986 * process.c (Fserial_process_configure, Fprocess_send_eof):
12987 Use EQ to compare Lisp_Objects.
12988
129892008-06-13 Jason Rumney <jasonr@gnu.org>
12990
12991 * w32fns.c (Fw32_select_font): Remove old font API function.
12992
12993 * w32font.c (logfont_to_fcname): New function.
12994 (Fx_select_font): New font dialog function compatible with
12995 GTK/fontconfig version.
12996
12997 * font.c (font_style_symbolic_from_value): New function.
12998 (font_style_symbolic): Use it.
12999
13000 * font.h (font_style_symbolic_from_value): Declare new function.
13001
130022008-06-13 Juanma Barranquero <lekktu@gmail.com>
13003
13004 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
13005 <font-width-table>: Fix typos in docstrings.
13006
130072008-06-13 Daniel Engeler <engeler@gmail.com>
13008
13009 These changes add serial port access.
13010 * process.c: Add HAVE_SERIAL.
13011 (Fdelete_process, Fprocess_status, Fset_process_buffer)
13012 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
13013 (list_processes_1, select_wrapper, Fstop_process)
13014 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
13015 (status_notify): Modify to handle serial processes.
13016 [HAVE_SERIAL] (Fserial_process_configure)
13017 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
13018 New functions.
13019 * process.h (struct Lisp_Process): Add `type'.
13020 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
13021 New functions.
13022 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
13023 serial ports.
b71ac3dd 13024 (serial_open, serial_configure): New functions.
aac0c6e3
MR
13025 * w32.h: Add FILE_SERIAL.
13026 (struct _child_process): Add ovl_read, ovl_write.
13027
130282008-06-13 Kenichi Handa <handa@m17n.org>
13029
13030 * dispextern.h (enum lface_attribute_index): New member
13031 LFACE_FOUNDRY_INDEX.
13032
13033 * font.c (font_score): Delete arg alternate_families. Check only
13034 weight, slant, width, and size. Ignore the difference of alias
13035 style symbols.
13036 (font_sort_entites): Adjust for the above change. Reflect the
13037 order of font-driver to scores.
13038 (font_list_entities): Don't check alternate_familes here.
13039 (font_clear_prop): Handle foundry.
13040 (font_update_lface): Don't parse "foundry-family" form here.
13041 Handle FONT_FOUNDRY_INDEX.
13042 (font_find_for_lface): Likewise. Handle alternate families here.
13043 If registry is nil, try iso8859-1 and ascii-0.
13044 (font_open_for_lface): Pay attention to size in ENTITY.
13045 (font_open_by_name): Simplify by calling font_load_for_lface.
13046 (free_font_driver_list): Delete it.
13047 (font_update_drivers): Preserve the order of backends.
13048 (syms_of_font): Setting of sort_shift_bits adjusted for the change
13049 of font_score and font_sort_entites.
13050 (font_update_sort_order): Likewise.
13051
13052 * xfaces.c (LFACE_FOUNDRY): New macro.
13053 (check_lface_attrs): Check foundry.
13054 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
13055 (merge_face_vectors): Check foundry.
13056 (merge_face_ref): Likewise.
13057 (Finternal_set_lisp_face_attribute): Likewise.
13058 (x_update_menu_appearance): Likewise.
13059 (Finternal_get_lisp_face_attribute): Likewise.
13060 (lface_hash): Likewise.
13061 (lface_same_font_attributes_p): Likewise.
13062 (x_supports_face_attributes_p): Likewise.
13063 (tty_supports_face_attributes_p): Likewise.
13064 (Finternal_set_alternative_font_family_alist): Intern strings.
13065 (Finternal_set_alternative_font_registry_alist): Downcase strings.
13066 (realize_default_face): Set LFACE_FOUNDRY (lface).
13067
13068 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
13069 font-driver at first.
13070
13071 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
13072
130732008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13074
13075 * lread.c (Fload): Use xfree, not free on saved_doc_string.
13076
130772008-06-12 Jim Meyering <meyering@redhat.com>
13078
13079 Make unexec_free handle NULL the same way free does.
13080 * unexmacosx.c (unexec_free): Ignore a NULL argument.
13081
130822008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
13083
13084 * character.h (CHAR_TO_BYTE_SAFE): New macro.
13085 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
13086 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
13087 (WEAK_ALIAS): Simplify.
13088 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
13089 when searching a unibyte buffer.
13090
130912008-06-12 Chong Yidong <cyd@stupidchicken.com>
13092
13093 * xfns.c (Fx_select_font): Rename from x-font-dialog.
13094
130952008-06-12 Juanma Barranquero <lekktu@gmail.com>
13096
13097 * w32font.c: Include ctype.h.
13098
130992008-06-11 Jason Rumney <jasonr@gnu.org>
13100
13101 * w32font.c (w32font_encode_char): Detect missing glyphs that are
13102 misreported as space.
13103 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
13104 as aliases for registry iso10646-1.
13105
131062008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
13107
13108 * buffer.c (clone_per_buffer_values): Skip `name'.
13109
131102008-06-11 Chong Yidong <cyd@stupidchicken.com>
13111
13112 * font.c (font_parse_fcname): Fix last change; accept decimal
13113 points in font size.
13114
131152008-06-10 Jason Rumney <jasonr@gnu.org>
13116
13117 * w32uniscribe.c (add_opentype_font_name_to_list):
13118 Skip non unicode fonts.
13119
131202008-06-10 Chong Yidong <cyd@stupidchicken.com>
13121
13122 * xfns.c (Fx_font_dialog): New function.
13123
13124 * gtkutil.c (xg_dialog_response_cb): Rename from
13125 xg_file_response_callback.
13126 (pop_down_dialog): Rename from pop_down_file_dialog.
13127 (xg_get_file_name): Callers changed.
13128 (xg_get_font_name): New function.
13129
13130 * gtkutil.h (xg_get_font_name): Insert prototype.
13131
131322008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13133
13134 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
13135 x_underline_minimum_display_offset.
13136 (syms_of_xdisp): Declare it here rather than in xterm.c.
13137 * dispextern.h (underline_minimum_offset): Declare it.
13138 * w32term.c (x_draw_glyph_string): Use it.
13139 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
13140 (syms_of_xterm): Don't declare it any more.
13141 (x_draw_glyph_string): Adjust to the new name.
13142
8719abec 131432008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
13144
13145 * xterm.c (x_underline_minimum_display_offset): New var.
13146 (x_draw_glyph_string): Use it.
13147 (syms_of_xterm): Declare it.
13148
131492008-06-10 Chong Yidong <cyd@stupidchicken.com>
13150
13151 * font.c (font_parse_fcname): Accept GTK-style font names too.
13152
131532008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13154
13155 * dired.c (file_name_completion): Don't return t if the match is exact
13156 but with different capitalization.
13157 * minibuf.c (Ftry_completion): Simplify.
13158
13159 * window.c (Vwindow_point_insertion_type): New var.
13160 (set_window_buffer): Use it.
13161 (syms_of_window): Init and export it to Lisp.
13162
131632008-06-10 Kenichi Handa <handa@m17n.org>
13164
13165 * font.h (font_intern_prop): Prototype adjusted.
13166
13167 * font.c (font_intern_prop): New arg force_symbol.
13168 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
13169 Adjust for the change of font_intern_prop.
13170
13171 * ftfont.c (ftfont_pattern_entity):
13172 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
13173 (w32_registry):
13174 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
13175 the change of font_intern_prop.
13176
131772008-06-09 Juanma Barranquero <lekktu@gmail.com>
13178
13179 * w32menu.c (digest_single_submenu): Declare extern.
13180
131812008-06-09 Jason Rumney <jasonr@gnu.org>
13182
13183 * w32term.c (x_make_frame_visible): Use alternate restore flags.
13184
13185 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
13186 (parse_single_submenu): Remove.
13187 (digest_single_submenu): Remove.
13188 (syms_of_w32menu): Don't initialise variables that have moved
13189 to menu.c.
13190 (set_frame_menubar): Sync with version in xmenu.c.
13191 (w32_menu_show): Sync with xmenu_show in xmenu.c.
13192
13193 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
13194 Make static again.
13195
131962008-06-09 Jason Rumney <jasonr@gnu.org>
13197
13198 Changes to w32 files related to the move of common menu code
13199 to menu.c on 2008-06-08 by Chong Yidong.
13200
13201 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
13202 defs to w32gui.h.
13203 (single_keymap_panes, push_menu_item, push_menu_pane):
13204 Make globally visible.
13205
13206 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
13207 (local_free, malloc_widget_value, free_widget_value)
13208 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
13209 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
13210 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
13211 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
13212 (menu_items, menu_items_allocated, menu_items_used)
13213 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
13214 (init_menu_items, finish_menu_items, discard_menu_items)
13215 (grow_menu_items, push_submenu_start, push_submenu_end)
13216 (push_left_right_boundary, push_menu_pane, push_menu_item)
13217 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
13218 (free_menubar_widget_tree_value, parse_single_submenu)
13219 (update_submenu_strings): Remove functions.
13220 (xmalloc_widget_value): Remove and declare extern.
13221
13222 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
13223 (OBJ1): Build it.
13224
13225 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
13226 (local_heap, local_alloc, local_free, malloc_widget_value)
13227 (free_widget_value): Define here.
13228
132292008-06-09 Kenichi Handa <handa@m17n.org>
13230
13231 * font.h (Qascii_0): Extern it.
13232
13233 * font.c (Qascii_0): New variable.
13234 (syms_of_font): DEFSYM it.
13235 (font_open_by_name): If the registry "iso8859-1" fails, try also
13236 "ascii-0".
13237
13238 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
13239
132402008-06-08 Kenichi Handa <handa@m17n.org>
13241
13242 * .gdbinit (xfont): New command.
13243
132442008-06-08 Andreas Schwab <schwab@suse.de>
13245
13246 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
13247 * Makefile.in (menu.o): Update dependencies.
13248
13249 * Makefile.in (obj): Always add menu.o.
13250 * emacs.c (main): Always call syms_of_menu.
13251 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
13252
132532008-06-08 Chong Yidong <cyd@stupidchicken.com>
13254
13255 * Makefile.in: Compile menu.c.
13256
13257 * lisp.h: Declare syms_of_menu.
13258
13259 * emacs.c (main): Call syms_of_menu.
13260
13261 * keyboard.h: Relocate platform-independent menu definitions from
13262 xmenu.c.
13263
13264 * menu.c: New file. Relocate platform-independent menu
13265 definitions from xmenu.c. Suggested by Adrian Robert.
13266
13267 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 13268 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
13269 (menu_items_used, menu_items_n_panes)
13270 (menu_items_submenu_depth): Move to keyboard.h.
13271 (init_menu_items, finish_menu_items, unuse_menu_items)
13272 (discard_menu_items, restore_menu_items, save_menu_items)
13273 (grow_menu_items, push_submenu_start, push_submenu_end)
13274 (push_left_right_boundary, push_menu_pane, push_menu_item)
13275 (keymap_panes, single_keymap_panes, single_menu_item)
13276 (list_of_panes, list_of_items, find_and_call_menu_selection)
13277 (xmalloc_widget_value, free_menubar_widget_value_tree)
13278 (parse_single_submenu, digest_single_submenu)
13279 (update_submenu_strings): Move to menu.c.
13280
132812008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
13282
13283 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
13284
132852008-06-06 Miles Bader <miles@gnu.org>
13286
13287 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
13288 face, not frame default.
13289
132902008-06-05 Martin Rudalics <rudalics@gmx.at>
13291
13292 * window.c (pop_up_windows, pop_up_frames)
13293 (display_buffer_reuse_frames, Vpop_up_frame_function)
13294 (Vdisplay_buffer_function, Veven_window_heights)
13295 (Vspecial_display_buffer_names, Vspecial_display_regexps)
13296 (Vspecial_display_function, Vsame_window_buffer_names)
13297 (Vsame_window_regexps, split_height_threshold)
13298 (Vsplit_window_preferred_function): Move those vars to window.el.
13299 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
13300 (Fdisplay_buffer): Move those functions to window.el.
13301 (syms_of_window): Remove corresponding declarations.
13302 (display_buffer): New function.
13303 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
13304 * dispnew.c (Flast_nonminibuf_frame): New function.
13305 * buffer.c (Fpop_to_buffer): Move to window.el.
13306
133072008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13308
13309 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
13310
133112008-06-05 Kenichi Handa <handa@m17n.org>
13312
13313 * coding.c (detect_coding): Fix previous change.
13314 (detect_coding_system): Likewise.
13315
133162008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13317
13318 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
13319
13320 * keymap.c (Vminibuffer_local_filename_must_match_map):
13321 Rename from Vminibuffer_local_must_match_filename_map.
13322 (syms_of_keymap):
13323 * minibuf.c (Fcompleting_read): Adjust accordingly.
13324 * commands.h: Rename declaration as well.
13325
133262008-06-05 Kenichi Handa <handa@m17n.org>
13327
13328 * font.c (Ffont_spec): Don't use font_parse_family_registry for
13329 family name.
13330 (Ffont_put): Likewise.
13331
13332 * fontset.c (fontset_find_font): Call font_open_for_lface with the
13333 current font-spec.
13334
13335 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
13336 is unspecified.
13337
13338 * xfaces.c (realize_x_face): If the font-related face attributes
13339 are the same as those of default face, realize a new fontset from
13340 default->fontset.
13341 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
13342
133432008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13344
13345 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
13346 (move_it_in_display_line): New wrapper.
13347
13348 * window.c (window_scroll_pixel_based_preserve_x)
13349 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
13350 (window_scroll_pixel_based, window_scroll_line_based):
13351 Use them to preserve column positions.
13352 (syms_of_window): Initialize them.
13353
13354 * indent.c (Fvertical_motion): Extend first arg to allow passing an
13355 (HPOS . VPOS) pair.
13356
13357 * dispextern.h (move_it_in_display_line): Declare.
13358
133592008-06-05 Juanma Barranquero <lekktu@gmail.com>
13360
13361 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
13362 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
13363 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
13364
133652008-06-04 Juanma Barranquero <lekktu@gmail.com>
13366
13367 * window.c (Fset_window_parameter): Doc fix.
13368 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
13369
133702008-06-04 Joakim Verona <joakim@verona.se>
13371
13372 * window.h (struct window): Add new member window_parameters.
13373
13374 * window.c (Fwindow_parameters, Fwindow_parameter)
13375 (Fset_window_parameter): New defuns.
13376 (syms_of_window): Defsubr the new defuns.
13377 (make_window): Initialize window_parameters to nil.
13378
133792008-06-04 John Paul Wallington <jpw@pobox.com>
13380
13381 * eval.c (Fdefmacro): Doc fix.
13382
133832008-06-04 Kenichi Handa <handa@m17n.org>
13384
13385 * coding.c (detect_coding): Fix handling of coding->head_ascii.
13386 Be sure to call setup_coding_system when we find a proper coding system.
13387 (detect_coding_system): Fix handling of coding->head_ascii.
13388
133892008-06-03 Andreas Schwab <schwab@suse.de>
13390
13391 * font.c (font_prop_validate_spacing): Fix last change.
13392
133932008-06-03 Kenichi Handa <handa@m17n.org>
13394
13395 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
13396 (font_parse_fcname): Fix handling of unknown key.
13397
13398 * xfont.c (xfont_list): Try an alias.
13399
13400 * charset.c (char_charset): Return NULL if the arg charset_list is
13401 specified and C doesn't belong to any of them.
13402
134032008-06-02 Chip Coldwell <coldwell@redhat.com>
13404
13405 * font.c (font_pixel_size): Don't take cdr of an integer.
13406
134072008-06-02 Jim Meyering <meyering@redhat.com>
13408
13409 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
13410 * alloc.c (xfree): Return right away for a NULL arg.
13411 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
13412 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
13413 * mac.c (create_apple_event_from_event_ref): Likewise.
13414 (create_apple_event_from_drag_ref, cfstring_create_normalized):
13415 Likewise.
13416 * doprnt.c (doprnt1): Likewise.
13417 * frame.c (frame): Likewise.
13418 * keyboard.c (wipe_kboard): Likewise.
13419 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
13420 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
13421 * term.c (tty_default_color_capabilities, maybe_fatal)
13422 (delete_tty): Likewise.
13423 * w16select.c (string): Likewise.
13424 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
13425 * w32bdf.c (w32_free_bdf_font): Likewise.
13426 * w32fns.c (w32_unload_font): Likewise.
13427 * w32font.c (w32font_close): Likewise.
13428 * window.c (size_window): Likewise.
13429 * xselect.c (receive_incremental_selection): Likewise.
13430 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
13431 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
13432 * w32.c (stat): Likewise.
13433
13434 Remove useless if-before-free tests.
13435 * editfns.c (Fset_time_zone_rule): Likewise.
13436 * lread.c (nosuffix): Likewise.
13437 * ralloc.c (get_bloc): Likewise.
13438 * regex.c (reg_free): Likewise.
13439 * xftfont.c (xftfont_open, xftfont_close): Likewise.
13440 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
13441 * xsmfns.c (smc_save_yourself_CB): Likewise.
13442
134432008-06-02 Kenichi Handa <handa@m17n.org>
13444
13445 * font.c (font_find_for_lface): Handle float font size.
13446 (font_open_for_lface): Likewise.
13447
13448 * xfaces.c (x_supports_face_attributes_p): Check face->font before
13449 comparing the properties.
13450
134512008-06-01 Jason Rumney <jasonr@gnu.org>
13452
13453 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
13454 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
13455 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
13456 Don't add empty script list.
13457 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
13458
134592008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
13460
13461 * Makefile.in (dot, dotdot): Remove, update users.
13462 ".." has been used elsewhere in the file for a long time.
13463 (LIBXT_STATIC): Remove conditional based on unused variable.
13464
134652008-06-01 Miles Bader <miles@gnu.org>
13466
13467 * xfaces.c (Vface_remapping_alist): New variable.
13468 (syms_of_xfaces): Initialize it.
13469 (enum named_merge_point_kind): New type.
13470 (struct named_merge_point): Add `named_merge_point_kind' field.
13471 (push_named_merge_point): Make cycle detection respect different
13472 named-merge-point kinds.
13473 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
13474 Remove face-name alias resolution.
13475 (lface_from_face_name): New definition using
13476 `lface_from_face_name_no_resolve'.
13477 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
13478 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
13479 (get_lface_attributes): New definition that layers face-remapping on
13480 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
13481 (lookup_basic_face): New function.
13482 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
13483 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
13484 `get_lface_attributes'.
13485 (face_at_buffer_position): Use `lookup_basic_face' to lookup
13486 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
13487 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
13488
13489 * xdisp.c (init_iterator): Pass base_face_id through
13490 `lookup_basic_face' when we actually use it as a face-id.
13491 (handle_single_display_prop): Use `lookup_basic_face' to lookup
13492 DEFAULT_FACE_ID.
13493
13494 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
13495 lookup the initial face-id.
13496
13497 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
13498
134992008-06-01 Juanma Barranquero <lekktu@gmail.com>
13500
13501 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
13502 (Fremove_text_properties): Fix typos in docstrings.
13503
135042008-05-31 Kenichi Handa <handa@m17n.org>
13505
13506 * font.c (font_list_entities): Fix the car part of data to be
13507 stored in the cache.
13508
13509 * ftfont.c (ftfont_font_format): Don't use strcasestr.
13510
135112008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13512
13513 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
13514 Add a `test' argument so another predicate than `equal' can be used.
13515 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
13516 (map_char_table): Remove unused vars `c' and `i'.
13517 * lisp.h (Foptimize_char_table): Adjust declaration.
13518 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
13519
135202008-05-30 Kenichi Handa <handa@m17n.org>
13521
13522 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
13523 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
13524 defined.
13525
135262008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
13527
13528 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
13529 (Fmake_variable_frame_local): Disallow mixing buffer-local and
13530 frame-local settings for the same variable.
13531
135322008-05-30 Kenichi Handa <handa@m17n.org>
13533
13534 * fontset.c (Ffont_info): Move to font.c.
13535 (syms_of_fontset): Delete defsubr of Sfont_info.
13536
13537 * font.c (font_style_to_value, font_score): Delete casting of the
13538 args to xstcasecmp.
13539 (register_font_driver): Increment num_font_drivers only when
13540 registering the driver globally.
13541 (Ffont_info): Move from fontset.c. Handle a font object too.
13542 (syms_of_font): Defsubr Sfont_info.
13543
135442008-05-29 Kenichi Handa <handa@m17n.org>
13545
13546 * coding.h (enum define_coding_utf8_arg_index): New enum.
13547 (enum coding_attr_index): Change coding_attr_utf_16_bom to
13548 coding_attr_utf_bom.
13549 (enum utf_bom_type): Rename from utf_16_bom_type.
13550 (struct utf_16_spec): Adjust for the above change.
13551 (struct coding_system): Add utf_8_bom in `spec' union.
13552
13553 * coding.c (CODING_UTF_8_BOM): New macro.
13554 (enum coding_category): Delete coding_category_utf_8, add
13555 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
13556 coding_category_utf_8_sig.
13557 (CATEGORY_MASK_UTF_8): Delete it.
13558 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
13559 (CATEGORY_MASK_UTF_8_SIG): New macros.
13560 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
13561 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
13562 CATEGORY_MASK_UTF_8_SIG.
13563 (CATEGORY_MASK_UTF_8): New macro.
13564 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
13565 (detect_coding_utf_8): Check BOM.
13566 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
13567 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
13568 (encode_coding_utf_16): Likewise.
13569 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
13570 (detect_coding, detect_coding_system): Handle utf-8-auto.
13571 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
13572 (syms_of_coding): Fix setting up of Vcoding_category_table.
13573
135742008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
13575
13576 * process.c (Faccept_process_output): If `millisec' is non-nil,
13577 `seconds' default to 0.
13578 (wait_reading_process_output): Also return non-nil if we read output
13579 from a non-running process.
13580
135812008-05-29 Jason Rumney <jasonr@gnu.org>
13582
13583 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
13584 `raster' specified.
13585 (add_font_entity_to_list): Allow non-opentype truetype fonts back
13586 in the uniscribe backend, but disallow any font that has no
13587 unicode subrange support.
13588
135892008-05-29 Juanma Barranquero <lekktu@gmail.com>
13590
13591 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
13592 Fix typos in docstrings.
13593
135942008-05-29 Kenichi Handa <handa@m17n.org>
13595
13596 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
13597 (Fx_family_fonts): Set frame correctly.
13598
135992008-05-28 Jason Rumney <jasonr@gnu.org>
13600
13601 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
13602
136032008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
13604
13605 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
13606 calling build_annotations.
13607
136082008-05-28 Juanma Barranquero <lekktu@gmail.com>
13609
13610 * coding.c (Fdecode_coding_region, Fencode_coding_region)
13611 (Fencode_coding_string):
13612 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
13613 <latin-extra-code-table>: Fix typos in docstrings.
13614 (syms_of_coding) <coding-system-alist>: Doc fix.
13615 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
13616
136172008-05-28 Kenichi Handa <handa@m17n.org>
13618
13619 * fontset.c (Ffont_info): Don't call font_close_object.
13620
13621 * font.c (font_parse_family_registry): Use Ffont_put to validate
13622 foundry and family.
13623 (font_delete_unmatched): Don't check spacing.
13624 (font_list_entities): Add spacing to the spec to list fonts.
13625
13626 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
13627 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
13628
13629 * coding.c (encode_coding_raw_text): Fix previous change.
13630 (encode_coding_object): When the dst_object is a buffer and is
13631 different from src_object, move gap to PT.
13632
136332008-05-27 Chong Yidong <cyd@stupidchicken.com>
13634
13635 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
13636
136372008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13638
13639 * coding.c (encode_coding_raw_text): Set coding->produced_char for
13640 all branches. Compute it differently.
13641
13642 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
13643
136442008-05-27 Juanma Barranquero <lekktu@gmail.com>
13645
13646 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
13647 into "else if () ... else ...".
13648
136492008-05-27 Jason Rumney <jasonr@gnu.org>
13650
13651 * w32font.c (w32font_open_internal): Determine if glyph indices
13652 are likely to work here.
13653
136542008-05-27 Chong Yidong <cyd@stupidchicken.com>
13655
13656 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
13657 draw overlap glyphs with appropriate highlighting.
13658
136592008-05-27 Kenichi Handa <handa@m17n.org>
13660
13661 * xfont.c (xfont_open): Fix calculation of font->average_width.
13662
136632008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13664
13665 * casefiddle.c (casify_object): Try to guess better whether the
13666 argument is a byte or a char.
13667
136682008-05-26 Andreas Schwab <schwab@suse.de>
13669
13670 * xselect.c (x_reply_selection_request): Properly handle format == 32.
13671 Always send multiples of format size.
13672
13673 * xterm.c (x_set_frame_alpha): Fix type mismatch.
13674
136752008-05-26 Jason Rumney <jasonr@gnu.org>
13676
13677 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
13678 (compute_metrics): Don't set failure if we just cleared the cache.
13679 (w32_weight_table): Remove unused variable.
13680 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
13681 backwards compatibility.
13682
136832008-05-25 Kenichi Handa <handa@m17n.org>
13684
13685 * w32term.c (x_draw_glyph_string):
13686 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
13687
13688 * xfaces.c: Delete unused function prototypes.
13689 (xstrlwr, font_frame): Delete them.
13690 (clear_face_cache): Delete unused variable.
13691
13692 * xftfont.c (xftfont_open): Delete unused variable.
13693 If underline_thickness is not 1, adjust underline_position.
13694
13695 * ftxfont.c (ftxfont_open): Delete unused variable.
13696
13697 * fontset.c (face_for_char): Optimize for the case of no charset
13698 property.
13699
13700 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
13701 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
13702 (otf_open, font_otf_capability, generate_otf_features)
13703 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13704 Comment out by surrounding "#if 0" and "#endif" for the moment.
13705 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
13706 (syms_of_font): Codes for accessing above commented out.
13707
137082008-05-24 Eli Zaretskii <eliz@gnu.org>
13709
13710 * w32proc.c: Include dispextern.h.
13711
13712 * w32.c: Include dispextern.h.
13713
137142008-05-23 Juanma Barranquero <lekktu@gmail.com>
13715
13716 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
13717 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
13718 Fix typos in docstrings.
13719
137202008-05-23 Jason Rumney <jasonr@gnu.org>
13721
13722 * xsmfns.c: Remove includes that are already included by config.h.
13723
137242008-05-23 Kenichi Handa <handa@m17n.org>
13725
13726 * charset.c (Qemacs, charset_emacs): New variables.
13727 (char_charset): Fix for non-Unicode characters.
13728 (syms_of_charset): Define charset_emacs.
13729
13730 * w32term.c (x_draw_glyph_string): Be sure to update
13731 s->underline_thickness and s->underline_position. Be sure to draw
13732 underline within the current line area.
13733
13734 * xterm.c (x_draw_glyph_string): Be sure to update
13735 s->underline_thickness and s->underline_position. Be sure to draw
13736 underline within the current line area.
13737
13738 * fontset.c: Delete unused variables and add casting for char *
13739 throughout the file.
13740 (fontset_font): Try the fallback fonts of the current fontset
13741 before consulting the default fontset.
13742
13743 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
13744
13745 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
13746
137472008-05-22 Jason Rumney <jasonr@gnu.org>
13748
13749 * font.c: Don't include strings.h.
13750
13751 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
13752
13753 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
13754 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
13755 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
13756 to call xstrcasecmp.
13757
13758 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
13759
13760 * fontset.c (fs_query_fontset): Use xstrcasecmp.
13761
13762 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
13763
13764 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
13765
137662008-05-22 Kenichi Handa <handa@m17n.org>
13767
13768 * puresize.h (BASE_PURESIZE): Increase to 1220000.
13769
13770 * font.c (font_prop_validate_style): Adjust for the format
13771 change of font_style_table.
13772
13773 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
13774 two args.
13775
13776 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
13777 two args.
13778
137792008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
13780
13781 * minibuf.c (keys_of_minibuf): Delete.
13782 * lisp.h (keys_of_minibuf): Delete.
13783 * emacs.c (main): Don't call keys_of_minibuf.
13784
137852008-05-22 Kenichi Handa <handa@m17n.org>
13786
13787 * ftfont.c (ftfont_resolve_generic_family): Rename from
13788 ftfont_list_generic_family. Return a single family for each
13789 generic family.
13790 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
13791 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
13792 Call font_add_log.
13793 (ftfont_match): Call font_add_log.
13794
13795 * font.h (Ffont_xlfd_name): EXFUN adjusted.
13796 (FONT_DEBUG): Define it.
13797 (font_add_log): Extern it.
13798 (font_assert): Rename from xassert.
13799
13800 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
13801 (xfont_list_family): Call font_add_log.
13802 (xfont_match): Likewise.
13803 (memq_no_quit): Delete.
13804
13805 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
13806 call of Ffont_xlfd_name.
13807
13808 * xfaces.c (struct table_entry, slant_table, weight_table)
13809 (swidth_table): Move to font.c.
13810
13811 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
13812 xassert are changed to font_assert. Delete many unused variables.
13813 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
13814 New variables.
13815 (struct table_entry): Move from xfaces.c and modified.
13816 (weight_table, slant_table, width_table): Move from xfaces.c and
13817 contents adjusted for the change of struct table_entry.
13818 (font_style_to_value, font_style_symbolic): Adjust for the
13819 format change of font_style_table.
13820 (font_parse_family_registry): Don't overwrite existing foundry and
13821 family of font_spec.
13822 (font_score): Fix calculation of diff for sizes.
13823 (font_sort_entites): Call font_add_log.
13824 (font_delete_unmatched): Return a newly created list.
13825 (font_list_entities): Fix previous change. Call font_add_log.
13826 (font_matching_entity, font_open_entity, font_close_entity):
13827 Call font_add_log.
13828 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
13829 (Finternal_set_font_style_table): Delete.
13830 (BUILD_STYLE_TABLE): New macro.
13831 (build_style_table): New function.
13832 (Vfont_log, font_log_env_checked): New variables.
13833 (font_add_log): New function.
13834 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
13835 Declare Lisp variables "font-weight-table", "font-slant-table",
13836 "font-width-table", and "font-log". Initialize font_style_table.
13837
138382008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
13839
13840 * xterm.c (x_set_frame_alpha): Move declarations before statements.
13841
138422008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 13843 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
13844
13845 * frame.c (Qalpha): Add a new frame parameter `alpha'.
13846 (Vframe_alpha_lower_limit): New variable.
13847 (x_set_alpha): New function.
13848
13849 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
13850
13851 * xfns.c (x-create-frame, Qalpha):
13852 Initialize the frame parameter `alpha'.
13853 * xterm.c (OPAQUE, OPACITY): New.
13854 (x_set_frame_alpha): New function.
13855 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
13856
13857 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
13858 * w32fns.c (w32_frame_parm_handlers): Likewise.
13859
138602008-05-20 Jason Rumney <jasonr@gnu.org>
13861
13862 * w32font.c (add_font_entity_to_list): Don't add non-opentype
13863 truetype fonts to opentype list.
13864
138652008-05-20 Juanma Barranquero <lekktu@gmail.com>
13866
13867 * fontset.c (Ffontset_info): Doc fix.
13868 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
13869 <ignore-relative-composition>: Fix typos in docstrings.
13870
13871 * font.c (syms-of-font) <font-encoding-alist>:
13872 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
13873 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
13874 (Ffont_otf_alternates): Doc fixes.
13875
138762008-05-20 Kenichi Handa <handa@m17n.org>
13877
13878 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
13879 font.h through out the file.
13880 (FONT_DRIVERS): Rename from FONTOBJ.
13881 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
13882 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
13883
13884 * emacs.c (main): Call syms_of_font unconditionally.
13885
13886 * font.h (find_font_encoding): Extern it.
13887
13888 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
13889 fontset.c.
194d44e7 13890 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
13891 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
13892 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
13893 only when HAVE_WINDOW_SYSTEM is defined.
13894 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
13895 when HAVE_WINDOW_SYSTEM is defined.
13896
13897 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
13898 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
13899
13900 * xfaces.c: Include font.h unconditionally.
13901 (merge_face_ref, merge_face_vectors)
13902 (Finternal_set_lisp_face_attribute): Cancel the previous change.
13903
139042008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
13905
13906 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
13907 indirect_variable.
13908 * eval.c (lisp_indirect_variable): New fun.
13909 (Fuser_variable_p): Use it.
13910
139112008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13912
13913 * lisp.h (indirect_variable):
13914 * data.c (indirect_variable, let_shadows_buffer_binding_p):
13915 Use Lisp_Symbol pointers rather than Lisp_Object.
13916 Adjust callers.
13917 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
13918 To this end, change calling-convention.
13919
13920 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
13921 if some non-hidden buffers are selected by string&pred.
13922
139232008-05-19 Chong Yidong <cyd@stupidchicken.com>
13924
13925 * process.c (wait_reading_process_output): Always check status
13926 when in batch mode.
13927
139282008-05-19 Kenichi Handa <handa@m17n.org>
13929
13930 * font.c (font_list_entities): Fix handling of cache.
13931 (font_matching_entity): Likewise.
13932
13933 * ftfont.c (cs_iso8859_1): Delete.
13934 (ft_face_cache): New variable.
13935 (struct ftfont_info): New member fc_charset_idx.
13936 (ftfont_build_basic_charsets): Delete.
13937 (fc_charset_table): New variable.
13938 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
13939 . FC_CHARSET_IDX) as :font-entity property in the font entity.
13940 Callers changed.
13941 (ftfont_lookup_cache, ftfont_get_charset): New functions.
13942 (ftfont_spec_pattern): New argument fc_charset_idx.
13943 Check registry more rigidly. Change callers.
13944 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
13945 change of :font-entity property of the font.
13946
13947 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
13948 property of the font.
13949
139502008-05-18 Juanma Barranquero <lekktu@gmail.com>
13951
13952 * coding.c (Fcoding_system_p): Rename argument to match docstring.
13953 (Funencodable_char_position, Fcheck_coding_systems_region)
13954 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
13955 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
13956 (Ffind_operation_coding_system, Fset_coding_system_priority)
13957 (Fcoding_system_eol_type): Doc fixes.
13958
139592008-05-17 Glenn Morris <rgm@gnu.org>
13960
13961 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
13962
139632008-05-16 Eli Zaretskii <eliz@gnu.org>
13964
13965 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
13966 and st_gid.
13967
13968 * frame.c (Fdelete_frame): Don't call font_update_drivers if
13969 HAVE_WINDOW_SYSTEM is not defined.
13970
13971 * xfaces.c (merge_face_ref, merge_face_vectors)
13972 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
13973 HAVE_WINDOW_SYSTEM is defined.
13974 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
13975
139762008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
13977
13978 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
13979
139802008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13981
13982 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
13983
139842008-05-15 Kenichi Handa <handa@m17n.org>
13985
13986 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
13987 preference.
13988
139892008-05-15 Glenn Morris <rgm@gnu.org>
13990
13991 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
13992
139932008-05-15 Chong Yidong <cyd@stupidchicken.com>
13994
13995 * fns.c (init_fns): Don't initialize weak_hash_tables here.
13996 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
13997
13998 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
13999
140002008-05-15 Kenichi Handa <handa@m17n.org>
14001
14002 * ftfont.c (ftfont_list): Downcase family name to check generic
14003 families.
14004
14005 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
14006 font-spec for QCfont value.
14007
14008 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
14009 buffer. Check the return value of it.
14010
140112008-05-14 Jason Rumney <jasonr@gnu.org>
14012
14013 * w32term.c (w32_get_glyph_overhangs): Remove.
14014 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
14015
140162008-05-14 Kenichi Handa <handa@m17n.org>
14017
14018 * font.c (font_prop_validate): Make nil a valid value.
14019 (font_clear_cache): Check if the cached vector of entities is nil
14020 or not.
14021
140222008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14023
14024 * emacs.c (main_thread): Conditionalize on
14025 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14026 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
14027
14028 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
14029 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
14030 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14031
140322008-05-14 Kenichi Handa <handa@m17n.org>
14033
14034 * coding.c (detect_coding_iso_2022): Ignore a coding category that
14035 has no corresponding coding system.
14036
140372008-05-14 Jason Rumney <jasonr@gnu.org>
14038
14039 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
14040
14041 * w32font.h (w32font_open_internal): Update declaration.
14042
14043 * w32font.c (w32font_open_internal): Change last argument from
14044 w32font_info struct to font object. Fill in font object from
14045 font_entity. Get Outline metrics if possible. Use them to
14046 calculate underline position and thickness. Use xlfd name as name
14047 property. Don't set codepage.
14048 (w32font_open): Pass font_object to w32font_open_internal. Don't
14049 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
14050 (w32font_draw): Use s->font.
14051 (clear_cached_metrics): Don't clear non-existent blocks.
14052
14053 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
14054 font was not found.
14055 (x_draw_glyph_string): Use underline position and thickness from font.
14056
14057 * w32uniscribe.c (uniscribe_open): Pass font_object to
14058 w32font_open_internal.
14059
140602008-05-14 Kenichi Handa <handa@m17n.org>
14061
14062 These changes are to delete all legacy font-handling codes, and
14063 make Emacs use only font-backends.
14064
14065 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
14066 (frame.o, image.o, print.o): Depend on $(FONTSRC).
14067
14068 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
14069
14070 * charset.h (Vcharset_non_preferred_head)
14071 (Vcurrent_iso639_language): Extern them.
14072
14073 * charset.c (Vcharset_non_preferred_head): New variable.
14074 (Vcurrent_iso639_language): New variable.
14075 (syms_of_charset): Declare it as a Lisp variable.
14076 (char_charset): Don't check non preferred charsets. As a last
14077 resort, return charset_unicode.
14078 (Fset_charset_priority): Update Vcharset_non_preferred_head.
14079
14080 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
14081 conditionals. Don't check enable_font_backend. Delete all codes
14082 used only when USE_FONT_BACKEND is not defined.
14083
14084 * dispextern.h (struct glyph_string): Change type of `font' to
14085 `struct font *'.
14086 (struct glyph_string): New member underline_position and
14087 underline_thickness.
14088 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
14089 (struct face): Change type of `font' to `struct font *'. Remove
14090 members `font_name', `font_info_id'.
14091 (per_char_metric, encode_char): Delete externs.
14092 (calc_pixel_width_or_height): Adjust the prototype.
14093
14094 * emacs.c (enable_font_backend): Delete extern.
14095 (main): Don't set enable_font_backend. Don't check the command
14096 line argument "-disable-font-backend".
14097
14098 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
14099 (enum font_property_index): New members FONT_DPI_INDEX,
14100 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
14101 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
14102 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
14103 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
14104 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
14105 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
14106 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
14107 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
14108 (struct font_spec, struct font_entity): New structs.
14109 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
14110 (struct font): Many members from old "struct font_info" moved to
14111 here. Members font and entity deleted.
14112 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
14113 the new font-related objects.
14114 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
14115 (CHECK_FONT_GET_OBJECT): Likewise.
14116 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
14117 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
14118 (struct font_driver): New members case_sensitive anc check. Type
14119 of the member list and open changed.
14120 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
14121 (font_symbolic_width, font_find_object, font_get_spec)
14122 (font_set_lface_from_name): Delete extern.
14123 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
14124
14125 * font.c: Include <strings.h>.
14126 (enable_font_backend): Delete it.
14127 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
14128 (CHECK_VALIDATE_FONT_SPEC): Delete it.
14129 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
14130 (null_string): Delete it.
14131 (null_vector): Make it static.
14132 (font_family_alist): Delete it.
14133 (Qnormal): Extern it.
14134 (QCextra, QClanguage): Delete it.
14135 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
14136 (font_make_spec, font_make_entity, font_make_object)
14137 (font_intern_prop): Renamed from intern_downcase. Don't downcase
14138 the string. Callers changed.
14139 (font_pixel_size): Adjusted for the format change of font-related
14140 objects.
14141 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
14142 (font_style_to_value, font_style_symbolic): New function.
14143 (build_font_family_alist): Delete it.
14144 (font_registry_charsets): Use Fassoc_string instead of
14145 assq_no_quit.
14146 (font_prop_validate_symbol): Don't return null_string.
14147 (font_prop_validate_style): Adjusted for the change of
14148 style-related values in a font vector.
14149 (font_property_table): Delete entries for QClanguage and
14150 QCantialias, add entries for QCavgwidth.
14151 (get_font_prop_index): Delete the 2nd argument FROM.
14152 (font_prop_validate): Arguments changed.
14153 (font_put_extra): Adjusted for the change of font-related objects.
14154 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
14155 (font_parse_fcname, font_unparse_fcname)
14156 (font_prepare_composition): Likewise.
14157 (font_parse_family_registry): Renamed from font_merge_old_spec.
14158 (otf_open): Delete the 1st arg entity.
14159 (font_otf_capability): Adjusted for the above change.
14160 (font_score): New arg alternate_families. Adjusted for the change
14161 of font-related objects.
14162 (font_sort_entites): New arg best_only.
14163 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
14164 Delete them.
14165 (font_match_p): Check alternate families.
14166 (font_find_object): Delete it.
14167 (font_check_object): New function.
14168 (font_clear_cache): Adjusted for the change of font-related objects.
14169 (font_delete_unmatched): New arg.
14170 (font_list_entities): Call font_driver->list with a spec that
14171 doesn't specify style-related properties.
14172 (font_matching_entity): Arguments changed. Caller changed.
14173 (font_open_entity): Adjusted for the change of font-related objects.
14174 (font_close_object, font_has_char, font_encode_char)
14175 (font_get_name, font_get_spec): Likewise.
14176 (font_spec_from_name, font_clear_prop, font_update_lface):
14177 New functions.
14178 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
14179 (font_prepare_for_face, font_done_for_face, font_open_by_name)
14180 (font_at): Adjusted for the change of font-related objects.
14181 (font_range): New function.
14182 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
14183 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
14184 (Fcopy_font_spec, Fmerge_font_spec): New function.
14185 (Ffont_family_list): Renamed from list-families.
14186 (Finternal_set_font_style_table): Arguments changed.
14187 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
14188 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
14189 change of font-related objects.
14190 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
14191
14192 * fontset.h (struct font_info): Delete it. Most members go to
14193 struct font.
14194 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
14195 (enum FONT_SPEC_INDEX): Delete it.
14196 (font_info, list_fonts_func, load_font_func, query_font_func)
14197 (set_frame_fontset_func, find_ccl_program_func)
14198 (get_font_repertory_func, new_fontset_from_font_name): Delete
14199 externs.
14200 (fontset_from_font_name): Extern it.
14201 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
14202 (FONT_INFO_FROM_FACE): Deleted.
14203 (face_for_font): Adjust prototype.
14204
14205 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
14206 conditionals. Don't check enable_font_backend. Delete all codes
14207 used only when USE_FONT_BACKEND is not defined.
14208 (get_font_info_func, list_font_func, load_font_func)
14209 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
14210 (get_font_repertory_func): Delete them.
14211 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
14212 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
14213 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
14214 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
14215 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
14216 (fontset_compare_rfontdef): New function.
14217 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
14218 rfont-defs by qsort. Adjusted for the change of font-group vector.
14219 (load_font_get_repertory): Deleted.
14220 (fontset_find_font): Use new macros to ref/set elements of
14221 font-def and rfont-def.
14222 (fontset_font): Fix the timing of remembering that no font for C.
14223 (free_face_fontset): Do nothing if the face has no fontset.
14224 (face_suitable_for_char_p): Use new macros to ref/set elements of
14225 rfont-def.
14226 (face_for_char): Likewise. Call face_for_char with font_object.
14227 (fs_load_font): Delete. Delete #pragma surrounding it.
14228 (fs_query_fontset): Use strcasecmp instead of strcmp.
14229 (generate_ascii_font_name): Adjusted for the format change of
14230 font-spec.
14231 (Fset_fontset_font): Likewise. Use new macros to set elements of
14232 font-def.
14233 (Fnew_fontset): Use font_unparse_xlfd to generate
14234 FONTSET_ASCII (fontset).
14235 (new_fontset_from_font_name): Deleted.
14236 (fontset_from_font): Renamed from new_fontset_from_font. Check if
14237 a fontset is already created for the font. FIx updating of
14238 Vfontset_alias_alist.
14239 (fontset_ascii_font): Deleted.
14240 (Ffont_info): Adjusted for the format change of font-spec.
14241 (Finternal_char_font): Likewise.
14242 (Ffontset_info): Likewise.
14243 (syms_of_fontset): Don't check load_font_func.
14244
14245 * fns.c (internal_equal): Handle PREV_FONT.
14246
14247 * frame.h: Delete USE_FONT_BACKEND conditional.
14248
14249 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
14250 conditionals. Don't check enable_font_backend. Delete all codes
14251 used only when USE_FONT_BACKEND is not defined.
14252 (x_set_font): Call x_new_font, not x_new_fontset2.
14253 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
14254 already set for the frame.
14255
14256 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
14257 a font-entity by font_make_entity. Use font_intern_prop instead
14258 of intern_downcase. Use FONT_SET_STYLE to set a style-related
14259 font property. If a font is scalable, set avgwidth property to 0.
14260 Set font-entity property by font_put_extra.
14261 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
14262 (ffont_driver): Adjusted for the change of struct font_driver.
14263 (ftfont_spec_pattern): New function.
14264 (ftfont_list): Return a list, not vector.
14265 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
14266 (ftfont_list_family): Don't downcase names.
14267 (ftfont_free_entity): Deleted.
14268 (ftfont_open): Return a font-object. Adjusted for the change of
14269 struct font. Get underline_thickness and underline_position from
14270 font property. Don't update dpyinfo->smallest_font_height and
14271 dpyinfo->smallest_char_width.
14272 (ftfont_close): Don't free `struct font'.
14273 (ftfont_has_char): Adjusted for the format change of font-entity.
14274 (ftfont_encode_char, ftfont_text_extents): Likewise.
14275
14276 * ftxfont.c (ftxfont_list): Return a list, not vector.
14277 (ftxfont_open): Return a font-object. Adjusted for the change of
14278 struct font. Get underline_thickness and underline_position from
14279 font property. Don't update dpyinfo->smallest_font_height and
14280 dpyinfo->smallest_char_width.
14281 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
14282 (ftxfont_draw): Adjusted for the change of struct font.
14283
14284 * image.c (image_ascent): Don't include "charset.h". Include
14285 "character.h" and "font.h".
14286
14287 * lisp.h (enum pvec_type): New member PREV_FONT.
14288 (Fassoc_string): EXFUN it.
14289
14290 * print.c: Include font.h.
14291 (print_object): Handle font-related objects.
14292
14293 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
14294 conditionals. Don't check enable_font_backend. Delete all codes
14295 used only when USE_FONT_BACKEND is not defined.
14296 (handle_auto_composed_prop): Do nothing if it->f is not on a
14297 window system. Check how many following characters can be
14298 displayed by the same font.
14299 (calc_pixel_width_or_height): Type of the 4th arg is changed to
14300 'struct font *'.
14301 (get_char_face_and_encoding): Assign the whole encoding task to
14302 the `encode-char' method of a font driver.
14303 (fill_composite_glyph_string): Adjusted for the change of `struct
14304 face' and `struct glyph_string'.
14305 (fill_glyph_string): Likewise.
14306 (get_per_char_metric): Arguments changed.
14307 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
14308 and `struct glyph_string'.
14309 (produce_stretch_glyph, calc_line_height_property)
14310 (x_produce_glyphs): Likewise.
14311
14312 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
14313 conditionals. Don't check enable_font_backend. Delete all codes
14314 used only when USE_FONT_BACKEND is not defined. Use
14315 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
14316 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
14317 (Qp): Extern them.
14318 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
14319 Deleted.
14320 (struct font_name): Deleted.
14321 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
14322 (compare_fonts_by_sort_order): New function.
14323 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
14324 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
14325 Deleted.
14326 (Fx_family_fonts): Use font_list_entities, and sort fonts by
14327 compare_fonts_by_sort_order.
14328 (Fx_font_family_list): Call Ffont_family_list.
14329 (face_numeric_value, face_numeric_weight, face_numeric_slant)
14330 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
14331 (face_symbolic_slant, face_symbolic_swidth)
14332 (split_font_name_into_vector, build_font_name_from_vector)
14333 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
14334 (font_rescale_ratio, split_font_name, build_font_name)
14335 (free_font_names, sort_fonts, x_face_list_fonts)
14336 (face_font_available_p, sorted_font_list, cmp_font_names)
14337 (font_list_1, concat_font_list, font_list, remove_duplicates):
14338 Deleted.
14339 (Fx_list_fonts): Use Ffont_list.
14340 (LFACE_AVGWIDTH): Deleted.
14341 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
14342 by FONTP.
14343 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
14344 (set_lface_from_font_name): Delete it.
14345 (set_lface_from_font): Renamed from
14346 set_lface_from_font_and_fontset. Caller changed. Don't set
14347 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
14348 for face.
14349 (merge_face_vectors): Copy font-spec if necessary.
14350 Clear properties of the font-spec if necessary.
14351 (merge_face_ref): Clear properties of the font-spec if necessary.
14352 (Finternal_set_lisp_face_attribute): Likewise.
14353 (set_font_frame_param): Use font_load_for_lface to load a
14354 font-object, and call Fmodify_frame_parameters with it.
14355 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
14356 font name by Ffont_xlfd_name.
14357 (Finternal_lisp_face_attribute_values): Don't check QCweight,
14358 QCslant, and QCwidth.
14359 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
14360 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
14361 Compare fonts by EQ.
14362 (lookup_non_ascii_face): Deleted.
14363 (face_for_font): The 2nd argument changed.
14364 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
14365 Check atomic font properties by case insensitive.
14366 (realize_non_ascii_face): Set face->overstrike correctly.
14367 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
14368 (dump_realized_face): Get font name from
14369 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
14370
14371 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
14372 conditionals. Don't check enable_font_backend. Delete all codes
14373 used only when USE_FONT_BACKEND is not defined.
14374 (xic_create_xfontset): Original code deleted and renamed from
14375 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
14376 (x_make_gc): Don't set GCFont in GCs.
14377 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
14378 opened by "fixed".
14379 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
14380 find_ccl_program_func, query_font_func, set_frame_fontset_func,
14381 get_font_repertory_func.
14382
14383 * xfont.c: Include <stdlib.h> and "ccl.h".
14384 (struct xfont_info): New structure.
14385 (xfont_query_font): Deleted.
14386 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
14387 moved from xterm.c.
14388 (xfont_driver): Adjusted for the change of struct font_driver.
14389 (compare_font_names): New function.
14390 (xfont_list_pattern): Sort font names case insensitively. Make
14391 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
14392 (xfont_list): Return a list, not vector.
14393 (xfont_match): If the font doesn't have QCname property, generate
14394 a name from the other font properties.
14395 (xfont_open): Return a font-object. Adjusted for the change of
14396 struct font. Get underline_thickness and underline_position from
14397 font property. Don't update dpyinfo->smallest_font_height and
14398 dpyinfo->smallest_char_width.
14399 (xfont_close): Don't free struct font.
14400 (xfont_prepare_face): Adjusted for the change of struct font.
14401 (xfont_done_face): Deleted.
14402 (xfont_has_char): Adjusted for the change of struct font.
14403 (xfont_encode_char, xfont_draw): Likewise.
14404 (xfont_check): New function.
14405
14406 * xftfont.c (xftfont_list): Adjusted for the change of `list'
14407 callback function.
14408 (xftfont_match): Adjusted for the format change of font-entity.
14409 (xftfont_open): Adjusted for the format change of font-entity and
14410 font-object. Adjusted for the change of struct font. Return a
14411 font-object. Don't update dpyinfo->smallest_font_height and
14412 dpyinfo->smallest_char_width.
14413 (xftfont_close): Block input while calling XftFontClose.
14414 (xftfont_prepare_face): Don't block input while calling
14415 xftfont_get_colors. Adjusted for the change of struct font.
14416 (xftfont_shape): Return value of error case fixed.
14417
14418 * xrdb.c (x_load_resources): Don't setup a fontset resource.
14419
14420 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
14421 conditionals.
14422 (FONT_WIDTH): Return (f)->max_width.
14423 (struct x_display_info): Delete member `font'.
14424 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
14425 (x_find_ccl_program, x_get_font_repertory): Delete externs.
14426 (struct x_output): Change type of `font' to `struct font *'.
14427
14428 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
14429 conditionals. Don't check enable_font_backend. Delete all codes
14430 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
14431 (x_per_char_metric, x_encode_char): Deleted.
14432 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
14433 (x_compute_glyph_string_overhangs): Adjusted for the change of
14434 `struct face'.
14435 (x_draw_glyph_string_foreground)
14436 (x_draw_composite_glyph_string_foreground): Likewise.
14437 (x_draw_glyph_string): Likewise. Use font->underline_position and
14438 font->underline_thickness.
14439 (x_new_font): Renamed from x_new_fontset2.
14440 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
14441 (x_check_font): Call `check' method of a font driver.
14442 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
14443 (x_query_font, x_get_font_repertory): Deleted.
14444 (x_find_ccl_program): Renamed and moved to xfont.c.
14445 (x_redisplay_interface): Adjusted for the change of `struct
14446 redisplay_interface'.
14447
14448 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
14449 conditionals. Don't check enable_font_backend. Delete all codes
14450 used only when USE_FONT_BACKEND is not defined. Surround non-used
14451 code by "#ifdef OLD_FONT" and "endif".
14452 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
14453
14454 * w32font.h (struct w32font_info): New member.
14455 (FONT_COMPAT): New macro.
14456 (w32font_open_internal): Prototype adjusted.
14457
14458 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
14459 OLD_FONT" and "endif".
14460
14461 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
14462 conditionals. Don't check enable_font_backend. Delete all codes
14463 used only when USE_FONT_BACKEND is not defined.
14464 (w32font_open): Return a font-object. Make a font-object by
14465 font_make_object. Adjusted for the change of struct w32font_info.
14466 (w32font_close): Don't free struct font. Adjusted for the change
14467 of struct w32font_info.
14468 (w32font_encode_char, w32font_text_extents, w32font_draw):
14469 Adjusted for the change of struct w32font_info.
14470 (w32font_draw): Likewise.
14471 (w32font_list_internal): Return a list, not vector.
14472 (w32font_open_internal): Change the 4th arg to font-object.
14473 Adjusted for the change of struct w32font_info and font-object format.
14474 (add_font_name_to_list): Don't downcase names.
14475 (w32_enumfont_pattern_entity): Make a font-entity by
14476 font_make_entity. Adjusted for the format change of font-entity.
14477 Use FONT_SET_STYLE to set a style-related font property. If a
14478 font is scalable, set avgwidth property to 0. Set font-entity
14479 property by font_put_extra.
14480 (font_matches_spec): Adjusted for the format change of font-entity.
14481 (w32_weight_table, w32_decode_weight): New variables.
14482 (w32_encode_weight): New function.
14483 (fill_in_logfont): Adjusted for the format change of font-spec.
14484 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
14485 weight value.
14486 (w32font_driver): Adjusted for the change of struct font_driver.
14487
14488 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
14489 conditionals. Don't check enable_font_backend. Surround non-used
14490 code by "#ifdef OLD_FONT" and "endif".
14491 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
14492 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
14493
14494 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
14495 conditionals. Don't check enable_font_backend. Delete all codes
14496 used only when USE_FONT_BACKEND is not defined. Surround non-used
14497 code by "#ifdef OLD_FONT" and "endif".
14498
14499 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
14500 (uniscribe_open): Return value changed to font-object.
14501 Adjusted for the format change of font-object.
14502 (uniscribe_otf_capability): Adjusted for the change of struct font.
14503 (add_opentype_font_name_to_list): Don't downcase names.
14504 (uniscribe_font_driver): Adjusted for the change of struct
14505 font_driver.
14506
145072008-05-13 Chong Yidong <cyd@stupidchicken.com>
14508
14509 * dispnew.c (update_frame_1): Check if tty output is still valid
14510 before flushing it.
14511
145122008-05-13 Jan Djärv <jan.h.d@swipnet.se>
14513
14514 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
14515 to Gtk+ menus.
14516
145172008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
14518
14519 * dired.c (file_name_completion): Tweak the code so as to always do it
14520 in a single pass. Tighten the scope of some variables.
14521
14522 * dired.c (Qdefault_directory): New var.
14523 (file_name_completion): Use it instead of Fexpand_file_name.
14524 (syms_of_dired): Initialize it.
14525
145262008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
14527
14528 * fileio.c (double_dollars): Remove dead code.
14529
145302008-05-10 Eli Zaretskii <eliz@gnu.org>
14531
14532 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
14533 Mention w32-get-true-file-attributes in doc string.
14534
14535 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
14536
145372008-05-09 Glenn Morris <rgm@gnu.org>
14538
14539 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
14540 2008-04-23.
14541
145422008-05-09 Eli Zaretskii <eliz@gnu.org>
14543
14544 Support for reporting owner and group of each file on MS-Windows:
14545 * dired.c (stat_uname, stat_gname): New functions, with special
14546 implementation for w32.
14547 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
14548
14549 * w32.c: Rename the_passwd_* to dflt_passwd_*.
14550 (dflt_group_name): New static variable.
14551 (dflt_group): Rename from the_group.
14552 (init_user_info): Init dflt_group fields. Get user's group name
14553 from LookupAccountSid.
14554 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
14555 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
14556 New initialization states.
14557 (globals_of_w32): Initialize them to zero. Initialize the default
14558 group name to "None".
14559 (GetFileSecurity_Name): New global var, the name of the function
14560 to call for GetFileSecurity.
14561 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
14562 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
14563 (get_file_security, get_security_descriptor_owner)
14564 (get_security_descriptor_group, is_valid_sid)
14565 (get_file_security_desc, get_rid, get_name_and_id)
14566 (get_file_owner_and_group): New functions.
14567 (stat): Use get_file_security_desc and get_file_owner_and_group to
14568 report the owner and primary group of each file. Don't ignore the
14569 high 32 bits of file's size, now that st_size is 64-bit wide.
14570 Fix test when to get true file attributes.
14571 (init_user_info): Use get_rid instead of equivalent inline code.
14572 (fstat): Don't ignore the high 32 bits of file's size.
14573
145742008-05-09 Chong Yidong <cyd@stupidchicken.com>
14575
14576 * image.c (png_load): Use correct bit-depth for setting background
14577 color.
14578
145792008-05-08 Eli Zaretskii <eliz@gnu.org>
14580
14581 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
14582 epa-hook.elc.
14583
145842008-05-08 Juanma Barranquero <lekktu@gmail.com>
14585
14586 * font.c (Ffont_match_p): Don't use `iff' in docstring.
14587
145882008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
14589
14590 * macfns.c (Fx_create_frame): Make a copy of frame parameters
14591 because the original parameters are in pure storage now.
14592 (mac_window): Remove unused params. Update callers.
14593
145942008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
14595
14596 * lread.c (substitute_object_recurse): Use lower-level primitives.
14597 Don't signal errors when traversing sub-char-tables.
14598 Don't loop over all the possible characters when traversing char-tables.
14599
14600 * print.c (print_preprocess): Add sub-char-tables to the print-table,
14601 just like we do in print.c.
14602
146032008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
14604
14605 * minibuf.c (Ftry_completion): Remove code left over from when we used
14606 scmp instead of Fcompare_strings.
14607
146082008-05-04 Juanma Barranquero <lekktu@gmail.com>
14609
14610 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
14611
146122008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14613
14614 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
14615 Create bitmap context in native byte order.
14616
14617 * macterm.c (XDrawLine)
14618 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
14619 context in native byte order.
14620
146212008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14622
14623 * config.in: Regenerate.
14624
14625 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
14626 New definitions for Image I/O support.
14627 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
14628 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
14629 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14630 (mac_data_provider_release_data, image_load_image_io)
14631 [USE_MAC_IMAGE_IO]: New functions.
14632 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
14633 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
14634 (init_image_func_pointer) [MAC_OSX]: Remove function.
14635 (image_load_quartz2d) [MAC_OSX]: Check availability of
14636 CGImageCreateWithPNGDataProvider at compile time.
14637 Use lowercase `false' for boolean constant.
14638 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
14639 Use image_load_image_io.
14640 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
14641 Don't check MyCGImageCreateWithPNGDataProvider.
14642 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
14643 Don't call init_image_func_pointer.
14644
14645 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
14646
14647 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
14648 Make variable non-static.
14649 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
14650 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14651
14652 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
14653 (RED_FROM_ULONG): Mask off higher bits.
14654 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
14655
14656 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
14657 Include AvailabilityMacros.h.
14658 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
14659 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
14660
146612008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
14662
14663 * chartab.c (Fset_char_table_range): If range is t, really set all
14664 chars to that value.
14665
146662008-05-03 Eli Zaretskii <eliz@gnu.org>
14667
14668 * dired.c (Ffile_attributes): Don't allow the device number become
14669 negative.
14670
146712008-05-02 Daiki Ueno <ueno@unixuser.org>
14672
14673 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
14674
146752008-05-02 Juri Linkov <juri@jurta.org>
14676
14677 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
14678 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
14679 DEFAULT argument as a list of default values in docstrings.
14680
146812008-05-01 Chong Yidong <cyd@stupidchicken.com>
14682
14683 * puresize.h (BASE_PURESIZE): Increase to 1210000.
14684
146852008-05-01 Martin Rudalics <rudalics@gmx.at>
14686
14687 * dispnew.c (change_frame_size_1): Preserve small windows when
14688 shrinking frames by calling set_window_height|width with third
14689 arg 2.
14690
14691 * window.h (struct window): Replace field too_small_ok by field
14692 resize_proportionally.
14693
14694 * window.c (make_window): Initialize resize_proportionally.
14695 (enlarge_window): Temporarily set resize_proportionally to make
14696 sure that shrink_windows does scale the window proportionally.
14697 (shrink_windows): When window has resize_proportionally set try
14698 to shrink it proportionally by stealing from other windows.
14699 (struct saved_window, Fset_window_configuration)
14700 (compare_window_configurations): Handle resize_proportionally.
14701 (WINDOW_TOTAL_SIZE): New macro.
14702 (window_min_size, shrink_windows, size_window): Use it.
14703 (check_min_window_sizes): Remove. Invalid values of
14704 window-min-height|width are handled by window_min_size_2 now.
14705 (size_window, Fsplit_window, enlarge_window)
14706 (adjust_window_trailing_edge, grow_mini_window): Don't call
14707 check_min_window_sizes.
14708 (window_min_size_2, window_min_size_1, window_min_size):
14709 New argument safe_p for retrieving "safe" minimum sizes.
14710 (Fdisplay_buffer, Fsplit_window, enlarge_window)
14711 (adjust_window_trailing_edge, grow_mini_window):
14712 Adjust arguments of window_min_size... functions.
14713 (shrink_windows): Argument min_size removed. New argument
14714 safe_p allows shrinking windows to their safe minimum sizes.
14715 Calculate minimum size and decide whether a window shall be
14716 deleted for each window individually.
14717 (size_window): When nodelete_p equals 2, tell shrink_windows to
14718 delete windows only if their new minimum size is no more safe.
14719 (shrink_window_lowest_first): Call window_min_size_1 to make
14720 sure to preserve modeline of bottom-most window when resizing
14721 the minibuffer.
14722 (Fset_window_configuration, Fcurrent_window_configuration)
14723 (compare_window_configurations): Do not handle
14724 window-min-height|width any more.
14725 (syms_of_window): Clarify window-min-height|width doc-strings.
14726
147272008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
14728
14729 * dired.c (file_name_completion): Fix up the encoding/decoding issue
14730 some more. Copy some of the code from Ftry_completions.
14731 Remove special case code that dates back to initial revision when the
14732 slash was only added when necessary and that can't trigger nowadays.
14733
147342008-04-27 Kenichi Handa <handa@m17n.org>
14735
14736 * font.c (font_prop_validate): Signal `error' instead of `font'.
14737
147382008-04-29 Jason Rumney <jasonr@gnu.org>
14739
14740 * w32fns.c (Fw32_battery_status): New defun.
14741 (syms_of_w32fns): Defsubr it.
14742
147432008-04-28 Andreas Schwab <schwab@suse.de>
14744
14745 * dired.c (file_name_completion): Fix another mixing of encoded
14746 and decoded names.
14747
147482008-04-28 Juanma Barranquero <lekktu@gmail.com>
14749
14750 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
14751
147522008-04-27 Juanma Barranquero <lekktu@gmail.com>
14753
14754 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
14755
147562008-04-27 Andreas Schwab <schwab@suse.de>
14757
14758 * dired.c (file_name_completion): Fix inappropriate mixing of
14759 encoded and decoded names.
14760
14761 * xterm.c (XTread_socket): Fix use of uninitialized variable.
14762
14763 * puresize.h (BASE_PURESIZE): Increase to 1200000.
14764
147652008-04-26 Eli Zaretskii <eliz@gnu.org>
14766
14767 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
14768 2008-03-31, it's not needed anymore with `struct stat' definition
14769 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
14770 for the same reasons.
14771
147722008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
14773
14774 * m/sparc.h: Additional redefinitions for GNU/Linux.
14775
147762008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14777
14778 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
14779 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
14780 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
14781 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
14782 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14783 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
14784 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14785 Likewise.
14786
14787 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
14788 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
14789 (mac_ax_number_of_characters): Add externs.
14790 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14791 [USE_MAC_TSM]: Likewise.
14792 (mac_handle_text_input_event) [MAC_OSX]:
14793 Handle kEventTextInputOffsetToPos for no active input area case.
14794 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14795 (mac_handle_document_access_event)
14796 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
14797 (install_application_handler) [MAC_OSX]: Register handlers for
14798 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14799 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14800 Register mac_handle_document_access_event.
14801
14802 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
14803 Make functions non-static.
14804
148052008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
14806
14807 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
14808 (read_file_name_completion_ignore_case, insert_default_directory)
14809 (Qdefault_directory): Move to minibuffer.el.
14810 (Fread_file_name): Call the new `read-file-name' instead.
14811
148122008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14813
14814 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
14815 Make function non-static.
14816 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
14817 Remove function.
14818 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14819 Move to mactoolbox.c.
14820 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
14821
14822 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
14823 (mac_rect_make): New macro.
14824
14825 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
14826 instead of float.
14827 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14828 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
14829 (XSetBackground) [USE_CG_DRAWING]: Likewise.
14830 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
14831 CGRectMake.
14832 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14833 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
14834 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
14835 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14836 instead of WindowRef in argument type.
14837 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
14838 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
14839 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
14840 instead of DISPLAY. All uses changed.
14841 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
14842 (x_calc_absolute_position): Simplify so as not to use
14843 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
14844
14845 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14846 instead of WindowRef in argument type.
14847 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
14848 [TARGET_API_MAC_CARBON]: Remove externs.
14849 (create_apple_event, mac_event_parameters_to_lisp)
14850 [TARGET_API_MAC_CARBON]: Add externs.
14851
14852 * mactoolbox.c (Vmac_ts_script_language_on_focus)
14853 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
14854 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
14855 is clicked.
14856 (x_activate_menubar): Remove extern for saved_menu_event_location.
14857 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14858 Move from mac.c.
14859
148602008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14861
14862 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
14863 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
14864
148652008-04-23 Jason Rumney <jasonr@gnu.org>
14866
14867 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
14868 attributes only for local files.
14869
14870 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
14871 default to Qlocal.
14872
148732008-04-22 Juri Linkov <juri@jurta.org>
14874
14875 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
14876 read-buffer-to-switch instead of using the letter "B".
14877
148782008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
14879
14880 * fileio.c (Qdefault_directory): New variable.
14881 (Fread_file_name): Use it to pass `dir' to the completion functions.
14882
148832008-04-20 Chong Yidong <cyd@stupidchicken.com>
14884
14885 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
14886
148872008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
14888
14889 * keyboard.c (Vpre_help_message): Remove.
14890 (show_help_echo): Remove default C code.
14891
14892 * dired.c (directory_files_internal, file_name_completion):
14893 Only call ENCODE_FILE if the string is indeed decoded.
14894
148952008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14896
14897 * Makefile.in (TOOLKIT_DEFINES): Remove.
14898 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
14899
149002008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14901
14902 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
14903 (mactoolbox.o): New target.
14904
14905 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
14906 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
14907
14908 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
14909 Use mac_set_frame_window_background instead of XSetWindowBackground.
14910 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
14911 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
14912 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
14913 instead of SetWindowTitleWithCFString.
14914 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
14915 Move function to mactoolbox.c.
14916 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
14917 Use mac_set_window_modified instead of SetWindowModified.
14918 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
14919 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
14920 (Fx_focus_frame): Use mac_front_non_floating_window instead of
14921 FrontNonFloatingWindow. Use mac_activate_window instead of
14922 ActivateWindow. Use mac_active_non_floating_window instead of
14923 ActiveNonFloatingWindow.
14924 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
14925 Use mac_show_hourglass and mac_hide_hourglass.
14926 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
14927 instead of GetGlobalMouse.
14928 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
14929 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
14930 Use mac_bring_window_to_front instead of BringToFront.
14931 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
14932 mactoolbox.c.
14933 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
14934 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
14935 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
14936 mactoolbox.c.
14937
14938 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
14939 (XtPointer): Move typedef from macmenu.c.
14940 (enum button_type): Move enum from macmenu.c.
14941 (widget_value): Move typedef from macmenu.c.
14942 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
14943 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14944 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14945 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14946 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14947 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14948 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14949 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
14950 (Selection): Move typedef from macselect.c.
14951 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
14952 macterm.c.
14953 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
14954 (mac_is_window_collapsed, mac_bring_window_to_front)
14955 (mac_send_window_behind, mac_hide_window, mac_show_window)
14956 (mac_collapse_window, mac_front_non_floating_window)
14957 (mac_active_non_floating_window, mac_activate_window)
14958 (mac_move_window_structure, mac_move_window, mac_size_window)
14959 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
14960
14961 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
14962 (enum mac_menu_kind): Move enum to mactoolbox.c.
14963 (min_menu_id): Move variable to mactoolbox.c.
14964 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
14965 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
14966 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
14967 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
14968 [TARGET_API_MAC_CARBON]: Likewise.
14969 (XtPointer): Move typedef to macgui.h.
14970 (enum button_type): Move enum to macgui.h.
14971 (widget_value): Move typedef to macgui.h.
14972 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14973 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14974 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14975 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14976 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14977 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14978 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
14979 (popup_activated_flag): Make variable non-static.
14980 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
14981 (add_menu_item, fill_menu, dispose_menus):
14982 Move functions to mactoolbox.c.
14983 (restore_show_help_function, menu_target_item_handler)
14984 (install_menu_target_item_handler, mac_handle_dialog_event)
14985 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
14986 [TARGET_API_MAC_CARBON]: Likewise.
14987 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
14988 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14989 (find_and_call_menu_selection, name_is_separator): Make function
14990 non-static.
14991 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
14992 to mactoolbox.c.
14993 (set_frame_menubar): Don't call install_menu_quit_handler.
14994 (menu_item_selection): New variable.
14995 (mac_menu_show): Use create_and_show_popup_menu.
14996 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
14997 selection but set variable menu_item_selection. All uses changed.
14998 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
14999 Call install_menu_quit_handler. Move to mactoolbox.c.
15000
15001 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
15002 (Selection): Move typedef to macgui.h.
15003 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
15004 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
15005 Make variables non-static.
15006 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15007 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
15008 Make functions non-static.
15009 (Vmac_service_selection) [MAC_OSX]: Likewise.
15010 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
15011 (mac_valid_selection_target_p, mac_clear_selection)
15012 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15013 (mac_put_selection_value, mac_selection_has_target_p)
15014 (mac_get_selection_value, mac_get_selection_target_list)
15015 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
15016 Move functions to mactoolbox.c.
15017 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
15018 Likewise.
15019 (copy_scrap_flavor_data, mac_handle_service_event)
15020 (install_service_handler) [MAC_OSX]: Likewise.
15021 (syms_of_macselect) <Vmac_dnd_known_types>:
15022 Use mac_dnd_default_known_types.
15023
15024 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
15025 Move to mactoolbox.c.
15026 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
15027 (Fx_selection_owner_p): Add EXFUN.
15028 (install_window_handler, remove_window_handler, XSetWindowBackground):
15029 Remove externs.
15030 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
15031 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
15032 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
15033 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
15034 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
15035 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
15036 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
15037 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
15038 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
15039 (create_and_show_popup_menu, mac_get_selection_from_symbol)
15040 (mac_valid_selection_target_p, mac_clear_selection)
15041 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15042 (mac_put_selection_value, mac_selection_has_target_p)
15043 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
15044 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
15045 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
15046 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15047 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
15048 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15049 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
15050 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15051 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15052
15053 * mactoolbox.c: New file.
15054
150552008-04-18 Jason Rumney <jasonr@gnu.org>
15056
15057 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
15058
150592008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15060
15061 * character.c (Fmultibyte_char_to_unibyte):
15062 Return latin1 chars unchanged.
15063
15064 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
15065 relocated if it points to `name'.
15066
150672008-04-17 Kenichi Handa <handa@m17n.org>
15068
15069 * data.c (Faset): Allow setting a multibyte character in an
15070 ASCII-only unibyte string.
15071
15072 * lisp.h (STRING_SET_MULTIBYTE): New macro.
15073
150742008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
15075
15076 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
15077 done in config.h.
15078
150792008-04-16 Juanma Barranquero <lekktu@gmail.com>
15080
15081 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
15082 (Fchar_direction): Add usage in the docstring.
15083
150842008-04-15 Chong Yidong <cyd@stupidchicken.com>
15085
15086 * keyboard.c (read_key_sequence): Remove always-true checks.
15087
150882008-04-14 Jason Rumney <jasonr@gnu.org>
15089
15090 * w32font.c (w32font_open_internal): Set max_bounds.descent in
15091 compatibility struct, for better underline positioning.
15092
150932008-04-13 David Hansen <david.hansen@gmx.net>
15094
15095 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
15096 string.
15097
150982008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
15099
15100 * m/hp800.h (XUINT, XSET): Remove.
15101
151022008-04-12 Juanma Barranquero <lekktu@gmail.com>
15103
15104 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
15105 previous change.
15106
151072008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
15108
15109 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
15110 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
15111
151122008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15113
15114 * keymap.h (map_keymap_canonical): Declare.
15115 * xmenu.c (single_keymap_panes): Use it.
15116
151172008-04-11 Glenn Morris <rgm@gnu.org>
15118
15119 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
15120 set the target's value to that of the alias.
15121
151222008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15123
15124 * term.c (set_tty_color_mode): Left over typo.
15125
151262008-04-10 Michael Albinus <michael.albinus@gmx.de>
15127
15128 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
15129 only after check for file name handler functions. Signal, when
15130 native functionality is not supported.
15131 (syms_of_fileio): Declare it unconditionally.
15132
151332008-04-10 Jason Rumney <jasonr@gnu.org>
15134
15135 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
15136 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
15137
15138 * w32.c (logon_network_drive): Also logon to remote drives that
15139 are mapped to drive letters.
15140
151412008-04-10 Glenn Morris <rgm@gnu.org>
15142
15143 * xdisp.c (truncate-partial-width-windows): Doc fix.
15144
151452008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
15146
15147 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
15148 Move functions to minibuffer.el.
15149 (syms_of_fileio): Don't declare them.
15150
151512008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15152
15153 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
15154 (syms_of_minibuf): Remove its initialization.
15155
15156 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
15157
151582008-04-09 Juanma Barranquero <lekktu@gmail.com>
15159
15160 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
15161
151622008-04-09 Jason Rumney <jasonr@gnu.org>
15163
15164 * makefile.w32-in (distclean): Delete makefile too.
15165 (maintainer-clean): New target.
15166
15167 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
15168
15169 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
15170 for new font backend and composite cases.
15171
151722008-04-09 Jan Djärv <jan.h.d@swipnet.se>
15173
15174 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
15175 Most of the code moved to run_timers.
15176 (do_pending_atimers): Call run_timers.
15177 (run_timers): New function.
15178
15179 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
15180 run atimers.
15181
15182 * process.c (wait_reading_process_output): The same as above.
15183
151842008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15185
15186 * minibuf.c (last_exact_completion): Remove variable.
15187 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
15188 (complete_and_exit_1, complete_and_exit_2)
15189 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
15190 (Fdisplay_completion_list, display_completion_list_1)
15191 (Fminibuffer_completion_help, Fself_insert_and_exit)
15192 (Fexit_minibuffer, Fminibuffer_message): Move functions to
15193 minibuffer.el.
15194 (syms_of_minibuf): Remove corresponding initializations.
15195
15196 * keyboard.c (Qdeactivate_mark): New var.
15197 (command_loop_1): Use it to call `deactivate-mark'.
15198 (syms_of_keyboard): Initialize it.
15199
15200 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
15201 to another frame.
15202 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
15203 Don't call set_tty_color_mode.
15204 (store_frame_param): Reset previous_frame rather than call
15205 set_tty_color_mode.
15206 * term.c (set_tty_color_mode): Rewrite.
15207 * dispextern.h (set_tty_color_mode): New type.
15208 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
15209
152102008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
15211
15212 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
15213 for generic chars, which do not exist any more in emacs-unicode.
15214
152152008-04-08 Michael Albinus <michael.albinus@gmx.de>
15216
15217 * coding.c (detect_coding_emacs_mule)
15218 (Ffind_operation_coding_system): Fix typo.
15219
152202008-04-08 Jason Rumney <jasonr@gnu.org>
15221
15222 * w32uniscribe.c (SNAME): Extract only symbol name.
15223
15224 * w32font.h (struct w32_metric_cache): New struct.
15225 (w32font_info): Use it.
15226 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
15227 (CACHE_BLOCKSIZE): New constants.
15228
15229 * w32font.c (Qja, Qko, Qzh): New symbols.
15230 (syms_of_w32font): Initialise them.
15231 (font_matches_spec): Use them to filter by language.
15232 (recompute_cached_metrics): Remove function.
15233 (compute_metrics, clear_cached_metrics): New functions.
15234 (w32font_encode_char): Use them to manage metric cache.
15235 (w32font_text_extents): Cache metrics for all glyphs on demand.
15236 Delay converting glyph indices to WORD until needed.
15237 (w32font_open_internal): Initialize metric cache to empty.
15238 (registry_to_w32_charset): Charset should always be a symbol.
15239 (fill_in_logfont, list_all_matching_fonts): Family should
15240 always be a symbol.
15241
152422008-04-06 Jason Rumney <jasonr@gnu.org>
15243
15244 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
15245 Give up if glyph indices not supported. Use uniscribe obtained
15246 ABC widths for individual metrics. Map glyph clusters back to
15247 characters using fClusterStart flag. Return number of glyphs
15248 produced, not chars processed.
15249 (uniscribe_shape): Map char at FROM to current glyph.
15250
152512008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15252
15253 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
15254 Use SetMenuItemHierarchicalMenu.
15255
152562008-04-05 Jason Rumney <jasonr@gnu.org>
15257
15258 * image.c (pbm_load): Allow color values up to 65535.
15259 Throw an error if max_color_idx is outside the supported range.
15260 Report an error when image size is invalid.
15261 Read two bytes at a time when raw images have max_color_idx above 255.
15262
aac0c6e3
MR
152632008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
15264
15265 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
15266 append "CCL: Quitted" when the CCL program is quitted.
15267 (setup_ccl_program): Initialize ccl->quit_silently to zero.
15268
15269 * ccl.h (struct ccl_program): New member quit_silently.
15270
152712008-04-05 Chong Yidong <cyd@stupidchicken.com>
15272
15273 * search.c (compile_pattern_1): Treat non-nil and non-string of
15274 search-spaces-regexp as nil.
15275
15276 * minibuf.c (Fassoc_string): Tweak docstring.
15277
152782008-04-05 Eli Zaretskii <eliz@gnu.org>
15279
15280 * dired.c (Ffile_attributes): Support inode numbers wider than 32
15281 bits. Remove ugly WINDOWSNT-specific kludge introduced on
15282 2008-03-14 to force inode be positive.
15283
15284 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
15285 _S_* ones, since we now use our own sys/stat.h.
15286 (stat, fstat): Don't mangle the inode number.
15287 (init_user_info): Don't restrict UID and GID to 0-60000 range.
15288
152892008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
15290
15291 * frame.h (struct frame): Give one more bit to `visible' since we use
15292 values larger than 1 to indicate obscured frames on ttys.
15293
15294 * keymap.c (Qkeymap_canonicalize): New var.
15295 (Fmap_keymap_internal): New fun.
15296 (describe_map): Use keymap-canonicalize.
15297
15298 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
15299 (Fundo_boundary): Set them.
15300 (syms_of_undo): Initialize them.
15301 (record_point): Use them instead of last_point_position*.
15302 (last_undo_buffer): Change type.
15303
153042008-04-04 Jason Rumney <jasonr@gnu.org>
15305
15306 * w32font.c (w32font_text_extents): Use font's ascent and descent.
15307 (recompute_cached_metrics): Don't set ascent and descent per char.
15308
15309 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
15310 (uniscribe_check_otf): Add GC protection before consing.
15311 Rearrange loop for counting features.
15312
153132008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
15314
15315 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
15316 buffer with byte-size of source buffer.
15317
153182008-04-03 Chong Yidong <cyd@stupidchicken.com>
15319
15320 * callint.c (Fcall_interactively): Handle temporary region even
15321 when shift-select-mode is off.
15322
153232008-04-03 Jason Rumney <jasonr@gnu.org>
15324
15325 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
15326
153272008-04-03 Kenichi Handa <handa@m17n.org>
15328
15329 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
15330 (CATEGORY_MASK_UTF_16): Likewise.
15331 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
15332 binary file.
15333 (detect_coding): Add null-byte detection for a binary file.
15334 (detect_coding_system): Likewise.
15335
153362008-04-03 Jason Rumney <jasonr@gnu.org>
15337
15338 * w32uniscribe.c: New file.
15339
15340 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
15341
15342 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
15343
15344 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
15345 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
15346 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
15347 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
15348 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
15349 (Qphonetic): New symbols.
15350 (syms_of_w32font): Initialize them.
15351 (font_supported_scripts): Use them.
15352 (w32font_list_family): List all charsets.
15353 (w32font_text_extents, recompute_cached_metrics): Fix metric
15354 calculations.
15355 (w32_enumfont_pattern_entity): Make full_type a DWORD.
15356 Give opentype fonts their own format.
15357 (font_matches_spec): New arguments backend and logfont.
15358 Handle :otf spec for uniscribe backend.
15359 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
15360 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
15361
15362 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
15363 font backend.
15364 (globals_of_w32fns): Initialize uniscribe font backend.
15365
15366 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
15367 dependencies.
15368 (w32uniscribe.$(O)): New file to build.
15369 (FONT_OBJ): Include w32uniscribe.$(O).
15370 (LIBS): Add uniscribe libraries.
15371
15372 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
15373
153742008-04-02 Chong Yidong <cyd@stupidchicken.com>
15375
15376 * callint.c (Vshift_select_mode): New var.
15377 (Finteractive): Document new ^ spec.
15378 (Fcall_interactively): Call handle-shift-selection if the ^ spec
15379 is present.
15380
15381 * keyboard.c (Vthis_command_keys_shift_translated): New var.
15382 (command_loop_1): Avoid running the direct display versions of
15383 forward-char and backward-char if shift-selection may occur.
15384 (read_key_sequence): Set Vthis_command_keys_shift_translated if
15385 shift-translation takes place.
15386
15387 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
15388 avoid clobbering by define-minor-mode.
15389
15390 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
15391 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
15392
15393 * syntax.c (Fforward_word): Add ^ interactive spec.
15394
15395 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
15396 (Fscroll_right): Add ^ interactive spec.
15397
153982008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
15399
15400 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
15401
15402 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
15403
15404 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
15405
154062008-03-31 Juri Linkov <juri@jurta.org>
15407
15408 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
15409
154102008-03-30 Jan Djärv <jan.h.d@swipnet.se>
15411
15412 * gtkutil.c (xg_set_geometry): Fix indentation.
15413 (xg_resize_outer_widget): Remove.
15414 (x_wm_size_hint_off): Fix indentation.
15415 (xg_frame_set_char_size): Call flush_and_sync after
15416 gtk_window_resize.
15417 (x_wm_set_size_hint): Pass NULL as geometry window to
15418 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
15419 Add menu bar and tool bar height to base height.
15420 (xg_update_frame_menubar, free_frame_menubar)
15421 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
15422 (update_frame_tool_bar, free_frame_tool_bar):
15423 Change xg_resize_outer_widget to xg_frame_set_char_size.
15424
154252008-03-30 Michael Albinus <michael.albinus@gmx.de>
15426
15427 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
15428 (Fdbus_call_method): New parameter TIMEOUT.
15429 (dbus-send-signal): Optimize UNGCPRO call.
15430
154312008-03-29 Juri Linkov <juri@jurta.org>
15432
15433 * window.c (Fdisplay_buffer): Move call to
15434 Vsplit_window_preferred_function out of conditions that check
15435 if window is eligible for vertical splitting.
15436 When Vsplit_window_preferred_function is non-nil, call it and use
15437 its non-nil return value as window. Otherwise, continue doing
15438 vertical splitting using Fsplit_window with arg horflag=nil.
15439 (syms_of_window) <Vsplit_window_preferred_function>: Change the
15440 default value from `split-window' to nil.
15441
154422008-03-29 Juri Linkov <juri@jurta.org>
15443
15444 * callint.c (Fcall_interactively): Revert 2008-03-16 change
15445 for interactive code letters 'b' and 'B'.
15446
154472008-03-29 Eli Zaretskii <eliz@gnu.org>
15448
15449 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
15450 multibyte string.
15451
154522008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
15453
15454 * keyboard.c (pending_funcalls): New var.
15455 (timer_check): Run it.
15456 (syms_of_keyboard): Initialize it.
15457 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
15458 (Vdelete_terminal_functions): New vars.
15459 (syms_of_terminal): Initialize them.
15460 (Fdelete_terminal): Run delete-terminal-functions.
15461 * xdisp.c (safe_eval): Rewrite.
15462 (safe_call2): New fun.
15463 * frame.c (Qdelete_frame_functions): New var.
15464 (syms_of_frame): Initialize it.
15465 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
15466 * lisp.h (safe_call2, pending_funcalls): Declare.
15467
154682008-03-28 Andreas Schwab <schwab@suse.de>
15469
15470 * indent.c (Fmove_to_column): Move declaration before statements.
15471
154722008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
15473
15474 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
15475 (struct frame): Use bit fields for boolean vars.
15476
15477 * process.c (server_accept_connection): Simplify naming.
15478 (emacs_get_tty_pgrp): Use SDATA.
15479
15480 * coding.c (decode_coding_object): Fix last change.
15481
154822008-03-27 Jason Rumney <jasonr@gnu.org>
15483
15484 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
15485
154862008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
15487
15488 * charset.c (Fdefine_charset_internal): Change the way of
15489 registering charsets in Vcharset_order_list.
15490 (syms_of_charset): Make the charset `eight-bit' supplementary.
15491
154922008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
15493
15494 * regex.c (EXTEND_BUFFER): Change order of pointer addition
15495 operations, to avoid having the difference between pointers
15496 overflow.
15497
154982008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
15499
15500 * indent.c (check_display_width): New fun.
15501 (scan_for_column): Use it.
15502
15503 * data.c (syms_of_data): Mark most-positive-fixnum and
15504 most-negative-fixnum as constants.
15505
15506 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
15507
15508 * indent.c (scan_for_column): Extract from current_column_1.
15509 Merge with the same code from Fmove_to_column.
15510 (current_column_1, Fmove_to_column): Use it.
15511
155122008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
15513
15514 * keymap.c (map_keymap_internal): New fun.
15515 (map_keymap): Use it.
15516 (Fmap_keymap_internal): New fun.
15517 (Fmap_keymap): Remove left-out test from before make_save_value.
15518
15519 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
15520
15521 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
15522 Use XCAR/XCDR.
15523
15524 * process.h (struct Lisp_Process): Remove filter_multibyte.
15525 * process.c (QCfilter_multibyte): Remove.
15526 (setup_process_coding_systems): Don't use filter_multibyte.
15527 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
15528 (read_process_output): Don't adjust multibyteness to filter_multibyte.
15529 (Fset_process_filter_multibyte): Change the coding-system to
15530 approximate the previous behavior.
15531 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
15532 coding-system.
15533
15534 * coding.c (decode_coding_object): When not decoding into a buffer,
15535 obey the coding system's preference of (uni|multi)byte.
15536
155372008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
15538
15539 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
15540 every char is changed and has a different byte-length.
15541 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
15542 Fix int -> EMACS_INT.
15543
155442008-03-23 David Hansen <david.hansen@gmx.net>
15545
15546 * dbusbind.c (xd_read_message): Remove extra copying of message
15547 strings. Check for NULL `interface' or `member'.
15548
155492008-03-22 Eli Zaretskii <eliz@gnu.org>
15550
15551 * w32.c (readdir): If FindFirstFile/FindNextFile return in
15552 cFileName a file name that includes `?' characters, use the 8+3
15553 alias in cAlternateFileName instead.
15554
155552008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
15556
15557 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
15558
155592008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15560
15561 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
15562 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
15563 work on current_buffer only instead (that was already the case
15564 for some of the code anyway).
15565 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
15566 (temp_set_point, temp_set_point_both): Use EMACS_INT.
15567 (SET_PT, SET_PT_BOTH): Adjust.
15568 * intervals.h (set_point, temp_set_point, set_point_both)
15569 (temp_set_point_both): Remove redundant declarations.
15570
155712008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
15572
15573 * fileio.c (Finsert_file_contents):
15574 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
15575 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
15576 when buffer != current_buffer anyway.
15577
155782008-03-20 Andreas Schwab <schwab@suse.de>
15579
15580 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
15581 as default.
15582
155832008-03-19 Jason Rumney <jasonr@gnu.org>
15584
15585 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
15586 (syms_of_w32fns): Initialize them.
15587 (HOURGLASS_ID): New constant.
15588 (x_window_to_frame): Don't check hourglass_window.
15589 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
15590 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
15591 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
15592 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
15593 Only change the cursor if hourglass is not active.
15594 (Fx_create_frame): Initialize frame's current_cursor.
15595 (hourglass_atimer): Remove.
15596 (hourglass_started): New function.
15597 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
15598 (show_hourglass): Adapt to w32, changing argument to frame.
15599
15600 * w32term.h (struct w32_output): Remove hourglass_window.
15601 Add current_cursor.
15602
15603 * eval.c (call_debugger, Fsignal):
15604 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
15605 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
15606 (Fexecute_extended_command, cancel_hourglass_unwind):
15607 * minibuf.c (read_minibuf):
15608 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
15609
156102008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
15611
15612 * window.c (run_funs): New fun.
15613 (run_window_configuration_change_hook): Use it to run the buffer-local
15614 and the global part of the hook.
15615
15616 * xdisp.c (format_mode_line_unwind_data): Add window argument.
15617 (unwind_format_mode_line): Restore selected window.
15618 (x_consider_frame_title, Fformat_mode_line): Set selected window.
15619
156202008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
15621
15622 * editfns.c (Fchar_equal): Check they are valid characters.
15623
15624 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
15625
156262008-03-17 Andreas Schwab <schwab@suse.de>
15627
15628 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
15629 against a charset.
15630
15631 * lisp.h (Fbuffer_list): Declare.
15632
156332008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 15634
aac0c6e3
MR
15635 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
15636 handlebox_widget is != 0.
15637
156382008-03-16 Juri Linkov <juri@jurta.org>
15639
15640 * callint.c (Fcall_interactively): For interactive code letters
15641 'b' and 'B' put the buffer list into the list of default "future"
15642 values of the minibuffer.
15643
156442008-03-16 Andreas Schwab <schwab@suse.de>
15645
15646 * keyboard.c (read_key_sequence): Fix downcasing of letters with
15647 modifiers.
15648
15649 * regex.c (re_match_2_internal): Correct matching of a charset
15650 against latin-1 characters.
15651
156522008-03-16 Kenichi Handa <handa@m17n.org>
15653
15654 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
15655 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
15656 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
15657 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
15658 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
15659 CHAR_STRING_ADVANCE.
15660 (produce_chars): Fix for the case that the source and the
15661 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
15662 instead of CHAR_STRING_ADVANCE.
15663 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
15664 STRING_CHAR_ADVANCE.
15665
156662008-03-15 Andreas Schwab <schwab@suse.de>
15667
15668 * regex.c (re_match_2_internal): Correct matching of eight bit
15669 characters in unibyte strings.
15670
156712008-03-15 Martin Rudalics <rudalics@gmx.at>
15672
15673 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
15674 at end of range when it coincides with the end of the buffer.
15675
156762008-03-14 Eli Zaretskii <eliz@gnu.org>
15677
15678 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
15679
15680 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
15681
156822008-03-14 Jason Rumney <jasonr@gnu.org>
15683
15684 * editfns.c (initial_tz): New variable.
15685 (syms_of_editfns): Initialize it.
15686 (Fset_time_zone_rule): Set it when first called.
15687 Use it when TZSTRING is nil.
15688
15689 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
15690 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
15691 (monitor_from_point_fn, get_monitor_info_fn): New globals.
15692 (globals_of_w32fns): Initialize them.
15693 (compute_tip_xy): Use them to position tooltips.
15694
156952008-03-14 Glenn Morris <rgm@gnu.org>
15696
15697 * emacs.c (main): Revert previous change.
15698 (standard_args): Revert -internal-script back to -scriptload,
15699 and remove the long-option form.
15700
157012008-03-13 Glenn Morris <rgm@gnu.org>
15702
15703 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
15704 Remove option -enable-font-backend.
15705
157062008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
15707
15708 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
15709
157102008-03-11 Jan Djärv <jan.h.d@swipnet.se>
15711
15712 * xterm.c (x_connection_closed): For GTK: If this is the last
15713 terminal just exit without closing the display.
15714
157152008-03-11 Jason Rumney <jasonr@gnu.org>
15716
15717 * w32font.c (w32font_full_name): Use floor to round.
15718
f0131492 157192008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
15720
15721 * sound.c (alsa_configure): Declare vol at beginning of block.
15722
15723 * fontset.c (Ffontset_info): Remove extra semicolon.
15724
157252008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
15726
15727 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
15728 size of resulting string.
15729
157302008-03-10 Jason Rumney <jasonr@gnu.org>
15731
15732 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
15733
157342008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15735
15736 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
15737 Don't pretend as if characters with display property haven't been
15738 consumed for string-replacing-string case.
15739
157402008-03-08 Kim F. Storm <storm@cua.dk>
15741
15742 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
15743 (get_next_display_element, next_element_from_string)
15744 (next_element_from_ellipsis, next_element_from_buffer): Use it.
15745
157462008-03-08 Andreas Schwab <schwab@suse.de>
15747
15748 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
15749
157502008-03-06 Jason Rumney <jasonr@gnu.org>
15751
15752 * w32font.c (w32_registry): Take font_type argument. Use ANSI
15753 when charset not specified. Only translate ANSI to unicode when
15754 font_type is truetype.
15755 (w32font_coverage_ok): New function.
15756 (add_font_entity_to_list): Use it to filter unsuitable fonts.
15757
157582008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
15759
15760 * lread.c (Fread_char): Resolve modifiers.
15761 (Fread_char_exclusive): Likewise.
15762
15763 * character.c (char_resolve_modifier_mask): New function.
15764 (char_string): Use char_resolve_modifier_mask.
15765 (Fchar_resolve_modifiers): New function.
15766 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
15767 function.
15768
157692008-03-04 Jason Rumney <jasonr@gnu.org>
15770
15771 * makefile.w32-in: Always include w32font.c in the build.
15772 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
15773
157742008-03-04 Andreas Schwab <schwab@suse.de>
15775
15776 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
15777 (versionclean): Likewise.
15778
157792008-03-04 Juanma Barranquero <lekktu@gmail.com>
15780
15781 * .cvsignore: Add oo.
15782
157832008-03-03 Andreas Schwab <schwab@suse.de>
15784
15785 * coding.c (decode_coding_object): Inhibit gap shrinking while
15786 decoding in place.
15787
157882008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
15789
15790 * w32term.c: Remove unused include "gnu.h".
15791 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
15792
15793 * gnu.h: Rename to ...
15794 * emacs-icon.h: ... this.
15795 * xterm.c: Use emacs-icon.h instead of gnu.h.
15796 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
15797
157982008-03-03 Juanma Barranquero <lekktu@gmail.com>
15799
15800 * w32font.c: Include math.h.
15801
158022008-03-03 Jason Rumney <jasonr@gnu.org>
15803
15804 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
15805 Compute options separately.
15806 (w32font_open_internal): Set glyph_idx before caching metrics.
15807
15808 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
15809 Define if system headers don't.
15810 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
15811 (w32font_encode_char): Don't declare here.
15812
15813 * w32font.c (Quniscribe, QCformat): New symbols.
15814 (syms_of_w32font): Define them.
15815 (w32font_has_char): Indicate uncertainty.
15816 (w32font_encode_char): Encode as glyph point. Make static.
15817 (recompute_cached_metrics): New function.
15818 (w32font_open_internal): Use it. Set font to use glyph points
15819 initially. Set format based on type of font.
15820 (w32font_text_extents, w32font_draw): Optionally use glyph points.
15821 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
15822 on it. Set format based on information available here.
15823 (add_font_entity_to_list): Identify backend based on opentype_only.
15824
158252008-03-02 Andreas Schwab <schwab@suse.de>
15826
15827 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
15828
15829 * coding.c (decode_coding_big5, produce_chars):
15830 Fix typos in last change.
15831
158322008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
15833
15834 * gnu.h: New icon.
15835
158362008-03-02 Kenichi Handa <handa@m17n.org>
15837
15838 * coding.c (decode_coding_utf_8): When eol-type of CODING is
15839 `dos', don't decode '\r' if that is the last in the source.
15840 (decode_coding_utf_16, decode_coding_emacs_mule)
15841 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15842 (decode_coding_raw_text, decode_coding_charset): Likewise.
15843 (produce_chars): Don't decode EOL here. Use EMACS_INT.
15844
158452008-03-01 Jason Rumney <jasonr@gnu.org>
15846
15847 * w32font.c (w32font_full_name): Report point size for scalable fonts.
15848
158492008-03-01 Kim F. Storm <storm@cua.dk>
15850
15851 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
15852
158532008-03-01 Jason Rumney <jasonr@gnu.org>
15854
15855 * w32font.c (w32font_full_name): New function.
15856 (w32font_open_internal): Use it.
15857
158582008-03-01 Kim F. Storm <storm@cua.dk>
15859
15860 * dispnew.c (line_draw_cost): Fix invalid glyph check.
15861
158622008-03-01 Jason Rumney <jasonr@gnu.org>
15863
15864 * font.c (font_unparse_fcname): Increase len when style is a symbol.
15865
158662008-03-01 Jan Djärv <jan.h.d@swipnet.se>
15867
15868 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
15869 xg_frame_resized when the event is for the edit widget.
15870
15871 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
15872
15873 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
15874 set_char_size.
15875 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
15876 operations on widgets here. Just set frame size if needed.
15877 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
15878 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
15879 (x_wm_set_size_hint): Set size hints on the edit widget only, not
15880 the whole frame.
15881 (xg_create_tool_bar): Move attachment of the tool bar to
15882 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
15883 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
15884
158852008-03-01 Jason Rumney <jasonr@gnu.org>
15886
15887 * w32fns.c (w32_msg_pump): Disable debug code.
15888
158892008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15890
15891 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
15892
158932008-02-29 Chong Yidong <cyd@stupidchicken.com>
15894
15895 * xdisp.c (next_overlay_string): Don't set
15896 overlay_strings_at_end_processed_p if we're currently reading from
15897 a display string.
15898
158992008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
15900
15901 * xdisp.c (get_overlay_strings_1): Fix typo.
15902
159032008-02-29 Chong Yidong <cyd@stupidchicken.com>
15904
15905 * xdisp.c (get_overlay_strings_1): Add missing argument type.
15906
159072008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
15908
15909 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
15910
15911 * xdisp.c (display_mode_element): Cancel the previous change.
15912 (decode_mode_spec): Likewise.
15913 (handle_auto_composed_prop): Don't make composition if it->string
15914 is a string.
15915
159162008-02-27 Kim F. Storm <storm@cua.dk>
15917
15918 * lisp.h (GLYPH): Change type from int to struct with separate char
15919 and face_id members.
15920 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
15921 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
15922 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
15923 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
15924 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
15925 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
15926 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
15927 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
15928 handle new Lisp glyph code encoding, either an integer or a cons.
15929
15930 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
15931 (GLYPH_ALIAS): Delete.
15932 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
15933 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
15934 (GLYPH_FROM_CHAR): Replace macro by ...
15935 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
15936
15937 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
15938 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
15939 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
15940 (GLYPH_INVALID_P): New macro.
15941 (spec_glyph_lookup_face): Update prototype.
15942
15943 * dispnew.c (line_draw_cost): Adapt to new glyph type.
15944 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
15945 new glyph code encoding.
15946 (spec_glyph_lookup_face): No return value; update passed glyph instead.
15947 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
15948
15949 * xdisp.c (get_next_display_element, next_element_from_display_vector):
15950 Adapt to new glyph type and new glyph code encoding.
15951
15952 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
15953
15954 * indent.c (current_column, current_column_1, Fmove_to_column)
15955 (compute_motion): Adapt to new glyph code encoding.
15956
15957 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
15958
159592008-02-27 Chong Yidong <cyd@stupidchicken.com>
15960
15961 * process.c (wait_reading_process_output): Check for window
15962 changes caused by timers.
15963 Suggested by Johan Bockgård.
15964
159652008-02-27 Glenn Morris <rgm@gnu.org>
15966
15967 * emacs.c (USAGE1): Add `--disable-font-backend'.
15968
159692008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
15970
15971 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
15972 is made to the buffer.
15973
159742008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
15975
15976 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
15977 (face_at_string_position):
15978 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
15979 (face_at_string_position):
15980 * xdisp.c (display_string, next_overlay_change):
15981 * buffer.h (overlays_at):
15982 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
15983 Update callers.
15984
159852008-02-26 Chong Yidong <cyd@stupidchicken.com>
15986
15987 * editfns.c (Fformat): Doc fix.
15988
159892008-02-26 Juanma Barranquero <lekktu@gmail.com>
15990
15991 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
15992 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
15993 (Ffont_otf_alternates, Fquery_font): Doc fixes.
15994
159952008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15996
15997 * buffer.c (Fbuffer_swap_text): New function.
15998 (syms_of_buffer): Defsubr it.
15999
160002008-02-25 Chong Yidong <cyd@stupidchicken.com>
16001
16002 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
16003
160042008-02-25 Jason Rumney <jasonr@gnu.org>
16005
16006 * w32font.c (w32font_draw): Draw one character at a time when padding.
16007
160082008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16009
16010 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
16011 Handle a nil arg. Use run_window_configuration_change_hook.
16012 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
16013 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
16014 Use run_window_configuration_change_hook.
16015
160162008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16017
16018 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
16019 1-pixel width.
16020
160212008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16022
16023 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
16024 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
16025 if the glyph in the font is zero pixel with.
16026
16027 * dispextern.h (struct glyph_string): New member padding_p.
16028
16029 * w32font.c (w32font_draw): Pay attention to s->padding_p.
16030
16031 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
16032
16033 * xfont.c (xfont_draw): Pay attention to s->padding_p.
16034
16035 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
16036
16037 * font.c: If the font driver doesn't have `shape' function, return Qnil.
16038
160392008-02-25 Jason Rumney <jasonr@gnu.org>
16040
16041 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16042
160432008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
16044
16045 Allow fine-grained image-cache flushing.
16046 * dispextern.h (struct image): Add `dependencies' field.
16047 (clear_image_caches): Change arg to Lisp_Object.
16048 * image.c (make_image): Initialize `dependencies' field.
16049 (clear_image_cache): Change arg to allow fine-grained flushing.
16050 Perform the flush even if image-cache-eviction-delay is nil.
16051 (clear_image_caches): Change arg to Lisp_Object.
16052 (Fclear_image_cache): Expand meaning of the argument.
16053 (mark_image): Mark `dependencies' field.
16054 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
16055 (lface_hash): Use XHASH rather than XFASTINT.
16056 (face_at_buffer_position): Fix int -> EMACS_INT position.
16057 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
16058 (select_frame_for_redisplay): Remove code duplication.
16059 (redisplay_internal): Adapt arg to call to clear_image_caches.
16060
160612008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
16062
16063 * s/vms4-0.h:
16064 * s/vms4-2.h:
16065 * s/vms4-4.h:
16066 * s/vms5-5.h: Remove, unused.
16067
16068 * s/irix5-2.h:
16069 * s/irix6-0.h:
16070 * s/riscos5.h:
16071 * s/mach-bsd4-3.h:
16072 * m/mips4.h: Remove files for obsolete systems.
16073
16074 * Makefile.in:
16075 * filelock.c:
16076 * unexmips.c:
16077 * m/hp9000s300.h:
16078 * m/iris4d.h:
16079 * s/aix3-1.h:
16080 * s/hpux.h:
16081 * s/msdos.h:
16082 * s/usg5-0.h:
16083 * s/usg5-2-2.h:
16084 * s/usg5-2.h:
16085 * s/usg5-3.h: Remove references to obsolete variables.
16086
16087 * s/irix5-0.h: Remove, move all the contents ...
16088 * s/irix6-5.h: ... here. Simplify.
16089 * config.in: Regenerate.
16090
160912008-02-24 Jason Rumney <jasonr@gnu.org>
16092
16093 * w32term.c (x_draw_glyph_string_background): Clear the background
16094 manually when cleartype is in use.
16095 (x_draw_glyph_string_foreground): Draw text transparently when
16096 cleartype is in use.
16097
16098 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
16099 a font into it unless we have to.
16100
161012008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16102
16103 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
16104 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 16105
aac0c6e3
MR
161062008-02-18 Jason Rumney <jasonr@gnu.org>
16107
16108 * w32fns.c (Fw32_shell_execute): Encode parameters.
16109
161102008-02-09 Eli Zaretskii <eliz@gnu.org>
16111
16112 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
16113
161142008-02-05 Juanma Barranquero <lekktu@gmail.com>
16115
16116 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
16117
161182008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
16119
16120 * xterm.c (x_set_offset): Don't change the gravity if
16121 CHANGE_GRAVITY is -1.
16122
161232008-02-23 Chong Yidong <cyd@stupidchicken.com>
16124
16125 * fileio.c (auto_save_error_occurred): New var.
16126 (auto_save_error): Set it.
16127 (Fdo_auto_save): Don't overwrite the error message if an auto-save
16128 error occurred.
16129
161302008-02-23 Eli Zaretskii <eliz@gnu.org>
16131
16132 * w32.c (globals_of_w32): Add initializations for
16133 g_b_init_get_sid_sub_authority and
16134 g_b_init_get_sid_sub_authority_count.
16135
161362008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
16137
16138 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
16139 (font_parse_xlfd): Use them for sanity check.
16140 (Finternal_set_font_style_table): Make sure the table is bijective.
16141
16142 Consolidate the image_cache to the terminal struct.
16143 * termhooks.h (P_): Remove redundant def.
16144 (struct terminal): New field `image_cache'.
16145 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
16146 of FRAME_X_IMAGE_CACHE.
16147 * xterm.h (struct x_display_info): Remove image_cache field.
16148 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16149 * w32term.h (struct w32_display_info): Remove image_cache field.
16150 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16151 * macterm.h (struct mac_display_info): Remove image_cache field.
16152 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16153 * xterm.c (x_term_init):
16154 * w32term.c (w32_term_init):
16155 * macterm.c (mac_term_init): Set the image_cache in the terminal.
16156 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
16157 Remove declarations.
16158 (clear_image_caches, mark_image_cache): New declarations.
16159 * xfaces.c (clear_face_cache):
16160 * xdisp.c (redisplay_internal): Use clear_image_caches.
16161 * image.c (clear_image_cache): Don't check that a frame is on
16162 a window-system before checking if it shares the same cache.
16163 (clear_image_caches): New function.
16164 (Fclear_image_cache): Use it.
16165 (mark_image): Move from allo.c.
16166 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
16167 * alloc.c (mark_image, mark_image_cache): Move to image.c.
16168 (mark_object): Don't call mark_image_cache for frames.
16169 (mark_terminals): Call mark_image_cache.
16170
16171 * lisp.h (Fdelete_terminal): Declare.
16172
16173 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
16174 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
16175 wrong_type_argument.
16176
161772008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
16178
16179 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
16180 malayalam.el, and tamil.el. Add sinhala.el.
16181
161822008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
16183
16184 * xterm.c (x_connection_closed): Consolidate identical tests.
16185 (x_delete_terminal): Don't crash if called via x_connection_closed.
16186
161872008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
16188
16189 * xdisp.c (decode_mode_spec): New arg string.
16190 (display_mode_element): Adjust for the above change.
16191
161922008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16193
16194 * callint.c (Fcall_interactively): Use AREF.
16195
161962008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
16197
16198 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
16199
162002008-02-18 Jan Djärv <jan.h.d@swipnet.se>
16201
16202 * xfns.c (Fx_show_tip): Set string to " " if empty.
16203
162042008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
16205
16206 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
16207 with Qt.
16208
162092008-02-17 Kenichi Handa <handa@m17n.org>
16210
16211 * ftfont.c (ftfont_shape): Return Lispy number.
16212
16213 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
16214 for GCs.
16215 (Finternal_set_font_selection_order): Call font_update_sort_order
16216 only when enable_font_backend is set.
16217 (realize_x_face): Set face->font_info to that of default face only
16218 when enable_font_backend is set.
16219
16220 * xdisp.c (handle_composition_prop): Set it->c to the fist
16221 character of the composed region.
16222 (fill_composite_glyph_string): Set base_face->font_info to
16223 s->font_info. Get a face for ascii from base_face->ascii_face.
16224 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
16225 with a face already decided.
16226 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
16227 non-negative.
16228 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
16229 call font_prepare_composition unconditionally.
16230
16231 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
16232
16233 * xterm.h (struct x_display_info): New member font.
16234
16235 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
16236 (x_set_mouse_face_gc, x_new_font): Likewise.
16237 (x_term_init): Setup display_info->font.
16238 (x_delete_terminal): Free display_info->font.
16239
16240 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
16241
16242 * ftxfont.c (ftxfont_default_fid): Delete it.
16243 (ftxfont_open): Set xfont->fid to 0.
16244 (ftxfont_end_for_frame): Clear data specific to the frame and the
16245 font-driver.
16246
16247 * xftfont.c (xftfont_default_fid): Delete it.
16248 (xftfont_open): Set xfont->fid to 0.
16249
16250 * fontset.c (FONTSET_OBJLIST): New macro.
16251 (fontset_find_font): Update font-object list of the fontset.
16252 (free_realized_fontset): New function.
16253 (free_face_fontset): Call free_realized_fontset.
16254 (Ffont_info): Call font_close_object only when enable_font_backend
16255 is set.
16256
16257 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
16258 [HAVE_NTGUI]: Include w32term.h.
16259 [MAC_OS]: Include macterm.ch.
16260 (font_otf_ValueRecord): Use make_number.
16261 (font_finish_cache): Fix handling of reference count.
16262 (font_clear_cache): Update num_fonts.
16263 (font_open_entity): Update smallest_char_width and
16264 smallest_font_height of the frame.
16265 (font_close_object): Update num_fonts.
16266 (Fclear_font_cache): Fix finding the target cache data.
16267
162682008-02-16 Glenn Morris <rgm@gnu.org>
16269
16270 * fontset.c (Finternal_char_font): Fix compilation warning.
16271
162722008-02-16 Eli Zaretskii <eliz@gnu.org>
16273
16274 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
16275 instead of char arrays. Enlarge the size of array passed to
16276 get_token_information.
16277
16278 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
16279 warnings.
16280
162812008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
16282
16283 * .gdbinit: Don't set `args', it breaks gdb --args.
16284
162852008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
16286
16287 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
16288 within a narrowed buffer.
16289
162902008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
16291
16292 * coding.c (decode_coding_object, encode_coding_object):
16293 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
16294
162952008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
16296
16297 * coding.c (coding_set_destination): Use BEG_BYTE rather than
16298 hardcoding 1.
16299 (detect_coding_system):
16300 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
16301 (string_char_to_byte, string_byte_to_char, insert_from_gap):
16302 * insdel.c (insert_from_gap):
16303 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
16304 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
16305 (string_to_multibyte):
16306 * character.c (chars_in_text, multibyte_chars_in_text):
16307 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
16308
16309 * character.h (FETCH_STRING_CHAR_ADVANCE)
16310 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
16311 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
16312 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
16313
16314 * casefiddle.c (casify_region): Only call after-change and composition
16315 functions on the part of the region that was changed.
16316
16317 * keyboard.c (read_avail_input):
16318 * frame.c (Fdelete_frame): Call Fdelete_terminal.
16319
163202008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16321
16322 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
16323 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
16324
163252008-02-11 Juanma Barranquero <lekktu@gmail.com>
16326
16327 * w32menu.c (push_submenu_start, push_submenu_end)
16328 (push_left_right_boundary, push_menu_pane, push_menu_item):
16329 * keyboard.c (read_key_sequence): Don't pass args with side effects
16330 to AREF, it fails when compiling with -DENABLE_CHECKING.
16331
163322008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
16333
16334 * Makefile.in (${lispsource}international/charprop.el):
16335 Delete this target.
16336
16337 * search.c (boyer_moore): Fix incorrect synching of the trunk and
16338 emacs-unicode-2.
16339
163402008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16341
16342 * terminal.c (Fdelete_terminal): Clean up the `force' path.
16343
163442008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16345
16346 * frame.c (Qnoelisp): New symbol.
16347 (syms_of_frame): Initialize it.
16348 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
16349 harmless Elisp code, from a strong `force' from x_connection_closed.
16350 * frame.h (Qnoelisp): Declare.
16351 * xterm.c (x_connection_closed): Pass `noelisp'.
16352
16353 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
16354 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
16355 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
16356 rather than `int' for the type of `type'.
16357
163582008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
16359
16360 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
16361
16362 * Makefile.in (GNUC): Remove support for gcc-1.x.
16363
163642008-02-10 Richard Stallman <rms@gnu.org>
16365
16366 * lisp.h (ASET): Use AREF, not ASLOT.
16367
163682008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16369
16370 * lisp.h (ASET): Check bounds.
16371
163722008-02-10 Glenn Morris <rgm@gnu.org>
16373
16374 * buffer.c (mode-name): Doc fix.
16375
163762008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16377
16378 * Makefile.in:
16379 * emacs.c:
16380 * gmalloc.c:
16381 * keyboard.c:
16382 * lisp.h:
16383 * m/ibm370aix.h:
16384 * process.c:
16385 * regex.c:
16386 * s/hpux.h:
16387 * sysdep.c:
16388 * sysselect.h:
16389 * systty.h:
16390 * unexec.c:
16391 * w32term.c:
16392 * xsmfns.c:
16393 * xterm.c: Remove code that deals with obsolete variables.
16394
16395 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
16396
16397 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
16398 nothing else needs it anymore.
16399
164002008-02-09 Eli Zaretskii <eliz@gnu.org>
16401
16402 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
16403 instead of unibyte_char_to_multibyte.
16404
164052008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16406
16407 * s/gnu-linux.h: Remove commented out code.
16408
16409 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
16410
16411 * Makefile.in: Update what RMS says about using autoconf.
16412 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
16413 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
16414 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
16415 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
16416
164172008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
16418
16419 * keymap.c (Fkey_description): Move side effect outside of macro call.
16420
16421 * xfaces.c (Finternal_make_lisp_face):
16422 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
16423
16424 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
16425 (syms_of_fontset): Use ASET.
16426
16427 * fns.c (concat): Move side effect outside of macro call.
16428 (hash_clear): Use ASET.
16429
164302008-02-08 Richard Stallman <rms@gnu.org>
16431
16432 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
16433 If FORCE, and frame has a surrogate minibuffer for another frame,
16434 delete the other frame first.
16435
164362008-02-07 Timo Savola <timo.savola@iki.fi>
16437
16438 * xterm.c (x_detect_focus_change): Handle embed client message.
16439 (handle_one_xevent): Ditto.
16440 (handle_one_xevent): If embedded and we get a button press/release,
16441 request focus.
16442 (xembed_set_info, xembed_send_message): New functions.
16443 (x_make_frame_visible): Call xembed_set_info if embedded.
16444 (x_make_frame_invisible): Call xembed_set_info if embedded.
16445 (x_term_init): Initialize Xatom_XEMBED.
16446 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
16447 (x_iconify_frame): Ditto.
16448
16449 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
16450 (enum xembed_info, enum xembed_message, enum xembed_focus)
16451 (enum xembed_modifier, enum xembed_accelerator): New.
16452 (xembed_set_info, xembed_send_message): Declare.
16453 (FRAME_X_EMBEDDED_P): New.
16454
16455 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
16456 gtk_plug_new.
16457
16458 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
16459 window ID of a frame.
16460 (x_window): Reparent frame if embedded.
16461 (Fx_create_frame): Don't set border width if embedded.
16462
16463 * emacs.c (USAGE3): Add --parent-id.
16464 (standard_args): Ditto.
16465
164662008-02-07 Jan Djärv <jan.h.d@swipnet.se>
16467
16468 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
16469
164702008-02-07 Jim Meyering <meyering@redhat.com>
16471
16472 Use "do...while (0)", not "if (1)...else" in macro definitions.
16473 The latter provokes a warning from gcc about the empty else, when
16474 followed by ";". Also, without that trailing semicolon, it would
16475 silently swallow up any following statement.
16476 * syntax.h (SETUP_SYNTAX_TABLE)
16477 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
16478 * buffer.h (DECODE_POSITION): Likewise.
16479 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
16480 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
16481 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
16482 (FETCH_CHAR_ADVANCE): Likewise.
16483 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
16484
164852008-02-07 Jim Meyering <meyering@redhat.com>
16486
16487 * lread.c [lint]: Don't include <sys/inode.h>.
16488
164892008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
16490
16491 * xselect.c (x_handle_dnd_message):
16492 * xmenu.c (digest_single_submenu, xmenu_show):
16493 * xdisp.c (with_echo_area_buffer_unwind_data)
16494 (format_mode_line_unwind_data, unwind_format_mode_line)
16495 (display_menu_bar):
16496 * eval.c (Ffetch_bytecode):
16497 * doc.c (store_function_docstring):
16498 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
16499 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
16500 * buffer.c (add_overlay_mod_hooklist): Use ASET.
16501
165022008-02-07 Kenichi Handa <handa@m17n.org>
16503
16504 * ftxfont.c (ftxfont_open): Don't set
16505 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
16506
16507 * ftfont.c (ftfont_open): Fix previous change.
16508
165092008-02-06 Jason Rumney <jasonr@gnu.org>
16510
16511 * w32font.c (w32font_text_extents): Fill in lbearing metric.
16512 Use cached metrics for ASCII characters.
16513 (w32font_open_internal): Don't set font's owning_frame.
16514 Cache metrics for ASCII characters.
16515
16516 * w32font.h (struct w32font_info): Add ascii_metrics.
16517 Remove owning_frame.
16518
165192008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
16520
16521 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
16522 to negative value.
16523
16524 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
16525
16526 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
16527
16528 * charset.c (syms_of_charset): Set QCtest and Qeq.
16529
165302008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
16531
16532 * process.c (Fstart_process):
16533 * callproc.c (Fcall_process): Handle the case where
16534 Funhandled_file_name_directory returns nil.
16535
16536 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
16537 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
16538 * font.c (check_gstring): Use them and AREF to access the vector before
16539 we know it's really a gstring.
16540 (Ffont_shape_text): Fix typo.
46e722a9 16541 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
16542
16543 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
16544 Declare.
16545
16546 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
16547
165482008-02-05 Jason Rumney <jasonr@gnu.org>
16549
16550 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
16551 Set smallest_font_height and smallest_char_width in display info.
16552
165532008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
16554
16555 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
16556
165572008-02-05 Miles Bader <miles@gnu.org>
16558
16559 * xfaces.c (get_lface_attributes, merge_named_face)
16560 (lookup_named_face, lookup_derived_face, realize_named_face):
16561 Revert 2008-02-01 change by cyd@stupidchicken.com.
16562
165632008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
16564
16565 * fontset.c (Ffontset_info): Handle the case of inhibitting the
16566 fallback fonts.
16567 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
16568
165692008-02-04 Jason Rumney <jasonr@gnu.org>
16570
16571 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
16572 set full_name.
16573 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
16574
165752008-02-03 Jason Rumney <jasonr@gnu.org>
16576
16577 * makefile.w32-in (OBJ1): Include font.o here.
16578 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
16579
165802008-02-02 Jason Rumney <jasonr@gnu.org>
16581
16582 * makefile.w32-in (temacs): Bump EMHEAP to 21.
16583
165842008-02-01 Jason Rumney <jasonr@gnu.org>
16585
16586 * s/cygwin.h: Define VIRT_ADDR_VARIES.
16587
16588 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
16589
165902008-02-01 Andreas Schwab <schwab@suse.de>
16591
16592 * Makefile.in (shortlisp, lisp): Update for rename of
16593 ../lisp/language/myanmar.el.
16594
165952008-02-01 Chong Yidong <cyd@stupidchicken.com>
16596
16597 * xfaces.c (get_lface_attributes): Delete function.
16598 (merge_named_face, lookup_named_face, lookup_derived_face)
16599 (realize_named_face): Call lface_from_face_name directly, and use
16600 the fact that merge_face_vectors does not alter its FROM argument.
16601
166022008-02-01 Jason Rumney <jasonr@gnu.org>
16603
16604 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
16605 input in the default locale. Handle non-Unicode multibyte input.
16606
166072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16608
16609 * fontset.c (reorder_font_vector): Exclude nil elements from the
16610 font group. Don't try multiple fonts.
16611 (fontset_font): Adjust for the above change.
16612 (Finternal_char_font): Return nil if the found font doesn't
16613 contain the character ch.
16614
16615 * Makefile.in (lisp, shortlisp): Add cham.el.
16616
166172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16618
16619 * font.h (FONTP): Make it return 1 also for a font-object.
16620
16621 * .gdbinit (xfontset): New function.
16622
16623 * font.c (font_find_for_lface): Check if the character C is
16624 supported or not only for the first font.
16625
16626 * fontset.c (reorder_font_vector): Fix typo.
16627 (fontset_find_font): Don't add a font-spec specifying a script.
16628 Use 0 (not Qt) for the indication of empty font-group. Change the
16629 format of RFONT-DEF. Return Qt if no font in the font-group
16630 support the character.
16631 (fontset_font): Adjust for the above change. If no font was
16632 found the character, remember that.
16633 (face_for_char): Adjust for the change of RFONT-DEF.
16634 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
16635 no font for the target.
16636 (Finternal_char_font): Adjust for the change of RFONT-DEF.
16637
166382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16639
16640 * font.c (font_load_for_face): Handle the case that the font in
16641 face->lface is a string.
16642
166432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16644
16645 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
16646
166472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16648
16649 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
16650 Fix previous change. If the frame is not on a window system,
16651 signal an error.
16652
166532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16654
16655 * coding.c (decode_coding_object, encode_coding_object): Adjust
16656 marker positions after conversion.
16657
16658 * lisp.h (struct Lisp_Marker): New member need_adjustment.
16659
166602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16661
16662 * font.c (font_find_for_lface): Fix the handling of the return
16663 value of font_has_char.
16664 (Ffont_shape_text): Fix previous change.
16665
16666 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
16667 (fontset_ref_and_range): Delete it.
16668 (fontset_find_font): Call char_table_ref_and_range instead of
16669 FONTSET_REF_AND_RANGE.
16670 (make_fontset): Don't setup font groups of Latin here.
16671 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
16672 (new_fontset_from_font): Make the specified font the default for
16673 all Latin characters.
16674
166752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16676
16677 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
16678 is on a window system before accessing the fontset of the frame.
16679
166802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16681
16682 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
16683
16684 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
16685 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
16686
16687 * font.c (Ffont_shape_text): If the font driver doesn't have a
16688 shaper function, make zero-width glyphs to have at least one-pixel
16689 width. Fix setting of `to' field of glyphs.
16690
166912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16692
16693 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
16694 glyphs.
16695
16696 * font.h (struct font_driver): Improve docstring of member `shape'.
16697
166982008-02-01 Kenichi Handa <handa@m17n.org>
16699
16700 * composite.c (syms_of_composite): Fix docstring of
16701 auto-composition-function.
16702
16703 * font.h (LGLYPH_SIZE): New macro.
16704
16705 * font.c (Ffont_fill_gstring): Stop filling when a character not
16706 supported by the font is found.
16707 (Ffont_shape_text): When a shape callback function returns nil,
16708 try at most two more times with larger gstring.
16709 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
16710
16711 * xdisp.c (handle_auto_composed_prop): Change the argument to
16712 auto-composition-function.
16713
16714 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
16715 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
16716 Lispy glyph and store it in the lgstring.
16717
16718 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
16719
16720 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
16721
167222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16723
16724 * font.c (Ffont_shape_text): Avoid unnecessary composition.
16725
16726 * fontset.c (Vfont_encoding_charset_alist): New variable.
16727 (syms_of_fontset): DEFVAR it.
16728 (reorder_font_vector, fontset_find_font): Optimize for the case of
16729 no need of reordering.
16730 (face_for_char): Map the charset property by
16731 Vfont_encoding_charset_alist.
16732
167332008-02-01 Jason Rumney <jasonr@gnu.org>
16734
16735 * w32font.c (logfonts_match): Don't check adstyle here.
16736 (font_matches_spec): Check here against physical font instead.
16737 (add_font_entity_to_list): Avoid some substitutions.
16738
16739 * font.c (font_parse_fcname): Default weight and slant to normal.
16740 (font_score): Prefer normal fonts if weight or slant unspecified.
16741 (font_score) [WINDOWSNT]: Scale weight difference down to closer
16742 match freetype scores.
16743
167442008-02-01 Jason Rumney <jasonr@gnu.org>
16745
16746 * w32font.c (w32font_text_extents): Don't use the frame stored in the
16747 font, as it may have been deleted.
16748 (w32_enumfont_pattern_entity): Map generic family to adstyle using
16749 most common hyphenless variation.
16750 (logfonts_match): Check generic family.
16751 (font_matches_spec): Don't check generic family here.
16752 (fill_in_logfont): Set generic family based on adstyle.
16753
16754 * w32font.h (w32font_get_cache): Update declaration.
16755
167562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16757
16758 * ftfont.c (ftfont_get_cache): Adjust the argument type.
16759
16760 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
16761 If none of the new drivers are available, call font_update_drivers
16762 with the old drivers.
16763
16764 * w32font.c (w32font_get_cache): Adjust the argument type.
16765
16766 * xfont.c (xfont_get_cache): Adjust the argument type.
16767
16768 * font.h (struct font_driver): Change argument type of get_cache.
16769
16770 * xftfont.c (xftfont_start_for_frame): Delete prototype.
16771
16772 * font.c (Ffont_get): Fix arguments to Fassoc.
16773 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
16774 (font_clear_cache): New function.
16775 (font_list_entities, font_matching_entity): Use font_get_cache.
16776 (font_update_drivers): Call font_clear_cache when finishing a driver.
16777
16778 * fontset.c (fontset_find_font): Fix previous change.
16779
167802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16781
16782 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
16783 dpyinfo->font_table.
16784 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
16785 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
16786
16787 * font.c (font_at): Handle the case that the arg C is negative.
16788 Handle the unibyte case.
16789 (Ffont_at): Call font_at with the arg C -1.
16790
16791 * xdisp.c (handle_auto_composed_prop): Don't get a character at
16792 the position here, and call font_at with the arg C -1.
16793 Don't check the range of the existing composition at the point.
16794
167952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16796
16797 * fontset.c (fontset_add): New args charset_id and family.
16798 Change caller.
16799 (load_font_get_repertory, fontset_find_font): Assume that
16800 font_spec is always a font-spec object.
16801 (Fset_fontset_font): Always store a font-spec object in a fontset.
16802
16803 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
16804 instead of get_property_and_range.
16805
168062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16807
16808 * xftfont.c (struct xftfont_info): Delete the member ft_face.
16809 (xftfont_open): Don't keep locking face.
16810 (xftfont_close): Don't unlock face.
16811 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
16812
16813 * fontset.c (fontset_find_font): Don't prefer a font of
16814 supplementary charset.
16815
168162008-02-01 Kenichi Handa <handa@m17n.org>
16817
16818 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
16819 script, langsys_tag to langsys, new member script.
16820 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 16821 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
16822 listing to the script specified in that property. Fix arg to
16823 OTF_check_features.
16824
168252008-02-01 Jason Rumney <jasonr@gnu.org>
16826
16827 * w32font.h: New file.
16828
16829 * w32font.c: Include it.
16830 (struct w32font_info): Add owning_frame field. Move to w32font.h.
16831 (w32font_open): Set owning_frame.
16832 (w32font_text_extents): Use owning_frame.
16833 (struct font_callback_data): Add opentype_only field.
16834 (add_font_entity_to_list): Use it to filter fonts.
16835 Don't check against full name.
16836 (w32font_list_internal): New function.
16837 (w32font_list): Use it.
16838 (w32font_match_internal): New function.
16839 (w32font_match): Use it.
16840 (w32font_open_internal): New function.
16841 (w32font_open): Use it.
16842 (w32font_get_cache, w32font_close, w32font_has_char)
16843 (w32font_encode_char, w32font_text_extents, w32font_draw):
16844 Make non-static.
16845
16846 * makefile.w32-in (w32font.o): Depend on w32font.h.
16847
168482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16849
16850 * charset.c (Fdefine_charset_internal): Record a supplementary
16851 charset at the tail of Vcharset_order_list.
16852
16853 * font.c (Ffont_shape_text): Fix the return value.
16854
16855 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
16856
16857 * xdisp.c (handle_auto_composed_prop): Fix previous change.
16858
168592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16860
16861 * ftfont.c (struct OpenTypeSpec): New struct.
16862 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
16863 (ftfont_get_open_type_spec): New function.
16864 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
16865
16866 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
16867
168682008-02-01 Jason Rumney <jasonr@gnu.org>
16869
16870 * w32font.c (add_font_entity_to_list): Compare only the beginning
16871 of full name.
16872
168732008-02-01 Kenichi Handa <handa@m17n.org>
16874
16875 * xdisp.c (handle_auto_composed_prop): Simplify the code.
16876 Never return HANDLED_RECOMPUTE_PROPS.
16877
168782008-02-01 Kenichi Handa <handa@m17n.org>
16879
16880 * font.c (font_gstring_produce): Delete it.
16881
16882 * composite.h (COMPOSITION_METHOD):
16883 Handle COMPOSITION_WITH_GLYPH_STRING.
16884
168852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16886
16887 * xfont.c (Qx): Delete.
16888 (syms_of_xfont): Don't initialize Qx.
16889
16890 * composite.h (enum composition_method):
16891 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
16892
168932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16894
16895 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
16896 (choose_face_font): Accept new form of font-spec.
16897
16898 * frame.h (font_driver_list): Declare it unconditionally.
16899 (struct frame): Define members font_driver_list and font_data_list
16900 unconditionally.
16901
16902 * fontset.c: Include "font.h" unconditionally.
16903 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
16904 (Fset_fontset_font): Accept a font-spec object.
16905
16906 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
16907 PIXEL_SIZE part a wild card.
16908
16909 * dispextern.h (struct glyph_string): Define members clip and
16910 num_clips unconditionally.
16911 (struct face): Define members font_info and extra unconditionally.
16912
16913 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
16914 ftfont_info only when HAVE_LIBOTF is defined.
16915
169162008-02-01 Andreas Schwab <schwab@suse.de>
16917
16918 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
16919 and end.
16920
169212008-02-01 Jason Rumney <jasonr@gnu.org>
16922
16923 * w32font.c (w32font_driver): Add new fields.
16924
169252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16926
16927 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
16928 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
16929 (LIBES): Add @M17N_FLT_CFLAGS@.
16930
16931 * composite.c (compose_text): Don't treat the new style
16932 composition specially.
16933
16934 * emacs.c (main): Call syms_of_font unconditionally.
16935
16936 * font.h (FONT_ENTITY_NOT_LOADABLE)
16937 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
16938 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
16939 (struct font_driver): New member shape.
16940 (font_registry_charsets): Extern it.
16941 (font_find_for_lface, font_prepare_composition): Adjust prototype.
16942 (font_otf_capability, font_drive_otf): Delete their externs.
16943
16944 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
16945 (font_charset_alist, font_registry_charsets): Move from xfont.c
16946 and rename.
16947 (font_prop_validate_otf): New function.
16948 (font_property_table): Register it for QCotf.
16949 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
16950 (font_drive_otf): Delete.
16951 (font_prepare_composition): New arg F. Adjust for the change of
16952 lispy gstring.
16953 (font_find_for_lface): New arg C.
16954 (font_load_for_face): Adjust for the change of font_find_for_lface.
16955 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
16956 lispy gstring.
16957 (Ffont_shape_text): New function.
16958 (Fopen_font): If the font size is not given, use 12-pixel.
16959 (Ffont_at): New arg STRING.
16960 (syms_of_font): Initalize font_charset_alist.
16961 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
16962 conditionally.
16963
16964 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
16965 fonts of the same font-spec. Change the format of RFONT-DEF.
16966 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
16967 Adjust for the change of RFONT-DEF.
16968 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
16969
16970 * ftfont.h: New file.
16971
16972 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
16973 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16974 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16975 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
16976 font_otf_capability and font_drive_otf, set ftfont_shape.
16977 (ftfont_list): Adjust for the change of :otf property value.
16978 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
16979 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
16980 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
16981 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16982 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
16983 (otf_gstring, gstring, m17n_flt_initialized): New variables.
16984
16985 * w32term.c (x_draw_composite_glyph_string_foreground):
16986 Adjust for the change of lispy gstring.
16987
16988 * xdisp.c (handle_composition_prop): Adjust for the change of
16989 lispy gstring. Call a function for auto-composition with the
16990 third arg it->window.
16991 (fill_composite_glyph_string): Adjust for the change of lispy string.
16992 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
16993
16994 * xfaces.c (set_font_frame_param): Adjust for the change of
16995 font_find_for_lface.
16996
16997 * xfont.c (x_font_charset_alist): Move to font.c and rename.
16998 (xfont_registry_charsets): Likewise. Change caller.
16999 (syms_of_xfont): Don't handle x_font_charset_alist.
17000
17001 * xftfont.c: Include "ftfont.h".
17002 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17003 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17004 (xftfont_close) [HAVE_LIBOTF]: Close otf.
17005 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17006 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
17007 Set xftfont_driver.shape to xftfont_shape.
17008
17009 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17010 the change of lispy gstring.
17011
170122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17013
17014 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
17015
170162008-02-01 Jason Rumney <jasonr@gnu.org>
17017
17018 * w32font.c (w32font_draw): Fill background manually.
17019
170202008-02-01 Jason Rumney <jasonr@gnu.org>
17021
17022 * font.c (Qfontp): Remove unused symbol.
17023 (QCantialias): New symbol.
17024 (syms_of_font): Define it.
17025 (font_property_table): Set a validator for QCantialias.
17026
17027 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
17028 Define if not already.
17029 (QCfamily): Share with xfaces.c.
17030 (Qstandard, Qsubpixel, Qnatural): New symbols.
17031 (syms_of_w32font): Define them. Don't define QCfamily here.
17032 (w32_antialias_type, lispy_antialias_type): New functions.
17033 (w32_enumfont_pattern_entity): New arg requested_font.
17034 Set antialias parameter if non-default was requested.
17035 (fill_in_logfont): Fill in lfQuality if :antialias specified.
17036
170372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17038
17039 * lread.c (read1): Undo the previous change.
17040
170412008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
17042
17043 * frame.c (Fdelete_frame): Call font_update_drivers only when
17044 USE_FONT_BACKEND is defined.
17045
170462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17047
17048 * font.h (struct font_bitmap): New member bits_per_pixel.
17049 (struct font_driver): New members start_for_frame and end_for_frame.
17050 (struct font_data_list): New struct.
17051 (font_put_frame_data, font_get_frame_data): Extern them.
17052
17053 * frame.h (struct frame): New member font_data_list.
17054
17055 * font.c (font_update_drivers): Call driver->start_for_frame and
17056 driver->end_for_frame at proper timings.
17057 (font_put_frame_data, font_get_frame_data): New functions.
17058 (Ffont_spec): Add usage in the docstring.
17059
17060 * frame.c (make_frame): Initialize f->font_data_list to NULL.
17061 (Fdelete_frame): Call font_update_drivers.
17062
17063 * xftfont.c (struct xftface_info): Delete the member xft_draw.
17064 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
17065 (xftfont_get_xft_draw): New function.
17066 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
17067 (xftfont_end_for_frame): New function.
17068 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
17069
17070 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
17071 Change argument. Cache GCs in the per-frame data.
17072 (struct ftxfont_frame_data): New struct.
17073 (ftxfont_draw_bitmap): New arg gc_fore and flush.
17074 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
17075 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
17076 (ftxfont_end_for_frame): New function.
17077 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
17078
17079 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
17080
170812008-02-01 Kenichi Handa <handa@m17n.org>
17082
17083 * xselect.c (Vselection_coding_system)
17084 (Vnext_selection_coding_system): Delete them.
17085 (syms_of_xselect): Don't declare selection-coding-system and
17086 next-selection-coding-system. They are declared in select.el.
17087
170882008-02-01 Jason Rumney <jasonr@gnu.org>
17089
17090 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
17091
17092 * w32fns.c: Include imm.h.
17093 (get_composition_string_fn, get_ime_context_fn): New optional
17094 system functions.
17095 (globals_of_w32fns): Load them from imm32.dll.
17096 (ignore_ime_char): New flag.
17097 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
17098 WM_IME_ENDCOMPOSITION messages.
17099
17100 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
17101 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
17102
171032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17104
17105 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
17106 (READCHAR_REPORT_MULTIBYTE): New macro.
17107 (readchar): New 2nd arg MULTIBYTE.
17108 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
17109 Make symbol's name multibyte according to the multibyteness of the
17110 source.
17111
171122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17113
17114 * xfaces.c (face_for_overlay_string): Call lookup_face with
17115 correct arguments (fix of synching with the trunk).
17116
171172008-02-01 Kenichi Handa <handa@m17n.org>
17118
17119 * font.c (font_prop_validate_symbol, font_prop_validate_style)
17120 (font_prop_validate_non_neg, font_prop_validate_spacing):
17121 Delete argument prop_index.
17122 (font_property_table): Change arguments to validater. Change Callers.
17123 (font_lispy_object): Delete.
17124 (font_at): Use font_find_object instead fo font_lispy_object.
17125
171262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17127
17128 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
17129 and file names.
17130
171312008-02-01 Jason Rumney <jasonr@gnu.org>
17132
17133 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
17134 (font_matches_spec): Remove debug output.
17135 (add_font_entity_to_list): Avoid using substituted fonts.
17136
171372008-02-01 Jason Rumney <jasonr@gnu.org>
17138
17139 * doc.c (Fsnarf_documentation):
17140 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
17141
171422008-02-01 Miles Bader <miles@gnu.org>
17143
17144 * dispextern.h (struct glyph_row): Only define "clip" field if
17145 HAVE_WINDOW_SYSTEM is defined.
17146
171472008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17148
17149 Fix up multi-tty merge.
17150
17151 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
17152 and indentation.
17153
17154 * xfaces.c (free_realized_face, clear_face_gcs):
17155 Include font_done_for_face in the input_blocked section, just in case.
17156
17157 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
17158 (get_char_face_and_encoding): Undo last change and remove the *other*
17159 duplicate definition (i.e. keep the one that's better scoped and that
17160 includes code for the font-backend).
17161
17162 * terminal.c (create_terminal): Default keyboard_coding to
17163 `no-conversion' and terminal_coding to `undecided'.
17164
17165 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
17166
17167 * fontset.c (free_realized_fontsets): Check that the table entry does
17168 contain a fontset before trying to compare it to `base'.
17169
17170 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
17171 syms_of_charset, and syms_of_coding earlier because init_window_once
17172 now needs Vcoding_system_hash_table to be setup.
17173
17174 * coding.h (default_buffer_file_coding): Remove.
17175
17176 * coding.c (default_buffer_file_coding): Remove.
17177 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
17178 than ->symbol, and use the terminal-local coding system.
17179 (syms_of_coding): Don't setup the coding-systems that are not
17180 terminal-local.
17181 (Fdefine_coding_system_internal): Use XCAR/XCDR.
17182
17183 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
17184 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
17185
17186 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
17187 in chartab.c and were re-added here by mistake.
17188 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
17189
17190 * doc.c (Fsnarf_documentation):
17191 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
17192 src to etc.
17193
17194 * ChangeLog.10: Add mistakenly removed entry.
17195
171962008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
17197
17198 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
17199
172002008-02-01 Miles Bader <miles@gnu.org>
17201
17202 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
17203 Add extra args to FACE_FOR_CHAR.
17204
172052008-02-01 Kenichi Handa <handa@m17n.org>
17206
17207 * keymap.c (where_is_internal_1): If key is a cons, store the copy
17208 in sequence.
17209
17210 * chartab.c (map_sub_char_table, map_char_table): If the range
17211 contains just one character, call the function with that character
17212 even if the depth is not 3.
17213
172142008-02-01 Jason Rumney <jasonr@gnu.org>
17215
17216 * w32font.c (w32font_text_extents): Calculate metrics for the
17217 whole string.
17218
172192008-02-01 Jason Rumney <jasonr@gnu.org>
17220
17221 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
17222
172232008-02-01 Jason Rumney <jasonr@gnu.org>
17224
17225 * w32term.c (x_set_glyph_string_clipping): Use
17226 get_glyph_string_clip_rects.
17227 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17228 Adjust for the change of struct glyph_string.
17229
17230 * w32font.c (w32font_draw): Do clipping here.
17231
172322008-02-01 Kenichi Handa <handa@m17n.org>
17233
17234 * xftfont.c (xftfont_draw): Adjust for the change of struct
17235 glyph_string.
17236
17237 * xterm.c (x_set_glyph_string_clipping): Use
17238 get_glyph_string_clip_rects.
17239 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17240 Adjust for the change of struct glyph_string.
17241
17242 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
17243 the resulting clip(s}.
17244 (expose_overlaps): Add arg r. Change callers. Set it to
17245 row->clip temporarily.
17246 (expose_window): Redraw rows overlapping the exposed area.
17247
17248 * dispextern.h (struct glyph_row): New member clip.
17249 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
17250 clip_height, new member clip, and num_clips.
17251
172522008-02-01 Kenichi Handa <handa@m17n.org>
17253
17254 * data.c (Fchar_or_string_p): Fix docstring.
17255
172562008-02-01 Kenichi Handa <handa@m17n.org>
17257
17258 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
17259 create a temporary XftDraw object.
17260
172612008-02-01 Kenichi Handa <handa@m17n.org>
17262
17263 * font.c (Ffontp): Fix docstring.
17264
17265 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
17266 strong evidence of ISO-2022.
17267
172682008-02-01 Kenichi Handa <handa@m17n.org>
17269
17270 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
17271 SYNTAX_ENTRY_FOLLOW_PARENT.
17272
172732008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17274
17275 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
17276 its type.
17277 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
17278 Update to the new type of weak_hash_tables and next_weak.
17279
17280 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
17281 a plain C pointer to Lisp_Hash_Table.
17282
17283 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
17284 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
17285 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
17286 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
17287 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
17288 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
17289 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
17290 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
17291 (GC_EQ): Remove since they've been identical to their non-GC_
17292 alter-egos ever since the markbit was eradicated.
17293
17294 * alloc.c:
17295 * buffer.c:
17296 * buffer.h:
17297 * data.c:
17298 * fileio.c:
17299 * filelock.c:
17300 * fns.c:
17301 * frame.h:
17302 * lisp.h:
17303 * macterm.c:
17304 * print.c:
17305 * process.c:
17306 * w32fns.c:
17307 * w32menu.c:
17308 * w32term.c:
17309 * xfns.c:
17310 * xmenu.c:
17311 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
17312
173132008-02-01 Kenichi Handa <handa@m17n.org>
17314
17315 * chartab.c (map_sub_char_table): Make it work for the top-level
17316 char-table. Fix handling of parent char-table.
17317 (map_char_table): Adjust for the above change.
17318
173192008-02-01 Jason Rumney <jasonr@gnu.org>
17320
17321 * w32font.c (Qgdi): Rename from Qw32.
17322
173232008-02-01 Jason Rumney <jasonr@gnu.org>
17324
17325 * w32bdf.c (get_quoted_string): Make function static.
17326
173272008-02-01 Kenichi Handa <handa@m17n.org>
17328
17329 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
17330 bigger ascent and descent than those of the font, use them as
17331 font's ascent and descent.
17332
173332008-02-01 Kenichi Handa <handa@m17n.org>
17334
17335 * Makefile.in (${lispsource}international/charprop.el): Move this
17336 target within "#ifdef HAVE_UNIDATA" and "#endif".
17337
173382008-02-01 Kenichi Handa <handa@m17n.org>
17339
17340 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
17341 (shortlisp): Add ../lisp/language/tai-viet.el.
17342
173432008-02-01 Ulrich Mueller <ulm@gentoo.org>
17344
17345 * Makefile.in (${lispsource}international/charprop.el): Depend on
17346 temacs${EXEEXT}.
17347
173482008-02-01 Jason Rumney <jasonr@gnu.org>
17349
17350 * w32font.c (w32font_close): Delete the GDI font object.
17351
17352 * w32menu.c: Include character.h.
17353
17354 * w32proc.c: Likewise.
17355
17356 * w32select.c: Likewise.
17357
17358 * makefile.w32-in (w32proc.o): Depend on character.h.
17359
173602008-02-01 Jason Rumney <jasonr@gnu.org>
17361
17362 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
17363
17364 * w32menu.c (syms_of_w32menu): Likewise.
17365
17366 * w32proc.c (syms_of_ntproc): Likewise.
17367
17368 * w32select.c (syms_of_w32select): Likewise.
17369
17370 * w32term.c (syms_of_w32term): Likewise.
17371
173722008-02-01 Jason Rumney <jasonr@gnu.org>
17373
17374 * w32font.c (w32font_draw): Delete brush after using it.
17375
173762008-02-01 Jason Rumney <jasonr@gnu.org>
17377
17378 * w32font.c (w32font_open): Don't set font_idx.
17379 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
17380 to font settings.
17381 (w32font_draw): Fill background explicitly.
17382
173832008-02-01 Jason Rumney <jasonr@gnu.org>
17384
17385 * w32term.c (w32_initialize): Don't call w32font_initialize.
17386
17387 * w32font.c (w32font_info): Remove subranges.
17388 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
17389 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
17390 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
17391 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
17392 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
17393 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
17394 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
17395 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
17396 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
17397 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
17398 New symbols.
17399 (font_callback_data): New struct.
17400 (w32font_list, w32font_match): Use it.
17401 (w32font_open): Don't populate subranges.
17402 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
17403 (w32font_encode_char): Always return unicode code-point as-is.
17404 (w32font_text_extents): Supply a transformation matrix to
17405 GetGlyphOutline. Never look up by glyph index. Avoid looping
17406 twice. Use unicode version of GetTexExtentPoint32 instead of
17407 glyph index version.
17408 (set_fonts_frame): Remove.
17409 (w32_enumfont_pattern_entity): Add frame parameter, use it to
17410 set frame parameter. Use backward compatible fake foundries.
17411 Save generic family in extra slot under QCfamily. Make width slot
17412 constant. Save QCspacing value. Save list of scripts instead of
17413 binary subranges.
17414 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
17415 (add_font_entity_to_list): Use font_callback_data struct. Filter
17416 unwanted fonts.
17417 (add_one_font_entity_to_list): Use font_callback_data struct.
17418 (w32_registry): Default to iso10646_1.
17419 (fill_in_logfont): Use dpi from extra slot. Don't bother with
17420 string font registries. Don't fill in font name if it is a generic
17421 family name, fill family instead. Use spacing, family and script
17422 extra info to fill pitch, family and charset fields.
17423 (list_all_matching_fonts): Use font_callback_data struct.
17424 (unicode_range_for_char): Remove.
17425 (font_supported_scripts): New function.
17426 (w32font_initialize): Remove.
17427 (syms_of_w32font): Update which symbols are defined.
17428
174292008-02-01 Jason Rumney <jasonr@gnu.org>
17430
17431 * font.c (font_pixel_size): Reverse assq_no_quit args.
17432
17433 * w32term.h (FONT_WIDTH): Report max width, not average.
17434 (FONT_MAX_WIDTH): Remove.
17435 (FONT_AVG_WIDTH): New macro.
17436
17437 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
17438 redefinition of FONT_WIDTH.
17439
17440 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
17441 (w32_cache_char_metrics): Use FONT_WIDTH.
17442
17443 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
17444
174452008-02-01 Jason Rumney <jasonr@gnu.org>
17446
17447 * w32font.c (w32font_open): Make lfHeight negative.
17448
17449 * w32fns.c (x_default_font_parameter): Use new style font name.
17450 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
17451
174522008-02-01 Jason Rumney <jasonr@gnu.org>
17453
17454 * w32font.c (QCsubranges): New symbol.
17455 (w32font_open, w32font_has_char): Get subranges from subproperty
17456 of extra.
17457 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
17458 (syms_of_w32font): Define :subranges symbol.
17459
17460 * font.c (font_put_extra): Expose externally.
17461
17462 * font.h (font_put_extra): Move declaration from font.c.
17463
17464 * font.c (Ffont_get): Use font driver to determine otf capability.
17465 (adjust_anchor): Check if driver defines anchor_point before using.
17466
17467 * w32font.c (w32font_open): Handle size, height and pixel_size better.
17468 (w32font_draw): Use options.
17469 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
17470 Fix detection of truetype fonts.
17471 (registry_to_w32_charset): Handle charsets other than iso8859-1
17472 expressed as lisp symbols.
17473 (w32_registry): Express charset as lisp symbol.
17474 (fill_in_logfont): Reverse pixel and point height logic.
17475 Don't set width here. Set quality to default.
17476
17477 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
17478 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
17479
17480 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17481 Remove redundant loop and allocation.
17482
17483 * makefile.w32-in (font.o, w32font.o): New objects.
17484 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
17485 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
17486
17487 * xdisp.c (fill_composite_glyph_string): Make the first arg to
17488 STORE_XCHARB a valid l-value.
17489
17490 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
17491 calculations for non-Truetype fonts.
17492 (x_draw_glyph_string): Sync with xterm.c.
17493 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17494 Remove redundant code.
17495 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
17496
17497 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
17498 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
17499
17500 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
17501 (x_to_w32_charset, w32_to_x_charset): Expose externally.
17502
17503 * w32font.c: New file for w32 font backend.
17504
175052008-02-01 Kenichi Handa <handa@m17n.org>
17506
17507 * term.c: Don't include "buffer.h" twice.
17508
175092008-02-01 Kenichi Handa <handa@m17n.org>
17510
17511 * character.c (Funibyte_string): New function.
17512 (syms_of_character): Defsubr it.
17513
175142008-02-01 Jason Rumney <jasonr@gnu.org>
17515
17516 * w32term.c [USE_FONT_BACKEND]:
17517 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
17518 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
17519 (x_draw_glyph_string, x_draw_glyph_string_foreground)
17520 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
17521 (x_free_frame_resources): Sync with xterm.c.
17522
175232008-02-01 Andreas Schwab <schwab@suse.de>
17524
17525 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
17526 char-table size.
17527
175282008-02-01 Kenichi Handa <handa@m17n.org>
17529
17530 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
17531
175322008-02-01 Kenichi Handa <handa@m17n.org>
17533
17534 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
17535 font_otf_gpos, add font_drive_otf.
17536
17537 * fontset.c (fontset_find_font): Pay attention to font size
17538 specified for a font.
17539 (reorder_font_vector): Check contents of font_def.
17540
17541 * font.c (struct otf_list): Delete it.
17542 (otf_list): Make it a lisp variable.
17543 (otf_open): Use lispy otf_list.
17544 (generate_otf_features): Rename from parse_gsub_gpos_spec.
17545 (check_otf_features): New function.
17546 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
17547 New functions.
17548 (font_drive_otf): New function merging font_otf_gsub and
17549 font_otf_gpos.
17550 (font_open_for_lface): New arg spec. Change argument order.
17551 (font_load_for_face): Adjust for the change of font_open_for_lface.
17552 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
17553 Ffont_otf_gpos.
17554 (syms_of_font): Staticpro otf_list. Delete defsubr of
17555 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
17556
17557 * xfaces.c (set_font_frame_param): Adjust for the change of
17558 font_open_for_lface.
17559
17560 * font.h (font_open_for_lface): Adjust prototype.
17561 (struct font_driver): Delete members otf_gsub and otf_gpos, add
17562 member otf_drive.
17563 (font_otf_gsub, font_otf_gpos): Delete externs.
17564 (font_drive_otf): Extern it.
17565
175662008-02-01 Kenichi Handa <handa@m17n.org>
17567
17568 * font.c (font_at): If the window W is not on a window system,
17569 return Qnil.
17570
17571 * coding.c (produce_chars, encode_coding): Don't call
17572 insert_from_gap if no characters to produce.
17573
175742008-02-01 Kenichi Handa <handa@m17n.org>
17575
17576 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
17577 Fclear_face_cache.
17578
17579 * xfaces.c (face_for_font): Check also face->font==font->font.font.
17580
175812008-02-01 Miles Bader <miles@gnu.org>
17582
17583 * emacs.c (main): Change default value of `enable_font_backend' to 1.
17584 Parse "--disable-font-backend" option.
17585 (standard_args): Add "--disable-font-backend" option.
17586
175872008-02-01 Kenichi Handa <handa@m17n.org>
17588
17589 * fontset.c (fontset_find_font): New function.
17590 (fontset_font): Use fontset_find_font.
17591 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
17592 Register the specified font for all Latin characters.
17593 (new_fontset_from_font): Register the specified font for all Latin
17594 characters.
17595 (dump_fontset): For a realized fontset, include the base fontset
17596 name in the returned vector.
17597
175982008-02-01 Kenichi Handa <handa@m17n.org>
17599
17600 * character.h (CHAR_STRING): Cast C to unsigned on calling
17601 char_string.
17602
17603 * character.c (char_string): Type of arg C changed to unsigned.
17604 Signal an error if C is an invalid character code.
17605
17606 * editfns.c (general_insert_function, Fchar_to_string):
17607 Use CHARACTERP, not INTEGERP.
17608
176092008-02-01 Kenichi Handa <handa@m17n.org>
17610
17611 * character.h (MIN_MULTIBYTE_LEADING_CODE)
17612 (MAX_MULTIBYTE_LEADING_CODE): New macros.
17613
17614 * regex.c (analyse_first): Fix for multibyte characters in "case
17615 charset:" and "case categoryspec:".
17616
176172008-02-01 Andreas Schwab <schwab@suse.de>
17618
17619 * Makefile.in (LIBES): Move standard libraries to the end.
17620
176212008-02-01 Kenichi Handa <handa@m17n.org>
17622
17623 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
17624 nonzero, don't shrink the buffer nextb.
17625
17626 * buffer.h (struct buffer_text): New member inhibit_shrinking.
17627
17628 * coding.c (coding_alloc_by_making_gap): New arg offset.
17629 (alloc_destination): Call coding_alloc_by_making_gap with the arg
17630 offset.
17631 (decode_coding_iso_2022): Update coding->safe_charsets.
17632 (decode_coding_gap): Temporarily set
17633 current_buffer->text->inhibit_shrinking to 1.
17634
176352008-02-01 Kenichi Handa <handa@m17n.org>
17636
17637 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
17638 indexing into elements of s->cmp and s->char2b.
17639
176402008-02-01 Juanma Barranquero <lekktu@gmail.com>
17641
17642 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
17643
176442008-02-01 Kenichi Handa <handa@m17n.org>
17645
17646 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
17647 target_multibyte instead of multibyte.
17648 (re_match_2_internal): Call bcmp_translate with target_multibyte.
17649 (bcmp_translate): Change the argument name from multibyte to
17650 target_multibyte.
17651
176522008-02-01 Kenichi Handa <handa@m17n.org>
17653
17654 These changes are to compile a regexp into a pattern that can be
17655 used both for multibyte and unibyte targets.
17656
17657 * Makefile.in (search.o): Depend on charset.h.
17658
17659 * character.c (multibyte_char_to_unibyte_safe): New function.
17660
17661 * search.c: Include "charset.h".
17662 (compile_pattern_1): Delete argument multibyte. Don't set
17663 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
17664 (compile_pattern): Don't compare cp->buf.target_multibyte.
17665 Compare cp->buf.charset_unibyte.
17666 (compile_pattern): Set cp->buf.target_multibyte.
17667
17668 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
17669
17670 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
17671
17672 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
17673 multibyte. Change callers.
17674 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
17675 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
17676 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
17677 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
17678 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
17679 (regex_compile): Make the compiled pattern usable both for
17680 multibyte and unibyte targets.
17681 (analyse_first): Make the fastmap usable both for multibyte and
17682 unibyte targets.
17683 (TRANSLATE_VIA_MULTIBYTE): Delete.
17684 (re_match_2_internal): Pay attention to the case that the
17685 multibyteness of bufp and target may be different.
17686
176872008-02-01 Kenichi Handa <handa@m17n.org>
17688
17689 * xdisp.c (x_produce_glyphs): When a font is not found, make the
17690 empty box occupy at least one column width.
17691
176922008-02-01 Miles Bader <miles@gnu.org>
17693
17694 * Makefile.in: Remove redundant HAVE_XFT clause.
17695
176962008-02-01 Kenichi Handa <handa@m17n.org>
17697
17698 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
17699
177002008-02-01 Kenichi Handa <handa@m17n.org>
17701
17702 * fontset.c (Finternal_char_font): Fix for the case of POSITION
17703 being nil.
17704
177052008-02-01 Kenichi Handa <handa@m17n.org>
17706
17707 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
17708
177092008-02-01 Kenichi Handa <handa@m17n.org>
17710
17711 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
17712
177132008-02-01 Kenichi Handa <handa@m17n.org>
17714
17715 * search.c (simple_search): Fix previous change.
17716
177172008-02-01 Kenichi Handa <handa@m17n.org>
17718
17719 * xftfont.c (ftfont_font_format): Extern declaration.
17720
17721 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
17722
17723 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
17724 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
17725
17726 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
17727 (ftfont_font_format): Fix previous change.
17728
17729 * font.h (Ffont_xlfd_name): EXFUN it.
17730
17731 * font.c (font_parse_xlfd): Fix the array size of `f'.
17732 (register_font_driver): Use EQ to compare driver->type.
17733
17734 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
17735 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
17736 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
17737
177382008-02-01 Kenichi Handa <handa@m17n.org>
17739
17740 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
17741 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
17742
177432008-02-01 Kenichi Handa <handa@m17n.org>
17744
17745 * xfont.c (xfont_open): Set font->format.
17746
17747 * xftfont.c (xftfont_open): Set font->format.
17748
17749 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
17750 (ftfont_list): Include FC_FONTFORMAT in FcObject.
17751 (ftfont_open): Set font->format.
17752 (ftfont_font_format): New function.
17753
17754 * font.h (struct font): New member format.
17755
17756 * font.c (Qopentype): New variable.
17757 (syms_of_font): Defsym it.
17758 (Fquery_font): Change the format of the last element of the return
17759 value.
17760
177612008-02-01 Kenichi Handa <handa@m17n.org>
17762
17763 * xfns.c (xic_create_xfontset): Try the default fontset name as a
17764 last resort.
17765
177662008-02-01 Kenichi Handa <handa@m17n.org>
17767
17768 * coding.c (detect_coding_charset): Fix detection of multi-byte
17769 charset.
17770
177712008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
17772
17773 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
17774
177752008-02-01 Kenichi Handa <handa@m17n.org>
17776
17777 * xdisp.c (get_next_display_element): Set it->face_id for the
17778 first component of a composition.
17779 (x_produce_glyphs): Check if the font is changed or not for composition.
17780
177812008-02-01 Kenichi Handa <handa@m17n.org>
17782
17783 * fontset.c (Qlatin): New variable.
17784 (syms_of_fontset): Define it as a lisp symbol.
17785 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
17786
177872008-02-01 Kenichi Handa <handa@m17n.org>
17788
17789 * font.c (font_unparse_fcname): Pay attention to the case that
17790 some of font property is a null string.
17791
177922008-02-01 Kenichi Handa <handa@m17n.org>
17793
17794 * term.c: Include "composite.h".
17795 (encode_terminal_code): Output all components of composition.
17796 Check the size of encode_terminal_src.
17797 (produce_glyphs): For composition, call produce_composite_glyph.
17798 (append_composite_glyph, produce_composite_glyph): New functions.
17799
17800 * xdisp.c (x_produce_glyphs): In handling composition, if a font
17801 is not found, get font_info from the current ascii face.
17802
178032008-02-01 Kenichi Handa <handa@m17n.org>
17804
17805 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
17806 buffer-file-name to Qnil before calling insert_from_buffer.
17807
17808 * font.c (font_unparse_fcname): Pay attention to the case that
17809 foundry is a null string.
17810
178112008-02-01 Kenichi Handa <handa@m17n.org>
17812
17813 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
17814
17815 * font.c (Qunicode_sip): New variable.
17816 (syms_of_font): Declare it as a Lisp symbol.
17817
17818 * font.h (Qunicode_sip): Extern it.
17819
178202008-02-01 Kenichi Handa <handa@m17n.org>
17821
17822 * composite.c (get_composition_id): Pay attention to TAB component.
17823
17824 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
17825 TAB. Adjust for the change of s->char2b which always points to
17826 the first element of allocated memory.
17827
17828 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
17829
17830 * xdisp.c (handle_composition_prop): Set it->c to the first
17831 non-TAB component.
17832 (fill_composite_glyph_string): Change argument.
17833 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
17834 (x_produce_glyphs): Fix handling of left/right padding.
17835
178362008-02-01 Kenichi Handa <handa@m17n.org>
17837
17838 * coding.c (detect_coding_system): Fix for handling off
17839 inhibit_iso_escape_detection. Fix for the case that no coding
17840 system is defined for a specific coding category.
17841
178422008-02-01 Kenichi Handa <handa@m17n.org>
17843
17844 * font.c (font_matching_entity): Delete unused local var.
17845
17846 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
17847 opening a font.
17848
17849 * fileio.c (Finsert_file_contents): On recovering a file, assume
17850 Unix-like eol.
17851 (choose_write_coding_system): On auto-saving a file, force
17852 Unix-like eol.
17853
17854 * coding.c (setup_coding_system): Fix setting of
17855 coding->common_flags based on eol_type.
17856 (coding_inherit_eol_type): If PARENT is not nil, be sure to
17857 inherit from it.
17858
178592008-02-01 Kenichi Handa <handa@m17n.org>
17860
17861 * alloc.c (NSTATICS): Increas to 0x600.
17862
178632008-02-01 Kenichi Handa <handa@m17n.org>
17864
17865 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
17866 (ftfont_list): Don't check :name property.
17867 (ftfont_match): New function.
17868 (ftfont_pattern_entity): If the pattern doesn't contain
17869 FC_SPACING, don't assume FC_MONO.
17870
17871 * font.h (struct font_driver): New member `match'.
17872 (font_update_drivers): Adjust prototype.
17873
17874 * font.c (font_parse_fcname, font_parse_name): Don't change :name
17875 property of FONT.
17876 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
17877 them unconditionally.
17878 (font_matching_entity): New function.
17879 (font_open_by_name): Try font_matching_entity if exact match is
17880 not found.
17881 (font_update_drivers): Delete the arg FONT. Return a list of
17882 actually used backends. Don't free faces, font caches here.
17883 Don't store data in frame parameters. Don't call x_set_font.
17884 (Ffont_spec): Store :name property as is.
17885 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
17886 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
17887 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
17888 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
17889 Call font->driver->otf_gsub instead of font_otf_gsub.
17890
17891 * frame.c (x_set_font_backend): Do more works that were done in
17892 font_update_drivers before.
17893
17894 * xfont.c (xfont_match): New function.
17895 (xfont_driver): Set xfont_driver.match to xfont_match.
17896 (xfont_draw): Set font in GC if necessary.
17897
17898 * ftxfont.c (ftxfont_match): New function.
17899 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
17900
17901 * xftfont.c (xftfont_match): New function.
17902 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
17903
179042008-02-01 Kenichi Handa <handa@m17n.org>
17905
17906 * font.h (struct font): New member scalable.
17907 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
17908 (font_otf_gsub): Adjust prototype.
17909
17910 * font.c (font_otf_capability): Fix handling of the default langsys.
17911 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
17912 Check the contents of SPEC.
17913 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
17914 (check_gstring): New function.
17915 (REPLACEMENT_CHARACTER): New macro.
17916 (font_otf_gsub): New arg alternate_subst. Be sure to set all
17917 glyph codes of GSTRING.
17918 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
17919 (font_prepare_composition): Set cmp->glyph_len.
17920 (font_open_entity): Set font->scalable.
17921 (Ffont_get): Handle :otf property.
17922 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
17923 functions.
17924 (Fquery_font): Use font->font.full_name.
17925 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
17926 Sfont_otf_alternates.
17927
17928 * ftfont.c (ftfont_open): Set font->font.full_name and
17929 font->font.name properly. Fix calculation of font->font.height
17930 and font->min_width.
17931
17932 * ftxfont.c (ftxfont_create_gcs): New function.
17933 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
17934 (ftxfont_draw_backgrond): Fix filling region.
17935 (ftxfont_default_fid): New function.
17936 (ftxfont_open): Set xfont->fid to the return value of
17937 ftxfont_default_fid.
17938 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
17939 (ftxfont_done_face): Free only GCs that are created by
17940 ftxfont_create_gcs.
17941 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
17942
17943 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
17944 Clip to src->width, etc (not src->clip_XXX).
17945
17946 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
17947 FontBackend frame parameter.
17948
179492008-02-01 Kenichi Handa <handa@m17n.org>
17950
17951 * font.h (struct font_driver_list): New member `on'.
17952 (Fclear_font_cache): EXFUN it.
17953 (font_update_drivers): Extern it.
17954
17955 * font.c (font_unparse_fcname): Fix typo (swidth->width).
17956 (font_list_entities): Check driver_list->on.
17957 (register_font_driver): Initalize `on' member to 0.
17958 (font_update_drivers): New function.
17959 (Fclear_font_cache): Check driver_list->on.
17960
17961 * frame.h (Qfont_backend): Extern it.
17962 (x_set_font_backend): Extern it.
17963
17964 * frame.c (Qfont_backend): New variable.
17965 (frame_parms): New element for font-backend.
17966 (x_set_font_backend): New function.
17967
17968 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
17969 FontBackend frame parameter.
17970 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
17971 x_set_font_backend.
17972
17973 * xfont.c (xfont_list): Don't try listing by :name property if the
17974 name is not for XLFD.
17975
179762008-02-01 Kenichi Handa <handa@m17n.org>
17977
17978 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
17979 (LGLYPH_SET_TO): New macros.
17980 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
17981 element of G is vector or not.
17982 (font_at): Extern it.
17983
17984 * font.c: Include window.h.
17985 (font_lispy_object): New function.
17986 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
17987 end of valid glyph.
17988 (font_close_object): Fix getting (struct font *).
17989 (font_at): New function.
17990 (Ffont_get): If FONT is a font-object, get entity from it.
17991 (Ffont_make_gstring): Initialize elements of glyphs with nil.
17992 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
17993 range check.
17994 (Ffont_at): New function.
17995 (syms_of_font): Defsubr Sfont_at.
17996
17997 * xdisp.c (it_props): Move the entry for Qauto_composed to just
17998 before the entry for Qcomposition.
17999 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
18000 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
18001 the font in gstring.
18002 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
18003 LGLYPH_FORM (g) to detect the end of valid glyph.
18004 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
18005 we are composing with gstring.
18006
18007 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
18008 Check if adjustment is vector or not.
18009
18010 * Makefile.in (font.o): Make it depends on window.h.
18011
180122008-02-01 Kenichi Handa <handa@m17n.org>
18013
18014 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
18015 adjustment is vector or not.
18016
180172008-02-01 Miles Bader <miles@gnu.org>
18018
18019 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
18020
180212008-02-01 Kenichi Handa <handa@m17n.org>
18022
18023 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
18024 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
18025 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
18026
18027 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
18028 (DEVICE_DELTA): Fix typo.
18029 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
18030 LGLYPH format.
18031
18032 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18033 the change of LGLYPH format.
18034
180352008-02-01 Kenichi Handa <handa@m17n.org>
18036
18037 * ftfont.c (ftfont_list): Fix typo.
18038 (ftfont_build_basic_charsets): Don't include letters with diacritics.
18039
180402008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18041
18042 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
18043
18044 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
18045 xftface_info is non-NULL.
18046
180472008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18048
18049 * ftfont.c (ftfont_list): Move misplaced #endif.
18050
180512008-02-01 Kenichi Handa <handa@m17n.org>
18052
18053 * ftfont.c (ftfont_list): Pay attention to the case that
18054 FC_CAPABILITY is not defined.
18055
180562008-02-01 Kenichi Handa <handa@m17n.org>
18057
18058 * xftfont.c (xftfont_open): Set charset related members to -1.
18059
18060 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
18061 QCname.
18062 (ftfont_open): Set charset related members to -1.
18063
18064 * fontset.c (Votf_script_alist): New variable.
18065 (syms_of_fontset): Initialize it.
18066 (fontset_font): Delete unused variable.
18067
18068 * fontset.h (Votf_script_alist): Extern it.
18069
18070 * font.c (font_find_for_lface): Optimize code.
18071
18072 * font.h (font_close_object, font_merge_old_spec): Extern them.
18073
180742008-02-01 Kenichi Handa <handa@m17n.org>
18075
18076 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
18077 (syms_of_font): Initialize them.
18078 (font_pixel_size): Allow float value in dpi.
18079 (font_prop_validate_type): Delete.
18080 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
18081 Change caller.
18082 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
18083 (font_prop_validate_extra): Delete.
18084 (font_prop_validate_spacing): New function.
18085 (font_property_table): Add elements for all known properties.
18086 (get_font_prop_index): Rename from check_font_prop_name. New
18087 argument FROM. Change caller.
18088 (font_prop_validate): Validate all known properties.
18089 (font_put_extra): Delete argument force. Change caller.
18090 (font_expand_wildcards): Make it static. Fix the way of shrinking
18091 the possible range.
18092 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
18093 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
18094 Change caller.
18095 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
18096 (font_parse_fcname): Delete argument merge. Fix parsing of point
18097 size. Don't validate properties values here. Change caller.
18098 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
18099 (font_open_by_name): Delete unused variable.
18100 (Ffont_spec): Likewise. Validate property values.
18101 (Ffont_match_p): New function.
18102
18103 * font.h (QCscalable): Extern it.
18104 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
18105
18106 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
18107
18108 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
18109 (xfont_list_pattern): New function.
18110 (xfont_list): Use xfont_list_pattern.
18111
181122008-02-01 Kenichi Handa <handa@m17n.org>
18113
18114 * font.h (Flist_fonts): EXFUN it.
18115
181162008-02-01 Jason Rumney <jasonr@gnu.org>
18117
18118 * w32term.c (w32_initialize): Add back smoothing_type and
18119 smoothing_enabled definitions.
18120
181212008-02-01 Kenichi Handa <handa@m17n.org>
18122
18123 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
18124 s->face->font on determining underline position.
18125
181262008-02-01 Kenichi Handa <handa@m17n.org>
18127
18128 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
18129 (font_has_char): Accept font-object too.
18130 (font_find_for_lface): Try at first with a size specified in face.
18131
181322008-02-01 Kenichi Handa <handa@m17n.org>
18133
18134 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
18135 font_open_by_name.
18136
181372008-02-01 Kenichi Handa <handa@m17n.org>
18138
18139 * font.h (QCspacing, QCdpi): Extern them.
18140 (enum font_spacing): New enum.
18141 (FONT_PIXEL_SIZE_QUANTUM): New macro.
18142
18143 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
18144 (QCspacing, QCdpi): New variables.
18145 (syms_of_font): Initialize them.
18146 (font_pixel_size): New function.
18147 (font_put_extra): New function.
18148 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
18149 in FONT_EXTRA.
18150 (font_parse_fcname): Handle enumerated values (e.g. bold).
18151 Fix handling font size. Add QCname property that contains only
18152 unknown properties.
18153 (font_score): Change argument. Change caller. Pay attention to
18154 FONT_PIXEL_SIZE_QUANTUM.
18155 (font_sort_entites, font_list_entities, font_find_for_lface)
18156 (font_open_for_lface, font_open_by_name): Fix handling of font size.
18157 (Ffont_spec): Add QCname property that contains only unknown properties.
18158
18159 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
18160 include weight in listing pattern, instead check weight of each
18161 listed font. Don't include scalable in pattern. Pay attention to
18162 FONT_PIXEL_SIZE_QUANTUM.
18163
181642008-02-01 Kenichi Handa <handa@m17n.org>
18165
18166 * font.c (font_parse_fcname): Fix parsing of point-size.
18167 (font_unparse_fcname): Produce symbolic names for style properties.
18168 (font_list_entities): Handle float size correctly.
18169 (font_open_by_name): Prefer `normal' property values if the name
18170 doesn't specify them.
18171
18172 * fontset.c (Finternal_char_font): Use font_get_name, not
18173 Ffont_xlfd_name.
18174
18175 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
18176 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
18177 pattern. Don't force scalable.
18178
18179 * xftfont.c (xftfont_open): For generating a name, start from
18180 96-byte buffer.
18181
181822008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18183
18184 * frame.h (x_new_fontset2): Fix prototype.
18185
181862008-02-01 Kenichi Handa <handa@m17n.org>
18187
18188 * font.h (struct font_driver): Delete member parse_name.
18189 (font_match_p, font_get_spec, font_parse_fcname)
18190 (font_unparse_fcname): Extern them.
18191 (font_get_name): Adjust prototype.
18192
18193 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
18194 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
18195 (font_expand_wildcards): Fix handling ENCODING field. Avoid
18196 unnecessary checks for weight, slant, and swidth.
18197 (font_parse_fcname): New function.
18198 (font_unparse_fcname): New function.
18199 (font_parse_name): New function.
18200 (font_match_p): New function.
18201 (font_get_name): Change return value to Lisp string.
18202 (font_get_spec): New function.
18203 (Qunspecified, Qignore_defface): Don't extern them.
18204 (font_find_for_lface): Assume that LFACE is fully specified.
18205 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
18206 object, use it for FACE.
18207 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
18208 driver->parse_name.
18209 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
18210
18211 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
18212 prototype.
18213
18214 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
18215 argument F. Don't call Fnew_fontset. Instead, directly call
18216 make_fontset.
18217
18218 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
18219
18220 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
18221 of x_new_fontset2.
18222
18223 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
18224 (Qsans__serif): New variables.
18225 (ftfont_generic_family_list): New variable.
18226 (syms_of_ftfont): Initialize the above variables.
18227 (ftfont_pattern_entity): Delete argument NAME.
18228 (ftfont_list_generic_family): New function.
18229 (ftfont_parse_name): Delete this function.
18230 (ftfont_list): Try generic family only when FcFontList found no font.
18231 (ftfont_list_family): Fix args to FcObjectSetBuild.
18232
18233 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
18234 object in attrs[LFACE_FONT_INDEX].
18235 (set_lface_from_font_name): Cancel all changes for font-backend.
18236 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
18237 function.
18238 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
18239 font object in QCfont attribute.
18240 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
18241 (realize_default_face) [USE_FONT_BACKEND]: Call
18242 set_lface_from_font_and_fontset.
18243
18244 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
18245 "fixed", and signal error here if no suitable font was found.
18246
18247 * xfont.c (xfont_parse_name): Delete this function.
18248
18249 * xftfont.c (xftfont_open): Change coding style of error
18250 handling. Generate fontconfig's fontname pattern.
18251
18252 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
18253 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
18254
18255 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
18256 Both args FONTSET and FONT_OBJECT must be existing ones.
18257
182582008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18259
18260 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
18261
182622008-02-01 Kenichi Handa <handa@m17n.org>
18263
18264 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
18265
18266 * font.h (struct font): Fix typo.
18267
18268 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
18269 XLFD_XXX_INDEX.
18270 (enum xlfd_field_mask): New enum.
18271 (intern_font_field): Changed argument. Change caller. If digits
18272 are followed by non-digits, return a symbol.
18273 (font_expand_wildcards): New function.
18274 (font_parse_xlfd): Fix wildcard handling.
18275 (Ffont_spec): If :name is specified, reflect the info in the other
18276 properties.
18277
18278 * ftfont.c (ftfont_pattern_entity): Fix typo.
18279 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
18280 locale.
18281
182822008-02-01 Kenichi Handa <handa@m17n.org>
18283
18284 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
18285
18286 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
18287 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
18288 registry doesn't specify encoding part.
18289 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
18290 (font_open_by_name): At first try parsing the name.
18291 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
18292 as Lisp symbols.
18293
18294 * fontset.c (reorder_font_vector): Pay attention to the case that
18295 the 3rd element of font_def is nil.
18296 (fontset_font): For the default fontset, append one more fontset
18297 elements for a script-based font specification. Don't add script
18298 attribute on finding a font.
18299 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
18300 font name.
18301 (fontset_ascii_font): If a font can't be opened, return nil.
18302
18303 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
18304 (ftfont_pattern_entity): New function.
18305 (ftfont_get_cache): Assume that freetype_font_cache is already
18306 initialized.
18307 (ftfont_list): Handle the case that a file is specified in font
18308 name. Use ftfont_pattern_entity to generate entities.
18309 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
18310 (syms_of_ftfont): Initialize freetype_font_cache.
18311
18312 * xftfont.c (xftfont_open): Make the font name fontconfig's
18313 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
18314 (xftfont_close): Free font->font.name if not NULL.
18315
18316 * xfont.c (xfont_list): If script is specified for a font, return
18317 null_vector.
18318 (xfont_list_family): Declare argument type.
18319
18320 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
18321 name, set LFACE_FONT (lface) to nil.
18322
18323 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
18324 return Qnil.
18325
183262008-02-01 Kenichi Handa <handa@m17n.org>
18327
18328 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
18329 (standard_args): Add "-enable-font-backend".
18330
183312008-02-01 Kenichi Handa <handa@m17n.org>
18332
18333 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
18334 (struct xftdraw_list, xftdraw_list): Delete them.
18335 (register_xftdraw, check_xftdraw): Delete them.
18336 (xftfont_prepare_face): Don't call register_xftdraw.
18337 (xftfont_done_face): Don't call check_xftdraw.
18338 (xftfont_draw): Get background color only when with_background is
18339 nonzero.
18340
18341 * xfont.c (xfont_encode_char): Fix calculation of char2b.
18342
183432008-02-01 Kenichi Handa <handa@m17n.org>
18344
18345 These changes are for the new font handling codes.
18346
18347 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
18348 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
18349 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
18350 (FONTSRC, FONTOBJ): New variables.
18351 (obj): Add $(FONTOBJ).
18352 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
18353 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
18354 @LIBOTF_LIBS@.
18355 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
18356 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
18357
18358 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
18359
18360 * character.h (Vscript_representative_chars): Extern it.
18361
18362 * character.c (Vscript_representative_chars): New variable.
18363 (syms_of_character): Declare it as a Lisp variable.
18364
18365 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
18366 enable_font_backend is nonzero, accept the composition method
18367 COMPOSITION_WITH_GLYPH_STRING.
18368
18369 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
18370 enumeration COMPOSITION_WITH_GLYPH_STRING.
18371
18372 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
18373 members clip_x, clip_y, clip_width, and clip_height.
18374 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
18375
18376 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
18377 --enable-font-backend. Call syms_of_font.
18378
18379 * fns.c (assoc_no_quit): New function.
18380
18381 * fontset.h (FONT_INFO_FROM_FACE): New macro.
18382 (face_for_font, new_fontset_from_font)
18383 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
18384
18385 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
18386 (fontset_font, fontset_ascii, face_for_char)
18387 (make_fontset_for_ascii_face, Ffont_info)
18388 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
18389 is nonzero, use font-backend mechanism.
18390 (find_font_encoding): Make it non-static.
18391 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
18392 New functions.
18393
18394 * frame.h (struct frame): New members resx and resy.
18395 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
18396 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
18397
18398 * frame.c [USE_FONT_BACKEND]: Include "font.h".
18399 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
18400
18401 * lisp.h (assoc_no_quit): Extern it.
18402
18403 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
18404 Through out the file, use FONT_INFO_FROM_FACE instead of
18405 FONT_INFO_FROM_ID, use get_per_char_metric instead of
18406 rif->per_char_metric.
18407 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
18408 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
18409 (get_glyph_face_and_encoding, fill_composite_glyph_string)
18410 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18411 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
18412 nonzero, use font-backend mechanism.
18413 (get_per_char_metric): New function.
18414
18415 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
18416 (set_lface_from_font_name)
18417 (set_font_frame_param, free_realized_face)
18418 (prepare_face_for_display, clear_face_gcs)
18419 (Finternal_set_font_selection_order, realize_x_face)
18420 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
18421 font-backend mechanism.
18422 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
18423 (load_face_font) [USE_FONT_BACKEND]: Abort.
18424 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
18425 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
18426
18427 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
18428 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
18429 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
18430 nonzero, register all available font drivers. Call
18431 x_default_font_parameter for deciding a font.
18432 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
18433
18434 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
18435 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
18436 (x_set_glyph_string_clipping_exactly)
18437 (x_compute_glyph_string_overhangs)
18438 (x_draw_glyph_string_foreground)
18439 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
18440 (x_free_frame_resources) [USE_FONT_BACKEND]: If
18441 enable_font_backend is nonzero, use font-backend mechanism.
18442 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
18443
184442008-02-01 Kenichi Handa <handa@m17n.org>
18445
18446 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
18447 system_eol_type.
18448 (syms_of_coding): Initialize system_eol_type.
18449
18450 * process.c (Fset_process_coding_system): Inherit system's eol
18451 format if necessary.
18452
184532008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18454
18455 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
18456
184572008-02-01 Kenichi Handa <handa@m17n.org>
18458
18459 * coding.c (decode_eol): Pay attention to buffer relocation in
18460 del_range_2.
18461 (decode_coding): Call decode_eol before restoring undo_list.
18462
184632008-02-01 Kenichi Handa <handa@m17n.org>
18464
18465 * charset.c (Fdefine_charset_internal): Fix setting of
18466 emacs_mule_bytes.
18467
184682008-02-01 Kenichi Handa <handa@m17n.org>
18469
18470 * keyboard.c (read_char): Check if C is a character or not before
18471 looking up Vkeyboard_translate_table.
18472
184732008-02-01 Kenichi Handa <handa@m17n.org>
18474
18475 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
18476 condition to terminate the loop.
18477
184782008-02-01 Kenichi Handa <handa@m17n.org>
18479
18480 * coding.c (produce_composition): Compare charbuf[i] instead of
18481 args[i] against 0.
18482 (Fterminal_coding_system): Use EQ to compare Lisp objects.
18483
184842008-02-01 Kenichi Handa <handa@m17n.org>
18485
18486 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
18487 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
18488 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
18489 detect_coding.
18490 (emacs_mule_char): Handle old style (Emacs 20) component character
18491 of a composition.
18492 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
18493 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
18494 composition rule.
18495 (decode_coding_emacs_mule): Handle invalid bytes correctly.
18496
184972008-02-01 Kenichi Handa <handa@m17n.org>
18498
18499 * coding.c (encode_coding_ccl): Allocate destination dynamically
18500 when necessary.
18501
185022008-02-01 Kenichi Handa <handa@m17n.org>
18503
18504 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
18505 the loop. When quitted, show a proper error message.
18506
185072008-02-01 Kenichi Handa <handa@m17n.org>
18508
18509 * xterm.c (x_set_glyph_string_clipping_exactly): Set
18510 src->clip_head and src->clip_tail temporarily instead of src->hl.
18511
18512 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
18513 character sequence.
18514 (Fccl_execute_on_string): Use ASET, not XSET.
18515
185162008-02-01 Kenichi Handa <handa@m17n.org>
18517
18518 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
18519
185202008-02-01 Kenichi Handa <handa@m17n.org>
18521
18522 * coding.c (decode_coding): Fix the condition of terminating the
18523 decoding loop.
18524
185252008-02-01 Kenichi Handa <handa@m17n.org>
18526
18527 * data.c (Faset): On setting a character bigger than 255 in a
18528 unibyte string, signal an error instead of make the string multibyte.
18529
185302008-02-01 Kenichi Handa <handa@m17n.org>
18531
18532 * charset.c (map_charset_chars): Fix for ascii-compatible charset
18533 made by a mapping table.
18534
185352008-02-01 Kenichi Handa <handa@m17n.org>
18536
18537 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
18538 not.
18539 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
18540 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
18541
18542 * xterm.c (x_draw_composite_glyph_string_foreground): Check
18543 s->face is NULL or not.
18544
185452008-02-01 Kenichi Handa <handa@m17n.org>
18546
18547 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
18548 (x_draw_glyph_string): Fix drawing of right_overhang and
18549 left_overhang around/on cursor.
18550
18551 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
18552
185532008-02-01 Kenichi Handa <handa@m17n.org>
18554
18555 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
18556
185572008-02-01 Kenichi Handa <handa@m17n.org>
18558
18559 * coding.c (Fdefine_coding_system_internal)
18560 (Fdefine_coding_system_alias): Avoid a duplicated element in
18561 Vcoding_system_alist.
18562
185632008-02-01 Kenichi Handa <handa@m17n.org>
18564
18565 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
18566
18567 * coding.c (Qcoding_system_define_form): New variable.
18568 (syms_of_coding): Intern and staticpro it.
18569 (Fcoding_system_p): Check Qcoding_system_define_form.
18570 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
18571
18572 * coding.h (CODING_SYSTEM_P): If ID is not available, call
18573 Fcoding_system_p.
18574 (CHECK_CODING_SYSTEM): If ID is not available, call
18575 Fcheck_coding_system.
18576 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
18577 Try also Fcheck_coding_system.
18578
185792008-02-01 Kenichi Handa <handa@m17n.org>
18580
18581 * coding.c (code_conversion_restore): GCPRO arg.
18582
185832008-02-01 Kenichi Handa <handa@m17n.org>
18584
18585 * character.c (lisp_string_width): Check multibyteness of STRING.
18586
185872008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18588
18589 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
18590 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
18591 (decode_mac_font_name): Use decode_coding_c_string instead of
18592 decode_coding.
18593 (x_load_font): Initialize fontp->fontset to -1. Set
18594 fontp->encoding_type.
18595
185962008-02-01 Kenichi Handa <handa@m17n.org>
18597
18598 * search.c (search_buffer): Give up BM search on case-fold-search
18599 if one of a target character has a case-equivalence of different
18600 byte length even if that target charcter is an ASCII.
18601 (simple_search): Fix calculation of byte length of matched text.
18602 (boyer_moore): Fix handling of case-equivalent multibyte characters.
18603
186042008-02-01 Kenichi Handa <handa@m17n.org>
18605
18606 * coding.c (decode_coding): Fix handling of invalid bytes.
18607
186082008-02-01 Kenichi Handa <handa@m17n.org>
18609
18610 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
18611 Unicode characters.
18612
186132008-02-01 Kenichi Handa <handa@m17n.org>
18614
18615 * coding.c (encode_coding_object): If a pre-write-conversion
18616 function makes a new buffer, kill it.
18617
186182008-02-01 Kenichi Handa <handa@m17n.org>
18619
18620 * coding.c (QCascii_compatible_p): New variable.
18621 (syms_of_coding): Initialize it.
18622 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
18623 calling string_char.
18624 (record_conversion_result): Add `default:' case.
18625 (coding_charset_list): Delete unused variable `coding_type'.
18626 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
18627 property in the plist of the coding system.
18628 (Fcoding_system_put): Check QCascii_compatible_p.
18629
186302008-02-01 Miles Bader <miles@gnu.org>
18631
18632 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
18633 removed calculation of frame `f', as it's now used.
18634
186352008-02-01 Kenichi Handa <handa@m17n.org>
18636
18637 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
18638 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
18639 (UNIDATA): New variable.
18640 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
18641 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
18642 $(RUN_TEMACS) unconditionally.
18643
186442008-02-01 Kenichi Handa <handa@m17n.org>
18645
18646 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
18647 (admindir): New variable.
18648 ($(lispsource)international/charprop.el): New target.
18649
186502008-02-01 Miles Bader <miles@gnu.org>
18651
18652 * character.c (chars-in-region): Remove obsolete function.
18653 (syms_of_character): Remove its initialization.
18654
186552008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
18656
18657 * w32select.c (validate_coding_system)
18658 (setup_windows_coding_system): New functions.
18659 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
18660 setup_windows_coding_system.
18661 (setup_config, Fw32_get_clipboard_data): Use
18662 validate_coding_system.
18663 (Fx_selection_exists): Move call to setup_config to a place
18664 where signals are allowed.
18665
18666 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
18667 (Fcheck_coding_system): Add declarations.
18668
186692008-02-01 Kenichi Handa <handa@m17n.org>
18670
18671 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
18672
186732008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18674
18675 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
18676 string as the second argument for x_new_fontset.
18677
186782008-02-01 Kenichi Handa <handa@m17n.org>
18679
18680 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
18681 (encode_coding_object): Use safe_call instead of call2.
18682
186832008-02-01 Kenichi Handa <handa@m17n.org>
18684
18685 * fontset.c (Fset_fontset_font): Check family element of a given vector.
18686
18687 * Makefile.in (lisp): Include charprop.el.
18688
186892008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18690
18691 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
18692 Not sure if it's unnecessary.
18693
186942008-02-01 Steven Tamm <steventamm@mac.com>
18695
18696 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
18697 some possibly unnecessary fontset checking code that crashed
18698 when creating a new frame.
18699
187002008-02-01 Kenichi Handa <handa@m17n.org>
18701
18702 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
18703 lookup_face.
18704
18705 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
18706
18707 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
18708
187092008-02-01 Kenichi Handa <handa@m17n.org>
18710
18711 * coding.c: Cancel the change done in HEAD on 2008-02-01.
18712 (coding_charset_list): New function.
18713
18714 * coding.h (coding_charset_list): Extern it.
18715
187162008-02-01 Kenichi Handa <handa@m17n.org>
18717
18718 * fontset.c (Fset_fontset_font): Call find_font_encoding with
18719 concatenation of family and registry.
18720
187212008-02-01 Kenichi Handa <handa@m17n.org>
18722
18723 * character.h (BYTE8_STRING): Fix typo.
18724
18725 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
18726 string to multibyte (sync to HEAD).
18727
18728 * casefiddle.c (casify_region): Handle changes in byte-length
18729 using replace_range_2 (sync to HEAD).
18730
187312008-02-01 Andreas Schwab <schwab@suse.de>
18732
18733 * chartab.c (map_char_table): GCPRO table and arg.
18734
187352008-02-01 Kenichi Handa <handa@m17n.org>
18736
18737 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
18738 already at limit.
18739
187402008-02-01 Kenichi Handa <handa@m17n.org>
18741
18742 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
18743 instead of fast_c_string_match_ignore_case.
18744 (find_font_encoding): Change argument to Lisp_Object. Use
18745 fast_string_match_ignore_case instead of
18746 fast_c_string_match_ignore_case. Change caller.
18747
187482008-02-01 Kenichi Handa <handa@m17n.org>
18749
18750 * xdisp.c (get_next_display_element): In unibyte case, decide to
18751 display in octal form by checking a character by
18752 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
18753
18754 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
18755
18756 * character.c (unibyte_has_multibyte_table): New variable.
18757
18758 * character.h (unibyte_has_multibyte_table): Extern it.
18759 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
18760
187612008-02-01 Kenichi Handa <handa@m17n.org>
18762
18763 * coding.c (encode_coding_iso_2022): Fix handling of charset
18764 annotation.
18765
187662008-02-01 Kenichi Handa <handa@m17n.org>
18767
18768 * coding.c (setup_coding_system): If coding_system is nil, use
18769 Qundecided.
18770 (Fterminal_coding_system): Return nil if terminal coding system is
18771 `undecided'.
18772 (syms_of_coding): Define coding-system `undecided' here. Setup
18773 terminal_coding as `undecided'.
18774
187752008-02-01 Kenichi Handa <handa@m17n.org>
18776
18777 * xdisp.c (message_dolog, set_message_1): Call
18778 unibyte_char_to_multibyte with arg type int.
18779
18780 * lread.c (read1): Fix reading of a char-table.
18781
18782 * print.c (print_object): Include sub char-table in circularities
18783 detection.
18784
187852008-02-01 Kenichi Handa <handa@m17n.org>
18786
18787 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
18788 Append the found sequences in car of ARGS instead of prepending.
18789
187902008-02-01 Kenichi Handa <handa@m17n.org>
18791
18792 * fileio.c (report_file_error): Make a unibyte string from
18793 strerror (errorno).
18794 (Fsubstitute_in_file_name): Fix the arg to
18795 unibyte_char_to_multibyte. It is evaluated twice.
18796
187972008-02-01 Kenichi Handa <handa@m17n.org>
18798
18799 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
18800
188012008-02-01 Kenichi Handa <handa@m17n.org>
18802
18803 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
18804 BOM is not found.
18805 (detect_coding, detect_coding_system): Optimization for ISO-2022
18806 when no 8-bit data is found.
18807
188082008-02-01 Jason Rumney <jasonr@gnu.org>
18809
18810 * w32fns.c (x_to_w32_font): Update to use new coding struct.
18811
188122008-02-01 Kenichi Handa <handa@m17n.org>
18813
18814 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
18815 CHARS.
18816
188172008-02-01 Steven Tamm <steventamm@mac.com>
18818
18819 * macterm.c (mac_encode_char): Add charset argument and update
18820 to use encoding_type.
18821 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
18822 switch to pure fontset.
18823 (decode_mac_font_name): Temporarily remove decoding.
18824 (x_font_name_to_mac_font_name): Temporarily remove encoding.
18825 (x_load_font): Temporarily remove encoding.
18826
188272008-02-01 Kenichi Handa <handa@m17n.org>
18828
18829 * xfaces.c (Fface_font): If frame is not on a window system,
18830 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
18831 refer to face->font.
18832 (split_font_name_into_vector, build_font_name_from_vector)
18833 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
18834 when HAVE_WINDOW_SYSTEM is defined.
18835
188362008-02-01 Kenichi Handa <handa@m17n.org>
18837
18838 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
18839 (x_produce_glyphs): Fix setting of members of cmp in case
18840 cmp->glyph_len is zero.
18841
18842 * fontset.c (Fset_fontset_font): Fix docstring.
18843 (Ffontset_info): Make it backward compatible. New arg ALL.
18844
188452008-02-01 Kim F. Storm <storm@cua.dk>
18846
18847 * process.c (read_process_output): Grow decoding_buf when needed;
18848 this could cause a crash in allocate_string and compact_small_strings.
18849
188502008-02-01 Kenichi Handa <handa@m17n.org>
18851
18852 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
18853
188542008-02-01 Kenichi Handa <handa@m17n.org>
18855
18856 * coding.c (setup_coding_system): Set coding->common_flags
18857 correctly for raw-text.
18858 (consume_chars): On encoding unibyte text by raw-text, don't check
18859 multibyte form.
18860 (encode_coding): On encoding by raw-text, never use translation tables.
18861
18862 * fileio.c (e_write): Short cut for the case of no encoding.
18863
188642008-02-01 Kenichi Handa <handa@m17n.org>
18865
18866 * coding.c (detect_coding, detect_coding_system): Delete unused
18867 variables.
18868
188692008-02-01 Kenichi Handa <handa@m17n.org>
18870
18871 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
18872 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
18873
188742008-02-01 Kenichi Handa <handa@m17n.org>
18875
18876 * coding.c (Ffind_coding_systems_region_internal): Include
18877 raw-text and no-conversion in the result.
18878
188792008-02-01 Kenichi Handa <handa@m17n.org>
18880
18881 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
18882 (load_font_get_repertory): Delete unnecessary check of ENCODING of
18883 FONT_DEF.
18884 (font_def_arg, add_arg, from_arg, to_arg): New args.
18885 (set_fontset_font): Change argument.
18886 (Fset_fontset_font): Fix for the case that TARGET is a script
18887 name and charset name.
18888 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
18889
188902008-02-01 Kenichi Handa <handa@m17n.org>
18891
18892 * fontset.c (fontset_font): Rename from fontset_face. Change return
18893 value.
18894 (face_suitable_for_char_p, face_for_char): Adjust for the change
18895 of fontset_font.
18896 (make_fontset_for_ascii_face): Fix setting of the fontset element
18897 for ASCII.
18898 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
18899 to get a font name.
18900 (Ffontset_info): Adjust for the change of fontset_font.
18901
18902 * coding.c (emacs_mule_char): Check invalid code more rigidly.
18903
18904 * character.h (LEADING_CODE_LATIN_1_MIN)
18905 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
18906
189072008-02-01 Kenichi Handa <handa@m17n.org>
18908
18909 * editfns.c (check_translation): New function.
18910 (Ftranslate_region_internal): Handle M:N mapping.
18911
189122008-02-01 Kenichi Handa <handa@m17n.org>
18913
18914 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
18915
189162008-02-01 Kenichi Handa <handa@m17n.org>
18917
18918 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
18919 goto invalid_code.
18920 (decode_coding_iso_2022): Fix handling of invalid designation.
18921
18922 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
18923 after calling code_conversion_save.
18924
189252008-02-01 Kenichi Handa <handa@m17n.org>
18926
18927 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
18928
18929 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
18930
18931 * fontset.c: Include "intervals.h".
18932 (fontset_face): Fix comparing of Lisp_Objects.
18933 (free_face_fontset, new_fontset_from_font_name): Fix
18934 Lisp_Object/int mixup.
18935
18936 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
18937
18938 * coding.c: Add many prototypes for static functions.
18939 (get_translation_table): Allow max_lookup to be NULL.
18940 (decode_coding, Ffind_coding_systems_region_internal)
18941 (Funencodable_char_position, Fcheck_coding_systems_region): Call
18942 get_translation_table with max_lookup NULL.
18943
189442008-02-01 Kenichi Handa <handa@m17n.org>
18945
18946 * coding.c (get_translation_table): Declare it as Lisp_Object.
18947 (LOOKUP_TRANSLATION_TABLE): New macro.
18948 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
18949 instead of CHAR_TABLE_REF.
18950
189512008-02-01 Kenichi Handa <handa@m17n.org>
18952
18953 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
18954 annotation data format.
18955 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
18956 Change arguments FROM and TO to single argument NCHARS. Change caller.
18957 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
18958 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18959 (decode_coding_ccl, decode_coding_charset): Pay attention to
18960 coding->charbuf_used.
18961 (get_translation): New function.
18962 (produce_chars): New arguments translation_table and last_block.
18963 Translate characters here. Return number of carryover chars.
18964 Change caller.
18965 (produce_composition): New argument pos. Change caller.
18966 Adjust for the change of annotation data format.
18967 (produce_charset, produce_annotation): Likewise.
18968 (decode_coding, encode_coding): Don't call translate_chars.
18969 (consume_chars): New arg translation_table. Change caller.
18970 (translate_chars): Delete.
18971 (syms_of_coding): Make translation-table's number of extra slots 2.
18972
189732008-02-01 Kenichi Handa <handa@m17n.org>
18974
18975 * search.c (simple_search): Fix setting this_pos_byte in backward
18976 search.
18977
18978 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
18979 byte sequence.
18980 (detect_coding_ccl): Fix setting of the variable valids.
18981
189822008-02-01 Kenichi Handa <handa@m17n.org>
18983
18984 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
18985
18986 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
18987
18988 * editfns.c (Ftranslate_region_internal): Rename from
18989 Ftranslate_region. Accept a char-table in TABLE.
18990 (syms_of_editfns): Defsubr Stranslate_region_internal.
18991
18992 * xfaces.c (set_lface_from_font_name): If a font is specified for
18993 a frame, generate a fontset from the font.
18994 (build_scalable_font_name): If the scalable font is requested for
18995 a specific size, don't change that size.
18996 (try_font_list): Try a scalable font also in the case that a
18997 pattern string is specified.
18998
189992008-02-01 Kenichi Handa <handa@m17n.org>
19000
19001 * xfaces.c (Fface_font): New optional arg CHARACTER.
19002
190032008-02-01 Kenichi Handa <handa@m17n.org>
19004
19005 * charset.h (CHARSET_OFFSET): New macro.
19006
190072008-02-01 Kenichi Handa <handa@m17n.org>
19008
19009 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
19010
19011 * fontset.c (fontset_face): Handle the case that repertory is a
19012 char-table.
19013 (find_font_encoding): Return nil for unknown encoding.
19014 (Fset_fontset_font): Ignore a font of unknown encoding.
19015
190162008-02-01 Kenichi Handa <handa@m17n.org>
19017
19018 * keymap.c (describe_vector): Handle default value of a char table.
19019
19020 * fontset.c (fontset_face): Handle fallback fonts correctly.
19021 (Ffontset_info): Return infomation about fallback fonts.
19022
190232008-02-01 Kenichi Handa <handa@m17n.org>
19024
19025 * fontset.c (FONTSET_DEFAULT): New macro.
19026 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
19027 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
19028 the case that it is nil.
19029 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
19030 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
19031
19032 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
19033 subset or superset.
19034
190352008-02-01 Kenichi Handa <handa@m17n.org>
19036
19037 * emacs.c (main): Call init_charset after syms_of_XXX.
19038
19039 * charset.c (Vcharset_map_directory): Delete.
19040 (Vcharset_map_path): New variable.
19041 (load_charset_map_from_file): Use Vcharset_map_path instead.
19042 (init_charset): Initialize Vcharset_map_path.
19043 (syms_of_charset): Delete declaration of "charset-map-directory",
19044 add declaration of "charset-map-path".
19045
190462008-02-01 Kenichi Handa <handa@m17n.org>
19047
19048 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
19049 ASCII only string.
19050
19051 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
19052
19053 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
19054 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
19055
190562008-02-01 Kenichi Handa <handa@m17n.org>
19057
19058 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
19059
19060 * coding.c (QCmnemonic, QCdefalut_char)
19061 (QCdecode_translation_table, QCencode_translation_table)
19062 (QCpost_read_conversion, QCpre_write_conversion): New variables.
19063 (get_translation_table): Return a list of translation tables if
19064 necessary.
19065 (decode_coding): Call get_translation_table with ENCODEP 0.
19066 (char_encodable_p): If translation_table is non-nil, always call
19067 translate_char.
19068 (Fdefine_coding_system_internal): Accept list of translation
19069 tables as :encode-translation-table and :decode-translation-table.
19070 (Fcoding_system_put): New function.
19071 (syms_of_coding): Declare new symbols. Defsubr
19072 Scoding_system_put.
19073 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
19074 typically JISX0212.
19075
19076 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
19077 when the charset is superset type.
19078
19079 * character.c (translate_char): Accept list of translation tables.
19080
190812008-02-01 Kenichi Handa <handa@m17n.org>
19082
19083 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
19084 (CODING_ATTR_TRANS_TBL): New macro.
19085
19086 * coding.c (get_translation_table): New function.
19087 (translate_chars): Fix the bug of skipping annotation data.
19088 (decode_coding, encode_coding): Utilize get_translation_table.
19089 (char_encodable_p, Funencodable_char_position): Translate char if
19090 necessary.
19091 (Ffind_coding_systems_region_internal)
19092 (Fcheck_coding_systems_region): Setup translation table for encode
19093 in a coding system attribute vector in advance.
19094 (Fdefine_coding_system_internal): Allow a symbol as translation
19095 table. For shift-jis type coding system, allow 4th charset.
19096
190972008-02-01 Kenichi Handa <handa@m17n.org>
19098
19099 * coding.c (decode_coding_sjis): Check the first byte rigidly.
19100
19101 * xdisp.c (get_next_display_element): Pass -1 as POS to
19102 FACE_FOR_CHAR if displaying a C-string.
19103
191042008-02-01 Kenichi Handa <handa@m17n.org>
19105
19106 * composite.c (get_composition_id): Handle xoff and yoff in a
19107 composition rule.
19108
19109 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
19110 (struct composition): New member lbearing and rbearing.
19111
19112 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
19113 (x_get_glyph_overhangs): Handle a composition glyph.
19114 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
19115
19116 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
19117 composition glyph.
19118
191192008-02-01 Kenichi Handa <handa@m17n.org>
19120
19121 * print.c: Include charset.h.
19122 (Vprint_charset_text_property): New variable.
19123 (Qdefault): Extern it.
19124 (PRINT_STRING_NON_CHARSET_FOUND)
19125 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
19126 (print_check_string_result): New variable.
19127 (print_check_string_charset_prop): New function.
19128 (print_prune_charset_plist): New variable.
19129 (print_prune_string_charset): New function.
19130 (print_object): Call print_prune_string_charset if
19131 Vprint_charset_text_property is not t.
19132 (print_interval): Print nothing if interval->plist is nil.
19133 (syms_of_print): Declare Vprint_charset_text_property as a lisp
19134 variable. Init and staticpro print_prune_charset_plist.
19135
191362008-02-01 Kenichi Handa <handa@m17n.org>
19137
19138 * fontset.c (new_fontset_from_font_name): Use the specified font
19139 for all characters in the new fontset.
19140
19141 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19142 OBJECT args.
19143
19144 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
19145 OBJECT args for composition too.
19146
19147 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19148 OBJECT args.
19149
191502008-02-01 Kenichi Handa <handa@m17n.org>
19151
19152 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
19153
19154 * fontset.c (reorder_font_vector): Adjust for the change of
19155 FONT_DEF format.
19156 (fontset_face): New arg id. Change caller.
19157 (face_for_char): New args pos and object.
19158 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
19159 (fs_query_fontset): Check NAME by Fassoc too.
19160 (Fset_fontset_font): Allow non-XLFD font name.
19161 (Ffontset_info): Adjust for the change of FONT_DEF format.
19162
19163 * fontset.h (face_for_char): Adjust prototype.
19164
19165 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
19166 (append_space, extend_face_to_end_of_line)
19167 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19168 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
19169
19170 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
19171 POS and OBJECT args.
19172
19173 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
19174 POS and OBJECT args.
19175
191762008-02-01 Jason Rumney <jasonr@gnu.org>
19177
19178 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
19179 of GlobalAlloc'ed memory.
19180
191812008-02-01 Kenichi Handa <handa@m17n.org>
19182
19183 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
19184
19185 * charset.h (charset_table_used): Delete extern.
19186
19187 * charset.c (charset_table_used): Make it static.
19188 (map_charset_chars): Fix args to c_function with.
19189
19190 * chartab.c (map_sub_char_table_for_charset): Fix args to
19191 c_function with.
19192
19193 * coding.h (enum coding_result_code): Delete
19194 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
19195
19196 * coding.c (Qinsufficient_source, Qinconsistent_eol)
19197 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
19198 (Vlast_code_conversion_error): New variables.
19199 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
19200 (ONE_MORE_BYTE): Record error if any instead of signaling an
19201 error. If non-ASCII multibyte char is found, return the negative
19202 value of the code. All callers changed to check it.
19203 (ONE_MORE_BYTE_NO_CHECK): Likewise.
19204 (record_conversion_result): New function. Change all codes setting
19205 coding->result to call this function.
19206 (detect_coding_utf_8, decode_coding_utf_8)
19207 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
19208 Don't use the local variable incomplete.
19209 (emacs_mule_char): Change the second arg to `const'.
19210 (decode_coding): Fix of flushing out unprocessed data.
19211 (make_conversion_work_buffer): Fix making of a work buffer.
19212 (decode_coding_object): Return coding->dst_object.
19213
19214 * fontset.c (set_fontset_font): Fix args.
19215
19216 * lisp.h (CHARACTERBITS): Define as 22.
19217
19218 * process.c (send_process): Be sure to set coding->src_multibyte.
19219
19220 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
19221
192222008-02-01 Kenichi Handa <handa@m17n.org>
19223
19224 * xdisp.c (handle_auto_composed_prop): Give limit to
19225 Fnext_single_char_property_change.
19226
192272008-02-01 Kenichi Handa <handa@m17n.org>
19228
19229 * composite.c (syms_of_composite): Don't make the composition hash
19230 table weak.
19231
19232 * fontset.c (Fset_fontset_font): Fix docstring.
19233
19234 * lisp.h (detect_coding_system): Adjust prototype.
19235
19236 * fileio.c (kill_workbuf_unwind): Delete this function.
19237 (Finsert_file_contents): Adjust the call of detect_coding_system.
19238 Get conversion_buffer by code_conversion_save. Use the macro
19239 CODING_MAY_REQUIRE_DECODING. After decoding, update
19240 coding_system.
19241
19242 * coding.h (make_conversion_work_buffer): Delete extern.
19243 (code_conversion_save): Extern it.
19244
19245 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
19246 (CODING_GET_INFO): Delete argument eol_type. Change callers.
19247 (decode_coding_utf_8): Don't do eol converion.
19248 (detect_coding_utf_16): Check coding->src_chars, not
19249 coding->src_bytes. Add heuristics for those that have no signature.
19250 (decode_coding_emacs_mule, decode_coding_iso_2022)
19251 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19252 Don't do eol converion.
19253 (adjust_coding_eol_type): Return a new coding system.
19254 (detect_coding): Don't detect eol. Fix for utf-16 detection.
19255 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
19256 each change.
19257 (decode_coding): Pay attention to undo_list. Do eol conversion for
19258 all types of coding-systems (if necessary).
19259 (Vcode_conversion_work_buf_list): Delete it.
19260 (Vcode_conversion_reused_workbuf): Rename from
19261 Vcode_conversion_reused_work_buf.
19262 (Vcode_conversion_workbuf_name): New variable.
19263 (reused_workbuf_in_use): New variable.
19264 (make_conversion_work_buffer): Delete the arg DEPTH.
19265 (code_conversion_restore): Change argument to cons.
19266 (code_conversion_save): Delete the argument BUFFER. Change callers.
19267 (detect_coding_system): New argument src_chars. Change callers.
19268 Fix for utf-16 detection.
19269 (init_coding_once): Don't use ISO_carriage_return.
19270 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
19271 reused_workbuf_in_use.
19272
192732008-02-01 Kenichi Handa <handa@m17n.org>
19274
19275 * keymap.c (store_in_keymap): Pay attention to the case that idx
19276 is a cons specifying a character range.
19277
192782008-02-01 Kenichi Handa <handa@m17n.org>
19279
19280 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
19281 HANDLED_RECOMPUTE_PROPS.
19282
19283 * coding.c (Fdefine_coding_system_internal): Fix checking of
19284 ascii compatibility.
19285
192862008-02-01 Kenichi Handa <handa@m17n.org>
19287
19288 * charset.c (find_charsets_in_text): Delete unused locale variable.
19289 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
19290
19291 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
19292 Resync charset_list to Vemacs_mule_charset_list.
19293
19294 * keymap.c (store_in_keymap): Pay attention to the case that idx
19295 is a cons specifying a character range.
19296
192972008-02-01 Kenichi Handa <handa@m17n.org>
19298
19299 * composite.c (update_compositions): Bind inhibit-read-only, etc
19300 to t before calling remove-list-of-text-properties.
19301
19302 * print.c (print_object): Always print ASCII chars as is.
19303
193042008-02-01 Kenichi Handa <handa@m17n.org>
19305
19306 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
19307
19308 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
19309 is a char table.
19310
193112008-02-01 Kenichi Handa <handa@m17n.org>
19312
19313 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
19314
193152008-02-01 Kenichi Handa <handa@m17n.org>
19316
19317 * xfaces.c (set_lface_from_font_name): Fix for the case that
19318 FONTNAME is not fontset name.
19319
193202008-02-01 Kenichi Handa <handa@m17n.org>
19321
19322 * fns.c (base64_encode_1): Fix previous change.
19323
193242008-02-01 Kenichi Handa <handa@m17n.org>
19325
19326 * fontset.c (set_fontset_font): New function.
19327 (Fset_fontset_font): If a font is specified for a charset, use
19328 map_charset_chars to store the font spec in a fontset.
19329
193302008-02-01 Kenichi Handa <handa@m17n.org>
19331
19332 * fontset.c (fontset_face): Create a fallback fontset on demand.
19333 (make_fontset): Don't create a fallback fontset here.
19334 (free_face_fontset): Free a fallback fontset (if any) too.
19335 (n_auto_fontsets): Delete this variable.
19336 (auto_fontset_alist): New variable.
19337 (new_fontset_from_font_name): Check auto_fontset_alist.
19338 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
19339 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
19340 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
19341 Defsubr Sfontset_list_all.
19342
193432008-02-01 Kenichi Handa <handa@m17n.org>
19344
19345 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
19346
193472008-02-01 Kenichi Handa <handa@m17n.org>
19348
19349 * fontset.c (Fnew_fontset): Check NAME more rigidly.
19350
193512008-02-01 Kenichi Handa <handa@m17n.org>
19352
19353 * editfns.c (Fgoto_char): Fix docstring.
19354
193552008-02-01 Kenichi Handa <handa@m17n.org>
19356
19357 * insdel.c (insert_from_gap): Adjust intervals correctly.
19358
193592008-02-01 Jason Rumney <jasonr@gnu.org>
19360
19361 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
19362 (pfnGetFontUnicodeRanges): New dynamically loaded function.
19363 (w32_initialize): Try to load it.
19364 (x_get_font_repertory): Use it if available.
19365 (w32_encode_char): Add shortcut for unicode output.
19366
19367 * w32fns.c (w32_load_system_font): Default charset to -1.
19368 (x_to_w32_charset): Match all fonts for unicode.
19369 (w32_to_x_charset): New parameter matching. Don't return partial
19370 or wildcard charsets.
19371 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
19372 (w32_codepage_for_font): Return CP_UNICODE for unicode.
19373 (w32_to_x_font): Match charset to real charset.
19374 (enum_font_cb2): Always list unicode versions.
19375
19376 * makefile.w32-in (temacs): Increase EMHEAP.
19377
193782008-02-01 Jason Rumney <jasonr@gnu.org>
19379
19380 * w32term.c (w32_encode_char): New charset parameter.
19381 font_info.encoding becomes encoding_type.
19382 (x_get_font_repertory): New function. Warning: stub only!
19383 (x_new_font): Return quickly if font already set.
19384 (x_new_fontset): fontsetname parameter is Lisp_Object.
19385 Use new fs_query_fontset. Try new_fontset_from_font_name.
19386 Use fontset_name for return value.
19387
19388 * w32term.h: Declare x_get_font_repertory.
19389
19390 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
19391 place of find_charset_in_text. Use encode_coding_object in place
19392 of encode_coding.
19393 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
19394 decode_coding.
19395
19396 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
19397 of x_new_fontset.
19398 (w32_load_system_font): Initialize charset as unicode.
19399 font_info.encoding becomes encoding_type.
19400 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
19401 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
19402 (syms_of_w32fns): Set get_font_repertory_func.
19403
19404 * w32console.c: Include character.h. Use terminal_encode_buffer
19405 from term.c.
19406 (write_glyphs): Use new version of encode_terminal_code. Use
19407 encode_coding_object in place of encode_coding.
19408
19409 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
19410 encoding becomes encoding_type.
19411
19412 * term.c (terminal_encode_buffer): Make externally visible.
19413
19414 * makefile.w32-in: Add character.h dependancies.
19415 (character.o, chartab.o): New targets.
19416
194172008-02-01 Kenichi Handa <handa@m17n.org>
19418
19419 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
19420 CODING_ID_EOL_TYPE.
19421
194222008-02-01 Andreas Schwab <schwab@suse.de>
19423
19424 * coding.c (produce_chars): Revert last change.
19425
194262008-02-01 Kenichi Handa <handa@m17n.org>
19427
19428 * charset.h (charset_unicode): Extern it.
19429
19430 * charset.c (string_xstring_p): Check by (C >= 0x100).
19431 (find_charsets_in_text): Change format of the arc CHARSETS. New
19432 arg MULTIBYTE.
19433 (Ffind_charset_region, Ffind_charset_string): Adjust for the
19434 change of find_charsets_in_text.
19435 (Fsplit_char): Fix doc. Never return unknown.
19436
19437 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
19438
19439 * coding.c (Fdefine_coding_system_alias): Update
19440 Vcoding_system_list.
19441
19442 * fontset.c (load_font_get_repertory): Pay attention to the case
19443 that ENCODING of a font is specified by a char-table.
19444
19445 * xterm.c (x_get_font_repertory): Handle the case that the
19446 encoding of font is other than Unicode.
19447
194482008-02-01 Kenichi Handa <handa@m17n.org>
19449
19450 * term.c (encode_terminal_code): Don't handle glyph-table. Check
19451 if a character is encodable by the terminal coding system. If
19452 not, produces proper number of `?'s. Update
19453 terminal_encode_buffer and terminal_encode_buf_size if necessary.
19454 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
19455
194562008-02-01 Kenichi Handa <handa@m17n.org>
19457
19458 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
19459 variables.
19460 (encode_terminal_code): Change argument. Encode multiple
19461 characters at once. Store the result of encoding in
19462 terminal_encode_buffer.
19463 (write_glyphs, insert_glyphs): Adjust for the change of
19464 encode_terminal_code.
19465 (term_init): Initialize terminal_encode_buffer and
19466 terminal_encode_buf_size.
19467
19468 * coding.c (consume_chars): If coding->src_object is nil, don't
19469 check annotation.
19470
194712008-02-01 Kenichi Handa <handa@m17n.org>
19472
19473 * character.c (char_string): Use ASCII_CHAR_P instead of
19474 SINGLE_BYTE_CHAR_P.
19475
194762008-02-01 Kenichi Handa <handa@m17n.org>
19477
19478 * xdisp.c (handle_auto_composed_prop): Check if the last
19479 characters of auto-composed region is newly composed with the
19480 following characters.
19481 (handle_composition_prop): Fix checking of point being inside
19482 composition.
19483
194842008-02-01 Kenichi Handa <handa@m17n.org>
19485
19486 * fns.c (concat): Don't change multibyteness of the result by
19487 concatenating an 8-bit character.
19488
19489 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
19490 multibyteness of the result when newelt is an 8-bit character.
19491
194922008-02-01 Dave Love <fx@gnu.org>
19493
19494 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
19495 EMACS_INT.
19496
19497 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
19498
19499 * xfaces.c (face_numeric_value): Declare dim size_t.
19500 (Finternal_lisp_face_equal_p): Remove unused f.
19501
19502 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
19503 (MATRIX_ROW): Remove unused vars.
19504 (draw_glyphs, x_insert_glyphs, fast_find_position)
19505 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
19506 byte/char counts.
19507
19508 * regex.c (regex_compile): Remove unused var.
19509
19510 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19511
19512 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
19513 (Faccessible_keymaps, where_is_internal): Remove unused vars.
19514
19515 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
19516
19517 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
19518
19519 * fileio.c (Fwrite_region): Remove unused var.
19520
19521 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
19522 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
19523
19524 * composite.c (Fremove_list_of_text_properties): Declare.
19525
19526 * coding.c (inhibit_pre_post_conversion): Remove (unused).
19527 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
19528 (coding_inherit_eol_type): Remove unused attrs.
19529 (detect_coding): Cast arg of detect_eol.
19530
19531 * charset.c (syms_of_charset): Remove unused var p.
19532 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
19533 byte/char counts.
19534
19535 * casetab.c (set_case_table): Remove unused var.
19536
19537 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
19538 unused vars.
19539
195402008-02-01 Dave Love <fx@gnu.org>
19541
19542 * xterm.c (x_bitmap_mask): Declare.
19543
195442008-02-01 Dave Love <fx@gnu.org>
19545
19546 * xterm.c (x_term_init): Fix type error.
19547
19548 * lisp.h: Add Funibyte_char_to_multibyte.
19549
19550 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
19551 (Fset_coding_system_priority): Doc fix.
19552
19553 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
19554
19555 * indent.c (check_composition): Make start and end EMACS_INT.
19556
19557 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
19558
19559 * xdisp.c (handle_composition_prop, check_point_in_composition):
19560 Make buffer positions EMACS_INT.
19561
19562 * composite.c (find_composition, run_composition_function)
19563 (update_compositions, Ffind_composition_internal): Make buffer
19564 positions EMACS_INT.
19565
19566 * composite.h (find_composition, update_compositions): Make
19567 position args EMACS_INT.
19568
19569 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
19570
19571 * intervals.c (get_property_and_range):
19572 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
19573
19574 * unexalpha.c: Don't include varargs.h.
19575
195762008-02-01 Dave Love <fx@gnu.org>
19577
19578 * coding.h (ENCODE_UTF_8): New.
19579
19580 * Makefile.in (gtkutil.o): Depend on coding.h.
19581
19582 * coding.c (Fset_coding_system_priority): Doc fix.
19583
195842008-02-01 Kenichi Handa <handa@m17n.org>
19585
19586 * fileio.c (Finsert_file_contents): Call setup_coding_system in
19587 the case of auto saving.
19588
195892008-02-01 Andreas Schwab <schwab@suse.de>
19590
19591 * chartab.c (map_char_table, map_char_table_for_charset): Protect
19592 `range' from GC.
19593
195942008-02-01 Kenichi Handa <handa@m17n.org>
19595
19596 * coding.c (decode_coding_sjis): Check bytes more rigidly.
19597
195982008-02-01 Kenichi Handa <handa@m17n.org>
19599
19600 * fileio.c (choose_write_coding_system): Return a decided coding system.
19601 (Fwrite_region): Set Vlast_coding_system_used to the return value
19602 of choose_write_coding_system.
19603
196042008-02-01 Kenichi Handa <handa@m17n.org>
19605
19606 * charset.c (Fset_charset_priority): Pay attention to duplicated
19607 arguments.
19608
19609 * coding.c (QCcategory): New variable.
19610 (syms_of_coding): Defsym it. Set all elements of
19611 Vcoding_category_table and their symbol values.
19612 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
19613 coding-category-XXX, and coding-category-list.
19614 (Fdefine_coding_system_internal): Add category in the plist.
19615
196162008-02-01 Kenichi Handa <handa@m17n.org>
19617
19618 * callproc.c (Fcall_process): Handle carryover correctly.
19619
19620 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
19621 (raw_text_coding_system): Check NILP (coding_system).
19622 (coding_inherit_eol_type): Check NILP (coding_system) and
19623 NILP (parent).
19624 (consume_chars): Fix for the case of raw-text.
19625
19626 * process.c (read_process_output): Handle carryover correctly.
19627
196282008-02-01 Dave Love <fx@gnu.org>
19629
19630 * regex.c (re_search_2): Fix last change.
19631
196322008-02-01 Kenichi Handa <handa@m17n.org>
19633
19634 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
19635 target_multibyte. Even in a unibyte case, return a converted
19636 multibyte char.
19637 (GET_CHAR_AFTER): New macro.
19638 (PATFETCH): Translate via multibyte char.
19639 (HANDLE_UNIBYTE_RANGE): Delete this macro.
19640 (SETUP_MULTIBYTE_RANGE): New macro.
19641 (regex_compile): Setup compiled code so that its multibyteness
19642 matches that of a target. Fix the handling of "[X-YZ]" using
19643 SETUP_MULTIBYTE_RANGE.
19644 (analyse_first) <charset>: For filling fastmap for all multibyte
19645 characters, don't check by BASE_LEADING_CODE_P.
19646 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
19647 the same as RE_MULTIBYTE_P (bufp) now.
19648 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
19649 (TARGET_CHAR_AND_LENGTH): Delete this macro.
19650 (TRANSLATE_VIA_MULTIBYTE): New macro.
19651 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
19652 It is the same as RE_MULTIBYTE_P (bufp) now.
19653 <exactn>: Translate via multibyte.
19654 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
19655 translate it.
19656 <charset, charset_not>: Fetch a character by
19657 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
19658 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
19659 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
19660 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
19661 by GET_CHAR_AFTER.
19662 (bcmp_translate): Likewise.
19663
19664 * search.c (compile_pattern): Check the member target_multibyte,
19665 not the member multibyte of buf.
19666
19667 * lread.c (read1): While reading a string, set force_singlebyte
19668 and force_multibyte correctly.
19669
19670 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
19671 up of unibyte_to_multibyte_table.
19672
196732008-02-01 Kenichi Handa <handa@m17n.org>
19674
19675 * coding.c (setup_coding_system): If coding has
19676 post-read-conversion or pre-write-conversion, set
19677 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
19678 respectively.
19679 (decode_coding_gap): Run post-read-conversion if any.
19680
19681 * fileio.c (Finsert_file_contents): Even if we read into a
19682 unibyte buffer, check if we must decode the result or not.
19683
196842008-02-01 Kenichi Handa <handa@m17n.org>
19685
19686 * coding.c (make_conversion_work_buffer): Change the work buffer
19687 name to the same one as that of Emacs 21.
19688
196892008-02-01 Kenichi Handa <handa@m17n.org>
19690
19691 * coding.h (make_conversion_work_buffer): Adjust prototype.
19692 (code_conversion_restore): Don't extern it.
19693
19694 * coding.c (detected_mask): Delete unused variable.
19695 (decode_coding_iso_2022): Pay attention to the byte sequence of
19696 CTEXT extended segment, and retain those bytes as is.
19697 (decode_coding_ccl): Delete unused variable `valids'.
19698 (setup_coding_system): Delete unused variable `category'.
19699 (consume_chars): Delete unused variable `category'. Make it work
19700 for non-multibyte case.
19701 (make_conversion_work_buffer): Change argument.
19702 (saved_coding): Delete unused variable.
19703 (code_conversion_restore): Don't check saved_coding->destination.
19704 (code_conversion_save): New function.
19705 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
19706 instead of record_unwind_protect.
19707 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
19708 (detect_coding_system): Delete unused variable `mask'.
19709 (Fdefine_coding_system_internal): Delete unused variable id.
19710
19711 * fileio.c (kill_workbuf_unwind): New function.
19712 (Finsert_file_contents): On replacing, call
19713 make_conversion_work_buffer with correct args, and call
19714 record_unwind_protect with the first arg kill_workbuf_unwind.
19715
19716 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
19717
197182008-02-01 Kenichi Handa <handa@m17n.org>
19719
19720 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
19721 (fontset_add): Fix for the case that TO is less than TO1.
19722 (Ffontset_info): Don't use fallback fontset on checking the
19723 default fontset.
19724 (dump_fontset): New function for debugging.
19725
19726 * coding.c (Fdefine_coding_system_internal): Fix for the case that
19727 coding_type is Qcharset.
19728
197292008-02-01 Kenichi Handa <handa@m17n.org>
19730
19731 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
19732 (map_char_table): Don't inherit the value from the parent on
19733 initializing VAL. Adjust for the above change.
19734
197352008-02-01 Kenichi Handa <handa@m17n.org>
19736
19737 * coding.c (Qsignature, Qendian): Delete these variables.
19738 (syms_of_coding): Don't initialize them.
19739 (CATEGORY_MASK_UTF_16_AUTO): New macro.
19740 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
19741 detect_info->found.
19742 (decode_coding_utf_16): Don't detect BOM here.
19743 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
19744 is NOT utf_16_without_bom.
19745 (setup_coding_system): For a coding system of type utf-16, check
19746 if the attribute :endian is Qbig or not (not nil or not), and set
19747 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
19748 (detect_coding): If coding type is utf-16 and BOM detection is
19749 required, detect it.
19750 (Fdefine_coding_system_internal): For a coding system of type
19751 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
19752
197532008-02-01 Kenichi Handa <handa@m17n.org>
19754
19755 * coding.c (coding_set_source): Fix for the case that the current
19756 buffer is different from coding->src_object.
19757 (decode_coding_object): Don't use the conversion work buffer if
19758 DST_OBJECT is a buffer.
19759
197602008-02-01 Dave Love <fx@gnu.org>
19761
19762 * lread.c (read_emacs_mule_char) [len==2]: Index
19763 emacs_mule_charset correctly.
19764
197652008-02-01 Dave Love <fx@gnu.org>
19766
19767 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
19768 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
19769 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
19770 treated specially.)
19771 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
19772 (detected_mask): Remove Big5 bits.
19773
197742008-02-01 Kenichi Handa <handa@m17n.org>
19775
19776 The following changes are to make the font rescaling facility
19777 compatible with Emacs 21.
19778
19779 * xfaces.c (Vface_font_rescale_alist): Rename from
19780 Vface_resizing_fonts.
19781 (struct font_name): Rename member resizing_ratio to rescale_ratio.
19782 (font_rescale_ratio): Rename from font_resizing_ratio.
19783 (split_font_name): Set font->rescale_ratio.
19784 (better_font_p): Pay attention to font->rescale_ratio.
19785 (build_scalable_font_name): Likewise. Change RESX, and RESY
19786 fields.
19787 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
19788
197892008-02-01 Kenichi Handa <handa@m17n.org>
19790
19791 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
19792 (Qutf_16_le): Remove these variables.
19793 (syms_of_coding): Don't DEFSYM them.
19794 (decode_coding_utf_16): Fix handling of BOM.
19795 (encode_coding_utf_16): Fix handling of BOM.
19796
197972008-02-01 Kenichi Handa <handa@m17n.org>
19798
19799 * fileio.c (Finsert_file_contents): On replacing, before decoding
19800 the file into the work buffer, set point of the work buffer to the end.
19801
198022008-02-01 Dave Love <fx@gnu.org>
19803
19804 * coding.c (Fcheck_coding_systems_region): Fix type errors.
19805
198062008-02-01 Dave Love <fx@gnu.org>
19807
19808 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19809 and fix C types.
19810
198112008-02-01 Kenichi Handa <handa@m17n.org>
19812
19813 * xdisp.c (SKIP_GLYPHS): New macro.
19814 (set_cursor_from_row): Pay attention to string display properties.
19815
19816 * category.c (copy_category_entry): Fix for the case that RANGE
19817 is an integer.
19818
19819 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
19820
19821 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
19822
198232008-02-01 Kenichi Handa <handa@m17n.org>
19824
19825 * charset.c (Fcharset_id_internal): New function.
19826 (syms_of_charset): Defsubr it.
19827
19828 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
19829 with the last arg charset_list acquired from coding.
19830 (Fdefine_coding_system_internal): For ccl-based coding system, fix
19831 the attribute coding_attr_ccl_valids.
19832
19833 * coding.h (enum define_coding_ccl_arg_index): Set the first
19834 member coding_arg_ccl_decoder to coding_arg_max.
19835
19836 * ccl.h (ccl_driver): Adjust prototype.
19837
19838 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
19839 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 19840 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
19841 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
19842 last arg Qnil.
19843
198442008-02-01 Kenichi Handa <handa@m17n.org>
19845
19846 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
19847 call encode_char.
19848
19849 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
19850
198512008-02-01 Dave Love <fx@gnu.org>
19852
19853 * composite.c (syms_of_composite): Make composition_hash_table weak.
19854
198552008-02-01 Kenichi Handa <handa@m17n.org>
19856
19857 * dispextern.h (check_face_attributes, generate_ascii_font_name)
19858 (font_name_registry): Don't extern them.
19859 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
19860
19861 * fontset.h (Qfontset): Don't extern it.
19862 (new_fontset_from_font_name): Extern it.
19863
19864 * fontset.c: Give 8 extra slots to fontset objects.
19865 (Qfontset_info): New variable.
19866 (syms_of_fontset): Defsym it.
19867 (FONTSET_FALLBACK): New macro.
19868 (fontset_face): Try also the default fontset.
19869 (make_fontset): Realize a fallback fontset from the default fontset.
19870 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
19871 using split_font_name_into_vector and build_font_name_from_vector.
19872 (Fset_fontset_font): Access the elements of font_spec by enum
19873 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
19874 name by using split_font_name_into_vector.
19875 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
19876 generate a proper font name from the fontset name. Update
19877 Vfontset_alias_alist.
19878 (n_auto_fontsets): New variable.
19879 (new_fontset_from_font_name): New function.
19880 (Ffont_info): Store the information about fonts generated from the
19881 default fontset in the first extra slot of the returned char-table.
19882
19883 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
19884 (font_name_registry): Delete function.
19885 (split_font_name_into_vector): New function.
19886 (build_font_name_from_vector): New function.
19887 (font_list): The argument REGISTRY is now a list of registry names.
19888 (choose_face_font): If we are choosing an ASCII font, and ATTRS
19889 specifies an explicit font name, return the name as is. Make a
19890 list of registy names.
19891
19892 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
19893 of x_new_fontset.
19894 (Fx_create_frame): Don't call x_new_fontset here. Just use
19895 x_list_fonts to check the existence of fonts.
19896
19897 * xterm.h (x_new_fontset): Adjust prototype.
19898
19899 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
19900 string. Use new_fontset_from_font_name to create a fontset from a
19901 font name.
19902
199032008-02-01 Kenichi Handa <handa@m17n.org>
19904
19905 * syntax.c (Vfind_word_boundary_function_table): New name for
19906 Vnext_word_boundary_function_table.
19907 (find-word-boundary-function-table): New name for
19908 next-word-boundary-function-table.
19909
199102008-02-01 Dave Love <fx@gnu.org>
19911
19912 * Makefile.in: Fix some dependencies.
19913
19914 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
19915 set it to nil before returning.
19916
19917 * composite.c (update_compositions): Fix type error.
19918
19919 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
19920
199212008-02-01 Kenichi Handa <handa@m17n.org>
19922
19923 * xterm.c (x_new_font): Optimize for the case that the font is
19924 already set for the frame.
19925
199262008-02-01 Kenichi Handa <handa@m17n.org>
19927
19928 * chartab.c (char_table_ascii): Check if the char table contents
19929 is sub-char-table or not.
19930 (char_table_set, char_table_set_range): Fix argument to
19931 char_table_ascii.
19932
19933 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
19934 (detect_coding_utf_8, detect_coding_utf_16)
19935 (detect_coding_emacs_mule, detect_coding_iso_2022)
19936 (detect_coding_sjis, detect_coding_big5)
19937 (detect_coding_ccl, detect_coding_charset): Change argument MASK
19938 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
19939 sequence is valid in this coding system. Change callers.
19940 (MAX_ANNOTATION_LENGTH): New macro.
19941 (ADD_ANNOTATION_DATA): New macro.
19942 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
19943 ADD_ANNOTATION_DATA. Change the format of annotation data.
19944 (ADD_CHARSET_DATA): New macro.
19945 (emacs_mule_char): New argument ID. Change callers.
19946 (decode_coding_emacs_mule, decode_coding_iso_2022)
19947 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19948 Produce charset annotation data in coding->charbuf.
19949 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
19950 to charset annotation data in coding->charbuf.
19951 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
19952 coding->common_flags if the coding system is iso-2022 based and
19953 uses designation.
19954 (produce_composition): Adjust for the new annotation data format.
19955 (produce_charset): New function.
19956 (produce_annotation): Handle charset annotation.
19957 (handle_composition_annotation, handle_charset_annotation): New
19958 functions.
19959 (consume_chars): Handle charset annotation. Utilize the above two
19960 functions.
19961 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
19962 buffer, get the deleted text as a string and set
19963 coding->src_object to that string.
19964 (detect_coding, detect_coding_system): Use the new struct
19965 coding_detection_info.
19966
19967 * coding.h (struct coding_detection_info): New structure.
19968 (struct coding_system): Adjust prototype of the member `detector'.
19969 (CODING_ANNOTATE_CHARSET_MASK): New macro.
19970
199712008-02-01 Kenichi Handa <handa@m17n.org>
19972
19973 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
19974
199752008-02-01 Dave Love <fx@gnu.org>
19976
19977 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
19978 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
19979 to new local and nullify apropos_accumulate before returning.
19980 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
19981
199822008-02-01 Kenichi Handa <handa@m17n.org>
19983
19984 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
19985 correctly.
e3eea1fc 19986
aac0c6e3
MR
199872008-02-01 Dave Love <fx@gnu.org>
19988
19989 * fns.c (Flanginfo): Call synchronize_system_time_locale.
19990
199912008-02-01 Kenichi Handa <handa@m17n.org>
19992
19993 The following changes are to make character composition happen
19994 automatically on displaying.
19995
19996 * Makefile.in (lisp, shortlisp): Add composite.elc.
19997
19998 * composite.h (Qauto_composed, Vauto_composition_function)
19999 (Qauto_composition_function): Extern them.
20000
20001 * composite.c (Vcomposition_function_table)
20002 (Qcomposition_function_table): Delete variables.
20003 (Qauto_composed, Vauto_composition_function)
20004 (Qauto_composition_function): New variables.
20005 (run_composition_function): Don't call
20006 compose-chars-after-function.
20007 (update_compositions): Clear `auto-composed' text property.
20008 (compose_chars_in_text): Delete this function.
20009 (syms_of_composite): Staticpro Qauto_composed and
20010 Qauto_composition_function. Declare Vauto_composition_function as
20011 a Lisp variable.
20012
20013 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
20014
20015 * xdisp.c (it_props): Add an entry for Qauto_composed.
20016 (handle_auto_composed_prop): New function.
20017
20018 * xselect.c (selection_data_to_lisp_data): Don't call
20019 compose_chars_in_text.
20020
200212008-02-01 Dave Love <fx@gnu.org>
20022
20023 * keyboard.c (read_char): Modify checking around use of
20024 Vkeyboard_translate_table.
20025
20026 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20027 and fix C types.
20028
200292008-02-01 Kenichi Handa <handa@m17n.org>
20030
20031 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
20032 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20033 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
20034 the case that the last byte is '\r' correctly.
20035 (decode_coding): Flush out the unprocessed data correctly.
20036 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
20037
200382008-02-01 Dave Love <fx@gnu.org>
20039
20040 * xterm.c (XTread_socket): Fix changes for defined keysyms.
20041 Add XK_ISO... case.
20042 (xaw_scroll_callback): Revert last change.
20043
200442008-02-01 Kenichi Handa <handa@m17n.org>
20045
20046 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
20047
200482008-02-01 Kenichi Handa <handa@m17n.org>
20049
20050 * xfaces.c (Vface_resizing_fonts): New variable.
20051 (struct font_name): New member `resizing_ratio'.
20052 (font_resizing_ratio): New function.
20053 (split_font_name): Set font->resizing_ratio.
20054 (better_font_p): Pay attention to font->resizing_ratio.
20055 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
20056 RESX, and RESY fields.
20057 (try_alternative_families): Try scalable fonts if
20058 Vscalable_fonts_allowed is not Qt.
20059 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
20060
200612008-02-01 Dave Love <fx@gnu.org>
20062
20063 * xterm.c (xaw_scroll_callback): Cast correctly.
20064
200652008-02-01 Dave Love <fx@gnu.org>
20066
20067 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
20068 (lispy_kana_keys): Comment out.
20069 (make_lispy_event) [XK_kana_A]: Comment out.
20070
20071 * xterm.c (xaw_scroll_callback): Cast call_data.
20072 (XTread_socket): Deal with ASCII keysyms.
20073 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
20074
200752008-02-01 Dave Love <fx@gnu.org>
20076
20077 * xterm.c (Vx_keysym_table): New.
20078 (syms_of_xterm): Initialize it.
20079 (XTread_socket): Use it.
20080 From head: Eliminate incorrect optimization that tried to avoid
20081 decoding the output of X*LookupString.
20082 (x_get_font_repertory): Delete charset declaration.
20083
200842008-02-01 Kenichi Handa <handa@m17n.org>
20085
20086 * coding.c (detect_coding_charset): If only ASCII bytes are found,
20087 return 0.
20088 (Fdefine_coding_system_internal): Setup
20089 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
20090
200912008-02-01 Dave Love <fx@gnu.org>
20092
20093 * coding.c (Fcheck_coding_system): Doc fix.
20094
20095 * editfns.c (Finsert_byte): Return a proper value.
20096
200972008-02-01 Kenichi Handa <handa@m17n.org>
20098
20099 * coding.c (decode_coding): Fix args to translate_chars. Pay
20100 attention to Vstandard_translation_table_for_decode.
20101 (encode_coding): Fix args to translate_chars. Pay attention to
20102 Vstandard_translation_table_for_encode.
20103
20104 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
20105 SINGLE_BYTE_CHAR_P.
20106
20107 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
20108 not by SINGLE_BYTE_CHAR_P.
20109
20110 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
20111 SINGLE_BYTE_CHAR_P.
20112
20113 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
20114 SINGLE_BYTE_CHAR_P.
20115
20116 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
20117 by SINGLE_BYTE_CHAR_P.
20118
20119 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
20120 SINGLE_BYTE_CHAR_P.
20121
201222008-02-01 Dave Love <fx@gnu.org>
20123
20124 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
20125
201262008-02-01 Dave Love <fx@gnu.org>
20127
20128 * fns.c (Flanginfo): Fix typo.
20129
20130 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
20131
201322008-02-01 Kenichi Handa <handa@m17n.org>
20133
20134 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
20135 (detect_coding_emacs_mule, detect_coding_iso_2022)
20136 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
20137 incomplete byte sequence. Don't update *mask when correctly detected.
20138 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
20139 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
20140 (detect_coding, detect_coding_system): Adjust for the changes above.
20141
201422008-02-01 Kenichi Handa <handa@m17n.org>
20143
20144 * character.c (char_string): Rename from
20145 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
20146 (string_char): Rename from string_char.
20147
20148 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
20149 if C is greater than MAX_3_BYTE_CHAR.
20150 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
20151 string_char instead of string_char_with_unification.
20152
201532008-02-01 Dave Love <fx@gnu.org>
20154
20155 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
20156
201572008-02-01 Kenichi Handa <handa@m17n.org>
20158
20159 * keymap.c (push_key_description): Pay attention to force_multibyte.
20160
20161 * regex.c (re_search_2): Fix for the case of unibyte buffer.
20162
201632008-02-01 Dave Love <fx@gnu.org>
20164
20165 * charset.c (define_charset_internal): Rename `supprementary'.
20166
20167 * Makefile.in (lisp, shortlisp): Remove latin-N.
20168
201692008-02-01 Dave Love <fx@gnu.org>
20170
20171 * xfns.c (x_window, x_window): Use use_xim.
20172
20173 * xterm.c (use_xim): Initialize.
20174 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
20175 (x_term_init): Maybe set use_xim.
20176
20177 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
20178
201792008-02-01 Kenichi Handa <handa@m17n.org>
20180
20181 * search.c (search_buffer): Fix case-fold-search of multibyte
20182 characters.
20183 (boyer_moore): Rename the last argument to char_high_bits.
20184
201852008-02-01 Kenichi Handa <handa@m17n.org>
20186
20187 * xdisp.c (display_string): Fix for the case of zero width glyph.
20188
20189 * xfns.c (x_set_font): Change the error message of the case that
20190 x_new_fontset returns Qt.
20191
20192 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
20193 (Finternal_set_lisp_face_attribute): Use signal_error for the
20194 error of invalid fontset.
20195
20196 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
20197 fontset, return Qt.
20198
201992008-02-01 Dave Love <fx@gnu.org>
20200
20201 * unexelf.c (unexec): Make .got handling not SGI-specific.
20202
20203 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
20204
20205 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
20206
20207 * keyboard.c (read_key_sequence): Fix type error.
20208
20209 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
20210 type error.
20211
20212 * fontset.c (fontset_add): Return Lisp_Object.
20213
202142008-02-01 Dave Love <fx@gnu.org>
20215
20216 * charset.h (charset_ordered_list_tick): Declare extern.
20217
202182008-02-01 Kenichi Handa <handa@m17n.org>
20219
20220 The following changes (and some of 2008-02-01 changes of mine) are
20221 for handling syntax, category, and case conversion for unibyte
20222 characters by converting them to multibyte on the fly. With these
20223 changes, we don't have to setup syntax and case tables for unibyte
20224 characters in each language environment.
20225
20226 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
20227 multibyte if necessary.
20228
20229 * bytecode.c (Fbyte_code): Likewise.
20230
20231 * character.h (LEADING_CODE_LATIN_1_MIN)
20232 (LEADING_CODE_LATIN_1_MAX): New macros.
20233 (unibyte_to_multibyte_table): Extern it.
20234 (unibyte_char_to_multibyte): New macro.
20235 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
20236 (CHAR_LEADING_CODE): New macro.
20237 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
20238
20239 * character.c (unibyte_to_multibyte_table): New variable.
20240 (unibyte_char_to_multibyte): Move to character.h and define as macro.
20241 (multibyte_char_to_unibyte): If C is an eight-bit character,
20242 convert it to the corresponding byte value.
20243
20244 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
20245 not 1, signals an error. Update the elements of
20246 unibyte_to_multibyte_table.
20247 (init_charset_once): Initialize unibyte_to_multibyte_table.
20248 (syms_of_charset): Define the charset `iso-8859-1'.
20249
20250 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
20251 as is without converting it to unibyte. In a unibyte buffer,
20252 convert C to multibyte before checking the syntax.
20253
20254 * lisp.h (unibyte_char_to_multibyte): Delete extern.
20255
20256 * minibuf.c (Fminibuffer_complete_word): Use the macro
20257 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
20258
20259 * regex.h (struct re_pattern_buffer): New member target_multibyte.
20260
20261 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
20262 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
20263 that is zero, convert an eight-bit char to multibyte.
20264 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
20265 non-emacs case.
20266 (PATFETCH): Convert an eight-bit char to multibyte.
20267 (HANDLE_UNIBYTE_RANGE): New macro.
20268 (regex_compile): Setup the compiled pattern for multibyte chars
20269 even if the given regex string is unibyte. Use PATFETCH_RAW
20270 instead of PATFETCH in many places. To handle `charset'
20271 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
20272 only for ASCII chars.
20273 (analyse_first) <exactn>: Simplify because the compiled pattern
20274 is multibyte.
20275 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
20276 <charset>: Use CHAR_LEADING_CODE to get leading codes.
20277 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
20278 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
20279 multibyte always 1.
20280 (re_search_2): In emacs, set the locale variable multibyte to 1,
20281 otherwise to 0. New local variable target_multibyte. Check it
20282 to decide the multibyteness of STR1 and STR2. If
20283 target_multibyte is zero, convert unibyte chars to multibyte
20284 before translating and checking fastmap.
20285 (TARGET_CHAR_AND_LENGTH): New macro.
20286 (re_match_2_internal): In emacs, set the locale variable multibyte
20287 to 1, otherwise to 0. New local variable target_multibyte. Check
20288 it to decide the multibyteness of STR1 and STR2. Use
20289 TARGET_CHAR_AND_LENGTH to fetch a character from D.
20290 <charset, charset_not>: If multibyte is nonzero, check fastmap
20291 only for ASCII chars. Call bcmp_translate with
20292 target_multibyte, not with multibyte.
20293 <begline>: Declare the local variable C as `unsigned'.
20294 (bcmp_translate): Change the last arg name to target_multibyte.
20295
20296 * search.c (compile_pattern_1): Don't adjust the multibyteness of
20297 the regexp pattern and the matching target. Set cp->buf.multibyte
20298 to the multibyteness of the regexp pattern. Set
20299 cp->but.target_multibyte to the multibyteness of the matching target.
20300 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
20301 FETCH_STRING_CHAR_ADVANCE.
20302 (Freplace_match): Convert unibyte chars to multibyte.
20303
20304 * syntax.c (char_quoted, back_comment, scan_words)
20305 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
20306 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
20307 unibyte chars to multibyte.
20308 (skip_chars): Delete the arg syntaxp, and move the code for
20309 handling syntaxes to skip_syntaxes. Change callers.
20310 Fix the case that the multibyteness of STRING and the current
20311 buffer doesn't match.
20312 (skip_syntaxes): New function.
20313 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
20314 SINGLE_BYTE_CHAR_P.
20315
203162008-02-01 Kenichi Handa <handa@m17n.org>
20317
20318 * xfaces.c (QCfontset): New variable.
20319 (LFACE_FONTSET): New macro.
20320 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
20321 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
20322 (Finternal_set_lisp_face_attribute)
20323 (Finternal_get_lisp_face_attribute): Handle QCfontset.
20324 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
20325 check also LFACE_FONTSET_INDEX.
20326 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
20327 attrs[LFACE_FONT_INDEX].
20328 (syms_of_xfaces): Intern and staticpro QCfontset.
20329
20330 * dispextern.h (enum lface_attribute_index): New member
20331 LFACE_FONTSET_INDEX.
20332
20333 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
20334
203352008-02-01 Kenichi Handa <handa@m17n.org>
20336
20337 * coding.c (coding_set_destination): Fix coding->destination for
20338 the case converting a region.
20339 (encode_coding_utf_8): Encode eight-bit chars as single byte.
20340 (encode_coding_object): Fix coding->dst_pos and
20341 coding->dst_pos_byte for the case converting a region.
20342
20343 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
20344
20345 * character.h (BYTE8_STRING): New macro.
20346
20347 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
20348
203492008-02-01 Kenichi Handa <handa@m17n.org>
20350
20351 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
20352 characters by octal form.
20353
20354 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
20355
20356 * buffer.h (_fetch_multibyte_char_len): Delete extern.
20357 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
20358 _fetch_multibyte_char_len.
20359 (FETCH_CHAR_AS_MULTIBYTE): New macro.
20360
20361 * casetab.c (set_canon, set_identity, shuffle): Simplify.
20362
20363 * casefiddle.c (casify_object): Simplify. Handle the case that
20364 the case conversion change the byte length.
20365 (casify_region): Likewise.
20366
20367 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
20368
20369 * character.c (_fetch_multibyte_char_len): Delete this variable.
20370 (syms_of_character): Setup Vprintable_chars.
20371
20372 * editfns.c (Fchar_equal): Fix for the unibyte case.
20373 (Finsert_byte): New function.
20374 (syms_of_editfns): Defsubr it.
20375
20376 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
20377 of direct code 0x3ffff.
20378
20379 * search.c (Freplace_match): Fix for the unibyte case.
20380
203812008-02-01 Kenichi Handa <handa@m17n.org>
20382
20383 * lread.c (safe_to_load_p): Fix the logic.
20384
20385 * syntax.c (scan_words): Don't treat characters belonging to
20386 different scripts as constituting a word.
20387
20388 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20389
20390 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
20391
20392 * emacs.c (main): In the case of --unibyte, instead of aborting on
20393 finding non-empty buffer, make it unibyte.
20394
203952008-02-01 Kenichi Handa <handa@m17n.org>
20396
20397 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
20398 to create a fontset.
20399
204002008-02-01 Dave Love <fx@gnu.org>
20401
20402 * character.c (Funibyte_char_to_multibyte): Doc fix.
20403
20404 * xfns.c [HAVE_STDLIB_H]: Fix last change.
20405
204062008-02-01 Kenichi Handa <handa@m17n.org>
20407
20408 * fontset.c (fontset_add): Make the type `int'.
20409 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
20410
20411 * character.c (unibyte_char_to_multibyte)
20412 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
20413 charset_unibyte, not charset_primary.
20414
20415 * charset.h (charset_unibyte): Extern it instead of charset_primary.
20416
20417 * charset.c (charset_unibyte): Rename from charset_primary.
20418 (Funibyte_charset): Rename from Fprimary_charset.
20419 (Fset_unibyte_charset): Rename from Fset_primary_charset.
20420 (syms_of_charset): Adjust for the above changes.
20421
20422 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20423 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20424 it->multibyte_p is zero.
20425
20426 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
20427 Delete extern.
20428
204292008-02-01 Kenichi Handa <handa@m17n.org>
20430
20431 * coding.c (Fdefine_coding_system_internal): Fix category setting
20432 for a coding system of type iso-2022.
20433
204342008-02-01 Kenichi Handa <handa@m17n.org>
20435
20436 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
20437
204382008-02-01 Kenichi Handa <handa@m17n.org>
20439
20440 * syntax.c (Vnext_word_boundary_function_table): New variable.
20441 (next-word-boundary-function-table): Declare it as a Lisp variable
20442 in syms_of_syntax.
20443 (scan_words): Call functions in Vnext_word_boundary_function_table
20444 if any.
20445
20446 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
20447
20448 * fontset.c (fs_load_font): If fontp->charset is not negative,
20449 return fontp without setting its members.
20450
204512008-02-01 Dave Love <fx@gnu.org>
20452
20453 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
20454
20455 * m/sparc.h (HAVE_ALLOCA): Delete.
20456
20457 * s/irix6-5.h: Don't include strings.h.
20458 (bcopy, bzero, bcmp): Don't undef.
20459
20460 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
20461
20462 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
20463 (TIOCSIGSEND): Don't test IRIX6.
20464 (bcopy, bzero, bcmp): Define conditionally.
20465
204662008-02-01 Kenichi Handa <handa@m17n.org>
20467
20468 * buffer.c (Qas, Qmake, Qto): New variables.
20469 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
20470 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
20471
20472 * callproc.c (Fcall_process): Don't call insert_1_both directly if
20473 we are inserting a process output into a multibyte buffer.
20474
20475 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
20476 multibyte_char_to_unibyte.
20477
20478 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
20479 by the primary charset, make it eight-bit char.
20480 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
20481
20482 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
20483 (charset_8_bit__control, charset_8_bit_graphic)
20484 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
20485 (define_charset_internal): New function.
20486 (syms_of_charset): Call define_charset_internal for pre-defined
20487 charsets.
20488
20489 * charset.h (charset_8_bit): Extern it.
20490
20491 * coding.c (make_conversion_work_buffer): Adjust for the change
20492 of Fset_buffer_multibyte.
20493 (encode_coding_raw_text): Increment p0 in the loop.
20494
20495 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
20496
20497 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
20498 for the change of Fset_buffer_multibyte.
20499
20500 * fns.c (Fstring_to_multibyte): New function.
20501 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
20502
205032008-02-01 Dave Love <fx@gnu.org>
20504
20505 * xfns.c (x_put_x_image): Declare args.
20506
20507 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
20508 (try_font_list): Declare an arg.
20509
20510 * xdisp.c (message2_nolog, set_message): Declare an arg.
20511
20512 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
20513
20514 * syntax.c (scan_sexps_forward): Declare an arg.
20515
20516 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
20517 Declare an arg.
20518
20519 * lisp.h (Fnew_fontset): Declare.
20520
20521 * keymap.c (push_key_description): Call CHARACTERP correctly.
20522
20523 * fontset.c (fontset_add): Declare args. Call make_number correctly.
20524 (face_for_char): Delete unused vars.
20525 (Fset_fontset_font): Doc fix. Delete unused vars.
20526
20527 * doc.c (Fsubstitute_command_keys): Delete unused vars.
20528
20529 * composite.c (update_compositions): Declare arg.
20530
20531 * cm.c (calccost, cmgoto): Declare args.
20532
20533 * charset.c: Remove `emacs' conditional. Doc fixes.
20534 (map_char_table_for_charset): Declare.
20535
20536 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
20537
20538 * ccl.c: Remove `emacs' conditional.
20539
205402008-02-01 Kenichi Handa <handa@m17n.org>
20541
20542 The following changes are to allow specifying multiple font
20543 patterns for a character range (specified by script or charset).
20544
20545 * Makefile.in (abbrev.o): Depend on syntax.h.
20546 (xfaces.o): Depend on charset.h.
20547
20548 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
20549 SINGLE_BYTE_CHAR_P.
20550
20551 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
20552
20553 * character.h (Vchar_script_table): Extern it.
20554
20555 * character.c (Vscript_alist): Delete.
20556 (Vchar_script_table, Qchar_script_table): New variable.
20557 (syms_of_character): Declare Vchar_script_table as a lisp variable
20558 and initialize it.
20559
20560 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
20561 have property char-table-extra-slots, make no extra slot.
20562
20563 * dispextern.h (struct face): Delete member `charset'.
20564 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
20565 SINGLE_BYTE_CHAR_P.
20566 (choose_face_font, lookup_non_ascii_face, font_name_registry):
20567 Add prototypes.
20568 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
20569 (generate_ascii_font_name): Rename from generate_ascii_font.
20570
20571 * fontset.h (get_font_repertory_func): New prototype.
20572 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
20573 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
20574
20575 * fontset.c (Qprepend, Qappend): New variables.
20576 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
20577 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
20578 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
20579 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
20580 (fontset_ref_and_range, fontset_add, reorder_font_vector)
20581 (load_font_get_repertory): New functions.
20582 (fontset_set): Delete.
20583 (fontset_face): New arg FACE. Return face ID, not face.
20584 Complete re-write to handle new fontset structure. Change caller.
20585 (free_face_fontset): Use ASET istead of AREF (X) = Y.
20586 (face_for_char): Don't call lookup_face.
20587 (make_fontset_for_ascii_face): New arg FACE.
20588 (fs_load_font): New arg CHARSET_ID. Don't check
20589 Vfont_encoding_alist here.
20590 (find_font_encoding): New function.
20591 (list_fontsets): Use STRINGP, not ! NILP.
20592 (accumulate_script_ranges): New function.
20593 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
20594 re-written to handle new fontset structure.
20595 (Ffontset_font): Return a copy of element.
20596 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
20597 docstring of font-encoding-alist.
20598
20599 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
20600 (Fset_fotset_font): Fix arguments to 5.
20601
20602 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
20603
20604 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
20605 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20606 (highlight_trailing_whitespace): Adjust for the change of
20607 lookup_named_face.
20608
20609 * xfaces.c: Include charset.h.
20610 (load_face_font): Delete argument C. Change caller.
20611 (generate_ascii_font_name): Rename from generate_ascii_font.
20612 (font_name_registry): New function.
20613 (cache_face): Store ascii faces before non-ascii faces in buckets.
20614 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
20615 Lookup only ascii faces.
20616 (lookup_non_ascii_face): New function.
20617 (lookup_named_face): Delete argument C. Change caller.
20618 (lookup_derived_face): Delete argument C. Change caller.
20619 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
20620 a string, just call font_list with it.
20621 (choose_face_font): Delete arguments FACE and C. New arg
20622 FONT_SPEC. Change caller.
20623 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
20624 Change caller.
20625 (realize_non_ascii_face): New function.
20626 (realize_x_face): Call load_face_font here.
20627 (realize_tty_face): Delete argument C. Change caller.
20628 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
20629 get a face ID.
20630 (dump_realized_face): Don't print charset of FACE.
20631
20632 * xfns.c (x_set_font): Always call x_new_fontset and
20633 store_frame_parameter.
20634 (Fx_create_frame): Call x_new_fontset, not x_new_font.
20635 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
20636
20637 * xterm.h (x_get_font_repertory): Extern it.
20638
20639 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20640 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20641 it->multibyte_p is zero.
20642 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20643 (x_new_fontset): If FONTSETNAME doesn't match any existing
20644 fontsets, create a new one.
20645 (x_get_font_repertory): New function.
20646
206472008-02-01 Kenichi Handa <handa@m17n.org>
20648
20649 * coding.c (Ffind_coding_systems_region_internal): Detect an
20650 ASCII only string correctly.
20651
20652 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
20653 version is 0.
20654
206552008-02-01 Kenichi Handa <handa@m17n.org>
20656
20657 * lread.c: Include "coding.h".
20658 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
20659 (load_each_byte, unread_char): New variables.
20660 (readchar_backlog): Delete.
20661 (readchar): Return a character unless load_each_byte is nonzero.
20662 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
20663 cons. If unread_char is not -1, simply return it.
20664 (unreadchar): Handle the case that readcharfun is
20665 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
20666 (read_multibyte): Delete.
20667 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
20668 (read_emacs_mule_char): New functions.
20669 (Fload): Even if the file doesn't have the extension ".elc", if
20670 safe_to_load_p returns a positive version number, assume that the
20671 file contains bytecompiled code. If the version is less than 22,
20672 load the file while decoding multibyte sequences by emacs-mule.
20673 (readevalloop): Don't use readchar_backlog.
20674 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
20675 (Fread_from_string): Pay attention to the case that STREAM is a cons.
20676 (read_escape): Delete the arg BYTEREP.
20677 (read1): Set load_each_byte to 1 temporarily while handling
20678 #@NUMBER. Don't call read_multibyte.
20679 (read_vector): Call Fread with a cons. If readcharfun is
20680 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
20681 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
20682 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
20683 and Qload_force_doc_strings.
20684
206852008-02-01 Kenichi Handa <handa@m17n.org>
20686
20687 * xdisp.c (face_before_or_after_it_pos): Call
20688 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
20689
206902008-02-01 Kenichi Handa <handa@m17n.org>
20691
20692 * character.h (TRAILING_CODE_P): New macro.
20693 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
20694 (string_char_with_unification): Fix prototype.
20695 (Vscript_alist): Extern it.
20696
20697 * character.c (Vscript_alist): New variable.
20698 (string_char_with_unification, str_as_unibyte)
20699 (string_escape_byte8): Add `const' to local variables.
20700 (syms_of_character): Declare script-alist as a Lisp variable.
20701
20702 * charset.h (Vcharset_ordered_list): Extern it.
20703 (charset_ordered_list_tick): Extern it.
20704 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
20705 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
20706 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
20707 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
20708 (Funify_charset): Adjust for the change of Funify_charset.
20709
20710 * charset.c (charset_ordered_list_tick): New variable.
20711 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
20712 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
20713 deunify intead of unify a charset.
20714 (string_xstring_p): Add `const' to local variables.
20715 (find_charsets_in_text): Add `const' to arguments and local variables.
20716 (encode_char): Adjust for the change of Funify_charset. Fix
20717 detecting of invalid code.
20718 (Fset_charset_priority): Increment charset_ordered_list_tick.
20719 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
20720 and TO_CODE.
20721
20722 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
20723 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
20724 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
20725 (decode_coding_ccl, consume_chars)
20726 (Ffind_coding_systems_region_internal)
20727 (Fcheck_coding_systems_region): Add `const' to local variables.
20728
20729 * print.c (print_object): Use octal form for printing the
20730 contents of a bool vector.
20731
207322008-02-01 Dave Love <fx@gnu.org>
20733
20734 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
20735 <version == 20>: Refuse to load.
20736
207372008-02-01 Dave Love <fx@gnu.org>
20738
20739 * fns.c: Move coding.h.
20740 (Qcodeset, Qdays, Qmonths): New.
20741 (concat): Use CHARACTERP instead of INTEGERP.
20742 (Flocale_codeset): Delete.
20743 (Flanginfo): New function.
20744 (syms_of_fns): Change accordingly.
20745
20746 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
20747
207482008-02-01 Dave Love <fx@gnu.org>
20749
20750 * casetab.c (init_casetab_once, init_casetab_once): Fix
20751 CHAR_TABLE_SET call.
20752
20753 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
20754
20755 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
20756
20757 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
20758 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
20759 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
20760
20761 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
20762
20763 * coding.c (ENCODE_DESIGNATION, decode_eol)
20764 (make_conversion_work_buffer, code_conversion_restore)
20765 (Fdefine_coding_system_internal): Convert Lisp types.
20766 (code_conversion_restore): Use EQ, not ==.
20767 (Fencode_coding_string): Fix code_convert_string call.
20768
20769 * coding.h (code_convert_region): Fix prototype.
20770
20771 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
20772
20773 * fontset.c (fontset_ref, fontset_set, fs_load_font)
20774 (Ffontset_info): Convert Lisp types.
20775
20776 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
20777
20778 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
20779
20780 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
20781
20782 * chartab.c: Include "...h", not <...h> in some cases.
20783
20784 * callproc.c (Fcall_process): Remove unused variables.
20785
207862008-02-01 Dave Love <fx@gnu.org>
20787
20788 * coding.c (Fset_coding_system_priority): Allow null arg list.
20789
207902008-02-01 Dave Love <fx@gnu.org>
20791
20792 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20793 (Fself_insert_and_exit): Use CHARACTERP.
20794
20795 * callproc.c (Fcall_process): Remove unused vars.
20796
20797 * xterm.c (XTread_socket): Add extra dead keysyms.
20798
20799 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
20800
20801 * dispextern.h: Remove prototypes for redraw_frame,
20802 redraw_garbaged_frames.
20803
20804 * cmds.c (Fself_insert_command): Use CHARACTERP.
20805
20806 * chartab.c (make_sub_char_table): Remove unused var.
20807 (Fset_char_table_default, Fmap_char_table): Doc fix.
20808
20809 * keymap.c (access_keymap): Remove generic char code.
20810 (push_key_description): Use CHARACTERP.
20811
208122008-02-01 Dave Love <fx@gnu.org>
20813
20814 * charset.c: Doc fixes.
20815 (Funify_charset): Extra checking.
20816
208172008-02-01 Dave Love <fx@gnu.org>
20818
20819 * lread.c: Remove some unused variables.
20820 (safe_to_load_p): If safe, return the magic number version byte.
20821 (Fload): Maybe use load-with-code-conversion.
20822
208232008-02-01 Kenichi Handa <handa@m17n.org>
20824
20825 * category.c (Fmodify_category_entry): Don't modify the contents
20826 of category_set for characters out of the range. Avoid
20827 unnecessary modification.
20828
20829 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
20830 Vchar_unify_table. The default value of the table is now nil.
20831
20832 * character.c (syms_of_character): Setup Vchar_width_table for
20833 eight-bit-control and raw-byte chars.
20834
20835 * charset.h (enum define_charset_arg_index): Delete
20836 charset_arg_parents and add charset_arg_subset and
20837 charset_arg_superset.
20838 (enum charset_attr_index): Delete charset_parents and add
20839 charset_subset and charset_superset.
20840 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
20841 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
20842 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
20843 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
20844 (CHARSET_SUPERSET): New macros.
20845 (charset_work): Extern it.
20846 (ENCODE_CHAR): Use charset_work.
20847 (CHAR_CHARSET_P): Adjust for the change of encoder format.
20848 (map_charset_chars): Extern it.
20849
20850 * charset.c (load_charset_map): Set the default value of encoder
20851 and deunifier char-tables to nil.
20852 (map_charset_chars): Change argument. Change callers. Use
20853 map_char_table_for_charset instead of map_char_table.
20854 (Fmap_charset_chars): New optional args from_code and to_code.
20855 (Fdefine_charset_internal): Adjust for the change of
20856 `define-charset' (:parents -> :subset or :superset).
20857 (charset_work): New variable.
20858 (encode_char, syms_of_charset): Adjust for the change of
20859 Fdefine_charset_internal.
20860 (Ffind_charset_string): Setup the vector `charsets' correctly.
20861
20862 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
20863 the previous change.
20864 (char_table_ref_and_range): Adjust for the above change.
20865 (map_sub_char_table_for_charset): New function.
20866 (map_char_table_for_charset): New function.
20867
20868 * keymap.c (describe_vector): Handle a char-table directly here.
20869 (describe_char_table): Delete.
20870
20871 * lisp.h (map_charset_chars): Delete.
20872
208732008-02-01 Dave Love <fx@gnu.org>
20874
20875 * fns.c (count_combining): Comment out (unused).
20876 (Flocale_codeset): New.
20877 (syms_of_fns): Defsubr it.
20878
20879 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
20880 (size_t): Remove.
20881
208822008-02-01 Dave Love <fx@gnu.org>
20883
20884 * Makefile.in (chartab.o): Depend on charset.h.
20885
208862008-02-01 Kenichi Handa <handa@m17n.org>
20887
20888 * character.c (syms_of_character): Set the default value of
20889 Vprintable_chars to Qnil.
20890
208912008-02-01 Dave Love <fx@gnu.org>
20892
20893 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
20894
208952008-02-01 Kenichi Handa <handa@m17n.org>
20896
20897 * charset.c (load_charset_map): Handle the case that from < to
20898 correctly.
20899
20900 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
20901 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
20902 Pay attention to raw-8-bit chars.
20903
209042008-02-01 Kenichi Handa <handa@m17n.org>
20905
20906 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
20907 It is not bytecompiled now.
20908
20909 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
20910 (charset_jisx0208): New variables.
20911 (Fdefine_charset_internal): Setup them if appropriate.
20912 (init_charset_once): Initialize them to -1.
20913
20914 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
20915 (charset_jisx0208): Extern them.
20916
20917 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
20918 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
20919 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
20920 (setup_iso_safe_charsets): Fix arguments to Fassq.
20921 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
20922 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
20923 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
20924 (encode_coding_iso_2022): Change the 1st arg to
20925 ENCODE_ISO_CHARACTER to a variable.
20926
209272008-02-01 Kenichi Handa <handa@m17n.org>
20928
20929 * charset.h (enum define_charset_arg_index): New enums
20930 charset_arg_min_code and charset_arg_max_code.
20931 (struct charset): New member char_index_offset.
20932
20933 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
20934 Take charset->char_index_offset into account.
20935 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
20936 args[charset_arg_max_code]. Setup charset.char_index_offset.
20937 (syms_of_charset): Fix args to Fdefine_charset_internal.
20938
209392008-02-01 Dave Love <fx@gnu.org>
20940
20941 * coding.c (decode_coding_utf_8): Reject overlong sequences.
20942
209432008-02-01 Dave Love <fx@gnu.org>
20944
20945 * coding.c: Doc fixes.
20946 (Fcoding_system_aliases): Fix return value.
20947 (Qmac): Remove (duplicated) definition.
20948
209492008-02-01 Dave Love <fx@gnu.org>
20950
362654a6
JB
20951 * charset.c (Fcharset_priority_list, Fset_charset_priority):
20952 New functions.
aac0c6e3
MR
20953
20954 * character.c (Fstring): Doc fix.
20955
20956 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
20957
362654a6 20958 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
20959 (font-encoding-alist): Doc fix.
20960
209612008-02-01 Dave Love <fx@gnu.org>
20962
20963 * term.c (costs_set): Declare static, non-initialized for pcc.
20964 (encode_terminal_code): Remove unused var.
20965
20966 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
20967 for K&R.
20968
20969 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
20970
20971 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
20972 (suffixes): Move out of make_subsidiaries for K&R.
20973
20974 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
20975
20976 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
20977
209782008-02-01 Dave Love <fx@gnu.org>
20979
20980 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
20981
20982 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
20983
209842008-02-01 Yong Lu <lyongu@asia-infonet.com>
20985
20986 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
20987
20988 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
20989
209902008-02-01 Kenichi Handa <handa@m17n.org>
20991
20992 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
20993 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
20994
209952008-02-01 Kenichi Handa <handa@m17n.org>
20996
20997 * coding.c (decode_coding_charset): Adjust for the change of
20998 Fdefine_coding_system_internal.
20999 (Fdefine_coding_system_internal): For a coding system of
21000 `charset' type, store a list of charset IDs in
21001 `charset_attr_charset_valids' element of coding attributes.
21002
210032008-02-01 Kenichi Handa <handa@m17n.org>
21004
21005 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
21006 (emacs_mule_char): New arg src. Delete arg `composition'. Change
21007 caller. Handle 2-byte and 3-byte charsets correctly.
21008 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
21009 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
21010 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
21011 (DECODE_EMACS_MULE_21_COMPOSITION): Call
21012 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
21013 sequence.
21014 (decode_coding_emacs_mule): Handle composition correctly. Rewind
21015 `src' and `consumed_chars' correctly before calling emacs_mule_char.
21016 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
21017 and alt&rule composition.
21018 (decode_coding_iso_2022): Handle composition correctly.
21019 (init_coding_once): Setup emacs_mule_bytes for private charsets.
21020
21021 * charset.c (Fdefine_charset_internal): Fix bug for the case of
21022 re-defining a charset. If the charset has :emacs-mule-id, setup
21023 emacs_mule_bytes.
21024 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
21025
210262008-02-01 Kenichi Handa <handa@m17n.org>
21027
21028 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
21029 (encode_coding_big5, encode_coding_charset): If coding requires safe
21030 encoding, produce a character specified by
21031 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
21032
210332008-02-01 Dave Love <fx@gnu.org>
21034
21035 * xterm.c (XSetIMValues): Declare.
21036
21037 * process.c: Conditionally include sys/wait.h, pty.h.
21038
21039 * print.c (print_object): Fix print format for 64-bit systems.
21040
21041 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
21042
21043 * buffer.c (emacs_strerror): Declare.
21044
21045 * fontset.c (Fclear_face_cache): Declare.
21046 (accumulate_font_info): Comment-out (unused).
21047 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
21048 variables.
21049
21050 * character.h (string_escape_byte8): Declare.
21051
21052 * charset.c (load_charset_map, load_charset_map_from_file): Remove
21053 unused vars.
21054 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
21055 (Fmap_charset_chars): Doc fix.
21056
21057 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
21058 (Fset_coding_system_priority, Fset_coding_system_priority)
21059 (Fdefine_coding_system_internal): Doc fix.
21060
210612008-02-01 Dave Love <fx@gnu.org>
21062
21063 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
21064
210652008-02-01 Kenichi Handa <handa@m17n.org>
21066
21067 * character.c (string_escape_byte8): Make multibyte string with
21068 correct size.
21069
21070 * charset.c (Fmake_char): Delete unnecessary code.
21071
210722008-02-01 Kenichi Handa <handa@m17n.org>
21073
21074 * xfns.c (x_encode_text): Allocate coding.destination here, and
21075 call encode_coding_object with dst_object Qnil.
21076
21077 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
21078 multibyte form correctly.
21079
21080 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
21081 against Vfont_encoding_alist.
21082
21083 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
21084 handling of charset list.
21085 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
21086 (decode_coding_object): Move point to coding->dst_pos before
21087 calling post-read-conversion function.
21088 (encode_coding_object): Give correct arguments to
21089 pre-write-conversion. Ignore the return value of
21090 pre-write-conversion function. Pay attention to the case that
21091 pre-write-conversion changes the current buffer. If dst_object is
21092 Qt, even if coding->src_bytes is zero, allocate at least one byte
21093 to coding->destination.
21094
21095 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
21096
21097 * charset.c (Fmake_char): Make it more backward compatible.
21098 (Fmap_charset_chars): Fix docstring.
21099
211002008-02-01 Dave Love <fx@gnu.org>
21101
21102 * coding.c: Doc fixes.
21103 (Fdefine_coding_system_alias): Use names, not symbols, in
21104 coding-system-alist.
21105
211062008-02-01 Kenichi Handa <handa@m17n.org>
21107
21108 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
21109 of calling free_realized_face.
21110
211112008-02-01 Yong Lu <lyongu@asia-infonet.com>
21112
21113 * charset.c (read_hex): Don't treat SPC as a comment starter.
21114 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
21115 (Fdecode_char): Fix typo.
21116
211172008-02-01 Kenichi Handa <handa@m17n.org>
21118
21119 * charset.h (struct charset): New member `code_space_mask'.
21120
21121 * coding.c (coding_set_source): Delete the local variable beg_byte.
21122 (encode_coding_charset, Fdefine_coding_system_internal):
21123 Delete the local variable charset.
21124 (Fdefine_coding_system_internal): Setup
21125 attrs[coding_attr_charset_valids] correctly.
21126
21127 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
21128 member to check if CODE is valid or not.
21129 (Fdefine_charset_internal): Initialize `code_space_mask' member.
21130 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
21131 is within the range of charset->min_code and carset->max_code.
21132
211332008-02-01 Dave Love <fx@gnu.org>
21134
21135 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
21136
21137 * dispextern.h (generate_ascii_font): Fix return type.
21138
21139 * xfaces.c (generate_ascii_font): Fix arg declaration.
21140
21141 * coding.c (coding_inherit_eol_type)
21142 (Fset_terminal_coding_system_internal)
21143 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
21144
211452008-02-01 Kenichi Handa <handa@m17n.org>
21146
21147 * coding.c (decode_coding_charset, encode_coding_charset): Handle
21148 multiple charsets correctly.
21149
211502008-02-01 Kenichi Handa <handa@m17n.org>
21151
21152 * search.c (boyer_moore): Fix handling of multibyte character
21153 translation.
21154
21155 * xdisp.c (display_mode_element): When the variable `elt' is
21156 changed, update `this' and `lisp_string'.
21157
211582008-02-01 Kenichi Handa <handa@m17n.org>
21159
21160 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
21161
21162 * callproc.c (Fcall_process): Be sure to give the current buffer
21163 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
21164
21165 * charset.c (struct charset_map_entries): New struct.
21166 (load_charset_map): Rename from parse_charset_map. New args
21167 entries and n_entries. Change caller.
21168 (load_charset_map_from_file): Rename from load_charset_map.
21169 Change caller. New arg control_flag. Call load_charset_map at
21170 the tail.
21171 (load_charset_map_from_vector): New function.
21172 (Fdefine_charset_internal): Setup charset.compact_codes_p.
21173 (encode_char): If the charset is compact, change a character index
21174 to a code point.
21175
21176 * coding.c (coding_alloc_by_making_gap): Check the case that the
21177 source and destination are the same correctly.
21178 (decode_coding_raw_text): Set coding->consumed_char and
21179 coding->consumed to 0.
21180 (produce_chars): If coding->chars_at_source is nonzero, update
21181 coding->consumed_char and coding->consumed before calling
21182 alloc_destination.
21183 (Fdefine_coding_system_alias): Register ALIAS in
21184 Vcoding_system_alist.
21185 (syms_of_coding): Define `no-conversion' coding system at the tail.
21186
21187 * fileio.c (Finsert_file_contents): Set coding_system instead of
21188 val. If the current buffer is multibyte, always call
21189 decode_coding_gap.
21190
21191 * xfaces.c (try_font_list): Give higher priority to fontset's
21192 family than face's family.
21193
211942008-02-01 Kenichi Handa <handa@m17n.org>
21195
21196 * callproc.c (Fcall_process): Be sure to give the current buffer
21197 to decode_coding_c_string.
21198
21199 * xfaces.c (try_font_list): Give a family specified in a fontset
21200 higher priority than a family specified in a face.
21201
212022008-02-01 Kenichi Handa <handa@m17n.org>
21203
21204 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
21205 Fix arguments to insert_from_buffer.
21206
21207 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
21208
212092008-02-01 Kenichi Handa <handa@m17n.org>
21210
21211 * coding.c (produce_chars): Set the variable `multibytep' correctly.
21212 (decode_coding_gap): Set coding->dst_multibyte correctly.
21213
212142008-02-01 Kenichi Handa <handa@m17n.org>
21215
21216 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
21217 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
21218 (encode_coding_utf_16): Substitute coding->default_char for
21219 non-Unicode characters.
21220 (decode_coding): Don't call record_insert here.
21221 (setup_coding_system): Initialize `surrogate' of
21222 coding->spec.utf_16 to 0.
21223 (EMIT_ONE_BYTE): Fix for multibyte case.
21224
21225 * insdel.c (insert_from_gap): Call record_insert.
21226
212272008-02-01 Kenichi Handa <handa@m17n.org>
21228
21229 * casefiddle.c (casify_region): Fix multibyte case.
21230
21231 * character.c (c_string_width): Add return type `int'.
21232 (char_string_with_unification): Delete arg ADVANCED.
21233
21234 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
21235 (CHAR_STRING): Adjust for the change of char_string_with_unification.
21236 (CHAR_STRING_ADVANCE): Make it do-while statement.
21237
21238 * chartab.c (sub_char_table_set_range): Optimize for the case
21239 DEPTH == 3. Add workaround code for a GCC optimization bug.
21240
21241 * charset.c (parse_charset_map): Remove an unused variable.
21242
21243 * coding.c: Delete unused variables.
21244
21245 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
21246 earlier. If inserted is zero and the coding system doesn't
21247 require flushing, don't call decode_coding_gap.
21248
21249 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
21250
212512008-02-01 Kenichi Handa <handa@m17n.org>
21252
21253 The following changes are for using Unicode as an internal
21254 character model, and use UTF-8 format for buffer/string
21255 representation.
21256
21257 * .gdbinit (xchartable): Adjust for the change of char table structure.
21258 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
21259
21260 * Makefile.in (obj): Add character.o and chartab.o.
21261 (lisp, shortlisp): Remove utf-8.elc.
21262 (*.o): For many files, change dependency on charset.h to
21263 character.h, and add dependency on character.h.
21264 (character.o, chartab.o): New targets.
21265
21266 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
21267 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
21268 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
21269 of "charset.h".
21270
21271 * dired.c, filelock.c: Include "character.h".
21272
21273 * alloc.c: Include "character.h" instead of "charset.h".
21274 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
21275 (syms_of_alloc): Remove defsubr for Smake_char_table.
21276
21277 * buffer.c: Include "character.h" instead of "charset.h", don't
21278 include "coding.h".
21279 (Fset_buffer_multibyte): Adjust for UTF-8.
21280
21281 * buffer.h: EXFUN Fbuffer_live_p.
21282
21283 * callproc.c: Include "character.h" instead of "charset.h".
21284 (Fcall_process): Big change for the new code-conversion APIs.
21285
21286 * casetab.c: Include "character.h" instead of "charset.h".
21287 (set_canon, set_identity, shuffle): Adjust for the new
21288 map_char_table spec.
21289 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
21290 accessing the char table structure.
21291
21292 * chartab.c: New file that implements char table.
21293
21294 * category.c: Include "character.h".
21295 (copy_category_entry): New function.
21296 (copy_category_table): Call map_char_table and copy_category_entry.
21297 (Fmake_category_table): Initialize all top-level slots.
21298 (char_category_set): New function.
21299 (modify_lower_category_set): Delete.
21300 (Fmodify_category_entry): Call char_table_ref_and_range.
21301
21302 * category.h (CATEGORY_SET): Just call char_category_set.
21303
21304 * ccl.c: Include "character.h".
21305 (Qccl, Qcclp): New variables.
21306 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
21307 it's less than 256.
21308 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
21309 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
21310 and DST type.
21311 (ccl_driver): Change types of argument, adjust code accordingly.
21312 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
21313 ccl_driver.
21314 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
21315
21316 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
21317 New members src_multibyte, dst_multibyte, consumed, and produced.
21318 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
21319 (CODING_SPEC_CCL_PROGRAM): New macro.
21320 (ccl_driver): Update prototype.
21321 (Qccl, Qcclp, Fccl_program_p): Extern them.
21322 (CHECK_CCL_PROGRAM): New macro.
21323
21324 * character.c, character.h, chartab.c: New files.
21325
21326 * charset.c: Mostly re-written. Move character and multibyte sequence
21327 handling codes to character.c.
21328
21329 * charset.h: Mostly re-written. Move character and multibyte sequence
21330 handling codes to character.h.
21331
21332 * coding.c, coding.h: Mostly re-written.
21333
21334 * composite.c: Include "character.h" instead of "charset.h".
21335 (CHAR_WIDTH): Move to character.h.
21336 (HASH_KEY, HASH_VALUE): Delete.
21337
21338 * composite.h (enum composition_method): Change order of enumeration
21339 symbols.
21340
21341 * data.c: Include "character.h" instead of "charset.h".
21342 (Faref): Call CHAR_TABLE_REF for a char table.
21343 (Faset): Call CHAR_TABLE_SET for a char table.
21344
21345 * dispextern.h (free_realized_face, check_face_attribytes)
21346 (generate_ascii_font): Extern them.
21347 (free_realized_multibyte_face): Delete extern.
21348
21349 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
21350 table structure.
21351
21352 * editfns.c: Include "character.h" instead of "charset.h".
21353 (Fchar_to_string): Always call CHAR_STRING.
21354
21355 * emacs.c (main): Call init_charset_once, init_charset,
21356 syms_of_chartab, and syms_of_character.
21357
21358 * fileio.c: Include "character.h" instead of "charset.h".
21359 (Finsert_file_contents): Big change for the new code-conversion API.
21360 (choose_write_coding_system, Fwrite_region): Likewise.
21361 (build_annotations_2): Delete.
21362 (e_write): Big change for the new code-conversion API.
21363
21364 * fns.c: Include "character.h" instead of "charset.h".
21365 (copy_sub_char_table): Move to chartab.c.
21366 (Fcopy_sequence): Call copy_char_table for a char table.
21367 (concat): Delete codes calling count_multibyte.
21368 (string_char_to_byte, string_byte_to_char): Adjust for the new
21369 multibyte form.
21370 (internal_equal): Adjust for the change of char table structure.
21371 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
21372 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
21373 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
21374 (char_table_translate, optimize_sub_char_table)
21375 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
21376 chartab.c.
21377 (char_table_ref_and_index): Delete.
21378 (HASH_KEY, HASH_VALUE): Move to lisp.h.
21379 (Fmd5): Call preferred_coding_system instead of accessing
21380 Vcoding_category_list. Adjust for the new code-conversion API.
21381 (syms_of_fns): Move defsubr for char table related functions to
21382 chartab.c.
21383
21384 * fontset.c: Mostly re-written.
21385
21386 * fontset.h (struct font_info): Change type of the member encoding_type.
21387 (enum FONT_SPEC_INDEX): New enum.
21388 (fontset_font_pattern, fs_load_font): Update prototype.
21389 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
21390
21391 * indent.c: Include "character.h" instead of "charset.h".
21392 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
21393
21394 * insdel.c: Include "character.h" instead of "charset.h".
21395 (copy_text): Don't refer to Vnonascii_translation_table.
21396 (insert_from_gap): New function.
21397
21398 * keyboard.c: Include "character.h" instead of "charset.h".
21399 (command_loop_1): Never call direct_output_forward_char before
21400 a non-ASCII character.
21401 (read_char): If Vkeyboard_translate_table is a char table, always
21402 translate a character.
21403
21404 * keymap.c: Include "character.h".
21405 (store_in_keymap): Handle the case that IDX is a cons.
21406 (Fdefine_key): Handle the case that KEY is a cons and the car part
21407 is also a cons (range).
21408 (push_key_description): Adjust for the new character code.
21409 (describe_vector): Call describe_char_table for a char table.
21410 (describe_char_table): New function.
21411
21412 * keymap.h (describe_char_table): Extern it.
21413
21414 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
21415 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
21416 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
21417 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
21418 Delete.
21419 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
21420 structure.
21421 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
21422 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
21423 (CHARTAB_SIZE_BITS_3): New macros.
21424 (chartab_size): Extern it.
21425 (struct Lisp_Char_Table): Re-design.
21426 (struct Lisp_Sub_Char_Table): New structure.
21427 (HASH_KEY, HASH_VALUE): Move from fns.c.
21428 (CHARACTERBITS): Define as 22.
21429 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
21430 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
21431 (GC_SUB_CHAR_TABLE_P): New macro.
21432 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
21433 (code_convert_string_norecord): Deleted extern.
21434 (init_character_once, syms_of_character, init_charset)
21435 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
21436
21437 * lread.c: Include "character.h".
21438 (read_multibyte): New arg NBYTES.
21439 (read_escape): Change the meaning of returned *BYTEREP.
21440 (to_multibyte): Delete.
21441 (read1): Adjust the handling of char table and string.
21442
21443 * print.c: Include "character.h" instead of "charset.h".
21444 (print_string): Convert 8-bit raw bytes to octal form by
21445 string_escape_byte8.
21446 (print_object): Adjust for the new multibyte form. Print 8-bit
21447 raw bytes always in octal form. Handle sub char table correctly.
21448
21449 * process.c: Include "character.h" instead of "charset.h".
21450 (read_process_output, send_process): Adjust for the new
21451 code-conversion API.
21452
21453 * puresize.h (BASE_PURESIZE): Increase.
21454
21455 * regex.c: Include "character.h" instead of "charset.h".
21456 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
21457 (regex_compile): Accept a range whose starting and ending
21458 character have different leading bytes.
21459 (analyse_first): Adjust for the above change.
21460
21461 * search.c: Include "character.h" instead of "charset.h".
21462 (search_buffer, boyer_moore): Adjust for the new multibyte form.
21463 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
21464
21465 * syntax.c: Include "character.h" instead of "charset.h".
21466 (syntax_parent_lookup): Delete.
21467 (Fmodify_syntax_entry): Accept a cons as CHAR.
21468 (skip_chars): Adjust for the new multibyte form.
21469 (init_syntax_once): Call char_table_set_range instead of directly
21470 accessing the structure of a char table.
21471
21472 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
21473 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
21474 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
21475 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
21476
21477 * term.c: Include "buffer.h" and "character.h".
21478 (encode_terminal_code, write_glyphs): Adjust for the new
21479 code-conversion API.
21480 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
21481
21482 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
21483
21484 * xdisp.c: Include "character.h".
21485 (get_next_display_element): Adjust for the new multibyte form.
21486 (disp_char_vector): Adjust for the new char table structure.
21487 (decode_mode_spec_coding): Adjust for the new structure of
21488 coding system.
21489 (decode_mode_spec): Adjust for the new code-conversion API.
21490
21491 * xfaces.c: Include "character.h" instead of "charset.h".
21492 (load_face_font): Adjust for the change of choose_face_font and
21493 FS_LOAD_FONT.
21494 (generate_ascii_font): New function.
21495 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
21496 (set_font_frame_param): Adjust for the change of choose_face_font.
21497 (free_realized_face): Make it public.
21498 (free_realized_faces_for_fontset): Rename from
21499 free_realized_multibyte_face. Free also faces realized for ASCII.
21500 (choose_face_font): Change arguments. Adjust for the change of
21501 fontset_font_pattern and FS_LOAD_FONT.
21502
21503 * xfns.c: Include "character.h".
21504 (x_encode_text): Adjust for the new code-conversion API.
21505
21506 * xselect.c: Don't include "charset.h".
21507 (selection_data_to_lisp_data): Adjust for the new code conversion API.
21508
21509 * xterm.c: Include "character.h".
21510 (x_encode_char): New argument CHARSET. Change caller.
21511 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
21512 Call ENCODE_CHAR instead of SPLIT_CHAR.
21513 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
21514 CHAR_WIDTH instead of CHARSET_WIDTH.
21515 (XTread_socket): Adjust for the new code-conversion API.
21516 (x_new_font): Adjust for the change of FS_LOAD_FONT.
21517 (x_load_font): Adjust for the change of struct font.
21518
215192008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
21520
21521 * xfaces.c (face_at_buffer_position): Remove unused vars.
21522
215232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21524
21525 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
21526 Fix overflow checking.
21527
215282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21529
21530 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
21531 Cancel previous change.
21532
215332008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21534
21535 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
21536 ccl->eight_bit_control. Fix check for buffer overflow.
21537 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
21538 (ccl_driver): Initialize extra_bytes to 0.
21539
215402008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
21541
21542 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
21543 return it ORed with ctrl_modifier.
21544
215452008-01-29 Miles Bader <miles@gnu.org>
21546
21547 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
21548
215492008-01-28 Jason Rumney <jasonr@gnu.org>
21550
21551 * w32.c (stat): Don't double check for networked drive.
21552
215532008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
21554
21555 * window.c (run_window_configuration_change_hook): New function.
21556 Code extracted from set_window_buffer. Set the selected frame.
21557 (set_window_buffer): Use it.
21558 * window.h (run_window_configuration_change_hook): Declare.
21559 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
21560
21561 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
21562
215632008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
21564
21565 * Makefile.in: Remove references to unused macros.
21566
215672008-01-26 Eli Zaretskii <eliz@gnu.org>
21568
21569 * w32.c (g_b_init_get_sid_sub_authority)
21570 (g_b_init_get_sid_sub_authority_count): New static variables.
21571 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
21572 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
21573 (init_user_info): Use them to retrieve uid and gid.
21574 Use 500/513, the Windows defaults, as Administrator's uid/gid.
21575 (fstat): Use pw_uid and pw_gid from the_passwd structure for
21576 st_uid and st_gid of the file.
21577
215782008-01-26 Jason Rumney <jasonr@gnu.org>
21579
21580 * w32.c (logon_network_drive): New function.
21581 (stat): Use it.
21582
215832008-01-26 Chong Yidong <cyd@stupidchicken.com>
21584
21585 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
21586 invisible text covered with an ellipsis.
21587
215882008-01-25 Richard Stallman <rms@gnu.org>
21589
21590 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
21591 jump back to beginning. Move some other initializations after that.
21592 (Qwindow_text_change_functions, Vwindow_text_change_functions):
21593 New variables.
21594 (syms_of_xdisp): Init them.
21595
21596 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
21597
21598 * buffer.c (reset_buffer_local_variables):
21599 Implement `permanent-local-hook'.
21600 (Qpermanent_local_hook): New variable.
21601 (syms_of_buffer): Init and staticpro it.
21602
216032008-01-25 Michael Albinus <michael.albinus@gmx.de>
21604
21605 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
21606
216072008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
21608
21609 * fns.c (Fclrhash): Return TABLE.
21610
216112008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21612
21613 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
21614 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
21615 is set even without positional changes.
21616 (x_scroll_bar_clear): Set bar->redraw_needed_p.
21617
21618 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
21619
216202008-01-23 Jason Rumney <jasonr@gnu.org>
21621
21622 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
21623
21624 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
21625 the unicode range available in MULE by locale-coding-system.
21626 Improve dbcs lead byte detection. Set event timestamp and modifiers
21627 earlier.
21628
216292008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21630
21631 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
21632 [MAC_OSX] (init_mac_osx_environment): Initialize it.
21633 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
21634 when used on child processes.
21635
216362008-01-21 Michael Albinus <michael.albinus@gmx.de>
21637
21638 * dbusbind.c (Fdbus_method_return_internal): Rename from
21639 Fdbus_method_return.
21640 (Fdbus_unregister_object): Move to dbus.el.
21641 (Fdbus_call_method, Fdbus_method_return_internal)
21642 (Fdbus_send_signal): Improve debug messages.
21643
216442008-01-20 Martin Rudalics <rudalics@gmx.at>
21645
21646 * undo.c (undo_inhibit_record_point): New variable.
21647 (syms_of_undo): Initialize it.
21648 (record_point): Don't record point when undo_inhibit_record_point
21649 is set.
21650
216512008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
21652
21653 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
21654
21655 * xdisp.c (Qauto_hscroll_mode): New var.
21656 (syms_of_xdisp): Initialize it.
21657 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
21658 window's buffer.
21659 (hscroll_windows): Don't check automatic_hscrolling_p here.
21660
21661 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
21662 vscroll if we're setting window-buffer to the value it already has.
21663
216642008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
21665
21666 * m/intel386.h: Remove references to XENIX.
21667
216682008-01-17 Andreas Schwab <schwab@suse.de>
21669
21670 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
21671 instead of HAVE_X86_64_LIB64_DIR.
21672 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
21673
216742008-01-17 Glenn Morris <rgm@gnu.org>
21675
21676 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
21677 to HAVE_X86_64_LIB64_DIR.
21678
216792008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
21680
21681 * s/irix3-3.h:
21682 * s/irix4-0.h:
21683 * s/386-ix.h:
21684 * s/domain.h:
21685 * s/hpux9-x11r4.h:
21686 * s/hpux9shxr4.h: Remove files for systems no longer supported.
21687
21688 * sysdep.c: Remove code containing references to symbols defined
21689 by unsupported systems.
21690
216912008-01-16 Glenn Morris <rgm@gnu.org>
21692
21693 * coding.c (select-safe-coding-system-function): Doc fix.
21694
216952008-01-15 Glenn Morris <rgm@gnu.org>
21696
21697 * config.in: Revert 2008-01-13 change: this is a generated file.
21698
216992008-01-13 Tom Tromey <tromey@redhat.com>
21700
21701 * lisp.h: Fix typo.
21702
217032008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21704
21705 * m/sequent-ptx.h:
21706 * m/sequent.h:
21707 * s/ptx.h:
21708 * s/ptx4-2.h:
21709 * s/ptx4.h: Remove files for systems no longer supported.
21710
21711 * callproc.c (Fcall_process): Fix previous change.
21712
217132008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21714
21715 * unexsunos4.c: Remove file, system not supported anymore.
21716
21717 * m/mips.h:
21718 * m/intel386.h:
21719 * callproc.c:
21720 * config.in:
21721 * ecrt0.c:
21722 * emacs.c:
21723 * fileio.c:
21724 * frame.c:
21725 * getpagesize.h:
21726 * keyboard.c:
21727 * lread.c:
21728 * process.c:
21729 * puresize.h:
21730 * sysdep.c:
21731 * systty.h:
21732 * syswait.h:
21733 * unexec.c:
21734 * xdisp.c:
21735 * alloc.c: Remove code containing references to symbols defined by
21736 unsupported systems.
21737
217382008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
21739
21740 * coding.c (detect_coding_mask): Fix previous change.
21741
217422008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
21743
21744 * coding.c (detect_coding_iso2022): New arg
21745 latin_extra_code_state. Allow Latin extra codes only
21746 when *latin_extra_code_state is nonzero.
21747 (detect_coding_mask): If there is a NULL byte, detect the encoding
21748 as UTF-16 or binary. If Latin extra codes exist, detect the
21749 encoding as ISO-2022 only when there's no other proper encoding is
21750 found.
21751
217522008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21753
21754 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
21755 #ifdef MAC_OS.
21756
217572008-01-08 Richard Stallman <rms@gnu.org>
21758
21759 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
21760
217612008-01-06 Nick Roberts <nickrob@snap.net.nz>
21762
21763 * keyboard.c (parse_menu_item): Don't enclose key bindings on
21764 menu bar in parentheses.
21765
217662008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
21767
21768 * m/7300.h:
21769 * m/acorn.h:
21770 * m/alliant-2800.h:
21771 * m/alliant.h:
21772 * m/alliant1.h:
21773 * m/alliant4.h:
21774 * m/altos.h:
21775 * m/amdahl.h:
21776 * m/apollo.h:
21777 * m/att3b.h:
21778 * m/aviion-intel.h:
21779 * m/aviion.h:
21780 * m/celerity.h:
21781 * m/clipper.h:
21782 * m/cnvrgnt.h:
21783 * m/convex.h:
21784 * m/cydra5.h:
21785 * m/delta88k.h:
21786 * m/dpx2.h:
21787 * m/dual.h:
21788 * m/elxsi.h:
21789 * m/f301.h:
21790 * m/gould-np1.h:
21791 * m/gould.h:
21792 * m/i860.h:
21793 * m/ibmps2-aix.h:
21794 * m/ibmrt-aix.h:
21795 * m/ibmrt.h:
21796 * m/irist.h:
21797 * m/is386.h:
21798 * m/isi-ov.h:
21799 * m/mega68.h:
21800 * m/mg1.h:
21801 * m/news-r6.h:
21802 * m/news-risc.h:
21803 * m/news.h:
21804 * m/nh3000.h:
21805 * m/nh4000.h:
21806 * m/ns16000.h:
21807 * m/ns32000.h:
21808 * m/nu.h:
21809 * m/orion.h:
21810 * m/orion105.h:
21811 * m/paragon.h:
21812 * m/pfa50.h:
21813 * m/plexus.h:
21814 * m/pyramid.h:
21815 * m/pyrmips.h:
21816 * m/sh3el.h:
21817 * m/sps7.h:
21818 * m/sr2k.h:
21819 * m/stride.h:
21820 * m/sun1.h:
21821 * m/sun2.h:
21822 * m/sun3-68881.h:
21823 * m/sun3-fpa.h:
21824 * m/sun3-soft.h:
21825 * m/sun3.h:
21826 * m/sun386.h:
21827 * m/symmetry.h:
21828 * m/tad68k.h:
21829 * m/tahoe.h:
21830 * m/targon31.h:
21831 * m/tek4300.h:
21832 * m/tekxd88.h:
21833 * m/tower32.h:
21834 * m/tower32v3.h:
21835 * m/ustation.h:
21836 * m/wicat.h:
21837 * m/xps100.h:
21838 * s/cxux.h:
21839 * s/cxux7.h:
21840 * s/dgux.h:
21841 * s/dgux4.h:
21842 * s/dgux5-4-3.h:
21843 * s/dgux5-4r2.h:
21844 * s/esix.h:
21845 * s/esix5r4.h:
21846 * s/hiuxmpp.h:
21847 * s/hiuxwe2.h:
21848 * s/iris3-5.h:
21849 * s/iris3-6.h:
21850 * s/isc2-2.h:
21851 * s/isc3-0.h:
21852 * s/isc4-0.h:
21853 * s/isc4-1.h:
21854 * s/newsos5.h:
21855 * s/newsos6.h:
21856 * s/osf1.h:
21857 * s/osf5-0.h:
21858 * s/riscix1-1.h:
21859 * s/riscix12.h:
21860 * s/sco4.h:
21861 * s/sco5.h:
21862 * s/sunos4-0.h:
21863 * s/sunos4-1.h:
21864 * s/sunos413.h:
21865 * s/sunos4shr.h:
21866 * s/umax.h:
21867 * s/unipl5-2.h:
21868 * s/xenix.h:
21869 * cxux-crt0.s:
21870 * unexapollo.c:
21871 * unexconvex.c:
21872 * unexenix.c:
21873 * unexsni.c: Remove files for systems no longer supported.
21874
21875 * m/intel386.h: Remove references to unsupported systems.
21876
21877 * w32.c (get_emacs_configuration): Remove reference to i860.
21878
21879 * sysdep.c: Remove dead code.
21880
218812008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
21882
21883 * s/rtu.h:
21884 * m/masscomp.h: Remove files. Platform is obsolete.
21885
218862008-01-04 Michael Albinus <michael.albinus@gmx.de>
21887
21888 * dbusbind.c (Fdbus_method_return): New function.
21889 (xd_read_message): Add the serial number to the event.
21890 (Fdbus_register_method): Activate the function.
21891
218922008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
21893
21894 * keyboard.c (read_key_sequence): Fix typo.
21895
218962008-01-03 Michael Albinus <michael.albinus@gmx.de>
21897
21898 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
21899 (xd_signature, xd_append_arg): Handle element type detection for
21900 empty arrays.
21901 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
21902 SDATA () calls; this must be solved more general.
21903 (Fdbus_register_signal): Use SBYTES instead of strlen.
21904
219052008-01-03 Magnus Henoch <magnus@zemdatav>
21906
21907 * dbusbind.c (xd_append_arg): Use unsigned char instead of
21908 unsigned int for byte values (necessary for big-endian platform).
21909 (Fdbus_call_method): Handle the case of no returned arguments.
21910
219112007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
21912
21913 * dbusbind.c (xd_read_message): Use non-static input_event struct.
21914
219152007-12-31 Magnus Henoch <mange@freemail.hu>
21916
21917 * dbusbind.c (xd_signature): Signature of variant is just "v".
21918
219192007-12-30 Michael Albinus <michael.albinus@gmx.de>
21920
21921 * dbusbind.c: Fix several errors and compiler warnings.
21922 Reported by Tom Tromey <tromey@redhat.com>.
21923 (XD_ERROR, XD_DEBUG_MESSAGE)
21924 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
21925 (xd_append_arg): Part for basic D-Bus types rewritten.
21926 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
21927 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
21928 appropriate.
21929 (xd_read_message): Return Qnil. Don't signal an error; it is not
21930 useful during event reading.
21931 (Fdbus_register_signal): Signal an error if the check for
21932 FUNCTIONP fails.
21933 (Fdbus_register_method): New function. The implementation is not
21934 complete, the call of the function signals an error therefore.
21935 (Fdbus_unregister_object): New function, renamed from
21936 Fdbus_unregister_signal. The initial check signals an error, if
21937 the object is not well formed.
21938
219392007-12-30 Richard Stallman <rms@gnu.org>
21940
21941 * textprop.c (get_char_property_and_overlay):
21942 Signal error if POSITION is out of range in a buffer.
21943
219442007-12-29 Martin Rudalics <rudalics@gmx.at>
21945
21946 * w32fns.c (Fx_create_frame): Make copy of frame parameters
21947 because the original parameters are in pure storage now.
21948
219492007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21950
21951 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
21952
219532007-12-22 Eli Zaretskii <eliz@gnu.org>
21954
21955 * callint.c (syms_of_callint) <command-history>: Add reference to
21956 history-length in the doc string.
21957
219582007-12-17 Jason Rumney <jasonr@gnu.org>
21959
21960 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
21961 before passing as wParam.
21962
219632007-12-22 Michael Albinus <michael.albinus@gmx.de>
21964
21965 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
21966 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
21967 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
21968 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
21969 as number.
21970 (Fdbus_call_method): Fix docstring.
21971
219722007-12-21 Michael Albinus <michael.albinus@gmx.de>
21973
21974 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
21975 New macros.
21976 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
21977 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
21978 Simplify.
21979 (xd_signature): New function.
21980 (xd_append_arg): Compute also signatures. Major rewrite.
21981 (xd_retrieve_arg): Make debug messages friendly.
21982 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
21983 Check for signatures of arguments.
21984
219852007-12-19 Michael Albinus <michael.albinus@gmx.de>
21986
21987 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
21988 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
21989 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
21990 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
21991 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
21992 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
21993 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
21994 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
21995 (xd_retrieve_value): Remove. Functionality included in ...
21996 (xd_append_arg): New function.
21997 (Fdbus_call_method, Fdbus_send_signal): Apply it.
21998
219992007-12-16 Michael Albinus <michael.albinus@gmx.de>
22000
22001 * dbusbind.c (top): Include <stdio.h>.
22002 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
22003 dbus_message_new_method_call and dbus_message_new_signal.
22004 (Fdbus_register_signal): Rename unique_name to uname.
22005 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
22006 non-existing unique name. Fix typos in matching rule. Return an
22007 object which is useful in Fdbus_unregister_signal.
22008 (Fdbus_unregister_signal): Reimplementation, in order to remove
22009 only the corresponding entry.
22010 (Vdbus_registered_functions_table): Change the order of entries.
22011 Apply these changes in xd_read_message and Fdbus_register_signal.
22012
220132007-12-16 Andreas Schwab <schwab@suse.de>
22014
22015 * fileio.c (Finsert_file_contents): Fix overflow check to not
22016 depend on undefined integer overflow.
22017
220182007-12-14 Jason Rumney <jasonr@gnu.org>
22019
22020 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
22021 for characters above 127.
22022
220232007-12-13 Jason Rumney <jasonr@gnu.org>
22024
22025 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
22026 before dereferencing array.
22027 (lookup_vk_code): Remove zero comparison.
22028
220292007-12-14 Michael Albinus <michael.albinus@gmx.de>
22030
22031 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
22032 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
22033 Use `unsigned int' instead of `uint'.
22034 (xd_read_message, Fdbus_register_signal): Split expressions into
22035 multiple lines before operators "&&" and "||", according to the
22036 GNU Coding Standards.
22037
220382007-12-14 Eli Zaretskii <eliz@gnu.org>
22039
22040 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
22041
220422007-12-12 Juri Linkov <juri@jurta.org>
22043
22044 * buffer.c (Frename_buffer): In interactive spec replace
22045 `read-buffer' with `read-string' that uses `buffer-name-history'
22046 as history, and the current buffer's name as default.
22047
220482007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
22049
22050 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
22051 manipulating the backtrace manually.
22052 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
22053 (struct backtrace, backtrace_list): Remove.
22054 (command_loop_1): Remove dead var `no_direct'.
22055
22056 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
22057 preserve non-built-in buffer-local variables.
22058 (Fkill_all_local_variables): Don't re-create&re-set permanent
22059 buffer-local variables.
22060
220612007-12-09 Juri Linkov <juri@jurta.org>
22062
22063 * buffer.c (Frename_buffer): Change interactive spec from "s" to
22064 Lisp code that uses `read-buffer' with current buffer as default.
22065
220662007-12-08 Michael Albinus <michael.albinus@gmx.de>
22067
22068 * dbusbind.c (xd_read_message): Generate an event for every
22069 registered handler. There might be several handlers registered
22070 for the same signal.
22071 (Fdbus_register_signal): Don't overwrite a registration for the
22072 same signal. Add a new registration if handlers are different.
22073 (Vdbus_registered_functions_table): Rework doc string.
22074
220752007-12-07 Michael Albinus <michael.albinus@gmx.de>
22076
22077 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
22078 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
22079 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
22080 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
22081 Unify argument lists.
22082 (xd_read_message, Fdbus_register_signal): Reorder and extend event
22083 arguments and hash table keys. Use unique name for service.
22084 (Fdbus_unregister_signal): Remove checks.
22085 (Vdbus_registered_functions_table): Fix doc string.
22086
220872007-12-05 Magnus Henoch <mange@freemail.hu>
22088
22089 * process.c (make_process): Initialize pty_flag to 0.
22090
220912007-12-05 Jason Rumney <jasonr@gnu.org>
22092
22093 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
22094 specified XBMs.
22095
220962007-12-05 Richard Stallman <rms@gnu.org>
22097
22098 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
22099
221002007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22101
22102 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
22103 New variable.
22104 (mac_try_close_socket) [MAC_OSX]: New function.
22105 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
22106 Update cfsockets_for_select. Replace invalid CFRunLoop source.
22107
22108 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
22109 Use mac_try_close_socket.
22110
221112007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22112
22113 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
22114 reloc_base.
22115 (copy_dysymtab): Compute relocation base here.
22116 (rebase_reloc_address) [__ppc64__]: New function.
22117 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
22118 changed.
22119
221202007-12-05 Jason Rumney <jasonr@gnu.org>
22121
22122 * w32proc.c (sys_spawnve): Quote args with wildcards.
22123
221242007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22125
22126 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
22127 __objc_* sections.
22128 (unrelocate) [_LP64]: Set relocation base to address of data segment.
22129
221302007-12-05 Michael Albinus <michael.albinus@gmx.de>
22131
22132 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
22133 Move check for Vdbus_registered_functions_table to
22134 xd_read_queued_messages.
22135 (xd_read_queued_messages): Protect xd_read_message calls by
22136 internal_condition_case_1.
22137
221382007-12-04 Michael Albinus <michael.albinus@gmx.de>
22139
22140 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
22141 Qdbus_system_bus and Qdbus_session_bus, respectively.
22142 (Vdbus_intern_symbols): Remove.
22143 (Vdbus_registered_functions_table): New hash table.
22144 (XD_SYMBOL_INTERN_SYMBOL): Remove.
22145 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
22146 Rewrite in order to manage registered functions by hash table
22147 Vdbus_registered_functions_table.
22148
221492007-12-03 Jan Djärv <jan.h.d@swipnet.se>
22150
22151 * xterm.c: Update URL to Window Manager Specification in comment.
22152
221532007-12-02 Michael Albinus <michael.albinus@gmx.de>
22154
22155 * config.in (HAVE_DBUS): Add.
22156
22157 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
22158 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
22159 (obj): Add $(DBUS_OBJ).
22160 (LIBES): Add $(DBUS_LIBS).
22161 (dbusbind.o): New target.
22162
22163 * dbusbind.c: New file.
22164
22165 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
22166
22167 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
22168 (Qdbus_event): New Lisp symbol.
22169 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
22170 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 22171 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
22172
22173 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
22174
221752007-12-01 Richard Stallman <rms@gnu.org>
22176
22177 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
22178
221792007-11-30 Jason Rumney <jasonr@gnu.org>
22180
22181 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
22182 (w32con_reset_terminal_modes): Clear screen buffer.
22183 (w32_face_attributes): Don't use color indexes that are out of range.
22184 Only reverse the default colors.
22185
22186 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
22187 WINDOWSNT.
22188
22189 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
22190
221912007-11-29 Jason Rumney <jasonr@gnu.org>
22192
22193 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
22194 (w32_face_attributes): Use Vtty_defined_color_alist to determine
22195 if the terminal colors are initialized.
22196 (unspecified_fg, unspecified_bg): Remove unused declarations.
22197
221982007-11-29 Andreas Schwab <schwab@suse.de>
22199
22200 * keyboard.c (apply_modifiers): Fix typo.
22201
222022007-11-29 Richard Stallman <rms@gnu.org>
22203
22204 * keymap.c (Fcurrent_local_map): Doc fix.
22205
222062007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
22207
22208 * s/gnu-kfreebsd.h: New file.
22209
222102007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
22211
22212 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
22213 Don't cast redundantly.
22214
22215 * keyboard.c (KEY_TO_CHAR): New macro.
22216 (parse_modifiers, apply_modifiers): Accept integer arguments.
22217 (read_key_sequence): Use them to unify the "shift->unshift" mapping
22218 for chars and symbol keys.
22219 After doing such remapping, apply function-key-map again.
22220
222212007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
22222
22223 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
22224 compiled anymore.
22225
222262007-11-26 Andreas Schwab <schwab@suse.de>
22227
22228 * process.c (list_processes_1): Fix indentation level of the
22229 command column.
22230
222312007-11-23 Andreas Schwab <schwab@suse.de>
22232
22233 * editfns.c (Fformat): Handle %c specially since it requires the
22234 argument to be of type int.
22235
222362007-11-23 Markus Triska <markus.triska@gmx.at>
22237
22238 * emacs.c (main): Call init_editfns before init_process, since
22239 init_process sets Vprocess_connection_type depending on OS release.
22240
222412007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
22242
22243 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
22244 (find_symbol_value): Use do_symval_forwarding.
22245
22246 * data.c (set_internal): Set the value in the `cons-cell' (for
22247 Buffer_Local_values) not only for frame-local variables.
22248
222492007-11-22 Andreas Schwab <schwab@suse.de>
22250
22251 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
22252 values to sprintf.
22253 * keymap.c (Fsingle_key_description): Likewise.
22254 * print.c (print_object): Likewise.
22255
222562007-11-22 Jan Djärv <jan.h.d@swipnet.se>
22257
22258 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
22259 file for image is nil.
22260
222612007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
22262
22263 * term.c: Include stdarg.h.
22264 (fatal): Implement using varargs.
22265 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
22266
222672007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22268
22269 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
22270 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
22271 Update call to buffer_slot_type_mismatch.
22272 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
22273 (buffer_slot_type_mismatch): Update.
22274 * buffer.c (buffer_local_types): Remove.
22275 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
22276 (defvar_per_buffer): Set the type in the buffer_objfwd.
22277
222782007-11-21 Jason Rumney <jasonr@gnu.org>
22279
22280 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
22281 CreateFileMapping returns NULL on failure.
22282
222832007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22284
22285 * search.c (Fset_match_data): Remove the `evaporate' feature.
22286 (unwind_set_match_data): Don't use the `evaporate' feature.
22287
222882007-11-21 Jason Rumney <jasonr@gnu.org>
22289
22290 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
22291
22292 * w32console.c (w32con_write_glyphs): Remove unused variables.
22293
222942007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
22295
22296 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
22297
22298 * s/darwin.h (MULTI_KBOARD): Remove.
22299
22300 * macfns.c (x_create_tip_frame, Fx_create_frame)
22301 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
22302
223032007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
22304
22305 * buffer.c (Fbuffer_local_value): Remove redundant test.
22306 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
22307 than in `current-buffer' to match the comment.
22308 Do the swap using swap_in_global_binding.
22309
22310 * data.c (store_symval_forwarding, set_internal):
22311 * eval.c (specbind): Remove dead code.
22312
22313 * coding.c (detect_coding, Fupdate_coding_systems_internal):
22314 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
22315 Since we do not want to see internal Lisp_*fwd objects here.
22316
223172007-11-18 Jan Djärv <jan.h.d@swipnet.se>
22318
22319 * sysdep.c (init_system_name): Use getaddrinfo if available.
22320
22321 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
22322 (x_scroll_bar_note_movement): start, end, with, height in struct
22323 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
22324
223252007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
22326
22327 * puresize.h (BASE_PURESIZE): Increase to 1190000.
22328
223292007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
22330
22331 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
22332 This undoes Richard's change of 14-Oct-2002.
22333
22334 * alloc.c (allocate_other_vector):
22335 * lisp.h (allocate_other_vector): Remove.
22336
22337 * window.c (struct save_window_data): Move non-lisp data to the end
22338 and make it `int' rather than Lisp_Object.
22339 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
22340 Done wrap/unwrap integer values.
22341 (Fset_window_configuration, compare_window_configurations):
22342 Update use of fields to their new types.
22343
22344 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
22345 Turn integer fields into `int'. Merge x_window_low and x_window_high.
22346 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
22347 (SET_SCROLL_BAR_X_WINDOW): Remove.
22348 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
22349 Access the new x_window field directly.
22350 * xterm.c (x_scroll_bar_create): Use a pseudovector.
22351 Don't wrap/unwrap integers into Lisp_Objects.
22352 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
22353 (x_scroll_bar_report_motion):
22354 Don't wrap/unwrap integers into Lisp_Objects.
22355 (x_term_init): Use SDATA.
22356 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
22357 (x_scroll_bar_set_handle, x_scroll_bar_remove)
22358 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
22359 (x_scroll_bar_report_motion, x_scroll_bar_clear):
22360 * xfns.c (x_set_background_color):
22361 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
22362 Access the new x_window field directly.
22363
22364 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
22365 (allocate_pseudovector): Make non-static.
22366
22367 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
22368 (allocate_pseudovector): Declare.
22369 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
22370
223712007-11-15 Andreas Schwab <schwab@suse.de>
22372
22373 * editfns.c (Fformat): Correctly format EMACS_INT values.
22374 Also take precision into account when formatting an integer.
22375
22376 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
22377
223782007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
22379
22380 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
22381 (syms_of_keyboard): Defsubr it.
22382
22383 * data.c (swap_in_global_binding): Fix longstanding bug where
22384 store_symval_forwarding was not called with the right second argument,
22385 thus causing objfwd-ing from being dropped.
22386
223872007-11-14 Juanma Barranquero <lekktu@gmail.com>
22388
22389 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
22390 (Fx_display_pixel_height, Fx_display_planes)
22391 (Fx_display_color_cells, Fx_server_max_request_size)
22392 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22393 (Fx_display_visual_class, Fx_display_save_under):
22394 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
22395 (Fx_display_pixel_height, Fx_display_planes)
22396 (Fx_display_color_cells, Fx_server_max_request_size)
22397 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
22398 (Fx_display_mm_height, Fx_display_mm_width)
22399 (Fx_display_backing_store, Fx_display_visual_class)
22400 (Fw32_select_font, Fx_display_save_under):
22401 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
22402 (Fx_display_pixel_height, Fx_display_planes)
22403 (Fx_display_color_cells, Fx_server_max_request_size)
22404 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22405 (Fx_display_save_under): Fix typos in docstrings.
22406
224072007-11-14 Juanma Barranquero <lekktu@gmail.com>
22408
22409 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
22410 corresponding to deleted entries; they are an implementation detail.
22411 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
22412 Remove variables.
22413 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
22414 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
22415 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
22416 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
22417 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
22418 (Fw32_define_rgb_color, Fw32_load_color_file)
22419 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
22420 Fix typos in docstrings.
22421 (Fx_server_version): Reflow docstring.
22422 (Fw32_shell_execute): Doc fixes.
22423
224242007-11-13 Juanma Barranquero <lekktu@gmail.com>
22425
22426 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
22427 if w32_parse_hot_key returned nil.
22428
224292007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
22430
22431 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
22432
224332007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 22434
aac0c6e3
MR
22435 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
22436
22437 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
22438
22439 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
22440 Remove W32_SCROLL_BAR_CLICK_EVENT.
22441
22442 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
22443 Add MULTIMEDIA_KEY_EVENT.
22444
22445 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
22446 (lispy_multimedia_keys) [WINDOWSNT]: New array.
22447 (make_lispy_event) [WINDOWSNT]: Use it to translate
22448 MULTIMEDIA_KEY_EVENT.
22449
22450 * w32term.h (WM_APPCOMMAND): Define if not already.
22451 (GET_APPCOMMAND_LPARAM): Likewise.
22452
22453 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
22454 WM_APPCOMMAND.
22455
22456 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
22457 (syms_of_w32fns): Export and initialize it.
22458 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
22459
224602007-11-09 Chong Yidong <cyd@stupidchicken.com>
22461
22462 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
22463 twice.
22464
22465 * xdisp.c (handle_face_prop): Fix last change.
22466
224672007-11-09 Richard Stallman <rms@gnu.org>
22468
22469 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
22470 not just for after-strings and before-strings.
22471 Call face_for_overlay_string and pass the overlay to it.
22472 (handle_display_prop): Determine whether property came from an overlay.
22473 Pass OVERLAY arg to handle_single_display_spec.
22474 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
22475 (load_overlay_strings): Fill in it->string_overlays.
22476 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
22477
22478 * xfaces.c (face_for_overlay_string): Function renamed from
22479 face_at_buffer_position_no_overlays, and add arg OVERLAY.
22480
22481 * dispextern.h (struct it): New elt string_overlays.
22482 New elt from_overlay, also in stack.
22483 Rearrange a few elements.
22484 (face_for_overlay_string): Decl renamed from
22485 face_at_buffer_position_no_overlays, and add argument.
22486
224872007-11-09 Richard Stallman <rms@gnu.org>
22488
22489 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
22490 to get the base face for an overlay string.
22491
22492 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
22493
22494 * xfaces.c (face_at_buffer_position_no_overlays): New function.
22495
22496 * xdisp.c (handle_stop): Move some code out of loop.
22497
224982007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22499
22500 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
22501 Fix conversion from Lisp object to ATSUFontID.
22502
225032007-11-09 Jason Rumney <jasonr@gnu.org>
22504
22505 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
22506
225072007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22508
22509 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
22510 Don't assume regions are aligned to page boundary.
22511 (print_load_command_name): Add LC_UUID if defined.
22512
225132007-11-09 Richard Stallman <rms@gnu.org>
22514
22515 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
22516
225172007-11-07 Jason Rumney <jasonr@gnu.org>
22518
22519 * s/windows95.h: Remove.
22520
225212007-11-06 Jan Djärv <jan.h.d@swipnet.se>
22522
22523 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
22524 abort with a message on unhandled store_type values.
22525
225262007-11-01 Jan Djärv <jan.h.d@swipnet.se>
22527
22528 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
22529 Remove HAVE_X11R5 and HAVE_X11R4.
22530
225312007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22532
22533 * Makefile.in: Remove references to sunfns.c and sunfns.o.
22534
225352007-11-01 Johan Bockgård <bojohan@gnu.org>
22536
22537 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
22538 Don't set s->stippled_p here, since it has already been set by
22539 x_set_glyph_string_gc from x_draw_glyph_string.
22540
225412007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
22542
22543 * sunfns.c: Remove file.
22544
22545 * m/sun386.h:
22546 * m/sun2.h:
22547 * m/sparc.h: Remove Sun windows code.
22548
225492007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
22550
22551 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
22552 (init_keyboard): Set current_kboard's window-system to nil.
22553 (tty_read_avail_input): Typo.
22554 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
22555
225562007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
22557
22558 * s/usg5-4.h:
22559 * s/usg5-3.h:
22560 * s/ptx.h:
22561 * m/is386.h:
22562 * m/ibmps2-aix.h:
22563 * Makefile.in: Remove all mentions of X10.
22564
22565 * dispnew.c (syms_of_display): Don't mention version 10.
22566
225672007-10-28 Juanma Barranquero <lekktu@gmail.com>
22568
22569 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
22570 ($(BLD)/abbrev.$(O)): Remove.
22571
225722007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
22573
22574 Rewrite abbrev.c in Elisp.
22575 * image.c (Qcount): Don't declare as extern.
22576 (syms_of_image): Initialize and staticpro `Qcount'.
22577 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
22578 * emacs.c (main): Don't call syms_of_abbrev.
22579 * Makefile.in (obj): Remove abbrev.o.
22580 (abbrev.o): Remove.
22581 * abbrev.c: Remove.
22582
225832007-10-26 Martin Rudalics <rudalics@gmx.at>
22584
22585 * window.c (window_min_size_2): Don't count header-line.
22586
225872007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
22588
22589 * frame.h (struct frame): Move all bit fields after the first bit
22590 field to take advantage of the available space. Group all the
22591 chars together to reduce wasted space due to padding.
22592
225932007-10-26 Juanma Barranquero <lekktu@gmail.com>
22594
22595 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
22596
22597 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
22598 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
22599 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
22600 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
22601 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
22602 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
22603 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
22604 (last_marked, mark_object_loop_halt): Make static.
22605
22606 * frame.c (syms_of_frame) <delete-frame-functions>:
22607 Fix typo in docstring.
22608
226092007-10-25 Juanma Barranquero <lekktu@gmail.com>
22610
22611 * w32.c (init_environment): Fix tiny memory leak.
22612 (w32_get_resource): Remove unused variable `ok'.
22613
226142007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
22615
22616 Make `window-system' into a keyboard-local variable (rather than
22617 frame-local as done originally by multi-tty).
22618
22619 * keyboard.h (struct kboard): Add Vwindow_system.
22620 * keyboard.c (init_kboard): Set a default for Vwindow_system.
22621 (mark_kboards): Mark Vwindow_system.
22622
22623 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
22624 (init_display): Don't set the obsolete `window-system' frame-param.
22625
22626 * xterm.c (x_term_init):
22627 * w32term.c (w32_create_terminal):
22628 * term.c (init_tty): Set Vwindow_system.
22629 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
22630 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
22631
22632 * xfns.c (Fx_create_frame, x_create_tip_frame):
22633 * w32fns.c (Fx_create_frame, x_create_tip_frame):
22634 * macfns.c (Fx_create_frame):
22635 Don't set the obsolete `window-system' frame-param.
22636
22637 * frame.h (Qwindow_system): Remove.
22638 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
22639 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
22640
226412007-10-24 Richard Stallman <rms@gnu.org>
22642
22643 * frame.c (x_figure_window_size): For fullscreen case,
22644 set USPosition | PPosition without clobbering rest of window_prompting.
22645
22646 * keyboard.c (Fcurrent_idle_time): Doc fix.
22647
22648 * print.c (Fwith_output_to_temp_buffer): Doc fix.
22649
226502007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
22651
22652 * process.c (unwind_request_sigio): Only define if __ultrix__.
22653
22654 * callproc.c (child_setup): Remove spurious *.
22655
22656 * lisp.h (Fget_text_property): Declare.
22657 (have_menus_p): Declare it here rather than in sys-dep header files.
22658 * macterm.h (have_menus_p):
22659 * msdos.h (have_menus_p):
22660 * xterm.h (have_menus_p): Remove.
22661
22662 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
22663 (Fmake_variable_frame_local): Just check the variable's const-ness
22664 rather than checking nil or t.
22665
226662007-10-22 Jason Rumney <jasonr@gnu.org>
22667
22668 * w32fns.c: Include math.h.
22669 (w32_abort): Declaration moved to nt/config.nt.
22670
22671 * s/ms-w32.h (HAVE_STDLIB_H): Define.
22672 (abort): Redefinition moved to nt/config.nt.
22673
22674 * m/windowsnt.h: Remove.
22675
226762007-10-22 Juanma Barranquero <lekktu@gmail.com>
22677
22678 * emacs.c (Fdump_emacs): Fix typo in message.
22679 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
22680 <installation-directory>: Reflow docstring.
22681
226822007-10-22 Juri Linkov <juri@jurta.org>
22683
22684 * minibuf.c: Allow minibuffer default to be a list of default values.
22685 With empty input use the first element of this list as returned default.
22686 (string_to_object)
22687 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
22688 (read_minibuf): If defalt is cons, set histstring to its car.
22689 (Fread_string): If default_value is cons, set val to its car.
22690 (Fread_buffer): If def is cons, use its car.
22691 (Fcompleting_read): If defalt is cons, set val to its car.
22692
226932007-10-21 Michael Albinus <michael.albinus@gmx.de>
22694
22695 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
22696
226972007-10-20 Juanma Barranquero <lekktu@gmail.com>
22698
22699 * doc.c (Fdocumentation): Check for advice in all cases.
22700
227012007-10-19 Chong Yidong <cyd@stupidchicken.com>
22702
22703 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
22704
227052007-10-19 Richard Stallman <rms@gnu.org>
22706
22707 * doc.c (Fdocumentation): Check for and handle an advised function.
22708
227092007-10-19 Juanma Barranquero <lekktu@gmail.com>
22710
22711 * process.c (Fset_process_filter): Doc fix.
22712
227132007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
22714
22715 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
22716 which caused key-translation-map to applied repeatedly (thus breaking
22717 double-mode).
22718
227192007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22720
22721 * xselect.c (x_own_selection, x_handle_selection_clear)
22722 (x_clear_frame_selections):
22723 * w32menu.c (list_of_panes, list_of_items):
22724 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
22725 * textprop.c (validate_plist, interval_has_all_properties)
22726 (interval_has_some_properties, interval_has_some_properties_list)
22727 (add_properties, text_property_list):
22728 * process.c (Fget_buffer_process, list_processes_1, status_notify):
22729 * minibuf.c (Fassoc_string):
22730 * macselect.c (x_own_selection, x_clear_frame_selections)
22731 (Fx_disown_selection_internal):
22732 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
22733 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
22734
227352007-10-17 Chong Yidong <cyd@stupidchicken.com>
22736
22737 * process.c: Link to libs for calling res_init() if available.
22738 (Fmake_network_process): Call res_init() before getaddrinfo or
22739 gethostbyname, if possible.
22740
227412007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22742
22743 * lread.c (read1): Set pvectype for char_tables.
22744
22745 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
22746 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
22747 Add type checks.
22748 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
22749
22750 * alloc.c (free_misc): Use XMISCTYPE.
22751 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
22752
227532007-10-17 Glenn Morris <rgm@gnu.org>
22754
22755 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
22756 (syms_of_minibuf): Add Qcompletion_ignore_case.
22757 * dired.c (Qcompletion_ignore_case): Change to external.
22758 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
22759 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
22760 (Fread_file_name): Use it rather than intern'ing.
22761
22762 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
22763 (Fread_coding_system): Ignore case of user input.
22764
227652007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22766
22767 * xdisp.c (handle_display_prop): Ignore display specs after
22768 replacing one when string text is being replaced.
22769 (handle_single_display_spec): Pretend as if characters with display
22770 property haven't been consumed only when buffer text is being replaced.
22771
227722007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
22773
22774 * xfns.c (Fx_create_frame, Fx_display_list):
22775 * window.c (window_fixed_size_p, enlarge_window)
22776 (shrink_window_lowest_first):
22777 * macterm.c (init_font_name_table):
22778 * macfns.c (Fx_create_frame, Fx_display_list):
22779 * lread.c (close_load_descs):
22780 * keyboard.c (read_char_x_menu_prompt):
22781 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
22782 * coding.c (code_convert_region_unwind): Test the type of an object
22783 rather than just !NILP before extracting data from it.
22784
22785 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
22786
22787 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
22788 (XMISCANY): New macro.
22789 (XMISCTYPE): Use it.
22790 (struct Lisp_Misc_Any): New type.
22791 (union Lisp_Misc): Use it.
22792 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
22793 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
22794 (find_symbol_value, set_internal, default_value, Fset_default)
22795 (Fmake_variable_buffer_local, Fmake_local_variable)
22796 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
22797 (Flocal_variable_if_set_p, Fvariable_binding_locus):
22798 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
22799 * alloc.c (allocate_buffer): Set the size and tag.
22800 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
22801 Use XMISCANY.
22802 (die): Follow the GNU convention for error messages.
22803 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
22804 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
22805 tag any more.
22806 (set_buffer_internal_1):
22807 * frame.c (store_frame_param):
22808 * eval.c (specbind):
22809 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
22810
22811 * doc.c (Fsnarf_documentation): Simplify.
22812
228132007-10-14 Juanma Barranquero <lekktu@gmail.com>
22814
22815 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
22816 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
22817
228182007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
22819
22820 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
22821
228222007-10-14 Juanma Barranquero <lekktu@gmail.com>
22823
22824 * eval.c (do_autoload): Don't save autoloads.
22825
22826 * data.c (Ffset): Save autoload of the function being set.
22827
228282007-10-07 John Paul Wallington <jpw@pobox.com>
22829
22830 * xfns.c (x_create_tip_frame): Set the `display-type' frame
22831 parameter before setting up faces.
22832
228332007-10-13 Eli Zaretskii <eliz@gnu.org>
22834
22835 * ccl.c (Fregister_code_conversion_map):
22836 * keyboard.c (append_tool_bar_item): Reformat last change.
22837
22838 * lisp.h (eabs): Rename from `abs'. All callers changed.
22839
228402007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
22841
22842 * buffer.c (add_overlay_mod_hooklist):
22843 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
22844 * fontset.c (make_fontset):
22845 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
22846 (append_tool_bar_item):
22847 * macmenu.c (grow_menu_items):
22848 * w32menu.c (grow_menu_items):
22849 * xmenu.c (grow_menu_items): Use larger_vector.
22850
228512007-10-13 Eli Zaretskii <eliz@gnu.org>
22852
22853 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
22854 selected frame'' on MSDOS).
22855
228562007-10-12 Martin Rudalics <rudalics@gmx.at>
22857
22858 * frame.c (Qexplicit_name): New variable.
22859 (x_report_frame_params): Report it in parameter alist.
22860 (syms_of_frame): Intern and staticpro it.
22861
228622007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
22863
22864 * macfns.c (x_create_tip_frame): Set terminal for frame.
22865
228662007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
22867
22868 * frame.c (Qenvironment): Remove.
22869 (syms_of_frame) <Qenvironment>: Don't initialize.
22870 (Fdelete_frame): Don't treat the `environment' param specially.
22871 * frame.h (Qenvironment): Don't declare.
22872 * callproc.c (set_initial_environment): Don't set unused frame param.
22873
22874 * frame.c (Fframe_with_environment): Remove.
22875 (syms_of_frame) <Sframe_with_environment>: Don't declare.
22876
22877 * lisp.h (Fframe_with_environment): Don't declare.
22878
228792007-10-10 Juanma Barranquero <lekktu@gmail.com>
22880
22881 * indent.c (indent_tabs_mode, last_known_column)
22882 (last_known_column_modified): Make static.
22883 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
22884
228852007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
22886
22887 * puresize.h (BASE_PURESIZE): Increase to 1170000.
22888
228892007-10-09 Jason Rumney <jasonr@gnu.org>
22890
22891 * w32term.c (x_set_window_size): Disable code that attempts to tell
22892 Lisp code about a size change before it actually happens.
22893
228942007-10-09 Richard Stallman <rms@gnu.org>
22895
22896 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
22897 return HANDLED_RETURN.
22898
228992007-10-08 Martin Rudalics <rudalics@gmx.at>
22900
22901 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
22902 when there's an unread command event.
22903
22904 * frame.c (focus_follows_mouse): Move here from frame.el to allow
22905 window autoselection act appropriately when leaving selected frame.
22906 (syms_of_frame): Initialize focus_follows_mouse.
22907 * frame.h (focus_follows_mouse): Extern it.
22908 * macterm.c (XTread_socket): When focus_follows_mouse is nil
22909 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
22910 * msdos.c (dos_rawgetc): Likewise.
22911 * w32term.c (w32_read_socket): Likewise.
22912 * xterm.c (handle_one_xevent): Likewise.
22913 * xdisp.c (syms_of_xdisp): In doc-string of
22914 mouse-autoselect-window mention focus-follows-mouse.
22915
229162007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22917
22918 * macterm.c (mac_load_query_font): Fix missing return value.
22919 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
22920 Add BLOCK_INPUT.
22921
229222007-10-08 Richard Stallman <rms@gnu.org>
22923
22924 * xdisp.c (get_window_cursor_type): Implement documented behavior
22925 for cursor-in-non-selected-windows = t.
22926
229272007-10-08 Jason Rumney <jasonr@gnu.org>
22928
22929 * w32.c (w32_get_resource): Always close registry keys.
22930
229312007-10-08 Jason Rumney <jasonr@gnu.org>
22932
22933 * makefile.w32-in (LIBS): Add COMCTL32.
22934
22935 * w32fns.c (globals_of_w32fns): Init common controls.
22936
229372007-10-08 Richard Stallman <rms@gnu.org>
22938
22939 * image.c (our_memory_buffer): Rename from omfib_buffer.
22940
229412007-10-08 Richard Stallman <rms@gnu.org>
22942
22943 * buffer.c (Foverlays_at): Doc fix.
22944
229452007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
22946
22947 * fns.c (Fplist_put): Preserve uneven tail data.
22948
229492007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
22950
22951 * termhooks.h (enum event_kind): Remove trailing comma.
22952
22953 * frame.h (enum): Remove trailing comma.
22954
229552007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
22956
22957 * w32proc.c (delete_child): Don't terminate threads of zombies.
22958
229592007-10-08 Martin Rudalics <rudalics@gmx.at>
22960
22961 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
22962
22963 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
22964 last-repeatable-command.
22965 (init_kboard): Initialize Vlast_repeatable_command.
22966 (command_loop_1): Set it to real_this_command unless that was
22967 bound to an input event.
22968 (mark_kboards): Mark it.
22969
229702007-10-08 Richard Stallman <rms@gnu.org>
22971
22972 * eval.c (condition-case): Doc fix.
22973
229742007-10-08 Masatake YAMATO <jet@gyve.org>
22975
22976 * xfaces.c (tty_supports_face_attributes_p): Fix code
22977 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
22978 was copied and not edited.
22979
229802007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
22981
22982 Add new `input-decode-map' keymap and use it for terminal
22983 escape sequences.
22984 * keyboard.h (struct kboard): Add Vinput_decode_map.
22985 Remove Vlocal_key_translation_map.
22986 * keyboard.c (read_key_sequence): Add support for input-decode-map.
22987 (init_kboard): Init input-decode-map.
22988 Replace local-key-translation-map back with key-translation-map.
22989 (syms_of_keyboard): Declare input-decode-map.
22990 Remove local-key-translation-map. Update docstrings.
22991 (mark_kboards): Mark Vinput_decode_map.
22992 Don't mark Vlocal_key_translation_map.
22993 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
22994 Replace local-key-translation-map back with key-translation-map.
22995 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
22996 Bind in input-decode-map rather than function-key-map.
22997
22998 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
22999 This was made redundant by the previous introduction of XSETPVECTYPE.
23000
230012007-10-09 Richard Stallman <rms@gnu.org>
23002
23003 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
23004
230052007-09-29 Richard Stallman <rms@gnu.org>
23006
23007 * eval.c (internal_condition_case_2, internal_condition_case_1)
23008 (internal_condition_case): Reenable abort if x_catching_errors ()
23009 to see if that really happens and why.
23010
230112007-10-06 Andreas Schwab <schwab@suse.de>
23012
23013 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
23014
230152007-10-04 Juanma Barranquero <lekktu@gmail.com>
23016
23017 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
23018
230192007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
23020
23021 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
23022
230232007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
23024
23025 * window.h (struct window):
23026 * window.c (struct save_window_data, struct saved_window):
23027 * termhooks.h (struct terminal):
23028 * process.h (struct Lisp_Process):
23029 * frame.h (struct frame):
23030 * buffer.h (struct buffer):
23031 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
23032 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
23033 The size field of (pseudo)vectors is now unsigned.
23034 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
23035
23036 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
23037 Turn `count' into an integer.
23038
23039 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
23040 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
23041 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
23042 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
23043 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
23044
23045 * alloc.c (allocate_pseudovector): New fun.
23046 (ALLOCATE_PSEUDOVECTOR): New macro.
23047 (allocate_window, allocate_terminal, allocate_frame)
23048 (allocate_process): Use it.
23049 (mark_vectorlike): New function.
23050 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
23051 (mark_terminals): Use it.
23052 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
23053 (Fmake_byte_code): Use XSETPVECTYPE.
23054
23055 * frame.c (Fframe_parameters): Minor simplification.
23056
23057 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
23058
23059 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
23060
23061 * buffer.c (Fget_buffer_create, init_buffer_once):
23062 * lread.c (defsubr):
23063 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
23064
23065 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
23066 defined differently in the m/*.h files.
23067 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
23068 (XSETPVECTYPE): New macro.
23069 (XSETPSEUDOVECTOR): Use it.
23070
23071 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
23072 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
23073
23074 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
23075 * lread.c (defvar_per_buffer):
23076 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
23077
23078 * window.c (candidate_window_p): Only consider as visible frames that
23079 are on the same terminal.
23080
23081 * m/ibms390x.h (MARKBIT): Remove unused macro.
23082
230832007-10-01 Juanma Barranquero <lekktu@gmail.com>
23084
23085 * lread.c (Fload): Fix typo in docstring.
23086
230872007-10-01 Michaël Cadilhac <michael@cadilhac.name>
23088
23089 * floatfns.c (Fexpt): Manually check for overflows, so that a power
23090 of a non-zero value can't yield zero.
23091
230922007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
23093
23094 * term.c (term_clear_mouse_face, term_mouse_highlight)
23095 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
23096
23097 * print.c (safe_debug_print): Use XHASH.
23098
23099 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
23100 Lisp elements such as tags.
23101 (XHASH): New macro.
23102 (EQ): Use it.
23103 (SREF, SSET, STRING_COPYIN): Use SDATA.
23104 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
23105
23106 * alloc.c (mark_terminal): Remove left-over declaration.
23107 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
23108 (allocate_vectorlike): Remove type argument. Adjust callers.
23109 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
23110 Only handle the one remaining MEM_TYPE_VECTORLIKE.
23111
23112 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
23113 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
23114 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
23115 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
23116 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
23117 Use them.
23118
23119 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
23120 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
23121 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
23122
231232007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
23124
23125 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
23126 loaded by default.
23127
231282007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
23129
23130 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
23131 on this tty.
23132 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
23133
23134 * term.c (mouse_face_window): Rename from Qmouse_face_window.
23135 Update all users.
23136 (handle_one_term_event): Use Gpm_DrawPointer.
23137 (Fgpm_mouse_start): Rename from Fterm_open_connection.
23138 Signal errors instead of returning nil. Always return nil.
23139 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
23140 Make it a noop if gpm-mouse was not activated.
23141 (syms_of_term): Update names.
23142
231432007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
23144
23145 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
23146 (init_sys_modes): Check that gpm_tty is the current tty.
23147
23148 * alloc.c (allocate_terminal): Set the vector size to only count the
23149 lisp fields. Initialize those to nil.
23150 (mark_object): Don't treat terminals specially.
23151 (mark_terminal): Remove.
23152 (mark_terminals): Use mark_object instead.
23153
23154 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
23155 the GC to the beginning.
23156
23157 * indent.h:
23158 * indent.c: Use EMACS_INT for ints coming from Elisp data.
23159
23160 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
23161
231622007-09-25 Jason Rumney <jasonr@gnu.org>
23163
23164 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
23165
23166 * w32console.c (create_w32cons_output): Remove.
23167
23168 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
23169
23170 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
23171 (reset_sys_modes): Use reset_terminal_modes_hook.
23172
231732007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
23174
23175 * eval.c (do_autoload): Don't output any message.
23176
231772007-09-24 Juri Linkov <juri@jurta.org>
23178
23179 * emacs.c (standard_args): Change priority of "--no-splash"
23180 from 40 to 3. Add "--no-desktop" with the same priority.
23181
231822007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
23183
23184 * alloc.c (gc_sweep): Check cons cell mark bits word by word
23185 and optimize the case where they are all 1.
23186
231872007-09-23 Johannes Weiner <hannes@saeurebad.de>
23188
23189 * lisp.h (abs): Define if not defined.
23190 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
23191 Don't define `abs', since it's defined in lisp.h.
23192
231932007-09-22 Eli Zaretskii <eliz@gnu.org>
23194
23195 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
23196 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
23197 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
23198 (init_tty): Use DEV_TTY instead of "/dev/tty".
23199 [WINDOWSNT]: No need to protect from NAME arg being null.
23200
232012007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
23202
23203 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
23204 up the tty state.
23205
232062007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23207
23208 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
23209 (gpm_tty): Change its type.
23210 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
23211 (gpm_tty): Change its type and initialize it.
23212 (Fterm_open_connection): Check the frame is indeed a tty.
23213 Use the new gpm_tty.
23214 (Fterm_close_connection): Use the new gpm_tty.
23215 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
23216 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
23217
232182007-09-21 Juanma Barranquero <lekktu@gmail.com>
23219
23220 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
23221 underline_color, to draw strike-through.
23222
232232007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23224
23225 * lisp.h (allocate_terminal): Declare.
23226
23227 * window.c (candidate_window_p): Consider frames that are being placed
23228 by the user as somewhere between visible and iconified.
23229 (window_loop): Prefer windows on the current frame.
23230 (Fselect_window): Move the use of select-frame to the beginning so we
23231 can just delegate all the work (it'll call us back anyway).
23232
23233 * frame.c (Qdisplay_environment_variable):
23234 * frame.h (Qdisplay_environment_variable): Delete.
23235
23236 * .gdbinit (xbacktrace): Print the arg's address rather than the value
23237 of the first arg, since that value may be a union.
23238
23239 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
23240 parameter rather than Qdisplay_environment_variable. If all else
23241 fails, look for DISPLAY in initial-environment.
23242
232432007-09-21 Glenn Morris <rgm@gnu.org>
23244
23245 * Makefile.in (emacstool): Remove target.
23246 (lisp, shortlisp): Remove termdev.elc.
23247
232482007-09-21 Markus Triska <markus.triska@gmx.at>
23249
23250 * xterm.c (x_delete_display): Compile session management conditionally.
23251
232522007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
23253
23254 * callproc.c (getenv_internal_1): New function.
23255 (getenv_internal): Use it.
23256 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
23257
23258 * terminal.c (get_terminal): Don't accept ints to represent terminals.
23259 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
23260 (Fset_terminal_parameter): Work with dead terminals as well.
23261 (Fmodify_terminal_parameters): Remove.
23262
23263 * terminal.c (get_terminal): Handle terminals.
23264 Make sure the terminal returned is live.
23265 (create_terminal): Use allocate_terminal.
23266 (mark_terminals): Move to alloc.c.
23267 (delete_terminal): Use terminal->name as liveness status.
23268 NULL out fields after freeing their contents.
23269 Don't deallocate the object.
23270 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
23271 rather than an int.
23272 (Fterminal_live_p): Accept non-integer arguments.
23273 (Fterminal_list): Return terminal objects rather than an ints.
23274
23275 * alloc.c (enum mem_type): New member for `terminal' objects.
23276 (allocate_terminal): New function.
23277 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
23278 Handle terminals.
23279 (mark_terminal): New fun.
23280 (mark_terminals): Move from terminal.c.
23281
23282 * term.c (get_tty_terminal): Don't treat output_initial specially.
23283 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
23284 (delete_tty): Use terminal->name as liveness status.
23285
23286 * termhooks.h (struct terminal): Make it into a pseudovector.
23287 Remove `deleted' replaced by checking `name's nullness.
23288
23289 * print.c (print_object): Handle terminals.
23290
23291 * lisp.h (enum pvec_type): New `terminal' pseudovector.
23292 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
23293
23294 * frame.c (make_terminal_frame):
23295 * keyboard.c (tty_read_avail_input):
23296 * w32term.c (x_delete_terminal):
23297 * xfns.c (Fx_create_frame, x_create_tip_frame):
23298 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
23299
233002007-09-20 Glenn Morris <rgm@gnu.org>
23301
23302 * process.c (Fmake_network_process): Doc fix.
23303
233042007-09-19 Jason Rumney <jasonr@gnu.org>
23305
23306 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
23307
233082007-09-19 Michaël Cadilhac <michael@cadilhac.name>
23309
23310 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
23311 Fix a C warning regarding variable constness.
23312
23313 * xterm.c (handle_one_xevent): Fix a C warning.
23314
233152007-09-18 Jason Rumney <jasonr@gnu.org>
23316
23317 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
23318
233192007-09-17 Jan Djärv <jan.h.d@swipnet.se>
23320
23321 * gtkutil.c (gdpy_def): New variable.
23322 (xg_initialize): Initialize gdpy_def.
23323 (xg_display_close): If no other display exists, set gdpy_def to a
23324 new connection.
23325
233262007-09-16 Jan Djärv <jan.h.d@swipnet.se>
23327
23328 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
23329 when we have no file name for the icon.
23330 (xg_tool_bar_expose_callback): Remove.
23331 (xg_create_tool_bar): Don't connect expose signal to
23332 xg_tool_bar_expose_callback.
23333 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
23334
233352007-09-16 Andreas Schwab <schwab@suse.de>
23336
23337 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
23338 values instead of zapping them.
23339
233402007-09-14 Glenn Morris <rgm@gnu.org>
23341
23342 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
23343 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
23344 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
23345 scope and rename to omfib_buffer for clarity.
23346 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
23347
233482007-09-14 Kenichi Handa <handa@m17n.org>
23349
23350 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
23351
233522007-09-13 Jason Rumney <jasonr@gnu.org>
23353
23354 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
23355
23356 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
23357
23358 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
23359 (mac_term_init): Call here instead, passing rif.
23360
233612007-09-13 Glenn Morris <rgm@gnu.org>
23362
23363 * s/hpux.h: No longer define `static' as nothing.
23364
233652007-09-13 Johan Bockgård <bojohan@gnu.org>
23366
23367 * callint.c (Fcall_interactively): Remove unused var `fun'.
23368
233692007-09-12 Romain Francoise <romain@orebokech.com>
23370
23371 * window.c (prefer_window_split_horizontally, display_buffer):
23372 Revert 2007-09-08 change.
23373
233742007-09-12 Glenn Morris <rgm@gnu.org>
23375
23376 * alloca.c: Remove file.
23377 * Makefile.in (alloca): Do not undef.
23378 (allocaobj, alloca.o): Remove.
23379 (otherobj): Remove allocaobj.
23380 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
23381 * regex.c (C_ALLOCA): Remove all references and code that was only
23382 used when this was defined.
23383 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
23384 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
23385 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
23386
23387 * Makefile.in (SOURCES, unlock, relock): Delete.
23388
23389 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
23390 (menu_grab_callback): All uses changed.
23391
23392 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
23393 (x_reply_selection_request): All uses changed.
23394
233952007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
23396
23397 * lread.c (load_warn_old_style_backquotes): Change message to look
23398 better when it appears in the middle of byte-compiler messages.
23399
234002007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
23401
23402 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
23403
23404 * xterm.c (x_create_terminal): Add comment.
23405
23406 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
23407
234082007-09-10 Richard Stallman <rms@gnu.org>
23409
23410 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
23411
234122007-09-10 Michaël Cadilhac <michael@cadilhac.name>
23413
23414 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
23415 (DEFUN): Document `intspec', use it instead of `prompt'.
23416
23417 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
23418
23419 * data.c (Finteractive_form): If the interactive specification starts
23420 with a `(', use it as a Lisp form.
23421
23422 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
23423 name and file modes.
23424
23425 * callint.c (Fcall_interactively): Comment fixes.
23426
234272007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
23428
23429 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
23430 and compiled functions.
23431
234322007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
23433
23434 * window.c (prefer_window_split_horizontally): New variable.
23435 (display_buffer): Consider splitting window horizontally depending
23436 on prefer_window_split_horizontally.
23437
234382007-09-08 Eli Zaretskii <eliz@gnu.org>
23439
23440 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
23441
234422007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23443
23444 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
23445
23446 * frame.c (x_set_frame_parameters): Check number is positive before
23447 using XFASTINT.
23448
23449 * window.c (freeze_window_start): Don't presume selected_window holds
23450 a window object.
23451 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
23452
234532007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
23454
23455 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
23456
234572007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23458
23459 * window.c (Vsplit_window_preferred_function): New var.
23460 (Fdisplay_buffer): Use it.
23461 (syms_of_window): Export, and initialize it.
23462
234632007-09-06 Pixel <pixel@mandriva.com> (tiny change)
23464
23465 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
23466
234672007-09-06 Glenn Morris <rgm@gnu.org>
23468
23469 * gtkutil.c (menu_grab_callback) <cnt>:
23470 * xselect.c (x_reply_selection_request) <cnt>: Move static
23471 variable to file scope.
23472
234732007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
23474
23475 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
23476 consistent values of selected_frame and selected_window.
23477
234782007-09-04 Jason Rumney <jasonr@gnu.org>
23479
23480 * w32console.c (initialize_w32_display): Zero unused hooks.
23481
234822007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23483
23484 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
23485 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
23486
234872007-09-04 Jason Rumney <jasonr@gnu.org>
23488
23489 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
23490 in w32console.c. Set up input. Remove XXX comments that have been
23491 confirmed as correct.
23492
23493 * s/ms-w32.h (MULTI_KBOARD): Define.
23494
23495 * w32console.c (one_and_only_w32cons): Remove.
23496 (initialize_w32_display): Take terminal argument.
23497
23498 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
23499 initialize_w32_display.
23500 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
23501
23502 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
23503
23504 * keyboard.c (discard_mouse_events): Discard it.
23505 (make_lispy_event): Translate it to a lisp event.
23506 (lispy_wheel_names): Add wheel-left and right events.
23507 (syms_of_keyboard): Enlarge wheel_syms.
23508
23509 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
23510 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
23511
23512 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
23513
23514 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
23515 from WM_MOUSEHWHEEL.
23516 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
23517
23518 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
23519 terminal.
23520
23521 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
23522 keyboard for the terminal.
23523
235242007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23525
23526 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
23527 (Vresume_tty_hook): Rename from Vresume_tty_functions.
23528 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
23529 and resume-tty-function to resume-tty-hook.
23530 (Fsuspend_tty, Fresume_tty): Use new names.
23531
235322007-09-02 Jan Djärv <jan.h.d@swipnet.se>
23533
23534 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
23535 if it starts with "n:".
23536
235372007-08-31 Jan Djärv <jan.h.d@swipnet.se>
23538
23539 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
23540
235412007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
23542
23543 * frame.h:
23544 * frame.c (Qterm_environment_variable): Remove.
23545 (syms_of_frame): Don't init and staticpro it.
23546
23547 * callproc.c (getenv_internal): Remove special case for $TERM.
23548
23549 * callproc.c (Vinitial_environment): New variable.
23550 (set_initial_environment): Initialize it.
23551 (syms_of_callproc): Declare it.
23552 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
23553 TERM under which a process runs is never related to the TERM in which
23554 Emacs is running.
23555
235562007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23557
23558 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
23559 * s/darwin.h: ... do it here.
23560
235612007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
23562
23563 * lisp.h (set_initial_environment): Rename from set_global_environment.
23564
23565 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
23566 removed by mistake on the multi-tty branch.
23567
23568 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
23569 (Fmodify_frame_parameters): Return a value.
23570
23571 * image.c (png_load): Comment-out var only used in commented-out code.
23572
23573 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
23574 before passing it to mark_object.
23575
23576 * xfaces.c (internal_resolve_face_name): Return a value.
23577 (internal_resolve_face_name, resolve_face_name_error): Comment out.
23578
23579 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
23580 (x_icon): Comment-out var only used in commented-out code.
23581
235822007-08-29 Romain Francoise <romain@orebokech.com>
23583
23584 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
23585 QUIT hasn't been provided.
23586
235872007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
23588
23589 * callproc.c (child_setup, getenv_internal): Use the
23590 display-environment-variable and term-environment-variable frame params.
23591 (set_initial_environment): Initialise Vprocess_environment.
23592
23593 * config.in: Disable multi-keyboard support on a mac.
23594
23595 * frame.c (Qterm_environment_variable)
23596 (Qdisplay_environment_variable): New variables.
23597 (syms_of_frame): Intern and staticpro them.
23598 (Fmake_terminal_frame): Disable output method test.
23599
23600 * frame.h: Declare them here.
23601
23602 * macfns.c (x_set_mouse_color): Get rif from the frame.
23603 (x_set_tool_bar_lines): Don't use updating_frame.
23604 (mac_window): Add 2 new parameters for consistency with other systems.
23605 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
23606 frame parameters following what is done in X11 and w32. Don't use
23607 FRAME_MAC_DISPLAY_INFO.
23608 (Fx_open_connection, start_hourglass): Remove window-system check.
23609 (x_create_tip_frame): Get the keyboard from the terminal.
23610
23611 * macmenu.c: Reorder includes.
23612 (Fx_popup_menu): Use terminal specific mouse_position_hook.
23613
23614 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
23615 terminal parameter.
23616 (x_clear_frame): Add a frame parameter.
23617 (note_mouse_movement): Get rif from the frame.
23618 (mac_term_init): Initialize the terminal.
23619 (mac_initialize): Make static and move terminal initialization ...
23620 (mac_create_terminal): ... to this new function.
23621
23622 * macterm.h (struct mac_display_info): Add terminal.
23623 (mac_initialize): Delete declaration.
23624
23625 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
23626
23627 * sysdep.c: Comment out text after #endif.
23628
23629 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
23630 is defined. Better initialize ttys in windows. Use terminal
23631 specific mouse_position_hook.
23632
23633 * termhooks.h (union display_info): Add mac_display_info.
23634
23635 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
23636 Set the default minibuffer frame, window_system and the rest of the
23637 frame parameters following what is done in X11.
23638
23639 * w32term.c (w32_initialize): Make static.
23640
23641 * xselect.c (x_handle_selection_clear): Only access
23642 terminal->kboard when MULTI_KBOARD is defined.
23643
23644 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
23645 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
23646
236472007-08-29 Jason Rumney <jasonr@gnu.org>
23648
23649 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
23650 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
23651
23652 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
23653 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
23654
23655 * keyboard.c (restore_kboard_configuration): Only define when
23656 MULTI_KBOARD defined.
23657
23658 * makefile.w32-in: Update dependancies from Makefile.in.
23659 (OBJ1): Add terminal.$(O)
23660
23661 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
23662 Don't define function body.
23663 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
23664
23665 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
23666
23667 * w32.c (request_sigio, unrequest_sigio): Remove.
23668
23669 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
23670 (w32con_clear_frame, w32con_clear_end_of_line)
23671 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
23672 (w32con_delete_glyphs, w32con_set_terminal_window)
23673 (scroll_line, w32_sys_ring_bell): Add frame arg.
23674 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
23675 Add terminal arg.
23676 (PICK_FRAME): Remove.
23677 (w32con_write_glyphs): Use frame specific terminal coding.
23678 (one_and_only_w32cons): New global variable.
23679 (initialize_w32_display): Use it for storing hooks.
23680 (create_w32cons_output): New function.
23681
23682 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
23683 arg a frame.
23684
23685 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
23686 Set window_system.
23687 (x_set_tool_bar_lines): Don't use updating_frame.
23688 (Fx_create_frame): Set terminal and ref count.
23689 (Fx_open_connection): Remove window-system check.
23690
23691 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
23692
23693 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
23694 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
23695 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
23696 Add frame arg.
23697 (x_delete_terminal, w32_create_terminal): New functions.
23698 (w32_term_init): Create a terminal.
23699 (w32_initialize): Move terminal specific initialization to
23700 w32_create_terminal.
23701
23702 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
23703 (w32_clear_rect, w32_clear_area): Use background from frame.
23704 (w32_display_info): Add terminal.
23705 (w32_sys_ring_bell, x_delete_display): Declare here.
23706
23707 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
23708
23709 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
23710
237112007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
23712
23713 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
23714 Fix get_named_tty calls for the controlling tty.
23715
237162007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
23717
194d44e7 23718 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
23719
237202007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
23721
23722 * term.c (tty_insert_glyphs): Add missing first parameter.
23723
237242007-08-29 Károly Lőrentey <karoly@lorentey.hu>
23725
23726 * buffer.c (Fbuffer_list, Fbury_buffer):
23727 Take frame->buried_buffer_list into account.
23728
23729 * cm.c (current_tty): New variable, for cmputc().
23730 (cmputc): Use it.
23731 (cmcheckmagic): Add tty parameter, look up terminal streams there.
23732 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
23733 (cmgoto): Add tty parameter. Pass it on to calccost().
23734 Use emacs_tputs() instead of tputs().
23735
23736 * cm.h (emacs_tputs): New macro to set current_tty, and then call
23737 tputs().
23738 (current_tty): New variable, for cmputc().
23739 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
23740
23741 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
23742 (internal_condition_case, internal_condition_case_1)
23743 (internal_condition_case_2): Don't abort when x_catching_errors.
23744
23745 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
23746 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
23747 prevent crashes caused by bogus longjmps in read_char.
23748
23749 * keymap.h (Fset_keymap_parent): Add EXFUN.
23750
23751 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
23752 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23753 Remove redundant definition.
23754
23755 * macfns.c (x_set_mouse_color, x_make_gc):
23756 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23757
23758 * w32term.c (x_free_frame_resources):
23759 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23760 (w32_initialize): Use the accessor macros for terminal characteristics.
23761
23762 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
23763 Use the accessor macros for terminal characteristics.
23764 * msdos.c (internal_terminal_init): Use the accessor macros for
23765 terminal characteristics.
23766 (ScreenVisualBell, internal_terminal_init):
23767 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23768
23769 * termopts.h (no_redraw_on_reenter): Declare.
23770
23771 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
23772 (mark_terminals, mark_ttys): Declare.
23773 (Fgarbage_collect): Call them.
23774 (mark_object): Mark buried_buffer_list.
23775
23776 * prefix-args.c: Include stdlib.h for exit.
23777
23778 * syssignal.h: Add comment.
23779
23780 * indent.c: Include stdio.h.
23781
23782 * window.h (Vinitial_window_system): Declare.
23783 (Vwindow_system): Delete declaration.
23784
23785 * fontset.c (Finternal_char_font): Use FRAME_RIF.
23786
23787 * image.c (lookup_image): Don't initialize `c' until the xasserts
23788 have been run.
23789
23790 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
23791 FRAME_FOREGROUND_PIXEL.
23792
23793 * print.c (print_preprocess): Don't lose print_depth levels while
23794 iterating.
23795
23796 * widget.c (update_from_various_frame_slots):
23797 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23798
23799 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
23800 frames.
23801 (window_internal_height): Remove bogus make_number call.
23802 (init_window_once): Call make_terminal_frame with two zero parameters.
23803
23804 * fileio.c (Fread_file_name): Update comment.
23805
23806 * callint.c (Fcall_interactively):
23807 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
23808 Make sure it is correctly unwound.
23809
23810 * xsmfns.c (x_session_close): New function.
23811
23812 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
23813 Delete declarations.
23814
23815 * xterm.h: Remove declaration for x_fully_uncatch_errors.
23816 (x_output): Remove background_pixel and foreground_pixel fields.
23817 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
23818 (x_delete_device, x_session_close): Declare.
23819
23820 * lread.c: Include setjmp.h. Update declaration of `read_char'.
23821 (read_filtered_event): Call `read_char' with a local
23822 `wrong_kboard_jmpbuf'.
23823
23824 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
23825 Don't call single_kboard_state. Use FRAME_RIF.
23826
23827 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
23828 systems.
23829
23830 * lisp.h (set_process_environment): Rename to `set_global_environment'.
23831 (Fframe_with_environment, Fset_input_meta_mode)
23832 (Fset_quit_char): EXFUN.
23833 (x_create_device, tty_output, terminal, tty_display_info): Declare.
23834 (init_sys_modes, reset_sys_modes): Update prototypes.
23835 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
23836
23837 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
23838 Vlocal_key_translation_map, and Vkeyboard_translate_table.
23839 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
23840 Delete declarations.
23841 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
23842 (temporarily_switch_to_single_kboard, tty_read_avail_input):
23843 New declarations.
23844
23845 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
23846 already does that during init_display(). Call syms_of_keymap
23847 before syms_of_keyboard. Call `syms_of_terminal'.
23848 Call set_initial_environment, not set_process_environment.
23849 (shut_down_emacs): Call reset_all_sys_modes() instead of
23850 reset_sys_modes().
23851
23852 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
23853 (internal_resolve_face_name, resolve_face_name_error): New functions.
23854 (resolve_face_name): Protect against loops and errors thrown by Fget.
23855 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
23856 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
23857
23858 * scroll.c: Replace CURTTY() with local variables throughout the
23859 file (where applicable).
23860 (calculate_scrolling, calculate_direct_scrolling)
23861 (scrolling_1, scroll_cost): Use the accessor macros for terminal
23862 characteristics.
23863
23864 * keymap.c (Vfunction_key_map): Remove.
23865 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
23866 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
23867 (Vkey_translation_map): Remove.
23868 (syms_of_keymap): Remove DEFVAR for key-translation-map.
23869 (Fdescribe_buffer_bindings)
23870 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
23871 Update for terminal-local key-translation-map.
23872
23873 * Makefile.in (callproc.o): Update dependencies.
23874 (lisp, shortlisp): Add termdev.elc.
23875 (obj): Add terminal.o.
23876 (terminal.o): Add dependencies.
23877 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
23878 (data.o, fns.o): Add termhooks.h dependency.
23879 (SOME_MACHINE_LISP): Add dnd.elc.
23880 (minibuf.o): Fix typo.
23881 Update dependencies.
23882
23883 * data.c (do_symval_forwarding, store_symval_forwarding)
23884 (find_symbol_value): Use the selected frame's keyboard, not
23885 current_kboard.
23886
23887 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
23888 Vwindow_system.
23889
23890 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
23891 Fmenu_bar_open.
23892 (syms_of_xmenu): Update defsubr.
23893 (mouse_position_for_popup, Fx_popup_menu)
23894 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
23895 (set_frame_menubar, free_frame_menubar)
b97439ce 23896 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
23897 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
23898 an X frame.
23899
23900 * xselect.c (x_own_selection): Abort if not an X frame.
23901 (some_frame_on_display): Check if it is an X frame.
23902 (x_handle_selection_clear): Deal with MULTI_KBOARD.
23903
23904 * coding.c: Include frame.h and termhooks.h.
23905 (terminal_coding, keyboard_coding): Delete.
23906 (Fset_terminal_coding_system_internal)
23907 (Fset_keyboard_coding_system_internal)
23908 (Fkeyboard_coding_system)
23909 (Fterminal_coding_system): Add a terminal parameter.
23910 Get terminal_coding from the terminal.
23911 (init_coding_once): Don't call setup_coding_system here.
23912
23913 * dispextern.h (set_scroll_region, turn_off_insert)
23914 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
23915 (tty_clear_end_of_line, tty_setup_colors)
23916 (delete_tty, updating_frame)
23917 (produce_special_glyphs, produce_glyphs, write_glyphs)
23918 (insert_glyphs): Remove.
23919 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
23920 (tty_turn_off_highlight, get_tty_size): Add declaration.
23921 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
23922
23923 * frame.h (enum output_method): Add output_initial.
23924 (struct x_output): Delete.
23925 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23926 Access foreground_pixel and background_pixel directly from the frame.
23927 (tty_display): Delete.
23928 (struct frame): Add buried_buffer_list, foreground_pixel,
23929 background_pixel and terminal. Delete kboard.
23930 (union output_data): Add tty.
23931 (FRAME_KBOARD): Get the kboard from the terminal.
23932 (FRAME_INITIAL_P): New macro.
23933 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
23934 (Qterm_environment_variable, Qdisplay_environment_variable)
23935 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
23936 New declarations.
23937
23938 * termchar.h (tty_output, tty_display_info): New structures.
23939 (tty_list): Declare.
23940 (FRAME_TTY, CURTTY): New macros.
23941 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
23942 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
23943 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
23944 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
23945
23946 * callproc.c: Include frame.h and termhooks.h, for terminal
23947 parameters.
23948 (add_env): New function.
23949 (child_setup): Use it.
23950 (child_setup, getenv_internal): Handle the new Vprocess_environment.
23951 (getenv_internal): Fix get_terminal_param call.
23952 (Fgetenv_internal, egetenv): Update doc.
23953 (syms_of_callproc): Initialize Vprocess_environment to nil.
23954 Register and initialize them. Remove obsolete defvars. Update doc
23955 strings.
23956 (child_setup): Handle Vlocal_environment_variables.
23957 (getenv_internal): Add terminal parameter.
23958 Handle Vlocal_environment_variables.
23959 (Fgetenv_internal): Add terminal parameter.
23960 (child_setup, getenv_internal, Fgetenv_internal): Store the local
23961 environment in a frame (not terminal) parameter. Update doc strings.
23962 (set_initial_environment): Rename from set_global_environment.
23963 Store Emacs environment in initial frame parameter.
23964
23965 * xdisp.c (redisplay_internal): Update references to
23966 `previous_terminal_frame'.
23967 (display_mode_line, Fformat_mode_line): Replace calls to
23968 `push_frame_kboard' with `push_kboard'.
23969 (get_glyph_string_clip_rects): Add extra parentheses and
23970 braces to prevent compiler warnings.
23971 (calc_pixel_width_or_height): Add xassert to check that the
23972 frame is alive. Don't call `lookup_image' on a termcap frame.
23973 (message2_nolog, message3_nolog, redisplay_internal)
23974 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
23975 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
23976 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
23977 (Fx_display_pixel_width, Fx_display_pixel_height)
23978 (Fx_display_planes, Fx_display_color_cells)
23979 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
23980 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
23981 (Fx_display_backing_store, Fx_display_visual_class)
23982 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
23983 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
23984
23985 * xfns.c (x_set_foreground_color x_set_background_color)
23986 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
23987 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23988 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
23989 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
23990 terminal that is being deleted.
23991 (Fx_create_frame): Use `store_frame_param' to set `window-system'
23992 frame parameter, and make sure it overrides any user-supplied setting.
23993 (Fx_close_connection, Fx_synchronize): Unify argument names with
23994 the rest of the DEFUNs.
23995
23996 * dispnew.c (Fsend_string_to_terminal): Update call to
23997 `get_tty_terminal'.
23998 (Fredraw_frame, Fsend_string_to_terminal)
23999 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
24000 FRAME_TERMCAP_P and FRAME_TTY.
24001 (window_change_signal): Don't believe width/height values that are
24002 impossibly small.
24003 (Vinitial_window_system): Rename from Vwindow_system.
24004 (termscript, Wcm, rif): Delete.
24005
24006 * termhooks.h (struct terminal): New struct containing the
24007 previously global text display hooks and new members NAME,
24008 DELETED and PARAM_ALIST.
24009 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
24010 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
24011 (FRAME_RIF): New macros.
24012 (get_terminal_param, get_device): New declarations.
24013 (termscript): Delete declaration.
24014
24015 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
24016 (XTflash, x_free_frame_resources, x_scroll_bar_create)
24017 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
24018 FRAME_FOREGROUND_PIXEL.
24019 (x_fully_uncatch_errors): Disable definition.
24020 (x_scroll_bar_expose): Fix reference to foreground pixel.
24021 (XTread_socket): Disable loop on all X displays.
24022 (x_delete_terminal): Don't set terminal->deleted and let
24023 delete_terminal delete the frames on the terminal.
24024 (x_delete_display): Doc update to reflect changes in
24025 delete_terminal.
24026 (x_display_info) <terminal>: Move member earlier in the struct.
24027 (deleting_tty): Remove old variable.
24028 (Fsuspend_tty): Call clear_tty_hooks.
24029 (Fresume_tty, init_tty): Call set_tty_hooks.
24030 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
24031 errors on X frames.
24032 (x_catch_errors_unwind): Abort if x_error_message is NULL.
24033 (handle_one_xevent): Initialize `f' to NULL.
24034 (x_delete_terminal, x_create_terminal): New functions.
24035 (XTset_terminal_modes, XTreset_terminal_modes)
24036 (XTread_socket, x_connection_closed, x_term_init)
24037 (x_term_init, x_delete_display): Add terminal parameter.
24038 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
24039 X connections.
24040
24041 * frame.c: Include termchar.h.
24042 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
24043 (Qwindow_system, Qenvironment, Qterm_environment_variable)
24044 (Qdisplay_environment_variable): New vars.
24045 (Fframep): Deal with output_initial.
24046 (Fframe-live-p): Doc fix.
24047 (Fwindow-system): New function.
24048 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
24049 (make_terminal_frame): Don't create frames on a terminal that is
24050 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24051 (store_frame_param): Check for found_for_frame before calling XFRAME.
24052 (Fmake_terminal_frame): Handle NULL tty names correctly.
24053 (syms_of_frame): Enhance doc string of `default-frame-alist'.
24054 (Fdelete_frame): Remove unused variable `count'. Don't allow other
24055 frames to refer to a deleted frame in their 'environment parameter.
24056 (Fframe_with_environment): New function.
24057 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
24058 (get_future_frame_param): New function.
24059 (Fmake_terminal_frame): Use it.
24060 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
24061
24062 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
24063 * sysdep.c (reset_sys_modes): Update for renames.
24064
24065 * keyboard.c (tty_read_avail_input): New function.
24066 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
24067 (syms_of_keyboard): Defsubr them.
24068 (Fset_input_meta_mode, Fset_quit_char): New functions.
24069 (Fset_input_mode): Split to above functions.
24070 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
24071 parameter. Use it in call to `read_char'.
24072 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
24073 Set wrong_kboard_jmpbuf correctly in recursive calls.
24074 Use current_kboard to access Vkeyboard_translate_table.
24075 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
24076 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
24077 Update longjmp invocations. Remember the original current_kboard,
24078 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
24079 changes it. Comment out unnecessary calls to
24080 `record_single_kboard_state' and `any_kboard_state'.
24081 Update recursive calls.
24082 (wrong_kboard_jmpbuf): Remove global variable.
24083 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
24084 Handle deleted interrupted_kboards correctly; that is a legal
24085 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
24086 and read_char calls. Abort if interrupted_kboard died in read_char.
24087 (any_kboard_state, single_kboard_state)
24088 (push_frame_kboard): Remove function.
24089 (pop_kboard): Switch out of single_kboard mode if the kboard has
24090 been deleted. Remove unused variable. Help debugging by not
24091 changing current_kboard unnecessarily. Set current_kboard to the
24092 kboard of the selected frame when the stored kboard object has
24093 been deleted before pop_kboard.
24094 (temporarily_switch_to_single_kboard): Change first parameter to a
24095 frame pointer. Throw an error when caller wants to change kboards
24096 while in single_kboard mode. Don't push_kboard if we weren't in
24097 single kboard state. Don't pop_kboard if we popped into any
24098 kboard state.
24099 (restore_kboard_configuration): Abort if pop_kboard changed the
24100 kboard in single_kboard mode. Call pop_kboard only after setting
24101 up single_kboard mode.
24102 (Frecursive_edit): Switch to single_kboard mode only in nested
24103 command loops.
24104 (cmd_error, command_loop, command_loop_1, timer_check):
24105 Comment out unnecessary call to `any_kboard_state' and
24106 `record_single_kboard_state'.
24107 (delete_kboard): Exit single_kboard mode if we have just deleted
24108 that kboard. Use FRAME_KBOARD.
24109 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
24110 `fatal_error_signal'.
24111 (record_single_kboard_state): Don't push_kboard if we weren't in
24112 single kboard state. Don't pop_kboard if we popped into any
24113 kboard state.
24114 (push_frame_kboard): Rename to push_kboard.
24115 (kbd_buffer_get_event): Use FRAME_TERMINAL.
24116 (read_avail_input): Read input from all terminals.
24117 (mark_kboards): Also mark Vkeyboard_translate_table.
24118 (kbd_buffer_store_event_hold): Simplify condition.
24119 (read_key_sequence): Reinitialize fkey and keytran at each replay.
24120 (Vkeyboard_translate_table): Move to struct kboard.
24121 (init_kboard): Initialize Vkeyboard_translate_table.
24122 (syms_of_keyboard): Use DEFVAR_KBOARD to define
24123 Vkeyboard_translate_table. Update doc strings. Update docs of
24124 local-function-key-map and function-key-map.
24125
24126 * terminal.c: New file.
24127
24128 * term.c: Include errno.h.
24129 (Vring_bell_function, device_list, initial_device)
24130 (next_device_id, ring_bell, update_begin, update_end)
24131 (set_terminal_window, cursor_to, raw_cursor_to)
24132 (clear_to_end, clear_frame, clear_end_of_line)
24133 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
24134 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
24135 (syms_of_term): Move their initialization to terminal.c.
24136 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
24137 (Ftty_display_color_cells)
24138 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
24139 (clear_tty_hooks, set_tty_hooks)
24140 (init_tty, maybe_fatal): New functions.
24141 (Ftty_type): Return nil if terminal is not on a tty instead of
24142 throwing an error. Doc update.
24143 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
24144 Doc update. Initialize new subrs and variables.
24145 (delete_tty): Use terminal->deleted.
24146 (tty_set_terminal_modes): Rename from set_terminal_modes.
24147 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
24148 (set_scroll_region): Rename to `tty_set_scroll_region'.
24149 (turn_on_insert): Rename to `tty_turn_on_insert'.
24150 (turn_off_insert): Rename to `tty_turn_off_insert'.
24151 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
24152 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
24153 (toggle_highligh): Rename to `tty_toggle_highlight'.
24154 (background_highlight): Rename to `tty_background_highlight'.
24155 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
24156 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
24157 (tty_set_scroll_region, tty_background_highlight)
24158 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
24159 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
24160 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
24161 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
24162 Add static modifier.
24163 (tty_reset_terminal_modes, tty_set_terminal_window)
24164 (tty_set_scroll_region, tty_background_highlight)
24165 (tty_highlight_if_desired, tty_cursor_to)
24166 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
24167 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
24168 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
24169 renames.
24170
241712007-08-28 Jan Djärv <jan.h.d@swipnet.se>
24172
24173 * keyboard.c: Qrtl is new.
24174 (parse_tool_bar_item): Handle :rtl keyword.
24175 (syms_of_keyboard): Intern :rtl keyword.
24176
24177 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
24178
24179 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
24180 so no Lisp code is executed.
24181 (file_for_image, find_rtl_image): New functions.
24182 (xg_get_image_for_pixmap): Use file_for_image.
24183 (update_frame_tool_bar): If direction is RTL, use RTL image if
24184 defined. Use Gtk stock images if defined.
24185
241862007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24187
24188 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
24189 for nonexistent or zero-width glyph in composition glyph.
24190
241912007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
24192
24193 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
24194
24195 * xdisp.c (Finvisible_p): New function.
24196 (syms_of_xdisp): defsubr it.
24197
241982007-08-24 Juanma Barranquero <lekktu@gmail.com>
24199
24200 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
24201 Doc fixes.
24202
242032007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24204
24205 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
24206
242072007-08-24 Martin Rudalics <rudalics@gmx.at>
24208
24209 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
24210 whether decoding has modified buffer contents.
24211
242122007-08-24 Jason Rumney <jasonr@gnu.org>
24213
24214 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
24215 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
24216 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
24217 (init_svg_functions) [HAVE_NTGUI]: New function.
24218 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
24219 (svg_load_image): Use them.
24220 (svg_load_image) [HAVE_NTGUI]: Implement background.
24221
242222007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24223
24224 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
24225 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
24226 (LIBX): Remove @RSVG_LIBS@.
24227 (LIBES): Add $(RSVG_LIBS).
24228
24229 * image.c (svg_load_image): Blend with specified background if exists.
24230 Use IMAGE_BACKGROUND. Add Mac OS Support.
24231
24232 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
24233 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
24234 Remove macros.
24235 [MAC_OSX] (socket_callback): Do nothing.
24236 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
24237 ReceiveNextEvent.
24238 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
24239 socket_callback.
24240 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
24241
242422007-08-22 Glenn Morris <rgm@gnu.org>
24243
24244 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
24245
242462007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
24247
24248 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
24249
24250 * image.c: Add support for SVG images. Some additional comments
24251 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
24252 (svg_image_p): New function to test for SVG image.
24253 (svg_load): New function to load SVG image.
24254 (svg_load_image): New function, helper for svg_load.
24255 (Qsvg): New Lisp_object.
24256 (svg_keyword_index): New enum.
24257 (svg_format): New static `image_keyword' struct.
24258 (svg_type): New static `image_type' struct.
24259 (librsvg/rsvg.h): Include it.
24260
242612007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
24262
24263 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
24264
242652007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
24266
24267 * lread.c (Qold_style_backquotes): New var.
24268 (syms_of_lread): Init and staticpro it.
24269 (load_warn_old_style_backquotes): New fun.
24270 (Fload): Use them to warn about old style backquotes.
24271 (end_of_file_error, Fload): Remove unused vars.
24272
24273 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
24274
24275 * lread.c (Vold_style_backquotes): New var.
24276 (syms_of_lread): Init and export it to Elisp.
24277 (read1): Set it when we find an old-style (back)quote.
24278
242792007-08-22 Jason Rumney <jasonr@gnu.org>
24280
24281 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
24282
242832007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
24284
24285 * puresize.h (BASE_PURESIZE): Increase to 1140000.
24286
242872007-08-19 Richard Stallman <rms@gnu.org>
24288
24289 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
24290
242912007-08-19 Andreas Schwab <schwab@suse.de>
24292
24293 * alloc.c (pure): Round PURESIZE up.
24294
242952007-08-17 Jan Djärv <jan.h.d@swipnet.se>
24296
24297 * xterm.c (handle_one_xevent): Remove check that mouse click is in
24298 active frame.
24299
243002007-08-16 Richard Stallman <rms@gnu.org>
24301
24302 * eval.c (Fcommandp): Add parens to clarify.
24303
24304 * minibuf.c (Fall_completions): Use enum for type of table.
24305
24306 * emacs.c (USAGE2): Improve text.
24307
243082007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
24309
24310 * term.c (tty_default_color_capabilities): Declare static
24311 variables in file scope, to avoid HPUX compiler problem.
24312
243132007-08-13 Jan Djärv <jan.h.d@swipnet.se>
24314
24315 * gtkutil.c (update_frame_tool_bar): Use -1 as index
24316 to gtk_toolbar_insert.
24317
243182007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
24319
24320 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
24321
24322 * insdel.c (reset_var_on_error): New fun.
24323 (signal_before_change, signal_after_change):
24324 Use it to reset (after|before)-change-functions to nil in case of error.
24325 Bind inhibit-modification-hooks to t.
24326 Don't bind (after|before)-change-functions to nil while they run.
24327
243282007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24329
24330 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
24331 filling pixmap with stippled background.
24332
243332007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24334
24335 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
24336 Don't use invisible frame as parent window for repositioning.
24337
243382007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
24339
24340 * print.c (new_backquote_output): Rename from old_backquote_output.
24341 (print): Inverse its logic (according to its name) so as to match the
24342 behavior of new_backquote_flag in lread.c.
24343
243442007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24345
24346 * gmalloc.c (posix_memalign): New function.
24347
24348 * macterm.c (frame_highlight, frame_unhighlight): Don't call
24349 ActivateControl/DeactivateControl here.
24350 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
24351 frame-notice-user-settings is non-nil.
24352 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
24353 for kEventParamFMFontStyle.
24354 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
24355 mac_pass_command_to_system and mac_pass_control_to_system here.
24356 (XTread_socket): Call ActivateControl/DeactivateControl here.
24357 (XTread_socket) [TARGET_API_MAC_CARBON]:
24358 Check mac_pass_command_to_system and mac_pass_control_to_system here.
24359 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
24360 for window repositioning.
24361
243622007-08-08 Glenn Morris <rgm@gnu.org>
24363
24364 * Replace `iff' in doc-strings and comments.
24365
243662007-08-07 Chong Yidong <cyd@stupidchicken.com>
24367
24368 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
24369
243702007-08-07 Martin Rudalics <rudalics@gmx.at>
24371
24372 * fileio.c (Finsert_file_contents): Run format-decode and
24373 after_insert_file_functions on entire buffer when REPLACE is
24374 non-nil and inhibit modification_hooks and point_motion_hooks.
24375 For consistency, run after_insert_file_functions iff something
24376 got inserted. Move signal_after_change and update_compositions
24377 after code running after_insert_file_functions. Make sure that
24378 undo_list doesn't record intermediate steps of the decoding process.
24379
243802007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24381
24382 * emacs.c (main)
24383 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
24384 Call malloc_enable_thread on interactive startup.
24385
24386 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
24387 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
24388 [USE_PTHREAD]: Conditionalize with it.
24389 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
24390 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
24391 New functions.
24392
243932007-08-06 Chong Yidong <cyd@stupidchicken.com>
24394
24395 * xdisp.c (redisplay_window): When restoring original buffer
24396 position, make sure it is still valid.
24397
24398 * image.c (png_load): Ignore png-supplied background color.
24399
244002007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24401
24402 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
24403 Use kCFAbsoluteTimeIntervalSince1970.
24404
24405 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
24406 New variable.
24407 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
24408 event loop should be quit.
24409 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
24410 Quit dialog event loop if quit_dialog_event_loop is set.
24411
24412 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
24413 (Selection): New typedef. Use instead of ScrapRef.
24414 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
24415 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
24416 (mac_clear_selection): Rename from clear_scrap.
24417 (get_flavor_type_from_symbol): New argument SEL and subsume function of
24418 scrap_has_target_type. All uses changed.
24419 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
24420 (mac_selection_has_target_p): New functions.
24421 (mac_put_selection_value): Rename from put_scrap_string.
24422 (mac_get_selection_value): Rename from get_scrap_string.
24423 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
24424 (put_scrap_private_timestamp, scrap_has_target_type)
24425 (get_scrap_private_timestamp): Remove functions.
24426 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
24427 (x_own_selection, x_get_local_selection):
24428 Use mac_valid_selection_value_p.
24429 (x_own_selection): Don't use put_scrap_private_timestamp.
24430 Record OWNERSHIP-INFO into Vselection_alist instead.
24431 (x_get_local_selection): Don't check type if request is local.
24432 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
24433 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
24434
244352007-08-04 Jan Djärv <jan.h.d@swipnet.se>
24436
24437 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
24438 add comment explaining why.
24439
244402007-08-03 Richard Stallman <rms@gnu.org>
24441
24442 * fileio.c (Fvisited_file_modtime): Use make_time.
24443
244442007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
24445
24446 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
24447 build.
24448
244492007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
24450
24451 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
24452
244532007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
24454
24455 * puresize.h (BASE_PURESIZE): Increase to 1130000.
24456
244572007-07-30 Richard Stallman <rms@gnu.org>
24458
24459 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
24460
244612007-07-29 Jan Djärv <jan.h.d@swipnet.se>
24462
24463 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
24464
244652007-07-28 Nick Roberts <nickrob@snap.net.nz>
24466
24467 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
24468 remote default-directory.
24469
24470 * buffer.c (mode-line-format): Update doc string.
24471
244722007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24473
24474 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
24475 scroll bar gap.
24476 (x_scroll_bar_create): Set bar->fringe_extended_p.
24477 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
24478 on frame edge. Check fringe background extension. Don't clear
24479 extended fringe background area.
24480
24481 * w32term.h (struct scroll_bar): New member fringe_extended_p.
24482 (w32_fill_area): Enclose multiple statements with do ... while (0).
24483
24484 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
24485 Extend fringe background to scroll bar gap.
24486 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
24487 Set bar->fringe_extended_p.
24488 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24489 Put leftmost/rightmost scroll bars on frame edge. Check fringe
24490 background extension. Don't clear extended fringe background area.
24491
24492 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24493 New member fringe_extended_p.
24494
244952007-07-25 Glenn Morris <rgm@gnu.org>
24496
24497 * Relicense all FSF files to GPLv3 or later.
24498
24499 * COPYING: Switch to GPLv3.
24500
245012007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
24502
24503 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
24504
24505 * data.c (Finteractive_form): Check for the presence of an
24506 `interactive-form' symbol property more thoroughly.
24507
24508 * data.c (Finteractive_form): Use an `interactive-form' property if
24509 present, analogous to the function-documentation property.
24510
245112007-07-24 Jason Rumney <jasonr@gnu.org>
24512
24513 * w32fns.c (x_real_positions): Get real position from OS instead of
24514 calculating it.
24515
245162007-07-23 Jason Rumney <jasonr@gnu.org>
24517
24518 * filelock.c (current_lock_owner): Allow for @ sign in username.
24519
245202007-07-22 Nick Roberts <nickrob@snap.net.nz>
24521
24522 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
24523 remote default-directory.
24524
24525 * buffer.c (mode-line-format): Describe above case in doc string.
24526
245272007-07-20 Eli Zaretskii <eliz@gnu.org>
24528
24529 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
24530 Define if not defined.
24531
245322007-07-18 Jason Rumney <jasonr@gnu.org>
24533
24534 * w32proc.c (w32_executable_type): Handle 64 bit executables.
24535
245362007-07-18 Richard Stallman <rms@gnu.org>
24537
24538 * data.c (Fsetq_default): Doc fix.
24539
24540 * eval.c (Fsetq): Doc fix.
24541
245422007-07-18 Juanma Barranquero <lekktu@gmail.com>
24543
24544 * coding.c (Ffind_operation_coding_system):
24545 * eval.c (For, Fand): Doc fixes.
24546 Reported by Johan Bockgård.
24547
245482007-07-18 Jan Djärv <jan.h.d@swipnet.se>
24549
24550 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
24551
24552 * xterm.h: Declare x_ewmh_activate_frame.
24553
24554 * xterm.c (x_ewmh_activate_frame): New function.
24555 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
24556
245572007-07-17 Martin Rudalics <rudalics@gmx.at>
24558
24559 * window.c (Fdisplay_buffer): If largest or LRU window is the
24560 only window, split it even if it is not eligible for splitting.
24561 This restores the original behavior broken by the 2007-07-15
24562 change.
24563
245642007-07-17 Glenn Morris <rgm@gnu.org>
24565
24566 * abbrev.c (abbrev_check_chars): New function.
24567 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
24568 Call abbrev_check_chars to check abbrev characters are word
24569 constituents. Doc fix.
24570
245712007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
24572
24573 * process.c (Fstart_process, Fmake_network_process)
24574 (read_process_output): Fix up last changes.
24575
245762007-07-16 Eli Zaretskii <eliz@gnu.org>
24577
24578 * makefile.w32-in (clean): Don't delete *~.
24579
245802007-07-16 Andreas Schwab <schwab@suse.de>
24581
24582 * window.c (Fdisplay_buffer): Use NILP.
24583 (Fset_window_scroll_bars): Likewise.
24584
245852007-07-15 Martin Rudalics <rudalics@gmx.at>
24586
24587 * window.c (window_min_size_2): New function.
24588 (window_min_size_1, size_window, Fdisplay_buffer)
24589 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
24590 windows without mode- or header-lines when window-min-height is
24591 too small.
24592 (size_window): Reset nodelete_p after testing it, following an
24593 earlier note by Kim F. Storm.
24594 (display_buffer): Do not set split_height_threshold to twice the
24595 value of window_min_height to avoid changing the value of a
24596 customizable variable. Rather explicitly check whether the
24597 height of the window that shall be splitted is at least as large
24598 as split_height_threshold.
24599 (Fwindow_full_width_p): New defun.
24600 (syms_of_window): Defsubr it.
24601
24602 * window.h: Add EXFUN for Fwindow_full_width_p.
24603
246042007-07-14 Jason Rumney <jasonr@gnu.org>
24605
24606 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
24607
246082007-07-14 Richard Stallman <rms@gnu.org>
24609
24610 * eval.c (maybe_call_debugger): New function.
24611 (find_handler_clause): Use maybe_call_debugger.
24612 Call it when the handler says `debug'.
24613 Eliminate DEBUGGER_VALUE_PTR.
24614 (Fsignal): Eliminate debugger_value.
24615 (Qdebug): New variable.
24616 (syms_of_eval): Initialize it.
24617
246182007-07-14 Juanma Barranquero <lekktu@gmail.com>
24619
24620 * eval.c (Fprogn):
24621 * keyboard.c (Ftrack_mouse):
24622 * print.c (Fwith_output_to_temp_buffer):
24623 * window.c (Fsave_window_excursion): Doc fix.
24624
246252007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
24626
24627 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
24628
246292007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
24630
24631 * process.h (struct Lisp_Process): Turn slots infd, outfd,
24632 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
24633 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
24634 read_output_delay, and read_output_skip from Lisp_Objects to ints.
24635 Remove unused encoding_carryover.
24636 * process.c: Adjust all functions accordingly.
24637
246382007-07-12 Richard Stallman <rms@gnu.org>
24639
24640 * term.c: Include unistd.h only if HAVE_UNISTD_H.
24641
246422007-07-11 Jason Rumney <jasonr@gnu.org>
24643
24644 * makefile.w32-in (LIBS): Include OLE32.
24645
24646 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
24647 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
24648
246492007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
24650
24651 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
24652 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
24653 from a Lisp_Object into a bare pointer.
24654 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24655 Adjust the code correspondingly.
24656
24657 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
24658
24659 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
24660 (term_show_mouse_face): Remove unused var `j'.
24661 (handle_one_term_event): Remove unused vars `i' and `j'.
24662 Don't cast return value of ttyname since it's not necessary.
24663
246642007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
24665
24666 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
24667 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
24668
24669 * fns.c (map_char_table): Use an array of int for `indices' rather than
24670 an array of Lisp_Objects (which are only ever integers anyway).
24671 (Fmap_char_table): Update caller.
24672 * lisp.h: Update prototype.
24673 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
24674 * fontset.c (Ffontset_info):
24675 * casetab.c (set_case_table): Update callers.
24676
24677 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
24678
24679 * keymap.c (struct accessible_keymaps_data)
24680 (struct where_is_internal_data): New structures.
24681 (accessible_keymaps_1, where_is_internal_1): Use them to change
24682 interface to adhere to the one used by map_keymap.
24683 (Faccessible_keymaps, where_is_internal): Use map_keymap.
24684 (accessible_keymaps_char_table, where_is_internal_2): Remove.
24685
24686 * keymap.h (map_keymap_function_t): More informative prototype.
24687
246882007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
24689
24690 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
24691 (looking_at_1): Don't change search_regs and last_thing_searched
24692 if `inhibit-changing-match-data' is non-nil.
24693 (string_match_1, search_buffer, set_search_regs): Likewise.
24694 (syms_of_search): Add Lisp level definition for
24695 `inhibit-changing-match-data' and set it to nil.
24696 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
24697 start and end of the match, instead of using values in search_regs.
24698
246992007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
24700
24701 * minibuf.c (Fcompleting_read): New value `confirm-only'
24702 for `require-match'.
24703
247042007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
24705
24706 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
24707 part of the 2007-06-27 change to syms_of_fileio.
24708
247092007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24710
24711 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
24712 Check WINDOWP before using XWINDOW. Consolidate return statements.
24713
247142007-06-27 Richard Stallman <rms@gnu.org>
24715
24716 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
24717
247182007-06-27 Juanma Barranquero <lekktu@gmail.com>
24719
24720 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
24721
247222007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24723
24724 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
24725 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
24726 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
24727 (_free_internal, memalign): Use them.
24728 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
24729 Initialize to PTHREAD_MUTEX_INITIALIZER.
24730 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
24731 (morecore_nolock): Rename from morecore. All uses changed.
24732 Use only nolock versions of internal allocation functions.
24733 (_malloc_internal_nolock, _realloc_internal_nolock)
24734 (_free_internal_nolock): New functions created from
24735 _malloc_internal, _realloc_internal, and _free_internal.
24736 (_malloc_internal, _realloc_internal, _free_internal): Use them.
24737 Copy hook value to automatic variable before its use.
24738 (memalign): Copy hook value to automatic variable before its use.
24739
247402007-06-26 Kenichi Handa <handa@m17n.org>
24741
24742 * coding.c (Ffind_operation_coding_system): Docstring improved.
24743 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
24744
247452007-06-25 David Kastrup <dak@gnu.org>
24746
24747 * keymap.c (Fcurrent_active_maps): Add `position' argument.
24748 (Fwhere_is_internal): Adjust call to `current-active-maps' to
24749 cater for additional parameter.
24750
24751 * keymap.h: Adjust number of parameters to `current-active-maps'.
24752
24753 * doc.c (Fsubstitute_command_keys): Adjust call of
24754 `current-active-maps'.
24755
247562007-06-25 David Kastrup <dak@gnu.org>
24757
24758 * callint.c (Fcall_interactively): Make the parsing of interactive
24759 specs somewhat more readable.
24760
247612007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24762
24763 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
24764 to scroll bar gap also when bitmap fills fringe. Draw only foreground
24765 if extended background has already been filled.
24766
247672007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24768
24769 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
24770 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
24771
24772 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
24773 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
24774 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
24775 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
24776 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
24777 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
24778 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
24779 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
24780 Run timers during dialog popup.
24781 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
24782
247832007-06-21 Jason Rumney <jasonr@gnu.org>
24784
24785 * image.c (convert_mono_to_color_image): Swap fore and background.
24786
247872007-06-20 Jason Rumney <jasonr@gnu.org>
24788
24789 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
24790 (w32_free_bdf_font): Unmap memory not handle.
24791
247922007-06-20 Sam Steingold <sds@gnu.org>
24793
24794 * gmalloc.c (__morecore): Fix the declaration to comply with the
24795 definition.
24796
247972007-06-20 Juanma Barranquero <lekktu@gmail.com>
24798
24799 * w32term.c (w32_delete_display): Remove leftover declaration.
24800 (w32_define_cursor, w32_initialize): Make static.
24801
24802 * w32.c (_wsa_errlist): Fix typo in error message.
24803 (init_environment): Ignore any environment variable from the
24804 registry having a null value.
24805
248062007-06-20 Glenn Morris <rgm@gnu.org>
24807
24808 * Makefile.in (LIBGIF): Default to -lgif.
24809
248102007-06-17 Jason Rumney <jasonr@gnu.org>
24811
24812 * w32menu.c (add_menu_item): Don't use multibyte string functions on
24813 unicode strings.
24814
248152007-06-16 Juanma Barranquero <lekktu@gmail.com>
24816
24817 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
24818 Fix typo in docstring.
24819
248202007-06-16 Eli Zaretskii <eliz@gnu.org>
24821
24822 * w32menu.c (add_menu_item): Escape `&' characters in menu items
24823 and their keybindings.
24824
248252007-06-15 Chong Yidong <cyd@stupidchicken.com>
24826
24827 * composite.c (update_compositions): Fix last fix.
24828
248292007-06-14 Jason Rumney <jasonr@gnu.org>
24830
24831 * w32.c (get_process_times_fn): New function pointer.
24832 (globals_of_w32): Intialize it if present in kernel32.dll.
24833 (w32_get_internal_run_time): New function.
24834
24835 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
24836
248372007-06-14 Kenichi Handa <handa@etlken.m17n.org>
24838
24839 * composite.c (update_compositions): Check the validness of
24840 compositions.
24841
248422007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24843
24844 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
24845 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
24846
24847 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
24848 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
24849
24850 * macgui.h (USE_MAC_TOOLBAR): New define.
24851
24852 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24853 Return immediately unless popup is activated.
24854
24855 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
24856 background to scroll bar gap.
24857 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
24858 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
24859 scroll bars on frame edge. Check fringe background extension.
24860 Don't clear extended fringe background area.
24861 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
24862 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
24863 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
24864 [USE_MAC_TOOLBAR]: New macros.
24865 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
24866 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
24867 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
24868 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
24869 [USE_MAC_TOOLBAR]: New functions.
24870 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
24871 manually if previous repositioning has failed.
24872 (mac_handle_keyboard_event): Use precomputed event kind.
24873 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
24874 as tool bar item click. Handle mouse movement over tool bar items.
24875
24876 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
24877 toolbar_win_gravity.
24878 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
24879 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
24880 Add externs.
24881
24882 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
24883 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
24884
248852007-06-14 Chong Yidong <cyd@stupidchicken.com>
24886
24887 * image.c (search_image_cache): Remove unused variable.
24888
248892007-06-13 Chong Yidong <cyd@stupidchicken.com>
24890
24891 * xfns.c, xmenu.c: Link to xaw3d if available.
24892
248932007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24894
24895 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
24896 frame_foreground and frame_background.
24897
24898 * image.c (lookup_image): Save frame foreground and background colors.
24899 (search_image_cache): Check if saved and current frame colors match.
24900
249012007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
24902
24903 * regex.c (regex_compile): Remove the `regnum' counter.
24904 Use bufp->re_nsub instead. Add support for \(?N:RE\).
24905
249062007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
24907
24908 * term.c: Include intervals.h to declare Fget_text_property.
24909
249102007-06-10 Jason Rumney <jasonr@gnu.org>
24911
24912 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
24913
249142007-06-08 Juanma Barranquero <lekktu@gmail.com>
24915
24916 * callint.c (Fcall_interactively):
24917 * editfns.c (Fdelete_and_extract_region):
24918 * fileio.c (Fread_file_name):
24919 * fns.c (Fmapconcat):
24920 * keyboard.c (cmd_error_internal):
24921 * keymap.c (Fkey_description):
24922 * lread.c (openp):
24923 * minibuf.c (read_minibuf):
24924 * search.c (wordify):
24925 * sunfns.c (sel_read):
24926 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
24927 * xfns.c (x_default_scroll_bar_color_parameter):
24928 * xmenu.c (menu_help_callback):
24929 * xselect.c (Fx_get_atom_name):
24930 * xterm.c (x_term_init): Use empty_unibyte_string.
24931
249322007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
24933
24934 * alloc.c (init_strings): Initialize canonical empty strings.
24935 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
24936 canonical empty string when the requested size is 0.
24937
24938 * emacs.c (empty_unibyte_string): Rename from empty_string.
24939 (empty_multibyte_string): New canonical empty string.
24940 (syms_of_emacs): Don't initialize empty_string.
24941
24942 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
24943 string, if appropriate.
24944 (empty_unibyte_string, empty_multibyte_string): New externs.
24945 (empty_string): Remove extern.
24946
24947 * lread.c (syms_of_lread): Use empty_unibyte_string.
24948
249492007-06-07 Jason Rumney <jasonr@gnu.org>
24950
24951 * s/ms-w32.h: Don't define HAVE_TZNAME.
24952
24953 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
24954
249552007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24956
24957 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
24958
24959 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
24960 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
24961
24962 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24963 Don't call next handler.
24964 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
24965 Remove argument. Install handler to application.
24966 (set_frame_menubar): Don't change deep_p.
24967 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
24968 FRAME_OUTER_TO_INNER_DIFF_Y.
24969 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
24970 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
24971 [HAVE_DIALOGS]: New macros.
24972 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
24973 Use them.
24974 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
24975
24976 * macselect.c [MAC_OSX] (install_service_handler): Rename from
24977 init_service_handler. All callers changed. Return OSStatus value.
24978
24979 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
24980 All callers changed so as not to call SetPortWindowPort.
24981 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
24982 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
24983 mac_draw_string_common.
24984 (mac_draw_image_string_qd): Likewise.
24985 (mac_draw_string_common): Use them. Add INLINE.
24986 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
24987 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
24988 GetGlobalMouse.
24989 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
24990 and FRAME_OUTER_TO_INNER_DIFF_Y.
24991 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
24992 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
24993 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
24994 repositioning window to mac_handle_window_event.
24995 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
24996 saving window location to mac_handle_window_event
24997 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
24998 (install_menu_target_item_handler): Remove argument in extern.
24999 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
25000 Also accept command events.
25001 (do_keystroke): New function created from XTread_socket.
25002 (init_command_handler): Remove functions.
25003 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
25004 and save window location by kEventWindowShowing and kEventWindowHiding
25005 handlers here. Don't call next handler for window state change and
25006 focus events.
25007 (mac_handle_application_event, mac_handle_keyboard_event)
25008 [TARGET_API_MAC_CARBON]: New functions.
25009 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
25010 kEventWindowShowing and kEventWindowHiding events. Move installation
25011 of mouse, font, text input and menu target item handlers to
25012 install_application_handler.
25013 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
25014 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25015 New function.
25016 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25017 Register it.
25018 (XTread_socket) [TARGET_API_MAC_CARBON]:
25019 Consolidate SendEventToEventTarget calls.
25020 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
25021 Move application activation handler to mac_handle_application_event.
25022 Move keyboard handler to mac_handle_keyboard_event.
25023 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
25024 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
25025 init_command_handler. Call install_application_handler.
25026
25027 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
25028 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
25029
250302007-06-07 Glenn Morris <rgm@gnu.org>
25031
25032 * emacs.c (main): Use `emacs-copyright' in --version output.
25033
250342007-06-06 Chong Yidong <cyd@stupidchicken.com>
25035
25036 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
25037
250382007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25039
25040 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
25041
25042 * macgui.h: Replace WindowPtr with WindowRef.
25043
25044 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25045 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25046 Replace ControlHandle with ControlRef.
25047 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
25048
25049 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25050 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25051 Replace ControlHandle with ControlRef.
25052 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
25053 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
25054
25055 * macterm.h (struct scroll_bar): Rename member control_handle_low
25056 and control_handle_high to control_ref_low and control_ref_high.
25057 All uses changed.
25058 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
25059 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
25060 respectively. All uses changed.
25061 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
25062 (install_window_handler, remove_window_handler): Replace WindowPtr
25063 with WindowRef in externs.
25064
250652007-06-05 Juanma Barranquero <lekktu@gmail.com>
25066
25067 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
25068
250692007-06-03 Nick Roberts <nickrob@snap.net.nz>
25070
25071 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
25072
25073 * frame.c (Fmouse_position, Fmouse_pixel_position):
25074 Condition on HAVE_GPM too.
25075
25076 * term.c (term_mouse_highlight): Remove unused variables.
25077 (Fterm_open_connection): Set gpm_zerobased to 1.
25078 (term_mouse_movement, term_mouse_click, handle_one_term_event):
25079 Use zero based co-ordinates.
25080 (handle_one_term_event): Report a drag as mouse movement too.
25081
25082 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
25083
250842007-06-03 Chong Yidong <cyd@stupidchicken.com>
25085
25086 * image.c (search_image_cache): New function. Require background
25087 color match if background color is unspecified in the image spec.
25088 (uncache_image, lookup_image): Use it.
25089
250902007-06-01 Juanma Barranquero <lekktu@gmail.com>
25091
25092 * window.c (Fshrink_window): Reflow docstring.
25093
250942007-06-02 Chong Yidong <cyd@stupidchicken.com>
25095
25096 * Version 22.1 released.
25097
250982007-06-01 Richard Stallman <rms@gnu.org>
25099
25100 * xfns.c (x_encode_text): Add GCPRO.
25101
251022007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25103
25104 * xfns.c (x_set_name_internal): Save encoded name before
25105 x_encode_text in case string data is relocated.
25106
251072007-05-31 Richard Stallman <rms@gnu.org>
25108
25109 * buffer.c (syms_of_buffer): Doc fix.
25110
251112007-05-30 Nick Roberts <nickrob@snap.net.nz>
25112
25113 * sysdep.c (init_sys_modes): Add rather than replace with
25114 O_NONBLOCK.
25115
25116 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
25117 term_mouse_moveto.
25118
25119 * termhooks.h (term_mouse_moveto): New extern.
25120
25121 * term.c (mouse_face_window): Rename...
25122 (Qmouse_face_window): ...to this.
25123 (term_show_mouse_face, term_clear_mouse_face)
25124 (term_mouse_highlight): Use Qmouse_face_window.
25125 (term_mouse_moveto): New function.
25126 (term_mouse_position): Make it work.
25127 (syms_of_term): Uncomment assignment to mouse_position_hook.
25128 Staticpro Qmouse_face_window.
25129
251302007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25131
25132 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
25133 around current_column call.
25134
251352007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
25136
25137 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
25138 * xdisp.c (next_element_from_buffer):
25139 * window.c (delete_window):
25140 * term.c (term_mouse_highlight):
25141 * msdos.c (getdefdir):
25142 * macterm.c (mac_create_bitmap_from_bitmap_data)
25143 (init_font_name_table):
25144 * fns.c (Fsxhash):
25145 * data.c (Fmake_local_variable):
25146 * ccl.c (ccl_driver): Likewise.
25147
251482007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25149
25150 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
25151 Call mac_wakeup_from_rne on window size change.
25152
251532007-05-25 Chong Yidong <cyd@stupidchicken.com>
25154
25155 * image.c (uncache_image): Fix typo.
25156
251572007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
25158
25159 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
25160
251612007-05-22 Richard Stallman <rms@gnu.org>
25162
25163 * xterm.c (x_connection_closed): Remove NO_RETURN.
25164
251652007-05-22 Martin Rudalics <rudalics@gmx.at>
25166
25167 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
25168
251692007-05-21 Chong Yidong <cyd@stupidchicken.com>
25170
25171 * image.c (uncache_image): New function.
25172 (Fimage_refresh): New function.
25173
251742007-05-20 Jan Djärv <jan.h.d@swipnet.se>
25175
25176 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
25177
251782007-05-20 Nick Roberts <nickrob@snap.net.nz>
25179
25180 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
25181 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
25182
251832007-05-20 Nick Roberts <nickrob@snap.net.nz>
25184
25185 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
25186 conditional on [HAVE_GPM_H].
25187
251882007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
25189
25190 * syntax.c (skip_chars): Update syntax-table only after we checked that
25191 the new location is valid.
25192
251932007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25194
25195 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
25196 mac_get_window_bounds.
25197
251982007-05-20 Nick Roberts <nickrob@snap.net.nz>
25199
25200 * Makefile.in (LIBGPM): Allow it to be set from configure.
25201 If set then link Emacs with it.
25202
25203 * config.in: Regenerate.
25204
25205 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
25206 New externs.
25207
25208 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
25209 Include gpm.h.
25210 (handle_one_term_event, term_gpm): New externs.
25211
25212 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
25213 and allow it to be interrupted by SIGIO.
25214
25215 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
25216 (wait_reading_process_output): Wait on gpm_fd too.
25217 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
25218 (add_gpm_wait_descriptor_called_flag): New variable.
25219 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
25220
25221 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
25222 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
25223 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
25224 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
25225 (make_lispy_event): Add case GPM_CLICK_EVENT.
25226 (read_avail_input): Handle mouse input.
25227
25228 * term.c (write_glyphs_with_face): New function.
25229 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
25230 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
25231 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
25232 (mouse_face_face_id, term_gpm, pos_x, pos_y)
25233 (last_mouse_x, last_mouse_y): New variables.
25234 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
25235 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
25236 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
25237 (Fterm_close_connection): New functions.
25238 (term_init): Initialise mouse_face_window.
25239
252402007-05-19 Chong Yidong <cyd@stupidchicken.com>
25241
25242 * xdisp.c (redisplay_window): If first window line is a
25243 continuation line, recompute the new window start instead of
25244 recentering.
25245
252462007-05-18 Glenn Morris <rgm@gnu.org>
25247
25248 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
25249 Suggested by Alfred M. Szmidt <ams@gnu.org>.
25250
252512007-05-17 Glenn Morris <rgm@gnu.org>
25252
25253 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
25254
252552007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25256
25257 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
25258 dead key repeat and up events.
25259
252602007-05-14 Chong Yidong <cyd@stupidchicken.com>
25261
25262 * image.c (pbm_load): Check image size for monochrome pbm.
25263
252642007-05-13 Chong Yidong <cyd@stupidchicken.com>
25265
25266 * xterm.c (XTread_socket): Revert last change.
25267
252682007-05-12 Chong Yidong <cyd@stupidchicken.com>
25269
25270 * image.c (pbm_load): Correctly check image size for greyscale pbm.
25271
25272 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
25273
252742007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25275
25276 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
25277 mixup (YAILOM).
25278
252792007-05-07 Andreas Schwab <schwab@suse.de>
25280
25281 * keymap.c (Flookup_key): Fix typo in last change.
25282
252832007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25284
25285 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
25286 mapping for unibyte strings.
25287
252882007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25289
25290 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
25291 (Fx_popup_dialog) [MAC_OSX]: Likewise.
25292
252932007-04-29 Richard Stallman <rms@gnu.org>
25294
25295 * insdel.c (replace_range): For undo, record insertion first.
25296
252972007-04-29 Andreas Schwab <schwab@suse.de>
25298
25299 * lisp.h (VECSIZE): Use OFFSETOF.
25300
253012007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25302
25303 * xdisp.c (try_window_reusing_current_matrix): Fix number of
25304 disabled lines.
25305
253062007-04-28 Richard Stallman <rms@gnu.org>
25307
25308 * lread.c (read_escape): In a string, \s is always space.
25309
253102007-04-27 Jan Djärv <jan.h.d@swipnet.se>
25311
25312 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
25313
25314 * gtkutil.c (xg_update_menubar, create_menus): Create empty
25315 submenu for menu bar items.
25316
25317See ChangeLog.10 for earlier changes.
25318
25319;; Local Variables:
25320;; coding: utf-8
25321;; add-log-time-zone-rule: t
aac0c6e3
MR
25322;; End:
25323
e3eb1dae 25324 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
25325
25326 This file is part of GNU Emacs.
25327
25328 GNU Emacs is free software: you can redistribute it and/or modify
25329 it under the terms of the GNU General Public License as published by
25330 the Free Software Foundation, either version 3 of the License, or
25331 (at your option) any later version.
25332
25333 GNU Emacs is distributed in the hope that it will be useful,
25334 but WITHOUT ANY WARRANTY; without even the implied warranty of
25335 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25336 GNU General Public License for more details.
25337
25338 You should have received a copy of the GNU General Public License
25339 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
25340
25341;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40