(Fbacktrace): Don't overwrite print-level on exit.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
d4b6d95d
LMI
12010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
2
3 * eval.c (Fbacktrace): Don't overwrite print-level on exit. Also
4 only override Vprint_level if it isn't already bound, and increase
5 the level to 8 to produce more useful backtraces for bug reports.
6
e4b6db12
DN
72010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
8
9 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
10
1becef93
JB
112010-09-30 Juanma Barranquero <lekktu@gmail.com>
12
13 * w32console.c (vga_stdcolor_name): Remove unused function;
14 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
15
df7fcaff
LMI
162010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
17
bac5cef8
LMI
18 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
19 (Fgnutls_boot): Start the handshake.
20 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
21 (Fgnutls_boot): Remove some debugging messages.
22 Change indentation throughout to use the Emacs style.
23 (emacs_gnutls_handshake): Cast the fds to something that's
24 possibly the expected length.
25 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 26
df7fcaff
LMI
27 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
28
29 * process.c (make_process): Set the gnutls_p field to zero by
30 default.
31 (read_process_output): Always call the gnutls_read function if the
32 stream is a gnutls stream.
33 (send_process): Ditto for writes.
34
35 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
36 or write anything until the state is GNUTLS_STAGE_READY.
37 (Fgnutls_boot): Mark the stream as being a gnutls stream.
38
d585695f
EZ
392010-09-29 Eli Zaretskii <eliz@gnu.org>
40
af7ef32d
EZ
41 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
42 NEUTRAL_DIR.
43 (handle_invisible_prop, iterate_out_of_display_property)
44 (next_element_from_buffer): If bidi_it.first_elt is set, call
45 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
46 (Bug#7128)
47
d585695f
EZ
48 * print.c (print_object): Fix format string and argument types for
49 printing a Lisp_Misc_Marker.
50
51 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
52 (load_overlay_strings, get_overlay_strings_1)
53 (get_overlay_strings, forward_to_next_line_start)
54 (back_to_previous_visible_line_start, reseat, reseat_to_string)
55 (get_next_display_element, next_element_from_string)
56 (next_element_from_c_string, next_element_from_buffer)
57 (move_it_vertically_backward, move_it_by_lines, add_to_log)
58 (message_dolog, message_log_check_duplicate, message2_nolog)
59 (message3, message3_nolog, vmessage, set_message, set_message_1)
60 (hscroll_window_tree, text_outside_line_unchanged_p)
61 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
62 (find_last_unchanged_at_beg_row)
63 (find_first_unchanged_at_end_row, row_containing_pos)
64 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
65 (display_count_lines, x_produce_glyphs, note_mouse_highlight): Use
66 EMACS_INT for buffer and string positions.
67
68 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
69 (row_containing_pos): Adjust prototype.
70
71 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
72 (message2_nolog, set_message): Adjust prototypes.
73
a6f3211f
SM
742010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
75
76 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
77 (Fgnutls_boot): Use SDATA.
78 (Fgnutls_handshake): Remove unused var `max_log_level'.
79
e0720500
MA
802010-09-27 Michael Albinus <michael.albinus@gmx.de>
81
11a5af7c 82 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
83 (Bug#7113)
84
d8a4b27a
J
852010-09-27 Jan Djärv <jan.h.d@swipnet.se>
86
42d3022b
J
87 * xgselect.c (xg_select): Clear file descriptors not set from
88 rfds and wfds.
89
d8a4b27a
J
90 * process.c (wait_reading_process_output): Add missing FD_CLR
91 for write_mask (must mirror connect_wait_mask).
92
8ed70bf3
LMI
932010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
94
95 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
96 prefix.
97 (Fgnutls_boot): Use changed process members. Use log level with a
98 function parameter to set it. Bring back Emacs-level debugging
99 messages at log level 1 and 2.
100
101 * process.c (make_process): Initialize gnutls_log_level.
102
103 * process.h: Add gnutls_log_level and rename x509_cred and
104 anon_cred to have the gnutls_ prefix for consistency.
105
106 * gnutls.h (GNUTLS_LOG): Add convenience macro.
107
bedf4aab
JB
1082010-09-27 Juanma Barranquero <lekktu@gmail.com>
109
110 * w32.c (g_b_init_get_sid_identifier_authority)
111 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
112 Remove, not used.
113 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
114 (init_winsock): Remove useless assignment.
115 (open_process_token, get_token_information, lookup_account_sid)
116 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
117 (get_security_descriptor_owner, get_security_descriptor_group)
118 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
119 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
120 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
121 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
122 (unc_volume_file_attributes, convert_from_time_t)
123 (create_toolhelp32_snapshot, process32_first, process32_next)
124 (open_thread_token, impersonate_self, revert_to_self)
125 (get_process_memory_info, get_process_working_set_size)
126 (global_memory_status, global_memory_status_ex, socket_to_fd)
127 (shutdown_handler): Make static.
128
08609ffd
MA
1292010-09-27 Michael Albinus <michael.albinus@gmx.de>
130
131 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
132 (xd_pending_messages): Functions removed.
133 (xd_read_queued_messages): Add parameters fd, *data, for_read in
134 order to be compatible with add_read_fd. Determine bus from data,
135 and call xd_read_message just for this bus.
136 (xd_add_watch): Use xd_read_queued_messages as callback function.
137 Add data.
138
139 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
140
d2e9d0bb
LMI
1412010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
142
143 * gnutls.c (gnutls_log_function): Added more debugging.
ec9f09be 144 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 145
4be9765d
KH
1462010-09-27 Kenichi Handa <handa@m17n.org>
147
148 These changes are to remove restriction on the number of glyphs in
149 one composition.
150
151 * dispextern.h (struct glyph): Change the member "slice" to union.
152 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
153 (GLYPH_SLICE_EQUAL_P): Adjusted for the above change.
154
155 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
156 instead of glyph->slice.
157 (marginal_area_string): Likewise.
158
159 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
160 glyph->u.cmp.
161 (append_composite_glyph): Likewise.
162
163 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
164 glyph->u.cmp.
165 (fill_gstring_glyph_string, x_get_glyph_overhangs)
166 (append_composite_glyph): Likewise.
167 (fill_image_glyph_string): Use glyph->slice.img instead of
168 glyph->slice.
169 (append_glyph, produce_image_glyph, append_stretch_glyph)
170 (note_mouse_highlight): Likewise.
171
3fad2ad2
J
1722010-09-26 Jan Djärv <jan.h.d@swipnet.se>
173
bf05eed6
J
174 * process.c (add_keyboard_wait_descriptor)
175 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
176 (wait_reading_process_output): Don't pass write_mask to select
177 if SELECT_CANT_DO_WRITE_MASK is defined.
178 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 179
3fad2ad2
J
180 * process.h (add_read_fd, delete_read_fd, add_write_fd)
181 (delete_write_fd): Declare.
182
183 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
184 (write_mask): New variable.
185 (max_input_desc): Renamed from max_keyboard_desc.
186 (fd_callback_info): New variable.
70e31436
JB
187 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
188 New functions.
3fad2ad2
J
189 (Fmake_network_process): FD_SET write_mask.
190 (deactivate_process): FD_CLR write_mask.
191 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
192 check_connect removed. check_write is new. Remove references to gpm.
193 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
194 NON_BLOCKING_CONNECT) instead of Connecting.
195 Loop over file descriptors and call callbacks in fd_callback_info
196 if file descriptor is ready for I/O.
197 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
198 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
199 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
200 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
201 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
202 (init_process): Initialize write_mask and fd_callback_info.
203
204 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
205
206 * dbusbind.c: Include process.h.
207 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
208 (xd_read_message_1): New functions.
70e31436
JB
209 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
210 Handle watch for both read and write.
3fad2ad2
J
211 (Fdbus_init_bus): Also register xd_toggle_watch.
212 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
213 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
214 to dbus_connection_flush.
70e31436 215 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
216 Call xd_read_message_1 until status is COMPLETE.
217
dce4c2ac
DN
2182010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
219
220 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
221 (init_tty): Reorder code to reduce the number of #ifdefs.
222 No code changes.
dce4c2ac 223
8af55556
TZ
2242010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
225
226 * process.h: Set up GnuTLS support.
227
228 * process.c (make_process, Fstart_process)
229 (read_process_output, send_process): Set up GnuTLS support for
230 process input/output file descriptors.
231
232 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
233
234 * gnutls.c: The source code for GnuTLS support in Emacs.
235
236 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
237
238 * config.in: Set up GnuTLS support.
239
240 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
241 (obj, LIBES): Set up GnuTLS support.
242
83e245c4
JB
2432010-09-26 Juanma Barranquero <lekktu@gmail.com>
244
245 * w32.c (get_emacs_configuration_options): Fix previous change.
246
d24ec09a
CY
2472010-09-25 Chong Yidong <cyd@stupidchicken.com>
248
249 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
250 alive before using it (Bug#6977).
251
b7bdc47c
LMI
2522010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
253
a952d5f3
LMI
254 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
255
256 * dispextern.h: EMACS_INT/int fixup.
257
258 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
259 fixup.
260
b7bdc47c
LMI
261 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
262
41118bd3
EZ
2632010-09-25 Eli Zaretskii <eliz@gnu.org>
264
2452438f
EZ
265 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
266 (Fselect_window, window_scroll_pixel_based)
267 (window_scroll_line_based, Frecenter, Fset_window_configuration):
268 Use EMACS_INT for buffer positions.
269
270 * textprop.c (validate_interval_range, interval_of)
271 (property_change_between_p, Fadd_text_properties)
272 (set_text_properties_1, Fremove_text_properties)
273 (Fremove_list_of_text_properties, Ftext_property_any)
274 (Ftext_property_not_all, copy_text_properties)
275 (text_property_list, extend_property_ranges)
276 (verify_interval_modification): Use EMACS_INT for buffer
277 positions.
278
f877c546
EZ
279 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
280 for buffer positions.
281
282 * process.c (read_process_output, send_process)
283 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
284 and string positions and size.
285
da43f021
EZ
286 * print.c (print_object, print_string, strout): Use EMACS_INT for
287 string indices.
288
289 * minibuf.c (string_to_object): Use EMACS_INT for string position
290 and size.
291
292 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
293
294 * lread.c <read_from_string_index, read_from_string_index_byte>
295 <read_from_string_limit, readchar_count>: Define EMACS_INT.
296 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
297 buffer positions and string length.
298
41118bd3
EZ
299 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
300 EMACS_INT.
301 (echo_truncate, adjust_point_for_property, read_char)
302 (gen_help_event, make_lispy_event, modify_event_symbol)
303 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
304 for buffer positions and string length.
305
306 * keyboard.h (gen_help_event): Adjust prototype.
307
308 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
309
310 * commands.h <last_point_position>: Declare EMACS_INT.
311
312 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
313 (truncate_echo_area): Accept EMACS_INT argument.
314
315 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
316
317 * lisp.h (truncate_echo_area): Adjust prototype.
318
319 * composite.c (composition_adjust_point): Return EMACS_INT.
320
321 * composite.h (composition_adjust_point): Adjust prototype.
322
ba3033ee
JB
3232010-09-25 Juanma Barranquero <lekktu@gmail.com>
324
325 * process.c (Fmake_network_process): When arg :host is 'local,
326 use address 127.0.0.1, not name "localhost". (Bug#6781)
327
4f3a2f8d
EZ
3282010-09-24 Eli Zaretskii <eliz@gnu.org>
329
5816888b
EZ
330 * indent.c (Fcurrent_indentation, indented_beyond_p)
331 (compute_motion): Use EMACS_INT for buffer position variables.
332
333 * lisp.h (indented_beyond_p): Adjust prototype.
334
335 * buffer.c (overlay_strings): Return EMACS_INT.
336
337 * buffer.h (overlay_strings): Adjust prototype.
338
339 * region-cache.c (pp_cache): Adjust format to arguments.
340
341 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
342 (call_debugger): Use EMACS_INT for specpdl_size related variables.
343 (verror): Use EMACS_INT for size of allocated buffer.
344
ace1712c
EZ
345 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
346 positions.
347
348 * xdisp.c (redisplay_internal, try_window_id)
349 (set_cursor_from_row, find_first_unchanged_at_end_row): Use
350 EMACS_INT for buffer positions.
351
f5276b75 352 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
353
354 * dispnew.c (increment_matrix_positions)
355 (increment_row_positions, copy_glyph_row_contents)
356 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
357 positions.
358
359 * dispextern.h (mode_line_string, marginal_area_string)
360 (increment_matrix_positions, increment_row_positions): Adjust
361 prototypes.
362
363 * data.c (Faref, Faset): Use EMACS_INT for string length and
364 positions.
365
366 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
367 characters to insert.
368
369 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
370 position and size.
371
4f3a2f8d
EZ
372 * syntax.c (scan_words, update_syntax_table)
373 (prev_char_comend_first, back_comment, skip_chars)
374 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars): Use
375 EMACS_INT for buffer and string positions.
376
377 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
378
379 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
380 positions.
381
db063399
LMI
3822010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
383
f0812d35
LMI
384 * scroll.c (calculate_scrolling, line_ins_del)
385 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
386 conversion.
387
f5c7fc27
LMI
388 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
389 (region_cache_backward, region_cache_forward)
390 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
391 conversion.
392
db063399
LMI
393 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
394
395 * eval.c (verror): Fix EMACS_INT/int conversion.
396
07914cd0 397 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
398 (print_preprocess, print_check_string_charset_prop)
399 (print_object): Fix EMACS_INT/int conversion.
400
401 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
402
e6d4aefa
EZ
4032010-09-24 Eli Zaretskii <eliz@gnu.org>
404
69481da7
EZ
405 * callproc.c (Fcall_process): Use EMACS_INT for count of
406 characters read from the subprocess.
407
61bfec98
EZ
408 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
409 positions.
410 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
411 positions.
412
145582a0
EZ
413 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
414 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
415 length.
416 (advance_to_char_boundary, Fset_buffer_multibyte)
417 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
418 (overlay_touches_p, record_overlay_string, overlay_strings)
419 (recenter_overlay_lists, fix_start_end_in_overlays)
420 (modify_overlay, Fmove_overlay, report_overlay_modification)
421 (evaporate_overlays): Use EMACS_INT for buffer positions.
422
423 * lisp.h (fix_start_end_in_overlays, overlay_touches_p): Adjust
424 prototypes.
425
446470a9
EZ
426 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
427 positions.
428
e6d4aefa
EZ
429 * fns.c (Fcompare_strings, Fstring_lessp, concat)
430 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
431 (Fsubstring_no_properties, substring_both, Ffillarray)
432 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
433 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
434 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
435 (Fmd5): Use EMACS_INT for buffer and string positions and length
436 variables and arguments.
437
438 * lisp.h (substring_both): Adjust prototype.
439
eb652396
JB
4402010-09-24 Juanma Barranquero <lekktu@gmail.com>
441
442 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
443 * w32fns.c (clipboard_sequence_fn): Don't declare.
444 (globals_of_w32fns): Don't initialize it.
445
266a86bd 4462010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
447
448 * syntax.c (back_comment): Detect the case where a 1-char comment
449 starter is also the 2nd char of a 2-char comment ender.
450
266a86bd 4512010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
452
453 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
454
40283062
LMI
4552010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
456
db063399
LMI
457 * eval.c (verror): EMACS_INT/int cleanup.
458
faf8b5bc
LMI
459 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
460 unwind_protect more than 2GB worth of functions.
461
462 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
463
40283062
LMI
464 * lisp.h: Have oblookup take EMACS_INT to allow interning big
465 string and avoid compiler warnings.
466 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
467 all users.
468
469 * lread.c (oblookup): EMACS_INT/int cleanup.
470
471 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
472
fe3537c3
EZ
4732010-09-23 Eli Zaretskii <eliz@gnu.org>
474
475 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
476
477 * lisp.h (clip_to_bounds): Adjust prototype.
478
479 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
480
0350982f
LMI
4812010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
482
84c9ce05
LMI
483 * lisp.h: doprnt.c EMACS_INT/int cleanup.
484
485 * doprnt.c (doprnt): EMACS_INT/int cleanup.
486
487 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
488 cleanup.
489
0350982f
LMI
490 * lisp.h: Change the definition of all marker.c functions that
491 take and return buffer stuff to be EMACS_INT instead of int.
492
493 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
494 (buf_charpos_to_bytepos, bytepos_to_charpos)
495 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
496 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
497 for all buffer positions.
498
c50bd0d2
CY
4992010-09-23 Chong Yidong <cyd@stupidchicken.com>
500
501 * intervals.c (traverse_intervals, rotate_right, rotate_left)
502 (split_interval_right, find_interval, next_interval)
503 (delete_node, delete_interval, interval_deletion_adjustment)
504 (adjust_intervals_for_deletion, merge_interval_right)
505 (merge_interval_left, graft_intervals_into_buffer)
506 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
507
508 * intervals.h (traverse_intervals): Update prototype.
509
14162469
EZ
5102010-09-23 Eli Zaretskii <eliz@gnu.org>
511
c098fdb8
EZ
512 * indent.c (compute_motion): Use EMACS_INT for arguments to
513 region_cache_forward.
514
515 * region-cache.c (struct boundary, struct region_cache): Use
516 EMACS_INT for positions.
517 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
518 (delete_cache_boundaries, set_cache_region)
519 (invalidate_region_cache, know_region_cache)
520 (region_cache_forward, region_cache_backward, pp_cache): Use
521 EMACS_INT for buffer positions.
522
523 * region-cache.h (know_region_cache, invalidate_region_cache)
524 (region_cache_forward, region_cache_backward): Adjust prototypes.
525
526 * search.c (string_match_1, fast_c_string_match_ignore_case)
527 (looking_at_1, scan_buffer, scan_newline)
528 (find_next_newline_no_quit, find_before_next_newline)
529 (search_command, trivial_regexp_p, search_buffer, simple_search)
530 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
531 and string positions and length.
532
caefdbe7
EZ
533 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
534 (find_before_next_newline): Adjust prototypes.
c098fdb8 535
29cdc13e
EZ
536 * editfns.c (transpose_markers, update_buffer_properties)
537 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
538 (get_pos_property, Fconstrain_to_field)
539 (Fline_beginning_position, Fline_end_position, Fprevious_char)
540 (Fchar_after, Fchar_before, Finsert_char)
541 (Finsert_buffer_substring, Fcompare_buffer_substrings)
542 (Fsubst_char_in_region, Fformat, Ftranspose_regions): Use
543 EMACS_INT for buffer and string position variables.
c098fdb8 544 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
545
546 * lisp.h (clip_to_bounds): Adjust prototype.
547
e79123aa
EZ
548 * intervals.c (traverse_intervals, rotate_right, rotate_left)
549 (balance_an_interval, split_interval_right, split_interval_left)
550 (find_interval, next_interval, update_interval)
551 (adjust_intervals_for_insertion, delete_node, delete_interval)
552 (interval_deletion_adjustment, adjust_intervals_for_deletion)
553 (offset_intervals, merge_interval_right, merge_interval_left)
554 (graft_intervals_into_buffer, adjust_for_invis_intang)
555 (move_if_not_intangible, get_local_map, copy_intervals)
556 (copy_intervals_to_string, compare_string_intervals)
557 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 558 and for interval tree size.
e79123aa
EZ
559
560 * intervals.h (traverse_intervals, split_interval_right)
561 (split_interval_left, find_interval, offset_intervals)
562 (graft_intervals_into_buffer, copy_intervals)
563 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
564 (update_interval): Adjust prototypes.
565
579c18d0
EZ
566 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
567 Use EMACS_INT for buffer position variables and arguments.
568
569 * composite.c (get_composition_id, find_composition)
570 (run_composition_function, compose_text)
571 (composition_gstring_width, autocmp_chars)
572 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
573 for buffer positions and string length variables and arguments.
574
575 * composite.h (get_composition_id, find_composition, compose_text)
576 (composition_gstring_width): Adjust prototypes.
577
578 * editfns.c (Fformat): Use EMACS_INT for string size variables.
579
580 * xdisp.c (store_mode_line_noprop, display_mode_element): Use
581 EMACS_INT for string positions.
582
583 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
584 position arguments.
585
586 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
587
588 * character.c (parse_str_as_multibyte, str_as_multibyte)
589 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0
EZ
590 (string_count_byte8, string_escape_byte8, c_string_width)
591 (strwidth, lisp_string_width, multibyte_chars_in_text): Use
592 EMACS_INT for string length variables and arguments.
14162469
EZ
593
594 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0
EZ
595 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
596 (c_string_width, strwidth, lisp_string_width): Adjust
14162469
EZ
597 prototypes.
598
579c18d0
EZ
599 * font.c (font_intern_prop): Use EMACS_INT for string length
600 variables.
601
602 * font.c (font_intern_prop): Use EMACS_INT for string length
603 variables.
604
14162469
EZ
605 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
606 variables.
607
608 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
609 (Fmake_string): Protect against too large strings.
610 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
611 (live_misc_p): Use ptrdiff_t instead of int for pointer
612 differences.
613 (string_bytes, check_sblock, check_string_free_list)
614 (allocate_string_data, compact_small_strings, Fmake_string)
615 (Fmake_bool_vector, make_string, make_unibyte_string)
616 (make_multibyte_string, make_string_from_bytes)
617 (make_specified_string_string, Fmake_list, Fmake_vector): Use
618 EMACS_INT for string length variables and arguments.
619 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
620 (Fpurecopy): Use EMACS_INT for string size.
621 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
622 for vector size.
623
624 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
625 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
626 (make_pure_string, string_bytes, check_point_in_composition):
627 Adjust prototypes.
14162469 628
c8a66ab8
EZ
6292010-09-22 Eli Zaretskii <eliz@gnu.org>
630
631 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
632 (check_translation): Use EMACS_INT for buffer positions and
633 length.
634
635 * undo.c (record_marker_adjustment, record_delete)
636 (record_change, record_point, record_insert)
637 (record_property_change, Fprimitive_undo): Use EMACS_INT for
638 buffer positions.
639
640 * lisp.h (record_marker_adjustment, record_delete)
641 (record_change, record_point, record_insert)
642 (record_property_change, Fprimitive_undo): Adjust prototypes.
643
38c54d9d
JB
6442010-09-22 Juanma Barranquero <lekktu@gmail.com>
645 Eli Zaretskii <eliz@gnu.org>
646
647 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
648
413d18e7
EZ
6492010-09-22 Eli Zaretskii <eliz@gnu.org>
650
651 * minibuf.c (Fminibuffer_contents)
652 (Fminibuffer_contents_no_properties)
653 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
654 positions.
655
656 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
657 mark.
658
659 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
660 (allocate_string_data): Accept EMACS_INT for string length.
661
662 * editfns.c (Ffield_string, Ffield_string_no_properties)
663 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
664 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
665 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
666 (Ffield_end): Use EMACS_INT for buffer positions.
667
668 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
669 point with mark.
670
671 * lisp.h (allocate_string_data, make_uninit_string)
672 (make_uninit_multibyte_string, make_buffer_string)
673 (make_buffer_string_both): Adjust prototypes.
674
4b9832a6
CY
6752010-09-22 Chong Yidong <cyd@stupidchicken.com>
676
677 * xml.c: Switch to GNU indentation.
678 (make_dom): Change parse tree format to match xml.el.
679 (Fxml_parse_html_string_internal): Rename from html-parse-string.
680 (Fxml_parse_string_internal): Rename from xml-parse-string.
681
86282aab
KH
6822010-09-22 Kenichi Handa <handa@m17n.org>
683
684 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
685 only if we are not at a composition.
686 (set_iterator_to_next): Give it->end_charpos to
687 composition_compute_stop_pos.
688 (set_iterator_to_next, next_element_from_buffer): Likewise.
689
690 * dispnew.c (buffer_posn_from_coords): Fix position when the
691 current display element is a grapheme cluster in bidi-reordered
692 region.
693
840b985a
AR
6942010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
695
696 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
697 the regions may overlap.
698
5bc88f4b
JB
6992010-09-21 Juanma Barranquero <lekktu@gmail.com>
700
701 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
702
92bc9a36
DN
7032010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
704
d19e096e
DN
705 * emacs.c: Do not include sys/ioctl.h, not needed.
706
92bc9a36
DN
707 * doprnt.c: Do not include stdlib.h, config.h does it.
708 Move #include before macro definition.
709
15f844ac
DN
7102010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
711
48e24408
DN
712 * Makefile.in (temacs): Link using $(CC) not $(LD).
713 (LD_FIRSTFLAG): Define using autoconf.
714 (LD): Remove.
715
65539506
DN
716 Remove HAVE_TERMIOS definitions.
717 * s/usg5-4-common.h (HAVE_TERMIOS):
718 * s/template.h (HAVE_TERMIOS):
719 * s/gnu-linux.h (HAVE_TERMIOS):
720 * s/darwin.h (HAVE_TERMIOS):
721 * s/cygwin.h (HAVE_TERMIOS):
722 * s/bsd-common.h (HAVE_TERMIOS):
723 * s/aix4-2.h (HAVE_TERMIOS):
724 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
725 defined on all non-MS platforms.
726 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
727
15f844ac
DN
728 * xterm.c (xt_action_hook): Use const.
729
7d701334
JB
7302010-09-20 Juanma Barranquero <lekktu@gmail.com>
731
732 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
733 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
734 (gethostname) [!HAVE_SOCKETS]: Remove.
735 (SOCK_REPLACE_HANDLE): Remove macro.
736 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
737 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
738 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
739 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
740
f3ec267a
EZ
7412010-09-18 Eli Zaretskii <eliz@gnu.org>
742
743 * deps.mk (xml.o): Add dependencies.
744
93acd23d
JB
745 * xdisp.c (Fcurrent_bidi_paragraph_direction):
746 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
747
748 * bidi.c (bidi_paragraph_init): Accept an additional argument
749 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
750 search back until a paragraph with a strong directional character
751 is found, and use that to determine paragraph's base direction.
752
753 * dispextern.h (bidi_paragraph_init): Update prototype.
754
69e847be
EZ
7552010-09-17 Eli Zaretskii <eliz@gnu.org>
756
757 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
758 of w32api >= 3.15. (Bug#6989)
759
283357a7
LMI
7602010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
761
762 * process.c (wait_reading_process_output): Don't message about
763 accept-process-output unless the time limit really is zero.
764
4ddb20d6
SM
7652010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
766
767 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
768 int/Lisp_Object mixup).
769
e24ad6dd
J
7702010-09-17 Jan Djärv <jan.h.d@swipnet.se>
771
772 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
773 not HELP.
774
fb0cf781
J
7752010-09-17 Stephen Berman <stephen.berman@gmx.net>
776
777 * frame.c (Ftool_bar_pixel_width): New function to expose tool
778 bar's pixel width to Lisp (Bug#7048).
779
4ddb20d6
SM
7802010-09-14 Juanma Barranquero <lekktu@gmail.com>
781
782 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 783
318a04c6
J
7842010-09-17 Jan Djärv <jan.h.d@swipnet.se>
785
786 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
787 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
788
78a21772
KH
7892010-09-17 Kenichi Handa <handa@m17n.org>
790
791 * ftfont.c (ftfont_check_otf): Fix previous change.
792
fa3f6039
KH
7932010-09-14 Kenichi Handa <handa@m17n.org>
794
795 * ftfont.c (ftfont_check_otf): Fix the case of checking just
796 existence of GSUB or GPOS.
797
2b5491fa
JB
7982010-09-14 Juanma Barranquero <lekktu@gmail.com>
799
800 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
801
c97c655f
LMI
8022010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
803
2b5491fa 804 * xml.c (parse_buffer): Renamed to parse_string(), since that's
c97c655f
LMI
805 what it does.
806 (parse_string): Return nil when the document can't be parsed.
807
6664fc59 8082010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
809
810 * xterm.c (get_current_vm_state): New function.
811 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
812 want_fullscreen so set_wm_state calls are few (Bug#7013).
813 (x_handle_net_wm_state): Move code to get_current_vm_state and
814 call that function.
815
6664fc59 8162010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
817
818 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
819
6664fc59 8202010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
821
822 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
823 we may use designation or locking-shift.
824
6664fc59 8252010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
826
827 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
828 sequence when the source is multibyte.
829
1da70e99
AS
8302010-09-14 Andreas Schwab <schwab@linux-m68k.org>
831
6664fc59
JB
832 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
833 Don't make first argument optional. Doc fix.
1da70e99 834
26632d8d
LMI
8352010-09-14 Leo <sdl.web@gmail.com> (tiny change)
836
837 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
838 parameters for the doc string.
839
21fa8e37
LMI
8402010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
841
842 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
843
5616cc54
SM
8442010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
845
846 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
847 (syms_of_fns): Don't defsubr Sy_or_n_p.
848 * lisp.h: Don't declare Fy_or_n_p.
849 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
850
381408e2
LMI
8512010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
852
853 * xml.c (Fxml_parse_buffer): New function to parse XML files.
854
8552010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
856
857 * xml.c: New file.
858 (Fhtml_parse_buffer): New function to interface to the libxml2
859 html parsing function.
860
733946e7
JB
8612010-09-05 Juanma Barranquero <lekktu@gmail.com>
862
863 * biditype.h: Regenerate.
864
7574650a
AS
8652010-09-04 Andreas Schwab <schwab@linux-m68k.org>
866
867 * nsimage.m (ns_load_image): Check argument types.
868
869 * image.c: Remove all uses of gcpro.
870 (xpm_load): Check all lisp types.
871 (pbm_load): Likewise.
872 (png_load): Likewise.
873 (jpeg_load): Likewise.
874 (tiff_load): Likewise.
875 (gif_load): Likewise.
876 (imagemagick_load_image): Likewise.
877 (imagemagick_load): Likewise.
878 (svg_load): Likewise.
879 (gs_load): Likewise.
880
6e6b8e25
EZ
8812010-09-04 Eli Zaretskii <eliz@gnu.org>
882
883 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't
884 try to reorder grapheme clusters, since LGSTRING should always
885 hold them in the logical order.
886 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
887 return glyph codes in the logical order.
888
dbfe4532
AS
8892010-09-04 Andreas Schwab <schwab@linux-m68k.org>
890
891 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 892 (imagemagick_load_image): Fix type mismatch.
5e5992c2 893 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 894
6d7cc563
JD
8952010-09-02 Jan Djärv <jan.h.d@swipnet.se>
896
897 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
898
899 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
900
901 * xselect.c: Remove declaration of cut-buffer objects and functions.
902 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
903 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
904 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
905 (Fx_rotate_cut_buffers_internal): Remove.
906 (syms_of_xselect): Remove defsubr of above.
907 Remove intern of QCUT_BUFFERn.
908
8f4e9110
SM
9092010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
910
911 * cmds.c (Vblink_paren_function): Remove.
912 (internal_self_insert): Make it insert N chars at a time.
913 Don't call blink-paren-function.
914 (Fself_insert_command): Adjust accordingly.
915 (syms_of_cmds): Don't declare blink-paren-function.
916
d419e1d9
KH
9172010-08-31 Kenichi Handa <handa@m17n.org>
918
919 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
920 characters.
921
922 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
923 (produce_glyphs): Don't set it->char_to_display here.
924 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
925 (produce_special_glyphs): Set temp_it.char_to_display before
926 calling produce_glyphs.
927
928 * xdisp.c (get_next_display_element): Set it->char_to_display
929 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
930 characters.
931 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
932 calling PRODUCE_GLYPHS.
933 (append_space_for_newline): Save and store it->char_to_display.
934 Set it->char_to_display before calling PRODUCE_GLYPHS.
935 (extend_face_to_end_of_line): Set it->char_to_display before
936 calling PRODUCE_GLYPHS.
937 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
938 character to its byte value.
939 (get_char_glyph_code): New function.
940 (produce_stretch_glyph): Set it2.char_to_display too before
941 calling x_produce_glyphs.
942 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
943 non-ASCII characters. Don't set it->char_to_display here.
944 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 945 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 946
b819f760
SM
9472010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
948
949 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
950
07fa68a7
CY
9512010-08-31 Chong Yidong <cyd@stupidchicken.com>
952
953 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
954
cd196f12
SM
9552010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
956
957 * marker.c (Fcopy_marker): Make the first arg optional.
958
49a752bb
KH
9592010-08-30 Kenichi Handa <handa@m17n.org>
960
961 * composite.c (composition_update_it): Fix computing of
962 cmp_it->width.
963
769ae9e1
KH
9642010-08-29 Kenichi Handa <handa@m17n.org>
965
9e69cb05 966 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 967 corresponding bytes.
9e69cb05 968
4520b858
J
9692010-08-29 Jan Djärv <jan.h.d@swipnet.se>
970
971 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
972
fe50eb41
KH
9732010-08-26 Kenichi Handa <handa@m17n.org>
974
975 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
976 on calling composition_compute_stop_pos.
977
f6aa6ec6
KH
9782010-08-25 Kenichi Handa <handa@m17n.org>
979
9dfdbc0a
KH
980 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
981 :otf.
982
f6aa6ec6
KH
983 * composite.c (composition_compute_stop_pos): Don't break
984 composition at PT.
985 (composition_reseat_it): Likewise. Fix calculation of character
986 position starting a composition.
987 (Fcomposition_get_gstring): Don't limit the number of components
988 for automatic composition.
989
ff94e32c
KH
9902010-08-25 Kenichi Handa <handa@m17n.org>
991
992 * composite.c (composition_compute_stop_pos): In forward search,
993 pay attention to the possibility that some character after ENDPOS
994 will be composed with charactrs before ENDPOS.
995
1c409d0b
CY
9962010-08-24 Chong Yidong <cyd@stupidchicken.com>
997
998 * keyboard.c (command_loop_1): Don't clobber primary selection
999 during handle-switch-frame (Bug#6872).
1000
0c372655
MA
10012010-08-23 Michael Albinus <michael.albinus@gmx.de>
1002
1003 * dbusbind.c: Accept UNIX domain sockets as bus address.
1004 (Fdbus_close_bus): New function.
1005 (Vdbus_registered_buses): New variable.
1006 (xd_initialize): Implement string as bus address.
1007 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
1008 (Fdbus_get_unique_name, Fdbus_call_method)
1009 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1010 (Fdbus_method_error_internal, Fdbus_send_signal)
1011 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
1012 check. This is done in xd_initialize_bus. Adapt doc string, if
1013 necessary.
1014 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
1015 Vdbus_registered_buses.
1016 (Vdbus_registered_objects_table): Create hash.
1017
7133b7ee
JL
10182010-08-22 Juri Linkov <juri@jurta.org>
1019
1020 * keyboard.c (Fexecute_extended_command): Move reading a command name
1021 with `completing-read' to a new Elisp function `read-extended-command'.
1022 Call it to read a command to `function' (bug#5364, bug#5214).
1023
198a7a97
CY
10242010-08-22 Chong Yidong <cyd@stupidchicken.com>
1025
1026 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
1027
b0126eac 10282010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
1029
1030 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
1031 instead of SAFE_ALLOCA.
1032
b0126eac 10332010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
1034
1035 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
1036 (Bug#6214).
1037
b0126eac 10382010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
1039
1040 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
1041
b0126eac
CY
10422010-08-22 Jan Djärv <jan.h.d@swipnet.se>
1043
1044 * doc.c (Fsnarf_documentation): Initialize skip_file before
1045 build-files test.
1046
692f3ddc 10472010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 1048
692f3ddc
JB
1049 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
1050 New definitions.
b0126eac
CY
1051 (HAVE_TERMIO): Remove.
1052
5f2f0bc1
EZ
10532010-08-22 Eli Zaretskii <eliz@gnu.org>
1054
b613941b
EZ
1055 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
1056
a583bbef
EZ
1057 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
1058 for w32.
1059
1060 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
1061 it's done in nt/config.nt.
1062
1063 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
1064
5f2f0bc1
EZ
1065 * unexcoff.c (report_error, make_hdr, write_segment)
1066 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
1067 Convert argument lists and prototypes to ANSI C.
1068 (make_hdr, write_segment): Remove unused variables.
1069 (unexec): Remove commented-out line. Initialize `new' to shut up
1070 compiler warnings.
1071
a7ebc409
DN
10722010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
1073
1074 Simplify termio code.
1075 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
1076 HAVE_TERMIO code is obsolete.
1077 Replace HAVE_TERMIOS conditionals with !DOS_NT.
1078 * systty.h: Do not define HAVE_TCATTR.
1079 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
1080 Do not define EMACS_HAVE_TTY_PGRP. Only define
1081 EMACS_GET_TTY_PGRP for !DOS_NT.
1082 * sysdep.c: Include sysselect.h unconditionally. Do not include
1083 sys/ioctl.h and termios.h, systty.h does it. Use
1084 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
1085 (init_baud_rate): Remove HAVE_TERMIO code.
1086 (child_setup_tty): Remove HAVE_TERMIO code.
1087 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
1088 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
1089 (new_ltchars, new_tchars): Remove, unused.
1090 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
1091 code. Remove special casing for __mips__, it was a no-op. Remove
1092 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
1093 (init_sys_modes): Remove HPUX special case.
1094 * process.c: Include stdlib.h unconditionally. Do not include
1095 fcntl.h, systty.h does it. Remove conditional code for
1096 HAVE_SERIAL, it is always true.
1097 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
1098 always true when SIGNALS_VIA_CHARACTERS is true.
1099 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
1100 !WINDOWSNT means HAVE_TERMIOS.
1101 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
1102 conditional, which is true for all HAVE_TERMIOS systems.
1103 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
1104 instead of HAVE_TERMIOS.
1105 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
1106 EMACS_HAVE_TTY_PGRP.
1107 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
1108 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
1109 anyway.
1110
40629f17
EZ
11112010-08-21 Eli Zaretskii <eliz@gnu.org>
1112
1113 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
1114 mirroring pixel positions.
1115
d931da8c
DN
11162010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
1117
b5c76d0c
DN
1118 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
1119 write only.
1120 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
1121 malloc_sbrk_used, nothing uses them.
1122
74815588
DN
1123 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
1124 defined, unconditionally defined in lisp.h.
1125
f5817d1c
DN
1126 * term.c: Do not include <termios.h>, systty.h does it.
1127
d931da8c
DN
1128 * s/unixware.h (HAVE_TCATTR):
1129 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
1130 systty.h defines it when HAVE_TERMIOS is defined.
1131
ff2de6d2 11322010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 1133
b43c883c 1134 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 1135 terminals: add one-character offset for R2L lines.
b43c883c 1136
491a1546
EZ
1137 * emacs.c <emacs_version>: Add a comment regarding
1138 msdos/mainmake.v2's dependency on the syntax of this declaration.
1139
2396cbba
EZ
11402010-08-20 Eli Zaretskii <eliz@gnu.org>
1141
1142 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
1143 position for R2L lines by mirroring the pixel position wrt the
1144 text are box. Improve commentary.
1145
7df6150a
AS
11462010-08-20 Andreas Schwab <schwab@linux-m68k.org>
1147
1148 * image.c (imagemagick_clear_image): Remove debugging output.
1149
a2e5caf7
SM
11502010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1151
1152 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
1153 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
1154 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
1155 self-insert-face.
1156 (syms_of_cmds): Initialize the new vars.
1157
20d60baf
JR
11582010-08-19 Jason Rumney <jasonr@gnu.org>
1159
cc477da7
JR
1160 * w32menu.c (set_frame_menubar): Remove call to undefined function.
1161
20d60baf
JR
1162 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
1163
2c0ac867
J
11642010-08-19 Jan Djärv <jan.h.d@swipnet.se>
1165
1166 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
1167
93352106
EZ
11682010-08-18 Eli Zaretskii <eliz@gnu.org>
1169
1170 * xterm.c (x_draw_bar_cursor):
1171 * w32term.c (x_draw_bar_cursor): If the character under cursor is
1172 R2L, draw the bar cursor on its right rather than on its left.
1173
c785836d
SM
11742010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
1175
0193499f
SM
1176 * eval.c (Fdefmacro): Only obey one declaration.
1177
c785836d
SM
1178 * casefiddle.c (casify_region): Setup gl_state.
1179
9cb728a5
J
11802010-08-18 Jan Djärv <jan.h.d@swipnet.se>
1181
1182 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
1183
e1e18511
J
11842010-08-18 Jan Djärv <jan.h.d@swipnet.se>
1185
1d77b63e 1186 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 1187
64cb6c78
J
11882010-08-18 David De La Harpe Golden <david@harpegolden.net>
1189
1190 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
1191 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
1192 QPRIMARY => NXPrimaryPboard.
1193 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
1194 NXPrimaryPboard => QPRIMARY.
1195 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
1196 NXSecondaryPboard = SecondarySelection.
1197 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
1198
0c9b8993
GM
11992010-08-18 Joakim Verona <joakim@verona.se>
1200
1201 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
1202 defined:
1203 (imagemagick_image_p): New function to test for ImageMagic image.
1204 (imagemagick_load): New function to load ImageMagick image.
1205 (imagemagick_load_image): New function, helper for imagemagick_load.
1206 (imagemagick-types): New function.
1207 (Qimagemagick): New Lisp_object.
1208 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 1209
c3554f68
SM
12102010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
1211
1212 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
1213 is a string.
1214
1ff2e434
J
12152010-08-17 Jan Djärv <jan.h.d@swipnet.se>
1216
1217 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
1218 x_set_tool_bar_position handler.
1219
0cc56427
EZ
12202010-08-17 Eli Zaretskii <eliz@gnu.org>
1221
1222 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
1223 x_set_tool_bar_position handler, needed to support changes from
1224 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
1225
e45a249b
JD
12262010-08-16 Jan Djärv <jan.h.d@swipnet.se>
1227
921242c6
J
1228 * nsselect.m: include keyboard.h for QPRIMARY, remove its
1229 declaration (Bug#6863).
573d150b 1230 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 1231
e45a249b
JD
1232 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
1233
1234 * keyboard.h (QPRIMARY): Declare (Bug#6864).
1235
7c23dd44
CY
12362010-08-16 Chong Yidong <cyd@stupidchicken.com>
1237
1238 * keyboard.c (command_loop_1): Avoid setting selection twice,
1239 since it's done in deactivate-mark as well.
1240 (Vselect_active_regions): Change default to t. Replace `lazy'
1241 with non-default value `only', meaning only set PRIMARY for
1242 temporarily active regions.
1243
1244 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
1245 select-active-regions.
1246
0005830c
J
12472010-08-15 Jan Djärv <jan.h.d@swipnet.se>
1248
1249 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
1250 isn't a string.
1251
603dfc72
AS
12522010-08-15 Andreas Schwab <schwab@linux-m68k.org>
1253
1254 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
1255
c25ce9d0
J
12562010-08-15 Jan Djärv <jan.h.d@swipnet.se>
1257
c3554f68
SM
1258 * keyboard.c (parse_tool_bar_item): malloc buf.
1259 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
1260 new_lbl (Bug#6855).
c25ce9d0 1261
5872c762
EZ
12622010-08-14 Eli Zaretskii <eliz@gnu.org>
1263
b236615c
EZ
1264 * xterm.c (x_draw_stretch_glyph_string):
1265 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
1266 the cursor on the right edge of the stretch glyph.
1267
c3554f68
SM
1268 * xdisp.c (window_box_right_offset, window_box_right):
1269 Fix commentary.
b236615c 1270
5872c762
EZ
1271 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
1272 direction when point is inside a run of whitespace characters.
1273
1274 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
1275
e66f9a1b
JR
12762010-08-14 Jason Rumney <jasonr@gnu.org>
1277
1278 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
1279
79d6f59e
CY
12802010-08-14 Chong Yidong <cyd@stupidchicken.com>
1281
1282 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
1283
1c9b4129
JR
12842010-08-13 Jason Rumney <jasonr@gnu.org>
1285
1286 * w32menu.c (simple_dialog_show): Use unicode message box if available.
1287 (MessageBoxW_Proc): New function typedef.
1288 (unicode-message-box): New function pointer.
1289 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
1290
2b4e6277
J
12912010-08-13 Jan Djärv <jan.h.d@swipnet.se>
1292
1293 * frame.h (Qtool_bar_position): Declare.
1294
1295 * xfns.c (Fx_create_frame): Call x_default_parameter for
1296 Qtool_bar_position.
1297
94c97d85
EZ
12982010-08-13 Eli Zaretskii <eliz@gnu.org>
1299
8ee81892
EZ
1300 * unexcoff.c: Remove the parts used when "emacs" is not defined.
1301 (report_error, report_error_1): Ditto.
1302 (write_segment): Remove "#if 0" unused code.
1303 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
1304 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
1305 (start_of_text): Remove unused function (was used only if NO_REMAP
1306 was NOT defined).
1307
891ef8f7
EZ
1308 * msdos.c (IT_set_face): Fix format string to match argument
1309 types.
1310 (IT_write_glyphs, IT_note_mode_line_highlight)
1311 (IT_set_frame_parameters): Remove unused variables.
1312 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
1313 (IT_set_terminal_modes): Disambiguate expression in if clause.
1314 (Fmsdos_remember_default_colors): Return Qnil.
1315 (IT_set_frame_parameters): Add parens to disambiguate boolean
1316 expression for logging the cursor type to termscript.
1317 (keyboard_layout_list, keypad_translate_map)
1318 (grey_key_translate_map): Add braces in inner initializers.
1319 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
1320 (dos_rawgetc): Remove unused label.
1321 (XMenuActivate): Add braces to remove ambiguous `else'.
1322 (dos_ttraw): Always return a value.
1323 (spawnve): Declare.
1324 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
1325
1326 * dosfns.h (x_set_title): Declare.
1327
1328 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
1329 Remove unused variables.
1330
1331 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
1332 variables.
1333 (init_dosfns): Declare get_lim_data.
1334 (system_process_attributes): Declare Fget_internal_run_time.
1335
38e41e0e
EZ
1336 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
1337 list to be consistent with menu.h.
1338
94c97d85
EZ
1339 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
1340 warnings due to mixing of "char *" and "const char *".
1341
c5683ceb
SM
13422010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1343
1344 Introduce a new comment style "c" flag.
1345 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
1346 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
1347 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
1348 (syntax_prefix_flag_p): New function.
1349 (Fstring_to_syntax): Understand new "c" flag.
1350 (Finternal_describe_syntax_value): Recognize new flag; use the
1351 SYNTAX_FLAGS_* macros.
1352 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
1353 comment style to accomodate the new styles.
1354 (back_comment, forw_comment, Fforward_comment, scan_lists)
1355 (scan_sexps_forward): Update code to obey the new comment style flag.
1356
1357 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
1358
1359 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
1360
7aee76f4
J
13612010-08-11 Jan Djärv <jan.h.d@swipnet.se>
1362
3a46642b
J
1363 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
1364 first.
94dff98f 1365 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
1366
1367 * gtkutil.h (xg_check_special_colors): Declare.
1368
1369 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
1370 (xg_create_frame_widgets): Connect theme name changes to
1371 style_changed_cb.
1372
42ca4633
J
1373 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
1374 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
1375 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 1376 string literal. file is const char*.
42ca4633
J
1377
1378 * xsmfns.c (NOSPLASH_OPT): Change to char[].
1379 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
1380 props. Free them at the end.
1381
1382 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
1383
c5683ceb
SM
1384 * xrdb.c (get_system_app): Make path const and use char *p for
1385 non-const char.
42ca4633
J
1386
1387 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 1388 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
1389 char *.
1390 (button_names): Is const char *.
1391 (xdialog_show): error_name and pane_string is const.
1392
1393 * process.h (synch_process_death): Is const char*.
1394
1395 * w32menu.c (w32_menu_show):
1396 * nsmenu.m (ns_menu_show): error parameter is const char **.
1397
1398 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
1399 is const char **.
1400
1401 * menu.c (Fx_popup_menu): error_name is const.
1402
1403 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
1404 with unsigned char and XtPointer with void *.
1405
1406 * gtkutil.h: Replace widget_value with struct _widget_value.
1407 (enum button_type, struct _widget_value): Remove and use the one from
1408 keyboard.h.
1409
1410 * gtkutil.c (get_utf8_string): Always return an allocated string.
1411 Parameter is const.
1412 (create_dialog, xg_create_one_menuitem, create_menus)
1413 (xg_item_label_same_p, xg_update_menu_item): Free result from
1414 get_utf8_string.
1415 (xg_separator_p, xg_item_label_same_p): label is const.
1416
1417 * font.h (font_open_by_name): Make name const.
1418
1419 * font.c (font_open_by_name): Make name const.
1420
1421 * floatfns.c (matherr): Use a const char* variable for x->name.
1422
1423 * emacs.c (main): Pass char[] to putenv instead of literal.
1424
1425 * callproc.c (synch_process_death): Make const.
1426 (Fcall_process): Make signame const.
1427
9c5bd55a
J
1428 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
1429 (addDisplayItemWithImage): Use const char*.
1430
1431 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
1432 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
1433
1434 * nsfont.m (ns_descriptor_to_entity): Use const char*.
1435
1436 * keyboard.h (_widget_value): name, value and key are const char*.
1437
7aee76f4
J
1438 * unexmacosx.c (unexec_error): Use const char *.
1439
09d93395
DN
14402010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
1441
1442 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 1443 (font_parse_name, font_open_by_name):
09d93395 1444 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 1445 (font_parse_name, font_open_by_name): Remove const.
09d93395 1446
671d409f
AS
14472010-08-09 Andreas Schwab <schwab@linux-m68k.org>
1448
1449 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
1450 definition.
1451
1452 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
1453 * m/amdx86-64.h: Likewise.
1454 * m/arm.h: Likewise.
1455 * m/hp800.h: Likewise.
1456 * m/ia64.h: Likewise.
1457 * m/ibmrs6000.h: Likewise.
1458 * m/ibms390.h: Likewise.
1459 * m/intel386.h: Likewise.
1460 * m/iris4d.h: Likewise.
1461 * m/m68k.h: Likewise.
1462 * m/macppc.h: Likewise.
1463 * m/mips.h: Likewise.
1464 * m/sh3.h: Likewise.
1465 * m/sparc.h: Likewise.
1466 * m/template.h: Likewise.
1467 * m/vax.h: Likewise.
1468 * m/xtensa.h: Likewise.
1469 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
1470 WORDS_BIG_ENDIAN.
1471 * lisp.h: Likewise.
1472 * md5.c: Likewise.
1473 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
1474
8ea90aa3
DN
14752010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
1476
1477 Use const char* instead of char*.
1478 Reduce the number of warnings with -Wwrite-strings.
1479 * xrdb.c (get_environ_db, get_system_name):
1480 * unexelf.c (find_section):
1481 * term.c (string_cost, string_cost_one_line, per_line_cost)
1482 (get_named_tty, init_tty):
1483 * sysdep.c (sys_subshell):
1484 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
1485 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
1486 * search.c (Freplace_match):
1487 * process.c (Fmake_network_process, send_process, init_process):
1488 * lread.c (Fload, init_lread):
1489 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
1490 * keyboard.c (parse_tool_bar_item, struct event_head):
1491 * gtkutil.h (xg_get_font_name):
1492 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
1493 (make_widget_for_menu_item, make_menu_item, create_menus)
1494 (xg_make_tool_item):
1495 * font.c (parse_matrix, font_parse_name):
1496 * floatfns.c (rounding_driver, float_error_fn_name):
1497 * filelock.c (get_boot_time_1, lock_file_1):
1498 * fileio.c (barf_or_query_if_file_exists, check_writable):
1499 * editfns.c (get_system_name, get_operating_system_release)
1500 (Fencode_time, Fset_time_zone_rule):
1501 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
1502 * buffer.c (defvar_per_buffer): Use const.
1503
7815fe19 15042010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 1505
692f3ddc 1506 * charset.c: Include <stdlib.h>.
7a84eee5
KH
1507 (struct charset_sort_data): New struct.
1508 (charset_compare): New function.
692f3ddc 1509 (Fsort_charsets): New function.
7a84eee5
KH
1510 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
1511
1512 * coding.c (decode_coding_iso_2022): Fix checking of dimension
1513 number in CTEXT extended segment.
1514
7815fe19 15152010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
1516
1517 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
1518 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
1519
7815fe19 15202010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
1521
1522 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
1523 (Fhash_table_size): Fix typos in docstrings.
1524 (Fmake_hash_table): Doc fix.
1525
7815fe19 15262010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
1527
1528 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
1529 Doc fix (bug#5625).
1530
7815fe19 15312010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
1532
1533 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
1534 the MSDOS definition.
1535
1b6d8cf0
DN
15362010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
1537
675e2c69
DN
1538 Use const char* instead of char*.
1539 * xterm.c (x_create_toolkit_scroll_bar):
1540 * xfont.c (xfont_list_pattern):
1541 * xfns.c (x_default_scroll_bar_color_parameter)
1542 (xic_create_fontsetname, x_default_font_parameter)
1543 (x_screen_planes):
1544 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
1545 (store_mode_line_string, decode_mode_spec, display_string):
1546 * menu.c (digest_single_submenu):
1547 * keymap.h (initial_define_key, initial_define_lispy_key):
1548 * keymap.c (initial_define_key, initial_define_lispy_key):
1549 * image.c (image_error, image_keyword):
1550 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
1551 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
1552 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
1553 (ftfont_list, ftfont_match):
1554 * frame.c (frame_parm_table):
1555 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1556 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1557 (font_add_log, font_deferred_log):
1558 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1559 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1560 (font_add_log, font_deferred_log):
1561 * emacs.c (argmatch):
1562 * dispextern.h (struct it):
1563 * coding.c (ENCODE_DESIGNATION):
1564 * charset.c (define_charset_internal): Use const.
1565
25717ca1
DN
1566 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
1567
c5683ceb
SM
1568 * xrdb.c: Remove include guard.
1569 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
1570 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
1571 realloc->xrealloc instead of using #defines.
1572
efb41e21
EZ
15732010-08-08 Eli Zaretskii <eliz@gnu.org>
1574
cd21226d 1575 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
1576 * editfns.c (Fline_beginning_position, Fline_end_position):
1577 State in the doc strings that start and end of line are in the
1578 logical order.
cd21226d 1579
efb41e21
EZ
1580 * xdisp.c (display_line): Move the handling of overlay arrow after
1581 the call to find_row_edges. (Bug#6699)
1582
746812d9
CY
15832010-08-07 Chong Yidong <cyd@stupidchicken.com>
1584
1585 * keyboard.c (command_loop_1):
1586 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
1587
9852377f
CY
15882010-08-07 Chong Yidong <cyd@stupidchicken.com>
1589
1590 * insdel.c (prepare_to_modify_buffer): Save active region text to
1591 Vsaved_region_selection.
1592
1593 * xselect.c (QPRIMARY): Move to keyboard.c.
1594
1595 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
1596 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
1597 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 1598
0e9c8657
JB
15992010-08-07 Juanma Barranquero <lekktu@gmail.com>
1600
1601 * alloc.c (lisp_malloc):
1602 * buffer.c (set_buffer_internal, set_buffer_internal_1):
1603 * charset.h (emacs_mule_charset):
1604 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
1605 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
1606 (bitch_at_user):
1607 * lisp.h (Fcheck_coding_system, Fget_text_property)
1608 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
1609 Remove duplicate declarations.
1610
648801d1
DN
16112010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1612
32bc6709
DN
1613 * process.c: Simplify include logic.
1614
3ef1d108
DN
1615 * keyboard.h (quit_char): Add declaration.
1616 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
1617 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
1618 Add declarations.
3ef1d108
DN
1619 * sysdep.c:
1620 * w32.c: Remove the above declarations.
1621
97ec208f
DN
1622 Remove extern declarations in .c files, .h files have them.
1623 * xterm.c:
1624 * xdisp.c:
97ec208f
DN
1625 * msdos.c:
1626 * image.c:
1627 * gtkutil.c:
1628 * fileio.c:
1629 * eval.c: Remove declarations.
1630
94eed851
DN
1631 * frame.c (frame_params): Make const.
1632
36e053eb
DN
1633 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
1634
0e843971
DN
1635 * emacs.c (emacs_copyright, emacs_version): Make static.
1636 (Vinitial_window_system, Vauto_save_list_file_name)
1637 (Vinhibit_redisplay): Remove declarations.
1638 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
1639 for AIX.
1640
648801d1
DN
1641 Use const for some arrays and functions.
1642 * xterm.h (xg_set_icon_from_xpm_data):
1643 * xfns.c (xg_set_icon_from_xpm_data):
1644 * term.c (fkeys):
1645 * keyboard.c (lispy_accent_keys, lispy_function_keys)
1646 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
1647 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
1648 (frame.c frame_parms):
1649 * emacs-icon.h (gnu_xpm_bits):
1650 * callint.c (callint_argfuns): Use const.
1651
8646d999
J
16522010-08-06 Jan Djärv <jan.h.d@swipnet.se>
1653
1654 * sysdep.c: Move include term.h last of includes (Bug#6812).
1655
cb4545ad
EZ
16562010-08-06 Eli Zaretskii <eliz@gnu.org>
1657
1658 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
1659
1660 * msdos.c (IT_display_cursor): Log cursor position on termscript.
1661
1662 * .gdbinit (pgx): Display the avoid_cursor_p flag.
1663
da7e2be6
JB
16642010-08-06 Juanma Barranquero <lekktu@gmail.com>
1665
1666 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
1667
3d608a86
J
16682010-08-06 Jan Djärv <jan.h.d@swipnet.se>
1669
7908fb60
J
1670 * xterm.h (x_get_focus_frame): Declare.
1671
1672 * keyboard.h (poll_for_input_1): Unconditionally declare.
1673
4094bf36
J
1674 * nsterm.h (x_set_menu_bar_lines): Declare.
1675
1676 * window.c: Don't include menu.h, it depends on lots of other .h-files.
1677
3d608a86
J
1678 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
1679
1680 * window.c: Include menu.h.
1681
1682 * unexmacosx.c (print_region_list, print_regions)
1683 (build_region_list, find_emacs_zone_regions)
1684 (unexec_regions_merge, read_load_commands, dump_it)
1685 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
1686
1687 * term.c: Check HAVE_SYS_IOCTL_H.
1688
686b968e 1689 * sysdep.c: Check HAVE_TERM_H.
3d608a86 1690
686b968e 1691 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
1692
1693 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
1694 (ns_ring_bell, ns_defined_color, hide_hourglass)
1695 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
1696 Convert to ANSI C prototypes.
1697 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
1698 before code.
1699
1700 * nsterm.h : Include sysselect.h.
1701 (x_sync, x_get_focus_frame, x_set_mouse_position)
1702 (x_set_mouse_pixel_position, x_make_frame_visible)
1703 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
1704 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
1705 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
1706 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 1707 Declare.
3d608a86
J
1708
1709 * nsmenu.m (popup_activated, name_is_separator)
1710 (syms_of_nsmenu): Convert to ANSI C prototypes.
1711 (runMenuAt): Prototypes and move declarations before code.
1712
1713 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
1714
1715 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
1716 prototypes.
1717
1718 * nsfns.m (have_menus_p, ns_display_info_for_name)
1719 (x_set_cursor_type, ns_appkit_version_str)
1720 (ns_appkit_version_int, ns_do_applescript)
1721 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
1722 (syms_of_nsfns): Convert to ANSI C prototypes.
1723
1724 * menu.h (x_set_menu_bar_line): Declare.
1725 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
1726
1727 * lisp.h (fmod_float): Declare.
1728
1729 * image.c (xpm_scan, xpm_make_color_table_v)
1730 (xpm_put_color_table_v, xpm_get_color_table_v)
1731 (xpm_make_color_table_h, xpm_put_color_table_h)
1732 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
1733 (xpm_load): Convert to ANSI C prototypes.
1734
1735 * emacs.c: Include nsterm.h if HAVE_NS.
1736
1737 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
1738
fce70521
DN
17392010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1740
1741 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
1742 subprocesses, only MSDOS does not define HAVE_SOCKETS.
1743 (socket_options): Use const char* for name.
1744
a11889ab
JB
17452010-08-06 Juanma Barranquero <lekktu@gmail.com>
1746
1747 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
1748
1749 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
1750 Don't declare xmalloc_widget_value and digest_single_submenu.
1751
1752 * w32font.c (Qlatin): Remove declaration.
1753
1754 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
1755
c95b508f 1756 * dired.c (compile_pattern): Restore declaration.
a11889ab 1757
6254cdda
DN
17582010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
1759
04bab72c
DN
1760 Remove extern declarations in .c files, .h files have them.
1761 * data.c:
1762 * dired.c:
1763 * editfns.c:
1764 * filelock.c:
1765 * fns.c:
1766 * font.c:
1767 * fontset.c:
1768 * frame.c:
1769 * fringe.c:
1770 * ftfont.c:
1771 * gtkutil.c:
1772 * indent.c:
1773 * keyboard.c:
1774 * keymap.c:
1775 * lread.c:
1776 * menu.c:
1777 * print.c:
1778 * search.c:
1779 * sound.c:
1780 * window.c:
1781 * xdisp.c:
1782 * xfaces.c:
1783 * xfns.c:
1784 * xfont.c:
1785 * xftfont.c:
1786 * xmenu.c:
1787 * xterm.c: Remove declarations.
1788
dff94ed5
DN
1789 Cleanup syssignal.h.
1790 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
1791 (main_thread): Move down to remove #ifdef.
1792 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
1793 Remove conditional definition following unconditional ones.
1794
99f3388e
DN
1795 * lisp.h: Remove HAVE_SHM code, unused.
1796 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
1797 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
1798 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
1799 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
1800 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
1801 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
1802 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
1803 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
1804 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
1805 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
1806 (Qwindow_scroll_functions, Vafter_load_alist)
1807 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
1808 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
1809 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
1810 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
1811 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
1812 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
1813 (initial_argv, last_nonmenu_event, load_in_progress)
1814 (noninteractive_need_newline, scroll_margin): Add declarations.
1815
1816 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
1817 declarations, menu.h has them.
1818 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
1819 (Vinput_method_function, Qinput_method_function)
1820 (Qevent_symbol_element_mask, last_event_timestamp):
1821 * dispextern.h (Voverflow_newline_into_fringe):
1822 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
1823 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
1824 (syms_of_w32font, syms_of_nsfont):
1825 * fontset.h (find_font_encoding, Qlatin):
1826 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
1827 (Vtool_bar_mode, set_frame_menubar):
1828 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
1829 * xterm.h (Qx_gtk_map_stock):
1830 * keymap.h (meta_prefix_char): Add declarations.
1831
9f5dd6f2
DN
1832 * term.c: Remove dead code.
1833
6254cdda
DN
1834 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
1835 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
1836 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
1837 which is what was there before BSD_PGRPS was removed.
1838
29cf3e20
EZ
18392010-08-05 Eli Zaretskii <eliz@gnu.org>
1840
1841 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
1842
1843 * unexcoff.c: Renamed from unexec.c.
1844
aaa0a19a
SM
18452010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
1846
1847 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
1848
8d1d9587
JB
18492010-08-03 Johan Bockgård <bojohan@gnu.org>
1850
1851 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 1852 (Bug#6744)
8d1d9587 1853
9a747ba6
JD
18542010-08-02 Jan Djärv <jan.h.d@swipnet.se>
1855
4d464ae4
JD
1856 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
1857 to TRUE if depth of screen is < 16.
1858
ac01763e
JD
1859 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
1860 USE_GTK_TOOLTIP.
e0d62a9b
JB
1861 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
1862 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 1863 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
1864 USE_GTK_TOOLTIP.
1865 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
1866
1867 * xterm.h (USE_GTK_TOOLTIP): New define.
1868 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
1869
9a747ba6
JD
1870 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
1871 to Control-D (Bug#6771).
1872
7b0815ba
JB
18732010-08-02 Juanma Barranquero <lekktu@gmail.com>
1874
1875 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
1876 Wording by Drew Adams <drew.adams@oracle.com>.
1877
aa1859f5
J
18782010-08-01 Jan Djärv <jan.h.d@swipnet.se>
1879
1880 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
1881 ttip_lbl.
1882
1883 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
1884 calling gtk_widget_queue_draw.
1885 (x_free_frame_resources): Call xg_free_frame_widgets.
1886
1887 * xfns.c (x_gtk_use_system_tooltips): New variable.
1888 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
1889 new gtkutil tooltip functions to show the tooltip.
1890 (Fx_hide_tip): Call xg_hide_tooltip.
1891 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
1892
1893 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
1894 (xg_show_tooltip, xg_hide_tooltip): Declare.
1895
1896 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
1897 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
1898 New functions.
aa1859f5
J
1899 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
1900 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
1901 Remove code that is commented out.
1902
76417ef4
SM
19032010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
1904
1905 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
1906
16041401
CY
19072010-07-31 Chong Yidong <cyd@stupidchicken.com>
1908
1909 * xselect.c (x_own_selection): Use list4.
1910
2c09a58f
DN
19112010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
1912
1913 * buffer.c (Qwindow): Do not define, already defined in data.c.
1914 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
1915
59df9fdd 19162010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 1917
59df9fdd
JB
1918 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
1919 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
1920 * config.in: Undef HAVE_DIRENT_H.
1c97e857 1921 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 1922 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 1923
1b231651
DN
19242010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1925
1926 Rename s/usg5-4.h -> s/usg5-4-common.h.
1927 * s/usg5-4.h: Rename file to ...
1928 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
1929 * s/unixware.h:
1930 * s/sol2-6.h:
1931 * s/irix6-5.h: Update includes accordingly.
1932
bfeabdc3
JD
19332010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1934
2ebf1083
J
1935 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
1936
bfeabdc3 1937 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
1938 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
1939 Remove toolbar_height.
1940 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
1941 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
1942 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
1943 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
1944
1945 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1946
1947 * xfns.c (x_set_tool_bar_position): New function.
1948 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
1949 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 1950 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
1951
1952 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
1953 and FRAME_TOOLBAR_LEFT_WIDTH.
1954
1955 * gtkutil.h (xg_change_toolbar_position): Declare.
1956
1957 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
1958 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1959 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
1960 (xg_create_frame_widgets): Create a hobox for placing widgets
1961 vertically. Use gtk_box_pack_start.
1962 (xg_height_or_width_changed): Renamed from xg_height_changed.
1963 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
1964 (xg_update_frame_menubar, free_frame_menubar): Change to
1965 xg_height_or_width_changed.
1966 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
1967 size correctly. Remove hardcoded 4, instead use handlebox size -
1968 toolbar size.
1969 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 1970 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
1971 (xg_pack_tool_bar): POS is a new parameter.
1972 Set orientation of tool bar based on pos.
1973 Only make handlebox_widget if NULL.
1974 Check if tool bar goes to vbox or hbox depending on pos.
1975 (xg_update_tool_bar_sizes): New function.
686b968e 1976 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
1977 height, call xg_update_tool_bar_sizes instead.
1978 (free_frame_tool_bar): Remove from hbox or vbox depending on
1979 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
1980 (xg_change_toolbar_position): New function.
1981
1982 * frame.h (struct frame): Add tool_bar_position.
1983 (Qbottom): Declare.
1984
1985 * frame.c (Qtool_bar_position): New variable.
1986 (make_frame): Set tool_bar_position to Qtop.
1987 (frame_parms): Add tool-bar-position.
1988 (x_report_frame_params): Store tool_bar_position.
1989 (x_set_fringe_width): Reset wm size hint after fringe changes.
1990
26469a38
DN
19912010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1992
1993 Make lisp_time_argument declaration work on all systems.
1994 * lisp.h (lisp_time_argument): Move declaration ...
1995 * systime.h (lisp_time_argument): ... here
1996 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
1997
8848b728
JD
19982010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1999
2000 * vm-limit.c (POINTER): Add typedef for it.
2001 (start_of_data): Change return type from POINTER to char *.
2002
2003 * frame.h (Qtty_color_mode): Move declaration out of ifdef
2004 HAVE_WINDOW_SYSTEM.
2005
76fd1ee9
DN
20062010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2007
0441987e
DN
2008 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
2009 Remove reference to __osf__, unused.
2010
56a000c7
DN
2011 * mem-limits.h: Remove duplicated includes.
2012 (NULL): Remove definition, unused.
2013 (POINTER): Remove definition.
2014 (start_of_data): Use char* in prototype, as the function
2015 definition does.
2016
e6cba650
DN
2017 Remove extern declarations from .c files, and them to .h files.
2018 * keyboard.h (Qhelp_echo, waiting_for_input)
2019 (input_available_clear_time, ignore_mouse_drag_p)
2020 (Vdouble_click_time, real_this_command, Vthis_original_command):
2021 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
2022 (Voverriding_local_map_menu_flag):
2023 * lisp.h (Qinteractive_form, use_file_dialog)
2024 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
2025 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
2026 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2027 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
2028 (Qfunction, debug_on_next_call, Qfield)
2029 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
2030 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
2031 (Qfile_directory_p, Qinsert_file_contents)
2032 (Qcompletion_ignore_case, Qcompletion_ignore_case)
2033 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
2034 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
2035 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
2036 (Qminibuffer_prompt)
2037 (Vtemporary_file_directory,char_ins_del_vector, Qface):
2038 * xterm.h (gray_bitmap_width, gray_bitmap_height)
2039 (gray_bitmap_bits, xic_create_fontsetname):
2040 * coding.h (Vtranslation_table_for_input): Add extern declarations.
2041
2042 * xsmfns.c (Vuser_login_name):
2043 * xrdb.c (Vdouble_click_time):
2044 * xfaces.c (xic_create_fontsetname):
2045 * w32select.c (waiting_for_input):
2046 * print.c (minibuffer_auto_raise):
2047 * msdos.c (Qhelp_echo):
2048 * macros.c (real_this_command):
2049 * keymap.c (Voverriding_local_map):
2050 * xterm.c (poll_for_input_1, gray_bitmap_width)
2051 (gray_bitmap_height, gray_bitmap_bits;
2052 * xmenu.c ( Voverriding_local_map)
2053 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
2054 (use_file_dialog, Xt_app_con):
2055 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
2056 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
2057 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
2058 (Qtool_bar_lines, ignore_mouse_drag_p):
2059 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
2060 (Qrear_nonsticky, nconc2):
2061 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
2062 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
2063 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
2064 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
2065 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
2066 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
2067 (gc_in_progress):
2068 * doc.c (Voverriding_local_map, Qremap):
2069 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
2070 (Vcompletion_regexp_list):
2071 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
2072 (Qcompletion_ignore_case):
2073 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
2074 (Vhistory_length, Vthis_original_command, real_this_command)
2075 (Qface, Qminibuffer_prompt, history_delete_duplicates):
2076 * image.c (Qrisky_local_variable):
2077 * fontset.c (QCname):
2078 * fns.c (minibuffer_auto_raise, QCname):
2079 * dispnew.c (char_ins_del_cost):
2080 * composite.c (font_fill_lglyph_metrics):
2081 * cmds.c (Qface, Vtranslation_table_for_input):
2082 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
2083 * ccl.c (charset_unicode):
2084 * callproc.c (Vtemporary_file_directory):
2085 * buffer.c (emacs_strerror): Remove extern declarations.
2086
2087 * data.c (Qwindow): Make non-static, used from other files too.
2088 * frame.c (validate_x_resource_name): Remove shadow definition for i.
2089
76fd1ee9
DN
2090 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
2091 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
2092 * s/usg5-4.h (COFF):
2093 * s/template.h:
2094 * s/msdos.h (COFF, NO_REMAP):
2095 * s/ms-w32.h (NO_REMAP):
2096 * s/hpux10-20.h (NO_REMAP):
2097 * m/sparc.h (SEGMENT_MASK):
2098 * m/m68k.h (NO_REMAP):
2099 * m/intel386.h (SEGMENT_MASK):
2100 * m/arm.h (NO_REMAP):
2101 * m/alpha.h (COFF):
2102 * m/template.h: Remove references to unused defines.
2103
8a52f00a
JD
21042010-07-28 Jan Djärv <jan.h.d@swipnet.se>
2105
2106 * xsettings.c (Ftool_bar_get_system_style): Also check for
2107 Qtext_image_horiz.
2108
2109 * xdisp.c (Qtext_image_horiz): Define.
2110 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 2111 to documentation of tool-bar-style.
8a52f00a
JD
2112
2113 * lisp.h (Qtext_image_horiz): Declare.
2114
2115 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
2116 style text_image_horiz.
2117
89dc303e
DN
21182010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2119
60799703
DN
2120 * emacs.c (Fkill_emacs): Remove return statement.
2121
37254dc1
DN
2122 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
2123 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
2124 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
2125 local extern declarations.
2126
71c7345a
DN
2127 * xmenu.c: Do not included lwlib.h, not needed.
2128
6ba577cb
DN
2129 * m/iris4d.h (XUINT, XSET): Remove, not needed.
2130
fdb183d6
DN
2131 * process.c: Move definitions earlier to minimize #ifdefs.
2132
2133 * xterm.h (x_get_customization_string, x_load_resources)
2134 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
2135 (x_check_errors, x_property_data_to_lisp, defined_color)
2136 (xic_set_xfontset, x_defined_color): Use const.
2137
2138 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
2139 (x_text_icon, x_check_errors, x_connection_closed): Use const.
2140
2141 * xselect.c (selection_data_to_lisp_data)
2142 (x_property_data_to_lisp):
2143 * xrdb.c (x_get_string_resource, file_p)
2144 (x_get_customization_string, magic_file_p, search_magic_path)
2145 (get_system_app, get_user_app, x_load_resources, x_get_resource)
2146 (x_get_string_resource): Use const.
2147
2148 * xfns.c: Include xlwmenu.h when USE_LUCID.
2149 (x_defined_color, xic_set_xfontset): Use const.
2150 (Fx_hide_tip): Remove local extern declaration.
2151
2152 * xfaces.c (Qmouse_face): Remove declaration.
2153 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 2154 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
2155
2156 * xdisp.c (do_mouse_tracking): Remove declaration.
2157 (add_to_log): Use const.
2158
2159 * minibuf.c (Qmouse_face): Remove declaration.
2160
2161 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
2162
2163 * keyboard.h (do_mouse_tracking): Add declaration.
2164
2165 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
2166 (QCdata, QCtype, Qcenter): Remove declarations.
2167
2168 * frame.c (x_get_resource_string, x_get_string_resource)
2169 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2170 (x_default_parameter): Use const.
2171
2172 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
2173 (QCheight, QCsize, QCname): Remove declarations.
2174
2175 * emacs.c (main): Remove local extern declaration.
2176
2177 * editfns.c (region_limit, syms_of_editfns): Remove local extern
2178 declarations.
2179
2180 * dispnew.c: Remove duplicate #include <unistd.h>.
2181 (update_window, update_frame_1, init_display): Remove local extern
2182 declarations.
2183
2184 * dispextern.h (add_to_log): Remove declaration.
2185 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2186 (x_frame_get_and_record_arg, x_default_parameter): Add const.
2187
2188 * dired.c (scmp): Add const.
2189 (directory_files_internal): Remove local extern declaration.
2190
2191 * data.c (Finteractive_form): Use const.
2192
2193 * composite.c (syms_of_composite): Remove local extern declarations.
2194
2195 * charset.c (add_to_log): Remove declaration.
2196
2197 * character.c (strwidth, parse_str_to_multibyte): Add const.
2198
2199 * character.h (strwidth, parse_str_to_multibyte): Likewise.
2200
2201 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
2202
89dc303e 2203 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
2204 (Lisp_Subr): Make doc and intspec constant.
2205 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
2206 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
2207 (QCheight, QCsize, QCname, QCwidth, QCforeground)
2208 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
2209 (display_arg): Add declarations.
89dc303e 2210
0ed082fe 22112010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
2212
2213 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
2214
0ed082fe
JB
2215 * window.c (Fwindow_height): Doc fix (bug#6518).
2216
22172010-07-27 Juanma Barranquero <lekktu@gmail.com>
2218
2219 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
2220
ccaf0336
DN
22212010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
2222
977105dc
DN
2223 * keyboard.c (Ftop_level, Fexit_recursive_edit)
2224 (Fabort_recursive_edit): Remove return statements in NO_RETURN
2225 functions.
2226
f5ada890
DN
2227 * frame.h (Qtty_color_mode): Add declaration.
2228
ccaf0336
DN
2229 * lisp.h (Ftop_level, Fexit_recursive_edit)
2230 (Fabort_recursive_edit): Mark as NO_RETURN.
2231
dfe3c90f
KH
22322010-07-26 Kenichi Handa <handa@m17n.org>
2233
2234 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 2235 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 2236
7d383292
JB
22372010-07-26 Juanma Barranquero <lekktu@gmail.com>
2238
2239 * lread.c (unreadpure, mapatoms_1): Make static.
2240
da31e629
JB
22412010-07-25 Juanma Barranquero <lekktu@gmail.com>
2242
2243 * terminfo.c (tparam): Fix prototype of tparm.
2244
7bfa6d77
AS
22452010-07-25 Andreas Schwab <schwab@linux-m68k.org>
2246
dcc19aac
AS
2247 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
2248 find start of text segment.
2249 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
2250 is defined.
2251
7bfa6d77
AS
2252 * callproc.c (set_initial_environment): Avoid unbalanced braces.
2253
63f9a672
KB
22542010-07-25 Ken Brown <kbrown@cornell.edu>
2255
2256 * vm-limit.c (check_memory_limits): Fix previous change;
2257 accidentally reverted an earlier change.
2258
24933075
KB
22592010-07-25 Ken Brown <kbrown@cornell.edu>
2260
2261 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
2262 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
2263
361358ea
JB
22642010-07-25 Juanma Barranquero <lekktu@gmail.com>
2265
2266 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
2267 * dired.c (opendir, readdir): Fix prototypes.
2268 * editfns.c (w32_get_internal_run_time): Fix prototypes.
2269 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
2270 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
2271 (telldir): Remove declaration.
2272 * ralloc.c (real_morecore, __morecore): Fix prototypes.
2273 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
2274 * syssignal.h (strsignal): Fix prototype.
2275 * term.c (tparam): Fix prototype.
2276 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
2277 (term_get_fkeys): Set inside "#ifndef DOS_NT".
2278 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
2279 and __morecore.
2280 * w32gui.h (XParseGeometry): Fix prototype.
2281 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
2282 * w32term.c (my_set_focus): Declare inside #if 0.
2283 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
2284 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
2285 (drain_message_queue, get_next_msg, post_msg, parse_button)
2286 (ClipboardSequence_Proc): Fix prototypes.
2287 (wait_for_sync): Remove declaration.
2288
630b9592
JB
22892010-07-24 Juanma Barranquero <lekktu@gmail.com>
2290
2291 * w32fns.c (w32_to_x_color): Remove, unused.
2292
6a0d6611
AS
22932010-07-24 Andreas Schwab <schwab@linux-m68k.org>
2294
2295 * lisp.h: Remove leftover P_.
2296
4e8608ff
DN
22972010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
2298
2299 * ecrt0.c, unexalpha.c: Remove files, unused.
2300
c8197983
AS
23012010-07-24 Andreas Schwab <schwab@linux-m68k.org>
2302
2303 * cmds.c (internal_self_insert): Make static.
2304 * lisp.h (internal_self_insert): Remove declaration.
2305
97b372d7
JB
23062010-07-23 Juanma Barranquero <lekktu@gmail.com>
2307
33ac0414
JB
2308 * alloc.c (free_float):
2309 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
2310 * frame.c (delete_frame_handler):
2311 * ralloc.c (reorder_bloc):
2312 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
2313 Remove unused static functions.
2314
94da8397
JB
2315 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
2316 it is called only from NS code.
2317
2e6c8532
JB
2318 * w32term.c (my_set_focus): #ifdef away; it is called only from
2319 "#ifdef 0" code.
2320
97b372d7
JB
2321 * w32fns.c (x_edge_detection):
2322 * xfaces.c (may_use_scalable_font_p):
2323 Remove obsolete static declarations.
2324
7c3320d8
JB
23252010-07-20 Juanma Barranquero <lekktu@gmail.com>
2326
2327 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
2328 (emacs_blocked_realloc, uninterrupt_malloc):
2329 * fringe.c (w32_reset_fringes):
2330 * image.c (convert_mono_to_color_image, lookup_rgb_color)
2331 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
2332 * sound.c (be2hs, do_play_sound):
2333 * vm-limit.c (get_lim_data, ret_lim_data):
2334 * w32term.c (x_free_frame_resources):
2335 * xfaces.c (x_create_gc, x_free_gc):
2336 Convert definitions to standard C.
2337
d5273788
SM
23382010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
2339
2340 * eval.c (Feval, Ffuncall): Use the new names.
2341
2342 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
2343 (DEFUN): Add braces around the union initialisation and use ## to
2344 specify the right union alternative and avoid a cast.
2345
8d16a259
JB
23462010-07-18 Juanma Barranquero <lekktu@gmail.com>
2347
2348 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
2349
3b8eff32
CY
23502010-07-17 Chong Yidong <cyd@stupidchicken.com>
2351
2352 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
2353
499322ce
J
23542010-07-17 Jan Djärv <jan.h.d@swipnet.se>
2355
2356 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
2357 is related to the menu bar (Bug#6499).
a628ad9d 2358 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 2359
f6003da5 23602010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
2361
2362 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
2363
2364 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
2365
2366 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
2367 i.e. don't put back ButtonRelease (Bug#6608).
2368
2369 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
2370 instead of Window. Call xg_event_is_for_menubar when
2371 USE_GTK (Bug#6499).
2372
2373 * gtkutil.h (xg_event_is_for_menubar): Declare.
2374
2375 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
2376
f6003da5 23772010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
2378
2379 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
2380 when it's the same as the old foreground. (Bug#6609)
2381
23243f29
J
23822010-07-16 Jan Djärv <jan.h.d@swipnet.se>
2383
2384 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
2385 widget is non-null (Bug#6645).
2386
2b23d2a6
AS
23872010-07-15 Andreas Schwab <schwab@linux-m68k.org>
2388
01b564ff
AS
2389 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
2390 Convert old-style definition.
2391
2b23d2a6
AS
2392 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
2393 timestamp argument.
2394
c4affd2c
EZ
23952010-07-15 Eli Zaretskii <eliz@gnu.org>
2396
2397 * fringe.c (update_window_fringes): Restore mistakenly reverted
2398 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
2399
cf28cebc
J
24002010-07-14 Jan Djärv <jan.h.d@swipnet.se>
2401
2402 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
2403 (SET_SAVED_KEY_EVENT): Remove (not used).
2404 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
2405 remove size parameter.
2406 (handle_one_xevent): Check popup_activated () for menu for Xt also.
2407 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
2408 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
2409 ButtonRelease.
6b2c4bd9
J
2410 (x_set_window_size_1): scroll_bar_actual_width is always
2411 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
2412
2413 * xdisp.c (pending_menu_activation): Remove extern declaration.
2414 (prepare_menu_bars): Remove setting of pending_menu_activation.
2415
2416 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
2417 (x_activate_menubar): Set popup_activated_flag for Xt also.
2418 Remove setting of pending_menu_activation.
cf28cebc
J
2419 (set_frame_menubar): Remove check of pending_menu_activation.
2420 Declare menubar_size before code. Correct spelling in comment.
2421
f6c1c771
KH
24222010-07-14 Kenichi Handa <handa@m17n.org>
2423
2424 * font.c (font_open_entity): Cancel previous change.
2425 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
2426
20477505
EZ
24272010-07-13 Eli Zaretskii <eliz@gnu.org>
2428
77defa9a
EZ
2429 Remove subprocesses #ifdefs.
2430 * process.c <inhibit_sentinels>: Move to the common part.
2431 (Fwaiting_for_user_input_p): Move to the common part; return nil
2432 if async subprocesses aren't supported.
2433 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
2434 MS-DOS. Remove "#ifdef subprocesses".
2435 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
2436 (gettimeofday): Remove "#ifdef subprocesses".
2437 (wait_without_blocking): Remove function.
2438 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
2439 Remove "#ifdef subprocesses".
2440 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
2441 compiled on MS-DOS.
2442 * callproc.c (Fcall_process) [!MSDOS]: Don't call
2443 wait_for_termination on MS-DOS.
2444 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
2445 initialization of inhibit_sentinels.
2446 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
2447 subprocesses" conditional.
2448 * callproc.c (Fcall_process) [!subprocesses]: Don't call
2449 wait_for_termination, since `buffer' cannot be an integer when
2450 async subprocesses are not supported
2451 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
2452 for ifdefing away the call to Fprocess_status.
2453
20477505
EZ
2454 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
2455 away the entire body of the function.
2456
b3ffc17c
DN
24572010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
2458
01faa934
DN
2459 Remove subprocesses #ifdefs from term.c.
2460 * process.c (add_keyboard_wait_descriptor)
2461 (delete_keyboard_wait_descriptor): Move to common section, do
2462 nothing when subprocesses is not defined.
a628ad9d
JB
2463 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
2464 Remove subprocesses #ifdefs.
01faa934 2465
b3ffc17c
DN
2466 Convert maybe_fatal to standard C.
2467 * lisp.h (verror): Declare.
2468 * eval.c (verror): New function containing the code from ...
2469 (error): ... this. Call verror.
2470 * term.c (vfatal): New function containing the code from ...
2471 (fatal): ... this. Call vfatal.
2472 (maybe_fatal): Convert to standard C, use variable number of
2473 arguments. Declare as non-return.
2474 (init_tty): Fix maybe_fatal call.
2475
0521f580
DN
24762010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2477
2478 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
2479 (_scroll_bar_note_movement): Convert definitions to standard C.
2480 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
2481 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
2482
ebd15611
DN
24832010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2484
2485 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
2486 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
2487 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
2488 (xaw_jump_callback, xaw_scroll_callback)
2489 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
2490 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
2491 definitions to standard C.
2492 * xmenu.c (menubar_id_to_frame, popup_get_selection)
2493 (popup_activate_callback, popup_deactivate_callback)
2494 (menu_highlight_callback, menubar_selection_callback)
2495 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
2496 (free_frame_menubar, popup_selection_callback, as)
2497 (create_and_show_popup_menu, dialog_selection_callback)
2498 (create_and_show_dialog):
2499 * xfns.c (hack_wm_protocols, x_window):
2500 * xfaces.c (x_update_menu_appearance):
2501 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
2502 (char_to_pixel_size, round_size_to_char, get_wm_shell)
2503 (set_frame_size, update_wm_hints, setup_frame_gcs)
2504 (update_various_frame_slots, update_from_various_frame_slots)
2505 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
2506 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
2507 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
2508
de06a2dd
AS
25092010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2510
a628ad9d 2511 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 2512
fc549af9
EZ
25132010-07-12 Eli Zaretskii <eliz@gnu.org>
2514
2515 * process.c (setup_process_coding_systems): Move to the part
2516 shared by non-subprocesses systems, and make its body empty when
2517 subprocesses is not defined.
2518 (close_process_descs): Move to the part shared by non-subprocesses
2519 systems.
1408902e
EZ
2520 (wait_reading_process_output) [!subprocesses]: Convert arg list to
2521 ANSI C.
fc549af9 2522
d5a3eaaf
AS
25232010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2524
2525 * editfns.c (transpose_markers): Convert old-style definition.
2526 * emacs.c (abort, shut_down_emacs, fixup_locale)
2527 (synchronize_system_time_locale)
2528 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
2529 * floatfns.c (extract_float, matherr, init_floatfns)
2530 (syms_of_floatfns): Likewise.
2531 * fns.c (make_hash_table): Likewise.
2532 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
2533 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
2534 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
2535 (ftfont_variation_glyphs): Likewise.
2536 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
2537 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
2538 * lread.c (read_filtered_event): Likewise.
2539 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
2540 * process.c (wait_reading_process_output): Likewise.
2541 * scroll.c (do_line_insertion_deletion_costs): Likewise.
2542 * search.c (search_buffer, boyer_moore): Likewise.
2543 * syntax.c (scan_sexps_forward): Likewise.
2544 * xdisp.c (try_scrolling): Likewise.
2545 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
2546 (face_at_string_position): Likewise.
2547 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
2548 * xselect.c (x_get_window_property, receive_incremental_selection)
2549 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
2550 Likewise.
2551 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
2552
6f704c76
DN
25532010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2554
ded80a25
DN
2555 * callproc.c (child_setup): Remove subprocesses conditional.
2556 Remove code dealing with SET_EMACS_PRIORITY, unused.
2557
49d937f4 2558 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
2559 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
2560
2561 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
2562 (__do_global_dtors, __main): Use void in definition.
2563 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
2564 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
2565 the only users from ...
2566 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
2567 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
2568 (HAVE_VOLATILE): Remove, unused.
2569
6f704c76
DN
2570 Convert more function definitions to standard C.
2571 * xdisp.c (window_box_edges, handle_single_display_spec)
2572 (display_string): Convert definition to standard C.
2573 * scroll.c (do_direct_scrolling, scrolling_1):
2574 * dispnew.c (allocate_matrices_for_frame_redisplay)
2575 (mirrored_line_dance):
2576 * coding.c (code_convert_string):
2577 * charset.c (map_charset_chars):
2578 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
2579 (Fregister_ccl_program, Fregister_code_conversion_map):
2580 * keyboard.c (kbd_buffer_nr_stored): Likewise.
2581 (head_table): Make static and const.
2582
e6cfa7c3
AS
25832010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2584
2585 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
2586 (PROFILING_LDFLAGS): Set from substitution.
2587 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
2588 CFLAGS last.
2589
892dd565
KH
25902010-07-12 Kenichi Handa <handa@m17n.org>
2591
6f2cdcd1
KH
2592 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
2593 (shortlisp): Likewise.
2594
892dd565
KH
2595 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
2596
2597 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
2598 of FONT_ENTITY_INDEX.
2599 (Ffont_get): If KEY is :otf and the font-object doesn't have the
2600 property, get the property value dynamically.
2601 (Ffont_put): Accept font-entity and font-object too.
2602 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
2603 return value changed.
2604 (syms_of_font): Adjusted for the above change.
2605
ae96d47a
AS
26062010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2607
c8fc18ee
AS
2608 * blockinput.h: Remove obsolete comment.
2609
89887d67
AS
2610 * lisp.h: Include <stddef.h>.
2611 (OFFSETOF): Don't define.
2612 (VECSIZE): Use offsetof instead of OFFSETOF.
2613 (PSEUDOVECSIZE): Likewise.
2614 * process.c (conv_sockaddr_to_lisp): Likewise.
2615 * alloc.c: Don't include <stddef.h>.
2616 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
2617
ae96d47a
AS
2618 * process.c: Remove obsolete comment.
2619
635c0aa1
CY
26202010-07-11 Chong Yidong <cyd@stupidchicken.com>
2621
2622 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
2623
a64df650
AS
26242010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2625
8966b757
AS
2626 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
2627 index, rindex.
2628 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
2629 * editfns.c (Fuser_full_name, Fformat): Likewise.
2630 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
2631 * fileio.c (Ffile_symlink_p): Likewise.
2632 * filelock.c (current_lock_owner): Likewise.
2633 * font.c (font_parse_name, font_parse_family_registry): Likewise.
2634 * fontset.c (fontset_pattern_regexp): Likewise.
2635 * lread.c (read1): Likewise.
2636 * sysdep.c (init_system_name): Likewise.
2637 * xfns.c (select_visual): Likewise.
2638 * s/hpux10-20.h (index, rindex): Don't define.
2639 * s/ms-w32.h (index): Likewise.
2640 * s/usg5-4.h: Likewise.
2641
cf237e27
AS
2642 * callproc.c (relocate_fd): Use F_DUPFD if defined.
2643
a8fe7202
AS
2644 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
2645 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
2646 (egetenv): Likewise.
2647 * doprnt.c (doprnt): Likewise.
2648 * editfns.c (set_time_zone_rule, format2): Likewise.
2649 * emacs.c (decode_env_path): Likewise.
2650 * eval.c (signal_error, error): Likewise.
2651 * insdel.c (replace_range_2): Likewise.
2652 * keyboard.c (cmd_error_internal): Likewise.
2653 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
2654 * print.c (write_string, write_string_1, print_error_message):
2655 Likewise.
2656 * vm-limit.c (warn_function, memory_warnings): Likewise.
2657 * xdisp.c (message1, message1_nolog, message_with_string)
2658 (vmessage, message, message_nolog): Likewise.
2659 * emacs.c: Remove duplicate declaration.
2660 * keyboard.h: Likewise.
2661 * lisp.h: Update prototypes.
2662
bb8e180f
AS
2663 * eval.c: Fix indentation problem.
2664
83380e65
AS
2665 * keyboard.c: Include "process.h"
2666
a64df650
AS
2667 * eval.c: Remove obsolete noinline declaration.
2668 * fns.c: Likewise.
2669
6a8033e1
KR
26702010-07-11 Ken Raeburn <raeburn@raeburn.org>
2671
2672 * doprnt.c (doprnt): Take a va_list argument instead of count and
2673 pointer.
2674 * eval.c (error): Change to a standard-C variadic function.
2675 * xdisp.c (vmessage): Renamed from message, made static, and
2676 changed to take a va_list argument.
2677 (message): New variadic wrapper.
2678 (message_nolog): Now a variadic function, calling vmessage.
2679 * lisp.h: Include stdarg.h for va_list.
2680 (doprnt, error, message, message_nolog): Decls updated.
2681
462aa963
EZ
26822010-07-11 Eli Zaretskii <eliz@gnu.org>
2683
2684 * process.c (syms_of_process) <delete-exited-processes>: Define
2685 even if !subprocesses.
2686 (delete_exited_processes): Ditto.
2687
2688 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
2689 (delete_exited_processes): Don't define.
2690
48104462
CY
26912010-07-10 Chong Yidong <cyd@stupidchicken.com>
2692
2693 * frame.c (make_frame): Initialize menu_bar_lines and
2694 tool_bar_lines members.
2695 (make_initial_frame, make_terminal_frame): Initialize
2696 menu_bar_lines using value of menu-bar-mode.
2697
2698 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
2699
f388c88a
EZ
27002010-07-10 Eli Zaretskii <eliz@gnu.org>
2701
2702 * process.c: Reshuffle #include's. Condition some of the global
2703 and static variables on `subprocesses'.
2704 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2705 Leave only one implementation.
2706 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
2707 (kill_buffer_processes, Flist_system_processes)
2708 (Fprocess_attributes, init_process, syms_of_process): Unify the
2709 implementations for with subprocesses and without them.
2710
723f5a07
J
27112010-07-09 Jan Djärv <jan.h.d@swipnet.se>
2712
2713 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
2714 correct size for Motif.
2715 (free_frame_menubar): Call x_set_window_size to update frame size.
2716
2717 * xfns.c (x_window): Set borderWidth to 0 for pane and
2718 EmacsFrame. Frame size calculation is wrong otherwise.
2719
2536a4b7
MA
27202010-07-09 Michael Albinus <michael.albinus@gmx.de>
2721
2722 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
2723 allows to suppress errors when polling in Emacs' main loop.
2724 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
2725 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2726 (Fdbus_method_error_internal, Fdbus_send_signal)
2727 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
2728 (Fdbus_register_method): Use it. (Bug#6579)
2729
5842a27b
DN
27302010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2731
2732 * alloc.c: Convert DEFUNs to standard C.
2733 * buffer.c:
2734 * bytecode.c:
2735 * callint.c:
2736 * callproc.c:
2737 * casefiddle.c:
2738 * casetab.c:
2739 * category.c:
2740 * character.c:
2741 * charset.c:
2742 * chartab.c:
2743 * cmds.c:
2744 * coding.c:
2745 * composite.c:
2746 * data.c:
2747 * dbusbind.c:
2748 * dired.c:
2749 * dispnew.c:
2750 * doc.c:
2751 * dosfns.c:
2752 * editfns.c:
2753 * emacs.c:
2754 * eval.c:
2755 * fileio.c:
2756 * filelock.c:
2757 * floatfns.c:
2758 * fns.c:
2759 * font.c:
2760 * fontset.c:
2761 * frame.c:
2762 * fringe.c:
2763 * image.c:
2764 * indent.c:
2765 * insdel.c:
2766 * keyboard.c:
2767 * keymap.c:
2768 * lread.c:
2769 * macros.c:
2770 * marker.c:
2771 * menu.c:
2772 * minibuf.c:
2773 * msdos.c:
2774 * nsfns.m:
2775 * nsmenu.m:
2776 * nsselect.m:
2777 * print.c:
2778 * process.c:
2779 * search.c:
2780 * sound.c:
2781 * syntax.c:
2782 * term.c:
2783 * terminal.c:
2784 * textprop.c:
2785 * undo.c:
2786 * w16select.c:
2787 * w32console.c:
2788 * w32fns.c:
2789 * w32font.c:
2790 * w32menu.c:
2791 * w32proc.c:
2792 * w32select.c:
2793 * window.c:
2794 * xdisp.c:
2795 * xfaces.c:
2796 * xfns.c:
2797 * xmenu.c:
2798 * xselect.c:
2799 * xsettings.c:
2800 * xsmfns.c: Likewise.
2801
d568829b
EZ
28022010-07-08 Eli Zaretskii <eliz@gnu.org>
2803
2804 * process.c (kbd_is_on_hold, hold_keyboard_input)
2805 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
2806
52214050
J
28072010-07-08 Jan Djärv <jan.h.d@swipnet.se>
2808
2809 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
2810 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
2811 unless USE_LUCID.
2812
313d9eb2
DN
28132010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2814
a628ad9d
JB
2815 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
2816 declaration.
d8825aa3 2817
295d0d8f
DN
2818 Clean up include guards.
2819 * tparam.c: Remove include guards for config.h, string.h and code
2820 that assumes #ifndef emacs.
2821 * termcap.c:
2822 * unexalpha.c:
2823 * sysdep.c:
2824 * filemode.c:
2825 * filelock.c:
2826 * bidi.c: Likewise.
2827
49d9e6b0
DN
2828 Remove prefix-args.c
2829 * prefix-args.c: Remove file.
2830 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
2831 * Makefile.in (temacs${EXEEXT}): Remove references to
2832 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
2833 (mostlyclean): Remove reference to prefix-args.
2834 (prefix-args): Remove.
2835
313d9eb2
DN
2836 Simplify cstart_of_data, start_of_code and related code.
2837 * mem-limits.h: Remove !emacs and _LIBC conditional code.
2838 (start_of_data): Merge into start_of_data function.
2839 * sysdep.c (start_of_text): Remove. Move simplified versions of
2840 it in the only users: unexaix.c and unexec.c.
2841 (read_input_waiting): Remove local declaration of quit_char.
2842 (start, etext): Remove declarations.
2843 (start_of_data): Merge with the version in mem-limits.h and move
2844 to vm-limits.c.
2845 * vm-limit.c (start_of_data): Merged and simplified version of the
2846 code formerly in mem-limits.h and sysdep.c.
2847 * unexec.c (start): New declaration, moved from sysdep.c.
2848 (start_of_text): Simplified version of the code formerly in sysdep.c.
2849 * unexaix.c (start_of_text): Simplified version of the code
2850 formerly in sysdep.c.
2851 * m/alpha.h (HAVE_TEXT_START): Remove.
2852 (TEXT_START): Move ...
2853 * unexalpha.c (TEXT_START): ... here.
2854 * s/hpux10-20.h (TEXT_START): Remove.
2855 * s/darwin.h (TEXT_START):
2856 * m/mips.h (TEXT_START):
2857 * m/macppc.h (HAVE_TEXT_START):
2858 * m/m68k.h (TEXT_START):
2859 * m/iris4d.h (TEXT_START):
2860 * m/intel386.h (TEXT_START):
2861 * m/ibmrs6000.h (TEXT_START):
2862 * m/ia64.h (HAVE_TEXT_START):
2863 * s/msdos.h (TEXT_START): Likewise.
2864
72af86bd
AS
28652010-07-07 Andreas Schwab <schwab@linux-m68k.org>
2866
2867 * alloc.c (overrun_check_malloc, overrun_check_realloc)
2868 (overrun_check_free, xstrdup, allocate_string)
2869 (allocate_string_data, compact_small_strings, Fmake_string)
2870 (make_unibyte_string, make_multibyte_string)
2871 (make_string_from_bytes, make_specified_string, make_float)
2872 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
2873 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
2874 memcpy, memmove, memset, memcmp.
2875 * atimer.c (start_atimer, set_alarm): Likewise.
2876 * buffer.c (clone_per_buffer_values, report_overlay_modification)
2877 (mmap_realloc, init_buffer_once): Likewise.
2878 * callint.c (Fcall_interactively): Likewise.
2879 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
2880 (getenv_internal_1): Likewise.
2881 * casefiddle.c (casify_object): Likewise.
2882 * ccl.c (ccl_driver): Likewise.
2883 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
2884 * charset.c (load_charset_map_from_file)
2885 (load_charset_map_from_file, load_charset_map_from_vector)
2886 (Fdefine_charset_internal): Likewise.
2887 * cm.c (Wcm_clear): Likewise.
2888 * coding.c (decode_eol, decode_coding_object)
2889 (Fset_coding_system_priority, make_subsidiaries): Likewise.
2890 * data.c (Faset): Likewise.
2891 * dired.c (directory_files_internal, file_name_completion_stat):
2892 Likewise.
2893 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
2894 (clear_glyph_row, copy_row_except_pointers)
2895 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
2896 (save_current_matrix, restore_current_matrix)
2897 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
2898 (mirror_line_dance, scrolling_window): Likewise.
2899 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
2900 Likewise.
2901 * doprnt.c (doprnt): Likewise.
2902 * editfns.c (Fuser_full_name, make_buffer_string_both)
2903 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
2904 * emacs.c (sort_args): Likewise.
2905 * eval.c (Fapply, Ffuncall): Likewise.
2906 * fileio.c (Ffile_name_directory, make_temp_name)
2907 (Fexpand_file_name, search_embedded_absfilename)
2908 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
2909 (auto_save_error): Likewise.
2910 * fns.c (Fstring_equal, Fcopy_sequence, concat)
2911 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
2912 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
2913 (Fmake_hash_table): Likewise.
2914 * fringe.c (Fdefine_fringe_bitmap): Likewise.
2915 * ftfont.c (ftfont_text_extents): Likewise.
2916 * getloadavg.c (getloadavg): Likewise.
2917 * image.c (define_image_type, make_image, make_image_cache)
2918 (x_create_x_image_and_pixmap, xbm_image_p)
2919 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
2920 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
2921 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
2922 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
2923 (tiff_image_p, tiff_read_from_memory, gif_image_p)
2924 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
2925 Likewise.
2926 * indent.c (scan_for_column, compute_motion): Likewise.
2927 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
2928 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
2929 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
2930 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
2931 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
2932 (store_user_signal_events, menu_bar_items, tool_bar_items)
2933 (process_tool_bar_item, append_tool_bar_item)
2934 (read_char_minibuf_menu_prompt, read_key_sequence)
2935 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
2936 Likewise.
2937 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
2938 Likewise.
2939 * lisp.h (STRING_COPYIN): Likewise.
2940 * lread.c (Fload, read1, oblookup): Likewise.
2941 * msdos.c (Frecent_doskeys): Likewise.
2942 * nsfns.m (Fx_create_frame): Likewise.
2943 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
2944 Likewise.
2945 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
2946 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
2947 Likewise.
2948 * nsmenu.m (ns_update_menubar): Likewise.
2949 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
2950 * print.c (print_unwind, printchar, strout, print_string)
2951 (print_error_message): Likewise.
2952 * process.c (conv_lisp_to_sockaddr, set_socket_option)
2953 (Fmake_network_process, Fnetwork_interface_list)
2954 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
2955 (init_process): Likewise.
2956 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
2957 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
2958 Likewise.
2959 * scroll.c (do_scrolling, do_direct_scrolling)
2960 (scrolling_max_lines_saved): Likewise.
2961 * search.c (search_buffer, wordify, Freplace_match): Likewise.
2962 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
2963 * syntax.c (skip_chars, skip_syntaxes): Likewise.
2964 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
2965 (emacs_set_tty): Likewise.
2966 * term.c (encode_terminal_code, calculate_costs)
2967 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
2968 Likewise.
2969 * termcap.c (tgetst1, gobble_line): Likewise.
2970 * termhooks.h (EVENT_INIT): Likewise.
2971 * tparam.c (tparam1): Likewise.
2972 * unexalpha.c (unexec): Likewise.
2973 * unexec.c (write_segment): Likewise.
2974 * unexmacosx.c (unexec_write_zero): Likewise.
2975 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
2976 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
2977 * w32font.c (w32font_list_family, w32font_text_extents)
2978 (w32font_list_internal, w32font_match_internal)
2979 (w32font_open_internal, compute_metrics, Fx_select_font):
2980 Likewise.
2981 * w32menu.c (set_frame_menubar, add_menu_item)
2982 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
2983 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
2984 * w32uniscribe.c (uniscribe_list_family): Likewise.
2985 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
2986 * window.c (make_window, replace_window, set_window_buffer)
2987 (Fsplit_window): Likewise.
2988 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
2989 (add_to_log, message3, x_consider_frame_title)
2990 (append_space_for_newline, extend_face_to_end_of_line)
2991 (decode_mode_spec_coding, init_glyph_string): Likewise.
2992 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
2993 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
2994 (face_attr_equal_p, make_realized_face, make_face_cache)
2995 (free_realized_faces, lookup_named_face, smaller_face)
2996 (face_with_height, lookup_derived_face)
2997 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
2998 (Finternal_set_font_selection_order, realize_default_face)
2999 (compute_char_face, face_at_buffer_position)
3000 (face_for_overlay_string, face_at_string_position, merge_faces):
3001 Likewise.
3002 * xfns.c (xic_create_fontsetname, Fx_create_frame)
3003 (Fx_window_property, x_create_tip_frame)
3004 (Fx_backspace_delete_keys_p): Likewise.
3005 * xfont.c (xfont_list, xfont_match, xfont_list_family)
3006 (xfont_text_extents): Likewise.
3007 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
3008 * xrdb.c (magic_file_p, x_get_resource): Likewise.
3009 * xselect.c (x_queue_event, x_get_window_property)
3010 (receive_incremental_selection): Likewise.
3011 * xsmfns.c (x_session_check_input): Likewise.
3012 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
3013 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
3014 Likewise.
3015 * character.h (BCOPY_SHORT): Removed.
3016 * config.in: Regenerate.
3017 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
3018 * emacs.c (main) [PROFILING]: Don't declare
3019 dump_opcode_frequencies.
3020 * lisp.h (safe_bcopy): Remove declaration.
3021 (memset) [!HAVE_MEMSET]: Declare.
3022 (memcpy) [!HAVE_MEMCPY]: Likewise.
3023 (memmove) [!HAVE_MEMMOVE]: Likewise.
3024 (memcmp) [!HAVE_MEMCMP]: Likewise.
3025 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
3026 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
3027 Don't define.
3028 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
3029 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
3030 (BCOPY_DOWNWARD_SAFE): Don't define.
3031 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
3032 (memcpy) [!HAVE_MEMCPY]: Define.
3033 (memmove) [!HAVE_MEMMOVE]: Define.
3034 (memcmp) [!HAVE_MEMCMP]: Define.
3035
cb768704
J
30362010-07-07 Jan Djärv <jan.h.d@swipnet.se>
3037
3038 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
3039 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
3040 New functions.
cb768704
J
3041 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
3042 select on empty input mask.
3043 (init_process): Initialize kbd_is_on_hold to 0.
3044
3045 * process.h (hold_keyboard_input, unhold_keyboard_input)
3046 (kbd_on_hold_p): Declare.
3047
3048 * keyboard.c (input_available_signal): Declare.
3049 (kbd_buffer_nr_stored): New function.
3050 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
3051 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
3052 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
3053 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
3054 (tty_read_avail_input): If input is on hold, return.
3055 Don't read more that free slots in kbd_buffer (Bug#6571).
3056
3a8ce822
EZ
30572010-07-07 Eli Zaretskii <eliz@gnu.org>
3058
3059 * msdos.h:
3060 * msdos.c:
3061 * dosfns.c:
3062 * w16select.c: Convert function definitions to ANSI C.
3063
a628ad9d
JB
3064 * msdos.h (ctrl_break_func, install_ctrl_break_check):
3065 Remove unused prototypes.
3a8ce822 3066
cf84bb53
JB
30672010-07-07 Juanma Barranquero <lekktu@gmail.com>
3068
3069 * coding.c, sysdep.c: Convert some more functions to standard C.
3070
1a4990fb
JB
30712010-07-07 Juanma Barranquero <lekktu@gmail.com>
3072
3073 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
3074 (encode_coding_object): Use SPECPDL_INDEX.
3075 (syms_of_coding): Use DOS_NT.
3076
c0f2f16b
DN
30772010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
3078
48fb6855
DN
3079 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
3080
c0f2f16b
DN
3081 Make the function member of Lisp_Subr use standard C prototypes.
3082 * lisp.h (struct Lisp_Subr): Use a union for the function member.
3083 (DECL_ALIGN): Add a cast for the function.
3084 * eval.c (Feval, Ffuncall): Use the proper type for each type
3085 function call.
3086
67aecef9
CY
30872010-07-06 Chong Yidong <cyd@stupidchicken.com>
3088
3089 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
3090 fringe face id, so face-remapping-alist works (Bug#6091).
3091
b56ceb92
JB
30922010-07-06 Juanma Barranquero <lekktu@gmail.com>
3093
3094 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
3095 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
3096 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
3097
7af07b96
AS
30982010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3099
3100 * xterm.c (x_get_keysym_name): Change type of parameter to int.
3101 * lisp.h: Declare x_get_keysym_name.
3102 * keyboard.c (modify_event_symbol): Don't declare
3103 x_get_keysym_name here.
3104
69e24e34
DN
31052010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
3106
3107 * ecrt0.c: Revert conversion to standard C.
3108
d3da34e0 31092010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
3110
3111 * vm-limit.c (memory_warnings):
3112 * keyboard.c (modify_event_symbol):
3113 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
3114 (round2, emacs_rint):
3115 * process.c (send_process, old_sigpipe): Convert function
3116 definitions and declarations to standard C.
3117
31182010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
3119
3120 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
3121 * xdisp.c: Convert function definitions to standard C.
3122
3123 * cm.c (cmputc): Arg C is now int, not char.
3124 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
3125
00be444c
J
31262010-07-05 James Cloos <cloos@jhcloos.com>
3127
3128 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
3129
3130 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
3131 _NET_WM_ICON_NAME atoms.
3132
3133 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
3134 and _NET_WM_ICON_NAME properties, too, matching what is
3135 done in the Gtk+ case.
3136
e4c8d29a
J
31372010-07-05 Jan Djärv <jan.h.d@swipnet.se>
3138
ff919460
J
3139 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
3140
e4c8d29a
J
3141 * xsmfns.c (SSDATA): New macro.
3142 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
3143 passed to strlen/strcpy/strcat.
3144 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
70e31436 3145 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
3146
3147 * xsettings.c (something_changedCB, parse_settings)
3148 (apply_xft_settings): Reformat prototype.
3149 (something_changedCB, init_gconf): Remove unused variable i.
3150 (read_settings): Remove unused variable long_len.
3151
3152 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
3153 (xg_get_image_for_pixmap, create_dialog)
3154 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
3155 (menuitem_highlight_callback, make_menu_item)
3156 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
3157 (xg_create_scroll_bar, xg_update_scrollbar_pos)
3158 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
3159 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
3160 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
3161 (xg_tool_bar_item_expose_callback): Reformat prototype.
3162 (xg_update_menubar): GList *group => GSList *group.
3163 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
3164 before use.
3165 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
3166 to GTK_IMAGE (wimage).
3167
dd4c5104
DN
31682010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
3169
898b4c5c
DN
3170 * atimer.c: Use "" instead of <> for local includes for
3171 consistency with the rest of the code.
3172
dd4c5104
DN
3173 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
3174 * xrdb.c (get_system_name):
3175 * window.c (shrink_windows):
3176 * syntax.c (forw_comment):
3177 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
3178 (ins_del_costs):
3179 * mem-limits.h (start_of_data):
3180 * lread.c (readevalloop):
3181 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
3182 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
3183 * frame.c (x_get_focus_frame):
3184 * floatfns.c (fmod_float):
3185 * fileio.c (choose_write_coding_system):
3186 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
3187 (malloc_initialize_hook, sort_args, synchronize_locale):
3188 * doprnt.c (doprnt):
3189 * dired.c (compile_pattern):
3190 * data.c (fmod_float):
3191 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
3192 (map_char_table_for_charset):
3193 * charset.c (define_charset_internal):
3194 * alloc.c (Fgarbage_collect): Convert declarations or definitions
3195 to standard C.
3196
9a39b306 31972010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 3198 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
3199
3200 * lread.c (read1): Fix up last change to not mess up `c'.
3201
e6cb2cbb
JB
32022010-07-04 Juanma Barranquero <lekktu@gmail.com>
3203
3204 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
3205
438105ed
JB
32062010-07-04 Juanma Barranquero <lekktu@gmail.com>
3207
3208 Fix prototypes.
3209
e5447b22 3210 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 3211 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
3212 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
3213 arg, as required by internal_condition_case_1.
dcc7404b 3214 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
3215 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
3216 (analyse_first): Fix "const const".
e5447b22 3217 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 3218 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 3219 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 3220
971de7fb
DN
32212010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
3222
3223 * alloc.c: Convert function definitions to standard C.
3224 * atimer.c:
3225 * bidi.c:
3226 * bytecode.c:
3227 * callint.c:
3228 * callproc.c:
3229 * casefiddle.c:
3230 * casetab.c:
3231 * category.c:
3232 * ccl.c:
3233 * character.c:
3234 * charset.c:
3235 * chartab.c:
3236 * cmds.c:
3237 * coding.c:
3238 * composite.c:
3239 * data.c:
3240 * dbusbind.c:
3241 * dired.c:
3242 * dispnew.c:
3243 * doc.c:
3244 * doprnt.c:
3245 * ecrt0.c:
3246 * editfns.c:
3247 * fileio.c:
3248 * filelock.c:
3249 * filemode.c:
3250 * fns.c:
3251 * font.c:
3252 * fontset.c:
3253 * frame.c:
3254 * fringe.c:
3255 * ftfont.c:
3256 * ftxfont.c:
3257 * gtkutil.c:
3258 * indent.c:
3259 * insdel.c:
3260 * intervals.c:
3261 * keymap.c:
3262 * lread.c:
3263 * macros.c:
3264 * marker.c:
3265 * md5.c:
3266 * menu.c:
3267 * minibuf.c:
3268 * prefix-args.c:
3269 * print.c:
3270 * ralloc.c:
3271 * regex.c:
3272 * region-cache.c:
3273 * scroll.c:
3274 * search.c:
3275 * sound.c:
3276 * strftime.c:
3277 * syntax.c:
3278 * sysdep.c:
3279 * termcap.c:
3280 * terminal.c:
3281 * terminfo.c:
3282 * textprop.c:
3283 * tparam.c:
3284 * undo.c:
3285 * unexelf.c:
3286 * window.c:
3287 * xfaces.c:
3288 * xfns.c:
3289 * xfont.c:
3290 * xftfont.c:
3291 * xgselect.c:
3292 * xmenu.c:
3293 * xrdb.c:
3294 * xselect.c:
3295 * xsettings.c:
3296 * xsmfns.c:
3297 * xterm.c: Likewise.
3298
ae492bec
EZ
32992010-07-03 Eli Zaretskii <eliz@gnu.org>
3300
76ea4cc9
EZ
3301 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
3302 frames other than the initial one. Fix reversal of colors when
3303 `reverse' is specified in the frame parameters. Call
3304 update_face_from_frame_parameter instead of
3305 internal-set-lisp-face-attribute. Initialize screen colors from
3306 initial_screen_colors[] when f->default_face_done_p is zero,
3307 instead of depending on being called with default-frame-alist as
3308 the alist argument.
3309
3310 * xfaces.c (update_face_from_frame_parameter): Move out of
3311 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
3312 with HAVE_WINDOW_SYSTEM.
3313
1e6255ae
EZ
3314 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
3315 to menu-bar-mode, if not set in the frame parameters or in
3316 default-frame-alist.
3317
ae492bec
EZ
3318 * w32console.c (sys_tputs): Adjust argument list to prototype in
3319 term.c.
3320
3a35a84c
JB
33212010-07-03 Juanma Barranquero <lekktu@gmail.com>
3322
3323 * lisp.h (memory_warnings): Fix prototype.
3324
3325 * cm.h (evalcost): Fix prototype.
3326
3327 * cm.c (evalcost): Fix arg type.
3328
c532d349
DN
33292010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
3330
3331 * term.c (term_clear_mouse_face, Fidentity):
3332 * syssignal.h (signal_handler_t):
3333 * lisp.h (memory_warnings):
3334 * coding.h (preferred_coding_system):
3335 * cm.h (evalcost):
3336 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
3337
c0b36d46
EZ
33382010-07-02 Eli Zaretskii <eliz@gnu.org>
3339
3340 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
3341 from prototypes.
3342
3343 * msdos.h (load_pixmap): Don't define away.
3344
383e0970
J
33452010-07-02 Jan Djärv <jan.h.d@swipnet.se>
3346
f57e2426
J
3347 * lisp.h:
3348 * atimer.h: Remove define for P_.
3349
3350 * alloc.c: Remove __P and P_ from .c and .m files.
3351 * atimer.c:
3352 * buffer.c:
3353 * callint.c:
3354 * category.c:
3355 * charset.c:
3356 * chartab.c:
3357 * cm.c:
3358 * coding.c:
3359 * composite.c:
3360 * data.c:
3361 * dired.c:
3362 * dispnew.c:
3363 * doc.c:
3364 * editfns.c:
3365 * emacs.c:
3366 * eval.c:
3367 * fileio.c:
3368 * filelock.c:
3369 * fns.c:
3370 * font.c:
3371 * fontset.c:
3372 * frame.c:
3373 * ftfont.c:
3374 * ftxfont.c:
3375 * gmalloc.c:
3376 * gtkutil.c:
3377 * image.c:
3378 * indent.c:
3379 * intervals.c:
3380 * keyboard.c:
3381 * keymap.c:
3382 * lread.c:
3383 * marker.c:
3384 * menu.c:
3385 * minibuf.c:
3386 * print.c:
3387 * process.c:
3388 * scroll.c:
3389 * search.c:
3390 * sound.c:
3391 * strftime.c:
3392 * syntax.c:
3393 * sysdep.c:
3394 * term.c:
3395 * terminal.c:
3396 * textprop.c:
3397 * unexalpha.c:
3398 * w32console.c:
3399 * w32fns.c:
3400 * w32font.c:
3401 * w32menu.c:
3402 * w32term.c:
3403 * w32uniscribe.c:
3404 * window.c:
3405 * xdisp.c:
3406 * xfaces.c:
3407 * xfns.c:
3408 * xfont.c:
3409 * xftfont.c:
3410 * xmenu.c:
3411 * xselect.c:
3412 * xterm.c: Likewise.
3413
383e0970 3414 Remove P_ and __P macros.
f57e2426
J
3415 * atimer.h: Remove P_ and __P macros.
3416 * buffer.h:
383e0970
J
3417 * category.h:
3418 * ccl.h:
3419 * character.h:
3420 * charset.h:
3421 * cm.h:
3422 * coding.h:
3423 * composite.h:
3424 * dispextern.h:
3425 * disptab.h:
9e892c8d 3426 * dosfns.h:
383e0970
J
3427 * font.h:
3428 * fontset.h:
3429 * frame.h:
3430 * gtkutil.h:
3431 * indent.h:
3432 * intervals.h:
3433 * keyboard.h:
3434 * keymap.h:
3435 * lisp.h:
3436 * macros.h:
3437 * md5.h:
3438 * menu.h:
3439 * msdos.h:
3440 * nsterm.h:
3441 * puresize.h:
3442 * region-cache.h:
3443 * syntax.h:
3444 * syssignal.h:
3445 * systime.h:
3446 * termhooks.h:
9e892c8d 3447 * w32font.h:
383e0970
J
3448 * w32term.h:
3449 * widget.h:
3450 * window.h:
3451 * xgselect.h:
3452 * xsettings.h:
3453 * xterm.h: Likewise.
3454
98601119
DN
34552010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
3456
d9170db5
DN
3457 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
3458
98601119
DN
3459 Cleanup old code.
3460 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
3461 * syssignal.h: Remove code for Lynx, not supported anymore.
3462 * vm-limit.c: Remove unused code the depends on emacs not being
3463 defined and NO_LIM_DATA being defined.
3464 * mem-limits.h: Remove dead code.
3465
1f984e12
J
34662010-07-01 Jan Djärv <jan.h.d@swipnet.se>
3467
c49d071a
J
3468 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
3469
9d5405ec
J
3470 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
3471 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
3472
7a18115b
J
3473 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
3474 parameters, they are already absolute.
3475
a628ad9d
JB
3476 * nsterm.m (x_set_window_size, initFrameFromEmacs):
3477 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 3478
a628ad9d 3479 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 3480
a628ad9d
JB
3481 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
3482 Update FRAME_TOOLBAR_HEIGHT.
581a8100 3483
a628ad9d
JB
3484 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
3485 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 3486
c1ef4455
CY
34872010-06-30 Chong Yidong <cyd@stupidchicken.com>
3488
3489 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
3490 check default-frame-alist.
3491
ce8f5a9a
AS
34922010-06-30 Andreas Schwab <schwab@linux-m68k.org>
3493
3494 * process.c (create_process): Avoid using invalid file descriptors.
3495
3496 * callproc.c (child_setup): Avoid closing a file descriptor twice.
3497
bf935339
J
34982010-06-30 Jan Djärv <jan.h.d@swipnet.se>
3499
3500 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
3501 Improve documentation. Return font regardless of use_system_font.
3502 (syms_of_xsettings): Improve documentation for font-use-system-font.
3503
7c33a057
CY
35042010-07-10 Chong Yidong <cyd@stupidchicken.com>
3505
2ec1b5ee
CY
3506 * xfaces.c (realize_face): Garbage the frame if a face is removed
3507 (Bug#6593).
3508
35092010-07-05 Andreas Schwab <schwab@linux-m68k.org>
3510
3511 * keyboard.c: Remove duplicate <setjmp.h>.
3512 (read_key_sequence): Remove volatile qualifiers.
3513
35142010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3515
3516 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
3517 (struct glyph_row): New members left_fringe_offset and
3518 right_fringe_offset.
3519
3520 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
3521 specially.
3522 * w32term.c (w32_draw_fringe_bitmap): Likewise.
3523 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
3524
3525 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 3526 Take account of bitmap offset.
2ec1b5ee
CY
3527 (draw_window_fringes): Take account of window vscroll.
3528 (update_window_fringes): Likewise. Extend top-aligned top indicator
3529 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
3530 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
3531 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
3532
35332010-07-04 Juanma Barranquero <lekktu@gmail.com>
3534
3535 * w32fns.c (Qtooltip): Declare.
3536 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
3537
35382010-07-03 Jan Djärv <jan.h.d@swipnet.se>
3539
3540 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
3541 grab on just Press (Bug#6499).
3542
35432010-07-02 Chong Yidong <cyd@stupidchicken.com>
3544
3545 * frame.c (Qtooltip): New var.
3546 (delete_frame): Use it. Fix faulty if statement. Don't update
3547 mode line for tooltip frames. Suggested by Martin Rudalics.
3548
3549 * xfns.c (x_create_tip_frame):
3550 * w32fns.c (x_create_tip_frame): Use it.
3551
35522010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
3553
3554 * xftfont.c (xftfont_open): Check font width one by one also when
3555 spacing is dual.
3556
3557 * ftfont.c (ftfont_open): Ditto.
3558
6259c2ec
GM
35592010-06-30 Glenn Morris <rgm@gnu.org>
3560
a46007e9
GM
3561 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
3562
6259c2ec
GM
3563 * Makefile.in (CANNOT_DUMP): Update for configure name change.
3564
3565 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
3566 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
3567 * s/darwin.h (SYSTEM_MALLOC):
3568 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
3569
5d1d3d04
J
35702010-06-29 Jan Djärv <jan.h.d@swipnet.se>
3571
3572 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
3573 (ns_get_screen): Don't assign integer to f.
3574 (Fx_display_color_cells): Declarations before statements.
3575
e547b051
J
35762010-06-28 Jan Djärv <jan.h.d@swipnet.se>
3577
5fc8e5bc
J
3578 * xfns.c (x_default_font_parameter): Remove got_from_system
3579 (Bug#6526).
3580
e547b051
J
3581 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
3582 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
3583 defines based on what configure finds.
3584
3585 * xterm.c (XTflash): Use gtk_widget_get_window.
3586 (xg_scroll_callback): Use gtk_adjustment_get_upper and
3587 gtk_adjustment_get_page_size.
3588 (handle_one_xevent): Use gtk_widget_get_mapped.
3589 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
3590 messages.
3591
3592 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
3593
3594 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
3595 HAVE_GTK_FILE_SELECTION_NEW.
3596
3597 * gtkutil.c (xg_display_open, xg_display_close): Remove
3598 HAVE_GTK_MULTIDISPLAY, it is always defined.
3599 (xg_display_open): Return type is void.
3600 (gtk_widget_set_has_window)
3601 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
3602 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
3603 (gtk_adjustment_set_page_increment)
3604 (gtk_adjustment_get_step_increment): #define these if not found
3605 by configure.
3606 (remove_submenu): New define based on Gtk+ version.
3607 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
3608 gtk_widget_get_window.
3609 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
3610 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
3611 (create_dialog): Use gtk_dialog_get_action_area and
3612 gtk_dialog_get_content_area.
3613 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
3614 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
3615 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
3616 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
3617 g_object_ref and g_object_unref.
3618 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
3619 gtk_widget_get_sensitive.
3620 (xg_update_submenu): Use remove_submenu.
3621 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
3622 properties instead to get old x and y position.
3623 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
3624 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 3625 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
3626 (xg_get_tool_bar_widgets): New function.
3627 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
3628 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
3629 (toolbar_set_orientation): New #define based on if configure
3630 finds gtk_orientable_set_orientation.
3631 (xg_create_tool_bar): Call toolbar_set_orientation.
3632 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
3633 instead of gtk_box_pack_start_defaults.
3634
b9229673
CY
36352010-06-28 Chong Yidong <cyd@stupidchicken.com>
3636
3637 * cmds.c (Fdelete_backward_char): Move into Lisp.
3638
bbc803b0
DN
36392010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
3640
3641 * s/freebsd.h (BSD4_2): Remove redundant definition.
3642 bsd-common.h defines it already.
3643
6431f2e6
CY
36442010-06-27 Chong Yidong <cyd@stupidchicken.com>
3645
3646 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
3647 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
3648 tool-bar-mode, which are now set using these X resources at
3649 startup, to determine the defaults (Bug#2249).
3650
3651 * w32fns.c (Fx_create_frame):
3652 * nsfns.m (Fx_create_frame): Likewise.
3653
3654 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
3655
8c079ebb
JB
36562010-06-24 Juanma Barranquero <lekktu@gmail.com>
3657
3658 * gtkutil.c (xg_update_scrollbar_pos):
3659 Avoid C99 mid-block variable declaration.
3660
e9b7ab96
JD
36612010-06-22 Jan Djärv <jan.h.d@swipnet.se>
3662
bc869eca
JD
3663 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
3664
2b7e356a 3665 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
3666
3667 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
3668 if height is less than scroll bar min size.
3669 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
3670
e9b7ab96
JD
3671 * xfns.c (x_default_font_parameter): Try to open font from system
3672 before using it (bug#6478). Rename got_from_gconf to got_from_system.
3673
a628ad9d 36742010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
3675
3676 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
3677
70c4cfbb
EZ
36782010-06-20 Eli Zaretskii <eliz@gnu.org>
3679
3680 * xdisp.c (try_scrolling): When scroll-conservatively is set to
3681 most-positive-fixnum, be extra accurate when scrolling window
3682 start, to avoid missing the cursor line.
3683
ad5a12b5
EZ
36842010-06-19 Eli Zaretskii <eliz@gnu.org>
3685
3686 * xdisp.c (try_scrolling): Compute the limit for searching point
3687 in forward scroll from scroll_max, instead of an arbitrary limit
3688 of 10 screen lines. See
3689 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
3690 and
3691 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
3692 for details.
3693
2a64315a 36942010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
3695
3696 * editfns.c (Fbyte_to_string): Pacify compiler.
3697
288cf4e9
SM
36982010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
3699
3700 * lread.c (read1): Phase out old-style backquotes a bit more.
3701
6e6e5760
EZ
37022010-06-12 Eli Zaretskii <eliz@gnu.org>
3703
cbc4fd20
EZ
3704 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
3705 bidimirror.h.
3706
3707 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
3708
317fbf33
EZ
3709 * bidi.c (bidi_initialize): Remove explicit initialization of
3710 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 3711 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 3712 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
3713
3714 * biditype.h: New file.
3715
cbc4fd20
EZ
3716 * bidimirror.h: New file.
3717
6e6e5760
EZ
3718 * window.c (syms_of_window): Doc fix (bug#6409).
3719
4176cba2
RF
37202010-06-12 Romain Francoise <romain@orebokech.com>
3721
3722 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
3723 ediff-hook.
3724
cb4bfcb5
GM
37252010-06-10 Glenn Morris <rgm@gnu.org>
3726
64c60c2f
GM
3727 * editfns.c (Fbyte_to_string): Pacify compiler.
3728
cb4bfcb5
GM
3729 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
3730
2ec1b5ee
CY
37312010-06-26 Andreas Schwab <schwab@linux-m68k.org>
3732
3733 * alloc.c (Fmake_byte_code): Don't access undefined argument
3734 (Bug#6517).
3735
37362010-06-25 Chong Yidong <cyd@stupidchicken.com>
3737
3738 * xdisp.c (next_element_from_image): Ensure that after-strings are
3739 read the next time we hit handle_stop (Bug#1336).
3740
37412010-06-23 Andreas Schwab <schwab@linux-m68k.org>
3742
3743 * lread.c (read1): Signal error if #s is not followed by paren.
3744
37452010-06-19 Chong Yidong <cyd@stupidchicken.com>
3746
3747 * image.c (free_image): Mark frame as garbaged (Bug#6426).
3748
3749 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
3750
37512010-06-15 Glenn Morris <rgm@gnu.org>
3752
3753 * editfns.c (Fbyte_to_string): Pacify compiler.
3754
e454a4a3
SM
37552010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
3756
3757 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
3758 Check `object's type before accessing its guts.
3759
c1b1acc2
DN
37602010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
3761
3762 * s/usg5-4.h: Fix previous change.
3763 Suggested by Lawrence Mitchell <wence@gmx.li>
3764
657d4c0b
AS
37652010-06-08 Andreas Schwab <schwab@linux-m68k.org>
3766
3767 * minibuf.c (Fall_completions): Add more checks.
3768
9b27fd9f
JB
37692010-06-08 Juanma Barranquero <lekktu@gmail.com>
3770
3771 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
3772
a99ebb40
DN
37732010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
3774
d7c5d87d
DN
3775 * lread.c (X_OK): Remove, unused.
3776
0263a941
DN
3777 * dispnew.c: Remove obsolete comment.
3778
a99ebb40
DN
3779 Remove INCLUDED_FCNTL.
3780 * xterm.c (INCLUDED_FCNTL):
3781 * callproc.c (INCLUDED_FCNTL):
3782 * alloc.c (INCLUDED_FCNTL):
3783 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
3784 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
3785
13b5221f
MR
37862010-06-07 Martin Rudalics <rudalics@gmx.at>
3787
3788 * window.c (Fselect_window): Move `record_buffer' up to the
3789 beginning of this function, so the buffer gets recorded
3790 even if the selected window does not change.
3791 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
3792
5220357f
JB
37932010-06-07 Juanma Barranquero <lekktu@gmail.com>
3794
3795 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
3796 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
3797
3085237c
DN
37982010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
3799
3800 Remove BSTRING related code, all platforms define it.
3801 * s/usg5-4.h (BSTRING): Remove definition.
3802 * s/template.h (BSTRING):
3803 * s/msdos.h (BSTRING):
3804 * s/ms-w32.h (BSTRING):
3805 * s/hpux10-20.h (BSTRING):
3806 * s/gnu-linux.h (BSTRING):
3807 * s/darwin.h (BSTRING):
3808 * s/cygwin.h (BSTRING):
3809 * s/bsd-common.h (BSTRING):
3810 * s/aix4-2.h (BSTRING): Likewise.
3811 * sysdep.c: Remove code depending on BSTRING not being defined.
3812
409f2919
JB
38132010-06-05 Juanma Barranquero <lekktu@gmail.com>
3814
3815 Remove obsolete macro BASE_LEADING_CODE_P.
3816 * character.h (BASE_LEADING_CODE_P): Remove.
3817 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
3818 * buffer.c (Fset_buffer_multibyte):
3819 * indent.c (scan_for_column, compute_motion):
3820 * insdel.c (count_combining_before, count_combining_after):
3821 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
3822
087fc47a
JB
38232010-06-04 Juanma Barranquero <lekktu@gmail.com>
3824
3825 Turn `directory-sep-char' into a noop.
3826
3827 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
3828 (DIRECTORY_SEP): Define unconditionally.
3829
3830 * s/ms-w32.h (DIRECTORY_SEP): Remove.
3831
3832 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
3833 call dostounix_filename directly.
3834
3835 * fileio.c (CORRECT_DIR_SEPS): Remove.
3836 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
3837 (Fsubstitute_in_file_name): Use dostounix_filename instead.
3838 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
3839 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
3840
3841 * w32proc.c (CORRECT_DIR_SEPS): Remove.
3842 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
3843
0eb7675e
AS
38442010-06-03 Andreas Schwab <schwab@linux-m68k.org>
3845
a628ad9d
JB
3846 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
3847 (Bug#6346)
0eb7675e 3848
78edd3b7
JB
38492010-06-03 Juanma Barranquero <lekktu@gmail.com>
3850
3851 * ccl.c (Fccl_program_p): Fix typo in docstring.
3852
eb697db5
DN
38532010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
3854
3855 Move UNEXEC definition to autoconf.
3856 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
3857 * s/sol2-10.h (UNEXEC):
3858 * s/irix6-5.h (UNEXEC):
3859 * s/hpux10-20.h (UNEXEC):
3860 * s/gnu-linux.h (UNEXEC):
3861 * s/darwin.h (UNEXEC):
3862 * s/cygwin.h (UNEXEC):
3863 * s/bsd-common.h (UNEXEC):
3864 * s/aix4-2.h (UNEXEC):
3865 * m/alpha.h (UNEXEC): Likewise.
3866 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
3867
aa3830c4
JB
38682010-06-03 Juanma Barranquero <lekktu@gmail.com>
3869
3870 Remove obsolete pre-unicode2 macros.
3871 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
3872 * composite.c (composition_reseat_it):
3873 * data.c (Faset):
3874 * fns.c (Ffillarray):
3875 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
3876 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
3877
d234d13e
JL
38782010-06-03 Juri Linkov <juri@jurta.org>
3879
3880 * buffer.c (Fother_buffer): Add CHECK_FRAME.
3881 (Fswitch_to_buffer): Remove unused variable `err'.
3882
0d4bcf4d
GM
38832010-06-03 Glenn Morris <rgm@gnu.org>
3884
e23dc1e2
GM
3885 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
3886
05b09564
GM
3887 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
3888 now that AH_BOTTOM does it.
3889
824e2978
GM
3890 * m/hp800.h (HAVE_ALLOCA):
3891 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
3892
0d4bcf4d
GM
3893 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
3894 Remove NOT_C_CODE tests, it is always true now.
3895
c55d2abf
DN
38962010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
3897
08a494a3
DN
3898 Fix config.h includes.
3899 * xsettings.c:
3900 * xgselect.c:
3901 * nsterm.m:
3902 * nsselect.m:
3903 * nsimage.m:
3904 * nsfont.m:
3905 * nsfns.m:
3906 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
3907 other files do.
3908
75934b1d
DN
3909 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
3910
9f32a766
DN
3911 * s/sol2-6.h: Remove obsolete comments.
3912
c55d2abf
DN
3913 Remove unnecessary alloca.h includes.
3914 * keymap.c: Do not include alloca.h, config.h does that.
3915 * sysdep.c: Likewise. Do not define fwrite, not used.
3916
06ac62b4
SM
39172010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
3918
3919 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
3920 the HAVE_TERMIO where it belongs (bug#6149).
3921
1ab8293c
SM
39222010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
3923
3924 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
3925 of bug#6305).
3926
6dcfd253
EZ
39272010-05-30 Eli Zaretskii <eliz@gnu.org>
3928
3929 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
3930 state is always cached (bug#6306).
3931
6d26bbb2
EZ
39322010-05-29 Eli Zaretskii <eliz@gnu.org>
3933
06fa4a23
EZ
3934 Fix cursor motion in bidi-reordered continued lines.
3935 * xdisp.c (try_cursor_movement): Backup to non-continuation line
3936 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
3937 over continuation lines in bidi-reordered buffers. Return
3938 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
3939 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
3940
f5783df3
MA
39412010-05-28 Michael Albinus <michael.albinus@gmx.de>
3942
3943 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
3944
7d56b2dd
KH
39452010-05-28 Kenichi Handa <handa@m17n.org>
3946
3947 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
3948 Don't sheck SPEC if it is nil.
3949 (font_list_entities): Call font_delete_unmatched if
b925d231 3950 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 3951
e58d4ff7
GM
39522010-05-28 Glenn Morris <rgm@gnu.org>
3953
3954 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
3955
f1a5d776
CY
39562010-05-27 Chong Yidong <cyd@stupidchicken.com>
3957
3958 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
3959 whether to trash.
3960 (internal_delete_file, Frename_file): Callers changed.
3961 (delete_by_moving_to_trash): Doc fix.
3962 (Fdelete_directory_internal): Don't move to trash.
3963
3964 * callproc.c (delete_temp_file):
3965 * buffer.c (Fkill_buffer): Callers changed.
3966
3967 * lisp.h: Update prototype.
3968
f44a59e6
CY
39692010-05-27 Chong Yidong <cyd@stupidchicken.com>
3970
3971 * xdisp.c (redisplay_window): After redisplay, check if point is
3972 still valid before setting it (Bug#6177).
3973
81ac4f35
GM
39742010-05-27 Glenn Morris <rgm@gnu.org>
3975
3976 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
3977 Convert comments to Makefile format.
3978
3979 * Makefile.in (bootstrap-clean): No more Makefile.c.
3980
ccd89fb3
GM
39812010-05-26 Glenn Morris <rgm@gnu.org>
3982
90278cb6
GM
3983 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
3984 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
3985
ccd89fb3
GM
3986 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3987 Remove.
3988 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3989
b7050583
KH
39902010-05-26 Kenichi Handa <handa@m17n.org>
3991
3992 * composite.c (composition_compute_stop_pos): Fix condition for
3993 backward scanning.
3994
e5458003
GM
39952010-05-25 Glenn Morris <rgm@gnu.org>
3996
c345fe90
GM
3997 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3998 Move before TEMACS_LDFLAGS.
3999 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4000 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4001
2e0689ab
GM
4002 * Makefile.in (NOT_C_CODE): No longer define.
4003 (config.h): No longer include.
4004
8009a5e8
GM
4005 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
4006 variables it may reference.
4007
e5458003
GM
4008 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
4009 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
4010
10f72a37
KH
40112010-05-25 Kenichi Handa <handa@m17n.org>
4012
4013 * dispextern.h (struct composition_it): New members rule_idx and
4014 charpos.
4015
4016 * xdisp.c (set_iterator_to_next): While scanning backward, assume
4017 that the character positions of IT point the last character of the
4018 current grapheme cluster.
4019 (next_element_from_composition): Don't change character positions
4020 of IT.
4021 (append_composite_glyph): Set glyph->charpos to
4022 it->cmp_it.charpos.
4023
4024 * composite.c (autocmp_chars): Change the first argument to RULE,
4025 and try composition with RULE only.
4026 (composition_compute_stop_pos): Record the index number of the
4027 composition rule in CMP_IT->rule_idx.
4028 (composition_reseat_it): Call autocmp_chars repeatedly until the
4029 correct rule of the composition is found.
4030 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
4031 is at the last character of the current grapheme cluster when
4032 CMP_IT->reversed_p is nonzero.
4033
171eda53 40342010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 4035
171eda53
SM
4036 * editfns.c (Fbyte_to_string): New function.
4037
66a9f7f4
SM
40382010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
4039
4040 * process.c (Fmake_network_process): Set :host to nil if it's not used.
4041 Suggested by Masatake YAMATO <yamato@redhat.com>.
4042
d8c315d1
EZ
40432010-05-23 Eli Zaretskii <eliz@gnu.org>
4044
171eda53 4045 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 4046
f5b416d2 40472010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
4048
4049 * s/netbsd.h: If terminfo is found, use it in preference to
4050 termcap. (Bug#6190) [Backport from trunk]
4051
0416466c
EZ
40522010-05-19 Eli Zaretskii <eliz@gnu.org>
4053
11117830 4054 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
4055
4056 * dispextern.h (struct glyph_row): New members minpos and maxpos.
4057 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
4058 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
4059 and maxpos members instead of start.pos and end.pos, respectively.
4060
4061 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
4062 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
4063 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
4064 (try_window_reusing_current_matrix, try_window_id):
4065 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
4066 (init_from_display_pos, init_iterator): Use EMACS_INT for
4067 character and byte positions.
66a9f7f4 4068 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
4069 arguments for minimum and maximum buffer positions seen by
4070 display_line for this row. Don't use iterator to find the
4071 position following the maximum one; instead, increment the
11117830
EZ
4072 position found by display_line directly. Fix logic; eol_pos
4073 should be tested before the rest. Handle the case of characters
4074 delivered from display vector (bug#6036). Fix tests related to
4075 it->method. Handle the truncated_on_right_p rows.
4076 (RECORD_MAX_MIN_POS): New macro.
4077 (display_line): Use it to record the minimum and maximum buffer
4078 positions for glyphs in the row being assembled. Record the
4079 position of the newline that terminates the line. If word wrap is
4080 in effect, restore minimum and maximum positions seen up to the
4081 wrap point, when iterator returns to it.
4082 (try_window_reusing_current_matrix): Give up if in bidi-reordered
4083 row and cursor not already at point. Restore original pre-bidi
4084 code for unidirectional buffers.
d36fe237
EZ
4085
4086 * dispnew.c (increment_row_positions, check_matrix_invariants):
4087 Increment and check row->start.pos and row->end.pos, in addition
4088 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
4089
11117830
EZ
4090 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
4091 Display truncated_on_left_p and truncated_on_right_p flags.
4092 Formatting fixes.
4093 (pmtxrows): Display the ordinal number of each row. Don't display
4094 rows beyond the last one.
4095
4096 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
4097 it is not copied by bidi_copy_it.
4098
6e83d800
EZ
40992010-05-22 Eli Zaretskii <eliz@gnu.org>
4100
4101 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
4102 (Bug#6237)
4103
110683ad
CY
41042010-05-22 Chong Yidong <cyd@stupidchicken.com>
4105
4106 * image.c (Fimage_flush): Rename from image-refresh.
4107
98fe5161
CY
41082010-05-21 Chong Yidong <cyd@stupidchicken.com>
4109
4110 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
4111 just one window.
4112
4113 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
4114 (clear_image_cache): If the number of cached images is unusually
4115 large, decrease the cache eviction delay (Bug#6230).
4116
e8752c66
GM
41172010-05-21 Glenn Morris <rgm@gnu.org>
4118
66dbf213
GM
4119 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
4120 Move these rules to ns.mk.
4121 * ns.mk: New file.
4122
04384b2d
GM
4123 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
4124
e8752c66
GM
4125 * Makefile.in (CANNOT_DUMP): New, set by configure.
4126 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
4127
2e2bbddb
JL
41282010-05-20 Juri Linkov <juri@jurta.org>
4129
4130 * fileio.c (Fdelete_file): Change interative spec to use
4131 `read-file-name' like in `find-file-read-args' where the default
4132 value is `default-directory' instead of `buffer-file-name'.
4133 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
4134
31c4aaf6
KR
41352010-05-20 Kevin Ryde <user42@zip.com.au>
4136
4137 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
4138 (Voverriding_terminal_local_map, Vsystem_key_alist)
4139 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
4140
9d5cf9b6
GM
41412010-05-20 Glenn Morris <rgm@gnu.org>
4142
4143 * Makefile.in (DEPDIR): New constant.
4144 (DEPFLAGS): Set with configure, not cpp.
4145 (MKDEPDIR): New, set by configure.
4146 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
4147 (clean): Use $DEPDIR.
4148 (deps_frag): Include from configure.
4149 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
4150 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
4151
ead6f8f5
EZ
4152 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
4153 reallocation of the cache. (Bug#6210)
4154
7f34aec3
GM
41552010-05-19 Glenn Morris <rgm@gnu.org>
4156
d494e8f2
GM
4157 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
4158
c1d0dcfd
GM
4159 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
4160 (GNULIB_VAR): Remove.
4161 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
4162
4163 * m/ibms390x.h (LINKER):
4164 * m/macppc.h (LINKER) [GNU_LINUX]:
4165 * s/aix4-2.h (ORDINARY_LINK):
4166 * s/cygwin.h (LINKER):
4167 * s/darwin.h (ORDINARY_LINK):
4168 * s/gnu.h (ORDINARY_LINK):
4169 * s/netbsd.h (LINKER):
4170 * s/usg5-4.h (ORDINARY_LINK):
4171 Move to configure.
4172
7f34aec3
GM
4173 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
4174
754790b6
CY
41752010-05-18 Chong Yidong <cyd@stupidchicken.com>
4176
4177 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
4178 prevent stack overflow if number of arguments is too large
4179 (Bug#6214).
4180
161e44d1
JB
41812010-05-18 Juanma Barranquero <lekktu@gmail.com>
4182
4183 * charset.c (load_charset_map_from_file): Don't call close after fclose.
4184
be4ff9da
GM
41852010-05-18 Glenn Morris <rgm@gnu.org>
4186
9539dc5d
GM
4187 * s/gnu-linux.h: Combine two conditionals.
4188
4189 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
4190 $(POST_ALLOC_OBJ).
4191
40dc6bf4
GM
4192 * Makefile.in (RALLOC_OBJ): New, set by configure.
4193 (rallocobj): Replace with the previous variable.
4194 (otherobj): Use $RALLOC_OBJ.
4195
4196 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
4197 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
4198
be4ff9da
GM
4199 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
4200 (gmallocobj, vmlimitobj): Replace with previous two variables.
4201 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
4202
16455a85
GM
42032010-05-17 Glenn Morris <rgm@gnu.org>
4204
4205 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
4206 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
4207
5fdb7468
GM
42082010-05-16 Glenn Morris <rgm@gnu.org>
4209
7ca1f3f9
GM
4210 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
4211
7541dad5
GM
4212 * Makefile.in (clean): Get rid of HAVE_NS conditional.
4213
da53fab9
GM
4214 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
4215 trailing "/".
4216
b02a6645
GM
4217 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
4218 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
4219
8877ca0f
GM
4220 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
4221 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
4222 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
4223 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
4224 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
4225
5fdb7468
GM
4226 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
4227 Remove ${STARTFLAGS}, nothing ever sets it.
4228
95adb4b1
DN
42292010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
4230
4231 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
4232
676b6304
GM
42332010-05-16 Glenn Morris <rgm@gnu.org>
4234
9beab9ce
GM
4235 * Makefile.in (LIBX_BASE): Always define.
4236
8a95f0e7
GM
4237 * Makefile.in (LIBX_OTHER): Move out of cpp section.
4238
676b6304
GM
4239 * Makefile.in (LIBXT): Always define.
4240
6e546d18
GM
42412010-05-15 Glenn Morris <rgm@gnu.org>
4242
4235ca47 4243 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 4244
6e546d18
GM
4245 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
4246 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
4247
8c5ff6dd
KR
42482010-05-15 Ken Raeburn <raeburn@raeburn.org>
4249
560bb7ae 4250 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
4251 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
4252
8b4eb796
KR
4253 * emacs.c (main): Initialize initial-environment and
4254 process-environment before generating from env, not after.
4255
8c5ff6dd
KR
4256 Handle --version reasonably in CANNOT_DUMP configuration.
4257 * emacs.c (emacs_version, emacs_copyright): New string variables.
4258 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
4259 (syms_of_emacs): Defvar them, and initialize them from the C
4260 string variables.
4261 (main): If initialization hasn't been done, print initial version
4262 info from the C strings, instead of starting an interactive session.
4263
dbd3f723
EZ
42642010-05-15 Eli Zaretskii <eliz@gnu.org>
4265
d20e1419
EZ
4266 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
4267 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
4268 (bidi_paragraph_init): Remove redundant assertion that we are at
4269 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
4270
4271 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
4272 (syms_of_xdisp): Defsubr it.
4273
d36fe237
EZ
4274 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
4275
dbd3f723
EZ
4276 * Makefile.in: Fix MSDOS-related comments.
4277
02be533b
GM
42782010-05-15 Glenn Morris <rgm@gnu.org>
4279
1a82cca9
GM
4280 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
4281 (really-lwlib, really-oldXMenu): Always define.
4282 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
4283
3df7b338
GM
4284 * Makefile.in: Simplify cpp conditional.
4285
2b5f541b
GM
4286 * Makefile.in (${ns_appdir}): Simplify using umask.
4287
02be533b
GM
4288 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
4289
4e2db1fe
SM
42902010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
4291
4292 * eval.c (specbind): Remove left-over duplicate test.
4293 Disallow let-binding frame-local vars. Add comment.
4294
4b292a22
EZ
42952010-05-14 Eli Zaretskii <eliz@gnu.org>
4296
2fe72643 4297 Make the cache of bidi iterator states dynamically allocated.
1edbd309 4298 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
4299 (bidi_init_it): Call it.
4300 (bidi_cache_iterator_state): Enlarge the cache if needed.
4301
4e2db1fe 4302 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
4303 bidi_get_next_char_visually. All callers changed.
4304
82ebc97b
KH
43052010-05-14 Kenichi Handa <handa@m17n.org>
4306
4307 * dispextern.h (struct composition_it): New member reversed_p.
4308
4309 * composite.c (composition_compute_stop_pos): Search backward if
4310 ENDPOS < CHARPOS.
4311 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
4312 Set CMP_IT->reversed_p.
b4b6e17e 4313 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 4314
4e2db1fe
SM
4315 * xdisp.c (set_iterator_to_next):
4316 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
4317 scanning backward. Call composition_compute_stop_pos if scan
4318 direction is changed.
4319 (next_element_from_buffer): Call composition_compute_stop_pos with
4320 negative ENDPOS if we are scanning backward.
4321 (next_element_from_composition): Pay attention to
4322 IT->cmp_it.reversed_p.
4323
0e5d7800
KH
43242010-05-14 Kenichi Handa <handa@m17n.org>
4325
560bb7ae 4326 * font.c (font_range): Return the range for the font found at first.
0e5d7800 4327
cb027b32
GM
43282010-05-14 Glenn Morris <rgm@gnu.org>
4329
177b0288
GM
4330 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
4331
fbc00890
GM
4332 * Makefile.in (mktime, X11, register): Move undefs to configure.
4333
f14d1dfd
GM
4334 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
4335 (MSDOS_X_OBJ): New variable.
4336 (MSDOS_SUPPORT_REAL): New constant.
4337 (MSDOS_SUPPORT): Set as a variable, not with cpp.
4338 (obj): Use MSDOS_X_OBJ.
4339 (lisp): Use MSDOS_SUPPORT as a variable.
4340
11842bd8
GM
4341 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
4342 (GPM_MOUSE_SUPPORT): Now it's a constant.
4343 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
4344 not cpp.
4345
489d31a4 4346 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 4347 (ns_appresdir): Remove, unused.
e20f1f07 4348
489d31a4
GM
4349 * Makefile.in (SHELL): Move outside cpp section.
4350
cb027b32
GM
4351 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
4352
5a903aa9
GM
43532010-05-13 Glenn Morris <rgm@gnu.org>
4354
3369c79f
GM
4355 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
4356 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
4357
d5e982a6
GM
4358 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
4359 HAVE_WINDOW_SYSTEM must be too.
4360
6192e163
GM
4361 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
4362 (lisp): Remove WINNT_SUPPORT.
4363
472c5d6b
GM
4364 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
4365 Let configure set these variables (to empty) in this case as well.
4366
0116466b
GM
4367 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
4368 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
4369
5a903aa9
GM
4370 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
4371 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
4372 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
4373 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
4374 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 4375 the values output by configure.
5a903aa9
GM
4376 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
4377
1a0d7c06
GM
43782010-05-12 Glenn Morris <rgm@gnu.org>
4379
b5457f14
GM
4380 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
4381 (LINKER_WAS_SPECIFIED): Remove.
4382
1a0d7c06
GM
4383 * Makefile.in (LIB_GCC): Set using configure, not cpp.
4384 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
4385 * m/arm.h (LIB_GCC) [GNU_LINUX]:
4386 * s/cygwin.h (LIB_GCC):
4387 * s/freebsd.h (LIB_GCC):
4388 * s/gnu-linux.h (LIB_GCC):
4389 * s/msdos.h (LIB_GCC):
4390 * s/netbsd.h (LIB_GCC):
4391 Move to configure.
4392
3ffd4615 43932010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
4394
4395 * ftfont.c: Fix incorrect parentheses of #if condition for
4396 definining M17N_FLT_USE_NEW_FEATURE.
4397
acddf8ae
GM
43982010-05-11 Glenn Morris <rgm@gnu.org>
4399
4400 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
4401 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
4402
ae5e04fa
EZ
44032010-05-10 Eli Zaretskii <eliz@gnu.org>
4404
4405 * xdisp.c (init_iterator): Don't turn on bidi reordering in
4406 unibyte buffers. See
4407 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
4408
7490175b
GM
44092010-05-10 Glenn Morris <rgm@gnu.org>
4410
97efb629
GM
4411 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
4412 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
4413 (LIBES): Use LIBS_SYSTEM as a variable.
4414 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
4415 * s/aix4-2.h (LIBS_SYSTEM):
4416 * s/freebsd.h (LIBS_SYSTEM):
4417 * s/hpux10-20.h (LIBS_SYSTEM):
4418 * s/sol2-6.h (LIBS_SYSTEM):
4419 * s/unixware.h (LIBS_SYSTEM):
4420 Move to configure.
4421
7490175b
GM
4422 * s/aix4-2.h (MAIL_USE_LOCKF):
4423 * s/bsd-common.h (MAIL_USE_FLOCK):
4424 * s/darwin.h (MAIL_USE_FLOCK):
4425 * s/gnu-linux.h (MAIL_USE_FLOCK):
4426 * s/irix6-5.h (MAIL_USE_FLOCK):
4427 * s/template.h (MAIL_USE_FLOCK):
4428 Move to configure.
4429
0235128c 44302010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
4431
4432 * Version 23.2 released.
4433
0235128c 44342010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
4435
4436 * composite.c (autocmp_chars): Save point as marker before calling
4437 auto-composition-function (Bug#5984).
4438
4439 * lisp.h (restore_point_unwind): Add prototype.
4440
4441 * fileio.c (restore_point_unwind): Remove static attribute.
4442
0235128c 44432010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
4444
4445 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
4446 new feature of libotf and m17n-flt.
0235128c
SM
4447 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
4448 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
4449 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
4450 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
4451 that OUT is NULL. Use OTF_drive_gsub_with_log and
4452 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
4453 OTF_drive_gpos.
4454 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
4455 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
4456 Setup mflt_enable_new_feature and mflt_try_otf.
4457
4721152c
J
44582010-05-08 Jan Djärv <jan.h.d@swipnet.se>
4459
4460 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
4461
4462 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
4463 box and toolbar (Bug #6139).
4464 (xg_create_tool_bar): Remove comment (Bug #6139).
4465 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
4466 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
4467
ee0a16cf
JB
44682010-05-08 Juanma Barranquero <lekktu@gmail.com>
4469
4470 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
4471 Update dependencies.
4472
96d79611
EZ
44732010-05-08 Eli Zaretskii <eliz@gnu.org>
4474
4475 * fringe.c (update_window_fringes): Set up truncation bitmaps for
4476 R2L lines.
4477
40c17879
GM
44782010-05-08 Glenn Morris <rgm@gnu.org>
4479
7b42b29f
GM
4480 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
4481
40c17879
GM
4482 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
4483 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
4484 (termcapobj): Replace with TERMCAP_OBJ.
4485 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
4486 (LIBES): Use LIBS_TERMCAP as a variable.
4487
4488 * s/freebsd.h (osreldate.h): No longer include, since this file
4489 does not use __FreeBSD_version any more.
4490
4491 * s/aix4-2.h (TERMINFO):
4492 * s/cygwin.h (TERMINFO):
4493 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4494 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
4495 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4496 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4497 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
4498 * s/irix6-5.h (TERMINFO):
4499 * s/netbsd.h (LIBS_TERMCAP):
4500 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
4501 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
4502 * s/usg5-4.h (TERMINFO):
4503 Move to configure.
4504
94b612ad
SM
45052010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
4506
4507 * eval.c (unbind_to): Don't unbind a local binding into the global
4508 binding when the local binding disappeared. Inversely, don't unbind
4509 a global binding into a newly created local binding.
4510 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
4511 can specify the frame to use, when applicable. Adjust callers.
4512
15e12598 45132010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 4514 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
4515
4516 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
4517
f724825e
EZ
45182010-05-07 Eli Zaretskii <eliz@gnu.org>
4519
5cba3209
EZ
4520 * w32fns.c: Include w32.h.
4521 (Fw32_shell_execute): Decode the error message before passing it
4522 to `error'. (Bug#6126)
4523
d16bdfc3
EZ
4524 * msdos.c (dos_set_window_size):
4525 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
4526 instead of `XSYMBOL (foo)->value'.
4527
59d93e87
EZ
45282010-05-07 Eli Zaretskii <eliz@gnu.org>
4529
9fdec8bc
EZ
4530 Fix the MS-DOS build, broken by autoconfiscation.
4531
4532 * Makefile.in: Don't use Make-style comments past the "start of
4533 cpp stuff" line.
4534 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
4535
4536 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
4537 edited directly by msdos/sed1v2.inp).
f724825e 4538
2f86b22b
GM
45392010-05-07 Glenn Morris <rgm@gnu.org>
4540
4541 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
4542 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
4543 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
4544 move out of cpp section.
4545 * s/freebsd.h (LD_SWITCH_SYSTEM):
4546 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
4547 * s/netbsd.h (LD_SWITCH_SYSTEM):
4548 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
4549
49ebbd65
DN
45502010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
4551
4552 Define LIB_STANDARD and START_FILES using autoconf.
4553 * s/usg5-4.h (LIB_STANDARD):
4554 * s/netbsd.h (START_FILES):
4555 * s/irix6-5.h (LIB_STANDARD):
4556 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
4557 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4558 * s/freebsd.h (START_FILES):
4559 * s/darwin.h (START_FILES):
4560 * s/cygwin.h (START_FILES):
4561 * s/aix4-2.h (LIB_STANDARD):
4562 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
4563 * Makefile.in (STARTFILES): Rename to START_FILES, define using
4564 autoconf, not cpp.
4565
d43c06d6
DN
45662010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
4567
28823648
DN
4568 Remove NEED_BSDTTY and NEED_UNISTD_H.
4569 * s/hpux10-20.h (NEED_BSDTTY): Remove.
4570 * s/aix4-2.h (NEED_UNISTD_H): Remove.
4571 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
4572 <sys/ptyio.h> and <unistd.h>.
4573
aca00430
DN
4574 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
4575
d43c06d6
DN
4576 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
4577 * s/gnu.h (START_FILES): Remove empty definition.
4578
3e56b11d
JD
45792010-05-06 Jan Djärv <jan.h.d@swipnet.se>
4580
4581 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
4582
e3cf0cde
GM
45832010-05-06 Glenn Morris <rgm@gnu.org>
4584
4585 * Makefile.in (CPP, LN_S): Remove unused variables.
4586
774b9a60
SM
45872010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
4588
4589 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
4590
4ab92842
LM
45912010-05-05 Lawrence Mitchell <wence@gmx.li>
4592
4593 * m/sparc.h: Fix typo in earlier change.
4594
178f2507
SM
45952010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4596
4597 Misc tweaks.
4598 * eval.c (Fdefvaralias): Remove unintended nested if.
4599 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
4600
80f00217 46012010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
4602
4603 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
4604
ef03a4e6
DN
46052010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4606
58eb6cf0
DN
4607 Remove BSD_PGRPS.
4608 * s/bsd-common.h (BSD_PGRPS): Remove undef.
4609 * s/gnu-linux.h (BSD_PGRPS): Remove.
4610 * term.c (dissociate_if_controlling_tty):
4611 * sysdep.c (narrow_foreground_group, widen_foreground_group)
4612 (init_sys_modes, reset_sys_modes):
4613 * emacs.c (main):
4614 * callproc.c (Fcall_process, child_setup): Remove code depending
4615 on BSD_PGRPS.
4616
ef03a4e6
DN
4617 Remove POSIX_SIGNALS.
4618 * s/usg5-4.h (POSIX_SIGNALS):
4619 * s/netbsd.h (POSIX_SIGNALS):
4620 * s/msdos.h (POSIX_SIGNALS):
4621 * s/ms-w32.h (POSIX_SIGNALS):
4622 * s/hpux11.h (POSIX_SIGNALS):
4623 * s/gnu.h (POSIX_SIGNALS):
4624 * s/gnu-linux.h (POSIX_SIGNALS):
4625 * s/freebsd.h (POSIX_SIGNALS):
4626 * s/darwin.h (POSIX_SIGNALS):
4627 * s/cygwin.h (POSIX_SIGNALS):
4628 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
4629 * s/unixware.h:
4630 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
4631 * process.c (create_process):
4632 * syssignal.h:
4633 * sysdep.c (wait_for_termination, init_signals):
4634 * process.c (create_process):
4635 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
4636 remove all code that assumes the contrary.
4637
49628785
GM
46382010-05-04 Glenn Morris <rgm@gnu.org>
4639
27a2cdfc
GM
4640 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
4641 variable.
4642 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4643 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
4644 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4645 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
4646 LD_SWITCH_SYSTEM_tmp.
4647 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
4648 New variables, set by configure.
4649
eb21eab5
GM
4650 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4651 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
4652 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4653 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
4654 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
4655
49628785
GM
4656 * s/aix4-2.h (C_SWITCH_SYSTEM):
4657 * m/alpha.h (C_SWITCH_MACHINE):
4658 Move to configure.in.
4659 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
4660 New variables, set by configure.
4661 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
4662 $c_switch_machine and $c_switch_system.
4663
7dff330b
DN
46642010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4665
4666 * s/hpux10-20.h (LIB_STANDARD): New definition.
4667 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
4668 on it, not used anymore.
4669
53967e09
CY
46702010-05-03 Chong Yidong <cyd@stupidchicken.com>
4671
4672 * eval.c (internal_condition_case_n): Rename from
4673 internal_condition_case_2.
4674 (internal_condition_case_2): New function.
4675
4676 * xdisp.c (safe_call): Use internal_condition_case_n.
4677
4678 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
4679 (internal_delete_file, Frename_file): Callers changed.
4680
4681 * buffer.c (Fkill_buffer):
4682 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
4683
4684 * lisp.h: Update prototypes.
4685
3dee6fdb
GM
46862010-05-03 Glenn Morris <rgm@gnu.org>
4687
4688 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
4689 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
4690 (LIBXT): Set with configure, not cpp.
4691 (LIBX): Remove.
4692 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
4693
a101e0fb
DN
46942010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4695
4696 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
4697 The FreeBSD is not needed, the default works, Solaris version is
4698 not needed, and the remaining case is not supported by configure.
4699
f63d0028
JD
47002010-05-02 Jan Djärv <jan.h.d@swipnet.se>
4701
4702 * xsmfns.c (CHDIR_OPT): New define.
4703 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
4704 restarting emacs.
4705
4706 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
4707 shut_down_emacs.
4708
4709 * emacs.c (USAGE1): Mention --chdir.
4710 (main): Handle --chdir.
4711 (standard_args): Add --chdir.
4712 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
4713 #5552).
4714
e4814a9f
DN
47152010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
4716
cd03c74a
DN
4717 Remove LD_SWITCH_MACHINE.
4718 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
4719 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
4720
c3a398a1
DN
4721 Clean up IRIX code.
4722 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
4723 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
4724
87e7285c
DN
4725 Clean up AIX code.
4726 * m/ibmrs6000.inp: Remove file, unused.
4727 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
4728 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
4729 definition ...
4730 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
4731
80f00217
JB
4732 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
4733 unused.
e4814a9f 4734
59ca28de
EZ
47352010-05-01 Eli Zaretskii <eliz@gnu.org>
4736
197daef4
EZ
4737 Emulate POSIX_SIGNALS on MS-Windows.
4738
4739 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
4740 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
4741
4742 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
4743 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
4744 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
4745
80f00217
JB
4746 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
4747 New stubs.
197daef4 4748
af7c7572
EZ
4749 Miscellaneous fixes of bidi display.
4750
59ca28de
EZ
4751 * xdisp.c (find_row_end): New function, refactored from display_line.
4752 (display_line): Use it.
017ea819
EZ
4753 (extend_face_to_end_of_line): In almost-filled rows, extend only
4754 if the row is R2L and not continued.
166e930d 4755 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 4756 Preserve overlay and string info in row->end.
166e930d
EZ
4757 (insert_left_trunc_glyphs): Support addition of left truncation
4758 glyphs to R2L rows.
b47e0dcf 4759 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
4760 glyph between adjacent windows. Fix a crash when a display string
4761 is continued to the next line. Don't return zero if cursor was
4762 found by `cursor' property of a display string.
b47e0dcf
EZ
4763 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
4764 test for that explicitly.
59ca28de 4765
7acac9f4
GM
47662010-05-01 Glenn Morris <rgm@gnu.org>
4767
4768 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
4769 for clarity.
4770 (OTHER_OBJ): Remove.
4771 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
4772 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
4773
45841e65
KK
47742010-05-01 Karel Klíč <kklic@redhat.com>
4775
4776 * fileio.c (Ffile_selinux_context): Context functions may return null.
4777
afc61943
DN
47782010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
4779
80f00217 4780 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 4781
5a1bb006
GM
47822010-04-30 Glenn Morris <rgm@gnu.org>
4783
4784 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
4785 (OTHER_OBJ): Define as a separate variable, for clarity.
4786
210af043
J
47872010-04-30 Jan Djärv <jan.h.d@swipnet.se>
4788
4789 * xsettings.c: include limits.h and update file comment.
4790
0a7df391
GM
47912010-04-30 Glenn Morris <rgm@gnu.org>
4792
d5096f16
GM
4793 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
4794 Set with configure, not cpp.
4795 (LIBW): Remove, replace with $TOOLKIT_LIBW.
4796
7eb1ac33
GM
4797 * Makefile.in (mallocobj): Remove.
4798 (otherobj): Simplify using @OTHER_OBJ@.
4799
517d086b
GM
4800 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
4801 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
4802 Don't bother making nsgui.h dependency platform-specific.
4803
0a7df391
GM
4804 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
4805
d6d23852
SM
48062010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
4807
d2630aef
SM
4808 * process.c (read_process_output, exec_sentinel): Don't burp if the
4809 sentinel/filter kills the current buffer (bug#6060).
4810
f9dddf52 4811 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
4812 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
4813 Remove unused var `args'.
4814 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
4815 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
4816 * doc.c (store_function_docstring): Use XSETCAR.
4817
f1e3642a
GM
48182010-04-28 Glenn Morris <rgm@gnu.org>
4819
faf535f8
GM
4820 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
4821 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
4822
c40f9449
GM
4823 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
4824
658f86ca
GM
4825 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
4826 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
4827
bc0b5f61
GM
4828 * Makefile.in (FONT_OBJ): New, set by configure.
4829 (FONT_DRIVERS): Use $FONT_OBJ.
4830
294c50a0
GM
4831 * Makefile.in (LIBXMU): Set with configure, not cpp.
4832 * s/aix4-2.h (LIBXMU):
4833 * s/hpux10-20.h (LIBXMU):
4834 Remove definition, now set in configure.
4835
e6ec4e99
GM
4836 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
4837
f1e3642a
GM
4838 * m/amdx86-64.h [i386]: Move this test to configure.in.
4839
c6ea2936
GM
48402010-04-27 Glenn Morris <rgm@gnu.org>
4841
8fdac2c3
GM
4842 * Makefile.in (LIBXTR6): Set with configure, not cpp.
4843 * s/unixware.h (NEED_LIBW): Remove definition.
4844
986fb647
GM
4845 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
4846 (TOOLKIT_LIBW): New, set by configure.
4847 (@X_TOOLKIT_TYPE@): No longer define it.
4848
c6ea2936
GM
4849 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
4850 (MOTIF_LIBW): Set with configure, not cpp.
4851 * s/aix4-2.h (LIB_MOTIF):
4852 * s/gnu-linux.h (LIB_MOTIF):
4853 * s/unixware.h (LIB_MOTIF): Move to configure.in.
4854
aaa36002
DN
48552010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
4856
4857 Reduce CPP usage.
4858 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
4859 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
4860 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
4861 definitions and undefs. Inline definitions in the only user.
4862 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 4863
b678dd8b
GM
48642010-04-27 Glenn Morris <rgm@gnu.org>
4865
76cda504
GM
4866 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
4867 since the defaults (set by the system file) are fine in most cases.
4868 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
4869 * m/ibms390x.h (START_FILES, LIB_STANDARD):
4870 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
4871 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
4872 Remove definitions, since they are set correctly in s/gnu-linux.h.
4873 * s/freebsd.h (START_FILES, LIB_STANDARD):
4874 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4875 * s/hpux10-20.h (START_FILES):
4876 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
4877 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
4878
b678dd8b
GM
4879 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
4880 (MOTIF_LIBW): Use $LIBXP.
4881 (otherobj): Use $WIDGET_OBJ.
4882
9452ded1
DN
48832010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
4884
7e10844c
DN
4885 * Makefile.in (LIBS_MACHINE): Remove, unused.
4886
9452ded1
DN
4887 Use autoconf instead of cpp for LIB_MATH.
4888 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
4889 * s/cygwin.h (LIB_MATH): Likewise.
4890 * Makefile.in (LIB_MATH): Do not define with cpp.
4891 (LIBES): Use autoconf for LIB_MATH.
4892
fcebfc6a
KH
48932010-04-26 Kenichi Handa <handa@m17n.org>
4894
4895 * composite.c (Ffind_composition_internal): Fix the return value
4896 for an automatic composition.
4897
39e2ad1b
DN
48982010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
4899
4900 Remove all NO_ARG_ARRAY uses.
4901 * fns.c (concat2, concat3, nconc2):
4902 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
4903 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
4904 * m/xtensa.h (NO_ARG_ARRAY):
4905 * m/template.h (NO_ARG_ARRAY):
4906 * m/sparc.h (NO_ARG_ARRAY):
4907 * m/sh3.h (NO_ARG_ARRAY):
4908 * m/mips.h (NO_ARG_ARRAY):
4909 * m/macppc.h (NO_ARG_ARRAY):
4910 * m/iris4d.h (NO_ARG_ARRAY):
4911 * m/intel386.h (NO_ARG_ARRAY):
4912 * m/ibms390x.h (NO_ARG_ARRAY):
4913 * m/ibms390.h (NO_ARG_ARRAY):
4914 * m/ibmrs6000.h (NO_ARG_ARRAY):
4915 * m/ia64.h (NO_ARG_ARRAY):
4916 * m/hp800.h (NO_ARG_ARRAY):
4917 * m/arm.h (NO_ARG_ARRAY):
4918 * m/amdx86-64.h (NO_ARG_ARRAY):
4919 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
4920
adf4f59c
EZ
49212010-04-25 Eli Zaretskii <eliz@gnu.org>
4922
6bdf5d65
EZ
4923 * xdisp.c (display_line): Don't assume 2nd call to
4924 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
4925 (iterate_out_of_display_property): New function, body from pop_it.
4926 (pop_it): Use it.
adf4f59c 4927
dfbbda83
GM
49282010-04-24 Glenn Morris <rgm@gnu.org>
4929
4930 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
4931 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
4932 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
4933 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
4934
2d4018aa
EZ
49352010-04-24 Eli Zaretskii <eliz@gnu.org>
4936
a49884a6
EZ
4937 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
4938 use `get_next_display_element' and `set_iterator_to_next' to
4939 advance to the next character, when looking for the character that
4940 begins the next row.
4941
76db6fcc 4942 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
4943 definition of "struct Lisp_Symbol".
4944
70eab5c1
GM
49452010-04-24 Glenn Morris <rgm@gnu.org>
4946
4947 * Makefile.in (CRT_DIR): New variable, set by configure.
4948 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
4949 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
4950
1ad4cc3d
DN
49512010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4952
e769f484
DN
4953 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
4954
4196ff33
DN
4955 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
4956
879b0ee4
DN
4957 Remove redundant flags.
4958 * s/freebsd.h (C_SWITCH_SYSTEM):
4959 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
4960 * s/netbsd.h (C_SWITCH_SYSTEM):
4961 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
4962 of these.
4963
03cbbcb8
DN
4964 Simplify m/intel386.h.
4965 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
4966 user: ecrt0.c.
4967 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
4968 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
4969 the only user: s/unixware.h.
4970 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
4971 from m/intel386.h.
4972 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
4973 moved here from m/intel386.h.
4974
1ad4cc3d
DN
4975 * m/mips.h: Remove #if 0 code.
4976
8785b888
EZ
49772010-04-23 Eli Zaretskii <eliz@gnu.org>
4978
728588cc
EZ
4979 Fix display of composed characters from L2R scripts in bidi buffers.
4980 * xdisp.c (set_iterator_to_next, next_element_from_composition):
4981 After advancing IT past the composition, resync the bidi iterator
4982 with IT's position. (Bug#5977)
4983
a63f80b4
DN
49842010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4985
4986 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
4987 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
4988
ff5dec5c
SM
49892010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
4990
4991 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
4992
8785b888
EZ
49932010-04-23 Eli Zaretskii <eliz@gnu.org>
4994
58ccf243 4995 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
4996 * xdisp.c (pop_it): When the stack is popped after displaying
4997 from a string, bidi-iterate to exit from the text portion covered
4998 by the `display' property or overlay. (Bug#5988, bug#5920)
4999
feeb1604
DN
50002010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5001
8e324eb6
DN
5002 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
5003 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
5004
809fcaba
DN
5005 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
5006 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
5007
ed710380
DN
5008 Simplify STARTFILES definition.
5009 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
5010 relying on Makefile.in to define it.
5011 * s/cygwin.h (START_FILES): Likewise.
5012 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
5013
feeb1604
DN
5014 Clean up Solaris code.
5015 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
5016 (LIB_MOTIF): Remove, configure takes care of this.
5017 (NOT_USING_MOTIF): Remove, unused.
5018 * xrdb.c: Remove #if 0-ed #include.
5019 (SYSV): Remove conditional for old SysV.
5020 * sysdep.c (closedir): Remove conditional code for Solaris,
5021 Solaris has closedir.
5022
a0d0b563
JD
50232010-04-22 Jan Djärv <jan.h.d@swipnet.se>
5024
5025 * xsettings.c (read_and_apply_settings): Check if current_font is
5026 NULL before strcmp (Bug#6001).
5027
56bae7c7
DN
50282010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
5029
5030 Clean up HP-UX files.
5031 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
5032 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
5033 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
5034 * s/hpux10-20.h: ... to the only user, here.
5035
372b7a95
EZ
50362010-04-21 Eli Zaretskii <eliz@gnu.org>
5037
5038 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
5039 use buffer-local values of paragraph-start and paragraph-separate.
5040 <paragraph_start_re, paragraph_separate_re>: Rename from
5041 fallback_paragraph_start_re and fallback_paragraph_separate_re.
5042 (Bug#5992)
5043
f904c0f9
JD
50442010-04-21 Jan Djärv <jan.h.d@swipnet.se>
5045
5046 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
5047 current_tool_bar_style are new.
5048 (store_config_changed_event): Rename from store_font_changed_event.
5049 (XSETTINGS_TOOL_BAR_STYLE): New define.
5050 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
5051 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
5052 HAVE_XFT.
5053 (something_changedCB): store_font_changed_event is now
c4cc8b9a 5054 store_config_changed_event.
f904c0f9
JD
5055 (parse_settings): Rename from parse_xft_settings. Read
5056 non-xft xsettings outside #ifdef HAVE_XFT.
5057 (read_settings): Renamed from read_xft_settings.
5058 (apply_xft_settings): Take current settings as parameter. Do not
5059 call read_(xft)_settings.
5060 (read_and_apply_settings): New function.
5061 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
5062 read_and_apply_settings if there are settings to be read.
5063 (init_xsettings): Renamed from init_xfd_settings.
5064 Call read_and_apply_settings unconditionally.
5065 (xsettings_initialize): Call init_xsettings.
5066 (Ftool_bar_get_system_style): New function.
5067 (syms_of_xsettings): Define Qmonospace_font_name and
5068 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 5069 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 5070 dynamic-setting.
31a01b90 5071 Move misplaced HAVE_GCONF
f904c0f9
JD
5072
5073 * xsettings.h (Ftool_bar_get_system_style): Declare.
5074
5075 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
5076 Qtext, Qboth, Qboth_horiz are new.
5077 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
5078 Vtool_bar_style, tool_bar_max_label_size.
5079
5080 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
5081
5082 * keyboard.c: QClabel is new.
5083 (parse_tool_bar_item): Take out QClabel from tool bar items.
5084 Try to construct a label if ther is no QClabel.
5085 (syms_of_keyboard): Intern :label as QClabel.
5086
5087 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
5088 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
5089 New.
5090
5091 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
5092 dynamic-setting.el.
5093
5094 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
5095 (xg_make_tool_item, xg_show_toolbar_item): New function.
5096 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
5097 Call xg_make_tool_item to make a tool bar item.
5098 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
5099
5100 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
5101 into account for toolbars.
5102
c632dfda
JD
51032010-04-21 Jan Djärv <jan.h.d@swipnet.se>
5104
5105 * data.c (make_blv): Declarations before code (Bug#5993).
5106
10efe302
GM
51072010-04-21 Glenn Morris <rgm@gnu.org>
5108
5109 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
5110 Define using autoconf, not cpp.
5111 (LIBXSM): New variable, set by autoconf.
5112 (LIBXT): Use $LIBXSM.
5113
4285ac5a
DN
51142010-04-21 Dan Nicolaescu <local_user@dannlt>
5115
3ec759e7
DN
5116 Remove NOMULTIPLEJOBS, unused.
5117 * s/template.h (NOMULTIPLEJOBS):
5118 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
5119
4285ac5a
DN
5120 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
5121 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
5122 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
5123 detects -znocombreloc and passes it to the linker
5124 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
5125
2807228d
GM
51262010-04-21 Glenn Morris <rgm@gnu.org>
5127
5128 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
5129
574c05e2
KK
51302010-04-21 Karel Klíč <kklic@redhat.com>
5131
5132 * Makefile.in (LIBSELINUX_LIBS): New.
5133 (LIBES): Add $LIBSELINUX_LIBS.
5134 * eval.c, lisp.h (call7): New function.
5135 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
5136 (Ffile_selinux_context, Fset_file_selinux_context):
5137 New functions.
5138 (Fcopy_file): New parameter preserve-selinux-context.
5139 (Frename_file): Preserve selinux context when renaming by copy-file.
5140
91eac4bb 51412010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 5142 Eli Zaretskii <eliz@gnu.org>
91eac4bb 5143
50426a04
JB
5144 Don't depend on cm.c or termcap.c on Windows, use stubs.
5145 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
5146 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
5147 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
5148 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
5149 (sys_tputs, sys_tgetstr): New stubs.
5150 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
5151 (tputs, tgetstr): New; define to sys_*.
91eac4bb 5152
938efb77
JB
51532010-04-20 Juanma Barranquero <lekktu@gmail.com>
5154
5155 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
5156
b4bf28b7
SM
51572010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5158
8b1e1112
SM
5159 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
5160 Just signal a warning rather than an error when inside a let.
5161 (Fmake_variable_frame_local): Add the same test.
5162
933ac235
SM
5163 * font.c (syms_of_font): Make the style table vars read-only.
5164
b4bf28b7
SM
5165 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
5166 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
5167
5168 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
5169
93d68d0c
EZ
51702010-04-20 Eli Zaretskii <eliz@gnu.org>
5171
5172 Fix R2L paragraph display on TTY.
5173
5174 * xdisp.c (unproduce_glyphs): New function.
5175 (display_line): Use it when produced glyphs are discarded from R2L
5176 glyph rows.
5177 (append_composite_glyph): In R2L rows, prepend the glyph rather
5178 than appending it.
5179
5180 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
5181 rather than append it. Set up the resolved_level and bidi_type
5182 attributes of the appended glyph.
283ccc18
EZ
5183 (produce_special_glyphs): Mirror the backslash continuation
5184 character in R2L lines.
93d68d0c 5185
283ccc18 5186 Implement display of R2L paragraphs in GUI sessions.
26cdf528 5187
283ccc18
EZ
5188 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
5189 append_stretch_glyph.
5190 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
5191 off-by-one error in computing x at end of text in the row.
5192 (append_stretch_glyph): In reversed row, prepend the glyph rather
5193 than append it. Set resolved_level and bidi_type of the glyph.
5194 (extend_face_to_end_of_line): If the row is reversed, prepend a
5195 stretch glyph whose width is such that the rightmost glyph will be
5196 drawn at the right margin of the window. Fix off-by-one error on
5197 TTY frames in testing whether a line needs face extension. Fix
5198 face extension at ZV. If this is the last glyph row, use
5199 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
5200 region face.
5201 (set_cursor_from_row, display_line): Use
26cdf528
EZ
5202 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
5203 row->continuation_lines_width.
283ccc18
EZ
5204 (next_element_from_buffer): Don't call bidi_paragraph_init if we
5205 are at ZV. Fixes a crash when reseated to ZV by
5206 try_window_reusing_current_matrix.
45903529
EZ
5207 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
5208 which happens with R2L glyph rows. Fixes a crash when inserting a
5209 character at end of an R2L line.
283ccc18
EZ
5210 (set_cursor_from_row): Don't be fooled by truncated rows: don't
5211 treat them as having zero-width characters. Improve comments.
5212 Don't reverse pos_before and pos_after for reversed glyph rows.
5213 Set cursor.x to negative value when the cursor might be on the
5214 left fringe.
5215 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
5216 left fringe, not the right one.
f951a506
EZ
5217 (notice_overwritten_cursor, draw_phys_cursor_glyph)
5218 (erase_phys_cursor): For reversed cursor_row, support cursor on
5219 the left fringe.
5220
283ccc18
EZ
5221 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
5222 of continuation indicators on the fringes.
5223 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
5224 left fringe.
5225
f951a506
EZ
5226 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
5227 draw cursor on the left fringe.
5228
5229 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
5230 cursor on the left fringe.
5231
f951a506
EZ
5232 * dispnew.c (update_text_area): Handle reversed desired rows when
5233 the cursor is on the left fringe.
5234 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
5235 below, not by 0, for when the cursor is on the left fringe.
5236
3bb49aaf
JD
52372010-04-20 Jan Djärv <jan.h.d@swipnet.se>
5238
5239 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
5240 widget is a scrollbar.
5241
c0be27fd
KH
52422010-04-20 Kenichi Handa <handa@m17n.org>
5243
5244 * charset.c (char_charset): Consider Vcharset_non_preferred_head
5245 only when the arg CHARSET_LIST is nil.
5246
ce5b453a
SM
52472010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5248
5249 Make variable forwarding explicit rather the using special values.
5250 Basically, this makes the structure of buffer-local values and object
5251 forwarding explicit in the type of Lisp_Symbols rather than use
5252 special Lisp_Objects for that. This tends to lead to slightly more
5253 verbose code, but is more C-like, simpler, and makes it easier to make
5254 sure we handled all cases, among other things by letting the compiler
5255 help us check it.
5256 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
5257 Removing forwarding objects.
5258 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
5259 (struct Lisp_Symbol): Make the various forms of variable-forwarding
5260 explicit rather than hiding them inside Lisp_Object "values".
5261 (XFWDTYPE): New macro.
5262 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
5263 (XBUFFER_LOCAL_VALUE): Remove.
5264 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
5265 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
5266 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
5267 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
5268 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
5269 Remove the Lisp_Misc_* header.
5270 (struct Lisp_Buffer_Local_Value): Redefine.
5271 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
5272 (struct Lisp_Misc_Any): Add filler to get the right size.
5273 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
5274 Lisp_Intfwd.
5275 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
5276 (DEFVAR_KBOARD): Allocate a forwarding object.
5277 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
5278 (let_shadows_global_binding_p): New function.
5279 (union Lisp_Val_Fwd): New type.
5280 (make_blv): New function.
5281 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
5282 (store_symval_forwarding, swap_in_global_binding, Fboundp)
5283 (swap_in_symval_forwarding, find_symbol_value, Fset)
5284 (let_shadows_buffer_binding_p, set_internal, default_value)
5285 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
5286 (Fkill_local_variable, Fmake_variable_frame_local)
5287 (Flocal_variable_p, Flocal_variable_if_set_p)
5288 (Fvariable_binding_locus):
5289 * xdisp.c (select_frame_for_redisplay):
5290 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
5291 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
5292 * frame.c (store_frame_param):
5293 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
5294 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
5295 value structure.
5296 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
5297 (clone_per_buffer_values): Only adjust markers into the current buffer.
5298 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
5299 (Fbuffer_local_value, set_buffer_internal_1)
5300 (swap_out_buffer_local_variables):
5301 Adapt to the new symbol value structure.
5302 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
5303 (defvar_per_buffer): Take a new arg for the fwd object.
5304 (buffer_lisp_local_variables): Return a proper alist (different fix
5305 for bug#4138).
5306 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
5307 (Fgarbage_collect): Don't handle buffer_defaults specially.
5308 (mark_object): Handle new symbol value structure rather than the old
5309 special Lisp_Misc_* objects.
5310 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
5311 * term.c (set_tty_color_mode):
5312 * bidi.c (bidi_initialize): Don't access the ->value field directly.
5313 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
5314 a buffer_local_flags.
5315 * print.c (print_object): Get rid of impossible forwarding objects.
5316
fd3998ff
EZ
53172010-04-19 Eli Zaretskii <eliz@gnu.org>
5318
5319 * bidi.c (bidi_get_type, bidi_get_category)
5320 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
5321 (bidi_type_of_next_char, bidi_level_of_next_char):
5322 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 5323
e42cd1a7
JB
53242010-04-19 Juanma Barranquero <lekktu@gmail.com>
5325
5326 * dired.c (Ffile_attributes): Fix typo in docstring.
5327
6e104790 53282010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
5329
5330 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
5331 NSInteger (Bug#5811).
5332
6e104790 53332010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
5334
5335 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
5336 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
5337
6e104790 53382010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
5339
5340 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
5341
6e104790
SM
53422010-04-19 Chong Yidong <cyd@stupidchicken.com>
5343
5344 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
5345 terminal frames (Bug#5837).
5346
37dcfea0
EZ
53472010-04-19 Eli Zaretskii <eliz@gnu.org>
5348
d1da276f
EZ
5349 * .gdbinit (xsubchartable): New command.
5350
37dcfea0
EZ
53512010-04-19 Eli Zaretskii <eliz@gnu.org>
5352
5353 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 5354 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
5355 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
5356 and
5357 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
5358
e9515805
SM
53592010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
5360
5361 * alloc.c (Fpurecopy): Hash-cons if requested.
5362 (syms_of_alloc): Update purify-flag docstring.
5363
22aa44a8
JD
53642010-04-18 Jan Djärv <jan.h.d@swipnet.se>
5365
5366 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
5367 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
5368
ebb5722e
EZ
53692010-04-17 Eli Zaretskii <eliz@gnu.org>
5370
5371 Fix a crash when an NSM character is inserted at BEGV.
5372
5373 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
5374 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
5375 NEUTRAL_B or UNKNOWN_BT.
5376
0f4442ef
EZ
53772010-04-16 Eli Zaretskii <eliz@gnu.org>
5378
5379 * xdisp.c (set_cursor_from_row): Don't consider possibility of
5380 other rows with cursor unless they are different from this row and
5381 this row is part of a continued line. (Bug#5943)
5382
7d4e45f8
DN
53832010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
5384
5385 * s/freebsd.h: Restore osreldate.h include.
5386 Suggested by Naohiro Aota.
5387
5ba5ec85
J
53882010-04-16 Jan Djärv <jan.h.d@swipnet.se>
5389
5390 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
5391
20af301d
CY
53922010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
5393
5394 * s/cygwin.h: Avoid linking against static libgcc.
5395
a4b000fb
JL
53962010-04-15 Juri Linkov <juri@jurta.org>
5397
5398 * window.c: Add Qscroll_command.
5399 Remove Vscroll_preserve_screen_position_commands.
5400 (window_scroll_pixel_based, window_scroll_line_based): Check the
5401 `scroll-command' property on the last command instead of searching
5402 the last command in Vscroll_preserve_screen_position_commands.
5403 (syms_of_window): Initialize and staticpro `Qscroll_command'.
5404 Put Qscroll_command property on Qscroll_up and Qscroll_down.
5405 (scroll-preserve-screen-position): Doc fix.
5406 (Vscroll_preserve_screen_position_commands): Remove variable.
5407
bc319ba4
DN
54082010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5409
6bb24457
DN
5410 * xdisp.c (message): Do not use NO_ARG_ARRAY.
5411
19d4c244
DN
54122010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
5413
5414 Reduce cpp use in Makefile.in.
5415 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
5416 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
5417 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
5418 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
5419 (CRT0_COMPILE): Remove, inline it in the only user.
5420
32129746
JL
54212010-04-14 Juri Linkov <juri@jurta.org>
5422
5423 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
5424 `scroll-up-command' and `M-v' from `scroll-down' to
5425 `scroll-down-command'.
5426
9013a7f8
JL
54272010-04-14 Juri Linkov <juri@jurta.org>
5428
5429 * window.c (Vscroll_preserve_screen_position_commands): New variable
5430 with the default value as the list of Qscroll_down and Qscroll_up.
5431 (window_scroll_pixel_based, window_scroll_line_based): Search the
5432 last command in the list Vscroll_preserve_screen_position_commands
5433 instead of comparing with Qscroll_up and Qscroll_down.
5434
4bef8d26
JD
54352010-04-13 Jan Djärv <jan.h.d@swipnet.se>
5436
92848133
JD
5437 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
5438 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
5439 does that.
5440
4bef8d26
JD
5441 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
5442 to zero.
5443
58b963f7
SM
54442010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5445
84164a0d
SM
5446 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
5447
2b0a91e7
SM
5448 Try to solve the problem of spurious EOF chars in long lines of text
5449 sent to interactive subprocesses.
5450 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
5451 (system_process_attributes): Remove unused var `ttotal'.
5452 * process.c (send_process): Don't bother breaking long line with EOF
5453 chars when talking to ttys any more.
5454 (wait_reading_process_output): Output a warning when called in such
5455 a way that it could block without being interruptible.
5456
58b963f7
SM
5457 Try to detect file modification within the same second.
5458 * buffer.h (struct buffer): New field modtime_size.
5459 * buffer.c (reset_buffer): Initialize it.
5460 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
5461 (Fverify_visited_file_modtime): Check it.
5462 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
5463 (Fset_visited_file_modtime): Set (or clear) it.
5464
01f5787b
SM
54652010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
5466
5467 * process.c (status_notify): Remove unused var `ro'.
5468
83725342
JD
54692010-04-12 Jan Djärv <jan.h.d@swipnet.se>
5470
5471 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
5472 more than one visual (Bug#5938).
5473
b9465836
DN
54742010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
5475
50426a04
JB
5476 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
5477 Undefine.
b9465836 5478
8d9c8ece
DN
54792010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
5480
b1f52161
DN
5481 Remove C_SWITCH_SYSTEM_TEMACS.
5482 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
5483 (malloc, realloc, free): Use emacs, not temacs for conditional
5484 definition.
5485
5486 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
5487 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
5488
8d9c8ece
DN
5489 Use autoconf, not cpp for some variables.
5490 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
5491 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
5492 (ALL_CFLAGS): Use them as make variables.
5493 (really-lwlib, really-oldXMenu): Do not pass them.
5494
1ecb2d3f
JD
54952010-04-11 Jan Djärv <jan.h.d@swipnet.se>
5496
5497 * xmenu.c (apply_systemfont_to_dialog): New.
5498 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
5499
3a4fa2f2
SM
55002010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
5501
97e53006
SM
5502 * process.c (exec_sentinel): Preserve current-buffer.
5503
3a4fa2f2
SM
5504 * process.c (read_process_output): Move the save-current-buffer to
5505 apply to both the filter and the non-filter branches.
5506
88df7221
DN
55072010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
5508
5509 * s/msdos.h (UNEXEC): New definition.
5510
5634ff85
YM
55112010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5512
6eff5c3d
YM
5513 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
5514 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
5515
5516 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
5517 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
5518 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
5519 TRY_WINDOW_CHECK_MARGINS.
5520
5521 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
5522 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
5523 width only when it is for padding.
5634ff85 5524
b13aef54
J
55252010-04-09 Jan Djärv <jan.h.d@swipnet.se>
5526
5527 * xfns.c (Fx_show_tip): Call try_window in a loop until
5528 fonts_changed_p is zero (Bug#2423).
5529
21d28484
EZ
55302010-04-08 Eli Zaretskii <eliz@gnu.org>
5531
5532 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
5533 the end of TEXT_AREA. (Bug#5856)
5534
0269ef77
JD
55352010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5536
5537 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
5538 HAVE_GCONF.
5539
5930fe97
EZ
55402010-04-08 Eli Zaretskii <eliz@gnu.org>
5541
5542 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
5543 prev.orig_type, for resolving type of NSM. (Bug#5858)
5544
99852628
JD
55452010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5546
5547 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
5548 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
5549 in current_font.
5550 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
5551 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
5552 New functions.
5553 (syms_of_xsettings): Initialize current_font.
5554 defsubr Sfont_get_system_normal_font.
99852628 5555
686b968e
JB
5556 * xsettings.h (Ffont_get_system_normal_font)
5557 (xsettings_get_system_normal_font): Declare.
99852628
JD
5558
5559 * xfns.c (extern xlwmenu_default_font): Remove.
5560 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
5561 to xlwmenu.c.
5562
5563 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
5564 menu items in UTF-8.
5565
5566 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
5567 (apply_systemfont_to_menu): New function.
5568 (set_frame_menubar, create_and_show_popup_menu): Call
5569 apply_systemfont_to_menu.
5570
7fc874c4
J
55712010-04-07 Jan Djärv <jan.h.d@swipnet.se>
5572
5573 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
5574 FRAME_LINE_TO_PIXEL_Y.
5575
5576 * xterm.c (x_set_window_size_1): Don't add border_width/height to
5577 pixelwidth/height.
5578
863bf481
DN
55792010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
5580
5e5a3b92
DN
5581 Simplify code for HP machines.
5582 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
5583 for GNU_LINUX, not needed.
5584 (UNEXEC, NEED_BSDTTY): Move definitions...
5585 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
5586
863bf481
DN
5587 * m/iris4d.h (UNEXEC): Move definition ...
5588 * s/irix6-5.h (UNEXEC): ... here.
5589
3e6bec3b
JD
55902010-04-04 Jan Djärv <jan.h.d@swipnet.se>
5591
5592 * xfns.c (set_machine_and_pid_properties): New function.
5593 (Fx_create_frame): Call set_machine_and_pid_properties.
5594
2912322b
SM
55952010-04-03 Eli Zaretskii <eliz@gnu.org>
5596
1502b819
EZ
5597 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
5598 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
5599 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
5600
2912322b
SM
5601 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
5602 in this function. (Bug#5703)
5603
56042010-04-03 Chong Yidong <cyd@stupidchicken.com>
5605
5606 * nsterm.h: Fix last change.
5607
c435b432
DN
56082010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
5609
a568f507
DN
5610 * m/intel386.h (NO_REMAP): Move definition ...
5611 * s/msdos.h (NO_REMAP): ... here.
5612
4cd9f6c2
DN
5613 * m/vax.h (CRT0_DUMMIES): Remove, unused.
5614
c435b432
DN
5615 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
5616 used on those platforms.
5617
42a2c622
DN
56182010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
5619
5620 Remove extern errno declarations.
5621 * xterm.c:
5622 * xrdb.c:
5623 * w32term.c:
5624 * unexec.c:
5625 * unexaix.c:
5626 * sysdep.c:
5627 * process.c:
5628 * lread.c:
5629 * keyboard.c:
5630 * floatfns.c:
5631 * filelock.c:
5632 * fileio.c:
5633 * emacs.c (main):
5634 * ecrt0.c:
5635 * dispnew.c:
5636 * callproc.c:
5637 * buffer.c: Remove errno extern declarations.
5638 * s/netbsd.h (NEED_ERRNO): Remove.
5639
8224f93d
DN
56402010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
5641
5642 Remove all uses of LIBX11_SYSTEM.
5643 * Makefile.in (LIBX11_SYSTEM): Remove.
5644 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
5645 instead.
5646
814062c7
EZ
56472010-04-01 Eli Zaretskii <eliz@gnu.org>
5648
ed68db4d
EZ
5649 Remove support for DJGPP v1.x (bug#5813).
5650
5651 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
5652 * s/msdos.h:
5653 * unexec.c (make_hdr, copy_text_and_data):
5654 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 5655 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
5656 (IT_set_terminal_modes, __write, _rename, gethostname)
5657 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
5658 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
5659 the value of __DJGPP__.
ed68db4d
EZ
5660 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
5661 compatibility code.
8224f93d
DN
5662 * lread.c:
5663 * gmalloc.c (memalign):
5664 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
5665 * emacs.c (main):
5666 * dosfns.c (init_dosfns):
ed68db4d
EZ
5667 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
5668
52f4d8d5
EZ
56692010-04-01 Eli Zaretskii <eliz@gnu.org>
5670
814062c7
EZ
5671 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
5672 string with `cursor' property comes from an `after-string'
5673 overlay. (Bug#5816)
5674
0dc2e11d
GM
56752010-04-01 Glenn Morris <rgm@gnu.org>
5676
5677 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
5678 Define as Makefile variables.
5679 (LIBX): Use above variables rather than directly using autoconf.
5680
1d29df59
DN
56812010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
5682
5683 Clean up BSD_SYSTEM use.
5684 * xterm.c:
5685 * process.c:
5686 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
5687 for including <sys/ioctl.h>.
5688 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
5689 code is only used for MSDOS.
5690
1546c559
JL
56912010-03-31 Juri Linkov <juri@jurta.org>
5692
5693 * image.c: Add `Qextension_data'.
5694 (syms_of_image): Initialize and staticpro `Qextension_data'.
5695 (Fimage_metadata): Rename from `Fimage_extension_data'.
5696 (gif_load): Put GIF extension data to the property
5697 `Qextension_data'.
5698
6521c534
CY
56992010-03-31 Chong Yidong <cyd@stupidchicken.com>
5700
5701 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
5702 * nsterm.h: Fix prototype.
5703
52c30783
EZ
57042010-03-31 Eli Zaretskii <eliz@gnu.org>
5705
5706 * xdisp.c (highlight_trailing_whitespace): Support highlight of
5707 trailing whitespace in right-to-left rows.
5708
855a0da7
SM
57092010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5710
5711 Get rid of the direct_output optimizations.
5712 * keyboard.c (nonundocount): Remove extern declaration.
5713 (command_loop_1): Remove brittle optimisation for cheap and
5714 common operations.
5715 * xdisp.c (redisplay_internal): Don't bother checking
5716 redisplay_performed_directly_p any more.
5717 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
5718 any more.
5719 * dispnew.c (redisplay_performed_directly_p)
5720 (direct_output_for_insert, direct_output_forward_char):
5721 * dispextern.h (redisplay_performed_directly_p)
5722 (direct_output_for_insert, direct_output_forward_char): Remove.
5723 * cmds.c (nonundocount): Make it static.
5724
85738751 57252010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
5726
5727 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
5728
85738751 57292010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
5730
5731 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
5732 invisible (Bug#5766).
5733
85738751 57342010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 5735
855a0da7
SM
5736 * xdisp.c (x_consider_frame_title, update_window_cursor):
5737 Remove HAVE_NS conditionals.
194d44e7 5738 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
5739
5740 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
5741 filename for the title.
5742 (ns_set_doc_edited): Do nothing if the selected window is a
5743 minibuffer window.
5744
5745 * nsterm.h: Add prototypes for ns_set_name_as_filename and
5746 ns_set_doc_edited.
5747
5748 * nsterm.m: Remove unneeded prototype.
5749
85738751 57502010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
5751
5752 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
5753 in the DOC file. (Bug#5336)
5754
85738751 57552010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
5756
5757 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
5758
75d1428c
SM
57592010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5760
5761 * window.c (keys_of_window): Remove redundant/overridden bindings.
5762
82043cfb
EZ
57632010-03-30 Eli Zaretskii <eliz@gnu.org>
5764
5765 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
5766 Restore original behavior when the iterator is not bidi_p.
5767
b5dd0ae7
DN
57682010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5769
5770 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
5771
bd924a5d
EZ
57722010-03-30 Eli Zaretskii <eliz@gnu.org>
5773
5774 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
5775 are outside the range of cached character positions.
5776
3580374b
JB
57772010-03-30 Juanma Barranquero <lekktu@gmail.com>
5778
5779 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
5780
a7b02820
EZ
57812010-03-30 Eli Zaretskii <eliz@gnu.org>
5782
5783 Initial support for bidirectional editing.
5784
5785 * Makefile.in (obj): Include bidi.o.
5786 (bidi.o): New target.
5787
5788 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
5789 ($(BLD)/bidi.$(O)): New target.
5790
5791 * bidi.c: New file.
5792
5793 * buffer.h (struct buffer): New members bidi_display_reordering
5794 and bidi_paragraph_direction.
5795
5796 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
5797 and bidi_paragraph_direction.
5798 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
5799 and bidi-paragraph-direction.
5800 (Fbuffer_swap_text): Swap the values of
5801 bidi_display_reordering and bidi_paragraph_direction.
5802
5803 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
5804 (bidi_type_t, bidi_dir_t): New types.
5805 (bidi_saved_info, bidi_stack, bidi_it): New structures.
5806 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
5807 prev_stop, base_level_stop, and eol_pos.
5808 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
5809 (IT_STACK_SIZE): Enlarge to 5.
5810 (struct glyph_row): New member reversed_p.
5811 <string_buffer_position>: Update prototype.
5812 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
5813 glyph_row if bidi_it.paragraph_dir == R2L.
5814 (struct glyph): New members resolved_level and bidi_type.
5815
5816 * dispnew.c (direct_output_forward_char): Give up if we need bidi
5817 processing or buffer's direction is right-to-left.
5818 (prepare_desired_row): Preserve the reversed_p flag.
5819 (row_equal_p): Compare the reversed_p attributes as well.
5820
5821 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
5822 bidi_init_it and set it->paragraph_embedding from the current
5823 buffer's value of bidi_paragraph_direction.
5824 (reseat_1): Initialize bidi_it.first_elt.
5825 (set_iterator_to_next, next_element_from_buffer): Use the value of
5826 paragraph_embedding to determine the paragraph direction.
5827 (set_iterator_to_next): Under bidi reordering, call
5828 bidi_get_next_char_visually. Call bidi_paragraph_init if the
5829 new_paragraph flag is set in the bidi iterator.
5830 (next_element_from_buffer): If bidi_it.first_elt is set,
5831 initialize paragraph direction and find the first character to
5832 display in the visual order. If reseated to a middle of a line,
5833 prime the bidi iterator starting at the line's beginning. Handle
5834 the situation where we overstepped stop_charpos due to
5835 non-linearity of the bidi iteration. Likewise for when we back up
5836 beyond the previous stop_charpos. When moving across stop_charpos,
5837 record it in prev_stop.
5838 (display_line): Set row->end and it->start for the next row to the
5839 next character in logical order. Always extend reversed_p rows to
5840 the end of line, even if they end at ZV. Copy the reversed_p flag
5841 to the next glyph row. Keep calling set_cursor_from_row for
5842 bidi-reordered rows even if we already have a possible candidate
5843 for cursor position. Set row_end after all the row's glyphs have
5844 been produced, by looping over the glyphs. Record the position
5845 after EOL in it->eol_pos, and use it to set end_pos of the last
5846 row produced for a continued line.
5847 <Qright_to_left, Qleft_to_right>: New variables.
5848 (syms_of_xdisp): Initialize and staticpro them.
5849 (string_buffer_position_lim): New function.
5850 (string_buffer_position): Most of code moved to
5851 string_buffer_position_lim. Last argument and return value are
5852 now EMACS_INT; all callers changed.
5853 (set_cursor_from_row): Rewritten to support bidirectional text and
5854 reversed glyph rows.
5855 (text_outside_line_unchanged_p, try_window_id): Disable
5856 optimizations if we are reordering bidirectional text and the
5857 paragraph direction can be affected by the change.
5858 (append_glyph, append_composite_glyph)
5859 (produce_image_glyph, append_stretch_glyph): Set the
5860 resolved_level and bidi_type members of each glyph.
5861 (append_glyph): If the glyph row is reversed, prepend the glyph
5862 rather than appending it.
5863 (handle_stop_backwards): New function.
5864 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
5865 (reseat): call handle_stop_backwards to recompute prev_stop and
5866 base_level_stop for the new position.
5867 (handle_invisible_prop): Under bidi iteration, skip invisible text
5868 using bidi_get_next_char_visually. If we are `reseat'ed, init the
5869 paragraph direction. Update IT->prev_stop after skipping
5870 invisible text.
5871 (move_it_in_display_line_to): New variables prev_method
5872 and prev_pos. Compare for strict equality in
5873 BUFFER_POS_REACHED_P.
5874 (try_cursor_movement): Examine all the candidate rows that occlude
5875 point, to return the best match. If rows are bidi-reordered
5876 and point moved backwards, back up to the row that is not a
5877 continuation line, and start looking for a suitable row from
5878 there.
5879
5880 * term.c (append_glyph): Reverse glyphs by pre-pending them,
5881 rather than appending, if the glyph_row's reversed_p flag is set.
5882 Set the resolved_level and bidi_type members of each glyph.
5883
5884 * .gdbinit (pbiditype): New command.
5885 (pgx): Use it to display bidi level and type of the glyph.
5886 (pitx): Display some bidi information about the iterator.
5887 (prowlims, pmtxrows): New commands.
5888
32a8894e
DN
58892010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5890
5891 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
5892 * s/usg5-4.h (LIBS_DEBUG):
5893 * s/irix6-5.h (C_DEBUG_SWITCH):
5894 * s/gnu-linux.h (LIBS_DEBUG):
5895 * s/darwin.h (LIBS_DEBUG):
5896 * s/bsd-common.h (LIBS_DEBUG):
5897 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
5898 * m/iris4d.h (LIBS_DEBUG):
5899 * m/hp800.h (LIBS_DEBUG): Remove definitions.
5900
5901 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
5902 (LIBS_DEBUG): Remove definition.
5903
649dbf36
CY
59042010-03-27 Chong Yidong <cyd@stupidchicken.com>
5905
5906 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
5907 Windows.
5908
cad4261f
YM
59092010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5910
5911 * process.c (Fmake_network_process): Don't call turn_on_atimers around
5912 `connect' (Bug#5723).
5913
cd591dbc
HE
59142010-03-25 Helmut Eller <eller.helmut@gmail.com>
5915
5916 * process.c (Fmake_network_process): Call `select' for interrupted
5917 `connect' rather than creating new socket (Bug#5173).
5918
e867cb5d 59192010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
5920
5921 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
5922
5923 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
5924
5925 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
5926
e867cb5d 59272010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
5928
5929 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
5930 XLoadQueryFont.
5931
e867cb5d 59322010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
5933
5934 * coding.c (decode_coding_ccl): Fix previous change for the
5935 multibyte case.
fb608df3
KH
5936 (encode_coding_ccl): Don't setup ccl program here. Fix for the
5937 case that the output buffer is fullfilled.
5938 (encode_coding): Setup ccl program here.
fbdc1721 5939
5845f0ed
DN
59402010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
5941
814fb708
DN
5942 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
5943
5845f0ed
DN
5944 Simplify LIBS_MACHINE definitions.
5945 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
5946 * m/iris4d.h (LIBS_MACHINE): Likewise.
5947 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
5948 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 5949 * s/netbsd.h: Remove commented out code.
5845f0ed 5950
b7064064
DN
59512010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
5952
df7734b2
DN
5953 Remove dead code dealing with POSIX_SIGNALS.
5954 * atimer.c (set_alarm): Remove dead code, all USG systems define
5955 POSIX_SIGNALS.
5956 * data.c (arith_error): Likewise.
5957 * keyboard.c (input_available_signal, handle_user_signal)
5958 (interrupt_signal): Likewise.
5959 * process.c (sigchld_handler): Likewise.
5960 (create_process): Remove if 0 code. Remove HPUX conditional when
5961 !defined (POSIX_SIGNALS), it cannot be true.
5962 * syssignal.h: Remove USG5_4 and USG conditionals when
5963 !POSIX_SIGNALS, they cannot be true.
5964
b7064064
DN
5965 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
5966 NO_SOCK_SIGIO, not used anymore.
5967
55da5ee3
DN
59682010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
5969
0be96e3a
DN
5970 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
5971 support vax on BSDs.
5972
55da5ee3
DN
5973 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
5974 * s/aix4-2.h (ORDINARY_LINK): ... here.
5975
c0282183
AS
59762010-03-21 Andreas Schwab <schwab@linux-m68k.org>
5977
82c3d67a
AS
5978 * Makefile.in (abs_builddir): Define.
5979 (bootstrap_exe): Use it.
5980 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 5981
3613edce
SM
59822010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
5983
5984 * Makefile.in (bootstrap_exe): Use an absolute name.
5985
7f110ddc
DN
59862010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5987
22e87574
DN
5988 Remove support for old GNU/Linux using libc version 5.
5989 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
5990 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
5991
05a670e6
DN
5992 Consolidate redundant definitions in s/bsd-common.h.
5993 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5994 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5995 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
5996 doing it in all files that include this one.
5997 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5998 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5999 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6000 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6001 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6002 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6003 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6004 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6005 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6006
2968f561
DN
6007 Consolidate redundant definitions.
6008 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
6009 it's undefined in all files that include this one.
6010 (POSIX_SIGNALS): Define here instead of doing it in all files that
6011 include this one.
6012 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6013 (POSIX_SIGNALS): Do not define.
6014 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6015 (POSIX_SIGNALS): Do not define.
6016 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6017 (POSIX_SIGNALS): Do not define.
6018
15d25dc0
DN
6019 Remove support for old UNIX System V systems.
6020 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
6021 * s/usg-5-4-2.h: Remove.
6022
07e339e4
DN
6023 Remove support for Solaris on PPC and for old versions.
6024 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
6025 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
6026 that cancel each other.
6027 * s/sol2-3.h:
6028 * s/sol2-4.h:
6029 * s/sol2-5.h: Remove.
6030 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
6031 (NO_REMAP): Remove, unused.
6032 (UNEXEC): Move definition ...
6033 * s/aix4-2.h (UNEXEC): ... here.
6034
7f110ddc
DN
6035 * s/openbsd.h: Remove support for non-ELF and for systems that do
6036 not support shared libraries.
6037 * s/netbsd.h:
6038 * s/freebsd.h: Likewise.
6039
605f35cd
DN
60402010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6041
6042 Remove non-working support for lynxos 3.0.
6043 * s/lynxos.h: Remove file.
6044
6045 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
6046 COFF_BSD_SYMBOLS, nothing defines it anymore.
6047
aed71cf4
DN
60482010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6049
6050 Remove obsolete uses of HAVE_SHM.
6051 * emacs.c (standard_args):
6052 (Fdump_emacs):
6053 (syms_of_emacs): Remove code depending on HAVE_SHM.
6054
6055 * alloc.c: Remove HAVE_SHM dependent definition.
6056
6057 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
6058
aded53ff
GM
60592010-03-18 Glenn Morris <rgm@gnu.org>
6060
17284745
GM
6061 * emacs.c (USAGE4): Hard-code bug address.
6062 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
6063 (bug_reporting_address): Remove.
6064 (main): Don't call bug_reporting_address.
6065
aded53ff
GM
6066 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
6067 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
6068
303500aa
CY
60692010-03-15 Chong Yidong <cyd@stupidchicken.com>
6070
6071 * xfns.c (Fx_create_frame):
6072 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
6073 on left.
6074
cef3058f
CY
60752010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
6076
6077 * editfns.c (Fformat): Account for string precision when computing
6078 field width (Bug#5710).
6079
a647d59d
CY
60802010-03-12 Chong Yidong <cyd@stupidchicken.com>
6081
4fa42018
CY
6082 * xfns.c (Fx_create_frame): Set default to Qright.
6083
a647d59d
CY
6084 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
6085 all window systems.
6086
6da23aaa
EZ
60872010-03-12 Eli Zaretskii <eliz@gnu.org>
6088
a96f6398 6089 These changes remove termcap.c from the build on Posix platforms.
83d02def 6090 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
6091 (MSDOS_OBJ): ...to here.
6092 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
6093 now identical to when LIBS_TERMCAP is defined.
6094
6095 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
6096
6097 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
6098
a96f6398 6099 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 6100
288f9fc0
CY
61012010-03-10 Chong Yidong <cyd@stupidchicken.com>
6102
6103 * Branch for 23.2.
6104
d48cd3f4
SM
61052010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6106
6107 Cleanup setup of gl_state in various parts of the code.
6108 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
6109 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
6110 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
6111 (skip_chars):
6112 * regex.c (regex_compile): Use it.
6113 (re_compile_pattern): Don't set gl_state.current_syntax_table since
6114 it's now set in regex_compile when/if we need it.
6115
618db430
SM
61162010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
6117
c0335e02
SM
6118 Make it possible to C-g in a tight bytecode loop again (bug#5680).
6119 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
6120 (QUIT): Use it to consolidate code and remove redundancy.
6121 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
6122
254c06a8
SM
6123 * regex.c (regex_compile): Setup gl_state as well.
6124
618db430
SM
6125 * syntax.c (skip_chars): Setup gl_state (bug#3823).
6126 (in_classes): Use CONSP before XCAR/XCDR.
6127
233f0c9f
CY
61282010-03-03 Chong Yidong <cyd@stupidchicken.com>
6129
6130 * keymap.c (Fwhere_is_internal): Use Fequal to compare
6131 definitions, so that keyboard macros are correctly handled
6132 (Bug#5481).
6133
75f80e63
EZ
61342010-03-02 Eli Zaretskii <eliz@gnu.org>
6135
6136 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
6137 text that could be relocated inside the call to emacs_mule_char.
6138 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
6139 (CODING_DECODE_CHAR): Add a comment describing its purpose.
6140
dcfb9bc4
KH
61412010-03-02 Kenichi Handa <handa@m17n.org>
6142
fc9a17bc
KH
6143 * character.c (parse_str_as_multibyte): Fix handling of the
6144 multibyte form of raw-bytes.
6145 (str_as_multibyte): Likewise.
6146
dcfb9bc4
KH
6147 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
6148 form of raw-bytes.
6149
412c01b6
CY
61502010-02-28 Chong Yidong <cyd@stupidchicken.com>
6151
6152 * charset.c (load_charset_map_from_file)
6153 (load_charset_map_from_vector): Zero out allocated
6154 charset_map_entries before using them.
6155
df7e1ea0
AS
61562010-02-27 Andreas Schwab <schwab@linux-m68k.org>
6157
6158 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
6159
fe69a722
CY
61602010-02-27 Chong Yidong <cyd@stupidchicken.com>
6161
4ed28cf4
CY
6162 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
6163 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 6164
7379cfce
KH
61652010-02-26 Kenichi Handa <handa@m17n.org>
6166
f88cc4d6
KH
6167 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
6168
7379cfce
KH
6169 * xdisp.c (reseat_to_string): Fix previous change.
6170
cf2fdcfb
CY
61712010-02-26 David Reitter <david.reitter@gmail.com>
6172
6173 * nsfont.m (nsfont_draw): ns_antialias_text should be a
6174 Lisp_Object (Bug#4736).
6175
cc6c7c75
KH
61762010-02-25 Kenichi Handa <handa@m17n.org>
6177
6178 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
6179
32e737d7
JD
61802010-02-24 Jan Djärv <jan.h.d@swipnet.se>
6181
6182 * xterm.c (XTflash): Move declarations before statements.
6183
6184 * gtkutil.c (xg_get_gdk_display): Remove (unused).
6185 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
6186 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
6187 (xg_create_tool_bar): Remove unused variables.
6188 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 6189 (xg_create_frame_widgets): Remove variable grav.
32e737d7 6190
676cae9f
CY
61912010-02-21 Chong Yidong <cyd@stupidchicken.com>
6192
6193 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
6194
886cc2b8
SM
61952010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
6196
6197 * term.c (fatal): Add a final \n if needed (bug#5596).
6198
ddb2d8e2
CY
61992010-02-18 Chong Yidong <cyd@stupidchicken.com>
6200
6201 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
6202
2a4f8d3d
GM
62032010-02-18 Glenn Morris <rgm@gnu.org>
6204
6205 * callint.c (Finteractive): Doc fix.
6206
ebaf11b6
KH
62072010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
6208
886cc2b8
SM
6209 * coding.c (record_conversion_result):
6210 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
6211 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
6212 memory allocation error.
6213
d0396581
KH
62142010-02-17 Kenichi Handa <handa@m17n.org>
6215
886cc2b8
SM
6216 * coding.c (decode_coding_ccl): Don't setup ccl program here.
6217 Fix for the case that the output buffer is fullfilled.
d0396581
KH
6218 (decode_coding): Setup ccl program here. Keep looping when the
6219 decoder stopped because the output buffer is
6220 fullfilled (bug#5534).
6221
6222 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
6223
98599f74
JD
62242010-02-13 Jan Djärv <jan.h.d@swipnet.se>
6225
471e4f04 6226 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 6227 bug #5571.
886cc2b8 6228 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 6229 overdrawn.
98599f74 6230
182659ae
JD
62312010-02-10 Jan Djärv <jan.h.d@swipnet.se>
6232
6233 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
6234 doing_interact here.
6235 (ice_connection_closed): New function.
6236 (x_session_check_input, smc_die_CB, ice_io_error_handler)
6237 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
6238 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
6239 returns I/O error.
6240 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
6241 bug #5512.
6242
9be32c4e 62432010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
6244
6245 * nsfont.m (nsfont_open): The system's value for the font descent
6246 is negative, so round it down to avoid clipping.
6247
a2f3eb19
CY
62482010-02-06 Chong Yidong <cyd@stupidchicken.com>
6249
6250 * charset.c (load_charset_map_from_file)
6251 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 6252 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 6253
3088147c
CY
62542010-02-05 Chong Yidong <cyd@stupidchicken.com>
6255
6256 * charset.c (load_charset_map_from_file): Allocate large
6257 charset_map_entries structure on the heap rather than the stack.
6258 (Bug#5526).
6259
b57d9029
KH
62602010-01-31 Kenichi Handa <handa@m17n.org>
6261
6262 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 6263 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 6264
c67d885b
CY
62652010-01-31 Chong Yidong <cyd@stupidchicken.com>
6266
6267 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
6268 <deactivated@gmail.com> (Bug#3605).
6269
8fab2362
CY
62702010-01-31 David De La Harpe Golden <david@harpegolden.net>
6271
6272 * fileio.c (Frename_file): Correctly rename symlinks to
6273 directories (Bug#5496).
6274
cb2a62f2
CY
62752010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
6276
6277 * nsterm.m (ns_ring_bell): Handle visible bell like X.
6278
944c7a26
AS
62792010-01-30 Andreas Schwab <schwab@linux-m68k.org>
6280
6281 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
6282
c024ac08
CY
62832010-01-29 Chong Yidong <cyd@stupidchicken.com>
6284
6285 * frame.c (DEFAULT_ROWS): Change default to 35.
6286
6287 * xfns.c (x_default_font_parameter): Change default XFT font to
6288 monospace-10 (Bug#3643).
6289
af93af83
EZ
62902010-01-29 Eli Zaretskii <eliz@gnu.org>
6291
6292 * w32inevt.c (key_event): Remove unnecessary comparison of
6293 event->uChar.AsciiChar with 128.
6294
ca0eb708
CY
62952010-01-28 Chong Yidong <cyd@stupidchicken.com>
6296
b242dbfc
CY
6297 * fileio.c (Frename_file): Fix last change (Bug#5487).
6298
ca0eb708
CY
6299 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
6300
6301 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
6302
45d45af5
JD
63032010-01-28 Jan Djärv <jan.h.d@swipnet.se>
6304
6305 * xfns.c (Fx_create_frame): Remove window size matching code from
6306 2010-01-15.
a73f9c9d 6307 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 6308
7e233730
JR
63092010-01-27 Jason Rumney <jasonr@gnu.org>
6310
6311 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 6312 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 6313
86e893e3
KH
63142010-01-27 Kenichi Handa <handa@m17n.org>
6315
6316 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 6317 pattern string (Bug#4209).
86e893e3 6318
8719abec
CY
63192010-01-27 David De La Harpe Golden <david@harpegolden.net>
6320
6321 * fileio.c (Frename_file): Call copy-directory and
6322 delete-directory for directories, in order to handle cross-device
6323 renaming (Bug#3353).
6324
844794c8
JD
63252010-01-25 Jan Djärv <jan.h.d@swipnet.se>
6326
aa3e13b5 6327 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 6328 sizes 24 and 10. Bug #3643.
844794c8 6329
bd4b5750
SM
63302010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
6331
8dc1adf6 6332 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
6333 * keymap.c (shadow_lookup): Add `remap' arg.
6334 (describe_map, describe_vector): Update calls to shadow_lookup.
6335 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
6336 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
6337 perform remapping during shadow_lookup check of remapped_sequences.
6338
285d07e2
CY
63392010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
6340
6341 * image.c (png_load): Use png_sig_cmp instead of the obsolete
6342 png_check_sig, which has been removed in libpng 1.4.
6343
c6d09b8d
CY
63442010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
6345
6346 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
6347 lacks this header file).
6348
3d782998
YM
63492010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6350
6351 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
6352 as in Emacs 22.
6353
2aff7c53
YM
63542010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6355
6356 * lisp.h (make_pure_string): String pointer arg now points to const.
6357
6358 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
6359 args now point to const.
6360
74327f7a
EZ
63612010-01-22 Eli Zaretskii <eliz@gnu.org>
6362
6363 * lread.c (Fload): Don't treat files without .elc extension as
6364 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
6365 them. (bug#5303)
6366
4d1e6632
KH
63672010-01-20 Kenichi Handa <handa@m17n.org>
6368
6369 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
6370 treat the source as actual byte sequence.
6371
1fdede8f
AM
63722010-01-19 Alan Mackenzie <acm@muc.de>
6373
6374 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 6375 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
6376 `signal_after_change_p' to `coherent_change_p', and make the
6377 invocation of `modify_region' conditional on it.
6378
67477f30
JD
63792010-01-19 Jan Djärv <jan.h.d@swipnet.se>
6380
6381 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
6382 for debug purpose.
6383 (syms_of_xsettings): Declare xft-settings.
6384
244b023e
CY
63852010-01-18 Chong Yidong <cyd@stupidchicken.com>
6386
6387 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
6388
617364fe
CY
63892010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
6390
6391 * xterm.c (event_handler_gdk): Block input (Bug#5037).
6392
4fe22cdf
CY
63932010-01-16 Chong Yidong <cyd@stupidchicken.com>
6394
6395 * emacs.c (standard_args): Adjust arg priorities to reflect how
6396 they are processed in startup.el.
6397
e118d2be
AS
63982010-01-16 Andreas Schwab <schwab@linux-m68k.org>
6399
6400 * Makefile.in (lisp, shortlisp): Update.
6401
523ae620
SM
64022010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
6403
6404 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
6405 code, link the new kboard into all_kboard before running Lisp code,
6406 and protect the new terminal with GCPRO (Bug#5365).
6407 (x_term_init): Remove unused var `atom'.
6408 (x_delete_display, x_delete_terminal): Remove unused var `i'.
6409
f0d13888
JD
64102010-01-15 Jan Djärv <jan.h.d@swipnet.se>
6411
6412 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
6413 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
6414 to find out usable size of the desktop. Don't make frames larger than
ac146f82 6415 this. Bug #3643.
f0d13888 6416
cc320f07
KH
64172010-01-15 Kenichi Handa <handa@m17n.org>
6418
6419 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
6420
7ffdf101
CY
64212010-01-15 Chong Yidong <cyd@stupidchicken.com>
6422
6423 * nsterm.m (Qnone): Define.
6424
6425 * nsfns.m (Qnone): Move definition to nsterm.m.
6426
d12bd917
KH
64272010-01-14 Kenichi Handa <handa@m17n.org>
6428
6429 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
6430 systems.
6431
d9a7c140
KH
64322010-01-14 Kenichi Handa <handa@m17n.org>
6433
6434 Make auto-composition work on all buffers even if they are
6435 fundamental mode.
6436
6437 * composite.c (Vauto_composition_mode): New variable.
6438 (composition_compute_stop_pos): Check Vauto_composition_mode
6439 instead of Vauto_composition_function.
6440 (composition_adjust_point, Ffind_composition_internal): Likewise.
6441 (syms_of_composite): Declare Lisp variable
6442 "auto-composition-mode" here.
6443
63286bb2
CY
64442010-01-13 Chong Yidong <cyd@stupidchicken.com>
6445
6446 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
6447 during call to vendor-specific-keysyms (Bug#5365).
6448
c2623ee7
YM
64492010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6450
6451 * keyboard.c (input_available_signal) [SYNC_INPUT]:
6452 Call SIGNAL_THREAD_CHECK (Bug#5333).
6453
6454 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
6455 Call SIGNAL_THREAD_CHECK.
6456
0b5397c2
SM
64572010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
6458
6459 Try to fix bug#5314. This is probably not the final word, tho.
6460 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
6461 recent-auto-save-p as a side-effect.
6462 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
6463 * buffer.c (Fkill_buffer, reset_buffer):
6464 * editfns.c (Fsubst_char_in_region):
6465 * fileio.c (Finsert_file_contents, Fdo_auto_save)
6466 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
6467
dc954cb2
KH
64682010-01-13 Kenichi Handa <handa@m17n.org>
6469
6470 Display buffer name, etc. in mode line by composing correctly.
6471
6472 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
6473 STRING is not nil.
0b5397c2 6474 (display_mode_element): Adjust for the change of
dc954cb2
KH
6475 decode_mode_spec and display_line.
6476 (decode_mode_spec): Change arg MULTIBYTE to STRING.
6477 (display_string): Handle the case that STRING is non-null and
6478 LISP_STRING is not nil.
6479
0b5397c2
SM
6480 * xterm.c (x_draw_composite_glyph_string_foreground):
6481 Pay attention to s->face->overstrike.
dc954cb2
KH
6482
6483 * composite.c (composition_reseat_it): Don't check PT if STRING is
6484 non nil.
6485
4a00eaca
YM
64862010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6487
6488 * keyboard.c (read_char): Don't apply previous change when current
6489 buffer is unchanged by command execution.
6490
60abb287
JD
64912010-01-12 Jan Djärv <jan.h.d@swipnet.se>
6492
6493 * keyboard.c (read_char): Return after executing from special map.
6494
893db5bc
GM
64952010-01-12 Glenn Morris <rgm@gnu.org>
6496
6497 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
6498 bug-gnu-emacs rather than emacs-pretest-bug.
6499
4d03ece0
CY
65002010-01-11 Chong Yidong <cyd@stupidchicken.com>
6501
6502 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
6503 initializing the Lisp variables that depend on them.
6504
1df47e38
YM
65052010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6506
6507 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
6508 Clear areas that will not be updated after change of menu bar lines.
6509 Clear the menu bar window's current matrix when the window gets empty.
6510
2f1c6384
CY
65112010-01-09 Chong Yidong <cyd@stupidchicken.com>
6512
e398c61c
CY
6513 * intervals.h, textprop.c (extend_property_ranges): Return value
6514 and args changed. Discard properties that begin at or after the
6515 new end (Bug#5306).
6516
6517 * editfns.c (Fformat): Caller changed.
6518
e5a29a10
CY
6519 * nsterm.m (ns_set_default_prefs): Delete function.
6520 (syms_of_nsterm): Initialize ns_command_modifier,
6521 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
6522 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
6523
2f1c6384
CY
6524 * xdisp.c (pos_visible_p): Check for invisible text at the correct
6525 position (Bug#4040).
6526
d427a9fa
EZ
65272010-01-09 Eli Zaretskii <eliz@gnu.org>
6528
6529 * editfns.c (Ffloat_time): Doc fix.
6530
21b9df2f
JD
65312010-01-09 Jan Djärv <jan.h.d@swipnet.se>
6532
6533 * xfns.c (Fx_create_frame): Don't create frame larger than display
6534 by default bug#3643.
6535
4b00d3b1
YM
65362010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6537
6538 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
6539 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
6540 windows above internal border.
6541
6542 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
6543 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
6544 windows above internal border.
6545
6546 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
6547 tool bar windows specially.
6548
6549 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
6550
6551 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
6552 specially.
6553 (XTflash): Take account of menu bar height.
6554
6555 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
6556 specially.
6557
5075d853
JD
65582010-01-08 Jan Djärv <jan.h.d@swipnet.se>
6559
ac146f82 6560 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
6561 also be true before we can return early (bug #5339).
6562
474217c8
CY
65632010-01-06 David Reitter <david.reitter@gmail.com>
6564
6565 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
6566 (Fns_display_usable_bounds): Rewrite, computing bounds properly
6567 (Bug#3233).
6568
c0e6d47d
JD
65692010-01-06 Jan Djärv <jan.h.d@swipnet.se>
6570
d0cf45b7
JD
6571 * font.c (font_open_entity): Enable chache and call cached_font_ok
6572 for the driver if defined.
6573 (QCuser_spec): New symbol.
6574 (font_spec_from_name): Save name as user-spec.
6575 (font_load_for_lface): Keep user-spec instead of name.
6576 (font_open_by_name): Save name as user-spec.
6577 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 6578 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
6579
6580 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
6581 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
6582 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
6583
6584 * font.h (struct font_driver): Add cached_font_ok.
6585
c0e6d47d
JD
6586 * xterm.c (x_clear_frame): Queue draw for scroll bars.
6587
7c583cd8
JD
65882010-01-05 Jan Djärv <jan.h.d@swipnet.se>
6589
6590 * xterm.c (x_new_font): Move code for setting rows/cols before
6591 resizing ...
ac146f82 6592 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
6593
6594 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
6595 (xg_frame_resized, xg_frame_set_char_size):
6596 Call xg_clear_under_internal_border.
7c583cd8 6597 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 6598
03f77f0a
CY
65992010-01-05 Chong Yidong <cyd@stupidchicken.com>
6600
6601 * keyboard.c (read_key_sequence): Catch keyboard switch after
6602 making a new tty frame (Bug#5095).
6603
2a1ef5be
KH
66042010-01-05 Kenichi Handa <handa@m17n.org>
6605
6606 * fontset.c (fontset_find_font): Fix getting the frame pointer.
6607
e3eb1dae
SM
66082010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
6609
6610 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
6611 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
6612 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
6613
777013f2
MA
66142010-01-03 Michael Albinus <michael.albinus@gmx.de>
6615
6616 * dbusbind.c (xd_add_watch): Improve debug message.
6617 (xd_remove_watch): Improve debug message. If DATA is the session
6618 bus, unset D-Bus session environment.
6619 (Fdbus_init_bus): Pass the bus as argument to
6620 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 6621
8932b1c2
CY
66222010-01-01 Chong Yidong <cyd@stupidchicken.com>
6623
87231e2c
CY
6624 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
6625
4801c5fa
CY
6626 * lread.c (syms_of_lread): Make it clearer that these are the
6627 names of loaded files (Bug#5068).
6628
8932b1c2
CY
6629 * eval.c (run_hook_with_args): Handle the case where the global
6630 value has the obsolete single-function form (Bug#5026).
6631
11e3c684
CY
66322009-12-27 Chong Yidong <cyd@stupidchicken.com>
6633
6634 * minibuf.c (Fall_completions): Minor optimization.
6635
5b28ce35
EZ
66362009-12-26 Eli Zaretskii <eliz@gnu.org>
6637
5ce6e4f4
JB
6638 * .gdbinit (pgx): Fix display of composite glyphs.
6639 Display cmp.from and cmp.to as well.
6640 (pitx): Fix last change.
5b28ce35 6641
bcffff46
KH
66422009-12-25 Kenichi Handa <handa@m17n.org>
6643
6644 * composite.h (composition_adjust_point): Update prototype.
6645
6646 * composite.c (composition_reseat_it): Don't make a composition
6647 spanning over point.
6648 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
6649 composable characters.
6650 (composition_adjust_point): New arg NEW_PT. Callers changed.
6651
6652 * keyboard.c (command_loop_1): Force redisplay if the last point
6653 was within a composition.
6654 (adjust_point_for_property): Don't adjust point for automatic
6655 composition when called after buffer modification.
6656
3f670e9a
EZ
66572009-12-19 Eli Zaretskii <eliz@gnu.org>
6658
5ce6e4f4
JB
6659 * .gdbinit (pitx): Don't use enum names, use their values.
6660 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
6661 (pgx): Don't use enum names, use their values.
6662 (pitmethod): New helper command.
6663 (pitx): Use it to display iteration method.
6664 (pgrowit): New command.
6665
ad903955
EZ
6666 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
6667
3f670e9a
EZ
6668 Update dependencies in Makefile.in.
6669
6670 * Makefile.in (alloc.o): Depend on termhooks.h.
6671 (atimer.o): Depend on blockinput.h.
6672 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
6673 and frame.h.
6674 (callint.o): Depend on systime.h, coding.h, and composite.h.
6675 (callproc.o): Depend on buffer.h.
6676 (casefiddle.o): Don't depend on charset.h.
6677 (casetab.o): Depend on character.h.
6678 (ccl.o): Depend on composite.h.
6679 (chartab.o): Depend on ccl.h.
6680 (cm.o): Depend on dispextern.h.
6681 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
6682 (coding.o): Don't depend on $(INTERVALS_H).
6683 (composite.o): Don't depend on dispextern.h explicitly (it's in
6684 $(INTERVALS_H)). Depend on ccl.h.
6685 (data.o): Depend on systime.h, coding.h, composite.h,
6686 dispextern.h, font.h, and ccl.h.
6687 (dired.o): Depend on composite.h.
6688 (dispnew.o): Depend on coding.h. Don't depend explicitly on
6689 composite.h (it's in $(INTERVALS_H)).
6690 (doc.o): Depend on systime.h, coding.h, and composite.h.
6691 (editfns.o): Don't depend explicitly on dispextern.h.
6692 (emacs.o): Depend on frame.h and coding.h.
6693 (eval.o): Depend on coding.h, composite.h, and xterm.h.
6694 (fileio.o): Depend on frame.h and commands.h. Don't depend
6695 explicitly on dispextern.h.
6696 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
6697 composite.h.
6698 (fns.o): Don't depend on termhooks.h.
6699 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
6700 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
6701 coding.h, $(INTERVALS_H), window.h, xterm.h.
6702 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
6703 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
6704 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
6705 fontset.h, ccl.h, and ftfont.h.
6706 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6707 (gtkutil.o): Depend on dispextern.h and composite.h.
6708 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
6709 termhooks.h, and ccl.h.
6710 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
6711 (intervals.o): Depend on systime.h and coding.h.
6712 (keyboard.o): Depend on composite.h and coding.h.
6713 (keymap.o): Depend on coding.h and frame.h.
6714 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
6715 (macros.o): Depend on systime.h, coding.h, and composite.h.
6716 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
6717 and atimer.h.
6718 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
6719 dispextern.h explicitly.
0b5397c2
SM
6720 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
6721 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
6722 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
6723 (regex.o): Don't depend on charset.h.
6724 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
6725 (search.o): Don't depend explicitly on composite.h.
6726 (sound.o): Depend on atimer.h and systime.h.
6727 (syntax.o): Don't depend explicitly on composite.h.
6728 (sysdep.o): Depend on coding.h and composite.h.
6729 (term.o): Depend on xterm.h and buffer.h.
6730 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
6731 (textprop.o): Don't depend on dispextern.h explicitly.
6732 (undo.o): Depend on dispextern.h.
6733 (window.o): Depend on coding.h and termhooks.h. Don't depend on
6734 dispextern.h and composite.h explicitly.
6735 (xdisp.o): Depend on ccl.h.
6736 (xfaces.o): Depend on coding.h and ccl.h.
6737 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
6738 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6739 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
6740 ftfont.h.
6741 (xgselect.o): New dependency.
6742 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
6743 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
6744 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
6745 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
6746 (xsmfns.o): Depend on frame.h and dispextern.h.
6747 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
6748 sysselect.h.
6749
7a6f7fea
AS
67502009-12-19 Andreas Schwab <schwab@linux-m68k.org>
6751
6752 * font.c (Fclear_font_cache): Pass correct cache argument to
6753 font_clear_cache.
6754
f4c21026
AS
67552009-12-16 Andreas Schwab <schwab@linux-m68k.org>
6756
6757 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
6758 twice.
6759
f7ab0997
CY
67602009-12-15 Chong Yidong <cyd@stupidchicken.com>
6761
6762 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
6763 calling file-remote-p. Reported by Jim Meyering.
6764
fa8e045a
MA
67652009-12-15 Michael Albinus <michael.albinus@gmx.de>
6766
6767 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 6768 avoid compiler warnings. (Bug #5217)
fa8e045a 6769
a63dba42
KH
67702009-12-14 Kenichi Handa <handa@m17n.org>
6771
6772 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
6773 in 8-bit encoding.
6774
5ce6e4f4 67752009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
6776
6777 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
6778 tooltip windows.
6779
223e5fc6
JD
67802009-12-13 Jan Djärv <jan.h.d@swipnet.se>
6781
36acb2a7
JD
6782 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
6783 Xatom_net_window_type.
6784
6785 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
6786 Xatom_net_window_type.
6787
b8f00677
JD
6788 * xterm.c (my_log_handler): New function.
6789 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 6790 so we can filter out buggy messages. (Bug #5120).
b8f00677 6791
e5f0bc9a
JD
6792 * xterm.c (xg_scroll_callback): Parameter list changed,
6793 use parameter GtkScrollType to determine scroll/line/page.
6794 Only allow dragging if a button < 4 is grabbed (bug #5177).
6795 (xg_end_scroll_callback): New function.
6796 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
6797 xg_create_scroll_bar.
6798
6799 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
6800 (scroll_end_callback): Remove.
6801 (xg_create_scroll_bar): Add parameter end_callback, bind it to
6802 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 6803 bug #5177.
e5f0bc9a
JD
6804 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
6805 bug #5177.
6806
6807 * gtkutil.h (XG_LAST_SB_DATA): Remove.
6808 (xg_create_scroll_bar): Add GCallback end_callback.
6809
223e5fc6
JD
6810 * xftfont.c (QClcdfilter): New variable.
6811 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
6812 (syms_of_xftfont): Initialize QClcdfilter.
6813
3c055b77
JD
68142009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6815
6816 * xsettings.c (struct xsettings): Add member seen.
6817 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 6818 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
6819 (apply_xft_settings): Only update Xft settings with what member seen
6820 indicates as new.
6821
05fe33ff
EZ
68222009-12-12 Eli Zaretskii <eliz@gnu.org>
6823
c4cc8b9a 6824 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
6825 (struct glyph): Use EMACS_INT for charpos.
6826 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
6827 region_beg_charpos, region_end_charpos,
6828 redisplay_end_trigger_charpos, and also for
6829 iterator_stack_entry.end_charpos and
6830 iterator_stack_entry.stop_charpos.
6831
e8d7886a
JD
68322009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6833
5ce6e4f4 6834 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
6835 (xg_create_scroll_bar): Call scroll_end_callback on button release
6836 event (bug #5177).
6837 (xg_event_is_for_scrollbar): != replaced with ==.
6838
d0db2ec8
KH
68392009-12-12 Kenichi Handa <handa@m17n.org>
6840
6841 * ftfont.c (struct ftfont_info): New member matrix.
6842 (ftfont_open): Setup xftfont_info->matrix.
6843 (MFLTFontFT): New member matrix.
6844 (FLOOR, CEIL, ROUND): New macros.
6845 (ftfont_get_metrics): Handle matrix transformation.
6846 (ftfont_shape_by_flt): New arg matrix. Callers changed.
6847
6848 * xftfont.c (struct xftfont_info): New member matrix.
6849 (xftfont_open): Setup xftfont_info->matrix.
6850
68512009-12-10 Kenichi Handa <handa@m17n.org>
6852
6853 * xdisp.c (append_space_for_newline): Consider face-remapping.
6854
2cc7b62f
AS
68552009-12-09 Andreas Schwab <schwab@linux-m68k.org>
6856
b87dd913
AS
6857 * xsettings.c: Include "keyboard.h".
6858
eba5eb94
AS
6859 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
6860
2cc7b62f
AS
6861 Fix implicit function declarations.
6862 * cmds.c: Include "frame.h".
6863 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
6864 * frame.h: Move declaration of delete_frame outside of
6865 HAVE_WINDOW_SYSTEM.
6866
a4ef73c8
CY
68672009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
6868
6869 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
6870
6871 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
6872 GTK builds.
6873
944a300c
AS
68742009-12-07 Andreas Schwab <schwab@linux-m68k.org>
6875
6876 * unexelf.c (unexec): Don't search for .data twice.
6877
022eef62
CY
68782009-12-05 Chong Yidong <cyd@stupidchicken.com>
6879
426ac949
CY
6880 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
6881 if push failed.
6882 (handle_line_prefix): Set avoid_cursor_p here. Check return value
6883 of push_display_prop (Bug#5000).
6884
022eef62
CY
6885 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
6886 value of font_list_entities (Bug#5085).
6887
be95bee9
JB
68882009-12-04 Juanma Barranquero <lekktu@gmail.com>
6889
6890 Fix `string-to-number' to deal consistently with integers and floats.
6891 * lread.c (isfloat_string): New argument ignore_trailing to accept all
6892 trailing characters, not just whitespace.
6893 (read1): Pass new arg 0 to keep old behavior.
6894 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
6895 trailing chars, as it is already done for integers. Doc fixes.
6896 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
6897
24c2d7ce
EZ
68982009-12-04 Eli Zaretskii <eliz@gnu.org>
6899
0b5397c2
SM
6900 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
6901 Delete unused enumeration value.
24c2d7ce 6902
7e694795
EZ
69032009-12-03 Eli Zaretskii <eliz@gnu.org>
6904
6905 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
6906
84b31826
SM
69072009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
6908
6909 * process.c (Fmake_network_process): Fix up the tests for
6910 "connectionless socket", so they DTRT for seqpacket sockets as well.
6911
f00c449b
SM
69122009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
6913
6914 * process.c (Qseqpacket): New symbol.
6915 (HAVE_SEQPACKET): New macro.
6916 (Fmake_network_process): Accept new :type `seqpacket'.
6917 (init_process): Add `seqpacket' feature when applicable.
6918 (syms_of_process): Initialize Qseqpacket.
6919
8096a0ff
YM
69202009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6921
6922 * font.c (font_load_for_lface, font_open_by_name): Don't store name
6923 if entity is Qnil.
6924
3e0de07f
SM
69252009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
6926
6927 * print.c (print_preprocess): Preprocess the key_and_value table of
6928 hashtables, even tho they're "hidden" (bug#5082).
6929
abeafb2a
JD
69302009-11-29 Jan Djärv <jan.h.d@swipnet.se>
6931
6932 * frame.c (frame_make_pointer_invisible)
6933 (frame_make_pointer_visible): Declare f before statements.
6934
4bf47195
EZ
69352009-11-28 Eli Zaretskii <eliz@gnu.org>
6936
6937 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
6938 omitted dependencies on lisp.h.
6939
c525b3f2
JD
69402009-11-27 Jan Djärv <jan.h.d@swipnet.se>
6941
ece2d4ed
JD
6942 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
6943 is NULL.
6944
6945 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
6946
6947 * frame.c (frame_make_pointer_invisible)
3e0de07f 6948 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
6949 frame.
6950
c525b3f2
JD
6951 * search.c (simple_search): Remove warning by making *p const.
6952
2f00e299
DN
69532009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
6954
6955 * xdisp.c (power_letter): Remove duplicate const.
6956
084b049b
JD
69572009-11-25 Jan Djärv <jan.h.d@swipnet.se>
6958
a1fadc6f
JD
6959 * term.c (delete_tty): Remove check for last terminal (bug#4970).
6960
5ce6e4f4 6961 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
6962 defaults (bug #5025).
6963
28259cac
SM
69642009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
6965
6966 * insdel.c (adjust_markers_for_delete): Move it in the
6967 right direction! (bug#4803)
6968
e8e14166
YM
69692009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6970
6971 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
6972
6973 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
6974
86677b58
GM
69752009-11-24 Glenn Morris <rgm@gnu.org>
6976
6977 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
6978
581e51e8
JD
69792009-11-23 Jan Djärv <jan.h.d@swipnet.se>
6980
cfc86c7a
JD
6981 * Makefile.in: Must create deps for ecrt0.o in its rule.
6982
581e51e8
JD
6983 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
6984 because that is what Gtk+ font dialog understands.
6985
6986 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
6987 of Fcopy_sequence.
6988 (font_open_by_name): Put name given into QCname for font-object returned.
6989
6990 * frame.c (x_set_font): Save original font name as frame parameter
6991 font-parameter.
6992
6993 * xsettings.c (set_default_xft_settings): New function.
6994 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
6995 is found.
6996
8b264ecb
AS
69972009-11-22 Andreas Schwab <schwab@linux-m68k.org>
6998
6999 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
7000 searching backwards through multibyte buffer.
7001
872870b2
JD
70022009-11-21 Jan Djärv <jan.h.d@swipnet.se>
7003
7004 * xterm.c: #include xgselect.h.
7005 (x_initialize): Call xgselect_initialize.
7006
7007 * xsettings.c (something_changedCB): C++ comments => C comments.
7008 (init_gconf): Do not deal with any GLib file descriptors, xg_select
7009 does that now.
7010
7011 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
7012 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
7013 (scroll_bar_button_cb): Remove.
5ce6e4f4 7014 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
7015 event.
7016 (xg_create_scroll_bar): Don't bind button-press-event and
7017 button-release-event.
7018
7019 * process.c: Include xgselect.h if defined (USE_GTK) ||
7020 defined (HAVE_GCONF).
7021 (wait_reading_process_output): Call xg_select for the same condition.
7022
7023 * xgselect.c (xg_select): New function to better integrate with
7024 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
7025
7026 * xgselect.h: New file, declare xg_select, xgselect_initialize.
7027
7028 * Makefile.in (XOBJ): Add xgselect.o.
7029
62a6e103
AS
70302009-11-21 Andreas Schwab <schwab@linux-m68k.org>
7031
0b5397c2
SM
7032 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
7033 Remove ignored second argument. All callers changed.
62a6e103
AS
7034 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
7035 (RE_STRING_CHAR_AND_LENGTH): Likewise.
7036 * xdisp.c (string_char_and_length): Likewise.
7037
b0ca0f33
DN
70382009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
7039
7040 * xterm.c (x_new_font):
7041 * print.c (print_object):
7042 * cmds.c (Fself_insert_command): Move declarations before statements.
7043
dd5a6279
CY
70442009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
7045
7046 * s/cygwin.h: Remove unneeded linker flags.
7047
4a8e097d
JD
70482009-11-20 Jan Djärv <jan.h.d@swipnet.se>
7049
0d1d0d26
JD
7050 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
7051
7052 * xsettings.h: Declare xsettings_get_system_font.
7053
7054 * xsettings.c (xsettings_get_system_font): New function.
7055 (init_gconf): No use initiating gconf unless we have Xft also.
7056 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
7057 HAVE_GCONF.
7058
4a8e097d
JD
7059 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
7060 add a blank entry so it doesn't collapse into nothing.
7061
8ab1650e
SM
70622009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
7063
7064 * lread.c (Funintern): Comment out last change.
7065
82c602f0
RS
70662009-11-19 Richard Stallman <rms@gnu.org>
7067
7068 * lread.c (Funintern): Error if symbol is t or nil.
7069
87e32266
SM
70702009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
7071
7072 * insdel.c (make_gap_larger): Don't make as many assumptions about the
7073 representation of Lisp integers.
7074 Reported by MJ Chan <mjchan.inbox@gmail.com>.
7075
1b9ac145
AS
70762009-11-17 Andreas Schwab <schwab@linux-m68k.org>
7077
7078 * lisp.h: Remove declaration of Ffont_get_system_font.
7079 * xfns.c: Move include of "xsettings.h".
7080 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
7081
dfb3c4c6
JD
70822009-11-17 Jan Djärv <jan.h.d@swipnet.se>
7083
87e32266
SM
7084 * xsettings.c (something_changedCB, Ffont_get_system_font):
7085 Check use_system_font.
dfb3c4c6
JD
7086 (syms_of_xsettings): DEFVAR font-use-system-font.
7087
9370c1d8
AS
70882009-11-17 Andreas Schwab <schwab@linux-m68k.org>
7089
25fe851a
AS
7090 * xfns.c (x_default_font_parameter): Remove dead assignment.
7091
9370c1d8
AS
7092 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
7093
637fa988
JD
70942009-11-17 Jan Djärv <jan.h.d@swipnet.se>
7095
87e32266 7096 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 7097 not have FC_LCD_*. #define them if not there.
a6eb20d8 7098
87e32266 7099 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 7100
637fa988
JD
7101 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
7102
7103 * xterm.c (handle_one_xevent): Call xft_settings_event for
7104 ClientMessage, PropertyNotify and DestroyNotify.
7105 (x_term_init): If we have XFT, get DPI from Xft.dpi.
7106 Call xsettings_initialize.
7107
7108 * xftfont.c (xftfont_fix_match): New function.
7109 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
7110 Call xftfont_fix_match after XftFontMatch.
7111
7112 * xfont.c (xfont_driver): Initialize all members.
7113
87e32266
SM
7114 * xfns.c (x_default_font_parameter):
7115 Try font from Ffont_get_system_font.
637fa988
JD
7116 Do not get font from x_default_parameter if we got one from
7117 Ffont_get_system_font.
87e32266 7118 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
7119
7120 * w32font.c (w32font_driver): Initialize all members.
7121
7122 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
7123
7124 * lisp.h: Declare syms_of_xsettings.
7125
87e32266
SM
7126 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
7127 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
7128
7129 * ftfont.c (ftfont_filter_properties): New function.
7130
7131 * frame.c (x_set_font): Remove unused variable lval.
7132
87e32266 7133 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
7134
7135 * font.c (font_put_extra): Don't return if val is nil, it means
7136 boolean option is off.
7137 (font_parse_fcname): Collect all extra properties in extra_props
7138 and call filter_properties for all drivers with extra_props and
7139 font as parameter.
87e32266
SM
7140 (font_open_entity): Do not use cache, it does not pick up new
7141 fontconfig settings like hinting.
637fa988
JD
7142 (font_load_for_lface): If spec had a name in it, store it in entity.
7143
a73f9c9d 7144 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
7145
7146 * config.in: HAVE_GCONF is new.
7147
7148 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
7149 xsettings.o is new.
7150
5a942932
KH
71512009-11-17 Kenichi Handa <handa@m17n.org>
7152
7153 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
7154 back to the default font in case that no suitable font is found.
7155
b7c7a4d1
SM
71562009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
7157
7158 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
7159 Suggested by Chad Brown <yandros@mit.edu>.
7160 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
7161
072f1e39
JD
71622009-11-16 Jan Djärv <jan.h.d@swipnet.se>
7163
7164 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
7165
5d1e70a2
AS
71662009-11-14 Andreas Schwab <schwab@linux-m68k.org>
7167
87e32266 7168 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 7169
a53cfbe5
JD
71702009-11-14 Jan Djärv <jan.h.d@swipnet.se>
7171
473a99b7
JD
7172 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
7173 has a parent.
7174
a53cfbe5 7175 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 7176 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
7177
7178 * config.in: Generated (AUTO_DEPEND).
7179
f04bb9b2
MA
71802009-11-13 Michael Albinus <michael.albinus@gmx.de>
7181
b7c7a4d1 7182 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
7183 Vdbus_registered_functions_table, because it contains also
7184 properties. Fix docstring.
b7c7a4d1 7185 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 7186
8f11f7ec
SM
71872009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
7188
7189 * alloc.c (mark_object): Don't reprocess marked strings.
7190 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
7191 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
7192
8a605fe8
KH
71932009-11-13 Kenichi Handa <handa@m17n.org>
7194
8f11f7ec 7195 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
7196 semantics of Vword_combining_categories.
7197 (Vword_combining_categories): Describe the slight change of the
7198 semantics.
7199
241c4680
EZ
72002009-11-13 Eli Zaretskii <eliz@gnu.org>
7201
7202 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
7203
7204 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
7205
5d58e44c
SM
72062009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
7207
7208 * xdisp.c (syms_of_xdisp): Fix typo in last change.
7209
5e13f9d3
JB
72102009-11-12 Juanma Barranquero <lekktu@gmail.com>
7211
7212 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
7213
cf54c754
DR
72142009-11-11 David Reitter <david.reitter@gmail.com>
7215
7216 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
7217 variables to fix 2009-11-09 change.
7218
a4ada374
DN
72192009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
7220
91433552
DN
7221 * process.c (ifflag_def): Make flag_sym constant.
7222 (Fnetwork_interface_info): Use a constant pointer.
7223 (ifflag_table):
7224 * xfns.c (cursor_bits):
7225 * xdisp.c (power_letter):
7226 * termcap.c (speeds, esctab):
7227 * sysdep.c (baud_convert):
7228 * keyboard.c (lispy_accent_codes, modifier_names):
7229 * image.c (xbm_format, xpm_format, pbm_format, png_format)
7230 (jpeg_format, tiff_format, gif_format, svg_format)
7231 (interlace_start, interlace_increment, gs_format):
7232 * gtkutil.c (separator_names):
7233 * fringe.c (swap_nibble):
7234 * fns.c (base64_value_to_char, base64_char_to_value):
7235 * fileio.c (make_temp_name_tbl):
7236 * coding.c (suffixes): Make constant.
7237
f4265f6c
DN
7238 * frame.c (make_initial_frame):
7239 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
7240 build_string.
7241 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
7242
04420943
DN
7243 * s/freebsd.h:
7244 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
7245
0a5d24ae
DN
7246 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
7247 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
7248
a4ada374
DN
7249 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
7250 * xterm.c (syms_of_xterm):
7251 * xfaces.c (syms_of_xfaces):
7252 * xdisp.c (syms_of_xdisp):
7253 * lread.c (syms_of_lread):
7254 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
7255 build_string.
91433552 7256
a4ada374
DN
7257 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
7258
af98fc7f
SM
72592009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
7260
8ab1650e 7261 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 7262
e90292a9
JD
72632009-11-10 Jan Djärv <jan.h.d@swipnet.se>
7264
7265 * keyboard.h: Declare timer_check.
7266
7267 * keyboard.c (timer_check_2): New function that does what the old
7268 timer_check did.
7269 (timer_check): Call timer_check_2 until -1 or a non-zero time is
7270 returned, i.e. don't return -1 with timers pending.
7271
7272 * process.c: Remove extern declaration of timer_check.
7273
7274 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
7275 even if timer_check returned -1.
7276
af98fc7f
SM
7277 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
7278 xg_dialog_data.
e90292a9
JD
7279 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
7280 the event loop.
7281 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
7282 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
7283 Destroy the dialog after xg_dialog_run.
7284
045b83c0
SM
72852009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
7286
7287 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
7288
1fb99a3a
JD
72892009-11-10 Jan Djärv <jan.h.d@swipnet.se>
7290
7291 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
7292
04e452cb
JB
72932009-11-09 Juanma Barranquero <lekktu@gmail.com>
7294
7295 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
7296
ef7417fd
SM
72972009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
7298
7299 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
7300 w32menu.c, and nsmenu.m.
7301 Simplify the obsolete case where position is nil.
7302 (cleanup_popup_menu): New function, moved from nsmenu.m.
7303 (struct skp): Remove slot `notreal'.
7304 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
7305 adjust callers.
7306 (single_menu_item): Adjust call to parse_menu_item.
7307 (syms_of_menu): Defsubr x-popup-menu.
7308 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
7309 (keymap_panes): Don't export any more.
7310 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
7311 (xmenu_show): Declare.
7312 * keyboard.c (parse_menu_item): Remove arg `notreal'.
7313 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
7314 * keyboard.h (parse_menu_item): Update declaration.
7315 * xmenu.c (Fx_popup_menu): Remove.
7316 (syms_of_xmenu): Don't defsubr x-popup-menu.
7317 * w32menu.c (Fx_popup_menu): Remove.
7318 (syms_of_w32menu): Don't defsubr x-popup-menu.
7319 * nsmenu.m (cleanup_popup_menu): Remove.
7320 (ns_menu_show): Rename from ns_popup_menu and remove all the code
7321 moved to menu.c's Fx_popup_menu.
7322 (Fx_popup_menu): Remove.
7323 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
7324 menu_items (it's done in menu.c already).
7325
424d6179
SM
73262009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
7327
7328 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
7329 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
7330
c0df13a6 73312009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
7332
7333 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 7334 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
7335 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
7336 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
7337
2de9f71c
SM
73382009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
7339
7340 Let integers use up 2 tags to give them one extra bit and thus double
7341 their range.
7342 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
7343 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
7344 New macros.
7345 (enum Lisp_Type): Use them. Give explicit values.
7346 (Lisp_Type_Limit): Remove.
7347 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
7348 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
7349 Pay attention to USE_2_TAGS_FOR_INTS.
7350 (INTEGERP): Use LISP_INT_TAG_P.
7351 * fns.c (internal_equal): Simplify the default case.
7352 (sxhash): Use case_Lisp_Int.
7353 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
7354 any more.
7355 (Ftype_of): Use case_Lisp_Int.
7356 (store_symval_forwarding): Take into account the fact that Ints can
7357 now have more than one tag.
7358 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 7359 (buffer_slot_type_mismatch):
2de9f71c
SM
7360 * xfaces.c (face_attr_equal_p):
7361 * print.c (print_object):
7362 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
7363 Use case_Lisp_Int.
7364
323637a2
EZ
73652009-11-06 Eli Zaretskii <eliz@gnu.org>
7366
7ac65b38
EZ
7367 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
7368
323637a2
EZ
7369 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
7370 warning.
7371
e511451f
JD
73722009-11-06 Jan Djärv <jan.h.d@swipnet.se>
7373
7374 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
7375
7376 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
7377
7378 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
7379 ButtonPressRelease and MotionNotify (bug#4870).
7380
5e2327cf
DN
73812009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
7382
5adc433e
DN
7383 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
7384
d67b4f80
DN
7385 * xterm.c (syms_of_xterm):
7386 * xselect.c (syms_of_xselect):
7387 * xmenu.c (syms_of_xmenu):
7388 * xfns.c (syms_of_xfns):
7389 * xfaces.c (syms_of_xfaces):
7390 * xdisp.c (syms_of_xdisp):
7391 * window.c (syms_of_window):
7392 * w32fns.c (syms_of_w32fns):
7393 * undo.c (syms_of_undo):
7394 * textprop.c (syms_of_textprop):
7395 * terminal.c (syms_of_terminal):
7396 * syntax.c (syms_of_syntax):
7397 * sound.c (syms_of_sound):
7398 * search.c (syms_of_search):
7399 * print.c (syms_of_print):
7400 * minibuf.c (syms_of_minibuf):
7401 * macros.c (syms_of_macros):
7402 * keymap.c (syms_of_keymap, initial_define_key)
7403 (initial_define_lispy_key):
7404 * keyboard.c (syms_of_keyboard):
7405 * insdel.c (syms_of_insdel):
7406 * image.c (syms_of_image):
7407 * fringe.c (syms_of_fringe):
7408 * frame.c (syms_of_frame):
7409 * fontset.c (syms_of_fontset):
7410 * fns.c (syms_of_fns):
7411 * fns.c (syms_of_fns):
7412 * fileio.c (syms_of_fileio):
7413 * fileio.c (syms_of_fileio):
7414 * eval.c (syms_of_eval):
7415 * doc.c (syms_of_doc):
7416 * dispnew.c (syms_of_display):
7417 * dired.c (syms_of_dired):
7418 * dbusbind.c (syms_of_dbusbind):
7419 * data.c (syms_of_data):
7420 * composite.c (syms_of_composite):
7421 * coding.c (syms_of_coding):
7422 * cmds.c (syms_of_cmds):
7423 * charset.c (define_charset_internal, syms_of_character):
7424 * ccl.c (syms_of_ccl):
7425 * category.c (syms_of_category, init_category_once):
7426 * casetab.c (syms_of_casetab):
7427 * casefiddle.c (syms_of_casefiddle):
7428 * callint.c (syms_of_callint):
7429 * bytecode.c (syms_of_bytecode):
7430 * buffer.c (keys_of_buffer, syms_of_buffer):
7431 * alloc.c (syms_of_alloc):
7432 * process.c (syms_of_process, init_process):
7433 * lread.c (syms_of_lread, init_obarray):
7434 * font.c (build_style_table):
7435 * emacs.c (syms_of_emacs, main): Replace calls to intern with
7436 intern_c_string, calls to make_pure_string with
7437 make_pure_c_string. Use pure_cons instead of Fcons.
7438
5e2327cf
DN
7439 * process.c (socket_options): Make it const.
7440 (set_socket_option, init_process): Use a const pointer.
7441
7442 * lread.c (intern_c_string): New function.
7443 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
7444 (defvar_int): Uset it. Make the name const char*.
7445
7446 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
7447 (defvar_int): Update prototypes.
7448 (DEFUN, EXFUN): Support for prototypes is now required.
7449 (intern_c_string): New prototype.
7450 (struct Lisp_Subr): Make symbol_name constant.
7451
7452 * font.c (struct table_entry): Remove unused member. Make NAMES
7453 constant.
7454 (weight_table, slant_table, width_table): Make constant.
7455
7456 * emacs.c (struct standard_args): Make name and longname constant.
7457
7458 * character.h (DEFSYM): Use intern_c_string.
7459
a56eaaef
DN
74602009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
7461
7462 * alloc.c (make_pure_c_string): New function.
7463
7464 * eval.c (Fautoload): Purecopy all arguments.
7465
f6a07420
KH
74662009-11-05 Kenichi Handa <handa@m17n.org>
7467
7468 * fileio.c (Finsert_file_contents): Be sure set coding-system of
7469 the buffer in case of replace.
7470
5d28d4b1
DN
74712009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
7472
7473 * puresize.h (BASE_PURESIZE): Increase to 1620000.
7474
b349d111
SM
74752009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
7476
d528b1ce
SM
7477 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
7478 when applicable (bug#4851).
7479
b349d111
SM
7480 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
7481 (P_): Support for prototypes is now required.
7482
c38eb027
CY
74832009-10-31 Chong Yidong <cyd@stupidchicken.com>
7484
7485 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
7486 (Bug#4827).
7487
0405f8d9
EZ
74882009-10-30 Eli Zaretskii <eliz@gnu.org>
7489
d528b1ce 7490 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 7491
ca0a881a
DN
74922009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
7493
7494 * puresize.h (BASE_PURESIZE): Increase to 1470000.
7495
d528b1ce
SM
7496 * lread.c (Fload): Purecopy the file name when building
7497 Vpreloaded_file_list.
ca0a881a 7498
47e0e0e4
JR
74992009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
7500
7501 * w32fns.c (syms_of_w32fns): Change default value of
7502 w32-scroll-lock-modifier to nil. (Bug#2827)
7503
057bce6f
JB
75042009-10-26 Juanma Barranquero <lekktu@gmail.com>
7505
782a943e 7506 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 7507
242bc74c
AS
75082009-10-26 Andreas Schwab <schwab@redhat.com>
7509
7510 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
7511
522d013a
JB
75122009-10-26 Juanma Barranquero <lekktu@gmail.com>
7513
7514 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
7515 For delta < 0, skip check that only makes sense when the mini-window
7516 is going to be enlarged. (Bug#4534)
7517
18060980
CY
75182009-10-25 Chong Yidong <cyd@stupidchicken.com>
7519
7520 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
7521 string in menu maps (Bug#4471).
7522
fec8f0fe
CY
75232009-10-24 Chong Yidong <cyd@stupidchicken.com>
7524
7525 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
7526 FRAME_NS_VIEW on terminal frames (Bug#4765).
7527
10d66ec0
AS
75282009-10-24 Andreas Schwab <schwab@linux-m68k.org>
7529
1cae01f7
AS
7530 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
7531 DBUS_TYPE_UINTnn separately to get proper sign extension.
7532
58a12889
AS
7533 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
7534 can properly handle unsigned types.
d528b1ce 7535 (make_uid, make_gid): Remove.
58a12889 7536
987c9327
AS
7537 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
7538 types again.
7539
522d013a 7540 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
7541 (system_process_attributes): Likewise.
7542
905a9ed3
DN
75432009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
7544
7545 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
7546
7547 * eval.c (Fautoload): Purecopy the filename. Simplify.
7548
7549 * category.c (Fdefine_category): Purecopy docstring.
7550
a599b3e8
AS
75512009-10-23 Andreas Schwab <schwab@linux-m68k.org>
7552
7b792fc9
AS
7553 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
7554
a599b3e8
AS
7555 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
7556
b35ac83e
CY
75572009-10-23 Chong Yidong <cyd@stupidchicken.com>
7558
7559 * window.c (Fwindow_edges, Fwindow_pixel_edges)
7560 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
7561 (Bug#4775).
7562
e8903e00
SM
75632009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
7564
7565 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
7566 (init_fileio_once):
7567 * lisp.h (init_fileio_once): Remove.
7568 * emacs.c (main): Don't call init_fileio_once.
7569
8f43cbf3
DN
75702009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
7571
7572 * puresize.h (BASE_PURESIZE): Increase to 1430000.
7573
26898943
AS
75742009-10-21 Andreas Schwab <schwab@linux-m68k.org>
7575
7576 * doprnt.c (doprnt): Fix overflow check.
7577
5c646d5a
JD
75782009-10-21 Jan Djärv <jan.h.d@swipnet.se>
7579
3132a7ea
JD
7580 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
7581
5c646d5a
JD
7582 * xterm.h (x_wait_for_event): Declare it.
7583
7584 * xterm.c (pending_event_wait): New variable.
7585 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
7586 see pending_event_wait.eventtype.
7587 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
7588 (x_new_font): Call change_frame_size with new rows/columns before we
7589 try to resize the frame.
5c646d5a 7590 (x_wait_for_event): New function.
d528b1ce
SM
7591 (x_set_window_size_1): Don't change gravity unless change_gravity
7592 is set.
5c646d5a
JD
7593 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
7594 don't change frame size, instead wait for the ConfigureNotify.
7595 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
7596 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
7597 (x_initialize): Initialize pending_event_wait.
7598
7599 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
7600 size.
7601
7602 * widget.c (EmacsFrameSetValues): Add comment.
7603 (EmacsFrameSetCharSize): Just call x_set_window_size.
7604
7605 * gtkutil.c (xg_frame_set_char_size): Flush events and call
7606 x_wait_for_event.
d528b1ce 7607 (flush_and_sync): Remove again.
5c646d5a
JD
7608 (xg_get_font_name): Suggest monospace if no previous font is known.
7609
e9c1637d
SM
76102009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
7611
7612 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 7613 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 7614
5a72cccb
YM
76152009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7616
7617 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
7618 processing pending events when event is filtered for input method.
ab04798f 7619 (Bug#3681)
5a72cccb 7620
2629aa37
JB
76212009-10-20 Juanma Barranquero <lekktu@gmail.com>
7622
7623 * fns.c: Add #endif accidentally removed in previous change.
7624
c3417a74
DN
76252009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7626
7627 * fns.c: Remove code for unsupported system: MAC_OS.
7628 * image.c: Likewise. Include setjmp.h.
7629
9685cef2
JD
76302009-10-19 Jan Djärv <jan.h.d@swipnet.se>
7631
7632 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
7633 pixel -1 (bug #4742).
7634
d7306fe6
DN
76352009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7636
019d2c4c
DN
7637 * process.c (create_pty): Remove conditionals for no longer
7638 supported systems: UNIPLUS and RTU.
7639
ee6bacd4
DN
7640 * xterm.c:
7641 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
7642
d7306fe6
DN
7643 * alloc.c: Do not define struct catchtag.
7644 * eval.c: Move struct catchtag definition ...
7645 * lisp.h: ... here.
7646
7647 * image.c: Move png.h #include earlier to avoid warnings.
7648
7649 * xterm.c:
7650 * xsmfns.c:
7651 * xselect.c:
7652 * xrdb.c:
7653 * xmenu.c:
7654 * xftfont.c:
7655 * xfont.c:
7656 * xfns.c:
7657 * xfaces.c:
7658 * xdisp.c:
7659 * window.c:
7660 * widget.c:
7661 * w32xfns.c:
7662 * w32uniscribe.c:
7663 * w32term.c:
7664 * w32select.c:
7665 * w32reg.c:
7666 * w32proc.c:
7667 * w32menu.c:
7668 * w32inevt.c:
7669 * w32heap.c:
7670 * w32font.c:
7671 * w32fns.c:
7672 * w32console.c:
7673 * w32.c:
7674 * w16select.c:
7675 * vm-limit.c:
7676 * unexsol.c:
7677 * unexec.c:
7678 * unexcw.c:
7679 * unexaix.c:
7680 * undo.c:
7681 * tparam.c:
7682 * textprop.c:
7683 * terminfo.c:
7684 * terminal.c:
7685 * termcap.c:
7686 * term.c:
7687 * syntax.c:
7688 * sound.c:
7689 * sheap.c:
7690 * search.c:
7691 * scroll.c:
7692 * region-cache.c:
7693 * regex.c:
7694 * ralloc.c:
7695 * process.c:
7696 * print.c:
b024548b
DN
7697 * nsterm.m:
7698 * nsselect.m:
7699 * nsmenu.m:
7700 * nsimage.m:
7701 * nsfont.m:
7702 * nsfns.m:
d7306fe6
DN
7703 * msdos.c:
7704 * minibuf.c:
7705 * menu.c:
7706 * marker.c:
7707 * macros.c:
7708 * keymap.c:
7709 * keyboard.c:
7710 * intervals.c:
7711 * insdel.c:
7712 * indent.c:
7713 * gtkutil.c:
7714 * ftxfont.c:
7715 * ftfont.c:
7716 * fringe.c:
7717 * frame.c:
7718 * fontset.c:
7719 * font.c:
7720 * fns.c:
7721 * floatfns.c:
7722 * filelock.c:
7723 * fileio.c:
7724 * emacs.c:
7725 * editfns.c:
7726 * dosfns.c:
7727 * doprnt.c:
7728 * doc.c:
7729 * dispnew.c:
7730 * dired.c:
7731 * dbusbind.c:
7732 * data.c:
7733 * composite.c:
7734 * coding.c:
7735 * cmds.c:
7736 * cm.c:
7737 * chartab.c:
7738 * charset.c:
7739 * character.c:
7740 * ccl.c:
7741 * category.c:
7742 * casetab.c:
7743 * casefiddle.c:
7744 * callproc.c:
7745 * callint.c:
7746 * bytecode.c:
7747 * buffer.c:
7748 * atimer.c: Include setjmp.h. (Bug#4643)
7749
fd5f21e6
SM
77502009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
7751
4c0354d7
SM
7752 Remove leftover table unibyte_to_multibyte_table.
7753 * character.c (unibyte_to_multibyte_table): Remove.
7754 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
7755 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
7756 * character.h (UNIBYTE_TO_CHAR): New macro.
7757 (MAKE_CHAR_MULTIBYTE): Use it.
7758 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
7759 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
7760 (message_dolog, set_message_1):
7761 * search.c (Freplace_match):
7762 * editfns.c (Fcompare_buffer_substrings):
7763 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
7764 (concat):
7765 * insdel.c (copy_text, count_size_as_multibyte):
7766 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
7767 * term.c (produce_glyphs):
7768 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
7769 * regex.c (RE_CHAR_TO_MULTIBYTE):
7770 * cmds.c (internal_self_insert):
7771 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
7772
fd5f21e6
SM
7773 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
7774
4418646e
DN
77752009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
7776
7777 * puresize.h (BASE_PURESIZE): Increase to 1310000.
7778
35f5c1d2
JB
77792009-10-16 Juanma Barranquero <lekktu@gmail.com>
7780
7781 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
7782
a0cd8f6b
AR
77832009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7784
7785 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
7786 still needed under Tiger.
7787
7788 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
7789
7790 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
7791 __Apple__.
7792
7793 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
7794
01a8d3fa
KH
77952009-10-15 Kenichi Handa <handa@m17n.org>
7796
7797 * print.c (print_object): Escape a symbol like "2E10" too.
7798
bf6c75c9 77992009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
7800
7801 Cleanups and changes for 64-bit compile under Snow Leopard.
7802 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
7803
7804 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
7805
c5959062 7806 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
7807 (ns_findfonts, nsfont_list_family): Use long format in printf, and
7808 cast argument.
7809 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 7810 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
7811
7812 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
7813
7814 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
7815 where appropriate.
7816
7817 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
7818 where appropriate.
6e4780c5
JB
7819 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
7820 Use stringWithUTF8String.
bf6c75c9
AR
7821 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
7822
6e4780c5
JB
7823 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
7824 Add formal protocol mention to inheritance.
bf6c75c9
AR
7825 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
7826
6e4780c5
JB
7827 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
7828 Fix printf format.
bf6c75c9
AR
7829 (ns_query_color): Use CGFloat where appropriate.
7830 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 7831 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
7832 argument.
7833
3d87f118
AR
7834 * config.in (NS_HAVE_NSINTEGER): Drop.
7835
a95c8102
AR
7836 * dbusbind.c (dbus-method-return-internal)
7837 (dbus-method-error-internal): Use long format in printf, and cast
7838 argument.
7839
7840 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
7841 in printf, and cast argument.
7842
6873acca 7843 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
7844 cast argument.
7845
9ec6f100
GM
78462009-10-11 Glenn Morris <rgm@gnu.org>
7847
7848 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
7849
5be883cd
JD
78502009-10-08 Jan Djärv <jan.h.d@swipnet.se>
7851
7852 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
7853 menu bar with a small width so it doesn't enlarge the frame.
7854
d7a39b51
JB
78552009-10-08 Juanma Barranquero <lekktu@gmail.com>
7856
7857 * fontset.c (Fset_fontset_font): Fix typos in error messages.
7858
0c2b6f8e
GM
78592009-10-06 Glenn Morris <rgm@gnu.org>
7860
7861 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
7862 SOME_MACHINE_LISP (this enters indirectly via DOC).
7863
e02131a2
EZ
78642009-10-05 Eli Zaretskii <eliz@gnu.org>
7865
7866 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
7867
b4744254
EZ
78682009-10-04 Eli Zaretskii <eliz@gnu.org>
7869
7870 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
7871 Doc fix.
7872
dbf64827
JB
78732009-10-03 Martin Rudalics <rudalics@gmx.at>
7874
7875 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
7876
e9a0aef8
MA
78772009-10-02 Michael Albinus <michael.albinus@gmx.de>
7878
d528b1ce 7879 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
7880 used anymore outside fileio.c.
7881
7882 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
7883
64eb2b56
JB
78842009-10-01 Juanma Barranquero <lekktu@gmail.com>
7885
7886 * lisp.h (Qdelete_directory_internal):
7887 Declare, instead of Qdelete_directory.
7888
7889 * w32fns.c (Fsystem_move_file_to_trash): Use it.
7890
9d28c33e
SM
78912009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
7892
7893 * eval.c (Fcalled_interactively_p): Add `kind' argument.
7894
9d8f3bd9
MA
78952009-10-01 Michael Albinus <michael.albinus@gmx.de>
7896
9d28c33e 7897 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
7898 Fdelete_directory. It is not a command anymore. It has no file
7899 name handler.
7900
9694740b
SM
79012009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
7902
7903 * xdisp.c (get_next_display_element): Use an enum in last change.
7904
748e162f
KH
79052009-09-28 Kenichi Handa <handa@m17n.org>
7906
9694740b 7907 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
7908 unibyte_display_via_language_environment in handling
7909 Vnobreak_char_display.
7910
17efd58d
AR
79112009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7912
7913 * nsterm.h (ns_app_name): New extern variable.
7914
7915 * nsterm.m (ns_app_name): New variable.
7916 (ns_term_init): Set and use it.
7917 (ns_term_shutdown): Use it.
7918
7919 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
7920 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
7921
7922 * nsfns.m (ns_set_name_iconic, ns_set_name)
7923 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
7924 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
7925
9694740b
SM
7926 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
7927 Remove double-casting in client_data comparison.
31c2d412 7928
3208cb35
YM
79292009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7930
7931 * keyboard.c (make_lispy_event): Remember last wheel direction.
7932 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
7933
b7d552d6
GM
79342009-09-26 Glenn Morris <rgm@gnu.org>
7935
7936 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
7937 internal.elc. Add term/pc-win.elc.
7938 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
7939 term/x-win.elc.
7940 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
7941 term/w32-win.elc.
7942 (NS_SUPPORT): New.
7943 (lisp): Add NS_SUPPORT.
7944 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
7945
4ff670a8
DR
79462009-09-25 David Reitter <david.reitter@gmail.com>
7947
7948 * nsmenu.m (EmacsMenu-clear): Recognize application menu
7949 on Mac OS X 10.6+ (bug#4513).
7950
feabfb6c
JB
79512009-09-24 Juanma Barranquero <lekktu@gmail.com>
7952
7953 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
7954 some parts of Emacs code (like font selection) don't grok them.
7955 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 7956
de59072a
AS
79572009-09-24 Andreas Schwab <schwab@redhat.com>
7958
7959 * coding.c (decode_coding_iso_2022): Fix operator precedence.
7960
a489517b
JB
79612009-09-24 Juanma Barranquero <lekktu@gmail.com>
7962
7963 * dired.c (Fdirectory_files): Fix typo in docstring.
7964
0592970c
AR
79652009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7966
7967 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
7968 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
7969 (EmacsScroller-setPosition:portion:whole:): Remove -display call
7970 under GNUstep.
7971 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
7972
7973 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
7974 glyph advancement.
7975
48e8a88b
AR
79762009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7977
7978 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 7979 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
7980
7981 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
7982 deleted (bug #4492).
7983
e14f0a78
AR
7984 * nsfont.m (Vns_reg_to_script): New lisp variable.
7985 (syms_of_nsfont): Declare it.
7986 (ns_registry_to_script): New function.
7987 (ns_get_req_script): Call it.
7988 (ns_findfonts): Don't give up on non-unicode registry.
7989
7990 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
7991
5b650faa
SM
79922009-09-20 Tom Tromey <tromey@redhat.com>
7993
7994 * eval.c (find_handler_clause): Make stack-trace-on-error work in
7995 batch mode (bug#4228).
7996
a489517b 79972009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
7998
7999 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 8000 carefully. (Bug #4339)
0bae4e09 8001
fcfe06f3
CY
80022009-09-18 Chong Yidong <cyd@stupidchicken.com>
8003
d798ba87 8004 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 8005
31642728
AR
80062009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8007
8008 * emacs.c (inhibit_x_resources): Update doc string for NS.
8009 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 8010 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
8011
8012 * nsterm.h (ns_no_defaults): Remove.
8013
8014 * nsterm.m (ns_no_defaults): Remove.
8015 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
8016 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
8017 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
8018 don't update the NSWindow itself.
8019 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 8020 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
8021
8022 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
8023 ns_use_qd_smoothing.
8024
8025 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
8026 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 8027 (x-close-connection): Drop PSFlush() under OS X.
a489517b 8028 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 8029
8686ac71
JB
80302009-09-17 Juanma Barranquero <lekktu@gmail.com>
8031
8032 * emacs.c (inhibit_x_resources): New variable.
8033 (main) [HAVE_NS]: Don't process --quick command line option.
8034 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
8035
8036 * lisp.h (inhibit_x_resources): Declare it extern.
8037
8038 * w32reg.c (x_get_string_resource):
8039 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
8040
e227ba05
EZ
80412009-09-17 Eli Zaretskii <eliz@gnu.org>
8042
362654a6
JB
8043 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
8044 Add lisp/term/internal.elc.
e227ba05 8045
742d40e8
SM
80462009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8047
8048 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
8049 (bug#4461).
8050
005bd5a2
DN
80512009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
8052
8053 * puresize.h (BASE_PURESIZE): Increase to 1290000.
8054
8055 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
8056 (OBJECTS_MACHINE): Remove, unused.
8057
f9af9719
SM
80582009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
8059
8060 * frame.c (x_get_resource_string): Remove unused.
8061
0307c7d2
JD
80622009-09-15 Jan Djärv <jan.h.d@swipnet.se>
8063
8064 * xterm.c (x_new_font): Call change_frame_size before calling
8065 x_set_window_size, in case frame size won't change.
8066
8067 * frame.c (x_set_font): Remove dead code.
8068
428b13d6
SM
80692009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
8070
8071 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
8072
5766c380
SM
80732009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8074
8075 * lread.c (Fload): Don't output a message after loading an obsolete
8076 package any more (done in Lisp now).
8077
2fd0161b
CY
80782009-09-12 Chong Yidong <cyd@stupidchicken.com>
8079
8080 * fns.c (syms_of_fns): Doc fix (Bug#4227).
8081
bc5e75b6
SM
80822009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8083
8084 * keymap.c (Fwhere_is_internal): Use nconc2.
8085
c31c985e
AM
80862009-09-11 Alan Mackenzie <acm@muc.de>
8087
8088 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
8089 batch mode.
8090
78012bd2
AS
80912009-09-11 Andreas Schwab <schwab@linux-m68k.org>
8092
8093 * xdisp.c (display_mode_element): Detect cycles.
8094
9d889332
SM
80952009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8096
8097 * keymap.c (where_is_internal): Don't erroneously return nil right after
8098 filling the cache.
8099 (where_is_internal_1): Fix up typo.
8100
7ab5d780
GM
81012009-09-11 Glenn Morris <rgm@gnu.org>
8102
8103 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
8104 share a common doc-string.
8105
5238a749
SM
81062009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8107
66d77eda
SM
8108 * keymap.c (get_keymap): Return the actual keymap symbol rather than
8109 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
8110
5238a749
SM
8111 * keymap.c (QCadvertised_binding): New constant.
8112 (syms_of_keymap): Initialize it.
8113 (Fwhere_is_internal): Try and use bindings from :advertised-binding
8114 if applicable.
8115
19f48442
SM
81162009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
8117
50d4ba39
SM
8118 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
8119 (parse_menu_item): Streamline since bindings are recomputed all the
8120 time anyway. Don't bother checking Vdefine_key_rebound_commands any
8121 more and don't support lmenu's menu-alias any more either.
8122
a88a5372
SM
8123 * keymap.c (where_is_internal_data): Make noindirect a boolean.
8124 (where_is_internal): Strip it down to only traverse the keymaps.
8125 Move the cache handling from Fwhere_is_internal to here.
8126 (Fwhere_is_internal): Move the handling of remapping and the choice of
8127 the best binding from where_is_internal to here.
8128 Unify the cached/noncached paths, so remapping is also handled
8129 correctly when the cache is used, and so the cache can be used to
8130 speed up remap-handling when applicable.
8131 Give preference to non-remapped bindings.
8132 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
8133 non-remapped bindings.
8134 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
8135 command remapping.
8136
19f48442
SM
8137 * xdisp.c (display_mode_element): Move list length limit from 50 to
8138 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
8139
599498c3 81402009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
8141
8142 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
8143
f9b7b5ac
SM
81442009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
8145
a53af587
JB
8146 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
8147 (Bug#4334)
8148
f9b7b5ac
SM
8149 * keymap.c (where_is_internal): Filter out shadowed remappings.
8150 Assume that where_is_internal returns unshadowed bindings to simplify
8151 the code and get rid of the gotos. Use ASIZE.
8152
04f4b72d
JD
81532009-09-04 Jan Djärv <jan.h.d@swipnet.se>
8154
4da146f2
JD
8155 * xterm.c (x_focus_changed): If we get a focusout and pointer
8156 is invisible, make it visible.
8157
04f4b72d
JD
8158 * xterm.h: Remove condition for declaration of
8159 x_*_window_to_frame.
8160
7cef7ce3
SM
81612009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
8162
8163 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
8164 initial terminal as well.
8165
a54fa5b7
JD
81662009-09-02 Jan Djärv <jan.h.d@swipnet.se>
8167
8168 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 8169 x_menubar_window_to_frame.
a54fa5b7 8170
50426a04 8171 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
8172 (XTmouse_position): Do not return valid positions
8173 for clicks in the menubar and the toolbar for Gtk+.
8174
8175 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
8176 if the widget for the event has the same top level as a frame,
8177 return the frame.
8178 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
8179 internal windows, bug #4122.
8180 (x_non_menubar_window_to_frame): Remove.
8181
5a021dd0
GM
81822009-09-02 Glenn Morris <rgm@gnu.org>
8183
8184 * buffer.c (default-major-mode): Move most of the doc from here...
8185 (major-mode): ... to here.
8186
548fe2f3
NR
81872009-08-30 Nick Roberts <nickrob@snap.net.nz>
8188
8189 * process.c (wait_reading_process_output): Keep the descriptor
8190 when pty is used by a non-child process, e.g., in I/O buffer of
8191 GDB this allows inferior to be restarted.
8192
e0840eef
EZ
81932009-08-29 Eli Zaretskii <eliz@gnu.org>
8194
8195 * xdisp.c (redisplay_internal): Remove redundant test and collapse
8196 both branches into one.
8197
82e98df4
SM
81982009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
8199
8200 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
8201 (main): Use enable-multibyte-characters rather than
8202 default-enable-multibyte-characters. Output a warning message when
8203 running a unibyte session.
8204
890617cb
YM
82052009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8206
8207 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
8208 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
8209 (copy_data_segment): Also copy __program_vars section.
8210 (copy_dyld_info) [LC_DYLD_INFO]: New function.
8211 (dump_it) [LC_DYLD_INFO]: Use it.
8212
8213 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
8214
e7adeadc
EZ
82152009-08-28 Eli Zaretskii <eliz@gnu.org>
8216
8217 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
8218 $(SRC)/buildobj.h.
8219 (buildobj.h): Renamed from $(SRC)/buildobj.h.
8220 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
8221 $(SRC)/buildobj.h.
8222 (clean): Add buildobj.h.
8223
3ed8bbdc
TZ
82242009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
8225
8226 * print.c (print_object): Set escapeflag to 1 when printing
8227 hashtable keys and values.
8228
155a6764
SM
82292009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
8230
8231 * lread.c (read_integer): Use doubles (and potentially return a float
8232 number) as we do in string-to-number.
8233 (read1): Use strtol to read integers, signal errors on strtol's
8234 overflow and use floats if strtol's output is too large for
8235 Elisp integers.
8236
877610de
EZ
82372009-08-27 Eli Zaretskii <eliz@gnu.org>
8238
8239 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
8240 (make-buildobj-SH): Fix last change.
8241 (SRC): Move to before where it's first used.
8242
ef73e7be
KH
82432009-08-27 Kenichi Handa <handa@m17n.org>
8244
550c8289
KH
8245 * process.c (send_process): Use encode_coding_object instead of
8246 encode_coding_string to perform eol-conversion even if the string
8247 is unibyte.
8248
60afa08d
KH
8249 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
8250 character.
8251
ef73e7be 8252 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 8253 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 8254
7b3a82d7
DN
82552009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
8256
5654bf63
DN
8257 * callproc.c (Fcall_process): Remove always true #if.
8258
7b3a82d7
DN
8259 * lisp.h: Replace #if 0 code for checking with text pointing to
8260 the --enable-checking configure flag.
8261
8262 * emacs.c (main): Mention the --enable-profiling configure flag
8263 instead of using CFLAGS.
8264
878bde49
KR
82652009-08-26 Ken Raeburn <raeburn@raeburn.org>
8266
8267 * Makefile.in (buildobj.h): New target.
8268 (doc.o): Depend on it.
8269 (temacs${EXEEXT}): Don't generate buildobj.lst.
8270 (mostlyclean): Delete buildobj.h, not buildobj.lst.
8271 * makefile.w32-in ($(SRC)/buildobj.h): New target.
8272 ($(BLD)/doc.$(O)): Depend on it.
8273 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
8274 provided by Eli Zaretskii.)
8275 ($(TEMACS)): Don't generate buildobj.lst.
8276 * doc.c: Include buildobj.h.
8277 (buildobj): New static variable.
8278 (Fsnarf_documentation): Use it, instead of opening and reading
8279 buildobj.lst.
8280
1574224c
MA
82812009-08-25 Michael Albinus <michael.albinus@gmx.de>
8282
8283 * dbusbind.c (Fdbus_call_method)
8284 (Fdbus_call_method_asynchronously): Use English numeric format for
8285 timeout values in doc string.
8286
d9da2f45
KH
82872009-08-25 Kenichi Handa <handa@m17n.org>
8288
ef73e7be
KH
8289 * alloc.c (mark_char_table): New function.
8290 (mark_object): Use mark_char_table for a char-table.
8291
d9da2f45
KH
8292 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
8293 (CHAR_TABLE_REF): Use it.
8294
c8edcc01
KR
82952009-08-23 Ken Raeburn <raeburn@raeburn.org>
8296
8297 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
8298 before invoking the newly build emacs to check for load-path
8299 shadowing.
8300
7763401b
GM
83012009-08-22 Glenn Morris <rgm@gnu.org>
8302
8303 * Makefile.in (bootstrap_exe): New variable.
8304 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
8305 Use ${bootstrap_exe}.
8306
729eadda
EZ
83072009-08-22 Eli Zaretskii <eliz@gnu.org>
8308
8309 * coding.h (encode_coding_string): Don't encode unibyte strings.
8310 (Bug#4047)
8311
eb4c6ace
MA
83122009-08-22 Michael Albinus <michael.albinus@gmx.de>
8313
8314 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
8315
8316 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
8317 intended as hotfix only.
8318 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
8319
36e34d1b
AR
83202009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8321
8322 * nsterm.m (ns_get_color): Update documentation properly for last
8323 change, and clean up loose ends in the code left by it. Fix
8324 longstanding bug with 16-bit hex parsing, and add support for
8325 yet another X11 format (rgb:r/g/b) for compatibility.
8326 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
8327 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
8328
f983eb8a
SM
83292009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
8330
8331 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
8332
3f56d3c6
MA
83332009-08-20 Michael Albinus <michael.albinus@gmx.de>
8334
8335 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
8336 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
8337 (xd_initialize, xd_pending_messages): Check, whether
8338 $DBUS_SESSION_BUS_ADDRESS is set.
8339
fb641d68
YM
83402009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8341
8342 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
8343
8344 * nsterm.m (ns_get_color): Remove incompatible color formats again.
8345
cf59a374
GM
83462009-08-20 Glenn Morris <rgm@gnu.org>
8347
8348 * emacs.c (system-type): Doc fix.
8349
1373f3be
SM
83502009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
8351
8352 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
8353 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
8354
058ed861
MA
83552009-08-18 Michael Albinus <michael.albinus@gmx.de>
8356
1373f3be
SM
8357 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
8358 New functions.
058ed861
MA
8359 (xd_initialize): Revert change from 2009-08-16.
8360
563a866e 83612009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
8362
8363 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 8364 font-group vector, return nil.
5fc05db0 8365
e42bdf01
CY
83662009-08-17 Chong Yidong <cyd@stupidchicken.com>
8367
8368 * process.c (status_notify): Don't perform redisplay.
8369 (Fdelete_process, list_processes_1, process_send_signal):
8370 Expliticly perform redisplay.
8371 (wait_reading_process_output): Always check process status, but
8372 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
8373
4230ab74
KR
83742009-08-17 Ken Raeburn <raeburn@raeburn.org>
8375
1373f3be 8376 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
8377 (XFLOAT_INIT): New macro for storing a float value.
8378 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
8379 * fns.c (sxhash): Copy out the value of a float in order to
8380 examine its bytes.
8381 * dbusbind.c (xd_append_arg): Likewise.
8382
4230ab74
KR
8383 * emacs.c (main): Don't call syms_of_data twice.
8384
a0645cdd
MA
83852009-08-16 Michael Albinus <michael.albinus@gmx.de>
8386
8387 * dbusbind.c (xd_initialize): Add connection file descriptor to
8388 input_wait_mask, in order to let select() detect, whether a new
8389 message has been arrived.
ca4f31ea 8390 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 8391
485db0ba
MA
83922009-08-15 Michael Albinus <michael.albinus@gmx.de>
8393
1373f3be
SM
8394 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
8395 New functions.
485db0ba
MA
8396
8397 * lisp.h (xd_pending_messages): Declare.
8398
8399 * keyboard.c (readable_events): Call xd_pending_messages.
8400
b5b98ff4
CY
84012009-08-15 Chong Yidong <cyd@stupidchicken.com>
8402
1373f3be 8403 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 8404
f8354c6e
CY
8405 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
8406
b5b98ff4
CY
8407 * buffer.c (set_buffer_internal_1)
8408 (swap_out_buffer_local_variables): Check for unbound local
8409 variables (Bug#4138).
8410
8b9fc636
EZ
84112009-08-14 Eli Zaretskii <eliz@gnu.org>
8412
8413 * process.c (create_pty): Fix last change.
8414
ce959360
CY
84152009-08-13 Chong Yidong <cyd@stupidchicken.com>
8416
8417 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
8418 (xbm_load_image): Caller changed.
64b807c9 8419 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 8420
c7baf7e9
NR
84212009-08-13 Nick Roberts <nickrob@snap.net.nz>
8422
8423 * process.c (create_pty): New function.
8424 (Fstart_process): Use it to allow Emacs to just associate a pty
8425 with the buffer. See associated change in gdb-mi.el.
8426 (list_processes_1): Deal with no program name.
8427 (start_process_unwind): Use pid == -2 to mean no process.
8428
1ac9108a
SM
84292009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
8430
8431 * cmds.c (nonundocount): New global variable.
8432 (keys_of_cmds): Initialize it.
8433 (Fself_insert_command): Use it to combine upto 20 sequential chars
8434 into a single undo entry, just like the Qself_insert_command code in
8435 keyboard.c does.
8436 Call frame_make_pointer_invisible, also like the Qself_insert_command
8437 code in keyboard.c does.
8438 * keyboard.c (command_loop_1): Use the new global nonundocount rather
8439 than its own local replacement for it.
8440
e267324c
KR
84412009-08-10 Ken Raeburn <raeburn@raeburn.org>
8442
1ac9108a 8443 * fns.c (concat): Don't re-set string length to its current value.
77437343 8444
1ac9108a
SM
8445 * coding.h (decode_coding_string, encode_coding_string):
8446 Use SBYTES macro.
f0bed503 8447
1ac9108a 8448 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
8449 (doprnt): Merge with doprnt1, discarding lispstrings code.
8450 * lisp.h (doprnt_lisp): Don't declare.
8451
416e006d
JL
84522009-08-07 Juri Linkov <juri@jurta.org>
8453
8454 * puresize.h (BASE_PURESIZE): Increase to 1270000.
8455
6f7d5780
DN
84562009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8457
8458 * print.c (syms_of_print): Undo previous change.
8459
f19a0f5b
TZ
84602009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
8461
8462 * lread.c (read1, syms_of_lread): Read hashtables back from the
8463 readable format.
8464
8465 * print.c (print_preprocess, print_object): Print hashtables fully
8466 and readably.
8467 (syms_of_print): Provide 'hashtable-print-readable.
8468
b9173dc2
AR
84692009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8470
8471 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
8472 no family set.
8473 (nsfont_open): Handle case when entity has no family.
8474
1586503c
AR
84752009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8476
8477 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
8478 element, not a list, for match case.
8479
087048cd
KH
84802009-07-28 Kenichi Handa <handa@m17n.org>
8481
8482 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
8483 rigidly.
8484
8485 * xfont.c (xfont_list_pattern): Don't ignore the return value of
8486 font_parse_xlfd. Check font properties more rigidly.
8487
780c2506
DN
84882009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8489
31fd7c5c
JB
8490 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
8491 bsd-common.h.
780c2506 8492
a8c0cc18
KH
84932009-07-27 Kenichi Handa <handa@m17n.org>
8494
8495 * xfaces.c (face_with_height): Call font_clear_prop.
8496
4fbe2306
CY
84972009-07-26 Chong Yidong <cyd@stupidchicken.com>
8498
111d9af3
CY
8499 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
8500
8501 * xterm.c (x_term_init): Use Qx.
8502
4fbe2306
CY
8503 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
8504
1ac9108a 8505 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
8506 (ns_get_color): Revert 2009-07-16 change.
8507
beb0b7f9
EZ
85082009-07-25 Eli Zaretskii <eliz@gnu.org>
8509
8510 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 8511 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 8512
2baf5e76
KR
85132009-07-25 Ken Raeburn <raeburn@raeburn.org>
8514
1ac9108a
SM
8515 * coding.h (decode_coding_string, encode_coding_string):
8516 Use SCHARS macro.
8890e5f5 8517
2baf5e76 8518 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 8519 (load_depth): Delete.
2baf5e76
KR
8520 (Qload_in_progress): New variable.
8521 (load_unwind): Don't reference load_depth or load_in_progress.
8522 (Fload): Likewise; specbind Qload_in_progress instead.
8523 (init_lread): Don't initialize load_depth.
8524 (syms_of_lread): Initialize and protect Qload_in_progress.
8525
1395c6f5
AR
85262009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8527
8528 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
8529
4e2f36cf
AR
85302009-07-23 Yavor Doganov <yavor@gnu.org>
8531
8532 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
8533
5dd9a6f7
AR
85342009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8535
8536 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
8537 Bugs 3792, 3720, 2402.
8538 (ns_lookup_indexed_color): Check for bad index.
8539 (ns_index_color): Init unused slot to 0.
8540 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
8541 Bug 3714, possibly 3082.
5dd9a6f7 8542
c902b920
JR
85432009-07-22 Jason Rumney <jasonr@gnu.org>
8544
1ac9108a
SM
8545 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
8546 Position IME window at cursor (Bug#2570).
c902b920
JR
8547 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
8548 (globals_of_w32fns): Dynamically load functions required above.
8549
8550 * w32term.c (w32_draw_window_cursor): Send message to reposition
8551 any IME window.
8552
090101cf
CY
85532009-07-21 Chong Yidong <cyd@stupidchicken.com>
8554
8555 * fileio.c: Revert 2009-07-16 changes.
8556 (Vauto_save_include_big_deletions): New variable.
8557 (Fdo_auto_save): Disable auto-save only if
8558 auto-save-include-big-deletions is nil.
8559
e6583e3d
CY
85602009-07-21 Chong Yidong <cyd@stupidchicken.com>
8561
8562 * xdisp.c (move_it_to): For continued lines ending in a tab, take
8563 the overflowed pixels into account (Bug#3879).
8564
ece435a5
KR
85652009-07-21 Ken Raeburn <raeburn@raeburn.org>
8566
8567 * lread.c (load_depth): New variable.
8568 (Fload, load_unwind, init_lread): Set it to the load recursion
8569 depth; set load_in_progress as a simple boolean based on the
8570 current load_depth. (Bug#3892)
8571
40b2d973
AR
85722009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8573
8574 * nsfont.m (ns_has_attribute): Remove.
8575 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
8576
10be7e0d
JL
85772009-07-18 Juri Linkov <juri@jurta.org>
8578
8579 * process.c (Fset_process_query_on_exit_flag): Mention killing
8580 a buffer in docstring.
8581
fa055055
KH
85822009-07-17 Kenichi Handa <handa@m17n.org>
8583
8584 * casetab.c (shuffle): Fix the logic of setting up the cycle.
8585
042f7b69
YM
85862009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8587
8588 * nsfns.m (Fns_set_alpha): Remove function.
8589 (syms_of_nsfns): Don't defsubr it.
8590
8591 * nsterm.m (ns_get_color): Remove incompatible color formats.
8592 (ns_color_to_lisp): Generate #rrggbb color format string.
8593
4be941e3
RS
85942009-07-16 Richard Stallman <rms@gnu.org>
8595
8596 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
8597 (Fset_buffer_auto_saved): Handle save_length = -2.
8598
4e6b227d
CY
85992009-07-16 Chong Yidong <cyd@stupidchicken.com>
8600
8601 * xterm.c (Qx_gtk_map_stock): New var.
8602
8603 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
8604 of calling intern each time.
8605
a1856973
YM
86062009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8607
8608 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
8609 does tiling.
8610
8611 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
8612
497e54d8
KH
86132009-07-14 Kenichi Handa <handa@m17n.org>
8614
72d36834
KH
8615 * font.c (font_vconcat_entity_vectors): New function.
8616 (struct font_sort_data): New member font_driver_preference.
8617 (font_compare): Check font_driver_preference.
8618 (font_sort_entities): The format of the first argument changed.
8619 (font_delete_unmatched): Likewise.
8620 (font_list_entities): The return type changed.
8621 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
8622 (font_find_for_lface): Adjuste for the above changes.
8623 Don't suppress the checking of C even if the repertory supports it.
8624 (Flist_fonts): Adjust for the above changes.
72d36834 8625
1ac9108a
SM
8626 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
8627 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
8628 Reject a font who has adstyle property that is different from a
8629 langname derived from registry property.
1ac9108a 8630 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 8631
b6046155
EZ
86322009-07-13 Eli Zaretskii <eliz@gnu.org>
8633
8634 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
8635 local copy of dirfilename.
8636
fb6b6049
KH
86372009-07-13 Kenichi Handa <handa@m17n.org>
8638
e2402a5e
KH
8639 * chartab.c (sub_char_table_ref_and_range): Fix the range check
8640 against max_char.
8641
fb6b6049
KH
8642 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
8643 calling XSYMBOL (sym).
8644
65156807
EZ
86452009-07-11 Eli Zaretskii <eliz@gnu.org>
8646
1ac9108a
SM
8647 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
8648 New function.
8649 (directory_files_internal) [WINDOWSNT]:
8650 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
8651 the filesystem of the directory is fast or slow.
8652
8653 * w32.c (logon_network_drive): Don't assume PATH is an absolute
8654 file name.
8655 (is_slow_fs): New function.
8656 (stat): Use it to determine whether to issue more system calls to
8657 get accurate file attributes, when w32-get-true-file-attributes is
8658 `local'.
8659
e0ab5fcf
JD
86602009-07-10 Jan Djärv <jan.h.d@swipnet.se>
8661
8662 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 8663 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
8664 parameter font-parameter as default to the font dialog.
8665
784ceded
KH
86662009-07-10 Kenichi Handa <handa@m17n.org>
8667
8668 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
8669
fb8edc0b
EZ
86702009-07-09 Eli Zaretskii <eliz@gnu.org>
8671
1ac9108a 8672 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 8673
fb8edc0b
EZ
8674 * w32.c (stat): Treat UNC file names as residing on remote
8675 drives. (Bug#3542)
8676
635c75b1
KH
86772009-07-09 Kenichi Handa <handa@m17n.org>
8678
8679 * fontset.c (fontset_find_font): Fix previous change.
8680
c1d5ce94
MA
86812009-07-08 Michael Albinus <michael.albinus@gmx.de>
8682
8683 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
8684 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
8685 error flag.
8686
edb61b39
KH
86872009-07-08 Kenichi Handa <handa@m17n.org>
8688
374bf7e4
KH
8689 * fontset.c (fontset_find_font): Fix the logic of handling
8690 charset_matched.
8691 (font_for_char): Delete unused var.
8692 (generate_ascii_font_name): Delete it.
8693
edb61b39
KH
8694 * coding.h (JIS_TO_SJIS2): Fix the code range check.
8695
8696 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
8697 (encode_coding_sjis): Fix the code range check.
8698
0f3f018c
CY
86992009-07-07 Chong Yidong <cyd@stupidchicken.com>
8700
8701 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
8702 (Fexpand_file_name): Copy string data properly (Bug#3772).
8703
fcaf6f3a
JD
87042009-07-07 Jan Djärv <jan.h.d@swipnet.se>
8705
8706 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
8707 first MapNotify.
8708
6809ca75
KH
87092009-07-07 Kenichi Handa <handa@m17n.org>
8710
8711 * character.h (unibyte_has_multibyte_table): Delete extern.
8712 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
8713
8714 * charset.c (Fset_charset_priority): Update charset_unibyte.
8715 (syms_of_charset): Initialize charset_unibyte.
8716
8717 * character.c (unibyte_has_multibyte_table): Delete it.
8718 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
8719 charset_unibyte.
8720 (multibyte_char_to_unibyte_safe): Likewise.
8721 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
8722
1ac9108a 8723 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
8724 (x_produce_glyphs): Likewise.
8725
8726 * .gdbinit (xcharset): Fix the treating $arg0.
8727
ad9e2d54
EZ
87282009-07-04 Eli Zaretskii <eliz@gnu.org>
8729
8730 Emulation of `getloadavg' on MS-Windows.
50426a04 8731 * w32.c: Include float.h.
ad9e2d54
EZ
8732 (g_b_init_get_native_system_info, g_b_init_get_system_times)
8733 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
8734 (get_native_system_info, get_system_times): New functions.
8735 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
8736 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
8737 (globals_of_w32): Initialize g_b_init_get_native_system_info,
8738 g_b_init_get_system_times, and num_of_processors.
8739
0a3472c7
JR
87402009-07-03 Jason Rumney <jasonr@gnu.org>
8741
8742 * w32term.c (w32_initialize): Use standard types.
8743
80904120
EZ
87442009-07-03 Eli Zaretskii <eliz@gnu.org>
8745
8746 * dired.c (Ffile_attributes): Decode user and group names by the
8747 locale's encoding. (Bug#3443)
8748
6978862d
DN
87492009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
8750
f8d23104
DN
8751 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
8752 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
8753
8754 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
8755
8756 * term.c (init_tty): Remove spurious #ifdef.
8757
6978862d
DN
8758 * m/mips.h: Mention this file is also used for netbsd.
8759 * m/pmax.h: Remove file.
8760
e044e4fc
JD
87612009-07-03 Jan Djärv <jan.h.d@swipnet.se>
8762
8763 * xterm.h (struct x_display_info): Add invisible_cursor.
8764 (struct x_output): Add current_cursor.
8765
8766 * xterm.c (XTtoggle_invisible_pointer): New function.
8767 (x_define_frame_cursor): Don't define cursor if invisible or the
8768 same as before. Set current_cursor.
8769 (x_create_terminal): Set toggle_invisible_pointer_hook.
8770
8771 * xfns.c (make_invisible_cursor): New function.
8772 (x_set_mouse_color): Call make_invisible_cursor.
8773 Set current_cursor.
8774 (x_window): Set current_cursor.
8775
8776 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
8777
8778 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
8779 inserting a character.
8780 (read_avail_input): Call frame_make_pointer_visible.
8781
8782 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
8783 (frame_make_pointer_invisible, frame_make_pointer_visible):
8784 New functions.
e044e4fc
JD
8785 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
8786
8787 * frame.h: Declare frame_make_pointer_invisible and
8788 frame_make_pointer_visible.
8789 (struct frame): Add pointer_invisible.
8790
574c8efa
JD
87912009-07-02 Jan Djärv <jan.h.d@swipnet.se>
8792
7b507248
JD
8793 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
8794 frame isn't visible.
8795 (xg_frame_resized): If width/height is -1, get size of window
8796 from X server.
8797
8798 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
8799 for MapNotify.
8800
835bdaa7 8801 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 8802 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 8803 (flush_and_sync): Reintroduce.
574c8efa 8804
3f1c6666 88052009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 8806
31fd7c5c 8807 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
8808
8809 * xterm.c (x_handle_net_wm_state): Also look for sticky.
8810 (x_term_init): Initialize Xatom_net_wm_state_sticky.
8811
8812 * frame.h: Declare Qsticky.
8813
cad9ef74
JD
8814 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
8815
8816 * nsfns.m (ns_frame_parm_handlers): Ditto.
8817
8818 * frame.c: Declare Qsticky.
8819 (frame_parms): Add sticky.
8820
8821 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
8822
8823 * xterm.h: Declare x_set_sticky.
8824
8825 * xterm.c (x_set_sticky): New function.
8826
69b16610
JD
8827 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
8828 (xg_tool_bar_menu_proxy): Attach enter/leave events to
8829 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
8830
8831 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
8832
8833 * frame.c: Qmaximized is new.
8834 (x_set_frame_parameters): Do not handle fullscreen specially.
8835 Only set width and height if explicitly set.
8836 (x_set_fullscreen): Handle Qmaximized.
8837 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
8838 (syms_of_frame): Initialize Qmaximized.
8839
1ac9108a
SM
8840 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
8841 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
8842
8843 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
8844 for Expose event. Add call to x_check_fullscreen for MapNotify event.
8845 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
8846 set gravity to NorthWestGravity when USE_GTK.
8847 (set_wm_state): New function.
31fd7c5c 8848 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
8849 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
8850 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 8851 or the case when no window manager is running. That means remove calls
3f1c6666
JD
8852 to x_real_positions and x_fullscreen_adjust.
8853
8854 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
8855 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
8856 flush_and_sync.
8857 (xg_height_changed): New function.
8858 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
8859 and gtk_window_set_policy. Set frame gravity after parsing the
8860 geometry string.
3f1c6666
JD
8861 (xg_update_frame_menubar, free_frame_menubar)
8862 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
8863 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
8864 Remove calls to xg_frame_set_char_size.
8865
fd503d99
KH
88662009-07-01 Kenichi Handa <handa@m17n.org>
8867
8868 * keyboard.c (decode_keyboard_code): New function.
8869 (tty_read_avail_input): Decode the input bytes if necessary.
8870
1ac9108a
SM
8871 * coding.c (setup_coding_system):
8872 Initialize coding->carryover_bytes to 0.
fd503d99
KH
8873 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
8874 use Qno_conversion.
8875
24ed93fb
YM
88762009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8877
8878 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
8879
99061dfc
CY
88802009-06-30 Chong Yidong <cyd@stupidchicken.com>
8881
1ac9108a 8882 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 8883
ff90fbde
JR
88842009-06-30 Jason Rumney <jasonr@gnu.org>
8885
8886 * w32term.c (w32_initialize): Use GetModuleHandle for library that
8887 is already loaded.
8888 Set user model ID if supported (bug#1849).
8889
5f445726
JM
88902009-06-29 Jim Meyering <meyering@redhat.com>
8891
8892 Remove useless if-before-xfree test.
8893 * nsfont.m (nsfont_close): Remove useless test.
8894 * term.c (delete_tty): Likewise.
8895 * w32.c (system_process_attributes): Likewise.
8896 * w32font.c (w32font_close): Likewise.
8897 * xfaces.c (x_free_gc): Likewise.
8898 * xselect.c (buffer): Likewise.
8899
b9607587
AS
89002009-06-28 Andreas Schwab <schwab@linux-m68k.org>
8901
8902 * process.c (send_process): Keep decoded string in a local
8903 variable and protect it from GC. (Bug#3521)
8904
89ba96f4
EZ
89052009-06-28 Eli Zaretskii <eliz@gnu.org>
8906
8907 * term.c (create_tty_output) [MSDOS]: #ifdef away.
8908 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
8909
098a1589
CY
89102009-06-28 Chong Yidong <cyd@stupidchicken.com>
8911
485422be
CY
8912 * xdisp.c (start_display, handle_face_prop)
8913 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
8914 (redisplay_window, try_window_id, produce_image_glyph):
8915 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 8916
098a1589
CY
8917 * xterm.c (x_update_window_begin, x_new_focus_frame)
8918 (x_scroll_bar_handle_click, handle_one_xevent)
8919 (handle_one_xevent, XTread_socket, x_focus_on_frame)
8920 (x_make_frame_visible, x_make_frame_invisible)
8921 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
8922 code chunks that are now obsolete.
8923
78c38319
MA
89242009-06-28 Michael Albinus <michael.albinus@gmx.de>
8925
8926 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
8927 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
8928 for hours, when optimzation is enabled.
8929 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
8930 (xd_read_message): Make them static.
8931
4189ed40
CY
89322009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
8933
8934 * term.c (turn_on_face): Allow simultaneously bold and dim
8935 terminal faces (Bug#3530).
8936
cd9b5e16
CY
89372009-06-27 Chong Yidong <cyd@stupidchicken.com>
8938
4e23bedb
CY
8939 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
8940
cd9b5e16
CY
8941 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
8942 truncation glyphs (Bug#3686).
8943
07cc3c35
GM
89442009-06-27 Glenn Morris <rgm@gnu.org>
8945
8946 * m/pmax.h: Restore file, with only netbsd portions.
8947
31fd7c5c 89482009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 8949
cd9b5e16 8950 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 8951
42d4a64f
KH
89522009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
8953
8954 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
8955 the arg FORCE_SYMBOL.
8956
930fe55b 89572009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
8958
8959 * fontset.c (fontset_find_font): When a usable rfont_def is found
8960 in a fallback font-group, make it the first element of the group.
8961
57ebc3fd
CY
89622009-06-24 Chong Yidong <cyd@stupidchicken.com>
8963
8964 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
8965
f084f942
KH
89662009-06-24 Kenichi Handa <handa@m17n.org>
8967
8968 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
8969 set for C.
8970 (fontset_font): Record the availability of a font for C both in
8971 the realized fontsets of the current one and the default one.
8972
2f686c87
DN
89732009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
8974
8975 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
8976 conditional, it is always defined on AIX.
8977
666e158e
MB
89782009-06-23 Miles Bader <miles@gnu.org>
8979
8980 * window.c (Vrecenter_redisplay): New variable.
8981 (syms_of_window): Initialize it.
8982 (Qtty): New extern declaration.
8983 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
8984
c6da7cd2
JM
89852009-06-23 Jim Meyering <meyering@redhat.com>
8986
1ac9108a
SM
8987 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
8988 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 8989 pointer dereferences are guaranteed to be valid.
c6da7cd2 8990
678dca3d
KH
89912009-06-23 Kenichi Handa <handa@m17n.org>
8992
74d75424
KH
8993 * emacs.c (main): Call init_font ().
8994
8995 * font.h (Vfont_log): Extern it.
8996 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
8997
8998 * font.c (font_sort_entities, font_list_entities)
8999 (font_matching_entity, font_open_entity)
9000 (font_close_object): Change font_add_log to FONT_ADD_LOG.
9001 (Vfont_log): Delete static.
9002 (font_log_env_checked): Delete this variable.
9003 (font_add_log): Don't check font_log_env_checked.
9004 (font_deferred_log): Check Vfont_log.
9005 (init_font): New function.
9006
678dca3d
KH
9007 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
9008
9009 * w32font.c: Change font_add_log to FONT_ADD_LOG.
9010
9011 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
9012
9013 * xfont.c: Change font_add_log to FONT_ADD_LOG.
9014
9015 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
9016 (face_for_char): Don't call font_deferred_log here.
9017 (font_for_char): Likewise.
9018
8a668709
CY
90192009-06-22 Chong Yidong <cyd@stupidchicken.com>
9020
9a01ee33
CY
9021 * w32term.c (x_draw_glyph_string): Use the glyph string's width
9022 rather than its background_width for drawing the overline and
9023 underline (Bug#489).
9024
9025 * xterm.c (x_draw_glyph_string): Use the glyph string's width
9026 rather than its background_width for drawing the overline and
9027 underline (Bug#489).
ec7c9926
CY
9028 (xg_default_icon_file): New variable.
9029 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
9030 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 9031
8a668709
CY
9032 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
9033 (load_overlay_strings): Remove externs.
9034 (fast_find_position): Function deleted.
9035 (mouse_face_from_buffer_pos): New function, based on
9036 fast_find_position. Correctly handle before-strings,
9037 display-strings, and after-strings (Bug#1220).
9038 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
9039
4d4c02d8
CY
90402009-06-21 Chong Yidong <cyd@stupidchicken.com>
9041
1ac9108a 9042 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
9043 (move_it_in_display_line_to, move_it_in_display_line_to)
9044 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
9045
70243478
CY
90462009-06-21 Chong Yidong <cyd@stupidchicken.com>
9047
9048 * Branch for 23.1.
9049
13087e59
JR
90502009-06-21 Jason Rumney <jasonr@gnu.org>
9051
9052 * w32term.c (keyboard_codepage): New static variable.
9053 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
9054 (w32_read_socket) [WM_CHAR]: Use it to decode character
9055 input (bug#3237).
9056 (w32_initialize): Initialize it.
9057 (codepage_for_locale): New function.
9058
4735b74e
KR
90592009-06-20 Ken Raeburn <raeburn@raeburn.org>
9060
9061 * process.c (status_message): Pass Faset index argument as a lisp
9062 object, so as to work with USE_LISP_UNION_TYPE.
9063
0e727afa
YM
90642009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9065
9066 * coding.c (Ffind_coding_systems_region_internal):
9067 Cache checked characters.
9068
cf299835
KH
90692009-06-18 Kenichi Handa <handa@m17n.org>
9070
1ac9108a 9071 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 9072
90f20d94
AS
90732009-06-18 Andreas Schwab <aschwab@redhat.com>
9074
9075 * xdisp.c (redisplay_internal): Check that the frame is still
9076 live after redisplay of its windows.
9077 (redisplay_windows): Check that the window is still live.
9078
7f1faf1c
KH
90792009-06-17 Andreas Schwab <schwab@linux-m68k.org>
9080
9081 * coding.c (detect_coding_utf_16): Fix previous change.
9082
cc13543e
KH
90832009-06-16 Kenichi Handa <handa@m17n.org>
9084
9085 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
9086 UTF-16 by checking the dispersion of Eth and Oth bytes.
9087
977b85f4
AS
90882009-06-15 Andreas Schwab <schwab@linux-m68k.org>
9089
9090 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
9091
66bd43d1
KH
90922009-06-15 Kenichi Handa <handa@m17n.org>
9093
9094 * process.c (status_message): Fix previous change. Be sure to
9095 decode a localized string.
9096
cb5ca9c5
YM
90972009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9098
9099 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
9100 add comment explaining why.
9101
ec7709ba 91022009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 9103
ec7709ba 9104 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 9105
4b7f335c
AR
91062009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
9107
9108 * nsfont.m (ns_attribute_value): Remove.
9109 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
9110 (ns_has_attribute): Shrink the normal range.
9111 (ns_findfonts): Don't worry about requested spec in determining
9112 need for synthItal.
e41820ee 9113 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 9114
73b26103
SZ
91152009-06-14 Seiji Zenitani <zenitani@mac.com>
9116
9117 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
9118
5753e4da
KH
91192009-06-11 Kenichi Handa <handa@m17n.org>
9120
9121 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
9122 overhang for the static composition case.
9123
3561b671
KH
91242009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9125
5753e4da
KH
9126 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
9127 overhang for the automatic composition case.
9128
3561b671
KH
9129 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
9130 composition case.
9131
852bbd41
CY
91322009-06-10 Chong Yidong <cyd@stupidchicken.com>
9133
9134 * xdisp.c (get_next_display_element): When handling wrap-prefix
9135 and line-prefix, treat \n as a control character (bug#3502).
9136
9903d1e6
KH
91372009-06-10 Kenichi Handa <handa@m17n.org>
9138
9139 * font.c (font_parse_family_registry): Fix for one-char foundry.
9140 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
9141
0bcbaaaa
CY
91422009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
9143
9144 * process.c (status_message): Fix handling of multibyte signal
9145 string (Bug#3499).
9146
40aa3f13
JM
91472009-06-09 Jim Meyering <meyering@redhat.com>
9148
1f80c7e2
CY
9149 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
9150 color name is missing.
40aa3f13 9151
72d51285
KH
91522009-06-09 Kenichi Handa <handa@m17n.org>
9153
9154 * charset.c (Fmap_charset_chars): In docstring, state clearly that
9155 FROM-CODE and TO-CODE are codepoints of CHARSET.
9156
c1d04d84
AR
91572009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
9158
9159 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
9160
91612009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
9162
9163 Changes to support :script/:lang/:otf in NS font driver.
9164 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
9165 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
9166 indicate not part of font driver interface, and change callers.
9167 (ns_get_family): Remove pointless null check.
9168 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
9169 ns_spec_to_descriptor, ns_descriptor_to_entity.
9170 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
9171 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
9172 (ns_spec_to_descriptor, ns_descriptor_to_entity)
9173 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
9174 (ns_get_req_script, ns_accumulate_script_ranges)
9175 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
9176 New functions.
9177 (nsfont_list, nsfont_match): Use ns_findfonts.
9178 (nsfont_open): Use font descriptor instead of traits.
9179 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
9180 (dump_glyphstring): Rename to ns_dump_glyphstring.
9181
c7eb9816
AR
9182 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
9183
c1d04d84
AR
9184 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
9185
9186 * fontset.c (fontset_from_font): Remove NS-specific code.
9187
ec7709ba 91882009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
9189
9190 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
9191 nonactive windows.
9192
31fd7c5c 91932009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 9194
1ac9108a 9195 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 9196
68852c13 91972009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
9198
9199 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
9200
6756cd1d
CY
92012009-06-07 Chong Yidong <cyd@stupidchicken.com>
9202
9203 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
9204 account for the overflowing of newlines into the last glyph on the
9205 display line (Bug#3482).
9206
28bf482a
DR
92072009-06-05 David Reitter <david.reitter@gmail.com>
9208
ec7709ba
JB
9209 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
9210 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
9211 Fns_selection_exists_p, Fns_selection_owner_p.
9212
fdb55376
JR
92132009-06-03 Jason Rumney <jasonr@gnu.org>
9214
9215 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
9216 available. (Bug#3379)
9217
05129fbe
KH
92182009-05-29 Kenichi Handa <handa@m17n.org>
9219
1ac9108a
SM
9220 * coding.c (get_translation_table):
9221 Check Venable_character_translation.
05129fbe 9222
ec7709ba 92232009-05-26 David Reitter <david.reitter@gmail.com>
15891144 9224
ec7709ba
JB
9225 * nsterm.m (ns_raise_frame): Only raise frame if visible.
9226 (x_make_frame_visible): Move frame to front rather than calling
15891144 9227 ns_raise_frame().
ec7709ba 9228 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 9229 isn't key window.
ec7709ba 9230 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
9231 drawRect may be called by NSView even if the frame is hidden.
9232
ec7709ba
JB
9233 * nsfns.m (Fx_create_frame): Follow other ports in
9234 determining visibility; default to t. Ensure async_visible is set.
15891144 9235
21f73755
EZ
92362009-05-23 Eli Zaretskii <eliz@gnu.org>
9237
9238 * dired.c (Ffile_attributes): Doc fix.
9239
34001e41
CY
92402009-05-22 Chong Yidong <cyd@stupidchicken.com>
9241
9242 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
9243
46306a17
SM
92442009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
9245
9246 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
9247 and xfont_scratch_props.
9248 (syms_of_xfont): Do it here instead.
9249 (xfont_find_ccl_program): Delete, unused.
9250 (xfont_open): Delete unused var `i'.
9251
ef6e0694
KH
92522009-05-21 Kenichi Handa <handa@m17n.org>
9253
9254 * fontset.c (Qlatin): Don't make it static.
9255
46306a17
SM
9256 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
9257 New functions.
ef6e0694
KH
9258 (xfont_scripts_cache, xfont_scratch_props): New variables.
9259 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
9260 (xfont_list_pattern): Argument changed. Callers changed.
9261 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
9262 (xfont_list): Don't reject a font spec with :script property.
9263 (xfont_has_char): Fix setting of encoding.
9264 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
9265 xfont_scratch_props.
9266
92672009-05-19 Kenichi Handa <handa@m17n.org>
9268
46306a17 9269 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
9270 Callers changed.
9271
92722009-05-18 Kenichi Handa <handa@m17n.org>
9273
9274 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
9275
ac71ced7
SM
92762009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9277
9278 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
9279 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
9280
1c6d1051
YM
92812009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9282
9283 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
9284 (x_delete_terminal): Dissociate resource database from display and
9285 then call XrmDestroyDatabase before closing display.
9286
9b9b779c
AR
92872009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
9288
9289 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
9290 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
9291 whether selected frame is viable before raising it (based on patch
9292 by David Reitter), and improve commentary.
9293 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 9294
cccd42d5
KH
92952009-05-15 Kenichi Handa <handa@m17n.org>
9296
9297 * font.c (Ffont_spec): Check arguments.
9298
337fbd17
CY
92992009-05-14 Chong Yidong <cyd@stupidchicken.com>
9300
9301 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
9302 weight when testing attributes (Bug#3282).
9303
47a6002f
JD
93042009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9305
9306 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
9307 what we expect to get in the next ConfigureNotify event.
9308
9cb363db
YM
9309 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
9310 before Xft one (Bug#1696).
9311
b9126609
CY
93122009-05-07 David Reitter <david.reitter@gmail.com>
9313
9314 * nsfns.m (Fx_display_planes): Compute bitplanes using
9315 NSBitsPerPixelFromDepth (Bug#3207).
9316
27a69fd9
CY
93172009-05-10 Chong Yidong <cyd@stupidchicken.com>
9318
9319 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
9320
00f37552
TTN
93212009-05-10 Ulrich Mueller <ulm@gentoo.org>
9322
9323 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
9324
2d82a920
DR
93252009-05-07 David Reitter <david.reitter@gmail.com>
9326
ec7709ba
JB
9327 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
9328 Respect mouse face background.
2d82a920 9329
46b0d52d
DR
93302009-05-07 David Reitter <david.reitter@gmail.com>
9331
ec7709ba
JB
9332 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
9333 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
9334 in ns_update_begin and ns_update_end.
9335
ce1b23bb
SM
93362009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9337
5996e1b7
SM
9338 * nsfns.m (ns_get_screen): Rewrite.
9339 Don't presume selected-frame is of type `ns'.
9340
ba98e3a0
SM
9341 * font.c (font_update_drivers): Sanity fallback to avoid disabling
9342 all drivers.
9343
ce1b23bb
SM
9344 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
9345
bcda200f
YM
93462009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9347
9348 * keyboard.h (add_user_signal): Fix typo in extern.
9349
9350 * lisp.h (add_user_signal): Remove extern.
9351
9352 * unexelf.c (unexec): Consider a section to precede the .bss section
9353 if its addresses overlap that of .bss.
9354 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
9355 instead of dumping process.
9356
864660a2
SM
93572009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9358
9359 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
9360
50da4e56
SM
93612009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
9362
9363 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
9364
51520a1a
DN
93652009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
9366
9367 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
9368 any statements.
9369
409ea3a1
AS
93702009-05-02 Andreas Schwab <schwab@linux-m68k.org>
9371
59c4c60f
AS
9372 * process.c (read_process_output): Make sure the current buffer is
9373 always restored.
9374
409ea3a1
AS
9375 * coding.c (record_conversion_result): Don't modify
9376 Vlast_code_conversion_error for successful result.
9377 (alloc_destination): Don't clobber conversion result. (Bug#1650)
9378
56f00ed2
KH
93792009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9380
9381 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 9382 (load_charset_map): Remove unnecessary code.
56f00ed2 9383
4491c9d2
DR
93842009-04-30 David Reitter <david.reitter@gmail.com>
9385
35f5b128 9386 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
9387 through f24.
9388
6970f632
CY
93892009-04-30 Chong Yidong <cyd@stupidchicken.com>
9390
9391 * xfaces.c (face_at_buffer_position): New arg base_face_id.
9392
9393 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
9394 face_at_buffer_position.
9395 (face_before_or_after_it_pos, get_next_display_element)
9396 (note_mouse_highlight): Update face_at_buffer_position call.
9397
9398 * term.c (term_mouse_highlight):
9399 * msdos.c (IT_note_mouse_highlight):
9400 * fontset.c (Finternal_char_font):
35f5b128 9401 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
9402
9403 * dispextern.h (face_at_buffer_position): Update prototype.
9404
0c616f63
KH
94052009-04-30 Kenichi Handa <handa@m17n.org>
9406
35f5b128 9407 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 9408
ad3aaf33
AS
94092009-04-29 Andreas Schwab <schwab@linux-m68k.org>
9410
9411 * callproc.c (Fcall_process): Fix GC protection. Make sure
9412 current buffer is always restored.
9413
c3c963a0
YM
94142009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9415
9416 * atimer.c (init_atimer): Also clear stopped_atimers.
9417
9418 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
9419
7e3386cb
YM
9420 * process.c (create_process): Clean up merger residues of
9421 2008-07-17 change.
9422
91f68422
CY
94232009-04-29 Ulrich Mueller <ulm@gentoo.org>
9424
9425 * lread.c (Vread_circle): New variable.
9426 (read1): Disable recursive read if Vread_circle is nil.
9427
24b34550
KH
94282009-04-29 Kenichi Handa <handa@m17n.org>
9429
9430 * fontset.h (set_default_ascii_font): Delete extern.
9431
9432 * fontset.c (set_default_ascii_font): Delete this unused function.
9433
9434 * frame.c (x_set_font): When ARG is a font-object, check if the
9435 font-object matches with the ASCII font-spec of the frame's
9c358bda 9436 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 9437
77bf07e1
AS
94382009-04-28 Andreas Schwab <schwab@linux-m68k.org>
9439
9440 * fns.c (Flocale_info): Protect vector from GC during decoding.
9441
9442 * process.c (Fstart_process): Protect argv strings from GC during
9443 encoding.
9444
2c55aacf
AS
94452009-04-27 Andreas Schwab <schwab@linux-m68k.org>
9446
9447 * sysdep.c: Include <ctype.h>.
9448
b892d3c9
DR
94492009-04-27 David Reitter <david.reitter@gmail.com>
9450
35f5b128 9451 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
9452 Remove commented-out code.
9453
9d0644c4
JB
94542009-04-26 Johan Bockgård <bojohan@gnu.org>
9455
9456 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9457
b7053016
JR
94582009-04-25 Jason Rumney <jasonr@gnu.org>
9459
9460 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
9461
4e8231f3
YM
94622009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9463
9464 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
9465 Swap bytes in short integer if fringe bitmap width > 8.
9466
493dcf2c
KH
94672009-04-23 Kenichi Handa <handa@m17n.org>
9468
9469 * xfaces.c (Fx_list_fonts): If a font size is specified in
9470 PATTERN, set it in returned scalable fonts.
9471
401e9e57
CY
94722009-04-22 Chong Yidong <cyd@stupidchicken.com>
9473
708e05dc
CY
9474 * keyboard.c (Fset_input_meta_mode): Doc fix.
9475
9476 * dispnew.c (Fsend_string_to_terminal): Doc fix.
9477
1ac9108a 9478 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
9479
9480 * coding.c (Fterminal_coding_system): Doc fix.
9481
9482 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
9483 (Fx_display_pixel_height, Fx_display_planes)
9484 (Fx_display_color_cells, Fx_server_max_request_size)
9485 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9486 (Fx_display_mm_height, Fx_display_mm_width)
9487 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
9488 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
9489 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
9490 (check_x_display_info): Handle terminal objects instead of
9491 terminal ids.
9492
401e9e57
CY
9493 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
9494 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
9495 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
9496 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 9497
df80c7f0
KH
94982009-04-21 Kenichi Handa <handa@m17n.org>
9499
5a8f12af 9500 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 9501 (font_score): Check AVGWIDTH too.
908567ef 9502
df80c7f0
KH
9503 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
9504 worst case.
1ac9108a
SM
9505 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
9506 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 9507
705af33f
JR
95082009-04-19 Jason Rumney <jasonr@gnu.org>
9509
9510 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 9511 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
9512
9513 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
9514 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
9515 get_phys_cursor_geometry.
9516
b71ac3dd 9517 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
9518 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
9519 using get_phys_cursor_geometry.
9520
9521 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
9522 correctly calculated.
9523
dc2933eb
JD
95242009-04-19 Jan Djärv <jan.h.d@swipnet.se>
9525
1ac9108a
SM
9526 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
9527 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
9528 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
9529 is deprecated.
9530
973e7849
AS
95312009-04-18 Andreas Schwab <schwab@linux-m68k.org>
9532
9533 * font.c (font_put_frame_data): Use xfree instead of free.
9534
314d66f4
JB
95352009-04-17 Juanma Barranquero <lekktu@gmail.com>
9536
9537 * w32font.c (Qja, Qko): Remove declarations.
9538 (syms_of_w32font): Don't DEFSYM them.
9539
cf702558
CY
95402009-04-17 Chong Yidong <cyd@stupidchicken.com>
9541
9542 * font.c (Qja, Qko): Move definitions here from ftfont.c.
9543
9544 * font.h (Qja, Qko): Extern them.
9545
9546 * ftfont.c (Qja, Qko): Remove declarations.
9547
9548 * xfont.c (Qja, Qko): Remove declarations.
9549
b50504f5
KH
95502009-04-17 Kenichi Handa <handa@m17n.org>
9551
bde25748
KH
9552 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
9553 string from a vector to handle Latin-1 characters correctly.
9554
b50504f5
KH
9555 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
9556 entity even if the cache hits.
9557
f4646fff
AS
95582009-04-16 Andreas Schwab <schwab@linux-m68k.org>
9559
9560 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 9561 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 9562
e7deaab0
AS
9563 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
9564 * lisp.h: Adjust prototypes.
9565
0a0e7d49
CY
95662009-04-16 Chong Yidong <cyd@stupidchicken.com>
9567
9568 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
9569 change (Bug#3003).
9570
3c908a57
KH
95712009-04-16 Kenichi Handa <handa@m17n.org>
9572
1ac9108a 9573 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
9574
9575 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
9576 adstyle.
9577
9578 * ftfont.c (Qja, Qko): Don't make them static.
9579 (enum ftfont_cache_for): New enum.
9580 (fc_charset_table): Undo the previous change.
9581 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
9582 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
9583 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
9584 non-scarable font, try to get AVERAGE_WIDTH.
9585 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
9586 Change ft_face_cache from a list of a hash-table. Don't check
9587 `ja' and `ko' adstyle here.
9588 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
9589 FTFONT_CACHE_FOR_CHARET.
9590 (ftfont_get_charset): Undo the previous change.
1ac9108a 9591 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
9592 (ftfont_close): Likewise.
9593 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
9594
9595 * font.c (font_sort_entites): Change the meaning of the arg
9596 BEST-ONLY. Don't optimize for VEC of lenght 1.
9597 (font_select_entity): Just return the value of font_sort_entites.
9598
9599 * xfaces.c (merge_face_vectors): Reflect font properties in
9600 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
9601 font_clear_prop if a face attribute doesn't change.
9602
3c908a57
KH
9603 * charset.h (charset_ksc5601): Extern it.
9604
9605 * charset.c (charset_ksc5601): New variable.
9606 (Fdefine_charset_internal): Set charset_ksc5601.
9607 (init_charset_once): Initialize charset_ksc5601 to -1.
9608
d65859c3
DN
96092009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
9610
9611 * fileio.c (history_delete_duplicates): Remove unused declaration.
9612
9613 * callint.c (history_delete_duplicates): New declaration.
9614 (Fcall_interactively): Remove command history duplicates when
9615 history_delete_duplicates is true.
9616
3ba010e5
EZ
96172009-04-14 Eli Zaretskii <eliz@gnu.org>
9618
9619 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
9620
06f19b91
KH
96212009-04-14 Kenichi Handa <handa@m17n.org>
9622
9623 * font.c (Ffont_info): Fix docstring. Fix the second element of
9624 the returned value (bug#2949).
9625
2cce8bfc
CY
96262009-04-14 Chong Yidong <cyd@stupidchicken.com>
9627
9628 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
9629
d156542d
KH
96302009-04-14 Kenichi Handa <handa@m17n.org>
9631
9632 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
9633 encoding charset is ascii_compatible.
9634
9635 * charset.c (Fdefine_charset_internal): Make charset
9636 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
9637 code_offset is 0, and covers all ASCII characters.
9638
86fa089e
SM
96392009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
9640
9641 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
9642 (ns_string_to_pasteboard_internal):
9643 * nsmenu.m (process_dialog):
9644 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
9645 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
9646 * lisp.h (Fx_load_color_file): Declare.
9647
a8a3728b
KH
96482009-04-13 Kenichi Handa <handa@m17n.org>
9649
1ac9108a 9650 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
9651 (font_select_entity): Suppress the code to optimize for the same
9652 kind of fonts.
9653 (font_load_for_lface): Get a font that supports at least ASCII
9654 characters.
9655
9656 * ftfont.c (Qja, Qko): New variables.
9657 (fc_charset_table): Delete uniquifier data for iso8859-1.
9658 (ftfont_get_latin1_charset): New function.
9659 (get_adstyle_property): New function.
9660 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
9661 bitmap fonts.
9662 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
9663 Delete iso-8859-1 range from the charset of fonts whose adstyle is
9664 `ko' or `ja'.
9665 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 9666 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
9667 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
9668 property.
9669 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
9670 (syms_of_ftfont): DEFSYM Qja and Qko.
9671
483670b5
KH
96722009-04-09 Kenichi Handa <handa@m17n.org>
9673
12b55765
KH
9674 * charset.c (map_charset_chars): For a charset of `superset'
9675 method, fix calculation of code range.
9676
483670b5
KH
9677 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
9678 from the list of extra properties.
9679 (font_clear_prop): Be sure to delete `:name' font property.
9680
57d3b93b
KH
96812009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9682
b4b2c2ca
YM
9683 * dispnew.c (redraw_overlapping_rows): Fix detection of
9684 overlapping for topmost and bottommost rows.
9685
1ac9108a 9686 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 9687
472c3609
JR
96882009-04-06 Jason Rumney <jasonr@gnu.org>
9689
9690 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
9691
ab193662
KH
96922009-04-06 Kenichi Handa <handa@m17n.org>
9693
9694 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
9695
9696 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
9697
0c26f026
KH
96982009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9699
9700 * ftfont.c (ftfont_open): Fix checking of the return value of
9701 FT_Load_Char. Fix setting font->underline_thickness.
9702
e173bbce
CY
97032009-04-04 Chong Yidong <cyd@stupidchicken.com>
9704
9705 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
9706 (Fterminal_parameters, Fterminal_parameter)
9707 (Fset_terminal_parameter): In doc string, refer to terminal
9708 objects rather than terminal ids.
9709
693a2698
EZ
97102009-04-04 Eli Zaretskii <eliz@gnu.org>
9711
9712 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
9713 ret_lim_data. (Bug#2867)
9714
d5221487
CY
97152009-04-03 Chong Yidong <cyd@stupidchicken.com>
9716
9717 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
9718 so they don't get wider than the window, matching 2006-01-23
9719 change to the partner function in xdisp.c (Bug#2800).
9720
223509a3
KH
97212009-04-03 Kenichi Handa <handa@m17n.org>
9722
9723 * print.c (print_object): Make each lowest sub_char_table start a
9724 new line (Bug#2866).
9725
74fcd0b1
KH
97262009-04-02 Kenichi Handa <handa@m17n.org>
9727
9728 * fontset.c (fontset_font): Record no-font when a fontset
9729 explicitly tells not to try another font-specs.
9730
c542407d
SM
97312009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
9732
9733 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
9734
e3869731
KH
97352009-03-30 Kenichi Handa <handa@m17n.org>
9736
d8d2f142
KH
9737 * fontset.c (fontset_from_font): Specify only registry in a
9738 font-spec for all characters supported by that registry.
9739
e3869731
KH
9740 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
9741 even if HAVE_M17N_FLT is not defined.
9742
5da5f805
CY
97432009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
9744
9745 * ftfont.c: Conditionalize prototyping and use of
9746 ftfont_variation_glyphs.
9747
ab226c50
SM
97482009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
9749
9628fed7
SM
9750 * frame.c (delete_frame): Work around compiler bug.
9751
9752 * editfns.c (general_insert_function): Adjust to insdel.c changes.
9753 * insdel.c (prepare_to_modify_buffer, signal_before_change):
9754 Some more EMACS_INT.
9755 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
9756
9757 * xdisp.c (dump_glyph): Fix typo.
9758
ae19ba7c
SM
9759 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
9760 (adjust_markers_gap_motion, adjust_markers_for_delete)
9761 (adjust_markers_for_insert, adjust_point)
9762 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
9763 (make_gap, copy_text, count_size_as_multibyte, insert)
9764 (insert_and_inherit, insert_before_markers)
9765 (insert_before_markers_and_inherit, insert_1)
9766 (count_combining_before, count_combining_after, insert_1_both)
9767 (insert_from_string, insert_from_string_before_markers)
9768 (insert_from_string_1, insert_from_gap, insert_from_buffer)
9769 (insert_from_buffer_1, adjust_after_replace)
9770 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
9771 (replace_range_2, del_range, del_range_1, del_range_byte)
9772 (del_range_both, del_range_2, modify_region)
9773 (prepare_to_modify_buffer, signal_before_change)
9774 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
9775 for buffer positions and sizes.
9776 * lisp.h: Adjust prototypes accordingly.
9777
9778 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
9779 (non_regular_inserted, non_regular_nbytes, read_non_regular)
9780 (Finsert_file_contents): Use EMACS_INT for buffer positions.
9781
ab226c50
SM
9782 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
9783
46dfb8fb
JD
97842009-03-27 Jan Djärv <jan.h.d@swipnet.se>
9785
9786 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
9787 lines and columns so we keep the same pixel height and width.
9788
9789 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
9790 the property _NET_WM_STATE has changed.
46dfb8fb
JD
9791 (x_handle_net_wm_state): New function to update frame parameter
9792 fullscreen.
9793 (x_term_init): Initialize atoms for _NET_WM_STATE.
9794
9795 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
9796
d347e494
SM
97972009-03-27 Kevin Ryde <user42@zip.com.au>
9798
9799 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
9800 Gpm_GetEvent as an error that justifies closing the filedescriptor.
9801 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
9802 (Fgpm_mouse_stop): Pass that new parameter.
9803 * termhooks.h (close_gpm): Adjust prototype.
9804
84db11d6
SM
98052009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
9806
c95a5008
SM
9807 * lisp.h (Fx_focus_frame): Declare.
9808
84db11d6
SM
9809 * callint.c (Fcall_interactively): For '^' just delegate the work to
9810 handle-shift-selection.
9811 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
9812
0a1958d6
CY
98132009-03-24 Chong Yidong <cyd@stupidchicken.com>
9814
0bfdff23
CY
9815 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
9816
0a1958d6
CY
9817 * data.c (Qinteractive_form): New variable.
9818 (Finteractive_form): Use it.
9819
9820 * eval.c (Fcommandp): Use Qinteractive_form.
9821
58aec0d6
JR
98222009-03-24 Jason Rumney <jasonr@gnu.org>
9823
9824 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
9825 Calculate total size precisely. Decode environment variables
9826 before substituting. (Bug#38)
9827
553dd618
KH
98282009-03-24 Kenichi Handa <handa@m17n.org>
9829
9830 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 9831 encoding (Bug#2722).
553dd618 9832
c39ea606
JD
98332009-03-23 Jan Djärv <jan.h.d@swipnet.se>
9834
9835 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
9836 that gdpy is set.
9837
bc9b2b5e
AM
98382009-03-22 Alan Mackenzie <acm@muc.de>
9839
9840 * callint.c (Finteractive): Clarify the doc string - even
9841 promptless elements need \n separators.
9842
9f995a76
JR
98432009-03-22 Jason Rumney <jasonr@gnu.org>
9844
9845 * w32term.c (syms_of_w32term): Doc fix for
9846 x-use-underline-position-properties.
9847
22749e9a
EZ
98482009-03-21 Eli Zaretskii <eliz@gnu.org>
9849
9850 * w32.c (getpwuid): Change argument type to unsigned.
9851 (struct w32_id): Change type of `rid' member to unsigned.
9852 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
9853 argument ID to unsigned. All callers changed.
9854 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
9855
e00553bf
EZ
98562009-03-20 Eli Zaretskii <eliz@gnu.org>
9857
9858 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
9859 negative, produce a float value.
9860
9861 * dired.c (make_uid, make_gid): New functions.
9862 (Ffile_attributes): Use them to avoid negative UID and GID.
9863
f761d6b6
JB
98642009-03-20 Juanma Barranquero <lekktu@gmail.com>
9865
9866 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
9867 (syms_of_keyboard) <command-hook-internal, input-method-function>:
9868 Fix typos in docstrings.
9869
d507f8d7
KH
98702009-03-19 Kenichi Handa <handa@m17n.org>
9871
9872 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
9873 changed, use font_load_for_lface to get a new font object.
9874 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
9875
9876 * frame.c (x_set_font): Handle the case that ARG is a cons.
9877
c68845e0
GM
98782009-03-19 Glenn Morris <rgm@gnu.org>
9879
9880 * fileio.c (Fsubstitute_in_file_name): Doc fix.
9881
bfa49dd1
CY
98822009-03-19 Chong Yidong <cyd@stupidchicken.com>
9883
9884 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
9885
8458d4c1
KH
98862009-03-19 Kenichi Handa <handa@m17n.org>
9887
9888 * charset.c (load_charset_map_from_file): When a mapfile can't be
9889 loaded, signal an error.
9890
78e7d1fe
EZ
98912009-03-18 Eli Zaretskii <eliz@gnu.org>
9892
9893 * dired.c (Ffile_attributes): Make sure UID and GID are always
9894 positive, even if the value is too large for a positive EMACS_INT.
9895 Doc fix.
9896
9897 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
9898
5da9fdfa
YM
98992009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9900
9901 * xmenu.c (xdialog_show): Move Fredisplay call ...
9902 (Fx_popup_dialog): ... here.
9903
7519c40d
SM
99042009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
9905
9906 * dired.c (file_name_completion): Disable the first optimization just
9907 installed, since it is not implemented correctly.
9908
2cd298e2
SM
99092009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9910
9911 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 9912 only if the entry can affect bestmatch.
2cd298e2
SM
9913 Stop the search early, as Ftry_completion already does.
9914
48d37adf
CY
99152009-03-17 Chong Yidong <cyd@stupidchicken.com>
9916
e10c9c93 9917 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 9918
9286b16a
CY
99192009-03-15 Chong Yidong <cyd@stupidchicken.com>
9920
9921 * keyboard.c (parse_menu_item): Don't display remappings as menu
9922 equivalent bindings (Bug#788).
9923
f7b146dc
JR
99242009-03-15 Jason Rumney <jasonr@gnu.org>
9925
9926 * w32term.h (WM_EMACS_PAINT): New message.
9927 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
9928 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
9929 before passing to lisp thread. (Bug#950)
9930
f761d6b6 99312009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 9932
d93f9575
CY
9933 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
9934 variable as it was never reset.
9935 (ns_term_init): Remove initialization of Lisp-settable defaults
9936 and ns_expand_space.
9937 (-setPanelFromDefaultValues): Remove ns_expand_space.
9938 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
9939 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
9940 i.e. no additional spacing, similar to Carbon port.
9941
d93f9575
CY
9942 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
9943 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 9944
305018ec
JD
99452009-03-14 Jan Djärv <jan.h.d@swipnet.se>
9946
9947 * sound.c (alsa_configure): Remove call to deprecated
9948 snd_pcm_sw_params_set_xfer_align.
9949
f761d6b6 99502009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
9951
9952 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
9953 after clicking in a detached tool bar.
9954 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
9955
46e722a9
SM
99562009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
9957
348db3dd
SM
9958 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
9959 int/Lisp_Object mixup).
46e722a9 9960
a3d16f39
KH
99612009-03-13 Kenichi Handa <handa@m17n.org>
9962
9963 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 9964 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
9965 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
9966 (set_fontset_font): Change ARG to a vector. Handle range_list in
9967 ARG correctly.
9968 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 9969 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
9970 the above change.
9971 (fontset_from_font): Fix previous change.
fe24f56a 9972 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
9973 entry. If FONTSET is the default fontset, don't set the extra
9974 slot of the returning char-table.
9975
b066e6b6
JB
99762009-03-12 Juanma Barranquero <lekktu@gmail.com>
9977
9978 * nsfns.m (Fx_close_connection): Doc fix.
9979 (Fns_do_applescript): Reflow docstring.
9980 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
9981 (Fx_display_pixel_width, Fx_display_pixel_height)
9982 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
9983 Fix typos in docstrings.
9984 (Fns_set_alpha): Fix typos in error messages.
9985
d472514e 99862009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 9987
d472514e 9988 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
9989 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
9990 were used for such events.
9991
d472514e
JB
9992 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
9993 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 9994
d472514e 9995 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
9996 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
9997
fb930676
KH
99982009-03-11 Kenichi Handa <handa@m17n.org>
9999
ff85581a
KH
10000 * font.h (font_open_by_spec): Extern it.
10001
c50b7e98
KH
10002 * font.c (font_open_by_spec): New function.
10003 (font_open_by_name): Use font_open_by_spec.
10004
fb930676
KH
10005 * frame.c (x_set_font): When ARG is a font-object, don't alter the
10006 fontset of the frame.
10007
10008 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
10009 modify the default font of frames that use this fontset.
10010 (num_auto_fontsets): New variable.
10011 (fontset_from_font): Use num_auto_fontsets to decide a fontset
10012 name. Be sure to set FONTSET_ASCII to the correct font name.
10013 (update_auto_fontset_alist): New function.
10014
df4e8455
JB
100152009-03-11 Juanma Barranquero <lekktu@gmail.com>
10016
10017 * makefile.w32-in: Update dependencies.
10018
0a375797
AR
100192009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10020
10021 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
10022
61313fa3
SM
100232009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10024
10025 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
10026
b55103fb
CY
100272009-03-10 Chong Yidong <cyd@stupidchicken.com>
10028
10029 * lread.c (Feval_buffer): Doc fix.
10030
dde2559c
KH
100312009-03-09 Kenichi Handa <handa@m17n.org>
10032
10033 * charset.c (Qfile_name_handler_alist): Extern it.
10034 (load_charset_map_from_file): Temporarily bind
10035 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
10036
df4e8455 100372009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 10038
47f588bb
GM
10039 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
10040 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 10041
4ddf94bd
AR
100422009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10043
4c9bdfc2
AR
10044 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
10045 (x_set_window_size): Change back to calculated method of setting
10046 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
10047 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
10048 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
10049
fe41ae9e
AR
10050 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
10051
4c9bdfc2
AR
10052 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
10053 accelerator in parens under GNUstep.
10054
825d0875
KH
100552009-03-06 Kenichi Handa <handa@m17n.org>
10056
10057 These changes are to detect incorrect composition sequence without
f3b3be74 10058 looking ahead the source. (Bug#2370)
825d0875
KH
10059
10060 * coding.h: Include "composite.h".
10061 (enum compisition_state): New enum.
10062 (struct compisition_status): New struct.
10063 (struct iso_2022_spec): New member cmp_status.
10064 (struct emacs_mule_spec): New struct.
10065 (struct coding_system): New members ctext_extended_segment_len and
10066 embedded_utf_8. Change the union member
10067 spec.emacs_mule_full_support to spec.emacs_mule.
10068
10069 * coding.c (CODING_ISO_CMP_STATUS): New macro.
10070 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 10071 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
10072 (ADD_COMPOSITION_DATA): New arg nbytes.
10073 (emacs_mule_char): New arg cmp_status.
10074 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
10075 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
10076 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
10077 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
10078 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
10079 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
10080 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
10081 (EMACS_MULE_COMPOSITION_END): New macro.
10082 (emacs_mule_finish_composition): New function.
10083 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
10084 (decode_coding_emacs_mule): Avoid long looking ahead while
10085 handling composition.
10086 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
10087 (ENCODE_COMPOSITION_RULE): New macro.
10088 (finish_composition): New function.
10089 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
10090 (DECODE_COMPOSITION_START): New implementation.
10091 (DECODE_COMPOSITION_END): Likewise.
10092 (STORE_COMPOSITION_RULE): New macro.
10093 (decode_coding_iso_2022): Avoid long looking ahead while handling
10094 composition, CTEXT extended segment, and embedded UTF-8.
10095 (setup_coding_system): For a coding of type iso-2022, reset
10096 CODING_ISO_EXTSEGMENT_LEN (coding) and
10097 CODING_ISO_EMBEDDED_UTF_8 (coding).
10098 (get_translation): Delete arguments last_block, from_nchars,
10099 to_nchars. Callers changed.
10100 (produce_chars): Don't modify charbuf. Adjusted for the change of
10101 get_translation.
98a326f7 10102 (produce_composition): Adjust for the new annotation sequence.
825d0875 10103 (handle_composition_annotation): Likewise.
98a326f7 10104 (consume_chars): Adjust for the change of get_translation.
825d0875 10105
ccbc4452
AR
101062009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
10107
4ddf94bd 10108 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 10109
988a7ddb
KH
101102009-03-05 Kenichi Handa <handa@m17n.org>
10111
10112 * font.c (font_select_entity): New function.
10113 (font_find_for_lface): Use font_select_entity to select a font.
10114
10115 * fontset.c (fontset_find_font): If a font found without
a8a3728b 10116 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
10117 font with C restriction.
10118
98a326f7 101192009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 10120
be1bce46 10121 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 10122
10ea2b82
JR
101232009-03-04 Jason Rumney <jasonr@gnu.org>
10124
2c93b248 10125 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 10126 characters that have already been read. (Bug#2569)
2c93b248 10127
10ea2b82
JR
10128 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
10129 Log an error message if check_image_size failed.
10130 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 10131 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 10132
71a0c011
EZ
101332009-03-02 Eli Zaretskii <eliz@gnu.org>
10134
10135 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
10136 when decoding process output.
10137
2f63bba8
RS
101382009-03-01 Richard M Stallman <rms@gnu.org>
10139
10140 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
10141
10142 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
10143
0a9564cb
EZ
101442009-02-28 Eli Zaretskii <eliz@gnu.org>
10145
10146 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
10147 (decode_coding_emacs_mule, decode_coding_iso_2022)
10148 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10149 (decode_coding_raw_text, decode_coding_charset)
10150 (setup_coding_system, decode_eol, decode_coding, consume_chars):
10151 Honor inhibit-eol-conversion. (Bug #2186)
10152
449148b3
JR
101532009-02-28 Jason Rumney <jasonr@gnu.org>
10154
10155 * coding.c (detect_coding_charset): If not checking latin extra,
10156 fail on characters between 0x80 and 0xA0. (Bug#2354)
10157
a4aee864
EZ
101582009-02-28 Eli Zaretskii <eliz@gnu.org>
10159
10160 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 10161 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 10162
d88bee5a
GM
101632009-02-27 Glenn Morris <rgm@gnu.org>
10164
10165 * callint.c (Finteractive): Doc fix.
10166
a808f22d
KH
101672009-02-27 Kenichi Handa <handa@m17n.org>
10168
10169 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
10170
caf8d60c
CY
101712009-02-27 Chong Yidong <cyd@stupidchicken.com>
10172
10173 * font.c (font_style_to_value): Set value for unknown symbols to
10174 100 instead of 255.
b61137ea
CY
10175 (weight_table, slant_table, width_table): Treat "unspecified" as
10176 the default value.
caf8d60c 10177
1a0de25c
JB
101782009-02-26 Juanma Barranquero <lekktu@gmail.com>
10179
10180 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
10181
8fc45744
JB
101822009-02-25 Juanma Barranquero <lekktu@gmail.com>
10183
107bd7d1
JB
10184 * lread.c (Fload): Stop checking Vloads_in_progress and signal
10185 error as soon as a recursive load is detected.
8fc45744 10186
f097e223
AR
101872009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10188
10189 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
10190 before caching.
10191
8810a12f
KH
101922009-02-24 Kenichi Handa <handa@m17n.org>
10193
10194 * fontset.c (fontset_find_font): Fix the condition for checking
10195 unavailable font.
10196
2c7d1565
GM
101972009-02-24 Glenn Morris <rgm@gnu.org>
10198
10199 * xfaces.c (Finternal_set_font_selection_order): Remove leading
10200 whitespace that confuses documentation.
10201
a20878b6
MB
102022009-02-23 Miles Bader <miles@gnu.org>
10203
10204 * process.c (Flist_system_processes, Fprocess_attributes)
10205 (syms_of_process): Rename `system-process-attributes' to
10206 `process-attributes'.
10207
b3b58c01
AS
102082009-02-22 Andreas Schwab <schwab@linux-m68k.org>
10209
1b3b981b
AS
10210 * coding.h (struct coding_system): Make safe_charsets a pointer to
10211 unsigned char.
10212 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
10213 being 255.
10214 (SAFE_CHARSET_P): Likewise.
10215 (setup_iso_safe_charsets): Properly setup safe_charsets.
10216 (Fdefine_coding_system_internal): Likewise.
10217 (setup_coding_system): Likewise. Remove unneeded casts.
10218 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
10219 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
10220 unneeded casts.
10221
b3b58c01
AS
10222 * insdel.c (del_range_2): Don't modify gap contents when called
10223 from decode_coding_object. (Bug#1809)
10224
0b6f228c
CY
102252009-02-21 Chong Yidong <cyd@stupidchicken.com>
10226
10227 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
10228 Qfont_object.
10229 (Ftype_of): Recognize font objects.
10230
10231 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
10232
10233 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
10234 moved to data.c.
10235
52f8870b
AR
102362009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10237
10238 * nsterm.m (x_make_frame_invisible): Unset async_visible,
10239 async_iconified. Based on a patch by Christian Lynbech
10240 <christian.lynbech@tieto.com>.
10241 (EmacsView-windowDidMiniaturize:): Unset async_visible.
10242
7087d5e9
GM
102432009-02-20 Glenn Morris <rgm@gnu.org>
10244
10245 * syntax.c (Fskip_chars_forward): Fix doc typo.
10246
41d2ceef
CY
102472009-02-20 Chong Yidong <cyd@stupidchicken.com>
10248
10249 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
10250
1a3b7ca6
CY
102512009-02-19 Chong Yidong <cyd@stupidchicken.com>
10252
10253 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
10254
73cce38d
KH
102552009-02-19 Kenichi Handa <handa@m17n.org>
10256
10257 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 10258 Don't overflow coding->carryover. (Bug#2370)
73cce38d 10259
a51092ee
DN
102602009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
10261
10262 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
10263
c423ecca
KH
102642009-02-18 Kenichi Handa <handa@m17n.org>
10265
10266 * font.c (font_check_otf_features): Fix handling of `nil' element.
10267 (Ffont_spec): Describe :lang and :otf in the docstring.
10268
4c1958f4
AS
102692009-02-16 Andreas Schwab <schwab@suse.de>
10270
10271 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
10272 string.
10273
5704f39a
KH
102742009-02-16 Kenichi Handa <handa@m17n.org>
10275
10276 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 10277 (Bug#1723)
5704f39a 10278
8f0085aa
CY
102792009-02-14 Chong Yidong <cyd@stupidchicken.com>
10280
a057d86a 10281 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
10282
10283 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
10284 (handle_line_prefix): Suppress wrapping of wrap prefixes.
10285
aff01dd9
EZ
102862009-02-14 Eli Zaretskii <eliz@gnu.org>
10287
10288 * msdos.c (MAX_SCREEN_BUF): New macro.
10289 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
10290 Encode the entire run of glyphs sharing the same face, instead of
10291 doing that one glyph at a time (fixes a bug with displaying
10292 double-size characters).
10293
ba301db3
AR
102942009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
10295
10296 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
10297
10298 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
10299 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 10300 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
10301
10302 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 10303 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 10304
51d861de
SM
103052009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
10306
ac146f82 10307 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
10308 invisible areas.
10309
7fed8996
JR
103102009-02-12 Jason Rumney <jasonr@gnu.org>
10311
631ea4fb
JR
10312 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
10313 (add_font_entity_to_list): Call check_face_name even when family
10314 is unspecified.
10315
cb4a3e42
JR
10316 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10317 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 10318 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 10319
7fed8996 10320 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 10321 raster fonts. (Bug#2219)
7fed8996 10322
895416e3
KH
103232009-02-12 Kenichi Handa <handa@m17n.org>
10324
10325 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
10326 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
10327 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 10328 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
10329 (find_automatic_composition): While looking forward and backward,
10330 check static composition. Fix where to stop looking forward.
10331 (composition_adjust_point): Fix checking of static composition.
10332 (Fcomposition_get_gstring): Pay attention to
1dacf998 10333 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
10334
10335 * lisp.h (fast_looking_at): Extern it.
10336
10337 * search.c (fast_looking_at): New function.
10338
51d861de 10339 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
10340 <struct glyph>.u.cmp.to.
10341 (append_composite_glyph): Likewise.
10342
51d861de 10343 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
10344 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
10345 composition.
51d861de 10346 (append_composite_glyph): Adjust for the change of
895416e3
KH
10347 <strcut glyph>.u.cmp.to.
10348
8510724d
JB
103492009-02-11 Juanma Barranquero <lekktu@gmail.com>
10350
10351 * casetab.c (init_casetab_once):
10352 * coding.c (ALLOC_CONVERSION_WORK_AREA):
10353 * font.c (font_update_lface):
10354 * fontset.c (Fnew_fontset):
10355 * ftfont.c (ftfont_drive_otf):
10356 * xfont.c (xfont_open):
10357 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
10358
294fa707
SM
103592009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
10360
10361 * fileio.c (Fwrite_region): !NILP -> CONSP.
10362
b5bfebec
AS
103632009-02-10 Andreas Schwab <schwab@suse.de>
10364
10365 * process.c (send_process): Properly relocate pointer into data
adab88bd 10366 when using encoded data. (Bug#2272)
b5bfebec 10367
cb84a2be
KH
103682009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
10369
10370 * coding.c (detect_coding_charset): Fix previous change.
10371
89e09428
JR
103722009-02-08 Jason Rumney <jasonr@gnu.org>
10373
10374 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 10375 disappeared while hourglass was displayed. (Bug #2193)
89e09428 10376
4470a277
AS
103772009-02-07 Andreas Schwab <schwab@suse.de>
10378
10379 * unexelf.c (unexec): Fix error message.
10380
3175b12a
AR
103812009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
10382
10383 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 10384 when modal window is active. (Bug #2152)
3175b12a
AR
10385 (applicationShouldTerminate:): Remove now-unneeded while loop
10386 around NSRunAlertPanel.
10387
10388 * nsmenu.m (popupSession): New file-global variable.
10389 (pop_down_menu): End the popupSession before closing dialog.
10390 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
10391 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
10392 don't query NSApp for events (just sleep instead).
10393
8434d0b8
EZ
103942009-02-07 Eli Zaretskii <eliz@gnu.org>
10395
51d861de
SM
10396 * coding.c (syms_of_coding) <translation-table-for-input>:
10397 Modify doc string to discourage use for character code unification.
8434d0b8 10398
aa82edfd
CY
103992009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10400
10401 * atimer.c (run_timers): Update pending_atimers.
10402
2d283c7c
CY
104032009-02-06 Chong Yidong <cyd@stupidchicken.com>
10404
eb306cab
CY
10405 * image.c (svg_load_image): Fix last change.
10406
2d283c7c
CY
10407 * xfns.c (Fx_create_frame): Signal an error if no font is
10408 found (Bug#2147).
10409
4d8e170e
JB
104102009-02-05 Juanma Barranquero <lekktu@gmail.com>
10411
10412 * character.c (syms_of_character) <script-representative-chars>:
10413 Fix typo in docstring.
10414
c96169a0
AR
104152009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10416
10417 * nsmenu.m (pop_down_menu): New function.
10418 (ns_popup_dialog): Call it on unwind.
10419 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
10420 call timer_check() (Bug#2154).
10421 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
10422 handling_signal is set.
10423 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
10424
31fd7c5c 10425 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
10426
10427 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
10428
10429 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
10430
51d861de
SM
10431 * keyboard.c (poll_for_input_1, handle_async_input):
10432 Set handling_signal under HAVE_NS.
c96169a0 10433
aacd8ba1
GM
104342009-02-04 Glenn Morris <rgm@gnu.org>
10435
10436 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
10437
4cb75c4b
KH
104382009-02-04 Kenichi Handa <handa@m17n.org>
10439
10440 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
10441
10442 * charset.c (Fchar_charset): New optional arg restriction.
10443
10444 * coding.h (coding_system_charset_list): Extern it.
10445
10446 * coding.c (coding_system_charset_list): New function.
10447
10448 * composite.c: Include coding.h and termhooks.h.
10449 (composition_gstring_p): Fix for the terminal case.
10450 (composition_gstring_width): Likewise.
10451 (fill_gstring_body): Likewise.
10452 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
10453 the frame.
10454 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
10455 is within a composition.
867d4bb3 10456 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
10457
10458 * term.c (encode_terminal_code): Fix handling of composition.
10459 (produce_composite_glyph): For static composition, get pixel_width
10460 from struct composition.
10461
826ba17e
AS
104622009-02-02 Andreas Schwab <schwab@suse.de>
10463
10464 * unexelf.c (unexec): Handle unaligned bss offset.
10465
8ad093db
AR
104662009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10467
10468 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
10469 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 10470
8ad093db
AR
10471 * keyboard.c (handle_interrupt): Don't call
10472 quit_throw_to_read_char() under NS.
d0a76a6e 10473
8ad093db
AR
10474 * blockinput.h: Remove NS-specific code.
10475
4d18a7a2
DN
104762009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
10477
db878925
DN
10478 * dispnew.c (window_change_signal): Don't try to get the size of a
10479 suspended tty frame.
10480 * term.c (Fresume_tty): Resize if the size has changed while the
10481 tty was suspended.
10482
4d18a7a2
DN
10483 * alloc.c (mark_stack): Properly conditionalize previous change.
10484
8984df7c
JB
104852009-01-30 Juanma Barranquero <lekktu@gmail.com>
10486
10487 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
10488 * w32term.c (w32_read_socket) [SYNC_INPUT]:
10489 Remove; this code is not used on Windows.
10490
75f4f1ac
EZ
104912009-01-30 Eli Zaretskii <eliz@gnu.org>
10492
10493 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
10494 EOLs that also has stray ^M characters.
10495
07a1e794
JB
104962009-01-30 Juanma Barranquero <lekktu@gmail.com>
10497
10498 * atimer.c (run_timers, alarm_signal_handler):
10499 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
10500 * w32inevt.c (w32_console_read_socket):
10501 * w32term.c (w32_read_socket):
10502 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
10503
a8b11cc9
CY
105042009-01-30 Chong Yidong <cyd@stupidchicken.com>
10505
10506 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
10507 Initialize it as a relative filename pattern.
10508 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
10509 (Fcall_process_region): Simplify temp file creation using
10510 temporary-file-directory.
10511
c279587b
EZ
105122009-01-29 Eli Zaretskii <eliz@gnu.org>
10513
10514 * msdos.c: Rename pending_signals to msdos_pending_signals.
10515 (sig_suspender, sigprocmask): Adjust.
10516
a8fe3242
CY
105172009-01-29 Chong Yidong <cyd@stupidchicken.com>
10518
10519 * keyboard.c (pending_signals): New var.
10520 (poll_for_input, input_available_signal, init_keyboard): Set it.
10521 (process_pending_signals): New function.
10522
10523 * lisp.h (QUIT): Check pending_signals instead of
10524 interrupt_input_pending. Use process_pending_signals.
10525
51d861de 10526 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 10527
51d861de 10528 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
10529
10530 * sysdep.c (emacs_write): Use process_pending_signals.
10531
10532 * xterm.c (XTread_socket): Update pending_signals.
10533
10534 * w32term.c (w32_read_socket): Update pending_signals.
10535
10536 * w32inevt.c (w32_console_read_socket): Update pending_signals.
10537
6570a1c4
KH
105382009-01-29 Kenichi Handa <handa@m17n.org>
10539
10540 * xftfont.c (xftfont_has_char): New function.
10541 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
10542
d72a4afa
AR
105432009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10544
10545 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
10546 under GNUstep.
10547 (ns_query_color): New declaration.
10548
10549 * nsterm.m (ns_confirm_quit): New variable.
10550 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
10551 (EmacsApp-applicationShouldTerminate:): Use it.
10552 (EmacsPrefsController): Let user set it.
10553 (ns_query_color): New function.
10554 (ns_defined_color): Use it.
10555 (ns_initialize): Drop.
10556 (ns_term_init): Add two lines from ns_initialize(), and set
10557 input_interrupt_mode to nil.
10558
10559 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 10560 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 10561
9fe78804
KH
105622009-01-28 Kenichi Handa <handa@m17n.org>
10563
10564 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
10565 (fontset_get_font_group): Remember that no font-group is specified
10566 for C.
9fe78804 10567
fa57de36
CY
105682009-01-27 Chong Yidong <cyd@stupidchicken.com>
10569
930600e9
CY
10570 * fns.c (concat): Check for string overflow (bug#1787).
10571
fa57de36
CY
10572 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
10573 Quadruple undo limits (bug#1501).
10574
7179ce7b
KH
105752009-01-27 Kenichi Handa <handa@m17n.org>
10576
10577 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
10578 directly use GT_Get_Char_index.
10579
10580 * xftfont.c (struct xftfont_info): New member `index'.
10581
10582 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 10583 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 10584
5be8fcc0
CY
105852009-01-26 Kenichi Handa <handa@m17n.org>
10586
10587 * fontset.c (fontset_find_font): Fix handling of non-cons return
10588 value of fontset_get_font_group.
10589 (fontset_font): Revert last change.
10590
19ae3e61
JR
105912009-01-26 Jason Rumney <jasonr@gnu.org>
10592
10593 * w32font.c (w32font_list_internal): Return quickly if registry is
10594 unknown. Simplify final return.
10595 (add_font_entity_to_list): Break complex logic down into more
10596 manageable chunks. Move unknown registry check to
10597 w32font_list_internal.
10598
8612b71a
AR
105992009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
10600
10601 Changes to remove Feval calls from GUI under NS.
10602
d8038940
JB
10603 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
10604 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
10605 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
10606
10607 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
10608 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
10609 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
10610 instead of NON_ASCII_KEYSTROKE_EVENT.
10611 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
10612 (EmacsApp-applicationShouldTerminate:): Query user.
10613 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
10614 instead of Feval.
10615
10616 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
10617
10618 * keyboard.c (kbd_buffer_get_event): Check for it.
10619 (keys_of_keyboard): Define lispy keys for
10620 ns-put/unput-working-text.
10621
10622 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
10623 versions.
10624 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
10625
6288ae55
CY
106262009-01-25 Chong Yidong <cyd@stupidchicken.com>
10627
10628 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 10629 setting current_buffer directly. (Bug#2044)
6288ae55 10630
289e7f8f
CY
106312009-01-24 Chong Yidong <cyd@stupidchicken.com>
10632
5ce87308 10633 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 10634 any work. (Bug#1952, bug#1990).
5ce87308 10635
64cc3cf6 10636 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 10637
b3243e6f
AR
106382009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10639
10640 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
10641 (ns_no_defaults): New declaration.
10642 (main): Use it.
e0d2e69a 10643
d900b2af 10644 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 10645
d900b2af 10646 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 10647
d900b2af
AR
10648 * nsterm.m (ns_no_defaults): New variable.
10649 (ns_initialize): Don't read defaults when ns_no_defaults.
10650 (EmacsView-readSelectionFromPasteboard:)
10651 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 10652 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
10653 (ns_dumpglyphs_stretch): New function.
10654 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 10655 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 10656
e0d2e69a
AR
10657 * nsimage.m (setPixmapData:): Set to ignore image DPI.
10658
3ac71f5d
CY
106592009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
10660
10661 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
10662 call for Sparc64.
10663
3fe53a83
AR
106642009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10665
10666 * nsfns.m:
10667 * nsgui.h:
10668 * nsmenu.m:
10669 * nsselect.m:
10670 * nsterm.h:
10671 * nsterm.m: Remove '23' comments that indicated code added during
10672 update from emacs-20 -> emacs-23.
10673
10f87c6f 106742009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
10675
10676 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 10677 ns_alternate_modifier. (Bug#1217)
a3b53a85 10678
c7cef62d
AR
10679 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
10680 Display all shortcuts, including those w/o super modifier.
10681
575fb8bd
AR
10682 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
10683
918b848b
CY
106842009-01-22 Chong Yidong <cyd@stupidchicken.com>
10685
10686 * fileio.c (Vwrite_region_post_annotation_function)
10687 (Vwrite_region_annotation_buffers): New vars.
10688 (build_annotations_unwind): Just reset
10689 Vwrite_region_annotation_buffers.
10690 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
10691 Call write-region-post-annotation-function.
10692 (build_annotations): Add to Vwrite_region_annotation_buffers if
10693 buffer changes.
10694
a39e2539
AR
106952009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10696
10697 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
10698 Tiger.
51d861de
SM
10699 * nsfns.m (ns_do_applescript):
10700 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 10701
35ed44db
AR
107022009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
10703
10704 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
10705
cbe0b5bf
AR
107062009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10707
10708 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 10709
6049d3a0
AR
10710 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
10711
10712 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
10713 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
10714 handle Ctrl-tab. (Bug#1841)
10715 (ns_get_color): Use unsigned long long for scanned hex string value.
10716 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 10717 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 10718 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 10719 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 10720 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 10721 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 10722 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 10723
d3810c21 10724 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 10725 DPI. (Bug#1316)
d3810c21
AR
10726 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
10727 values in onTiger section.
4c7077c3 10728
e301e634
CY
107292009-01-19 Chong Yidong <cyd@stupidchicken.com>
10730
7f82490b
CY
10731 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
10732 Check return value of font_spec_from_name.
64cc3cf6 10733 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
10734
10735 * font.c (font_spec_from_name): Return Qnil if font name could not
10736 be parsed.
10737 (font_parse_name): Treat a `?' character as part of an XLFD.
10738
e301e634
CY
10739 * fns.c (Fsubstring): Doc fix.
10740
1c0db158
KH
107412009-01-19 Kenichi Handa <handa@m17n.org>
10742
51d861de 10743 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
10744 (ftfont_list): Likewise.
10745
acf20901
JB
107462009-01-18 Juanma Barranquero <lekktu@gmail.com>
10747
fff4e459
JB
10748 * dbusbind.c (Fdbus_register_signal):
10749 * process.c (conv_sockaddr_to_lisp):
10750 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
10751
acf20901
JB
10752 * callproc.c (Fgetenv_internal): Doc fix.
10753
e7abcdfb
CY
107542009-01-16 Chong Yidong <cyd@stupidchicken.com>
10755
10756 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
10757 it is not even used.
10758
b60861e6
GM
107592009-01-16 Glenn Morris <rgm@gnu.org>
10760
10761 * font.c (Ffont_variation_glyphs): Silence compiler.
10762
8db52afe
JB
107632009-01-15 Juanma Barranquero <lekktu@gmail.com>
10764
10765 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
10766 Reported by David Robinow <drobinow@gmail.com>.
10767
4cddb209
KH
107682009-01-15 Kenichi Handa <handa@m17n.org>
10769
51d861de 10770 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 10771
f247f67b
JR
107722009-01-14 Jason Rumney <jasonr@gnu.org>
10773
10774 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 10775 never a fontset. (Bug#1562)
f247f67b 10776
f56a4450
KH
107772009-01-14 Kenichi Handa <handa@m17n.org>
10778
10779 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 10780 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 10781
4e99855e
CY
107822009-01-13 Chong Yidong <cyd@stupidchicken.com>
10783
10784 * font.c (font_clear_prop): If clearing the family, clear the font
10785 width index too.
10786
fff4e459 10787 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 10788
24f01470
JB
107892009-01-12 Juanma Barranquero <lekktu@gmail.com>
10790
10791 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
10792 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
10793 functions, use sizeof.
10794
a41240a3
MR
107952009-01-12 Martin Rudalics <rudalics@gmx.at>
10796
10797 * keyboard.c (read_char): Fix case where last_nonmenu_event
10798 returned a bad value with submenus. (Bug#447)
10799
944636b8
CY
108002009-01-12 Chong Yidong <cyd@stupidchicken.com>
10801
10802 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
10803 family, clear the font width index too.
10804
0dad7c6f
JR
108052009-01-11 Jason Rumney <jasonr@gnu.org>
10806
10807 * keyboard.c (cmd_error_internal): Exit when errors occur before
10808 frame creation and not in daemon mode. (Bug#1836)
10809
7c2363af
CY
108102009-01-10 Chong Yidong <cyd@stupidchicken.com>
10811
10812 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
10813 of a display vector, backtrack.
10814 (try_window_reusing_current_matrix): Check glyph type before
10815 referencing charpos member.
10816
97b1b294
EZ
108172009-01-10 Eli Zaretskii <eliz@gnu.org>
10818
10819 Fix Bug #876:
10820
10821 * coding.c (inhibit_null_byte_detection): New variable.
10822 (detect_coding, detect_coding_system): Don't pay attention to null
10823 bytes if inhibit_null_byte_detection is non-zero.
51d861de 10824 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
10825 <inhibit-iso-escape-detection>: Doc fix.
10826
4624b6e3
JR
108272009-01-09 Jason Rumney <jasonr@gnu.org>
10828
10829 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 10830 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
10831 Only report Unicode Plane 2 fonts as unicode-sip.
10832
323b840c
CY
108332009-01-09 Chong Yidong <cyd@stupidchicken.com>
10834
51d861de
SM
10835 * xfaces.c (Fx_font_family_list): Delete function.
10836 Move compatibility version to faces.el.
323b840c 10837
51d861de 10838 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 10839
eba7400d
MR
108402009-01-09 Martin Rudalics <rudalics@gmx.at>
10841
10842 * frame.c (x_set_frame_parameters): Remember requested value for
10843 fullscreen before it's reset by the parameter handler.
10844
4b09796d
GM
108452009-01-09 Glenn Morris <rgm@gnu.org>
10846
10847 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 10848 (last_command_event): ... and update all users.
4b09796d
GM
10849 (last_input_char): For clarity, rename to...
10850 (last_input_event): ... and update all users.
10851 (last-command-char, last-input-char): Move to subr.el as aliases.
10852 * cmds.c, commands.h: Update for last_command_char rename.
10853
14ccea62
CY
108542009-01-08 Chong Yidong <cyd@stupidchicken.com>
10855
51d861de 10856 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 10857
5f004711
JR
108582009-01-08 Jason Rumney <jasonr@gnu.org>
10859
10860 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
10861 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
10862 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
10863 Don't declare.
fff4e459 10864 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
10865 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
10866
b71f6f73
KH
108672009-01-07 Kenichi Handa <handa@m17n.org>
10868
50b06221 10869 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 10870 remember the coding system used for decoding in
50b06221
KH
10871 coding_system (Bug#1039).
10872
b71f6f73 10873 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 10874 breaking the loop. (Bug#870)
b71f6f73
KH
10875 (decode_coding_utf_16, decode_coding_emacs_mule)
10876 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10877 (decode_coding_charset): Likewise.
10878
56f668f7
MR
108792009-01-05 Martin Rudalics <rudalics@gmx.at>
10880
10881 * frame.c (x_set_frame_parameters): Make sure height (width) get
10882 applied when fullwidth (fullheight) is set. (Bug#1522)
10883
5da9424d
JB
108842009-01-04 Juanma Barranquero <lekktu@gmail.com>
10885
10886 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
10887 (utc_base): Declare as ULONGLONG, not long double.
10888 (convert_time_raw): Delete.
10889 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
10890 (initialize_utc_base): New function.
10891 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
10892 (convert_from_time_t): Use initialize_utc_base; compute result with
10893 64-bit arithmetic.
10894 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
10895
c4605e09
EZ
108962009-01-03 Eli Zaretskii <eliz@gnu.org>
10897
9acef61c 10898 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
10899 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
10900 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
10901 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
10902 [!subprocesses]: Define.
10903 (syms_of_process) [!subprocesses]: Intern and staticpro them.
10904 (Flist_system_processes, Fsystem_process_attributes)
10905 [!subprocesses]: Call list_system_processes and
10906 system_process_attributes instead of returning Qnil.
10907
9acef61c
JB
10908 * dosfns.c (system_process_attributes, list_system_processes):
10909 New functions.
c4605e09
EZ
10910
10911 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
10912
10913 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
10914 Don't use the default (no-op) implementation.
10915
8b7d0a16
JR
109162009-01-03 Jason Rumney <jasonr@gnu.org>
10917
a6d46bc1
JR
10918 * keyboard.c (parse_modifiers_uncached): Wheel events are
10919 clicks (bug#687).
10920
8b7d0a16
JR
10921 * w32term.c (x_query_colors, x_query_color): New functions.
10922
10923 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
10924 (svg_load_image): Cast returned pointers from dynamically loaded
10925 functions. Eliminate W32 specific code.
10926
bfe11752
DN
109272009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
10928
89e2438a
DN
10929 * nsfns.m (x_set_foreground_color, x_set_background_color)
10930 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
10931 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
10932 x_ prefix instead of ns_. Update references.
10933 (syms_of_nsfns): Add a FIXME comment.
10934
10935 * nsterm.m (x_set_cursor_type): New prototype.
10936 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
10937
bfe11752
DN
10938 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
10939 for Solaris instead of incorrectly providing Qutime and Qcutime.
10940
031da700
EZ
109412009-01-02 Eli Zaretskii <eliz@gnu.org>
10942
10943 * w32.c (process_times): Compute sum of utime and stime.
10944 (system_process_attributes): Add Qtime to the alist.
10945
10946 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
10947 and add them to the alist.
10948
10949 * process.c (top level) <Qtime, Qctime>: New variables.
10950 (syms_of_process): staticpro them.
10951 (Fsystem_process_attributes): Add their documentation to the doc
10952 string.
10953
10954 * process.h: Declare Qtime and Qctime.
10955
df23bf08
JR
109562009-01-02 Jason Rumney <jasonr@gnu.org>
10957
9acef61c 10958 * image.c (Qgobject): New symbol.
df23bf08
JR
10959 (syms_of_image): Initialize it.
10960 (init_svg_functions): Load some functions from gobject library.
10961
5bbdf7aa
DN
109622009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
10963
10964 * frame.c (make_terminal_frame): Remove redundant code and useless
10965 block.
10966
63136da6
AS
109672009-01-01 Andreas Schwab <schwab@suse.de>
10968
10969 * process.c (conv_sockaddr_to_lisp): Add workaround for
10970 getsockname bug on BSD.
10971
9ef69046
CY
109722009-01-01 Chong Yidong <cyd@stupidchicken.com>
10973
d6fafbe0
CY
10974 * xfns.c (x_create_tip_frame): Set border width of the X window.
10975
51d861de 10976 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 10977
f9c34147
JR
109782009-01-01 Jason Rumney <jasonr@gnu.org>
10979
9acef61c 10980 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
10981 Don't block input, as per earlier xterm.c changes.
10982
f5497e45
AR
109832008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
10984
10985 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
10986 (ns_appkit_version_int): New function.
10987 (x-server-version): Use ns_appkit_version_int and follow 21+
10988 convention of returning 3 integers.
10989
c19cab20
KH
109902008-12-30 Kenichi Handa <handa@m17n.org>
10991
10992 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
10993 (CHAR_SURROGATE_PAIR_P): New macro.
10994
10995 * font.h (struct font_driver): New member get_variation_glyphs.
10996
9acef61c 10997 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
10998 (Ffont_variation_glyphs): New function.
10999 (syms_of_font): Defsubr it.
11000
11001 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
11002 ftfont_variation_glyphs.
11003 (setup_otf_gstring): New function.
11004 (ftfont_drive_otf): Use it.
11005 (ftfont_shape_by_flt): Handle variation selector.
11006 (ftfont_variation_glyphs): New function.
11007
28cd591f
MR
110082008-12-30 Martin Rudalics <rudalics@gmx.at>
11009
11010 * frame.c (Vemacs_iconified): Remove.
11011
7f714baf
JR
110122008-12-30 Jason Rumney <jasonr@gnu.org>
11013
11014 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 11015 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 11016
9d2d22ab
CY
110172008-12-30 Chong Yidong <cyd@stupidchicken.com>
11018
11019 * indent.c (Fvertical_motion): Don't advance iterator if we have
11020 reseated to the desired position.
11021
11022 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
11023 checking for pos match.
11024
545312c2
KH
110252008-12-30 Kenichi Handa <handa@m17n.org>
11026
1ede3eb6
KH
11027 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
11028 just get the low 8-bit of the code.
11029
545312c2
KH
11030 * font.c (font_intern_prop): Validate str as multibyte.
11031
bd7bbf29
DN
110322008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
11033
31e0750e
DN
11034 * dispextern.h (struct face): Move lface and hash from the middle
11035 of bitfields.
11036
bd7bbf29
DN
11037 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
11038
b5672e7c
DN
110392008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
11040
11041 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
11042 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
11043 instead of intervals.h.
11044
d704470f
AS
110452008-12-26 Andreas Schwab <schwab@suse.de>
11046
11047 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
11048 cons.
11049
54b33868
MR
110502008-12-26 Martin Rudalics <rudalics@gmx.at>
11051
11052 * textprop.c (Qminibuffer_prompt): New variable.
11053 (syms_of_textprop): Initialize it.
11054 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
11055 in minibuffer-prompt face. (Bug#1662)
11056
40b615d6
JR
110572008-12-25 Jason Rumney <jasonr@gnu.org>
11058
11059 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
11060
baae5c2d
JR
110612008-12-24 Jason Rumney <jasonr@gnu.org>
11062
11063 * ralloc.c (r_alloc_reset_variable): New function.
11064
11065 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 11066 record of what points where. (Bug#716)
baae5c2d 11067
a9051c88
DN
110682008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
11069
11070 * minibuf.c (read_minibuf): Follow the non-interactive case when
11071 running as a daemon, before detaching.
11072
8b146312
AS
110732008-12-22 Andreas Schwab <schwab@suse.de>
11074
11075 * buffer.c (init_buffer): Use realloc instead of xrealloc.
11076 * gtkutil.c (free_widget_value): Use xfree instead of free.
11077
56f2de10
MR
110782008-12-22 Martin Rudalics <rudalics@gmx.at>
11079
11080 * frame.c (delete_frame): New function derived from
11081 Fdelete_frame to handle Qnoelisp value for FORCE argument.
11082 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
11083 (Fdelete_frame): Call delete_frame. Remove line from doc-string
11084 saying that FORCE non-nil doesn't run `delete-frame-functions'.
11085 * frame.h: Extern delete_frame.
11086 * window.c (window_loop):
11087 * terminal.c (delete_terminal):
11088 * xterm.c (x_connection_closed):
11089 * xfns.c (Fx_hide_tip):
9acef61c 11090 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 11091
1fc200d6
JR
110922008-12-21 Jason Rumney <jasonr@gnu.org>
11093
11094 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
11095 when character maps to .notdef character.
11096
5e252df2
SM
110972008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
11098
11099 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
11100
99b72cc4
JR
111012008-12-20 Jason Rumney <jasonr@gnu.org>
11102
11103 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 11104 a graphical frame on Windows. (Bug#1325)
99b72cc4 11105
acc49a52
JD
111062008-12-20 Jan Djärv <jan.h.d@swipnet.se>
11107
11108 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
11109
6ea15123
CY
111102008-12-20 Chong Yidong <cyd@stupidchicken.com>
11111
11112 * minibuf.c (Fread_buffer): Doc fix.
11113
b2dab6c8
JR
111142008-12-20 Jason Rumney <jasonr@gnu.org>
11115
54ea0c87 11116 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 11117 server name in UNC paths. (Bug#719)
54ea0c87 11118
b2dab6c8 11119 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 11120 charbuf. (Bug#1035)
b2dab6c8 11121
6d1921be
DN
111222008-12-19 Daniel Engeler <engeler@gmail.com>
11123
11124 * sysdep.c (serial_configure): Fix typo.
11125
53934c98
DN
111262008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
11127
11128 * sysdep.c: Include alloca.h.
f4f634e8
DN
11129 (system_process_attributes): Add implementation for Solaris.
11130
11131 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 11132
06e111a6
DN
111332008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
11134
11135 Reorganize implementation of Flist_system_processes and
11136 Fsystem_process_attributes. No functional changes.
11137 * process.c: Don't #include pwd.h, grp.h and limits.h.
11138 (Flist_system_processes): Just call list_system_processes.
11139 (Fsystem_process_attributes): Just call system_process_attributes.
11140 (procfs_list_system_processes, time_from_jiffies)
11141 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
11142 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
11143
11144 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
11145 (list_system_processes): Rename from
11146 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
11147 Provide a do nothing implementation.
11148 (system_process_attributes): Rename from
11149 procfs_list_system_processes.
11150 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 11151 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
11152
11153 * w32.c (list_system_processes): Rename from
11154 w32_list_system_processes.
11155 (system_process_attributes): Rename from
11156 w32_system_process_attributes.
11157
11158 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
11159
11160 * process.h (w32_list_system_processes)
11161 (w32_system_process_attributes): Remove.
362654a6
JB
11162 (list_system_processes, system_process_attributes):
11163 New prototypes.
06e111a6 11164
6a705b23
KH
111652008-12-19 Kenichi Handa <handa@m17n.org>
11166
11167 * xfont.c (xfont_decode_coding_xlfd): New function.
11168 (xfont_encode_coding_xlfd): New function.
11169 (xfont_list_pattern): Decode XLFD by iso-8859-1.
11170 (xfont_list): Decode and encode XLFD by iso-8859-1.
11171 (xfont_match): Likewise.
11172 (xfont_list_family): Likewise.
11173 (xfont_open): Likewise.
11174
d66c0241 11175 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
11176 names are utf-8.
11177
d66c0241 11178 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
11179 names are utf-8.
11180
5a130941
JD
111812008-12-18 Jan Djärv <jan.h.d@swipnet.se>
11182
11183 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
11184 changed.
bfd20325
JD
11185 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
11186 clicked on a detached tool bar button.
5a130941 11187
fd95644b
DN
111882008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
11189
11190 * emacs.c (main): Print and error and exit when no data is read
11191 from the pipe.
11192
e6eee6ae
JR
111932008-12-17 Jason Rumney <jasonr@gnu.org>
11194
11195 * w32font.c (w32font_has_char): Always return -1.
11196
a35dd56b
KH
111972008-12-16 Kenichi Handa <handa@m17n.org>
11198
11199 * font.c (font_open_entity): Fix previous change.
11200
0e3635c2
DN
112012008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
11202
11203 * process.c: Include <limits.h>.
11204
d4835507 112052008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
11206
11207 * font.c (font_update_drivers): Fix mistake in reconstructing the
11208 driver list.
11209
112102008-12-16 Chong Yidong <cyd@stupidchicken.com>
11211
11212 * font.c (font_clear_cache): Fix format of font cache data.
11213
e2cbc401
CY
112142008-12-15 Chong Yidong <cyd@stupidchicken.com>
11215
11216 * xftfont.c (xftfont_open): Free Xft font pattern if
11217 XftFontOpenPattern fails.
11218
11219 * xterm.c (x_free_frame_resources): Remove extraneous call to
11220 free_frame_faces.
11221
b131d535
CY
112222008-12-13 Chong Yidong <cyd@stupidchicken.com>
11223
11224 * xterm.c (x_delete_display): Move xim_close_dpy call to
11225 x_delete_terminal.
11226 (x_delete_terminal): Call xim_close_dpy.
11227
e6df5336
JR
112282008-12-13 Jason Rumney <jasonr@gnu.org>
11229
11230 * w32font.c (intern_font_name): New function.
11231 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
11232 (w32font_open_internal, Fx_select_font): Decode font name.
11233 (fill_in_logfont, list_all_matching_fonts): Encode font name.
11234
11235 * w32font.h (intern_font_name): Declare new function.
11236
11237 * w32uniscribe.c (add_opentype_font_name_to_list):
11238 Use intern_font_name.
11239
20d68145
CY
112402008-12-13 Chong Yidong <cyd@stupidchicken.com>
11241
9f2554de
CY
11242 * frame.c (Fdelete_frame): Call free_font_driver_list.
11243
3d9bec9a
CY
11244 * font.c (free_font_driver_list): Implement missing function.
11245
20d68145
CY
11246 * w32term.c (w32_term_init): Don't initialize the image cache
11247 here; it will be done in init_frame_faces.
11248
11249 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
11250 (struct x_display_info): Remove unused member null_pixel. New
11251 member xim_callback_data.
11252
11253 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
11254 (xim_initialize): Save pointer to callback function data.
11255 (xim_close_dpy): Free callback function data. Call XCloseIM,
11256 reverting 2008-11-04 change by David Smith.
11257 (x_term_init): Don't initialize the image cache here; it will be
11258 done in init_frame_faces. Remove ancient "null_pixel" cruft.
11259 (x_delete_display): Free x_dnd_atoms member.
11260
96f9306b
KH
112612008-12-13 Kenichi Handa <handa@m17n.org>
11262
6dec9044
JB
11263 * font.c (font_rescale_ratio): Moved from xfaces.c.
11264 Argument type changed. Handle a font-spec too.
96f9306b 11265 (font_score): Check Vface_font_rescale_alist.
6dec9044 11266 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
11267
11268 * xfaces.c (font_rescale_ratio): Moved to font.c.
11269
8d5b4964
CY
112702008-12-13 Chong Yidong <cyd@stupidchicken.com>
11271
11272 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
11273
e6df5336
JR
112742008-12-12 Jason Rumney <jasonr@gnu.org>
11275
11276 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
11277 Vwindow_system_version to the real w32 major version.
11278
97c6058a
DN
112792008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
11280
11281 * term.c (init_tty): Move setting the terminal name before the
11282 potential user: maybe_fatal.
11283
ec4e88d7
CY
112842008-12-11 Chong Yidong <cyd@stupidchicken.com>
11285
d4835507
JB
11286 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
11287 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 11288
b4233ec9
JR
112892008-12-11 Jason Rumney <jasonr@gnu.org>
11290
8ec71e23 11291 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 11292 SYMBOL_CHARSET. (Bug#547)
8ec71e23 11293
b4233ec9 11294 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 11295 size for surrogates. (Bug#1096, bug#872)
b4233ec9 11296
011a0143
JB
112972008-12-11 Juanma Barranquero <lekktu@gmail.com>
11298
11299 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
11300
3c309f34
JB
113012008-12-11 Juanma Barranquero <lekktu@gmail.com>
11302
11303 * process.c (Fsystem_process_attributes, syms_of_process):
11304 Fix typo in name of Ssystem_process_attributes.
11305 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
11306
fedc6ab5
JB
113072008-12-11 Juanma Barranquero <lekktu@gmail.com>
11308
11309 * syntax.c (Fmodify_syntax_entry): Doc fix.
11310
ba3de0e8
JB
113112008-12-10 Juanma Barranquero <lekktu@gmail.com>
11312
11313 * font.c (Ffont_spec): Move usage to end of docstring.
11314
174f1c74
JR
113152008-12-10 Jason Rumney <jasonr@gnu.org>
11316
11317 * w32font.c (Qcham): New symbol.
11318 (font_supported_scripts): Add cham, and comments for other new
11319 scripts in bitfield from OpenType spec.
9d32f818
JR
11320 (add_font_entity_to_list): Limit unicode-sip fonts to those that
11321 contain characters beyond the bmp.
174f1c74 11322
7b649478
KH
113232008-12-10 Kenichi Handa <handa@m17n.org>
11324
11325 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 11326 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
11327 Qunicode_sip.
11328
2133e2d1
JB
113292008-12-10 Juanma Barranquero <lekktu@gmail.com>
11330
11331 * coding.c (QCdefault_char): Rename from QCdefalut_char.
11332 (Fcoding_system_put): Use QCdefault_char.
11333 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
11334
9af886ee
CY
113352008-12-09 Chong Yidong <cyd@stupidchicken.com>
11336
74d819eb
CY
11337 * xftfont.c (syms_of_xftfont): Fix typo.
11338
4ccfa1c0 11339 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 11340
7c19d3ae
DN
113412008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
11342
11343 * emacs.c (main): Close daemon_pipe on exec.
11344
567826bb
CY
113452008-12-08 Chong Yidong <cyd@stupidchicken.com>
11346
11347 * termchar.h (struct tty): New members termcap_term_buffer and
11348 termcap_strings_buffer.
11349
11350 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 11351 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
11352 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
11353 All callers changed.
11354 (init_tty): Store termcap data and string buffers in new struct
11355 tty members termcap_term_buffer and termcap_strings_buffer.
11356 (delete_tty): Free them.
4ccfa1c0 11357 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 11358
aa96c42b
SZ
113592008-12-07 Seiji Zenitani <zenitani@mac.com>
11360
11361 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 11362 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 11363
b7e1d896
CY
113642008-12-06 Chong Yidong <cyd@stupidchicken.com>
11365
11366 * coding.c (make_conversion_work_buffer): Disable buffer
11367 modification hooks in the work buffer.
11368
b5ec91a5
EZ
113692008-12-05 Eli Zaretskii <eliz@gnu.org>
11370
11371 * process.c (procfs_system_process_attributes): If `nread' has a
11372 negative value, assign zero to it.
11373
a5d2a52b
CY
113742008-12-05 Chong Yidong <cyd@stupidchicken.com>
11375
68c5540b 11376 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 11377
7bf1bb21
KH
113782008-12-05 Kenichi Handa <handa@m17n.org>
11379
11380 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
11381 second character is a combining character.
11382
2fdc7d00
EZ
113832008-12-05 Eli Zaretskii <eliz@gnu.org>
11384
11385 * process.c (procfs_system_process_attributes): Don't use cmd,
11386 cmdsize, and q without initializing them first.
11387
bf6bfba8
JR
113882008-12-04 Jason Rumney <jasonr@gnu.org>
11389
11390 * w32font.c (w32font_draw): Initialize orig_clip before getting
11391 it, and delete it when finished.
11392
a3b1a468
DN
113932008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
11394
11395 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
11396 case when running as a daemon before detaching.
11397
8b8be8eb
JB
113982008-12-03 Juanma Barranquero <lekktu@gmail.com>
11399
805f2638 11400 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 11401
b1bde622
KH
114022008-12-03 Kenichi Handa <handa@m17n.org>
11403
e500c47d
KH
11404 * font.c (font_at): Set `multibyte' at first.
11405
ca516334
KH
11406 * coding.c (decode_coding_charset): Check type of an element of
11407 vector VALIDS.
7bf1bb21 11408 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 11409
4ccfa1c0 11410 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
11411 (font_for_char): Likewise.
11412
1e5ecd37
CY
114132008-12-03 Chong Yidong <cyd@stupidchicken.com>
11414
d5b01609 11415 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
11416 (font_update_lface): Handle fonts with corrupted size specs,
11417 i.e. non-int and non-float.
d5b01609 11418
11e3a6e4 11419 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 11420 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 11421 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 11422
ab06788b
CY
11423 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
11424
1e5ecd37 11425 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 11426 underline_minimum_offset for underline position.
1e5ecd37 11427
63c125ab
DN
114282008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
11429
11430 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
11431
11432 * character.c (c_string_width): Specify the type for LEN.
11433
3a8406e1
KH
114342008-12-03 Kenichi Handa <handa@m17n.org>
11435
4ccfa1c0 11436 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 11437 (decode_coding_utf_8): Likewise.
4ccfa1c0 11438 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 11439 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 11440
651df7d9
CY
114412008-12-02 Chong Yidong <cyd@stupidchicken.com>
11442
11443 * keyboard.c (make_lispy_position): Only use PT if the selected
11444 window is current.
11445
1f625c6c
AS
114462008-12-02 Andreas Schwab <schwab@suse.de>
11447
f7741ce9
AS
11448 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
11449
1f625c6c
AS
11450 * doprnt.c (doprnt1): Fix size of charbuf.
11451
92bc2678
CY
114522008-12-02 Chong Yidong <cyd@stupidchicken.com>
11453
11454 * keyboard.c (timer_check): Revert last change.
11455
93b9e8cc
JB
114562008-12-02 Juanma Barranquero <lekktu@gmail.com>
11457
11458 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
11459
fd7a37d5
JB
114602008-12-01 Juanma Barranquero <lekktu@gmail.com>
11461
11462 * makefile.w32-in: Update dependencies.
11463 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
11464
c115043b
AS
114652008-12-01 Andreas Schwab <schwab@suse.de>
11466
11467 * font.c (register_font_driver): Use xmalloc.
11468 (font_put_frame_data): Likewise.
11469
f5668d2a
CY
114702008-12-01 Chong Yidong <cyd@stupidchicken.com>
11471
860d96be
CY
11472 * xfaces.c (realize_x_face): Make abort condition clearer.
11473
f5668d2a
CY
11474 * gtkutil.c (update_frame_tool_bar): Initialize variable.
11475
379c17e7
CY
114762008-11-30 Chong Yidong <cyd@stupidchicken.com>
11477
11478 * keyboard.c (timer_check): After a timer runs, ensure that the
11479 selected window's buffer is current.
11480
35f36d65
JB
114812008-11-30 Juanma Barranquero <lekktu@gmail.com>
11482
f952c61c
JB
11483 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
11484 It was accidentally restored by the Unicode merge.
11485
35f36d65
JB
11486 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
11487
b23077df
JB
114882008-11-29 Juanma Barranquero <lekktu@gmail.com>
11489
11490 * w32proc.c: Include "coding.h".
11491 (Fw32_short_file_name): Encode filename passed to Windows API.
11492 (Fw32_long_file_name): Encode filename passed to Windows API and
11493 decode back the result. (Bug#1433)
11494
b8ebe9dd
KH
114952008-11-29 Kenichi Handa <handa@m17n.org>
11496
8cc53f96
KH
11497 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
11498 not before accessing it.
11499
b8ebe9dd
KH
11500 * charset.c (Fdefine_charset_internal): After calculating
11501 min_char, max_char, and fastmap, copy the charset structure again.
11502 (encode_char): Fix the previous change.
11503
59bc82c0
SZ
115042008-11-28 Seiji Zenitani <zenitani@mac.com>
11505
11506 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
11507
11508 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
11509
11510 * nsterm.m (x_set_frame_alpha): New function.
11511
32247e3d
EZ
115122008-11-27 Eli Zaretskii <eliz@gnu.org>
11513
11514 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
11515
b003e5ff
JB
115162008-11-27 Juanma Barranquero <lekktu@gmail.com>
11517
11518 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
11519 pointer to check_face_name.
11520
708550f5
KH
115212008-11-27 Kenichi Handa <handa@m17n.org>
11522
11523 * category.h (SET_CATEGORY_SET): Call set_category_set.
11524 (set_category_set): Extern it.
11525
11526 * category.c (hash_get_category_set): New function.
11527 (Fmodify_category_entry): Adjusted for the change of
11528 char_table_ref_and_range. Call hash_get_category_set to get a
11529 category set to store in the table.
11530
11531 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
11532 Funify_charset.
11533
2ae37cf0 11534 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
11535 (DECODE_CHAR): Check if the decoder vector is ready.
11536 (ENCODE_CHAR): Check if the encoder char-table is ready.
11537 (maybe_unify_char): Extern it.
11538
11539 * charset.c (Vchar_unified_charset_table): Delete it.
11540 (inhibit_load_charset_map): New variable.
11541 (temp_charset_work): New variable.
11542 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
11543 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
11544 New macros.
11545 (load_charset_map): Meaning of control_flag changed. If
11546 inhibit_load_charset_map is nonzero, setup a table in
11547 temp_charset_work.
11548 (load_charset): New argument control_flag.
11549 (map_charset_for_dump): New function.
11550 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
11551 map_charset_for_dump.
11552 (Fdefine_charset_internal): If the charset method is MAP, load
11553 mapping tables by calling load_charset.
11554 (Funify_charset): Don't load a mapping table but directly set
11555 Vchar_unify_table.
11556 (maybe_unify_char): New function.
11557 (decode_char): Don't handle the deleted method MAP_DEFERRED.
11558 Handle the case of inhibit_load_charset_map being nonzero.
11559 (encode_char): Don't handle the deleted method MAP_DEFERRED.
11560 Handle the case of inhibit_load_charset_map being nonzero.
11561 (Fclear_charset_maps): Just free temp_charset_work.
11562 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
11563 variable.
11564
11565 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
11566 change of char_table_ref_and_range.
11567 (char_table_ref_and_range): Change the meaning of argument FROM
11568 and TO. Now the caller must provide initial values for *FROM
11569 and *TO.
11570
11571 * fontset.c (fontset_add): Adjusted for the change of
11572 char_table_ref_and_range.
11573 (fontset_get_font_group): Likewise.
11574 (Ffontset_info): Likewise.
11575
11576 * keymap.c (describe_vector): Adjusted for the change of
11577 char_table_ref_and_range. For char-table, put boundary between
11578 non-ASCII and 8-bit characters.
11579
11580 * print.c (print_object): For bool-vector, delete unnecessary
11581 check of ASCII_BYTE_P.
11582
9196133b
JR
115832008-11-26 Jason Rumney <jasonr@gnu.org>
11584
11585 * w32font.c (w32font_open_internal): Don't include external
9acef61c 11586 leading in font height. (Bug#879)
9196133b 11587
9f688acf
GM
115882008-11-26 Glenn Morris <rgm@gnu.org>
11589
11590 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
11591 redefinition with ifdef. (Bug#1383)
11592
90d19aff
AR
115932008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11594
11595 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
11596
4ccfa1c0 115972008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
11598
11599 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
11600 New EmacsView methods.
11601 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
11602 Fixes bug #1048,1357,1414.
11603
116042008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11605
11606 Fix bug #1362.
11607 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
11608 is not an indexed color.
11609 * nsterm.m (free_indexed_color): Add argument checking.
11610 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
11611
e7d5ecb3
CY
116122008-11-24 Chong Yidong <cyd@stupidchicken.com>
11613
11614 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
11615 Document confirm-after-completion value for
11616 minibuffer-completion-confirm.
11617
c285743c
JR
116182008-11-24 Jason Rumney <jasonr@gnu.org>
11619
11620 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
11621 warning.
11622
b0857706
JR
116232008-11-23 Jason Rumney <jasonr@gnu.org>
11624
11625 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
11626 restored before returning.
11627
11628 * w32font.c (check_face_name): New function.
11629 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 11630 fonts. (Bug#642)
b0857706 11631
ee50ff07
MR
116322008-11-22 Martin Rudalics <rudalics@gmx.at>
11633
11634 * buffer.c (Fswitch_to_buffer): Reword and mention new option
11635 confirm-nonexistent-file-or-buffer in doc-string.
11636
b8ff72fa
SM
116372008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
11638
11639 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
11640 Fix copy/paste typo. Add checks.
11641
cee53ed4
KH
116422008-11-21 Kenichi Handa <handa@m17n.org>
11643
11644 * coding.c (detect_coding_iso_2022): Reject invalid composition
11645 sequence.
11646 (DECODE_COMPOSITION_START): If the current source is the last
11647 block, and the current composition doesn't end, regard this
11648 sequence as invalid.
11649 (decode_coding_iso_2022): Handle invalid composition sequence.
11650
f6ef1e65
MR
116512008-11-20 Martin Rudalics <rudalics@gmx.at>
11652
11653 * window.c (coordinates_in_window): Don't return
11654 ON_VERTICAL_BORDER for the rightmost position of a mode/header
11655 line when the window is not the rightmost one. (Bug#1372)
11656
e08b1705
MR
116572008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
11658
11659 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
11660
ad98e89f
EZ
116612008-11-15 Eli Zaretskii <eliz@gnu.org>
11662
11663 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
11664 and bright_bg if noninteractive is non-zero.
11665
fb098a4b
CY
116662008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11667
11668 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
11669 x_draw_glyph_string_background.
11670
11671 * w32term.c (x_draw_glyph_string): Likewise.
11672
ce952b6e
CY
116732008-11-15 Chong Yidong <cyd@stupidchicken.com>
11674
11675 * xterm.c (x_draw_glyph_string): Stop drawing the background of
11676 the next glyph string once past the overhang width.
11677
11678 * nsterm.m (ns_draw_glyph_string): Likewise.
11679
11680 * w32term.c (x_draw_glyph_string): Likewise.
11681
26ea7079
CY
116822008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
11683
11684 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
11685 double file close.
11686
1c33c906
MR
116872008-11-14 Martin Rudalics <rudalics@gmx.at>
11688
11689 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
11690 dedicated status of window before attempting to display another
11691 buffer in it.
11692
8fc29035
JB
116932008-11-14 Juanma Barranquero <lekktu@gmail.com>
11694
11695 * msdos.c (Fmsdos_long_file_names):
11696 (syms_of_msdos) <dos-unsupported-char-glyph>:
11697 * dosfns.c (Fint86): Fix typos in docstrings.
11698
55fb4286
EZ
116992008-11-14 Eli Zaretskii <eliz@gnu.org>
11700
11701 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
11702
3fda0315
KY
117032008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
11704
11705 * puresize.h (BASE_PURESIZE): Increase to 1260000.
11706
7e849c17
CY
117072008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
11708
11709 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
11710
11711 * frame.h: Negative alpha means "don't touch".
11712
11713 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
11714
11715 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
11716
b9fd67bd
DN
117172008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
11718
11719 * hftctl.c:
11720 * chpdef.h:
11721 * acldef.h: Remove files used only for systems no longer supported.
11722
11723 * Makefile.in: Fix .o alphabetical ordering.
11724 (hftctl.o): Remove dependency, file removed.
11725 (keymap.o, print.o): Depend on charset.h.
11726
d5998e03
KH
117272008-11-10 Kenichi Handa <handa@m17n.org>
11728
2ae37cf0 11729 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 11730
be70e183
CY
117312008-11-08 Chong Yidong <cyd@stupidchicken.com>
11732
11733 * dired.c (file_name_completion): If completion_ignore_case is
11734 enabled, ignore case when checking completion-regexp-list.
11735
7cf94eac
EZ
117362008-11-08 Eli Zaretskii <eliz@gnu.org>
11737
11738 * vm-limit.c (get_lim_data): Fix last change.
11739
ee107a89
KH
117402008-11-08 Kenichi Handa <handa@m17n.org>
11741
11742 * character.c (Fget_byte): New function.
11743 (syms_of_character): Defsubr Fget_byte.
11744
5fd15622
CY
117452008-11-07 Chong Yidong <cyd@stupidchicken.com>
11746
11747 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
11748 cursor position is valid after scrolling.
11749
13d62fad
JB
117502008-11-06 Juanma Barranquero <lekktu@gmail.com>
11751
11752 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
11753
a1dd2936
GM
117542008-11-06 Glenn Morris <rgm@gnu.org>
11755
11756 * xterm.c (handle_one_xevent): Don't let popup menus cause
11757 mouse-autoselect-window related window switching. (Bug#1261)
11758
860cd236
CY
117592008-11-04 David Smith <davidsmith@acm.org> (tiny change)
11760
11761 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
11762
653a3150
AS
117632008-11-04 Andreas Schwab <schwab@suse.de>
11764
11765 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
11766
870f5cac
CY
117672008-11-03 Chong Yidong <cyd@stupidchicken.com>
11768
11769 * xfns.c (Fx_wm_set_size_hint): New function.
11770
1e02f3cb
MR
117712008-11-03 Martin Rudalics <rudalics@gmx.at>
11772
11773 * textprop.c (Fprevious_single_char_property_change): Return 0
11774 when there's no change in a string. (Bug#1301)
11775
e630dfc6
MR
117762008-11-02 Martin Rudalics <rudalics@gmx.at>
11777
11778 * frame.c (do_switch_frame): New argument NORECORD passed to
11779 Fselect_window.
11780 (Fselect_frame): New argument NORECORD passed to
11781 do_switch_frame.
11782 (Fset_frame_selected_window): New argument NORECORD passed to
11783 Fselect_frame.
11784 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
11785 in call of do_switch_frame.
11786 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
11787 Handle NORECORD argument in call of Fselect_frame.
11788 * lisp.h (do_switch_frame, Fselect_frame)
11789 (Fset_frame_selected_window): Adjust declarations.
11790 * window.c (select_frame_norecord): New function.
11791 (run_window_configuration_change_hook): Use it and call
11792 Fselect_frame with NORECORD set.
11793 (Fselect_window): Pass NORECORD to Fselect_frame.
11794 (Fset_window_configuration): Handle NORECORD argument in call of
11795 do_switch_frame.
11796 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
11797 Fset_frame_selected_window.
11798 * keyboard.c (command_loop_1): Handle NORECORD in call of
11799 Fselect_frame (currently ifdefd).
11800
9020b223
GM
118012008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
11802
11803 * emacs.c (USAGE2): Untabify.
11804
793ffee8
SM
118052008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
11806
11807 * composite.c (fill_gstring_header): Fix copy/paste typo.
11808
ab6d1131
MR
118092008-10-31 Martin Rudalics <rudalics@gmx.at>
11810
11811 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
11812 (Fother_window): Rename argument and rewrite doc-string.
11813 (select_window_norecord): Fix return value. (Bug#1276)
11814
601a9cf1
JB
118152008-10-30 Juanma Barranquero <lekktu@gmail.com>
11816
11817 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
11818 new frames overriding foreground for tooltips. Based on similar patch
11819 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
11820
813b0652
CY
118212008-10-29 Chong Yidong <cyd@stupidchicken.com>
11822
11823 * emacs.c (Fdaemon_initialized): Initialize nfd.
11824
4414f58f
MR
118252008-10-29 Martin Rudalics <rudalics@gmx.at>
11826
11827 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
11828 (Fwindow_text_height): Clarify doc-strings.
11829 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
11830 doc-string of window-scroll-functions.
11831
ecdcaa09
RS
118322008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
11833
11834 * category.c (syms_of_category): Fix typo in docstring.
11835
23fe745a
JB
118362008-10-28 Juanma Barranquero <lekktu@gmail.com>
11837
11838 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
11839 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
11840 Fix typos in docstrings.
11841
ff808935
DN
118422008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
11843
11844 * emacs.c (daemon_pipe): Make non-static.
11845 (IS_DAEMON): Move definition ...
11846 * lisp.h (IS_DAEMON): ... here.
11847 (daemon_pipe): Declare.
11848 (is_daemon): Remove.
11849 * dispnew.c (init_display): Use IS_DAEMON.
11850
fc012771
SM
118512008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
11852
11853 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
11854 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
11855
11856 * emacs.c (is_daemon): Remove.
11857 (main): Don't set is_daemon.
11858 (IS_DAEMON): New macro.
11859 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 11860 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
11861 parent exits.
11862 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
11863
d8bdbe6f
CY
118642008-10-27 Chong Yidong <cyd@stupidchicken.com>
11865
d1a072bf
CY
11866 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
11867 over-sized glyph, draw it with the default glyph width.
11868
e2e325aa
CY
11869 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11870 glyph, draw it with the default glyph width.
11871
11872 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11873 glyph, draw it with the default glyph width.
11874
d8bdbe6f
CY
11875 * xdisp.c (try_scrolling): When computing the distance from the
11876 scroll margin to PT, try moving some distance past the window
11877 bottom before giving up.
11878
7bfac547
MR
118792008-10-27 Martin Rudalics <rudalics@gmx.at>
11880
11881 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
11882 (Fset_window_buffer): Explain in doc-string that a window can be
11883 "strongly" dedicated to its buffer.
11884
4ff029f6
DN
118852008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
11886
11887 * emacs.c (daemon_name): New variable.
11888 (main): Deal with --daemon=SERVER_NAME.
11889 (Fdaemonp): Return a name if one was passed to --daemon.
11890
5790ef40
DN
118912008-10-26 Romain Francoise <romain@orebokech.com>
11892
f9bd0df9 11893 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
11894 (main): Create a pipe before forking, make the parent exit only after
11895 the child has closed its end of the pipe. Move closing the
11896 descriptors ...
11897 (Fdaemon_initialized): ... here. New function.
11898
f5385255
SM
118992008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
11900
4d632321
SM
11901 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
11902 the previous unoptimized table.
11903
f5385255
SM
11904 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
11905 the distinction between non-nil and non-t value of `dedicated'.
11906
6c56a0f3
CY
119072008-10-25 Chong Yidong <cyd@stupidchicken.com>
11908
11909 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 11910 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 11911
fec89261
MR
119122008-10-25 Martin Rudalics <rudalics@gmx.at>
11913
11914 * window.c (Fget_buffer_window, Fdelete_windows_on)
11915 (Freplace_buffer_in_windows): Make buffer argument optional and
11916 rename to buffer_or_name.
11917
34fcddd0
CY
119182008-10-24 Chong Yidong <cyd@stupidchicken.com>
11919
f5385255
SM
11920 * xdisp.c (handle_single_display_spec, handle_display_prop):
11921 Undo 2005-05-16 change.
34fcddd0
CY
11922 (handle_stop): Pop iterator if it's loaded with an empty string.
11923 (get_overlay_strings_1): Don't save iterator if it's loaded with
11924 an empty string (bug#1201).
11925
064766f2
KH
119262008-10-24 Kenichi Handa <handa@m17n.org>
11927
11928 * ftfont.c (ftfont_otf_features): Fix previous change.
11929 (ftfont_otf_capability): Check FeatureList.FeatureCount before
11930 calling ftfont_otf_features.
11931
f9bd0df9 119322008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
11933
11934 * font.c (font_match_p): Fix for the case that a vector of
11935 characters is in script-representative-chars.
11936
1dae9197
MA
119372008-10-24 Michael Albinus <michael.albinus@gmx.de>
11938
11939 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 11940 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
11941 (xd_read_queued_messages): Catch Qdbus_error from the macros.
11942 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 11943 macro. (Bug#1186)
1dae9197 11944
f9bd0df9 119452008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
11946
11947 * s/sol2-10.h: New file.
11948
878a4584
JB
119492008-10-23 Juanma Barranquero <lekktu@gmail.com>
11950
11951 * xdisp.c (fill_glyph_string): Fix typo in source (though the
11952 poor beast has survived 9+ years and the jump from xterm.c!).
11953
cd265ca6
MR
119542008-10-23 Martin Rudalics <rudalics@gmx.at>
11955
11956 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
11957 Reword doc-string.
f5385255 11958 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 11959
472a4dc9
JB
119602008-10-23 Juanma Barranquero <lekktu@gmail.com>
11961
11962 * character.c (syms_of_character) <script-representative-chars>:
11963 <unicode-category-table>: Doc fixes.
11964
159bd5a2
NF
119652008-10-23 Noah Friedman <friedman@splode.com>
11966
11967 * coding.c (make_conversion_work_buffer): Check that
11968 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
11969 Fget_buffer_create.
11970
49f9c344
KH
119712008-10-23 Kenichi Handa <handa@m17n.org>
11972
11973 * font.c (font_add_log): Check the values of extra properties.
11974
12bb3111
MR
119752008-10-22 Martin Rudalics <rudalics@gmx.at>
11976
11977 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11978 Reword doc-string.
11979 (Fset_window_parameter): Use NILP.
11980 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 11981 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 11982
bbeb4e99
JB
119832008-10-22 Juanma Barranquero <lekktu@gmail.com>
11984
11985 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
11986
119872008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
11988
11989 * nsfns.m (ns_appkit_version): New function.
11990 (x-server-version): Use it.
11991 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
11992 (x-server-vendor): Don't check_ns().
11993
11994 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
11995
a9b555d3
JB
119962008-10-22 Juanma Barranquero <lekktu@gmail.com>
11997
11998 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
11999 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
12000
4626499f
KH
120012008-10-22 Kenichi Handa <handa@m17n.org>
12002
e3681952
KH
12003 * syntax.c (scan_words): Call word_boundary_p instead of comparing
12004 scripts.
12005
4626499f
KH
12006 * category.c (word_boundary_p): Check scripts instead of charset.
12007 Handle nil value in word-separating-categories and
12008 word-combining-categories.
12009 (syms_of_category): Fix docstrings of word-separating-categories
12010 and word-combining-categories.
12011
1560f91a
EZ
120122008-10-21 Eli Zaretskii <eliz@gnu.org>
12013
12014 * coding.c (Fencode_coding_region, Fdecode_coding_region)
12015 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
12016
f4668441
MR
120172008-10-21 Martin Rudalics <rudalics@gmx.at>
12018
12019 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
12020 Rename arg "buffer" to "buffer_or_name".
12021 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
12022 it optional.
12023 (no_switch_window): Remove since the return value is not used.
a9b555d3 12024 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
12025 Consider window as dedicated when Fwindow_dedicated_p returns a
12026 non-nil value.
12027 * lisp.h: Remove prototype for no_switch_window.
12028
fd75ddb2
JD
120292008-10-21 Jan Djärv <jan.h.d@swipnet.se>
12030
12031 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 12032 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 12033
07295713
KH
120342008-10-21 Kenichi Handa <handa@m17n.org>
12035
12036 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
12037 check Vlatin_extra_code_table.
12038
712adc82
EZ
120392008-10-20 Eli Zaretskii <eliz@gnu.org>
12040
12041 * fileio.c (Fset_file_modes): Doc fix.
12042
f549eb0b
MA
120432008-10-19 Michael Albinus <michael.albinus@gmx.de>
12044
12045 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
12046 in arrays.
12047
aac0c6e3
MR
120482008-10-19 Martin Rudalics <rudalics@gmx.at>
12049
12050 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
12051 Mention kill-buffer in doc-string.
12052 (Fset_window_buffer): Reinsert tem check removed in last commit.
12053 (Fenlarge_window, Fshrink_window): Have argument names and
12054 doc-string follow Elisp manual more closely.
12055
120562008-10-18 Eli Zaretskii <eliz@gnu.org>
12057
12058 * fileio.c (Fset_file_modes): Doc fix.
12059
120602008-10-18 Martin Rudalics <rudalics@gmx.at>
12061
12062 * window.c (Fwindow_width, Fset_window_start)
12063 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
12064 (Fdelete_windows_on, Freplace_buffer_in_windows):
12065 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
12066 (Fwindow_dedicated_p): Make window argument optional.
12067 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
12068 (Fset_window_buffer): Respect any non-nil dedicated value for
12069 window. Rename "buffer" argument to "buffer_or_name".
12070
120712008-10-18 Ulrich Mueller <ulm@gentoo.org>
12072
12073 * m/sh3.h: New file, machine description for SuperH.
12074
120752008-10-17 Martin Rudalics <rudalics@gmx.at>
12076
12077 * window.c (Fsplit_window): Rename arg horflag to horizontal.
12078
120792008-10-17 Kenichi Handa <handa@m17n.org>
12080
12081 * ftfont.c (ftfont_otf_features): Fix indexing
12082 gsub_gpos->FeatureList.Feature. Check the validity of indices.
12083
120842008-10-16 Magnus Henoch <mange@freemail.hu>
12085
12086 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
12087 (Fdbus_call_method_asynchronously): Ditto.
12088 This change makes C-h f display the argument list.
12089
120902008-10-16 Chong Yidong <cyd@stupidchicken.com>
12091
12092 * fileio.c (Fexpand_file_name): Doc fix.
12093
12094 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
12095 of :foreground and :background equivalent to unspecified (20.x
12096 compatibility).
12097
120982008-10-15 Eli Zaretskii <eliz@gnu.org>
12099
12100 * buffer.c (syms_of_buffer): Doc fix.
12101
121022008-10-14 Kenichi Handa <handa@m17n.org>
12103
12104 * font.c (font_clear_prop): When clearing font width, clear the
12105 average width field too.
12106
121072008-10-12 Andreas Schwab <schwab@suse.de>
12108
12109 * ftfont.c (ftfont_shape_by_flt): Make static.
12110 * ftfont.h (ftfont_shape_by_flt): Don't declare.
12111
12112 * font.c: Don't include <m17n-flt.h>.
12113
121142008-10-10 Eli Zaretskii <eliz@gnu.org>
12115
12116 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
12117
121182008-10-09 Eli Zaretskii <eliz@gnu.org>
12119
12120 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
12121 away code.
12122
121232008-10-09 Chong Yidong <cyd@stupidchicken.com>
12124
12125 * dispnew.c (update_text_area): Avoid looping due to large glyph
12126 overhangs (bug#1070).
12127
121282008-10-09 Kenichi Handa <handa@m17n.org>
12129
12130 * fontset.c (face_for_char): If face->fontset is negative, just
12131 return ascii_face.
12132
f5385255
SM
12133 * font.c (font_delete_unmatched): Fix previous change.
12134 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
12135
121362008-10-09 Martin Rudalics <rudalics@gmx.at>
12137
12138 * frame.c (Fraise_frame): On text-only terminals select frame in
12139 order to make it visible. (Bug#1061)
12140
121412008-10-08 Chong Yidong <cyd@stupidchicken.com>
12142
12143 * fontset.c (fontset_find_font): Check frame validity.
12144
121452008-10-07 Chong Yidong <cyd@stupidchicken.com>
12146
a9b555d3 12147 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
12148 (xg_display_close): Allow Emacs to close all displays (bug#985).
12149
121502008-10-06 Andreas Schwab <schwab@suse.de>
12151
f5385255 12152 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
12153
121542008-10-06 Chong Yidong <cyd@stupidchicken.com>
12155
f5385255 12156 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 12157
a9b555d3 12158 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
12159
12160 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
12161 during initialization.
12162
121632008-10-04 Eli Zaretskii <eliz@gnu.org>
12164
12165 * xdisp.c (redisplay_internal): If frame switched, redisplay the
12166 whole thing on MSDOS frames as well as on a TTY.
12167
12168 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
12169 well as for TTY.
12170 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
12171 well as on a TTY.
12172
12173 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
12174 as well as for TTY.
12175
12176 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
12177
12178 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
12179 MSDOS frames as well.
12180
121812008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12182
12183 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
12184 correct arguments.
b71ac3dd 12185 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
12186
121872008-10-03 Glenn Morris <rgm@gnu.org>
12188
12189 * emacs.c (USAGE1): Add --daemon.
12190
121912008-10-02 Eli Zaretskii <eliz@gnu.org>
12192
12193 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
12194 100, so it's in percents as advertised.
12195
121962008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12197
12198 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
12199 (ns_output.current_cursor, ns_output.desired_cursor)
12200 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
12201 (FRAME_NEW_CURSOR_COLOR): Remove.
12202
12203 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 12204 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
12205 enumeration (HOLLOW_BOX_CURSOR, etc.).
12206
12207 * nsterm.m (ns_frame_rehighlight): Remove commented code.
12208 (draw_window_cursor): Simplify code.
f5385255
SM
12209 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
12210 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 12211 updates manually.
a9b555d3
JB
12212 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
12213 Use core Emacs cursor types.
aac0c6e3 12214
b8ff72fa 12215 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
12216
122172008-10-02 Martin Rudalics <rudalics@gmx.at>
12218
12219 * process.c (Faccept_process_output): Fix doc-string.
12220
122212008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
12222
12223 * gmalloc.c (__sbrk): Also define for uClibc.
12224
12225 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
12226 for uClibc.
12227
122282008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12229
12230 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
12231 styles.
12232 (nsfont_open): Reenable the cache.
12233
122342008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12235
12236 * font.c (font_matching_entity): Reflect ATTRS in font selection.
12237 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
12238
122392008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
12240
12241 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
12242 a suspended terminal.
12243
122442008-09-30 Michael Albinus <michael.albinus@gmx.de>
12245
12246 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
12247
122482008-09-30 Eli Zaretskii <eliz@gnu.org>
12249
12250 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
12251
122522008-09-30 Chong Yidong <cyd@stupidchicken.com>
12253
12254 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
12255 in a continued line coincides with a line beginning.
12256
122572008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
12258
12259 * nsfont.m (nsfont_trait_distance): Fix bug.
12260 (nsfont_list): Return a list rather than a vector (syncs with Handa
12261 changes of 2008-05-14).
12262 (nsfont_open): Improve logging.
12263
122642008-09-29 Andreas Schwab <schwab@suse.de>
12265
12266 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
12267
122682008-09-28 Martin Rudalics <rudalics@gmx.at>
12269
12270 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
12271 name as char-resolve-modifiers.
12272 Reported by: Markus Triska <markus.triska@gmx.at>
12273
122742008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
12275
12276 * dispnew.c (init_display): Return earlier when running as a daemon.
12277
122782008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12279
12280 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
12281
122822008-09-27 Eli Zaretskii <eliz@gnu.org>
12283
12284 * composite.c (Fcomposition_get_gstring)
12285 (Fcompose_region_internal, Fcompose_string_internal)
12286 (Ffind_composition_internal): Doc fix.
12287 (syms_of_composite) <compose-chars-after-function>: Doc fix.
12288 (syms_of_composite) <auto-composition-function>: Doc fix.
12289 (syms_of_composite) <composition-function-table>: Doc fix.
12290
122912008-09-25 Chong Yidong <cyd@stupidchicken.com>
12292
12293 * search.c (wordify): New argument for lax word-ends.
12294 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
12295
122962008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
12297
12298 * lisp.h (is_daemon): Declare.
12299 * dispnew.c (init_display): Do not try to initialize the terminal
12300 when running as a daemon.
12301
123022008-09-22 Chong Yidong <cyd@stupidchicken.com>
12303
12304 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
12305 x_display_pixel_height.
12306
123072008-09-22 Martin Rudalics <rudalics@gmx.at>
12308
12309 * undo.c (record_point): Don't call Fundo_boundary for first
12310 change. (Bug#731)
12311
123122008-09-22 Juanma Barranquero <lekktu@gmail.com>
12313
12314 * emacs.c (Fdaemonp): Doc fix.
12315
123162008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
12317
12318 * emacs.c (main): Place #ifdef in the proper place.
12319
123202008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
12321
12322 * emacs.c (standard_args): Add --daemon.
12323 (main): Disconnect from the terminal when --daemon is passed.
12324 (is_daemon): New variable.
12325 (Fdaemonp): New function.
12326 (syms_of_emacs): Defsubr it.
12327
123282008-09-20 Chong Yidong <cyd@stupidchicken.com>
12329
12330 * xdisp.c (get_next_display_element): Handle string display
12331 correctly when checking for the end of a box run.
12332
123332008-09-20 Glenn Morris <rgm@gnu.org>
12334
12335 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
12336 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
12337 (Frename_file): Avoid copying to trash if a rename involves
12338 a delete. (Bug#964).
12339
123402008-09-20 Eli Zaretskii <eliz@gnu.org>
12341
12342 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
12343 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
12344 frames as well as termcap frames.
12345 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
12346 get_named_tty.
12347
123482008-09-19 Eli Zaretskii <eliz@gnu.org>
12349
12350 * process.c (procfs_system_process_attributes): Fix cmdline in
12351 case /proc/PID/cmdline is empty.
12352
12353 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
12354 x_display_pixel_height.
12355
123562008-09-19 Juanma Barranquero <lekktu@gmail.com>
12357
12358 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
12359
12360 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
12361 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
12362
123632008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
12364
12365 * dispextern.h (struct it): Move line_wrap away from the middle of
12366 bitfields. Move voffset in struct iterator_stack_entry after the
12367 bitfields. Move tab_width near after another short.
12368
123692008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
12370
12371 * frame.h (struct frame): Move alpha from the middle of bitfields.
12372
12373 * window.h (struct window): Move frozen_window_start_p after the
12374 rest of the bitfields to reduce padding.
12375
123762008-09-18 Chong Yidong <cyd@stupidchicken.com>
12377
12378 * xterm.h (x_display_info): Remove `height' and `width' members.
12379
12380 * nsterm.h (ns_display_info): Remove `height' and `width' members.
12381
12382 * w32term.h (w32_display_info): Remove `height', `width',
12383 `height_in', and `width_in' members.
12384
b8ff72fa
SM
12385 * xterm.c (x_display_pixel_height, x_display_pixel_width):
12386 New functions.
aac0c6e3
MR
12387 (x_calc_absolute_position): Use them.
12388 (x_term_init): Omit removed `height' and `width' members.
12389
b8ff72fa
SM
12390 * w32term.c (x_display_pixel_height, x_display_pixel_width):
12391 New functions.
aac0c6e3
MR
12392 (w32_read_socket, x_calc_absolute_position): Use them.
12393 (w32_initialize_display_info, w32_term_init): Omit removed members
12394 of w32_display_info.
12395
b8ff72fa
SM
12396 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
12397 New functions.
12398 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 12399
b8ff72fa
SM
12400 * xterm.c (x_display_pixel_height, x_display_pixel_width):
12401 New functions.
aac0c6e3
MR
12402 (x_calc_absolute_position): Use them.
12403 (x_term_init): Omit removed `height' and `width' members.
12404
12405 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
12406 (compute_tip_xy):
12407 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
12408 * xmenu.c (menu_position_func): Use x_display_pixel_height and
12409 x_display_pixel_width.
12410
124112008-09-18 Kenichi Handa <handa@m17n.org>
12412
12413 * composite.c (fill_gstring_header): Don't check FROM and TO here.
12414 (composition_compute_stop_pos): Fix handling of static composition.
12415 (Fcomposition_get_gstring): Check FROM and TO at first.
12416
124172008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
12418
46e722a9 12419 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
12420 mixup (YAILOM).
12421
124222008-09-17 Chong Yidong <cyd@stupidchicken.com>
12423
12424 * indent.c (Fvertical_motion): Use position reported by iterator
12425 instead of PT for determining screen motion (bug#943).
12426
124272008-09-17 Romain Francoise <romain@orebokech.com>
12428
12429 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
12430
124312008-09-17 Kenichi Handa <handa@m17n.org>
12432
12433 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
12434
12435 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
12436 if necessary.
12437
124382008-09-16 Kenichi Handa <handa@m17n.org>
12439
12440 * coding.c (make_conversion_work_buffer): Avoid calling
12441 Fget_buffer_create if it is not necessary.
12442
124432008-09-15 Martin Rudalics <rudalics@gmx.at>
12444
12445 * window.c (Fselect_window): Don't update window_select_count and
12446 use_time when norecord is not nil.
12447
124482008-09-14 Kenichi Handa <handa@m17n.org>
12449
12450 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
12451 specpdl_ptr.
12452
124532008-09-12 Kenichi Handa <handa@m17n.org>
12454
12455 * indent.c (scan_for_column): Don't handle automatic composition
12456 if the current buffer is not associated with a window.
12457
12458 * composite.c (composition_reseat_it): If the current buffer is
12459 not associated with a window, ignore the automatic composition.
12460 (find_automatic_composition): Likewise.
12461
124622008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12463
12464 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
12465 (Fgpm_mouse_stop): Use it.
12466 * termhooks.h (close_gpm): Declare.
12467 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
12468 connection if Gpm_GetEvent fails.
12469
12470 * window.c (set_window_buffer): Always preserve current-buffer.
12471
124722008-09-12 Glenn Morris <rgm@gnu.org>
12473
12474 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
12475
124762008-09-11 Glenn Morris <rgm@gnu.org>
12477
12478 * charset.c (charset-map-path): Doc fix.
12479
124802008-09-10 Kenichi Handa <handa@m17n.org>
12481
12482 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
12483
12484 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
12485 compose a grapheme cluster with the preceding base glyph.
12486
12487 * composite.c (composition_compute_stop_pos): Fix previous change.
12488 Reset cmp_it->id to -1 at first.
12489
124902008-09-10 Glenn Morris <rgm@gnu.org>
12491
12492 * Makefile.in (character.o, chartab.o): Fix config.h typo.
12493
124942008-09-09 Chong Yidong <cyd@stupidchicken.com>
12495
12496 * keyboard.c (read_key_sequence): Reapply translation maps when
12497 switching keyboards.
12498
124992008-09-09 Kenichi Handa <handa@m17n.org>
12500
12501 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
12502 characters.
12503
12504 * composite.c (FORWARD_CHAR): Fix calculation
12505 of (POSITION).pos_byte.
12506 (composition_compute_stop_pos): Limit the search of composition to
12507 at most 500 characters ahead. If we reach the limit or find a
12508 newline, set cmp_it->ch to -2 and return 0.
12509 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
12510
125112008-09-08 Kenichi Handa <handa@m17n.org>
12512
12513 * indent.c (Fvertical_motion): Be sure to set
12514 it_overshoot_expected if it.cmp_it.id is non-negative.
12515
125162008-09-07 Andreas Schwab <schwab@suse.de>
12517
12518 * callproc.c (Fcall_process): Don't hold references to string data
12519 across garbage collection. Move initialisation of new_argv down
12520 to avoid compiler bug.
12521
125222008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12523
12524 * process.c (Fsystem_process_attributes): Doc fix.
12525
125262008-09-07 Chong Yidong <cyd@stupidchicken.com>
12527
12528 * callproc.c (Fcall_process): Canonicalize current directory name.
12529
12530 * xdisp.c (move_it_to): When moving by vpos, ensure that the
12531 iterator advances to the next line if the current line ends in a
12532 continued tab.
12533
125342008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
12535
12536 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
12537 member to point to cmp_from.
12538
12539 * xdisp.c: Doc fix for references to gidx data member.
12540
125412008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
12542
12543 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
12544
125452008-09-07 Kenichi Handa <handa@m17n.org>
12546
12547 * composite.c (FORWARD_CHAR): Check STOP after
12548 incrementing (POSITION).pos.
12549
125502008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12551
12552 * process.c (Fsystem_process_attributes): Doc fix.
12553
125542008-09-06 Chong Yidong <cyd@stupidchicken.com>
12555
12556 * keyboard.c (Ftop_level): Doc fix.
12557
125582008-09-06 Eli Zaretskii <eliz@gnu.org>
12559
12560 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
12561 minibuffer, don't let lower part of menu invade the echo area.
12562
12563 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
12564 "char *q" to access menu text and advance through it. Revert the
12565 change that displayed ">" instead of ASCII character 0x10.
12566
125672008-09-05 Eli Zaretskii <eliz@gnu.org>
12568
12569 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
12570 toggle boxes and radio buttons on MS-DOS as well.
12571
125722008-09-05 Kenichi Handa <handa@m17n.org>
12573
12574 * composite.c (autocmp_chars): Check lookback count.
12575 (composition_compute_stop_pos): Set cmp_it->lookback.
12576 (composition_reseat_it): Check lookback count.
12577 (struct position_record): New struct.
12578 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
12579 (find_automatic_composition): New function.
12580 (composition_adjust_point): Use find_automatic_composition.
12581
12582 * dispextern.h (struct composition_it): New member lookback.
12583
125842008-09-02 Chong Yidong <cyd@stupidchicken.com>
12585
12586 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
12587 if moving by a single line.
12588
125892008-09-02 Andreas Schwab <schwab@suse.de>
12590
12591 * xterm.c (x_delete_display): Fix merge error.
12592
12593 * fileio.c (Fexpand_file_name): Remove unused variables.
12594
125952008-09-02 Eli Zaretskii <eliz@gnu.org>
12596
12597 * fileio.c (Fexpand_file_name): Copy argument `name' into local
12598 storage on all platforms, not just on DOS_NT.
12599
126002008-09-02 Jason Rumney <jasonr@gnu.org>
12601
b8ff72fa
SM
12602 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
12603 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
12604
126052008-09-01 Chong Yidong <cyd@stupidchicken.com>
12606
12607 * xfaces.c (Finternal_set_alternative_font_family_alist)
12608 (Finternal_set_alternative_font_registry_alist): Properly copy
12609 entire alist structure.
12610
126112008-09-01 Kenichi Handa <handa@m17n.org>
12612
d66c0241 12613 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 12614 representative chars of the script is a vector.
d66c0241
JB
12615 (ftfont_list): Handle the case where the representative chars of
12616 the script is a vector.
aac0c6e3
MR
12617
12618 * character.c (syms_of_character): Docstring of
12619 script-representative-chars fixed.
12620
126212008-08-31 Eli Zaretskii <eliz@gnu.org>
12622
12623 * msdos.c (BUILD_CHAR_GLYPH): New macro.
12624 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
12625 the menu. Allocate larger buffer for `text', to account for
12626 possible ^C characters.
12627
126282008-08-31 Martin Rudalics <rudalics@gmx.at>
12629
12630 * xdisp.c (prepare_menu_bars): Don't call
12631 Vwindow_size_change_functions with arg Qt.
12632
126332008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
12634
12635 * font.h (font_range):
12636 * fileio.c (report_file_error):
46e722a9
SM
12637 * composite.c (composition_update_it): Yet another int/Lisp_Object
12638 mixup (YAILOM).
aac0c6e3
MR
12639
126402008-08-30 Glenn Morris <rgm@gnu.org>
12641
12642 * data.c (Fmake_variable_frame_local): Doc fix.
12643
12644 * frame.c (Fmodify_frame_parameters): Doc fix.
12645
126462008-08-30 Eli Zaretskii <eliz@gnu.org>
12647
12648 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
12649 needed by GetTokenInformation.
12650 (w32_system_process_attributes): Check return values of all system
12651 APIs.
12652
12653 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
12654 only when the state changes.
12655 (IT_update_begin, IT_update_end): Add termscript trace.
12656
12657 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
12658 clipboard is unavailable. Set dst to NULL if it doesn't point to
12659 malloc'ed data.
12660 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
12661 passing random values to xfree.
12662
12663 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 12664 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
12665
126662008-08-29 Jason Rumney <jasonr@gnu.org>
12667
12668 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
12669
126702008-08-29 Eli Zaretskii <eliz@gnu.org>
12671
12672 * composite.c (fill_gstring_body): Avoid compiler warnings.
12673
12674 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
12675 LGLYPH_SET_CODE to avoid compiler warnings.
12676
2ae37cf0 12677 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
12678
12679 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
12680
12681 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
12682 LGLYPH_SET_CODE.
12683
126842008-08-29 Kenichi Handa <handa@m17n.org>
12685
12686 * fileio.c (report_file_error): Don't downcase the first character
12687 of errstring if it is still unibyte.
12688
126892008-08-29 Kenichi Handa <handa@m17n.org>
12690
12691 These changes are to re-implement the automatic composition so
12692 that it doesn't use text properties.
12693
12694 * Makefile.in (ftfont.o): Depend on composite.h.
12695 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
12696
12697 * character.h (Vunicode_category_table): Extern it.
12698
12699 * character.c (Vunicode_category_table): New variable.
12700 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
12701
12702 * chartab.c (optimize_sub_char_table): Perform more greedy
12703 optimization.
12704
b8ff72fa
SM
12705 * composite.h (enum composition_method):
12706 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
12707 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
12708 (Vcomposition_function_table): Extern it.
12709 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
12710 (composition_gstring_put_cache, composition_gstring_from_id)
12711 (composition_gstring_p, composition_gstring_width)
12712 (composition_compute_stop_pos, composition_reseat_it)
12713 (composition_update_it, composition_adjust_point): Extern them.
12714 (Fcomposition_get_gstring): EXFUN it.
12715
d66c0241 12716 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
12717 (Vcomposition_function_table)
12718 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
12719 (gstring_hash_table, gstring_work, gstring_work_headers):
12720 New variables.
aac0c6e3
MR
12721 (gstring_lookup_cache, composition_gstring_put_cache)
12722 (composition_gstring_from_id, composition_gstring_p)
12723 (composition_gstring_width, fill_gstring_header)
12724 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
12725 (composition_reseat_it, composition_update_it)
b8ff72fa 12726 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
12727 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
12728 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 12729 Defsubr composition_get_gstring.
aac0c6e3
MR
12730
12731 * dispextern.h (struct glyph): New union u.cmp. Delete the member
12732 cmp_id.
12733 (struct glyph_string): Delete the member gidx. New members
12734 cmp_id, cmp_from, and cmp_to.
12735 (enum it_method): Delete GET_FROM_COMPOSITION.
12736 (struct composition_it): New struct.
12737 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
12738 Delete c, len, cmp_id, cmp_len in u.comp.
12739
12740 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 12741 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 12742 (enum lglyph_indices): Likewise.
b8ff72fa 12743 (font_range): Adjust extern.
aac0c6e3
MR
12744 (font_fill_lglyph_metrics): Extern it.
12745
12746 * font.c (QCf): New variable.
12747 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12748 (font_prepare_composition): Delete this function.
12749 (font_range): Type and arguments changed.
12750 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
12751 (font_fill_lglyph_metrics): New function.
b8ff72fa 12752 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 12753 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
12754 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
12755 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
12756
12757 * fontset.h (font_for_char): Extern it.
12758
12759 * fontset.c (font_for_char): New function.
12760
12761 * ftfont.c: Include composite.h.
12762 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 12763 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
12764
12765 * indent.c: Include composite.h and dispextern.h.
12766 (check_composition): Delete this function.
12767 (scan_for_column): Handle composition by
12768 composition_compute_stop_pos, composition_reseat_it, and
12769 composition_update_it.
12770 (compute_motion): Likewise.
12771 (Fvertical_motion): Fix checking of composition.
12772
12773 * keyboard.c (adjust_point_for_property): Check composition by
12774 composition_adjust_point.
12775
b8ff72fa 12776 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
12777 struct glyph_string.
12778
b8ff72fa
SM
12779 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
12780 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
12781 struct glyph.
12782 (produce_composite_glyph): Likewise.
12783
b8ff72fa
SM
12784 * w32term.c (x_draw_composite_glyph_string_foreground):
12785 Adjust for the change of struct glyph_string.
aac0c6e3
MR
12786 (x_draw_glyph_string): Likewise.
12787
12788 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
12789 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12790
12791 * xdisp.c: Include font.h.
12792 (it_props): Delete the entry for Qauto_composed.
12793 (init_iterator): Initialize it->cmp_it.id to -1.
12794 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 12795 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
12796 (handle_auto_composed_prop): Delete it.
12797 (handle_composition_prop): Handle only static composition.
12798 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
12799 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 12800 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
12801 (pop_it): Likewise.
12802 (get_next_element): Delete next_element_from_composition.
12803 (CHAR_COMPOSED_P): New macro.
12804 (get_next_display_element): For automatic composition, get a face
12805 from the font in the glyph-string.
12806 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 12807 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
12808 (next_element_from_string): Check if the character at the current
12809 position is composed by CHAR_COMPOSED_P.
12810 (next_element_from_buffer): Likewise.
d66c0241
JB
12811 (next_element_from_composition): Adjust for the change of struct it.
12812 Update it->cmp_it.
b8ff72fa
SM
12813 (dump_glyph): Adjust for the change of struct glyph.
12814 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
12815 it and struct glyph. Don't handle automatic composition here.
12816 (fill_gstring_glyph_string): New function.
12817 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 12818 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
12819 (BUILD_GSTRING_GLYPH_STRING): New macro.
12820 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
12821 automatic composition.
b8ff72fa 12822 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 12823 struct glyph.
b8ff72fa 12824 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 12825
b8ff72fa 12826 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
12827 the change of struct glyph_string.
12828 (x_draw_glyph_string): Likewise.
12829
128302008-08-29 Glenn Morris <rgm@gnu.org>
12831
12832 * buffer.c (word-wrap): Doc fix.
12833 * xdisp.c (truncate-partial-width-windows): Doc fix.
12834 Increase default to 50.
12835
128362008-08-29 Chong Yidong <cyd@stupidchicken.com>
12837
12838 * xdisp.c (update_tool_bar_unwind): New function.
12839 (update_tool_bar): Temporarily set selected frame before building
12840 tool-bar items.
12841
128422008-08-28 Michael Albinus <michael.albinus@gmx.de>
12843
12844 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
12845 snprintf, respectively.
12846 (xd_append_arg): Convert strings with Fstring_make_unibyte.
12847
128482008-08-28 Chong Yidong <cyd@stupidchicken.com>
12849
12850 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
12851 LDFLAGS to GNUstep CC invocation.
12852
128532008-08-27 Chong Yidong <cyd@stupidchicken.com>
12854
12855 * indent.c (Fvertical_motion): Revert last change. Handle the
12856 general case where we are moving forward, and PT spans multiple
12857 screen lines.
12858
12859 * eval.c (find_handler_clause): Temporarily increase
12860 max-lisp-eval-depth while printing the backtrace buffer, to
12861 guarantee that help-mode code can run.
12862
128632008-08-27 Eli Zaretskii <eliz@gnu.org>
12864
12865 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
12866 colors under -rv.
12867 (IT_set_frame_parameters): Don't swap foreground and background
12868 colors if `(reverse . t)' is present in the frame properties.
12869 (internal_terminal_init): Call init_frame_faces only for the
12870 initial frame.
12871
128722008-08-27 Andreas Schwab <schwab@suse.de>
12873
12874 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
12875
128762008-08-27 Andreas Schwab <schwab@suse.de>
12877
12878 * search.c (search_buffer): Set char_base to zero only at the end.
12879
128802008-08-27 Kenichi Handa <handa@m17n.org>
12881
b8ff72fa 12882 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
12883
128842008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
12885
12886 * xterm.c (x_term_init): Temporarily hide the partially
12887 initialized terminal while calling vendor-specific-keysyms.
12888
128892008-08-26 Eli Zaretskii <eliz@gnu.org>
12890
12891 * msdos.c (internal_terminal_init): Most initializations done only
12892 once, especially initial_screen_colors[] and termscript open.
12893
128942008-08-26 Chong Yidong <cyd@stupidchicken.com>
12895
12896 * eval.c (Fcondition_case): Doc fix.
12897
12898 * widgetprv.h (EmacsFramePart): Change font member to the new font
12899 struct.
12900
12901 * widget.c: Include character.h and font.h for XSETFONT.
12902 (setup_frame_gcs): Compute X font id from font struct, just once.
12903
129042008-08-26 Eli Zaretskii <eliz@gnu.org>
12905
12906 * term.c (get_named_tty): Fix last change.
12907
129082008-08-26 Chong Yidong <cyd@stupidchicken.com>
12909
12910 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 12911 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
12912
129132008-08-25 Eli Zaretskii <eliz@gnu.org>
12914
12915 * frame.c (do_switch_frame): Mark previously displayed frame as
12916 obscured for FRAME_MSDOS_P frames as well.
12917
129182008-08-24 Eli Zaretskii <eliz@gnu.org>
12919
12920 * frame.c (make_terminal_frame): Initialize f->terminal,
12921 f->terminal->reference_count, and scroll bars on MS-DOS as well.
12922 Set the top frame to newly created frame.
12923 (Fmake_terminal_frame): Reuse the_only_display_info.
12924
12925 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
12926 estimating available memory.
12927
b97439ce 129282008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
12929
12930 * nsterm.m (ns_draw_window_cursor): Don't call
12931 NSDisableScreenUpdates and NSEnableScreenUpdates on
12932 non-NS_IMPL_COCOA systems.
12933
129342008-08-23 Andreas Schwab <schwab@suse.de>
12935
12936 * process.c (procfs_system_process_attributes): Fix use of
12937 uninitialized variables.
12938
129392008-08-23 Eli Zaretskii <eliz@gnu.org>
12940
12941 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
12942
12943 * dispnew.c (init_display): Remove MS-DOS specific conditions for
12944 calling tty-set-up-initial-frame-faces.
12945
b8ff72fa
SM
12946 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
12947 Allow MSDOS frames along with X frames.
aac0c6e3
MR
12948
12949 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
12950 addition to output_termcap.
12951
12952 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
12953
12954 * termchar.h (FRAME_TTY): Support output_msdos_raw.
12955 (struct tty_display_info) [MSDOS]: Add fields related to mouse
12956 highlight.
12957
12958 * process.c [!subprocesses]: Define QCname.
12959 (syms_of_process): Intern and staticpro it.
12960
12961 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
12962 Adjust for changes in encoding/decoding routines.
12963 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
12964 encode_coding and decode_coding.
12965
b8ff72fa 12966 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
12967
12968 * dosfns.c: Include frame.h before termhooks.h.
12969 (dos_cleanup): Use CURTTY ()->termscript instead of a global
12970 variable termscript.
12971
12972 * s/msdos.h (USER_FULL_NAME): Define.
12973 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
12974
12975 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
12976 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
12977 pw->pw_gecos.
12978
12979 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
12980 SELECTED_FRAME as additional (1st) argument.
12981 (tty_read_avail_input): Handle output_msdos_raw in
12982 addition to output_termcap.
12983
12984 * msdos.c: Include frame.h before termhooks.h.
12985 (mouse_on, mouse_off, mouse_moveto, mouse_init)
12986 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
12987 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
12988 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
12989 (IT_set_terminal_modes, IT_reset_terminal_modes)
12990 (IT_set_frame_parameters): Use tty->termscript instead of a global
12991 variable termscript.
12992 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
12993 global variable terminal_coding. Don't refer to
12994 Vnonascii_translation_table.
12995 (internal_terminal_init): Set Vwindow_system in current_kboard.
12996 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
12997 Announce date and time of session start, if termscript is open.
12998 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
12999 term.c:init_tty). Open termscript only of not already open.
13000 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
13001 here instead of dos_ttraw. Don't initialize display if this is an
13002 initial tty. Don't set FRAME_FONT.
13003 (Vwindow_system_version): Bump to 23.
13004 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
13005 is available, set up mouse_position_hook.
13006 (dos_ttraw, IT_set_terminal_modes): If called with initial
13007 terminal, do nothing.
13008 (IT_set_frame_parameters): Handle the Qtty_type frame
13009 parameter by calling internal_terminal_init.
13010 (dos_set_window_size, show_mouse_face)
13011 (clear_mouse_face, IT_note_mode_line_highlight)
13012 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
13013 (dos_rawgetc): Use tty_display_info instead of x_display_info.
13014 (initialize_msdos_display): New function.
13015 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
13016 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
13017 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
13018 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 13019 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
13020 (request_sigio, unrequest_sigio): Don't define, now defined on
13021 sysdep.c.
13022 (IT_write_glyphs): Rewrite to use encode_terminal_code.
13023
13024 * term.c [MSDOS]: Include msdos.h.
13025 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
13026 conditional to DOS_NT. Allow only one call to this function in a
13027 session. Don't allocate a new struct tty_display_info; instead,
13028 reuse the_only_display_info. Call get_tty_size to get screen
13029 dimensions. Call init_baud_rate to set bad_rate.
13030 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
13031 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 13032 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
13033 (get_tty_terminal, get_named_tty, Ftty_type)
13034 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
13035 output_termcap.
b8ff72fa
SM
13036 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
13037 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 13038 only when subprocesses are supported.
aac0c6e3
MR
13039
13040 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
13041 f->output_data.x.
13042 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
13043 terminal devices.
13044
5582fbc7 13045 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
13046 x_output.
13047 (FRAME_FONT): Use output_data.tty.
13048 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
13049 (struct x_display_info): Rename from display_info. Update all users in
13050 msdos.c.
aac0c6e3 13051 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 13052 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
13053 (dos_ttraw): Update prototype.
13054
13055 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
13056 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
13057
130582008-08-23 Jason Rumney <jasonr@gnu.org>
13059
13060 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
13061 (fn_TIFFSetDirectory): New library function used.
13062 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
13063 (tiff_load): Use :index to select among multiple images. Set count
13064 property when multiple images exist.
13065 (gif_format): Use :index, not :image.
13066
130672008-08-23 Chong Yidong <cyd@stupidchicken.com>
13068
13069 * xdisp.c (try_scrolling): Check INT_MAX instead of
13070 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
13071 to obtain INT_MAX.
13072
130732008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
13074
13075 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
13076
130772008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
13078
13079 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
13080 GNUstep library location.
13081
130822008-08-21 Chong Yidong <cyd@stupidchicken.com>
13083
13084 * xfaces.c (x_update_menu_appearance): Check validity of menu font
13085 before using it.
13086
13087 * puresize.h (BASE_PURESIZE): Increase to 1250000.
13088
130892008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13090
13091 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
13092 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
13093 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
13094 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
13095 (EmacsApp-cursor_blink_handler): Remove declaration.
13096 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
13097 match 01 Feb 2008 changes in xterm.c.
13098 (ns_read_socket): Add cast to avoid warning.
13099 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
13100 GNUstep.
13101
131022008-08-20 Chong Yidong <cyd@stupidchicken.com>
13103
13104 * xselect.c (x_get_foreign_selection): Return nil if desired
13105 selection could not be obtained, instead of signalling an error.
13106
131072008-08-20 David Reitter <david.reitter@gmail.com>
13108
13109 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
13110 * nsterm.m: Remove ns-specific code for cursor blinking.
13111 (ns_draw_window_cursor): Clear cursor properly rather than
13112 redrawing the area. Respect width of bar cursors.
13113 These changes enable the use of generic blink-cursor-mode and
13114 generic cursor types in NS and support smooth cursor movements (do
13115 not blink off after command).
13116 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
13117 Nextstep, too.
13118
131192008-08-19 Kenichi Handa <handa@m17n.org>
13120
13121 * font.c (Vfont_log_deferred): New variable.
13122 (font_add_log): Check Vfont_log_deferred.
13123 (font_deferred_log): New function.
13124
13125 * font.h (font_deferred_log): Extern it.
13126
13127 * fontset.c (reorder_font_vector): Use encoding charset of fonts
13128 for sorting.
13129 (face_for_char): Use deferred log.
13130
131312008-08-18 Kenichi Handa <handa@m17n.org>
13132
13133 * fontset.c (face_for_char): Add font log.
13134
13135 * font.c (font_add_log): Add the font properties :script, :lang,
13136 and :otf in the log.
13137
131382008-08-17 Chong Yidong <cyd@stupidchicken.com>
13139
13140 * xdisp.c: Remove dead code.
13141 (handle_invisible_prop, next_overlay_string): Defer call to
13142 setup_for_ellipsis.
13143 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
13144
131452008-08-15 Chong Yidong <cyd@stupidchicken.com>
13146
13147 * xfaces.c (lookup_derived_face): Properly handle possible zero
13148 return value of get_lface_attributes.
13149 (merge_faces): Don't tell lookup_derived_face to signal an error
13150 if face is not found.
13151
13152 * dired.c (Fdirectory_files): Doc fix.
13153
13154 * process.c (make_process): Initialize kill_without_query struct
13155 member.
13156
131572008-08-15 Eli Zaretskii <eliz@gnu.org>
13158
13159 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
13160 Alternative calculation of totphys for Visual Studio 6.
13161
13162 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
13163
13164 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
13165 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
13166 All users changed.
13167 (stat): Only root directory passed to GetDriveType. Allow RAM
13168 disk as well as local fixed disk when w32-get-true-file-attributes
13169 is set to `local'.
13170 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
13171 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
13172 (w32_cached_id, w32_add_to_cache): New functions.
13173 (get_name_and_id): Look account names in the cache before calling
13174 lookup_account_sid.
13175 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
13176 New initialization flags.
13177 (globals_of_w32): Initialize them to zero.
13178 (w32_system_process_attributes): Use w32_cached_id and
13179 w32_add_to_cache.
13180
131812008-08-14 Lawrence Mitchell <wence@gmx.li>
13182
13183 * lread.c (Fread_char, Fread_char_exclusive): If no character
13184 event is read before timeout is reached, return nil, rather than
13185 converting to a number.
13186
131872008-08-14 Chong Yidong <cyd@stupidchicken.com>
13188
13189 * fns.c (use_dialog_box): Doc fix.
13190
13191 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
13192 on OS X.
13193
131942008-08-13 Chong Yidong <cyd@stupidchicken.com>
13195
13196 * frame.c (Qns_parse_geometry): New var.
13197 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
13198
131992008-08-11 Chong Yidong <cyd@stupidchicken.com>
13200
13201 * xdisp.c (x_produce_glyphs): Handle the case when font has no
13202 space character in calculating tabs.
13203
132042008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
13205
13206 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
13207
132082008-08-10 Glenn Morris <rgm@gnu.org>
13209
13210 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
13211 silence gcc "limited range of data type" warnings in some
13212 make_fixnum_or_float calls.
13213
132142008-08-09 Eli Zaretskii <eliz@gnu.org>
13215
13216 * w32.c (w32_system_process_attributes): If the process does not
13217 exist, return nil.
13218
13219 * w32.c: Include thelp32.h, psapi.h and coding.h.
13220 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
13221 declarations.
13222 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
13223 (Process32Next_Proc): New typedefs.
13224 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
13225 (g_b_init_process32_next, g_b_init_open_thread_token)
13226 (g_b_init_impersonate_self, g_b_init_revert_to_self)
13227 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
13228 (g_b_init_get_process_working_set_size)
13229 (g_b_init_global_memory_status_ex): New static variables.
13230 (globals_of_w32): Initialize them.
13231 (create_toolhelp32_snapshot, process32_first, process32_next)
13232 (open_thread_token, impersonate_self, revert_to_self)
13233 (get_process_memory_info, get_process_working_set_size)
13234 (global_memory_status, global_memory_status_ex): New wrapper
13235 functions.
13236 (w32_list_system_processes, w32_system_process_attributes)
13237 (enable_privilege, restore_privilege, ltime, process_times):
13238 New functions.
13239 (convert_time_raw): New function.
13240 (convert_time): Remove conversion of FILETIME into time in 100
13241 nsec units, call convert_time_raw instead.
13242
13243 * process.h (w32_list_system_processes, w32_system_process_attributes):
13244 Add prototypes.
13245 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
13246 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
13247 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
13248 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
13249
13250 * process.c (Fsystem_process_attributes): Doc fix.
13251
132522008-08-08 Chong Yidong <cyd@stupidchicken.com>
13253
13254 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
13255 a continued multi-char glyph; if so, advance to the actual glyph.
13256
132572008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
13258
13259 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
13260
13261 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
13262 (.m.o): Use it.
13263 * config.in: Regenerate.
13264
132652008-08-07 Chong Yidong <cyd@stupidchicken.com>
13266
13267 * xdisp.c (redisplay_window): Revert last change.
13268 (try_window): Check bottom scroll margin too.
13269
132702008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13271
13272 * config.in: Regenerate.
13273
13274 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
13275 -list-load-path-shadows'.
13276 (nsgui.h): Reduce number of things depending on it.
13277
132782008-08-06 Chong Yidong <cyd@stupidchicken.com>
13279
13280 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
13281 instead of window-end which does the wrong thing at eob.
13282 (try_cursor_movement): Minor optimization.
13283 (redisplay_window): If scroll margin is defined, don't assume
13284 window doesn't need scrolling.
13285
132862008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13287
13288 * config.in: Regenerate.
13289
13290 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
13291 (mostlyclean): Don't delete *.d under NS.
13292
13293 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
13294
132952008-08-06 Kenichi Handa <handa@m17n.org>
13296
13297 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
13298
132992008-08-06 Andreas Schwab <schwab@suse.de>
13300
13301 * config.in: Regenerate.
13302
133032008-08-05 Chong Yidong <cyd@stupidchicken.com>
13304
13305 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
13306 forcing a window start.
13307
13308 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
13309 (auto_save_1): Update modtime when auto-save-list-file-name is on.
13310
133112008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13312
13313 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
13314 argument.
13315
133162008-08-05 Juanma Barranquero <lekktu@gmail.com>
13317
13318 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
13319 <scroll-down-aggressively, before-change-functions>:
13320 <after-change-functions>: Reflow docstrings.
13321
133222008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 13323 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
13324
13325 Dock menu customization, based on a patch by Ken Raeburn, plus some
13326 other fixes.
13327 * nsmenu.m (dockMenu): New variable.
13328 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
13329
13330 * nsterm.h (dockMenu): Declare.
13331
13332 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
13333 (ns_term_init): Initialize dockMenu.
13334 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
13335 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
13336 left.
13337
13338 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
13339
133402008-08-04 Chong Yidong <cyd@stupidchicken.com>
13341
13342 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
13343
13344 * config.in: Regenerate.
13345
133462008-08-04 Seiji Zenitani <zenitani@mac.com>
13347
13348 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
13349
133502008-08-04 Chong Yidong <cyd@stupidchicken.com>
13351
13352 * nsterm.h (find_and_call_menu_selection): Fix prototype.
13353
133542008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13355
13356 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
13357
13358 * keyboard.h: Comment an #endif.
13359
13360 * lisp.h (have_menus_p): Adjust comment.
13361
13362 * menu.c (find_and_return_menu_selection): Fix comparison with
13363 client_data.
13364
13365 * nsmenu.m (popup_activated_flag): New variable.
13366 (popup_activated): New function.
13367 (menu-or-popup-active-p): New exported lisp definition.
13368 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
13369 when popup done.
13370 (ns_popup_dialog): Set popup_activated_flag.
13371
13372 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
13373 version for GNUstep (handled by conditional typedef in nsterm.m).
13374 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
13375 in rgb.txt).
13376
13377 * process.c (init_process): Use DARWIN_OS, not DARWIN.
13378
13379 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
13380
13381 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
13382
13383 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
13384 shortcircuit if popup_activated like GTK and X toolkit.
13385
13386 * m/inter386.h: Change DARWIN to DARWIN_OS.
13387
13388 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
13389 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
13390 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
13391 comment on NO_SOCK_SIGIO.
13392
133932008-08-03 Chong Yidong <cyd@stupidchicken.com>
13394
13395 * nsterm.m (windowDidResize): Remove stopModal call.
13396
133972008-08-03 Andreas Schwab <schwab@suse.de>
13398
13399 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
13400 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
13401
134022008-08-02 Chong Yidong <cyd@stupidchicken.com>
13403
13404 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
13405 Don't use uninitialized pointer variable when using getrlimit.
13406
134072008-08-02 Jason Rumney <jasonr@gnu.org>
13408
13409 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
13410
134112008-08-02 Eli Zaretskii <eliz@gnu.org>
13412
13413 * alloc.c (NSTATICS): Bump to 0x640.
13414
13415 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
13416
13417 * lisp.h: Add prototype for directory_files_internal.
13418
13419 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
13420 New functions.
13421 (syms_of_process): Defsubr them. Add initializations for various
13422 Q* symbols used in procfs_system_process_attributes.
13423 (procfs_list_system_processes, procfs_system_process_attributes)
13424 [HAVE_PROCFS]: New functions.
13425 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
13426 (procfs_get_total_memory): New functions.
13427
134282008-08-01 Juanma Barranquero <lekktu@gmail.com>
13429
13430 * xfaces.c (Fx_load_color_file): Fix previous change;
13431 it is #ifdef WINDOWSNT, not WINDOWS_NT.
13432
134332008-08-01 Michael Albinus <michael.albinus@gmx.de>
13434
13435 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
13436
134372008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13438
13439 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
13440
134412008-08-01 Chong Yidong <cyd@stupidchicken.com>
13442
13443 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
13444
13445 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
13446 define NSApplicationDelegateReplySuccess.
13447 (EmacsView -converstationIdentifier): Use long instead of
13448 NSInteger for GNUstep, since it doesn't have NSInteger.
13449
13450 * xmenu.c: Revert last change.
13451
13452 * keyboard.h: Fix last change.
13453
134542008-08-01 Juanma Barranquero <lekktu@gmail.com>
13455
13456 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
13457 on Windows.
13458
134592008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13460
13461 Warning clearing and clean-up in NS port.
13462 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
13463 Add prototypes.
13464 * nsgui.h (FACE_DEFAULT): Remove, unused.
13465 (XGCValues): Change colors to unsigned long.
13466 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
13467 nsterm.m.
13468 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
13469 (ns_list_fonts): Remove, unused.
13470 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
13471 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
13472 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
13473 (nsfont_draw): Compare face colors to 0, not nil.
13474 * nsmenu.m (struct widget_value): Drop unneeded declaration.
13475 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
13476 (-addSubmenuWithTitle:): Use NSMenuItem class.
13477 (ns_popup_menu): Use NO, not NULL, for enabled setting.
13478 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
13479 (ns_clip_to_row): Make gc arg a BOOL.
13480 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
13481 ns_clip_to_row() call.
13482 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
13483 used). Cast FRAME_FONT assignments.
13484 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
13485 (ns_string_to_lispmod): Change arg to const char.
13486 (ns_term_init): Use NSMenuItem class.
13487 (EmacsApp -openFile:): Move to different section of file.
13488 (EmacsApp -application:openFiles:): Don't return a value, call
13489 -replyToOpenOrPrint:.
13490 (EmacsView -keyDown:): Fix up cast.
13491 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
13492 (EmacsView -menuDown:): Cast tag in call to
13493 find_and_call_menu_selection().
13494 (ns_list_fonts): Remove, unused.
13495 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
13496 (ns_fontname_to_xlfd): Make static.
13497 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
13498 Remove prototypes (now in keyboard.h).
13499 (next_menubar_widget_id): Remove, unused.
13500 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
13501 Remove prototypes (now in keyboard.h).
13502 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
13503
135042008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
13505
13506 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
13507 (floatfns.o): Depend on syssignal.h.
13508 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
13509
13510 * systty.h: Fix previous change that removed BSD_TERMIOS.
13511 Add comments to #ifdefs.
13512
135132008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13514
13515 * w32fns.c (w32-load-color-file): Remove.
13516 (x-open-connection): Use renamed Fx_load_color_file.
13517 * xfaces.c (x-load-color-file): Add.
13518 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
13519 Emacs.clr.
13520 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
13521
135222008-07-31 Michael Albinus <michael.albinus@gmx.de>
13523
13524 * dbusbind.c (Fdbus_call_method_asynchronously)
13525 (Fdbus_method_error_internal): New defuns.
13526 (xd_read_message): Handle also reply messages.
13527 (Vdbus_registered_functions_table): Extend docstring.
13528
135292008-07-31 Juanma Barranquero <lekktu@gmail.com>
13530
13531 * keyboard.c (gobble_input): Fix previous change.
13532
135332008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13534
13535 * bitmaps/README:
13536 * xfns.c:
13537 * termcap.c:
13538 * term.c:
13539 * syswait.h:
13540 * systty.h:
13541 * systime.h:
13542 * syssignal.h:
13543 * sysdep.c:
13544 * process.h:
13545 * process.c:
13546 * print.c:
13547 * ndir.h:
13548 * lread.c:
13549 * keyboard.c:
13550 * getpagesize.h:
13551 * floatfns.c:
13552 * fileio.c:
13553 * emacs.c:
13554 * doc.c:
13555 * dispnew.c:
13556 * dired.c:
13557 * data.c:
13558 * callproc.c:
13559 * buffer.c:
13560 * README:
13561 * Makefile.in:
13562 * s/template.h:
13563 * s/msdos.h:
13564 * m/vax.h: Remove VMS support.
13565 * s/vms.h:
13566 * vlimit.h:
13567 * uaf.h:
13568 * temacs.opt:
13569 * param.h:
13570 * ioctl.h: Remove file.
13571
135722008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13573
13574 * s/ms-w32.h (MULTI_KBOARD): Remove.
13575 * xterm.c:
13576 * xselect.c:
13577 * xfns.c:
13578 * window.c:
13579 * w32term.c:
13580 * w32fns.c:
13581 * terminal.c:
13582 * termhooks.h:
13583 * term.c:
13584 * sysdep.c:
13585 * keyboard.h:
13586 * keyboard.c:
13587 * frame.h:
13588 * frame.c:
13589 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
13590 * config.in: Regenerate.
13591
135922008-07-30 Jason Rumney <jasonr@gnu.org>
13593
13594 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
13595
13596 * w32font.c (w32font_encode_char): Leave as unicode if in range.
13597 (w32font_open_internal): Get unicode version of textmetrics.
13598 Don't enable or disable glyph indices here.
13599 (w32font_open): Disable use of glyph indices.
13600
13601 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
13602
136032008-07-30 Chong Yidong <cyd@stupidchicken.com>
13604
13605 * minibuf.c (Vread_buffer_function): Doc fix.
13606
136072008-07-30 John Paul Wallington <jpw@pobox.com>
13608
13609 * minibuf.c (read_buffer_completion_ignore_case): New var.
13610 (Fread_buffer): Use it.
13611
136122008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
13613
13614 * systty.h (sensemode): Remove empty #if. Remove reference to
13615 BSD_TERMIOS, unused.
13616
13617 * sysdep.c: Remove reference to DGUX.
13618 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
13619
13620 * config.in: Regenerate.
13621
136222008-07-30 Jason Rumney <jasonr@gnu.org>
13623
13624 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
13625
136262008-07-29 Jason Rumney <jasonr@gnu.org>
13627
13628 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
13629 is populated.
13630 (uniscribe_encode_char): Always use uniscribe.
13631 Avoid using context if cache is populated.
13632
136332008-07-29 Jan Djärv <jan.h.d@swipnet.se>
13634
13635 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
13636 open menu.
13637
13638 * gtkutil.c (menu_nav_ended): Remove.
13639 (create_menus): Remove signal connect for menu_nav_ended.
13640
136412008-07-28 Chong Yidong <cyd@stupidchicken.com>
13642
13643 * xdisp.c (redisplay_window): Check return value of
13644 compute_window_start_on_continuation_line before forcing a window
13645 start.
13646
136472008-07-28 Jason Rumney <jasonr@gnu.org>
13648
13649 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
13650
13651 * w32term.c (w32_enable_unicode_output, cleartype_active):
13652 Remove obsolete display options.
13653 (x_draw_glyph_string_background): Don't use old cleartype_active
13654 workaround.
13655 (w32_initialize): Remove cleartype_active initialization.
13656 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
13657
136582008-07-28 Andreas Schwab <schwab@suse.de>
13659
13660 * lisp.h (init_weak_hash_tables, syms_of_font)
13661 (xd_read_queued_messages, syms_of_dbusbind): Declare.
13662 (remove_hash_entry): Don't declare.
13663 * eval.c (maybe_call_debugger): Make static and move before use.
13664 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
13665 * xdisp.c: Include "gtkutil.h" if USE_GTK.
13666 * xterm.h (x_set_frame_alpha): Declare.
13667
136682008-07-28 Jan Djärv <jan.h.d@swipnet.se>
13669
13670 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
13671 (create_menus): Connect selection-done to menu_nav_ended.
13672
136732008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13674
13675 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
13676 Set Vx_resource_name to a fallback. Replace read of 'buffered'
13677 parameter with read of 'alpha' one.
13678 (Qns_frame_parameter): Remove.
5582fbc7 13679 * nsselect.m (selection-coding-system)
aac0c6e3
MR
13680 (next-selection-coding-system, Vselection_coding_system)
13681 (Vnext_selection_coding_system): Drop.
13682
136832008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13684
13685 * nsfns.m (do-applescript, do_applescript): Rename to
13686 ns-do-applescript, ns_do_applescript, and move within file.
13687
136882008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
13689
13690 Remove support for Mac Carbon.
13691 * mactoolbox.c:
13692 * macterm.h:
13693 * macterm.c:
13694 * macselect.c:
13695 * macmenu.c:
13696 * macgui.h:
13697 * macfns.c:
13698 * mac.c: Remove file.
13699 * s/darwin.h:
13700 * m/intel386.h:
13701 * xfaces.c:
13702 * xdisp.c:
13703 * window.c:
13704 * tparam.c:
13705 * termhooks.h:
13706 * termcap.c:
13707 * term.c:
13708 * syssignal.h:
13709 * sysselect.h:
13710 * sysdep.c:
13711 * process.c:
13712 * lread.c:
13713 * lisp.h:
13714 * keyboard.c:
13715 * image.c:
13716 * fringe.c:
13717 * frame.h:
13718 * frame.c:
13719 * fontset.c:
13720 * font.h:
13721 * font.c:
13722 * fns.c:
13723 * fileio.c:
13724 * emacs.c:
13725 * dispnew.c:
13726 * dispextern.h:
13727 * config.in:
13728 * atimer.c:
2ae37cf0 13729 * Makefile.in: Remove code for Carbon.
aac0c6e3 13730
f0131492 137312008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
13732
13733 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
13734
137352008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13736
13737 * macterm.h (kCGBitmapByteOrder32Host): New define for
13738 non-universal SDKs.
13739
13740 * image.c (mac_create_cg_image_from_image, image_load_image_io)
13741 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13742
13743 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
13744 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13745
137462008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
13747
13748 * w32inevt.c: Include dispextern.h.
13749
137502008-07-26 Andreas Schwab <schwab@suse.de>
13751
13752 * print.c (print_object): Fix off-by-one in last change.
13753
137542008-07-25 Juanma Barranquero <lekktu@gmail.com>
13755
13756 * term.c (syms_of_term): Don't initialize default_orig_pair,
13757 default_set_foreground and default_set_background on Windows.
13758
137592008-07-25 Jason Rumney <jasonr@gnu.org>
13760
13761 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
13762 ScriptItemize. Clean up return value checking. Remove unused
13763 variables.
13764 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
13765 shaping engine.
13766
13767 * w32font.c (w32font_has_char): Handle the case where we can't
13768 determine the script for a character.
13769
137702008-07-25 Chong Yidong <cyd@stupidchicken.com>
13771
13772 * term.c (syms_of_term): Initialize default_orig_pair,
13773 default_set_foreground, and default_set_background.
13774
13775 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
13776 clash (bug#86).
13777 (getloadavg): Callers changed.
13778
13779 * image.c (svg_load_image): Fix last change.
13780 (svg_load_image): Use rsvg_handle_get_dimensions to check that
13781 image size is valid. Use g_object_unref instead of deprecated
13782 rsvg_handle_free to free rsvg handle.
13783 (x_from_xcolors): Don't initialize pixmap (silence compiler).
13784
137852008-07-25 Jason Rumney <jasonr@gnu.org>
13786
13787 * w32font.c (w32font_encode_char): Encode characters outside BMP as
13788 surrogates before looking up glyph index.
13789 (w32font_text_extents): Encode as surrogates if falling back to
13790 functions that need UTF-16 wide chars.
13791
13792 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
13793 BMP as surrogates before looking up glyph index.
13794
137952008-07-25 Chong Yidong <cyd@stupidchicken.com>
13796
13797 * image.c (svg_load_image): Check for failure in return value of
13798 rsvg_handle_get_pixbuf. Free rsvg handle when done.
13799
138002008-07-25 Jason Rumney <jasonr@gnu.org>
13801
13802 * w32font.c (Fx_select_font): Reverse sense of second arg.
13803
138042008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
13805
13806 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
13807 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
13808
13809 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
13810 (PURESIZE): Use it.
13811
138122008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
13813
13814 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
13815 * m/alpha.h (TEXT_END):
13816 * m/ibmrs6000.h (TEXT_END):
13817 * m/macppc.h (TEXT_END):
13818 * s/darwin.h (TEXT_END):
13819 * s/msdos.h (TEXT_END): Remove, unused.
13820 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
13821 * s/cygwin.h: Remove comment.
13822
13823 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
13824 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
13825 * m/intel386.h (DOT_GLOBAL_START):
13826 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
13827 (USG): Remove, file not used on USG platforms.
13828
13829 * Makefile.in (HAVE_X11): Remove empty #else.
13830
138312008-07-24 Andreas Schwab <schwab@suse.de>
13832
13833 * fileio.c (Finsert_file_contents): Properly adjust undo list
13834 after format conversion.
13835
138362008-07-24 Jan Djärv <jan.h.d@swipnet.se>
13837
13838 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
13839 (menu_nav_ended): Remove.
13840 (create_menus): Remove signal connect for menu_nav_ended.
13841 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
13842 create_menus.
13843 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
13844
138452008-07-23 Jason Rumney <jasonr@gnu.org>
13846
13847 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
13848 with opened font.
13849 (w32font_open): Set font type to gdi.
13850
13851 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
13852
138532008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
13854
13855 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
13856 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
13857 defines it.
13858 * unexec.c (ADDR_CORRECT): Define unconditionally.
13859
13860 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
13861
13862 * unexec.c: Remove code depending on !COFF and USG, the file is
13863 not used for such systems.
13864
13865 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
13866 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
13867 (LD_SWITCH_SYSTEM_1): Remove, update users.
13868
13869 * s/darwin.h (DATA_END):
13870 * m/intel386.h (DATA_END):
13871 * m/ibmrs6000.h (DATA_END):
13872 * m/alpha.h (DATA_END): Remove, unused.
13873
13874 * config.in: Regenerate.
13875 * s/ms-w32.h (subprocesses): Define unconditionally.
13876 * s/template.h (subprocesses): Update comment.
13877 * s/vms.h (subprocesses):
13878 * s/usg5-4.h (subprocesses):
13879 * s/hpux10-20.h (subprocesses):
13880 * s/gnu-linux.h (subprocesses):
13881 * s/cygwin.h (subprocesses):
13882 * s/bsd-common.h (subprocesses):
13883 * s/aix4-2.h (subprocesses):
13884 * s/darwin.h (subprocesses): Do not define, defined by default now.
13885
13886 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
13887 Remove all references.
13888 (temacs): Add GNUstep specific ld flags.
13889
13890 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
13891 similarly to what X does.
13892
138932008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13894
13895 * nsfns.m (x-list-fonts): Remove.
13896 (syms_of_nsfns): Drop the x-list-fonts declaration.
13897 * nsterm.m: Get rid of remaining "//" comments.
13898
138992008-07-22 Chong Yidong <cyd@stupidchicken.com>
13900
13901 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
13902
13903 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
13904 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
13905 (Fns_own_selection_internal, Fx_disown_selection_internal)
13906 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
13907
13908 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
13909 ... */' style of docstrings. Doc fixes.
13910
139112008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13912
13913 * terminfo.c (UP, BC, PC): Undo previous change.
13914
13915 * nsfns.m: Rename ns prefixed functions/variables to the
13916 corresponding x versions. Update references.
13917
139182008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
13919
13920 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
13921
139222008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13923
13924 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
13925 Remove forwarding functions.
13926 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
13927 non-static.
13928 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
13929 non-static.
13930 (ns_frame_parm_handlers): Use the new names.
13931 (syms_of_nsfns): Move to the end of file.
13932
13933 * nsterm.m (syms_of_nsterm): Move to the end of file.
13934
13935 * dispnew.c (init_display): Remove code for X10.
13936
139372008-07-22 Jason Rumney <jasonr@gnu.org>
13938
13939 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
13940 bare drive.
13941
139422008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13943
13944 * nsterm.m (syms_of_nsterm): Remove debugging println.
13945
139462008-07-22 David Reitter <david.reitter@gmail.com>
13947
13948 * nsfns.m (do_applescript, F_do_applescript): NS version of the
13949 Carbon implementation of the same functionality: execute arbitrary
13950 AppleScript code.
13951
139522008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13953
13954 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
13955 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
13956 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
13957 (Fx_display_mm_height, Fx_display_mm_width)
13958 (Fx_display_backing_store, Fx_display_visual_class)
13959 (Fx_display_save_under, Fx_open_connection)
13960 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
13961 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
13962 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13963 (Fx_display_pixel_width, Fx_display_pixel_height)
13964 (Fx_display_usable_bounds, Fx_display_planes)
13965 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
13966 ... */' style of docstrings.
13967
139682008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
13969
13970 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
13971 on this platform.
13972 (mips):
13973 * m/iris4d.h (mips): Do not define.
13974 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
13975
13976 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
13977
13978 * image.c:
13979 * nsfns.m:
13980 * nsselect.m:
13981 * nsterm.h:
13982 * nsterm.m: Rename ns prefixed functions/variables to the
13983 corresponding x versions. Update references.
13984
13985 * m/ibms390x.h (NO_REMAP): Do not undefine.
13986
13987 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
13988
139892008-07-21 Chong Yidong <cyd@stupidchicken.com>
13990
13991 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
13992 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
13993 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
13994 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
13995 (Fns_display_mm_height, Fns_display_mm_width)
13996 (Fns_display_backing_store, Fns_display_visual_class)
13997 (Fns_display_save_under, Fns_open_connection)
13998 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
13999 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
14000 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
14001 (Fns_display_pixel_width, Fns_display_pixel_height)
14002 (Fns_display_usable_bounds, Fx_display_planes)
14003 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
14004
140052008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
14006
14007 * print.c (print_object): Check print_depth before searching for
14008 circularities.
14009
140102008-07-21 Michael Albinus <michael.albinus@gmx.de>
14011
14012 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
14013 only sprintf.
14014
140152008-07-21 Kenichi Handa <handa@m17n.org>
14016
14017 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
14018
140192008-07-20 Andreas Schwab <schwab@suse.de>
14020
14021 * syntax.c (find_start_pos, find_start_value)
14022 (find_start_value_byte, find_start_begv, find_defun_start)
14023 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
14024
140252008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
14026
14027 * s/sol2-3.h: Insert contents of s/sol2.h.
14028 (LD_SWITCH_SYSTEM): Remove redundant definition.
14029 * s/sol2.h: Remove, unused.
14030
140312008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14032
14033 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
14034
140352008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14036
14037 * Makefile.in (ns_appdir): Fix typo in find command.
14038
140392008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
14040
14041 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
14042
14043 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
14044 added not supported anymore.
14045
14046 * s/usg5-4-2.h (LIBS_SYSTEM):
14047 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
14048
14049 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14050 * s/lynxos.h (GETPGRP_NO_ARG):
14051 * s/hpux10-20.h (NO_SIOCTL_H):
14052 * s/gnu.h (GETPGRP_NO_ARG):
14053 * s/gnu-linux.h (NO_SIOCTL_H):
14054 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14055 * s/cygwin.h (GETPGRP_NO_ARG):
14056 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
14057 (C_DEBUG_SWITCH): Remove duplicate definition.
14058
14059 * m/ibms390.h: Remove boilerplate comments.
14060
14061 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
14062
14063 * process.c (HAVE_SERIAL): Consolidate ifdefs.
14064 (wait_reading_process_output): Remove code for SunOS, platform not
14065 supported anymore. Use SOLARIS2 instead of sun.
14066
140672008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14068
14069 * font.c (font_open_by_name): Under NS, default lface height to zero.
14070 (font_open_for_lface): Under NS, set size based on frame fontsize.
14071 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
14072 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
14073
140742008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14075
14076 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
14077 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
14078 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
14079 YES/NO.
14080 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
14081 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
14082 * Makefile.in (clean): Clear out build destination dir.
14083
140842008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14085
14086 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
14087 xterm, xselect.
14088 * lisp.h: Remove declaration of hash_remove.
14089 * nsgui.h: Remove redefinitions of hash_remove.
14090 * fns.c (hash_remove): Rename to hash_remove_from_table.
14091
140922008-07-19 Seiji Zenitani <zenitani@mac.com>
14093
14094 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
14095 strdup() the family UTF8String before modifying it.
14096
140972008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14098
14099 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
14100 NS_FACE_BACKGROUND with 0 instead of nil.
14101 * nsfont.m (nsfont_draw): Same.
14102
141032008-07-19 Chong Yidong <cyd@stupidchicken.com>
14104
14105 * nsfns.m (ns_set_background_color): Fix crash.
14106
141072008-07-18 Chong Yidong <cyd@stupidchicken.com>
14108
14109 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
14110
141112008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
14112
14113 * puresize.h (BASE_PURESIZE): Increase to 1240000.
14114
141152008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14116
14117 * gtkutil.c: Include <config.h> instead of "config.h".
14118
14119 * lisp.h (Foverlay_buffer): Add EXFUN.
14120
14121 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
14122 child process to complete child_setup. Undo 2005-09-21 change.
14123
14124 * s/darwin.h: Mention setsid after vfork.
14125
141262008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14127
14128 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
14129 Depend on macgui.h.
14130
14131 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
14132 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
14133
14134 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
14135 and f19.
14136 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
14137
14138 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
14139 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
14140 Remove enumerators.
14141
14142 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
14143 Check if FACE_FROM_ID returns NULL.
14144
141452008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
14146
14147 * w32inevt.c (change_frame_size): Remove extern declaration.
14148 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
14149 change_frame_size.
14150
141512008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
14152
14153 * getloadavg.c: Revert last change (2008-07-15).
14154
141552008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
14156
14157 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 14158 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
14159 from configure.
14160
141612008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
14162
14163 * s/sol2.h:
14164 * s/sol2-4.h: Reorganize conditionals.
14165
14166 * ecrt0.c: Remove code depending on m68000, not used anymore.
14167
14168 * fns.c (hash_remove): Make static.
14169 * lisp.h (hash_remove): Don't prototype.
14170
14171 * m/ibmrs6000.h:
14172 * m/ibms390x.h:
14173 * m/macppc.h: Remove boilerplate comments.
14174
14175 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
14176 Solaris, which does not need them.
14177
14178 * m/vax.h: Remove comments about unsupported systems.
14179
14180 * s/darwin.h: Reorganize ifdefs.
14181
141822008-07-17 Andreas Schwab <schwab@suse.de>
14183
14184 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
14185
141862008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
14187
14188 Use SDATA. Follow coding convention of placing operators at
14189 beginning of next line rather than end of previous line, and placing
14190 spaces around infix operators.
14191
14192 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
14193 in case it was defined already.
14194 USE @GNUSTEP_MAKEFILES@ rather than envvars.
14195 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
14196 ns_default.
14197 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
14198 Lisp_Objects.
14199 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
14200 (ns_defined_color, ns_color_to_lisp): Declare.
14201 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
14202 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
14203 it's accepted even with USE_LISP_UNION_TYPE.
14204 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
14205 (update_frame_tool_bar): Remove apparently obsolete tests for
14206 non-integerness of f->tool_bar_lines.
14207 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
14208 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
14209 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
14210 (nsfont_open): Don't confuse NULL for Qnil.
14211 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
14212 * menu.h (find_and_call_menu_selection):
14213 * menu.c (find_and_call_menu_selection): Use just int for vector size.
14214 (find_and_return_menu_selection): Always return something.
14215 * frame.h: Include dispextern.h for Display_Info.
14216 (display_x_get_resource): Declare.
14217
142182008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
14219
14220 * syntax.c: Remove stdio.h include accidentally introduced in
14221 Emacs.app commit.
14222 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
14223 NS_IMPL_COCOA.
14224 * keyboard.c (handle_async_input, input_available_signal): Remove
14225 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
14226
142272008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
14228
14229 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
14230 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
14231 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
14232 Use SDATA.
14233
14234 * keymap.c: Remove all NS-specific code.
14235 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
14236 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
14237 where_is_preferred_modifier, return a different value depending on how
14238 preferred is the binding.
14239 (where_is_internal): Adjust accordingly.
14240 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
14241 Adjust to new preferred_sequence_p.
14242 (syms_of_keymap): Declare `where-is-preferred-modifier'.
14243 * keyboard.c (parse_solitary_modifier): Not static any more.
14244 * keyboard.h (parse_solitary_modifier): Declare.
14245
142462008-07-16 Andreas Schwab <schwab@suse.de>
14247
14248 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
14249 of easymenu.
14250
142512008-07-16 Chong Yidong <cyd@stupidchicken.com>
14252
14253 * xdisp.c (move_it_in_display_line): Account for word wrap, so
14254 that we don't move off the line.
14255
142562008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
14257
14258 * keyboard.c (Qsuper): Remove.
14259 (parse_menu_item): Don't call where_is_internal specially for NS.
14260
142612008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
14262
14263 * s/gnu-linux.h: Remove boilerplate comments.
14264
14265 * m/alpha.h (__ELF__): Consolidate conditions.
14266
14267 * m/m68k.h (linux): Use GNU_LINUX instead.
14268 Remove boilerplate comments.
14269
14270 * m/intel386.h: Undo refactoring from previous change.
14271 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
14272 too, remove dead code.
14273 (linux): Use GNU_LINUX instead.
14274
142752008-07-16 Jason Rumney <jasonr@gnu.org>
14276
14277 * w32gui.h: Repeat 26 June changes lost by last change.
14278
142792008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
14280
14281 * systty.h: Remove code for Aix on 386, unsupported platform.
14282
14283 * s/ms-w32.h: Remove boilerplate comments.
14284 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
14285
14286 * s/gnu-linux.h (TERM): Remove support.
14287 (HAVE_SYSVIPC): Remove, unused.
14288 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
14289 for this system.
14290
14291 * process.c: Remove support for IRIS, unused.
14292 Remove support for TERM, not relevant anymore.
14293
14294 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
14295 used with the definition.
14296
14297 * s/aix4-2.h (static): Do not undef.
14298
14299 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
14300 only used on Aix.
14301 (HAVE_SYSVIPC): Remove, unused.
14302
14303 * m/hp800.h (CANNOT_DUMP): Do not undef.
14304
14305 * m/alpha.h: Fix comment.
14306
14307 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
14308 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
14309 used by this configuration.
14310 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
14311 * unexec.c: Remove code depending on HPUX and
14312 USG_SHARED_LIBRARIES, not used with this file. Remove code
14313 depending on IRIS, unused. Remove if 0-ed code.
14314
14315 * s/template.h: Remove comments about static.
14316
14317 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
14318 Remove if 0-ed code.
14319 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
14320 were the same as the default.
14321 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
14322 Remove boilerplate comments.
14323 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
14324 (HAVE_SYSVIPC): Remove, unused.
14325 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
14326
14327 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14328 Remove boilerplate comments.
14329 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14330 Remove boilerplate comments.
14331 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14332 Remove boilerplate comments.
14333 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
14334
14335 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
14336 USG systems which do not use DATA_SEG_BITS.
14337 Refactor code. Remove boilerplate comments.
14338
14339 * m/ibms390.h:
14340 * m/m68k.h:
14341 * s/bsd-common.h:
14342 * s/cygwin.h:
14343 * s/darwin.h:
14344 * s/freebsd.h:
14345 * s/gnu.h:
14346 * s/msdos.h: Remove boilerplate comments.
14347
14348 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 14349 do not use this file.
aac0c6e3
MR
14350 (IRIS_4D): Remove, unused.
14351
14352 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 14353 do not use this file.
aac0c6e3
MR
14354 (SIGN_EXTEND_CHAR):
14355 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
14356 * unexmips.c: Remove file, unused.
14357
14358 * editfns.c (Fuser_full_name): Replace the only use of
14359 USER_FULL_NAME with its value.
14360 * config.in: Regenerate.
14361
143622008-07-16 David Reitter <david.reitter@gmail.com>
14363
14364 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
14365 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
14366
143672008-07-16 Glenn Morris <rgm@gnu.org>
14368
14369 * emacs.c (system-type): Doc fix.
14370
143712008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
14372
14373 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
14374 If the cache doesn't work, let's fix it, rather than work around it.
14375
143762008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14377
14378 * Makefile.in: Correct additions for nsfont.o in last commit.
14379 * nsfont.m: New file (forgot last commit).
14380
143812008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
14382
14383 * callproc.c (set_initial_environment): Initialize
14384 Vprocess_environment under CANNOT_DUMP (fixes crash when
14385 batch-compiling for bootstrap).
14386
143872008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 14388 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 14389
c4cc8b9a
JB
14390 * frame.c (make_initial_frame): Call init_frame_faces(f) in
14391 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
14392
143932008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14394
14395 Changes and additions for NeXTstep windowing system (Cocoa and
14396 GNUstep) support.
14397
14398 * Makefile.in:
14399 * config.in: Support defines and build commands for NS port.
14400 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
14401 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
14402 * dispextern.h: Include nsgui.h and add needed typedefs under NS
14403 windowing.
14404 (struct face): Add synth_ital field.
14405 * dispnew.c: Include nsterm.h when compiling under NS windowing.
14406 (init_display): Initialize Vinitial_window_system to "ns" when so
14407 compiled.
14408 * emacs.c: Include GSConfig.h when compiling under GNUstep.
14409 (display_arg): Use under NS.
14410 (main): Under NS, allocate autorelease pool and handle command line
14411 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
14412 (standard_args): Add NS-specific args.
14413 (shut_down_emacs): Shut down NS terminal if compiled under NS.
14414 * font.c (DEFAULT_ENCODING): New variable.
14415 (font_find_for_lface): Use it.
14416 (syms_of_font): Load syms_of_nsfont under NS.
14417 * font.h: Declare nsfont_driver when compiled under NS.
14418 * fontset.c: When compiling under NS, include nsterm.h.
14419 (fontset_from_font): Autoconstruct fontset under NS.
14420 * frame.c (various): Under NS, include nsterm.h, add Qns window system
14421 symbol, document and use it.
14422 (do_switch_frame): When for_deletion under Cocoa, add
14423 Fraise_frame(Qnil).
14424 (x_set_frame_parameters): Ensure font attribute changes are picked up.
14425 (x_get_arg): Allow "yes" and "no" as boolean values.
14426 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
14427 Qright under Cocoa.
14428 (focus-follows-mouse): Default to 0 under NS.
14429 * frame.h (enum output_method): Add output_ns.
14430 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
14431 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
14432 (FRAME_WINDOW_P): NS-specific definition.
14433 * fringe.c (max_used_fringe_bitmap): Make public.
14434 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
14435 (getloadavg): Use NeXT code under descendant OS's.
14436 * image.c (includes and header section, x_create_bitmap_from_data)
14437 (x_create_bitmap_from_file, free_bitmap_record, image_background)
14438 (image_background_transparent, x_clear_image_1)
14439 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
14440 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
14441 (x_to_xcolors, x_from_xcolors, x_disable_image)
14442 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
14443 other GUIs, including XPM support using code originally written for
14444 Carbon GUI.
14445 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
14446 using NS API.
14447 (image_ascent): Use font metrics macros instead of direct struct field
14448 access.
14449 * keyboard.c (includes): Add nsterm.h when compiling under NS.
14450 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
14451 Also, handle NS as GTK for menu bar purposes.
14452 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
14453 toolkit where they differ.
14454 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
14455 use cachelist, still needed under NS.
14456 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
14457 (struct widget_value): Define it here for menu.c.
14458 * keymap.c (includes): Include modifier internals.
14459 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
14460 NS.
14461 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
14462 support for preferring sequences using certain modifiers, specified by
14463 the FIRSTONLY argument.
14464 * lisp.h (hash_remove): Rename to avoid name clash when compiling
14465 under NS GNUstep implementation.
14466 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
14467 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
14468 * menu.c: Include nsterm.h under NS.
14469 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
14470 (free_menubar_widget_tree_value, update_submenu_strings)
14471 (find_and_call_menu_selection): Treat NS as X and NT.
14472 (find_and_return_menu_selection): New function, used for popup menus.
14473 * nsgui.h:
14474 * nsterm.h:
14475 * nsfns.m:
14476 * nsimage.m:
14477 * nsmenu.m:
14478 * nsselect.m:
14479 * nsterm.m: New files.
14480 * process.c (wait_reading_process_output): Under NS, call ns_select()
14481 instead of plain select().
14482 * syntax.c (char_quoted): Under NS, avoid a crash when called near
14483 beginning of buffer.
14484 * sysselect.h (init_process): Rename when compiling under Cocoa to
14485 avoid name conflict.
14486 * termhooks.h (display_info): Add ns_display_info to union.
14487 * terminal.c (Fterminal_live_p): Add ns to terminal types.
14488 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
14489 COCOA environment.
14490 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
14491 unexec() signature. (Note, this will dump, but the resulting file
14492 crashes; unexosx is used instead; keeping around for reference and
14493 possible aid in getting dump working under GNUstep.)
14494 * w32gui.h (button_type, widget_value): Remove definitions (now in
14495 keyboard.h).
14496 * window.c: Include nsterm.h when compiling under NS.
14497 * xdisp.c (includes): Include nsterm.h when compiling under NS.
14498 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
14499 other GUI windowing systems.
14500 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
14501 GTK.
14502 (x_consider_frame_title): Under NS, set icon type and frame
14503 modified-state indicator; use ns_set_name_as_filename() when using
14504 formatted title.
14505 (update_window_cursor): Make public when compiling under NS.
14506 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
14507 (hourglass_atimer, Vhourglass_delay
14508 * xfaces.c (header section, init_frame_faces, clear_font_table)
14509 (defined_color, unload_color, x_face_list_fonts)
14510 (prepare_face_for_display): Add NS support parallel to other GUIs.
14511 Emulate GCs like other non-X GUIs.
14512 (split_font_name): Don't lowercase font name under NS.
14513 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
14514 under NS.
14515 * s/darwin.h: Add support for compilation under NS.
14516
145172008-07-15 Jason Rumney <jasonr@gnu.org>
14518
14519 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
14520 (w32_show_hourglass): Rename from show_hourglass.
14521 (w32_hide_hourglass): Rename from hide_hourglass.
14522 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
14523 (Vhourglass_delay): Declare extern.
14524 (hourglass_started): Remove.
14525
14526 * xdisp.c (Vhourglass_delay): Remove static.
14527 (hourglass_started, start_hourglass, cancel_hourglass):
14528 Don't include these versions on WINDOWSNT.
14529
145302008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14531
14532 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
14533 variables (formerly in xfns.c).
14534 (show_hourglass, hide_hourglass): New prototypes (same).
14535 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
14536 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
14537 in xfns.c).
14538 (syms_of_xdisp): Declare/initialize display-hourglass,
14539 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
14540 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
14541 formerly in xfns.c.
14542 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14543 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14544 (start_hourglass, cancel_hourglass): Remove.
14545 (show_hourglass, hide_hourglass): Remove prototypes and static
14546 modifiers.
14547 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
14548 hourglass_atimer, hourglass_shown_p declaration/initialization.
14549 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14550 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14551 (start_hourglass, cancel_hourglass): Remove.
14552 (show_hourglass, hide_hourglass): Remove prototypes and static
14553 modifiers.
14554 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
14555 hourglass_atimer, hourglass_shown_p declaration/initialization.
14556 * w32fns.c (display_hourglass_p, Vhourglass_delay)
14557 (DEFAULT_HOURGLASS_DELAY): Remove.
14558 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
14559 hourglass_shown_p declaration/initialization.
14560
145612008-07-14 Jason Rumney <jasonr@gnu.org>
14562
14563 * w32fns.c (w32_get_arg): Remove wrapper function.
14564 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
14565 directly.
14566 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
14567
145682008-07-14 Kenichi Handa <handa@m17n.org>
14569
14570 * xfont.c (xfont_open): Add workaround for X's bug.
14571
145722008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14573
14574 * fontset.c: Include <stdio.h> unconditionally.
14575
145762008-07-13 Michael Albinus <michael.albinus@gmx.de>
14577
14578 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
14579 for filtering.
14580
145812008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
14582
14583 * s/vms.h: Use __GNUC__ instead of _GNUC_.
14584
14585 * m/macppc.h:
14586 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
14587
c4cc8b9a 14588 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
14589 (SPECIAL_EMACS_INT):
14590 * m/ia64.h (SPECIAL_EMACS_INT):
14591 * m/amdx86-64.h (SPECIAL_EMACS_INT):
14592 * s/gnu.h (NLIST_STRUCT):
14593 * s/aix4-2.h (X11R5_INHIBIT_I18N):
14594 * s/gnu-linux.h (LINUX):
14595 * s/msdos.h (HAVE_FACES):
14596 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
14597
14598 * systty.h:
14599 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
14600 anymore.
14601
146022008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
14603
14604 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
14605 always defined as int.
14606
14607 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
14608 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
14609 * s/gnu-linux.h (HAVE_WAIT_HEADER):
14610 * s/freebsd.h (HAVE_WAIT_HEADER):
14611 * s/bsd-common.h (HAVE_UNION_WAIT):
14612 * s/aix4-2.h (HAVE_WAIT_HEADER):
14613 * m/mips.h (HAVE_UNION_WAIT):
14614 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
14615 (COFF, static): Do not define, they are undefined later in the file.
14616
14617 * process.c (update_status): Don't use a union.
14618 (status_convert):
14619 (sigchld_handler): Use int instead of WAITTYPE.
14620
146212008-07-12 Chong Yidong <cyd@stupidchicken.com>
14622
14623 * indent.c (Fvertical_motion): Restore hscroll before moving to
14624 goal column.
14625
146262008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14627
14628 * lisp.h: Remove left over code.
14629
146302008-07-11 Andreas Schwab <schwab@suse.de>
14631
14632 * lisp.h: Fix logic in last change.
14633
14634 * menu.h: New file.
14635 * menu.c: Include it.
14636 * xmenu.c: Likewise.
14637 * Makefile.in: Update dependencies.
14638
146392008-07-11 Kenichi Handa <handa@m17n.org>
14640
14641 * fontset.c (fontset_from_font): Cancel the previous change.
14642
146432008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14644
14645 * lisp.h:
14646 * w32heap.c:
14647 * emacs.c:
14648 * alloc.c: Replace all references of NO_UNION_TYPE with
14649 USE_LISP_UNION_TYPE.
14650
14651 * m/xtensa.h (NO_UNION_TYPE):
14652 * m/vax.h (NO_UNION_TYPE):
14653 * m/template.h (NO_UNION_TYPE):
14654 * m/sparc.h (NO_UNION_TYPE):
14655 * m/mips.h (NO_UNION_TYPE):
14656 * m/macppc.h (NO_UNION_TYPE):
14657 * m/m68k.h (NO_UNION_TYPE):
14658 * m/iris4d.h (NO_UNION_TYPE):
14659 * m/intel386.h (NO_UNION_TYPE):
14660 * m/ibms390x.h (NO_UNION_TYPE):
14661 * m/ibms390.h (NO_UNION_TYPE):
14662 * m/ibmrs6000.h (NO_UNION_TYPE):
14663 * m/ia64.h (NO_UNION_TYPE):
14664 * m/hp800.h (NO_UNION_TYPE):
14665 * m/arm.h (NO_UNION_TYPE):
14666 * m/amdx86-64.h (NO_UNION_TYPE):
14667 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
14668 defining it the same.
14669
146702008-07-10 Chong Yidong <cyd@stupidchicken.com>
14671
14672 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
14673
146742008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
14675
14676 * fileio.c:
50426a04 14677 * sysdep.c:
aac0c6e3
MR
14678 * systty.h:
14679 * m/ibmrs6000.h:
14680 * m/iris4d.h:
14681 * s/aix4-2.h:
14682 * s/freebsd.h:
14683 * s/gnu-linux.h:
14684 * s/hpux10-20.h:
14685 * s/hpux11.h:
14686 * s/netbsd.h:
14687 * s/sol2-3.h:
14688 * s/sol2-4.h:
14689 * s/sol2.h:
14690 * s/usg5-4.h:
14691 * s/vms.h: Remove references to unused variables.
14692
146932008-07-10 Andreas Schwab <schwab@suse.de>
14694
14695 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
14696 pattern before matching the generic family.
14697
146982008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
14699
14700 * unexec.c:
14701 * s/vms.h:
14702 * s/usg5-4-2.h:
14703 * s/sol2-5.h:
14704 * s/freebsd.h:
14705 * s/darwin.h: Remove dead code.
14706
14707 * m/template.h:
14708 * m/sparc.h:
14709 * m/mips.h:
14710 * m/m68k.h:
14711 * m/iris4d.h:
14712 * m/intel386.h:
14713 * m/ibms390x.h:
14714 * m/ibms390.h:
14715 * m/ia64.h:
14716 * m/hp800.h:
14717 * m/arm.h:
14718 * m/amdx86-64.h: Remove dead code and references to unused
14719 and compiler defined symbols.
14720
14721 * unexmips.c:
14722 * unexelf.c: Remove references to desupported systems.
14723
14724 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
14725
14726 * m/powermac.h: Remove boilerplate comments.
14727 (NO_REMAP): Remove unused definition.
14728
14729 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
14730 define them.
14731
147322008-07-10 Kenichi Handa <handa@m17n.org>
14733
14734 * xfont.c (xfont_open): Log the reason of failure.
14735
147362008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
14737
14738 * fontset.c (fontset_get_font_group):
14739 * font.c (font_check_otf): Specify argument types.
14740
147412008-07-09 Kenichi Handa <handa@m17n.org>
14742
14743 * coding.c (detect_coding_utf_8): Set detect_info->found only when
14744 non-ASCII char is found.
14745
14746 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
14747 (reorder_font_vector): Change the arg preferred_family to font.
14748 Prefer the spec matching with font.
14749 (fontset_get_font_group): New function.
14750 (fontset_find_font): Change the format of an element of a realized
14751 fontset. Use fontset_get_font_group.
14752 (fontset_font): Try the current fontset, the default fontset, the
14753 fallbacks of the current fontset, and the fallbacks of the default
14754 fontset in this order.
14755 (face_for_char): Delete the shortcut to use the current font.
14756 (fontset_from_font): Don't set fonts for Latin in the fontset.
14757
14758 * font.h (font_make_object, font_match_p): Adjust prototypes.
14759
14760 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
14761
14762 * font.c (font_make_object): New arg entity and pixelsize.
14763 (font_check_otf_features, font_check_otf): New functions.
14764 (font_match_p): Check :lang, :script, and :otf properties.
14765
14766 * xfont.c (xfont_open): Adjust it for the change of
14767 font_make_object.
14768 (xfont_text_extents): Fix initial setting of metrics.
14769
14770 * ftfont.c (struct ftfont_info): New member index, delete member
14771 fc_charset_idx. Make the member order compatible with struct
14772 xftfont_info.
14773 (fc_charset_table): Change charset names to registry names.
14774 (ftfont_pattern_entity): Delete the args registry and
14775 fc_charset_idx. Change the value of :font-entity property
14776 to (FONTNAME . INDEX). Always set :registry property to
14777 `iso10646-1'.
14778 (struct ftfont_cache_data): New struct.
14779 (ftfont_lookup_cache): New arg for_face.
14780 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
14781 (ftfont_driver): Set the member otf_capability.
14782 (ftfont_get_charset): Adjust it for the change of
14783 fc_charset_table.
14784 (OTF_TAG_SYM): New macro.
14785 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
14786 for the change of fc_charset_table.
14787 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
14788 ftfont_pattern_entity. Add FC_INDEX to objset.
14789 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
14790 and ftfont_pattern_entity.
14791 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
14792 font_make_object, struct ftfont_info.
14793 (ftfont_has_char): Use ftfont_get_fc_charset.
14794 (ftfont_otf_features, ftfont_otf_capability): New functions.
14795 (ftfont_shape): Use ftfont_get_otf.
14796 (ftfont_text_extents): Fix initial setting of metrics.
14797
14798 * xftfont.c (struct xftfont_info): New member ft_size. Make the
14799 member order compatible with struct ftfont_info.
14800 (xftfont_open): Add FC_CHARSET to the pattern. Set
14801 xftfont_info->ft_size. Don't unlock the face. Check BDF
14802 properties if appropriate.
14803 (xftfont_close): Unlock the face.
14804 (xftfont_anchor_point, xftfont_shape): Deleted.
14805 (syms_of_xftfont): Don't set members anchor_point and shape of
14806 xftfont_driver.
14807
14808 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
14809 font_make_object.
14810
14811 * w32font.c (w32font_open): Adjust it for the change of
14812 font_make_object.
14813 (w32font_open_internal): Don't set properties of font_object here.
14814
148152008-07-08 Chong Yidong <cyd@stupidchicken.com>
14816
14817 * macfns.c (x_create_tip_frame):
14818 * w32fns.c (x_create_tip_frame):
14819 * xfns.c (x_create_tip_frame): Pass parameter argument to
14820 face-set-after-frame-default.
14821
14822 * xfaces.c (Finternal_merge_in_global_face): Save merged
14823 attributes for the default face back into the face vector.
14824
148252008-07-08 Andreas Schwab <schwab@suse.de>
14826
14827 * fontset.h: Declare fontset_from_font. Don't declare
14828 new_fontset_from_font and fontset_from_font_name.
14829 * xterm.c: Include "fontset.h".
14830 * Makefile.in (xterm.o): Update dependencies.
14831
148322008-07-08 Glenn Morris <rgm@gnu.org>
14833
14834 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
14835 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
14836
148372008-07-07 Chong Yidong <cyd@stupidchicken.com>
14838
14839 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
14840 (x_set_frame_parameters): Don't bind it.
14841
148422008-07-07 Juanma Barranquero <lekktu@gmail.com>
14843
14844 * w32fns.c (map_w32_filename): Declare extern.
14845
148462008-07-07 Jason Rumney <jasonr@gnu.org>
14847
14848 * w32term.c (WS_EX_LAYERED): Define if not already.
14849
148502008-07-06 Chong Yidong <cyd@stupidchicken.com>
14851
14852 * xfaces.c (set_font_frame_param): Don't try to set the font
14853 parameter if it is still unspecified in the lface.
14854
148552008-07-05 Chong Yidong <cyd@stupidchicken.com>
14856
14857 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
14858 face if it didn't already exist.
14859
14860 * xdisp.c (try_window_id): Give up if word-wrapping is on.
14861
148622008-07-05 Andreas Schwab <schwab@suse.de>
14863
14864 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
14865
148662008-07-05 Chong Yidong <cyd@stupidchicken.com>
14867
14868 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
14869 word-wrapping.
14870 (IT_DISPLAYING_WHITESPACE): New macro.
14871 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
14872 when word-wrapping. Simplify word-wrapping logic. Use correct
14873 pixel positions when saving copies of the iterator.
14874 (display_line): Use proper wrap point if the last character on a
14875 line was preceded by whitespace.
14876
148772008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
14878
14879 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
14880
148812008-07-04 Kenichi Handa <handa@m17n.org>
14882
14883 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
14884
14885 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
14886
148872008-07-02 Jason Rumney <jasonr@gnu.org>
14888
14889 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 14890 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
14891
14892 * xdisp.c (next_element_from_display_vector): Move assignment out
14893 of if statement.
14894
148952008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
14896
14897 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
14898
14899 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
14900 (syms_of_fileio): Initialize and export them.
14901 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
14902
14903 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
14904 (Fsystem_move_file_to_trash): New function.
14905 (syms_of_w32fns): Export it to lisp.
14906
149072008-07-01 Jason Rumney <jasonr@gnu.org>
14908
14909 * w32font.c (w32font_text_extents): Don't count overhang as part
14910 of width.
14911
149122008-06-30 Miles Bader <miles@gnu.org>
14913
14914 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
14915 Add `avoid_cursor_p' field.
14916
14917 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
14918 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
14919 (append_glyph, append_composite_glyph, produce_image_glyph)
14920 (append_stretch_glyph): Initialize avoid_cursor_p.
14921 (get_it_property): Rename from `get_line_height_property'.
14922 (x_produce_glyphs): Use get_it_property.
14923 (handle_line_prefix, push_display_prop): New functions.
14924 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
14925 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
14926 New variables.
14927 (syms_of_xdisp): Initialize them.
14928
149292008-06-30 Kenichi Handa <handa@m17n.org>
14930
14931 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
14932 XftDefaultSubstitute (they are called in XftFontMatch).
14933 (xftfont_open): Fix args to ftfont_font_format.
14934
14935 * ftfont.c (fc_charset_table): New member lang.
14936 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 14937 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
14938 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
14939 (ftfont_open): Fix args to ftfont_font_format.
14940 (ftfont_font_format): New arg filename.
14941
149422008-06-30 Chong Yidong <cyd@stupidchicken.com>
14943
14944 * xfaces.c (Finternal_merge_in_global_face): If default face was
14945 modified, realize it again. Update the font face attribute.
14946
149472008-06-29 Jason Rumney <jasonr@gnu.org>
14948
14949 * w32term.c (x_set_frame_alpha): Fix logic.
14950
149512008-06-29 Kenichi Handa <handa@m17n.org>
14952
14953 * fontset.c (Finternal_char_font): Return font-object instead of
14954 font-name.
14955
14956 * composite.c (get_composition_id): Fix the width calculation for TAB.
14957
149582008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
14959
14960 * indent.c (Fvertical_motion): Properly handle float column arg.
14961
149622008-06-28 Jason Rumney <jasonr@gnu.org>
14963
14964 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
14965 (pfnSetLayeredWindowAttributes): New function pointer.
14966 (w32_initialize): Initialize it when supported.
14967 (x_set_frame_alpha): New function.
14968
14969 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
14970 (w32_frame_parm_handlers): Set alpha handler.
14971
14972 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
14973
149742008-06-27 Jason Rumney <jasonr@gnu.org>
14975
14976 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
14977 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
14978 (w32_to_x_charset, x_to_w32_charset)
14979 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14980 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14981 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14982 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14983 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14984 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14985 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
14986 (Qw32_charset_unicode): Remove.
14987 (syms_of_w32fns): Update for above changes.
14988
14989 * w32font.c (w32_to_x_charset, x_to_w32_charset)
14990 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14991 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14992 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14993 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14994 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14995 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14996 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
14997 (syms_of_w32font): Update for above changes.
14998
149992008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
15000
15001 * s/usg5-4.h: Fix previous change: keep the correct branch of a
15002 removed #if.
15003 (USG_SHARED_LIBRARIES): Remove duplicate definition.
15004
150052008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 15006 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
15007
15008 * makefile.w32-in (LOCAL_FLAGS):
15009 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
15010
15011 * sysdep.c (_spawnlp, _getpid):
15012 Declare with explicit _cdecl instead of _CRTAPI1.
15013
15014 * editfns.c (Fget_internal_run_time):
15015 Check for WINDOWSNT with #ifdef, not #if.
15016
150172008-06-26 Jason Rumney <jasonr@gnu.org>
15018
15019 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
15020
15021 * w32term.c (x_draw_glyph_string_foreground)
15022 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
15023 Use FONT_HANDLE macro.
15024 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
15025
15026 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15027 (uniscribe_encode_char): Use FONT_HANDLE macro.
15028
15029 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
15030 (w32font_text_extents): Use precast w32_font.
15031 (w32font_close): Free cached metrics.
15032 (w32font_open_internal): Allocate space for name on stack.
15033
150342008-06-26 Chong Yidong <cyd@stupidchicken.com>
15035
15036 * xdisp.c (extend_face_to_end_of_line): Fix last change.
15037
150382008-06-26 Jason Rumney <jasonr@gnu.org>
15039
15040 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
15041 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
15042
150432008-06-26 Juanma Barranquero <lekktu@gmail.com>
15044
15045 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
15046
150472008-06-26 Jason Rumney <jasonr@gnu.org>
15048
15049 * w32bdf.c, w32bdf.h: Remove obsolete files.
15050
15051 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
15052
15053 * w32gui.h: Don't include w32bdf.h.
15054 (XCharStruct, enum w32_char_font_type, W32FontStruct):
15055 Remove obsolete font support.
15056
15057 * w32font.h (struct w32font_info): Remove compat_w32_font.
15058 Add hfont member.
15059 (FONT_COMPAT): Remove obsolete macro.
15060
15061 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
15062 (w32font_encode_char, w32font_text_extents): Use new hfont member.
15063 (w32font_open_internal): Remove compat code. Set new hfont member.
15064 (Fx_select_font): Use new hfont member.
15065
15066 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15067 (uniscribe_encode_char): Use new hfont member.
15068
15069 * w32term.c (x_draw_glyph_string_foreground)
15070 (x_draw_composite_glyph_string_foreground): Use new hfont member.
15071 (x_draw_glyph_string): Use metrics in w32font_info.
15072
150732008-06-26 Kenichi Handa <handa@m17n.org>
15074
15075 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
15076
150772008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
15078
15079 * unexnext.c:
15080 * m/ews4800.h:
15081 * m/hp9000s300.h:
15082 * m/ibm370aix.h:
15083 * m/mips-siemens.h:
15084 * m/ncr386.h:
15085 * m/next.h:
15086 * m/pmax.h:
15087 * m/powerpcle.h:
15088 * m/tandem-s2.h:
15089 * s/386bsd.h:
15090 * s/bsd386.h:
15091 * s/bsd4-1.h:
15092 * s/bsd4-2.h:
15093 * s/bsdos2-1.h:
15094 * s/bsdos2.h:
15095 * s/bsdos3.h:
15096 * s/bsdos4.h:
15097 * s/nextstep.h:
15098 * s/ultrix4-3.h:
15099 * s/usg5-0.h:
15100 * s/usg5-2-2.h:
15101 * s/usg5-2.h:
15102 * s/usg5-4-3.h:
15103 * s/ux4800.h:
15104 * s/uxpds.h:
15105 * s/uxpv.h: Remove support for obsolete systems.
15106 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 15107 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
15108 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
15109 Remove, insert contents in s/aix4-2.h.
15110 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
15111 * s/bsd4-3.h: Rename to ...
15112 * s/bsd-common.h: ... this.
15113 * data.c:
15114 * doc.c:
15115 * ecrt0.c:
15116 * emacs.c:
15117 * fileio.c:
15118 * floatfns.c:
15119 * keyboard.c:
15120 * mem-limits.h:
15121 * print.c:
15122 * process.c:
15123 * sysdep.c:
15124 * syssignal.h:
15125 * systty.h:
15126 * syswait.h:
15127 * term.c:
15128 * unexec.c:
15129 * unexelf.c:
15130 * unexhp9k800.c:
15131 * m/hp800.h:
15132 * m/ibmrs6000.h:
15133 * m/mips.h:
15134 * m/vax.h:
15135 * s/darwin.h:
15136 * s/freebsd.h:
15137 * s/gnu.h:
15138 * s/ms-w32.h:
15139 * s/msdos.h:
15140 * s/netbsd.h:
15141 * s/template.h: Remove references to obsolete variables.
15142
15143 * Makefile.in: Add dependencies for all unexec files.
15144 (admindir): Remove unused variable.
15145 (UNEXEC_SRC): Remove references.
15146
151472008-06-25 Chong Yidong <cyd@stupidchicken.com>
15148
15149 * xfns.c (x_default_font_parameter): If Xft is available, first
15150 try Monospace-12 for the default font.
15151
151522008-06-25 Jason Rumney <jasonr@gnu.org>
15153
15154 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
15155
151562008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
15157
15158 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
15159
15160 * buffer.c (syms_of_buffer): Remove default-word-wrap.
15161
151622008-06-25 Juanma Barranquero <lekktu@gmail.com>
15163
15164 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
15165 <scroll-conservatively>: Fix typo in docstring.
15166
15167 * xselect.c (Fx_send_client_event): Doc fix.
15168
151692008-06-25 Kenichi Handa <handa@m17n.org>
15170
15171 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
15172
15173 * font.c (font_parse_fcname): Remove unused variables.
15174 (font_sort_entites): Delete the arg SPEC. Caller changed.
15175 Fix for the case of ! best_only.
15176 (font_delete_unmatched): Check DPI and AVGWIDTH too.
15177
15178 * lisp.h (Fstring_to_unibyte): EXFUN it.
15179
15180 * character.h (str_to_unibyte): Extern it.
15181
15182 * character.c (str_to_unibyte): New function.
15183
15184 * fns.c (Fstring_to_unibyte): New function.
15185 (syms_of_fns): Defsubr it.
15186
151872008-06-24 Kenichi Handa <handa@m17n.org>
15188
15189 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
15190 DPI too.
15191 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
15192
151932008-06-24 Andreas Schwab <schwab@suse.de>
15194
15195 * Makefile.in (${lispsource}loaddefs.el): Rename from
15196 ../lisp/loaddefs.el.
15197 (bootstrap-clean): Do what distclean does but don't remove
15198 Makefile.
15199 (distclean): Depend on bootstrap-clean and remove Makefile.
15200
152012008-06-24 Chong Yidong <cyd@stupidchicken.com>
15202
15203 * buffer.h (struct buffer): New member word_wrap.
15204
15205 * buffer.c (syms_of_buffer): New variables default-word-wrap and
15206 word-wrap.
15207 (init_buffer_once): Initialize them.
15208
15209 * dispextern.h (struct it): Replace bool truncate_lines_p with a
15210 line_wrap enum possessing three possible values.
15211
15212 * termopts.h: Replace truncate_partial_width_windows with
15213 Vtruncate_partial_width_windows.
15214
15215 * dispnew.c (direct_output_for_insert): Avoid direct output when
15216 inserting a space with word wrap on.
15217
15218 * indent.c (compute_motion): Obey integer values of
15219 truncate-partial-width-windows.
15220
15221 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
15222 replacing truncate_partial_width_windows.
15223 (init_iterator): If Vtruncate_partial_width_windows is an integer,
15224 truncate only if the window width is below that integer.
15225 (start_display, resize_mini_window, produce_stretch_glyph)
15226 (display_string, move_it_in_display_line_to): Use line_wrap.
15227 (back_to_previous_visible_line_start, reseat_1): Reset
15228 string_from_display_prop_p.
15229 (display_line): Extend default face to end of line when wrapping.
15230
152312008-06-24 Kim F. Storm <storm@cua.dk>
15232
15233 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
15234 to wrap continued lines at word boundaries.
15235
152362008-06-24 Jason Rumney <jasonr@gnu.org>
15237
15238 * font.c (Ffont_face_attributes): Multiply pixel size before point
15239 conversion to avoid multiplying rounding error.
15240
152412008-06-23 Jason Rumney <jasonr@gnu.org>
15242
15243 * w32term.c (x_draw_glyph_string_background)
15244 (x_draw_glyph_string): Remove old bdf font code.
15245
15246 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
15247
152482008-06-22 Kenichi Handa <handa@m17n.org>
15249
15250 * font.c (font_find_for_lface): Try the adstyle specified in
15251 the property of LFACE_FONT of LFACE (if any).
15252
152532008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 15254 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
15255
15256 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
15257
152582008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
15259
15260 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
15261 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
15262 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
15263 (witness-emacs): Remove.
15264 (lisp, shortlisp): Move loaddefs.el earlier.
15265 (mostlyclean): Forget about witness-emacs.
15266
152672008-06-22 Glenn Morris <rgm@gnu.org>
15268
15269 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
15270 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
15271
152722008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
15273
15274 * Makefile.in (PRECOMP): Remove.
15275 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
15276 (witness-emacs): Run `compile-first'.
15277 (.el.elc): Use the new compile-onefile target.
15278
152792008-06-21 Kenichi Handa <handa@m17n.org>
15280
15281 * xftfont.c (xftfont_open): Handle QCembolden only when
15282 FC_EMBOLDEN is defined.
15283
152842008-06-21 Andreas Schwab <schwab@suse.de>
15285
15286 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
15287 (.el.elc): Likewise.
15288
152892008-06-21 Miles Bader <miles@gnu.org>
15290
15291 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
15292 build dir, not the lisp source dir.
15293
152942008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
15295
15296 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
15297 (bootstrapclean): Remove.
15298 (.el.elc): New rule.
15299 (PRECOMP): New var.
15300 (../lisp/subdirs.el): Remove.
15301 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
15302 (witness-emacs): New target.
15303 (mostlyclean): Remove witness-emacs as well.
15304 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
15305 Add witness-emacs dependency.
15306
153072008-06-20 Chong Yidong <cyd@stupidchicken.com>
15308
15309 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
15310 defined by the font.
15311
153122008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15313
15314 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
15315 (bootstrap-clean): New target that keeps TAGS around.
15316 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
15317 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
15318
153192008-06-20 Jason Rumney <jasonr@gnu.org>
15320
15321 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
15322 Remove obsolete font code.
15323
15324 * w32font.c (font_matches_spec): Use csb bitfield from font signature
15325 to determine language support.
15326
153272008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15328
15329 * sysdep.c (cfsetspeed): New fun extracted from the code.
15330 (cfmakeraw): Move before first use.
15331
153322008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
15333
15334 * sysdep.c (cfmakeraw): Provide fallback implementation.
15335 (serial_configure): Provide fallback implementation of cfsetspeed.
15336
153372008-06-20 Kenichi Handa <handa@m17n.org>
15338
15339 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
15340 the pattern.
15341
15342 * fontset.c (fontset_from_font): Copy font_spec before changing
15343 the elements.
15344
15345 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
15346
153472008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15348
15349 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
15350 for explicit `font' parameters.
15351
15352 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
15353
153542008-06-19 Kenichi Handa <handa@m17n.org>
15355
15356 * frame.c: Include <ctype.h>.
15357 (x_set_font_backend): Allow spacing characters in the X resource
15358 for FontBackend.
15359
153602008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
15361
15362 * w32fns.c, xfns.c (Qfont_param): New var.
15363 (syms_of_w32fns): Initialize it.
15364 (x_default_font_parameter): Record explicit `font' into
15365 `font-parameter'.
15366
153672008-06-18 Kenichi Handa <handa@m17n.org>
15368
15369 * font.c (font_parse_xlfd): Fix previous change.
15370 (font_parse_fcname): Don't use :fc-unknown-spec.
15371 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
15372 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
15373 (font_add_log): Prepend the driver name to the resulting fonts.
15374
15375 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
15376 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
15377 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
15378
15379 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
15380 (QCembolden): New variables.
15381 (syms_of_xftfont): DEFSYM them.
15382 (xftfont_open): Call XftFontMatch. Don't trust the result of
15383 XftTextExtents8 if the pixel_size is less than 5.
15384
153852008-06-18 Andreas Schwab <schwab@suse.de>
15386
15387 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
15388 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
15389
153902008-06-18 Jason Rumney <jasonr@gnu.org>
15391
15392 * w32font.c (w32font_list, w32font_match): Add logging.
15393
15394 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
15395
153962008-06-17 Chong Yidong <cyd@stupidchicken.com>
15397
15398 * font.c (font_parse_fcname): Store divider characters for
15399 unknown-spec list. For known key symbols, intern using correct
15400 symbol name.
15401
154022008-06-17 Kenichi Handa <handa@m17n.org>
15403
15404 * xfaces.c (realize_default_face): If the frame is not on window
15405 system, set the fontset of face to nil.
15406
154072008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
15408
15409 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
15410
154112008-06-16 Juanma Barranquero <lekktu@gmail.com>
15412
15413 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
15414 (build_font_name_from_vector): Delete externs.
15415
15416 * xfaces.c (struct font_name): Don't declare.
15417
154182008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
15419
15420 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
15421
154222008-06-16 Chong Yidong <cyd@stupidchicken.com>
15423
15424 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
15425
154262008-06-16 Juanma Barranquero <lekktu@gmail.com>
15427
15428 * font.c (Ffont_spec): Fix usage in docstring.
15429 (Ffont_face_attributes): Doc fix.
15430
154312008-06-16 Andreas Schwab <schwab@suse.de>
15432
15433 * font.c (Ffont_face_attributes): Fix definition.
15434
154352008-06-16 Jason Rumney <jasonr@gnu.org>
15436
15437 * font.h (font_style_symbolic_from_value): Remove.
15438
15439 * font.c (font_style_symbolic_from_value): Remove.
15440 (font_style_symbolic): Revert to pre 2008-06-13 version.
15441
15442 * w32font.c (w32_to_fc_weight): New function.
15443 (w32font_full_name, logfont_to_fcname): Use it.
15444
154452008-06-16 Kenichi Handa <handa@m17n.org>
15446
15447 * font.c (font_check_object): Delete it.
15448 (font_clear_cache): Check if a font-object is alive.
15449 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
15450 font-object to nil.
15451 (font_close_object): Don't check FONT_CLOSE_OBJECT.
15452 (font_at): Don't call font_check_object.
15453 (Ffont_get): Return a symbol for :weight, :slant, and :width.
15454
154552008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
15456
15457 * puresize.h (BASE_PURESIZE): Increase to 1230000.
15458
154592008-06-16 Chong Yidong <cyd@stupidchicken.com>
15460
15461 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
15462
154632008-06-15 Chong Yidong <cyd@stupidchicken.com>
15464
15465 * font.c (font_parse_fcname): Only one decimal point.
15466 (font_unparse_fcname): Handle data in family and foundry indices
15467 as symbols, not strings.
15468 (font_unparse_gtkname, Ffont_face_attributes): New functions.
15469
15470 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
15471
15472 * font.h (font_unparse_gtkname): Add prototype.
15473
154742008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
15475
15476 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
15477
154782008-06-15 Andreas Schwab <schwab@suse.de>
15479
15480 * font.c (font_update_drivers): Fix crash when no drivers match.
15481
154822008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
15483
15484 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
15485 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
15486
154872008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
15488
15489 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
15490
154912008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
15492
15493 * process.c (Fserial_process_configure, Fprocess_send_eof):
15494 Use EQ to compare Lisp_Objects.
15495
154962008-06-13 Jason Rumney <jasonr@gnu.org>
15497
15498 * w32fns.c (Fw32_select_font): Remove old font API function.
15499
15500 * w32font.c (logfont_to_fcname): New function.
15501 (Fx_select_font): New font dialog function compatible with
15502 GTK/fontconfig version.
15503
15504 * font.c (font_style_symbolic_from_value): New function.
15505 (font_style_symbolic): Use it.
15506
15507 * font.h (font_style_symbolic_from_value): Declare new function.
15508
155092008-06-13 Juanma Barranquero <lekktu@gmail.com>
15510
15511 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
15512 <font-width-table>: Fix typos in docstrings.
15513
155142008-06-13 Daniel Engeler <engeler@gmail.com>
15515
15516 These changes add serial port access.
15517 * process.c: Add HAVE_SERIAL.
15518 (Fdelete_process, Fprocess_status, Fset_process_buffer)
15519 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
15520 (list_processes_1, select_wrapper, Fstop_process)
15521 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
15522 (status_notify): Modify to handle serial processes.
15523 [HAVE_SERIAL] (Fserial_process_configure)
15524 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
15525 New functions.
15526 * process.h (struct Lisp_Process): Add `type'.
15527 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
15528 New functions.
15529 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
15530 serial ports.
b71ac3dd 15531 (serial_open, serial_configure): New functions.
aac0c6e3
MR
15532 * w32.h: Add FILE_SERIAL.
15533 (struct _child_process): Add ovl_read, ovl_write.
15534
155352008-06-13 Kenichi Handa <handa@m17n.org>
15536
15537 * dispextern.h (enum lface_attribute_index): New member
15538 LFACE_FOUNDRY_INDEX.
15539
15540 * font.c (font_score): Delete arg alternate_families. Check only
15541 weight, slant, width, and size. Ignore the difference of alias
15542 style symbols.
15543 (font_sort_entites): Adjust for the above change. Reflect the
15544 order of font-driver to scores.
15545 (font_list_entities): Don't check alternate_familes here.
15546 (font_clear_prop): Handle foundry.
15547 (font_update_lface): Don't parse "foundry-family" form here.
15548 Handle FONT_FOUNDRY_INDEX.
15549 (font_find_for_lface): Likewise. Handle alternate families here.
15550 If registry is nil, try iso8859-1 and ascii-0.
15551 (font_open_for_lface): Pay attention to size in ENTITY.
15552 (font_open_by_name): Simplify by calling font_load_for_lface.
15553 (free_font_driver_list): Delete it.
15554 (font_update_drivers): Preserve the order of backends.
15555 (syms_of_font): Setting of sort_shift_bits adjusted for the change
15556 of font_score and font_sort_entites.
15557 (font_update_sort_order): Likewise.
15558
15559 * xfaces.c (LFACE_FOUNDRY): New macro.
15560 (check_lface_attrs): Check foundry.
15561 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
15562 (merge_face_vectors): Check foundry.
15563 (merge_face_ref): Likewise.
15564 (Finternal_set_lisp_face_attribute): Likewise.
15565 (x_update_menu_appearance): Likewise.
15566 (Finternal_get_lisp_face_attribute): Likewise.
15567 (lface_hash): Likewise.
15568 (lface_same_font_attributes_p): Likewise.
15569 (x_supports_face_attributes_p): Likewise.
15570 (tty_supports_face_attributes_p): Likewise.
15571 (Finternal_set_alternative_font_family_alist): Intern strings.
15572 (Finternal_set_alternative_font_registry_alist): Downcase strings.
15573 (realize_default_face): Set LFACE_FOUNDRY (lface).
15574
15575 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
15576 font-driver at first.
15577
15578 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
15579
155802008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
15581
15582 * lread.c (Fload): Use xfree, not free on saved_doc_string.
15583
155842008-06-12 Jim Meyering <meyering@redhat.com>
15585
15586 Make unexec_free handle NULL the same way free does.
15587 * unexmacosx.c (unexec_free): Ignore a NULL argument.
15588
155892008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
15590
15591 * character.h (CHAR_TO_BYTE_SAFE): New macro.
15592 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
15593 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
15594 (WEAK_ALIAS): Simplify.
15595 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
15596 when searching a unibyte buffer.
15597
155982008-06-12 Chong Yidong <cyd@stupidchicken.com>
15599
15600 * xfns.c (Fx_select_font): Rename from x-font-dialog.
15601
156022008-06-12 Juanma Barranquero <lekktu@gmail.com>
15603
15604 * w32font.c: Include ctype.h.
15605
156062008-06-11 Jason Rumney <jasonr@gnu.org>
15607
15608 * w32font.c (w32font_encode_char): Detect missing glyphs that are
15609 misreported as space.
15610 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
15611 as aliases for registry iso10646-1.
15612
156132008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
15614
15615 * buffer.c (clone_per_buffer_values): Skip `name'.
15616
156172008-06-11 Chong Yidong <cyd@stupidchicken.com>
15618
15619 * font.c (font_parse_fcname): Fix last change; accept decimal
15620 points in font size.
15621
156222008-06-10 Jason Rumney <jasonr@gnu.org>
15623
15624 * w32uniscribe.c (add_opentype_font_name_to_list):
15625 Skip non unicode fonts.
15626
156272008-06-10 Chong Yidong <cyd@stupidchicken.com>
15628
15629 * xfns.c (Fx_font_dialog): New function.
15630
15631 * gtkutil.c (xg_dialog_response_cb): Rename from
15632 xg_file_response_callback.
15633 (pop_down_dialog): Rename from pop_down_file_dialog.
15634 (xg_get_file_name): Callers changed.
15635 (xg_get_font_name): New function.
15636
15637 * gtkutil.h (xg_get_font_name): Insert prototype.
15638
156392008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15640
15641 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
15642 x_underline_minimum_display_offset.
15643 (syms_of_xdisp): Declare it here rather than in xterm.c.
15644 * dispextern.h (underline_minimum_offset): Declare it.
15645 * w32term.c (x_draw_glyph_string): Use it.
15646 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
15647 (syms_of_xterm): Don't declare it any more.
15648 (x_draw_glyph_string): Adjust to the new name.
15649
8719abec 156502008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
15651
15652 * xterm.c (x_underline_minimum_display_offset): New var.
15653 (x_draw_glyph_string): Use it.
15654 (syms_of_xterm): Declare it.
15655
156562008-06-10 Chong Yidong <cyd@stupidchicken.com>
15657
15658 * font.c (font_parse_fcname): Accept GTK-style font names too.
15659
156602008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15661
15662 * dired.c (file_name_completion): Don't return t if the match is exact
15663 but with different capitalization.
15664 * minibuf.c (Ftry_completion): Simplify.
15665
15666 * window.c (Vwindow_point_insertion_type): New var.
15667 (set_window_buffer): Use it.
15668 (syms_of_window): Init and export it to Lisp.
15669
156702008-06-10 Kenichi Handa <handa@m17n.org>
15671
15672 * font.h (font_intern_prop): Prototype adjusted.
15673
15674 * font.c (font_intern_prop): New arg force_symbol.
15675 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
15676 Adjust for the change of font_intern_prop.
15677
15678 * ftfont.c (ftfont_pattern_entity):
15679 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
15680 (w32_registry):
15681 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
15682 the change of font_intern_prop.
15683
156842008-06-09 Juanma Barranquero <lekktu@gmail.com>
15685
15686 * w32menu.c (digest_single_submenu): Declare extern.
15687
156882008-06-09 Jason Rumney <jasonr@gnu.org>
15689
15690 * w32term.c (x_make_frame_visible): Use alternate restore flags.
15691
15692 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
15693 (parse_single_submenu): Remove.
15694 (digest_single_submenu): Remove.
15695 (syms_of_w32menu): Don't initialise variables that have moved
15696 to menu.c.
15697 (set_frame_menubar): Sync with version in xmenu.c.
15698 (w32_menu_show): Sync with xmenu_show in xmenu.c.
15699
15700 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
15701 Make static again.
15702
157032008-06-09 Jason Rumney <jasonr@gnu.org>
15704
15705 Changes to w32 files related to the move of common menu code
15706 to menu.c on 2008-06-08 by Chong Yidong.
15707
15708 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
15709 defs to w32gui.h.
15710 (single_keymap_panes, push_menu_item, push_menu_pane):
15711 Make globally visible.
15712
15713 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
15714 (local_free, malloc_widget_value, free_widget_value)
15715 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
15716 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
15717 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
15718 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
15719 (menu_items, menu_items_allocated, menu_items_used)
15720 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
15721 (init_menu_items, finish_menu_items, discard_menu_items)
15722 (grow_menu_items, push_submenu_start, push_submenu_end)
15723 (push_left_right_boundary, push_menu_pane, push_menu_item)
15724 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
15725 (free_menubar_widget_tree_value, parse_single_submenu)
15726 (update_submenu_strings): Remove functions.
15727 (xmalloc_widget_value): Remove and declare extern.
15728
15729 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
15730 (OBJ1): Build it.
15731
15732 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
15733 (local_heap, local_alloc, local_free, malloc_widget_value)
15734 (free_widget_value): Define here.
15735
157362008-06-09 Kenichi Handa <handa@m17n.org>
15737
15738 * font.h (Qascii_0): Extern it.
15739
15740 * font.c (Qascii_0): New variable.
15741 (syms_of_font): DEFSYM it.
15742 (font_open_by_name): If the registry "iso8859-1" fails, try also
15743 "ascii-0".
15744
15745 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
15746
157472008-06-08 Kenichi Handa <handa@m17n.org>
15748
15749 * .gdbinit (xfont): New command.
15750
157512008-06-08 Andreas Schwab <schwab@suse.de>
15752
15753 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
15754 * Makefile.in (menu.o): Update dependencies.
15755
15756 * Makefile.in (obj): Always add menu.o.
15757 * emacs.c (main): Always call syms_of_menu.
15758 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
15759
157602008-06-08 Chong Yidong <cyd@stupidchicken.com>
15761
15762 * Makefile.in: Compile menu.c.
15763
15764 * lisp.h: Declare syms_of_menu.
15765
15766 * emacs.c (main): Call syms_of_menu.
15767
15768 * keyboard.h: Relocate platform-independent menu definitions from
15769 xmenu.c.
15770
15771 * menu.c: New file. Relocate platform-independent menu
15772 definitions from xmenu.c. Suggested by Adrian Robert.
15773
15774 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 15775 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
15776 (menu_items_used, menu_items_n_panes)
15777 (menu_items_submenu_depth): Move to keyboard.h.
15778 (init_menu_items, finish_menu_items, unuse_menu_items)
15779 (discard_menu_items, restore_menu_items, save_menu_items)
15780 (grow_menu_items, push_submenu_start, push_submenu_end)
15781 (push_left_right_boundary, push_menu_pane, push_menu_item)
15782 (keymap_panes, single_keymap_panes, single_menu_item)
15783 (list_of_panes, list_of_items, find_and_call_menu_selection)
15784 (xmalloc_widget_value, free_menubar_widget_value_tree)
15785 (parse_single_submenu, digest_single_submenu)
15786 (update_submenu_strings): Move to menu.c.
15787
157882008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
15789
15790 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
15791
157922008-06-06 Miles Bader <miles@gnu.org>
15793
15794 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
15795 face, not frame default.
15796
157972008-06-05 Martin Rudalics <rudalics@gmx.at>
15798
15799 * window.c (pop_up_windows, pop_up_frames)
15800 (display_buffer_reuse_frames, Vpop_up_frame_function)
15801 (Vdisplay_buffer_function, Veven_window_heights)
15802 (Vspecial_display_buffer_names, Vspecial_display_regexps)
15803 (Vspecial_display_function, Vsame_window_buffer_names)
15804 (Vsame_window_regexps, split_height_threshold)
15805 (Vsplit_window_preferred_function): Move those vars to window.el.
15806 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
15807 (Fdisplay_buffer): Move those functions to window.el.
15808 (syms_of_window): Remove corresponding declarations.
15809 (display_buffer): New function.
15810 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
15811 * dispnew.c (Flast_nonminibuf_frame): New function.
15812 * buffer.c (Fpop_to_buffer): Move to window.el.
15813
158142008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15815
15816 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
15817
158182008-06-05 Kenichi Handa <handa@m17n.org>
15819
15820 * coding.c (detect_coding): Fix previous change.
15821 (detect_coding_system): Likewise.
15822
158232008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15824
15825 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
15826
15827 * keymap.c (Vminibuffer_local_filename_must_match_map):
15828 Rename from Vminibuffer_local_must_match_filename_map.
15829 (syms_of_keymap):
15830 * minibuf.c (Fcompleting_read): Adjust accordingly.
15831 * commands.h: Rename declaration as well.
15832
158332008-06-05 Kenichi Handa <handa@m17n.org>
15834
15835 * font.c (Ffont_spec): Don't use font_parse_family_registry for
15836 family name.
15837 (Ffont_put): Likewise.
15838
15839 * fontset.c (fontset_find_font): Call font_open_for_lface with the
15840 current font-spec.
15841
15842 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
15843 is unspecified.
15844
15845 * xfaces.c (realize_x_face): If the font-related face attributes
15846 are the same as those of default face, realize a new fontset from
15847 default->fontset.
15848 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
15849
158502008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15851
15852 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
15853 (move_it_in_display_line): New wrapper.
15854
15855 * window.c (window_scroll_pixel_based_preserve_x)
15856 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
15857 (window_scroll_pixel_based, window_scroll_line_based):
15858 Use them to preserve column positions.
15859 (syms_of_window): Initialize them.
15860
15861 * indent.c (Fvertical_motion): Extend first arg to allow passing an
15862 (HPOS . VPOS) pair.
15863
15864 * dispextern.h (move_it_in_display_line): Declare.
15865
158662008-06-05 Juanma Barranquero <lekktu@gmail.com>
15867
15868 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
15869 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
15870 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
15871
158722008-06-04 Juanma Barranquero <lekktu@gmail.com>
15873
15874 * window.c (Fset_window_parameter): Doc fix.
15875 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
15876
158772008-06-04 Joakim Verona <joakim@verona.se>
15878
15879 * window.h (struct window): Add new member window_parameters.
15880
15881 * window.c (Fwindow_parameters, Fwindow_parameter)
15882 (Fset_window_parameter): New defuns.
15883 (syms_of_window): Defsubr the new defuns.
15884 (make_window): Initialize window_parameters to nil.
15885
158862008-06-04 John Paul Wallington <jpw@pobox.com>
15887
15888 * eval.c (Fdefmacro): Doc fix.
15889
158902008-06-04 Kenichi Handa <handa@m17n.org>
15891
15892 * coding.c (detect_coding): Fix handling of coding->head_ascii.
15893 Be sure to call setup_coding_system when we find a proper coding system.
15894 (detect_coding_system): Fix handling of coding->head_ascii.
15895
158962008-06-03 Andreas Schwab <schwab@suse.de>
15897
15898 * font.c (font_prop_validate_spacing): Fix last change.
15899
159002008-06-03 Kenichi Handa <handa@m17n.org>
15901
15902 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
15903 (font_parse_fcname): Fix handling of unknown key.
15904
15905 * xfont.c (xfont_list): Try an alias.
15906
15907 * charset.c (char_charset): Return NULL if the arg charset_list is
15908 specified and C doesn't belong to any of them.
15909
159102008-06-02 Chip Coldwell <coldwell@redhat.com>
15911
15912 * font.c (font_pixel_size): Don't take cdr of an integer.
15913
159142008-06-02 Jim Meyering <meyering@redhat.com>
15915
15916 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
15917 * alloc.c (xfree): Return right away for a NULL arg.
15918 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
15919 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
15920 * mac.c (create_apple_event_from_event_ref): Likewise.
15921 (create_apple_event_from_drag_ref, cfstring_create_normalized):
15922 Likewise.
15923 * doprnt.c (doprnt1): Likewise.
15924 * frame.c (frame): Likewise.
15925 * keyboard.c (wipe_kboard): Likewise.
15926 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
15927 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
15928 * term.c (tty_default_color_capabilities, maybe_fatal)
15929 (delete_tty): Likewise.
15930 * w16select.c (string): Likewise.
15931 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
15932 * w32bdf.c (w32_free_bdf_font): Likewise.
15933 * w32fns.c (w32_unload_font): Likewise.
15934 * w32font.c (w32font_close): Likewise.
15935 * window.c (size_window): Likewise.
15936 * xselect.c (receive_incremental_selection): Likewise.
15937 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
15938 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
15939 * w32.c (stat): Likewise.
15940
15941 Remove useless if-before-free tests.
15942 * editfns.c (Fset_time_zone_rule): Likewise.
15943 * lread.c (nosuffix): Likewise.
15944 * ralloc.c (get_bloc): Likewise.
15945 * regex.c (reg_free): Likewise.
15946 * xftfont.c (xftfont_open, xftfont_close): Likewise.
15947 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
15948 * xsmfns.c (smc_save_yourself_CB): Likewise.
15949
159502008-06-02 Kenichi Handa <handa@m17n.org>
15951
15952 * font.c (font_find_for_lface): Handle float font size.
15953 (font_open_for_lface): Likewise.
15954
15955 * xfaces.c (x_supports_face_attributes_p): Check face->font before
15956 comparing the properties.
15957
159582008-06-01 Jason Rumney <jasonr@gnu.org>
15959
15960 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
15961 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
15962 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
15963 Don't add empty script list.
15964 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
15965
159662008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
15967
15968 * Makefile.in (dot, dotdot): Remove, update users.
15969 ".." has been used elsewhere in the file for a long time.
15970 (LIBXT_STATIC): Remove conditional based on unused variable.
15971
159722008-06-01 Miles Bader <miles@gnu.org>
15973
15974 * xfaces.c (Vface_remapping_alist): New variable.
15975 (syms_of_xfaces): Initialize it.
15976 (enum named_merge_point_kind): New type.
15977 (struct named_merge_point): Add `named_merge_point_kind' field.
15978 (push_named_merge_point): Make cycle detection respect different
15979 named-merge-point kinds.
15980 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
15981 Remove face-name alias resolution.
15982 (lface_from_face_name): New definition using
15983 `lface_from_face_name_no_resolve'.
15984 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
15985 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
15986 (get_lface_attributes): New definition that layers face-remapping on
15987 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
15988 (lookup_basic_face): New function.
15989 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
15990 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
15991 `get_lface_attributes'.
15992 (face_at_buffer_position): Use `lookup_basic_face' to lookup
15993 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
15994 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
15995
15996 * xdisp.c (init_iterator): Pass base_face_id through
15997 `lookup_basic_face' when we actually use it as a face-id.
15998 (handle_single_display_prop): Use `lookup_basic_face' to lookup
15999 DEFAULT_FACE_ID.
16000
16001 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
16002 lookup the initial face-id.
16003
16004 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
16005
160062008-06-01 Juanma Barranquero <lekktu@gmail.com>
16007
16008 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
16009 (Fremove_text_properties): Fix typos in docstrings.
16010
160112008-05-31 Kenichi Handa <handa@m17n.org>
16012
16013 * font.c (font_list_entities): Fix the car part of data to be
16014 stored in the cache.
16015
16016 * ftfont.c (ftfont_font_format): Don't use strcasestr.
16017
160182008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
16019
16020 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
16021 Add a `test' argument so another predicate than `equal' can be used.
16022 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
16023 (map_char_table): Remove unused vars `c' and `i'.
16024 * lisp.h (Foptimize_char_table): Adjust declaration.
16025 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
16026
160272008-05-30 Kenichi Handa <handa@m17n.org>
16028
16029 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
16030 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
16031 defined.
16032
160332008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
16034
16035 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
16036 (Fmake_variable_frame_local): Disallow mixing buffer-local and
16037 frame-local settings for the same variable.
16038
160392008-05-30 Kenichi Handa <handa@m17n.org>
16040
16041 * fontset.c (Ffont_info): Move to font.c.
16042 (syms_of_fontset): Delete defsubr of Sfont_info.
16043
16044 * font.c (font_style_to_value, font_score): Delete casting of the
16045 args to xstcasecmp.
16046 (register_font_driver): Increment num_font_drivers only when
16047 registering the driver globally.
16048 (Ffont_info): Move from fontset.c. Handle a font object too.
16049 (syms_of_font): Defsubr Sfont_info.
16050
160512008-05-29 Kenichi Handa <handa@m17n.org>
16052
16053 * coding.h (enum define_coding_utf8_arg_index): New enum.
16054 (enum coding_attr_index): Change coding_attr_utf_16_bom to
16055 coding_attr_utf_bom.
16056 (enum utf_bom_type): Rename from utf_16_bom_type.
16057 (struct utf_16_spec): Adjust for the above change.
16058 (struct coding_system): Add utf_8_bom in `spec' union.
16059
16060 * coding.c (CODING_UTF_8_BOM): New macro.
16061 (enum coding_category): Delete coding_category_utf_8, add
16062 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
16063 coding_category_utf_8_sig.
16064 (CATEGORY_MASK_UTF_8): Delete it.
16065 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
16066 (CATEGORY_MASK_UTF_8_SIG): New macros.
16067 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
16068 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
16069 CATEGORY_MASK_UTF_8_SIG.
16070 (CATEGORY_MASK_UTF_8): New macro.
16071 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
16072 (detect_coding_utf_8): Check BOM.
16073 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
16074 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
16075 (encode_coding_utf_16): Likewise.
16076 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
16077 (detect_coding, detect_coding_system): Handle utf-8-auto.
16078 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
16079 (syms_of_coding): Fix setting up of Vcoding_category_table.
16080
160812008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
16082
16083 * process.c (Faccept_process_output): If `millisec' is non-nil,
16084 `seconds' default to 0.
16085 (wait_reading_process_output): Also return non-nil if we read output
16086 from a non-running process.
16087
160882008-05-29 Jason Rumney <jasonr@gnu.org>
16089
16090 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
16091 `raster' specified.
16092 (add_font_entity_to_list): Allow non-opentype truetype fonts back
16093 in the uniscribe backend, but disallow any font that has no
16094 unicode subrange support.
16095
160962008-05-29 Juanma Barranquero <lekktu@gmail.com>
16097
16098 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
16099 Fix typos in docstrings.
16100
161012008-05-29 Kenichi Handa <handa@m17n.org>
16102
16103 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
16104 (Fx_family_fonts): Set frame correctly.
16105
161062008-05-28 Jason Rumney <jasonr@gnu.org>
16107
16108 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
16109
161102008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
16111
16112 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
16113 calling build_annotations.
16114
161152008-05-28 Juanma Barranquero <lekktu@gmail.com>
16116
16117 * coding.c (Fdecode_coding_region, Fencode_coding_region)
16118 (Fencode_coding_string):
16119 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
16120 <latin-extra-code-table>: Fix typos in docstrings.
16121 (syms_of_coding) <coding-system-alist>: Doc fix.
16122 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
16123
161242008-05-28 Kenichi Handa <handa@m17n.org>
16125
16126 * fontset.c (Ffont_info): Don't call font_close_object.
16127
16128 * font.c (font_parse_family_registry): Use Ffont_put to validate
16129 foundry and family.
16130 (font_delete_unmatched): Don't check spacing.
16131 (font_list_entities): Add spacing to the spec to list fonts.
16132
16133 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
16134 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
16135
16136 * coding.c (encode_coding_raw_text): Fix previous change.
16137 (encode_coding_object): When the dst_object is a buffer and is
16138 different from src_object, move gap to PT.
16139
161402008-05-27 Chong Yidong <cyd@stupidchicken.com>
16141
16142 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
16143
161442008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
16145
16146 * coding.c (encode_coding_raw_text): Set coding->produced_char for
16147 all branches. Compute it differently.
16148
16149 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
16150
161512008-05-27 Juanma Barranquero <lekktu@gmail.com>
16152
16153 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
16154 into "else if () ... else ...".
16155
161562008-05-27 Jason Rumney <jasonr@gnu.org>
16157
16158 * w32font.c (w32font_open_internal): Determine if glyph indices
16159 are likely to work here.
16160
161612008-05-27 Chong Yidong <cyd@stupidchicken.com>
16162
16163 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
16164 draw overlap glyphs with appropriate highlighting.
16165
161662008-05-27 Kenichi Handa <handa@m17n.org>
16167
16168 * xfont.c (xfont_open): Fix calculation of font->average_width.
16169
161702008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
16171
16172 * casefiddle.c (casify_object): Try to guess better whether the
16173 argument is a byte or a char.
16174
161752008-05-26 Andreas Schwab <schwab@suse.de>
16176
16177 * xselect.c (x_reply_selection_request): Properly handle format == 32.
16178 Always send multiples of format size.
16179
16180 * xterm.c (x_set_frame_alpha): Fix type mismatch.
16181
161822008-05-26 Jason Rumney <jasonr@gnu.org>
16183
16184 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
16185 (compute_metrics): Don't set failure if we just cleared the cache.
16186 (w32_weight_table): Remove unused variable.
16187 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
16188 backwards compatibility.
16189
161902008-05-25 Kenichi Handa <handa@m17n.org>
16191
16192 * w32term.c (x_draw_glyph_string):
16193 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
16194
16195 * xfaces.c: Delete unused function prototypes.
16196 (xstrlwr, font_frame): Delete them.
16197 (clear_face_cache): Delete unused variable.
16198
16199 * xftfont.c (xftfont_open): Delete unused variable.
16200 If underline_thickness is not 1, adjust underline_position.
16201
16202 * ftxfont.c (ftxfont_open): Delete unused variable.
16203
16204 * fontset.c (face_for_char): Optimize for the case of no charset
16205 property.
16206
16207 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
16208 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
16209 (otf_open, font_otf_capability, generate_otf_features)
16210 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16211 Comment out by surrounding "#if 0" and "#endif" for the moment.
16212 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
16213 (syms_of_font): Codes for accessing above commented out.
16214
162152008-05-24 Eli Zaretskii <eliz@gnu.org>
16216
16217 * w32proc.c: Include dispextern.h.
16218
16219 * w32.c: Include dispextern.h.
16220
162212008-05-23 Juanma Barranquero <lekktu@gmail.com>
16222
16223 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
16224 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
16225 Fix typos in docstrings.
16226
162272008-05-23 Jason Rumney <jasonr@gnu.org>
16228
16229 * xsmfns.c: Remove includes that are already included by config.h.
16230
162312008-05-23 Kenichi Handa <handa@m17n.org>
16232
16233 * charset.c (Qemacs, charset_emacs): New variables.
16234 (char_charset): Fix for non-Unicode characters.
16235 (syms_of_charset): Define charset_emacs.
16236
16237 * w32term.c (x_draw_glyph_string): Be sure to update
16238 s->underline_thickness and s->underline_position. Be sure to draw
16239 underline within the current line area.
16240
16241 * xterm.c (x_draw_glyph_string): Be sure to update
16242 s->underline_thickness and s->underline_position. Be sure to draw
16243 underline within the current line area.
16244
16245 * fontset.c: Delete unused variables and add casting for char *
16246 throughout the file.
16247 (fontset_font): Try the fallback fonts of the current fontset
16248 before consulting the default fontset.
16249
16250 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
16251
16252 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
16253
162542008-05-22 Jason Rumney <jasonr@gnu.org>
16255
16256 * font.c: Don't include strings.h.
16257
16258 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
16259
16260 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
16261 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
16262 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
16263 to call xstrcasecmp.
16264
16265 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
16266
16267 * fontset.c (fs_query_fontset): Use xstrcasecmp.
16268
16269 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
16270
16271 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
16272
162732008-05-22 Kenichi Handa <handa@m17n.org>
16274
16275 * puresize.h (BASE_PURESIZE): Increase to 1220000.
16276
16277 * font.c (font_prop_validate_style): Adjust for the format
16278 change of font_style_table.
16279
16280 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
16281 two args.
16282
16283 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
16284 two args.
16285
162862008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
16287
16288 * minibuf.c (keys_of_minibuf): Delete.
16289 * lisp.h (keys_of_minibuf): Delete.
16290 * emacs.c (main): Don't call keys_of_minibuf.
16291
162922008-05-22 Kenichi Handa <handa@m17n.org>
16293
16294 * ftfont.c (ftfont_resolve_generic_family): Rename from
16295 ftfont_list_generic_family. Return a single family for each
16296 generic family.
16297 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
16298 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
16299 Call font_add_log.
16300 (ftfont_match): Call font_add_log.
16301
16302 * font.h (Ffont_xlfd_name): EXFUN adjusted.
16303 (FONT_DEBUG): Define it.
16304 (font_add_log): Extern it.
16305 (font_assert): Rename from xassert.
16306
16307 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
16308 (xfont_list_family): Call font_add_log.
16309 (xfont_match): Likewise.
16310 (memq_no_quit): Delete.
16311
16312 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
16313 call of Ffont_xlfd_name.
16314
16315 * xfaces.c (struct table_entry, slant_table, weight_table)
16316 (swidth_table): Move to font.c.
16317
16318 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
16319 xassert are changed to font_assert. Delete many unused variables.
16320 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
16321 New variables.
16322 (struct table_entry): Move from xfaces.c and modified.
16323 (weight_table, slant_table, width_table): Move from xfaces.c and
16324 contents adjusted for the change of struct table_entry.
16325 (font_style_to_value, font_style_symbolic): Adjust for the
16326 format change of font_style_table.
16327 (font_parse_family_registry): Don't overwrite existing foundry and
16328 family of font_spec.
16329 (font_score): Fix calculation of diff for sizes.
16330 (font_sort_entites): Call font_add_log.
16331 (font_delete_unmatched): Return a newly created list.
16332 (font_list_entities): Fix previous change. Call font_add_log.
16333 (font_matching_entity, font_open_entity, font_close_entity):
16334 Call font_add_log.
16335 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
16336 (Finternal_set_font_style_table): Delete.
16337 (BUILD_STYLE_TABLE): New macro.
16338 (build_style_table): New function.
16339 (Vfont_log, font_log_env_checked): New variables.
16340 (font_add_log): New function.
16341 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
16342 Declare Lisp variables "font-weight-table", "font-slant-table",
16343 "font-width-table", and "font-log". Initialize font_style_table.
16344
163452008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
16346
16347 * xterm.c (x_set_frame_alpha): Move declarations before statements.
16348
163492008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 16350 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
16351
16352 * frame.c (Qalpha): Add a new frame parameter `alpha'.
16353 (Vframe_alpha_lower_limit): New variable.
16354 (x_set_alpha): New function.
16355
16356 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
16357
16358 * xfns.c (x-create-frame, Qalpha):
16359 Initialize the frame parameter `alpha'.
16360 * xterm.c (OPAQUE, OPACITY): New.
16361 (x_set_frame_alpha): New function.
16362 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
16363
16364 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
16365 * w32fns.c (w32_frame_parm_handlers): Likewise.
16366
163672008-05-20 Jason Rumney <jasonr@gnu.org>
16368
16369 * w32font.c (add_font_entity_to_list): Don't add non-opentype
16370 truetype fonts to opentype list.
16371
163722008-05-20 Juanma Barranquero <lekktu@gmail.com>
16373
16374 * fontset.c (Ffontset_info): Doc fix.
16375 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
16376 <ignore-relative-composition>: Fix typos in docstrings.
16377
16378 * font.c (syms-of-font) <font-encoding-alist>:
16379 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
16380 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
16381 (Ffont_otf_alternates): Doc fixes.
16382
163832008-05-20 Kenichi Handa <handa@m17n.org>
16384
16385 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
16386 font.h through out the file.
16387 (FONT_DRIVERS): Rename from FONTOBJ.
16388 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
16389 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
16390
16391 * emacs.c (main): Call syms_of_font unconditionally.
16392
16393 * font.h (find_font_encoding): Extern it.
16394
16395 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
16396 fontset.c.
194d44e7 16397 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
16398 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
16399 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
16400 only when HAVE_WINDOW_SYSTEM is defined.
16401 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
16402 when HAVE_WINDOW_SYSTEM is defined.
16403
16404 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
16405 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
16406
16407 * xfaces.c: Include font.h unconditionally.
16408 (merge_face_ref, merge_face_vectors)
16409 (Finternal_set_lisp_face_attribute): Cancel the previous change.
16410
164112008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
16412
16413 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
16414 indirect_variable.
16415 * eval.c (lisp_indirect_variable): New fun.
16416 (Fuser_variable_p): Use it.
16417
164182008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
16419
16420 * lisp.h (indirect_variable):
16421 * data.c (indirect_variable, let_shadows_buffer_binding_p):
16422 Use Lisp_Symbol pointers rather than Lisp_Object.
16423 Adjust callers.
16424 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
16425 To this end, change calling-convention.
16426
16427 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
16428 if some non-hidden buffers are selected by string&pred.
16429
164302008-05-19 Chong Yidong <cyd@stupidchicken.com>
16431
16432 * process.c (wait_reading_process_output): Always check status
16433 when in batch mode.
16434
164352008-05-19 Kenichi Handa <handa@m17n.org>
16436
16437 * font.c (font_list_entities): Fix handling of cache.
16438 (font_matching_entity): Likewise.
16439
16440 * ftfont.c (cs_iso8859_1): Delete.
16441 (ft_face_cache): New variable.
16442 (struct ftfont_info): New member fc_charset_idx.
16443 (ftfont_build_basic_charsets): Delete.
16444 (fc_charset_table): New variable.
16445 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
16446 . FC_CHARSET_IDX) as :font-entity property in the font entity.
16447 Callers changed.
16448 (ftfont_lookup_cache, ftfont_get_charset): New functions.
16449 (ftfont_spec_pattern): New argument fc_charset_idx.
16450 Check registry more rigidly. Change callers.
16451 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
16452 change of :font-entity property of the font.
16453
16454 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
16455 property of the font.
16456
164572008-05-18 Juanma Barranquero <lekktu@gmail.com>
16458
16459 * coding.c (Fcoding_system_p): Rename argument to match docstring.
16460 (Funencodable_char_position, Fcheck_coding_systems_region)
16461 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
16462 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
16463 (Ffind_operation_coding_system, Fset_coding_system_priority)
16464 (Fcoding_system_eol_type): Doc fixes.
16465
164662008-05-17 Glenn Morris <rgm@gnu.org>
16467
16468 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
16469
164702008-05-16 Eli Zaretskii <eliz@gnu.org>
16471
16472 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
16473 and st_gid.
16474
16475 * frame.c (Fdelete_frame): Don't call font_update_drivers if
16476 HAVE_WINDOW_SYSTEM is not defined.
16477
16478 * xfaces.c (merge_face_ref, merge_face_vectors)
16479 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
16480 HAVE_WINDOW_SYSTEM is defined.
16481 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
16482
164832008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
16484
16485 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
16486
164872008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16488
16489 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
16490
164912008-05-15 Kenichi Handa <handa@m17n.org>
16492
16493 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
16494 preference.
16495
164962008-05-15 Glenn Morris <rgm@gnu.org>
16497
16498 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
16499
165002008-05-15 Chong Yidong <cyd@stupidchicken.com>
16501
16502 * fns.c (init_fns): Don't initialize weak_hash_tables here.
16503 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
16504
16505 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
16506
165072008-05-15 Kenichi Handa <handa@m17n.org>
16508
16509 * ftfont.c (ftfont_list): Downcase family name to check generic
16510 families.
16511
16512 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
16513 font-spec for QCfont value.
16514
16515 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
16516 buffer. Check the return value of it.
16517
165182008-05-14 Jason Rumney <jasonr@gnu.org>
16519
16520 * w32term.c (w32_get_glyph_overhangs): Remove.
16521 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
16522
165232008-05-14 Kenichi Handa <handa@m17n.org>
16524
16525 * font.c (font_prop_validate): Make nil a valid value.
16526 (font_clear_cache): Check if the cached vector of entities is nil
16527 or not.
16528
165292008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16530
16531 * emacs.c (main_thread): Conditionalize on
16532 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16533 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
16534
16535 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
16536 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
16537 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16538
165392008-05-14 Kenichi Handa <handa@m17n.org>
16540
16541 * coding.c (detect_coding_iso_2022): Ignore a coding category that
16542 has no corresponding coding system.
16543
165442008-05-14 Jason Rumney <jasonr@gnu.org>
16545
16546 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
16547
16548 * w32font.h (w32font_open_internal): Update declaration.
16549
16550 * w32font.c (w32font_open_internal): Change last argument from
16551 w32font_info struct to font object. Fill in font object from
16552 font_entity. Get Outline metrics if possible. Use them to
16553 calculate underline position and thickness. Use xlfd name as name
16554 property. Don't set codepage.
16555 (w32font_open): Pass font_object to w32font_open_internal. Don't
16556 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
16557 (w32font_draw): Use s->font.
16558 (clear_cached_metrics): Don't clear non-existent blocks.
16559
16560 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
16561 font was not found.
16562 (x_draw_glyph_string): Use underline position and thickness from font.
16563
16564 * w32uniscribe.c (uniscribe_open): Pass font_object to
16565 w32font_open_internal.
16566
165672008-05-14 Kenichi Handa <handa@m17n.org>
16568
16569 These changes are to delete all legacy font-handling codes, and
16570 make Emacs use only font-backends.
16571
16572 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
16573 (frame.o, image.o, print.o): Depend on $(FONTSRC).
16574
16575 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
16576
16577 * charset.h (Vcharset_non_preferred_head)
16578 (Vcurrent_iso639_language): Extern them.
16579
16580 * charset.c (Vcharset_non_preferred_head): New variable.
16581 (Vcurrent_iso639_language): New variable.
16582 (syms_of_charset): Declare it as a Lisp variable.
16583 (char_charset): Don't check non preferred charsets. As a last
16584 resort, return charset_unicode.
16585 (Fset_charset_priority): Update Vcharset_non_preferred_head.
16586
16587 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
16588 conditionals. Don't check enable_font_backend. Delete all codes
16589 used only when USE_FONT_BACKEND is not defined.
16590
16591 * dispextern.h (struct glyph_string): Change type of `font' to
16592 `struct font *'.
16593 (struct glyph_string): New member underline_position and
16594 underline_thickness.
16595 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
16596 (struct face): Change type of `font' to `struct font *'. Remove
16597 members `font_name', `font_info_id'.
16598 (per_char_metric, encode_char): Delete externs.
16599 (calc_pixel_width_or_height): Adjust the prototype.
16600
16601 * emacs.c (enable_font_backend): Delete extern.
16602 (main): Don't set enable_font_backend. Don't check the command
16603 line argument "-disable-font-backend".
16604
16605 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
16606 (enum font_property_index): New members FONT_DPI_INDEX,
16607 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
16608 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
16609 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
16610 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
16611 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
16612 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
16613 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
16614 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
16615 (struct font_spec, struct font_entity): New structs.
16616 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
16617 (struct font): Many members from old "struct font_info" moved to
16618 here. Members font and entity deleted.
16619 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
16620 the new font-related objects.
16621 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
16622 (CHECK_FONT_GET_OBJECT): Likewise.
16623 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
16624 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
16625 (struct font_driver): New members case_sensitive anc check. Type
16626 of the member list and open changed.
16627 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
16628 (font_symbolic_width, font_find_object, font_get_spec)
16629 (font_set_lface_from_name): Delete extern.
16630 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
16631
16632 * font.c: Include <strings.h>.
16633 (enable_font_backend): Delete it.
16634 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
16635 (CHECK_VALIDATE_FONT_SPEC): Delete it.
16636 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
16637 (null_string): Delete it.
16638 (null_vector): Make it static.
16639 (font_family_alist): Delete it.
16640 (Qnormal): Extern it.
16641 (QCextra, QClanguage): Delete it.
16642 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
16643 (font_make_spec, font_make_entity, font_make_object)
16644 (font_intern_prop): Renamed from intern_downcase. Don't downcase
16645 the string. Callers changed.
16646 (font_pixel_size): Adjusted for the format change of font-related
16647 objects.
16648 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
16649 (font_style_to_value, font_style_symbolic): New function.
16650 (build_font_family_alist): Delete it.
16651 (font_registry_charsets): Use Fassoc_string instead of
16652 assq_no_quit.
16653 (font_prop_validate_symbol): Don't return null_string.
16654 (font_prop_validate_style): Adjusted for the change of
16655 style-related values in a font vector.
16656 (font_property_table): Delete entries for QClanguage and
16657 QCantialias, add entries for QCavgwidth.
16658 (get_font_prop_index): Delete the 2nd argument FROM.
16659 (font_prop_validate): Arguments changed.
16660 (font_put_extra): Adjusted for the change of font-related objects.
16661 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
16662 (font_parse_fcname, font_unparse_fcname)
16663 (font_prepare_composition): Likewise.
16664 (font_parse_family_registry): Renamed from font_merge_old_spec.
16665 (otf_open): Delete the 1st arg entity.
16666 (font_otf_capability): Adjusted for the above change.
16667 (font_score): New arg alternate_families. Adjusted for the change
16668 of font-related objects.
16669 (font_sort_entites): New arg best_only.
16670 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
16671 Delete them.
16672 (font_match_p): Check alternate families.
16673 (font_find_object): Delete it.
16674 (font_check_object): New function.
16675 (font_clear_cache): Adjusted for the change of font-related objects.
16676 (font_delete_unmatched): New arg.
16677 (font_list_entities): Call font_driver->list with a spec that
16678 doesn't specify style-related properties.
16679 (font_matching_entity): Arguments changed. Caller changed.
16680 (font_open_entity): Adjusted for the change of font-related objects.
16681 (font_close_object, font_has_char, font_encode_char)
16682 (font_get_name, font_get_spec): Likewise.
16683 (font_spec_from_name, font_clear_prop, font_update_lface):
16684 New functions.
16685 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
16686 (font_prepare_for_face, font_done_for_face, font_open_by_name)
16687 (font_at): Adjusted for the change of font-related objects.
16688 (font_range): New function.
16689 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
16690 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
16691 (Fcopy_font_spec, Fmerge_font_spec): New function.
16692 (Ffont_family_list): Renamed from list-families.
16693 (Finternal_set_font_style_table): Arguments changed.
16694 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
16695 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
16696 change of font-related objects.
16697 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
16698
16699 * fontset.h (struct font_info): Delete it. Most members go to
16700 struct font.
16701 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
16702 (enum FONT_SPEC_INDEX): Delete it.
16703 (font_info, list_fonts_func, load_font_func, query_font_func)
16704 (set_frame_fontset_func, find_ccl_program_func)
16705 (get_font_repertory_func, new_fontset_from_font_name): Delete
16706 externs.
16707 (fontset_from_font_name): Extern it.
16708 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
16709 (FONT_INFO_FROM_FACE): Deleted.
16710 (face_for_font): Adjust prototype.
16711
16712 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
16713 conditionals. Don't check enable_font_backend. Delete all codes
16714 used only when USE_FONT_BACKEND is not defined.
16715 (get_font_info_func, list_font_func, load_font_func)
16716 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
16717 (get_font_repertory_func): Delete them.
16718 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
16719 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
16720 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
16721 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
16722 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
16723 (fontset_compare_rfontdef): New function.
16724 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
16725 rfont-defs by qsort. Adjusted for the change of font-group vector.
16726 (load_font_get_repertory): Deleted.
16727 (fontset_find_font): Use new macros to ref/set elements of
16728 font-def and rfont-def.
16729 (fontset_font): Fix the timing of remembering that no font for C.
16730 (free_face_fontset): Do nothing if the face has no fontset.
16731 (face_suitable_for_char_p): Use new macros to ref/set elements of
16732 rfont-def.
16733 (face_for_char): Likewise. Call face_for_char with font_object.
16734 (fs_load_font): Delete. Delete #pragma surrounding it.
16735 (fs_query_fontset): Use strcasecmp instead of strcmp.
16736 (generate_ascii_font_name): Adjusted for the format change of
16737 font-spec.
16738 (Fset_fontset_font): Likewise. Use new macros to set elements of
16739 font-def.
16740 (Fnew_fontset): Use font_unparse_xlfd to generate
16741 FONTSET_ASCII (fontset).
16742 (new_fontset_from_font_name): Deleted.
16743 (fontset_from_font): Renamed from new_fontset_from_font. Check if
16744 a fontset is already created for the font. FIx updating of
16745 Vfontset_alias_alist.
16746 (fontset_ascii_font): Deleted.
16747 (Ffont_info): Adjusted for the format change of font-spec.
16748 (Finternal_char_font): Likewise.
16749 (Ffontset_info): Likewise.
16750 (syms_of_fontset): Don't check load_font_func.
16751
16752 * fns.c (internal_equal): Handle PREV_FONT.
16753
16754 * frame.h: Delete USE_FONT_BACKEND conditional.
16755
16756 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
16757 conditionals. Don't check enable_font_backend. Delete all codes
16758 used only when USE_FONT_BACKEND is not defined.
16759 (x_set_font): Call x_new_font, not x_new_fontset2.
16760 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
16761 already set for the frame.
16762
16763 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
16764 a font-entity by font_make_entity. Use font_intern_prop instead
16765 of intern_downcase. Use FONT_SET_STYLE to set a style-related
16766 font property. If a font is scalable, set avgwidth property to 0.
16767 Set font-entity property by font_put_extra.
16768 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
16769 (ffont_driver): Adjusted for the change of struct font_driver.
16770 (ftfont_spec_pattern): New function.
16771 (ftfont_list): Return a list, not vector.
16772 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
16773 (ftfont_list_family): Don't downcase names.
16774 (ftfont_free_entity): Deleted.
16775 (ftfont_open): Return a font-object. Adjusted for the change of
16776 struct font. Get underline_thickness and underline_position from
16777 font property. Don't update dpyinfo->smallest_font_height and
16778 dpyinfo->smallest_char_width.
16779 (ftfont_close): Don't free `struct font'.
16780 (ftfont_has_char): Adjusted for the format change of font-entity.
16781 (ftfont_encode_char, ftfont_text_extents): Likewise.
16782
16783 * ftxfont.c (ftxfont_list): Return a list, not vector.
16784 (ftxfont_open): Return a font-object. Adjusted for the change of
16785 struct font. Get underline_thickness and underline_position from
16786 font property. Don't update dpyinfo->smallest_font_height and
16787 dpyinfo->smallest_char_width.
16788 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
16789 (ftxfont_draw): Adjusted for the change of struct font.
16790
16791 * image.c (image_ascent): Don't include "charset.h". Include
16792 "character.h" and "font.h".
16793
16794 * lisp.h (enum pvec_type): New member PREV_FONT.
16795 (Fassoc_string): EXFUN it.
16796
16797 * print.c: Include font.h.
16798 (print_object): Handle font-related objects.
16799
16800 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
16801 conditionals. Don't check enable_font_backend. Delete all codes
16802 used only when USE_FONT_BACKEND is not defined.
16803 (handle_auto_composed_prop): Do nothing if it->f is not on a
16804 window system. Check how many following characters can be
16805 displayed by the same font.
16806 (calc_pixel_width_or_height): Type of the 4th arg is changed to
16807 'struct font *'.
16808 (get_char_face_and_encoding): Assign the whole encoding task to
16809 the `encode-char' method of a font driver.
16810 (fill_composite_glyph_string): Adjusted for the change of `struct
16811 face' and `struct glyph_string'.
16812 (fill_glyph_string): Likewise.
16813 (get_per_char_metric): Arguments changed.
16814 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
16815 and `struct glyph_string'.
16816 (produce_stretch_glyph, calc_line_height_property)
16817 (x_produce_glyphs): Likewise.
16818
16819 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
16820 conditionals. Don't check enable_font_backend. Delete all codes
16821 used only when USE_FONT_BACKEND is not defined. Use
16822 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
16823 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
16824 (Qp): Extern them.
16825 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
16826 Deleted.
16827 (struct font_name): Deleted.
16828 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
16829 (compare_fonts_by_sort_order): New function.
16830 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
16831 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
16832 Deleted.
16833 (Fx_family_fonts): Use font_list_entities, and sort fonts by
16834 compare_fonts_by_sort_order.
16835 (Fx_font_family_list): Call Ffont_family_list.
16836 (face_numeric_value, face_numeric_weight, face_numeric_slant)
16837 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
16838 (face_symbolic_slant, face_symbolic_swidth)
16839 (split_font_name_into_vector, build_font_name_from_vector)
16840 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
16841 (font_rescale_ratio, split_font_name, build_font_name)
16842 (free_font_names, sort_fonts, x_face_list_fonts)
16843 (face_font_available_p, sorted_font_list, cmp_font_names)
16844 (font_list_1, concat_font_list, font_list, remove_duplicates):
16845 Deleted.
16846 (Fx_list_fonts): Use Ffont_list.
16847 (LFACE_AVGWIDTH): Deleted.
16848 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
16849 by FONTP.
16850 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
16851 (set_lface_from_font_name): Delete it.
16852 (set_lface_from_font): Renamed from
16853 set_lface_from_font_and_fontset. Caller changed. Don't set
16854 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
16855 for face.
16856 (merge_face_vectors): Copy font-spec if necessary.
16857 Clear properties of the font-spec if necessary.
16858 (merge_face_ref): Clear properties of the font-spec if necessary.
16859 (Finternal_set_lisp_face_attribute): Likewise.
16860 (set_font_frame_param): Use font_load_for_lface to load a
16861 font-object, and call Fmodify_frame_parameters with it.
16862 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
16863 font name by Ffont_xlfd_name.
16864 (Finternal_lisp_face_attribute_values): Don't check QCweight,
16865 QCslant, and QCwidth.
16866 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
16867 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
16868 Compare fonts by EQ.
16869 (lookup_non_ascii_face): Deleted.
16870 (face_for_font): The 2nd argument changed.
16871 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
16872 Check atomic font properties by case insensitive.
16873 (realize_non_ascii_face): Set face->overstrike correctly.
16874 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
16875 (dump_realized_face): Get font name from
16876 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
16877
16878 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
16879 conditionals. Don't check enable_font_backend. Delete all codes
16880 used only when USE_FONT_BACKEND is not defined.
16881 (xic_create_xfontset): Original code deleted and renamed from
16882 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
16883 (x_make_gc): Don't set GCFont in GCs.
16884 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
16885 opened by "fixed".
16886 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
16887 find_ccl_program_func, query_font_func, set_frame_fontset_func,
16888 get_font_repertory_func.
16889
16890 * xfont.c: Include <stdlib.h> and "ccl.h".
16891 (struct xfont_info): New structure.
16892 (xfont_query_font): Deleted.
16893 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
16894 moved from xterm.c.
16895 (xfont_driver): Adjusted for the change of struct font_driver.
16896 (compare_font_names): New function.
16897 (xfont_list_pattern): Sort font names case insensitively. Make
16898 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
16899 (xfont_list): Return a list, not vector.
16900 (xfont_match): If the font doesn't have QCname property, generate
16901 a name from the other font properties.
16902 (xfont_open): Return a font-object. Adjusted for the change of
16903 struct font. Get underline_thickness and underline_position from
16904 font property. Don't update dpyinfo->smallest_font_height and
16905 dpyinfo->smallest_char_width.
16906 (xfont_close): Don't free struct font.
16907 (xfont_prepare_face): Adjusted for the change of struct font.
16908 (xfont_done_face): Deleted.
16909 (xfont_has_char): Adjusted for the change of struct font.
16910 (xfont_encode_char, xfont_draw): Likewise.
16911 (xfont_check): New function.
16912
16913 * xftfont.c (xftfont_list): Adjusted for the change of `list'
16914 callback function.
16915 (xftfont_match): Adjusted for the format change of font-entity.
16916 (xftfont_open): Adjusted for the format change of font-entity and
16917 font-object. Adjusted for the change of struct font. Return a
16918 font-object. Don't update dpyinfo->smallest_font_height and
16919 dpyinfo->smallest_char_width.
16920 (xftfont_close): Block input while calling XftFontClose.
16921 (xftfont_prepare_face): Don't block input while calling
16922 xftfont_get_colors. Adjusted for the change of struct font.
16923 (xftfont_shape): Return value of error case fixed.
16924
16925 * xrdb.c (x_load_resources): Don't setup a fontset resource.
16926
16927 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
16928 conditionals.
16929 (FONT_WIDTH): Return (f)->max_width.
16930 (struct x_display_info): Delete member `font'.
16931 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
16932 (x_find_ccl_program, x_get_font_repertory): Delete externs.
16933 (struct x_output): Change type of `font' to `struct font *'.
16934
16935 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
16936 conditionals. Don't check enable_font_backend. Delete all codes
16937 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
16938 (x_per_char_metric, x_encode_char): Deleted.
16939 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
16940 (x_compute_glyph_string_overhangs): Adjusted for the change of
16941 `struct face'.
16942 (x_draw_glyph_string_foreground)
16943 (x_draw_composite_glyph_string_foreground): Likewise.
16944 (x_draw_glyph_string): Likewise. Use font->underline_position and
16945 font->underline_thickness.
16946 (x_new_font): Renamed from x_new_fontset2.
16947 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
16948 (x_check_font): Call `check' method of a font driver.
16949 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
16950 (x_query_font, x_get_font_repertory): Deleted.
16951 (x_find_ccl_program): Renamed and moved to xfont.c.
16952 (x_redisplay_interface): Adjusted for the change of `struct
16953 redisplay_interface'.
16954
16955 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
16956 conditionals. Don't check enable_font_backend. Delete all codes
16957 used only when USE_FONT_BACKEND is not defined. Surround non-used
16958 code by "#ifdef OLD_FONT" and "endif".
16959 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
16960
16961 * w32font.h (struct w32font_info): New member.
16962 (FONT_COMPAT): New macro.
16963 (w32font_open_internal): Prototype adjusted.
16964
16965 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
16966 OLD_FONT" and "endif".
16967
16968 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
16969 conditionals. Don't check enable_font_backend. Delete all codes
16970 used only when USE_FONT_BACKEND is not defined.
16971 (w32font_open): Return a font-object. Make a font-object by
16972 font_make_object. Adjusted for the change of struct w32font_info.
16973 (w32font_close): Don't free struct font. Adjusted for the change
16974 of struct w32font_info.
16975 (w32font_encode_char, w32font_text_extents, w32font_draw):
16976 Adjusted for the change of struct w32font_info.
16977 (w32font_draw): Likewise.
16978 (w32font_list_internal): Return a list, not vector.
16979 (w32font_open_internal): Change the 4th arg to font-object.
16980 Adjusted for the change of struct w32font_info and font-object format.
16981 (add_font_name_to_list): Don't downcase names.
16982 (w32_enumfont_pattern_entity): Make a font-entity by
16983 font_make_entity. Adjusted for the format change of font-entity.
16984 Use FONT_SET_STYLE to set a style-related font property. If a
16985 font is scalable, set avgwidth property to 0. Set font-entity
16986 property by font_put_extra.
16987 (font_matches_spec): Adjusted for the format change of font-entity.
16988 (w32_weight_table, w32_decode_weight): New variables.
16989 (w32_encode_weight): New function.
16990 (fill_in_logfont): Adjusted for the format change of font-spec.
16991 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
16992 weight value.
16993 (w32font_driver): Adjusted for the change of struct font_driver.
16994
16995 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
16996 conditionals. Don't check enable_font_backend. Surround non-used
16997 code by "#ifdef OLD_FONT" and "endif".
16998 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
16999 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
17000
17001 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
17002 conditionals. Don't check enable_font_backend. Delete all codes
17003 used only when USE_FONT_BACKEND is not defined. Surround non-used
17004 code by "#ifdef OLD_FONT" and "endif".
17005
17006 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
17007 (uniscribe_open): Return value changed to font-object.
17008 Adjusted for the format change of font-object.
17009 (uniscribe_otf_capability): Adjusted for the change of struct font.
17010 (add_opentype_font_name_to_list): Don't downcase names.
17011 (uniscribe_font_driver): Adjusted for the change of struct
17012 font_driver.
17013
170142008-05-13 Chong Yidong <cyd@stupidchicken.com>
17015
17016 * dispnew.c (update_frame_1): Check if tty output is still valid
17017 before flushing it.
17018
170192008-05-13 Jan Djärv <jan.h.d@swipnet.se>
17020
17021 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
17022 to Gtk+ menus.
17023
170242008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
17025
17026 * dired.c (file_name_completion): Tweak the code so as to always do it
17027 in a single pass. Tighten the scope of some variables.
17028
17029 * dired.c (Qdefault_directory): New var.
17030 (file_name_completion): Use it instead of Fexpand_file_name.
17031 (syms_of_dired): Initialize it.
17032
170332008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
17034
17035 * fileio.c (double_dollars): Remove dead code.
17036
170372008-05-10 Eli Zaretskii <eliz@gnu.org>
17038
17039 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
17040 Mention w32-get-true-file-attributes in doc string.
17041
17042 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
17043
170442008-05-09 Glenn Morris <rgm@gnu.org>
17045
17046 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
17047 2008-04-23.
17048
170492008-05-09 Eli Zaretskii <eliz@gnu.org>
17050
17051 Support for reporting owner and group of each file on MS-Windows:
17052 * dired.c (stat_uname, stat_gname): New functions, with special
17053 implementation for w32.
17054 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
17055
17056 * w32.c: Rename the_passwd_* to dflt_passwd_*.
17057 (dflt_group_name): New static variable.
17058 (dflt_group): Rename from the_group.
17059 (init_user_info): Init dflt_group fields. Get user's group name
17060 from LookupAccountSid.
17061 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
17062 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
17063 New initialization states.
17064 (globals_of_w32): Initialize them to zero. Initialize the default
17065 group name to "None".
17066 (GetFileSecurity_Name): New global var, the name of the function
17067 to call for GetFileSecurity.
17068 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
17069 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
17070 (get_file_security, get_security_descriptor_owner)
17071 (get_security_descriptor_group, is_valid_sid)
17072 (get_file_security_desc, get_rid, get_name_and_id)
17073 (get_file_owner_and_group): New functions.
17074 (stat): Use get_file_security_desc and get_file_owner_and_group to
17075 report the owner and primary group of each file. Don't ignore the
17076 high 32 bits of file's size, now that st_size is 64-bit wide.
17077 Fix test when to get true file attributes.
17078 (init_user_info): Use get_rid instead of equivalent inline code.
17079 (fstat): Don't ignore the high 32 bits of file's size.
17080
170812008-05-09 Chong Yidong <cyd@stupidchicken.com>
17082
17083 * image.c (png_load): Use correct bit-depth for setting background
17084 color.
17085
170862008-05-08 Eli Zaretskii <eliz@gnu.org>
17087
17088 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
17089 epa-hook.elc.
17090
170912008-05-08 Juanma Barranquero <lekktu@gmail.com>
17092
17093 * font.c (Ffont_match_p): Don't use `iff' in docstring.
17094
170952008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
17096
17097 * macfns.c (Fx_create_frame): Make a copy of frame parameters
17098 because the original parameters are in pure storage now.
17099 (mac_window): Remove unused params. Update callers.
17100
171012008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
17102
17103 * lread.c (substitute_object_recurse): Use lower-level primitives.
17104 Don't signal errors when traversing sub-char-tables.
17105 Don't loop over all the possible characters when traversing char-tables.
17106
17107 * print.c (print_preprocess): Add sub-char-tables to the print-table,
17108 just like we do in print.c.
17109
171102008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
17111
17112 * minibuf.c (Ftry_completion): Remove code left over from when we used
17113 scmp instead of Fcompare_strings.
17114
171152008-05-04 Juanma Barranquero <lekktu@gmail.com>
17116
17117 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
17118
171192008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17120
17121 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
17122 Create bitmap context in native byte order.
17123
17124 * macterm.c (XDrawLine)
17125 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
17126 context in native byte order.
17127
171282008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17129
17130 * config.in: Regenerate.
17131
17132 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
17133 New definitions for Image I/O support.
17134 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
17135 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
17136 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
17137 (mac_data_provider_release_data, image_load_image_io)
17138 [USE_MAC_IMAGE_IO]: New functions.
17139 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
17140 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
17141 (init_image_func_pointer) [MAC_OSX]: Remove function.
17142 (image_load_quartz2d) [MAC_OSX]: Check availability of
17143 CGImageCreateWithPNGDataProvider at compile time.
17144 Use lowercase `false' for boolean constant.
17145 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
17146 Use image_load_image_io.
17147 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
17148 Don't check MyCGImageCreateWithPNGDataProvider.
17149 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
17150 Don't call init_image_func_pointer.
17151
17152 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
17153
17154 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
17155 Make variable non-static.
17156 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
17157 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
17158
17159 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
17160 (RED_FROM_ULONG): Mask off higher bits.
17161 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
17162
17163 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
17164 Include AvailabilityMacros.h.
17165 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
17166 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
17167
171682008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
17169
17170 * chartab.c (Fset_char_table_range): If range is t, really set all
17171 chars to that value.
17172
171732008-05-03 Eli Zaretskii <eliz@gnu.org>
17174
17175 * dired.c (Ffile_attributes): Don't allow the device number become
17176 negative.
17177
171782008-05-02 Daiki Ueno <ueno@unixuser.org>
17179
17180 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
17181
171822008-05-02 Juri Linkov <juri@jurta.org>
17183
17184 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
17185 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
17186 DEFAULT argument as a list of default values in docstrings.
17187
171882008-05-01 Chong Yidong <cyd@stupidchicken.com>
17189
17190 * puresize.h (BASE_PURESIZE): Increase to 1210000.
17191
171922008-05-01 Martin Rudalics <rudalics@gmx.at>
17193
17194 * dispnew.c (change_frame_size_1): Preserve small windows when
17195 shrinking frames by calling set_window_height|width with third
17196 arg 2.
17197
17198 * window.h (struct window): Replace field too_small_ok by field
17199 resize_proportionally.
17200
17201 * window.c (make_window): Initialize resize_proportionally.
17202 (enlarge_window): Temporarily set resize_proportionally to make
17203 sure that shrink_windows does scale the window proportionally.
17204 (shrink_windows): When window has resize_proportionally set try
17205 to shrink it proportionally by stealing from other windows.
17206 (struct saved_window, Fset_window_configuration)
17207 (compare_window_configurations): Handle resize_proportionally.
17208 (WINDOW_TOTAL_SIZE): New macro.
17209 (window_min_size, shrink_windows, size_window): Use it.
17210 (check_min_window_sizes): Remove. Invalid values of
17211 window-min-height|width are handled by window_min_size_2 now.
17212 (size_window, Fsplit_window, enlarge_window)
17213 (adjust_window_trailing_edge, grow_mini_window): Don't call
17214 check_min_window_sizes.
17215 (window_min_size_2, window_min_size_1, window_min_size):
17216 New argument safe_p for retrieving "safe" minimum sizes.
17217 (Fdisplay_buffer, Fsplit_window, enlarge_window)
17218 (adjust_window_trailing_edge, grow_mini_window):
17219 Adjust arguments of window_min_size... functions.
17220 (shrink_windows): Argument min_size removed. New argument
17221 safe_p allows shrinking windows to their safe minimum sizes.
17222 Calculate minimum size and decide whether a window shall be
17223 deleted for each window individually.
17224 (size_window): When nodelete_p equals 2, tell shrink_windows to
17225 delete windows only if their new minimum size is no more safe.
17226 (shrink_window_lowest_first): Call window_min_size_1 to make
17227 sure to preserve modeline of bottom-most window when resizing
17228 the minibuffer.
17229 (Fset_window_configuration, Fcurrent_window_configuration)
17230 (compare_window_configurations): Do not handle
17231 window-min-height|width any more.
17232 (syms_of_window): Clarify window-min-height|width doc-strings.
17233
172342008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
17235
17236 * dired.c (file_name_completion): Fix up the encoding/decoding issue
17237 some more. Copy some of the code from Ftry_completions.
17238 Remove special case code that dates back to initial revision when the
17239 slash was only added when necessary and that can't trigger nowadays.
17240
172412008-04-27 Kenichi Handa <handa@m17n.org>
17242
17243 * font.c (font_prop_validate): Signal `error' instead of `font'.
17244
172452008-04-29 Jason Rumney <jasonr@gnu.org>
17246
17247 * w32fns.c (Fw32_battery_status): New defun.
17248 (syms_of_w32fns): Defsubr it.
17249
172502008-04-28 Andreas Schwab <schwab@suse.de>
17251
17252 * dired.c (file_name_completion): Fix another mixing of encoded
17253 and decoded names.
17254
172552008-04-28 Juanma Barranquero <lekktu@gmail.com>
17256
17257 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
17258
172592008-04-27 Juanma Barranquero <lekktu@gmail.com>
17260
17261 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
17262
172632008-04-27 Andreas Schwab <schwab@suse.de>
17264
17265 * dired.c (file_name_completion): Fix inappropriate mixing of
17266 encoded and decoded names.
17267
17268 * xterm.c (XTread_socket): Fix use of uninitialized variable.
17269
17270 * puresize.h (BASE_PURESIZE): Increase to 1200000.
17271
172722008-04-26 Eli Zaretskii <eliz@gnu.org>
17273
17274 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
17275 2008-03-31, it's not needed anymore with `struct stat' definition
17276 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
17277 for the same reasons.
17278
172792008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
17280
17281 * m/sparc.h: Additional redefinitions for GNU/Linux.
17282
172832008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17284
17285 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
17286 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
17287 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
17288 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
17289 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
17290 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
17291 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17292 Likewise.
17293
17294 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
17295 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
17296 (mac_ax_number_of_characters): Add externs.
17297 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
17298 [USE_MAC_TSM]: Likewise.
17299 (mac_handle_text_input_event) [MAC_OSX]:
17300 Handle kEventTextInputOffsetToPos for no active input area case.
17301 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
17302 (mac_handle_document_access_event)
17303 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
17304 (install_application_handler) [MAC_OSX]: Register handlers for
17305 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
17306 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17307 Register mac_handle_document_access_event.
17308
17309 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
17310 Make functions non-static.
17311
173122008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
17313
17314 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
17315 (read_file_name_completion_ignore_case, insert_default_directory)
17316 (Qdefault_directory): Move to minibuffer.el.
17317 (Fread_file_name): Call the new `read-file-name' instead.
17318
173192008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17320
17321 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
17322 Make function non-static.
17323 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
17324 Remove function.
17325 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
17326 Move to mactoolbox.c.
17327 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
17328
17329 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
17330 (mac_rect_make): New macro.
17331
17332 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
17333 instead of float.
17334 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
17335 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
17336 (XSetBackground) [USE_CG_DRAWING]: Likewise.
17337 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
17338 CGRectMake.
17339 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
17340 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
17341 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
17342 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
17343 instead of WindowRef in argument type.
17344 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
17345 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
17346 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
17347 instead of DISPLAY. All uses changed.
17348 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
17349 (x_calc_absolute_position): Simplify so as not to use
17350 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
17351
17352 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
17353 instead of WindowRef in argument type.
17354 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
17355 [TARGET_API_MAC_CARBON]: Remove externs.
17356 (create_apple_event, mac_event_parameters_to_lisp)
17357 [TARGET_API_MAC_CARBON]: Add externs.
17358
17359 * mactoolbox.c (Vmac_ts_script_language_on_focus)
17360 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
17361 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
17362 is clicked.
17363 (x_activate_menubar): Remove extern for saved_menu_event_location.
17364 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
17365 Move from mac.c.
17366
173672008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17368
17369 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
17370 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
17371
173722008-04-23 Jason Rumney <jasonr@gnu.org>
17373
17374 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
17375 attributes only for local files.
17376
17377 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
17378 default to Qlocal.
17379
173802008-04-22 Juri Linkov <juri@jurta.org>
17381
17382 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
17383 read-buffer-to-switch instead of using the letter "B".
17384
173852008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
17386
17387 * fileio.c (Qdefault_directory): New variable.
17388 (Fread_file_name): Use it to pass `dir' to the completion functions.
17389
173902008-04-20 Chong Yidong <cyd@stupidchicken.com>
17391
17392 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
17393
173942008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
17395
17396 * keyboard.c (Vpre_help_message): Remove.
17397 (show_help_echo): Remove default C code.
17398
17399 * dired.c (directory_files_internal, file_name_completion):
17400 Only call ENCODE_FILE if the string is indeed decoded.
17401
174022008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
17403
17404 * Makefile.in (TOOLKIT_DEFINES): Remove.
17405 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
17406
174072008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17408
17409 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
17410 (mactoolbox.o): New target.
17411
17412 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
17413 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
17414
17415 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
17416 Use mac_set_frame_window_background instead of XSetWindowBackground.
17417 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
17418 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
17419 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
17420 instead of SetWindowTitleWithCFString.
17421 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
17422 Move function to mactoolbox.c.
17423 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
17424 Use mac_set_window_modified instead of SetWindowModified.
17425 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
17426 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
17427 (Fx_focus_frame): Use mac_front_non_floating_window instead of
17428 FrontNonFloatingWindow. Use mac_activate_window instead of
17429 ActivateWindow. Use mac_active_non_floating_window instead of
17430 ActiveNonFloatingWindow.
17431 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
17432 Use mac_show_hourglass and mac_hide_hourglass.
17433 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
17434 instead of GetGlobalMouse.
17435 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
17436 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
17437 Use mac_bring_window_to_front instead of BringToFront.
17438 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
17439 mactoolbox.c.
17440 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
17441 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
17442 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
17443 mactoolbox.c.
17444
17445 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
17446 (XtPointer): Move typedef from macmenu.c.
17447 (enum button_type): Move enum from macmenu.c.
17448 (widget_value): Move typedef from macmenu.c.
17449 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
17450 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
17451 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
17452 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
17453 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
17454 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
17455 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
17456 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
17457 (Selection): Move typedef from macselect.c.
17458 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
17459 macterm.c.
17460 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
17461 (mac_is_window_collapsed, mac_bring_window_to_front)
17462 (mac_send_window_behind, mac_hide_window, mac_show_window)
17463 (mac_collapse_window, mac_front_non_floating_window)
17464 (mac_active_non_floating_window, mac_activate_window)
17465 (mac_move_window_structure, mac_move_window, mac_size_window)
17466 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
17467
17468 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
17469 (enum mac_menu_kind): Move enum to mactoolbox.c.
17470 (min_menu_id): Move variable to mactoolbox.c.
17471 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
17472 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
17473 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
17474 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
17475 [TARGET_API_MAC_CARBON]: Likewise.
17476 (XtPointer): Move typedef to macgui.h.
17477 (enum button_type): Move enum to macgui.h.
17478 (widget_value): Move typedef to macgui.h.
17479 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
17480 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
17481 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
17482 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
17483 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
17484 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
17485 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
17486 (popup_activated_flag): Make variable non-static.
17487 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
17488 (add_menu_item, fill_menu, dispose_menus):
17489 Move functions to mactoolbox.c.
17490 (restore_show_help_function, menu_target_item_handler)
17491 (install_menu_target_item_handler, mac_handle_dialog_event)
17492 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
17493 [TARGET_API_MAC_CARBON]: Likewise.
17494 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
17495 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17496 (find_and_call_menu_selection, name_is_separator): Make function
17497 non-static.
17498 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
17499 to mactoolbox.c.
17500 (set_frame_menubar): Don't call install_menu_quit_handler.
17501 (menu_item_selection): New variable.
17502 (mac_menu_show): Use create_and_show_popup_menu.
17503 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
17504 selection but set variable menu_item_selection. All uses changed.
17505 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
17506 Call install_menu_quit_handler. Move to mactoolbox.c.
17507
17508 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
17509 (Selection): Move typedef to macgui.h.
17510 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
17511 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
17512 Make variables non-static.
17513 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17514 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
17515 Make functions non-static.
17516 (Vmac_service_selection) [MAC_OSX]: Likewise.
17517 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
17518 (mac_valid_selection_target_p, mac_clear_selection)
17519 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17520 (mac_put_selection_value, mac_selection_has_target_p)
17521 (mac_get_selection_value, mac_get_selection_target_list)
17522 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
17523 Move functions to mactoolbox.c.
17524 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
17525 Likewise.
17526 (copy_scrap_flavor_data, mac_handle_service_event)
17527 (install_service_handler) [MAC_OSX]: Likewise.
17528 (syms_of_macselect) <Vmac_dnd_known_types>:
17529 Use mac_dnd_default_known_types.
17530
17531 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
17532 Move to mactoolbox.c.
17533 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
17534 (Fx_selection_owner_p): Add EXFUN.
17535 (install_window_handler, remove_window_handler, XSetWindowBackground):
17536 Remove externs.
17537 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
17538 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
17539 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
17540 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
17541 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
17542 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
17543 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
17544 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
17545 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
17546 (create_and_show_popup_menu, mac_get_selection_from_symbol)
17547 (mac_valid_selection_target_p, mac_clear_selection)
17548 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17549 (mac_put_selection_value, mac_selection_has_target_p)
17550 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
17551 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
17552 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
17553 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17554 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
17555 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17556 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
17557 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17558 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17559
17560 * mactoolbox.c: New file.
17561
175622008-04-18 Jason Rumney <jasonr@gnu.org>
17563
17564 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
17565
175662008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
17567
17568 * character.c (Fmultibyte_char_to_unibyte):
17569 Return latin1 chars unchanged.
17570
17571 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
17572 relocated if it points to `name'.
17573
175742008-04-17 Kenichi Handa <handa@m17n.org>
17575
17576 * data.c (Faset): Allow setting a multibyte character in an
17577 ASCII-only unibyte string.
17578
17579 * lisp.h (STRING_SET_MULTIBYTE): New macro.
17580
175812008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
17582
17583 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
17584 done in config.h.
17585
175862008-04-16 Juanma Barranquero <lekktu@gmail.com>
17587
17588 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
17589 (Fchar_direction): Add usage in the docstring.
17590
175912008-04-15 Chong Yidong <cyd@stupidchicken.com>
17592
17593 * keyboard.c (read_key_sequence): Remove always-true checks.
17594
175952008-04-14 Jason Rumney <jasonr@gnu.org>
17596
17597 * w32font.c (w32font_open_internal): Set max_bounds.descent in
17598 compatibility struct, for better underline positioning.
17599
176002008-04-13 David Hansen <david.hansen@gmx.net>
17601
17602 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
17603 string.
17604
176052008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
17606
17607 * m/hp800.h (XUINT, XSET): Remove.
17608
176092008-04-12 Juanma Barranquero <lekktu@gmail.com>
17610
17611 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
17612 previous change.
17613
176142008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
17615
17616 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
17617 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
17618
176192008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17620
17621 * keymap.h (map_keymap_canonical): Declare.
17622 * xmenu.c (single_keymap_panes): Use it.
17623
176242008-04-11 Glenn Morris <rgm@gnu.org>
17625
17626 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
17627 set the target's value to that of the alias.
17628
176292008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17630
17631 * term.c (set_tty_color_mode): Left over typo.
17632
176332008-04-10 Michael Albinus <michael.albinus@gmx.de>
17634
17635 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
17636 only after check for file name handler functions. Signal, when
17637 native functionality is not supported.
17638 (syms_of_fileio): Declare it unconditionally.
17639
176402008-04-10 Jason Rumney <jasonr@gnu.org>
17641
17642 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
17643 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
17644
17645 * w32.c (logon_network_drive): Also logon to remote drives that
17646 are mapped to drive letters.
17647
176482008-04-10 Glenn Morris <rgm@gnu.org>
17649
17650 * xdisp.c (truncate-partial-width-windows): Doc fix.
17651
176522008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
17653
17654 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
17655 Move functions to minibuffer.el.
17656 (syms_of_fileio): Don't declare them.
17657
176582008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17659
17660 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
17661 (syms_of_minibuf): Remove its initialization.
17662
17663 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
17664
176652008-04-09 Juanma Barranquero <lekktu@gmail.com>
17666
17667 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
17668
176692008-04-09 Jason Rumney <jasonr@gnu.org>
17670
17671 * makefile.w32-in (distclean): Delete makefile too.
17672 (maintainer-clean): New target.
17673
17674 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
17675
17676 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
17677 for new font backend and composite cases.
17678
176792008-04-09 Jan Djärv <jan.h.d@swipnet.se>
17680
17681 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
17682 Most of the code moved to run_timers.
17683 (do_pending_atimers): Call run_timers.
17684 (run_timers): New function.
17685
17686 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
17687 run atimers.
17688
17689 * process.c (wait_reading_process_output): The same as above.
17690
176912008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17692
17693 * minibuf.c (last_exact_completion): Remove variable.
17694 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
17695 (complete_and_exit_1, complete_and_exit_2)
17696 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
17697 (Fdisplay_completion_list, display_completion_list_1)
17698 (Fminibuffer_completion_help, Fself_insert_and_exit)
17699 (Fexit_minibuffer, Fminibuffer_message): Move functions to
17700 minibuffer.el.
17701 (syms_of_minibuf): Remove corresponding initializations.
17702
17703 * keyboard.c (Qdeactivate_mark): New var.
17704 (command_loop_1): Use it to call `deactivate-mark'.
17705 (syms_of_keyboard): Initialize it.
17706
17707 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
17708 to another frame.
17709 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
17710 Don't call set_tty_color_mode.
17711 (store_frame_param): Reset previous_frame rather than call
17712 set_tty_color_mode.
17713 * term.c (set_tty_color_mode): Rewrite.
17714 * dispextern.h (set_tty_color_mode): New type.
17715 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
17716
177172008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
17718
17719 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
17720 for generic chars, which do not exist any more in emacs-unicode.
17721
177222008-04-08 Michael Albinus <michael.albinus@gmx.de>
17723
17724 * coding.c (detect_coding_emacs_mule)
17725 (Ffind_operation_coding_system): Fix typo.
17726
177272008-04-08 Jason Rumney <jasonr@gnu.org>
17728
17729 * w32uniscribe.c (SNAME): Extract only symbol name.
17730
17731 * w32font.h (struct w32_metric_cache): New struct.
17732 (w32font_info): Use it.
17733 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
17734 (CACHE_BLOCKSIZE): New constants.
17735
17736 * w32font.c (Qja, Qko, Qzh): New symbols.
17737 (syms_of_w32font): Initialise them.
17738 (font_matches_spec): Use them to filter by language.
17739 (recompute_cached_metrics): Remove function.
17740 (compute_metrics, clear_cached_metrics): New functions.
17741 (w32font_encode_char): Use them to manage metric cache.
17742 (w32font_text_extents): Cache metrics for all glyphs on demand.
17743 Delay converting glyph indices to WORD until needed.
17744 (w32font_open_internal): Initialize metric cache to empty.
17745 (registry_to_w32_charset): Charset should always be a symbol.
17746 (fill_in_logfont, list_all_matching_fonts): Family should
17747 always be a symbol.
17748
177492008-04-06 Jason Rumney <jasonr@gnu.org>
17750
17751 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
17752 Give up if glyph indices not supported. Use uniscribe obtained
17753 ABC widths for individual metrics. Map glyph clusters back to
17754 characters using fClusterStart flag. Return number of glyphs
17755 produced, not chars processed.
17756 (uniscribe_shape): Map char at FROM to current glyph.
17757
177582008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17759
17760 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
17761 Use SetMenuItemHierarchicalMenu.
17762
177632008-04-05 Jason Rumney <jasonr@gnu.org>
17764
17765 * image.c (pbm_load): Allow color values up to 65535.
17766 Throw an error if max_color_idx is outside the supported range.
17767 Report an error when image size is invalid.
17768 Read two bytes at a time when raw images have max_color_idx above 255.
17769
aac0c6e3
MR
177702008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
17771
17772 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
17773 append "CCL: Quitted" when the CCL program is quitted.
17774 (setup_ccl_program): Initialize ccl->quit_silently to zero.
17775
17776 * ccl.h (struct ccl_program): New member quit_silently.
17777
177782008-04-05 Chong Yidong <cyd@stupidchicken.com>
17779
17780 * search.c (compile_pattern_1): Treat non-nil and non-string of
17781 search-spaces-regexp as nil.
17782
17783 * minibuf.c (Fassoc_string): Tweak docstring.
17784
177852008-04-05 Eli Zaretskii <eliz@gnu.org>
17786
17787 * dired.c (Ffile_attributes): Support inode numbers wider than 32
17788 bits. Remove ugly WINDOWSNT-specific kludge introduced on
17789 2008-03-14 to force inode be positive.
17790
17791 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
17792 _S_* ones, since we now use our own sys/stat.h.
17793 (stat, fstat): Don't mangle the inode number.
17794 (init_user_info): Don't restrict UID and GID to 0-60000 range.
17795
177962008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
17797
17798 * frame.h (struct frame): Give one more bit to `visible' since we use
17799 values larger than 1 to indicate obscured frames on ttys.
17800
17801 * keymap.c (Qkeymap_canonicalize): New var.
17802 (Fmap_keymap_internal): New fun.
17803 (describe_map): Use keymap-canonicalize.
17804
17805 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
17806 (Fundo_boundary): Set them.
17807 (syms_of_undo): Initialize them.
17808 (record_point): Use them instead of last_point_position*.
17809 (last_undo_buffer): Change type.
17810
178112008-04-04 Jason Rumney <jasonr@gnu.org>
17812
17813 * w32font.c (w32font_text_extents): Use font's ascent and descent.
17814 (recompute_cached_metrics): Don't set ascent and descent per char.
17815
17816 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
17817 (uniscribe_check_otf): Add GC protection before consing.
17818 Rearrange loop for counting features.
17819
178202008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
17821
17822 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
17823 buffer with byte-size of source buffer.
17824
178252008-04-03 Chong Yidong <cyd@stupidchicken.com>
17826
17827 * callint.c (Fcall_interactively): Handle temporary region even
17828 when shift-select-mode is off.
17829
178302008-04-03 Jason Rumney <jasonr@gnu.org>
17831
17832 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
17833
178342008-04-03 Kenichi Handa <handa@m17n.org>
17835
17836 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
17837 (CATEGORY_MASK_UTF_16): Likewise.
17838 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
17839 binary file.
17840 (detect_coding): Add null-byte detection for a binary file.
17841 (detect_coding_system): Likewise.
17842
178432008-04-03 Jason Rumney <jasonr@gnu.org>
17844
17845 * w32uniscribe.c: New file.
17846
17847 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
17848
17849 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
17850
17851 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
17852 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
17853 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
17854 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
17855 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
17856 (Qphonetic): New symbols.
17857 (syms_of_w32font): Initialize them.
17858 (font_supported_scripts): Use them.
17859 (w32font_list_family): List all charsets.
17860 (w32font_text_extents, recompute_cached_metrics): Fix metric
17861 calculations.
17862 (w32_enumfont_pattern_entity): Make full_type a DWORD.
17863 Give opentype fonts their own format.
17864 (font_matches_spec): New arguments backend and logfont.
17865 Handle :otf spec for uniscribe backend.
17866 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
17867 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
17868
17869 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
17870 font backend.
17871 (globals_of_w32fns): Initialize uniscribe font backend.
17872
17873 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
17874 dependencies.
17875 (w32uniscribe.$(O)): New file to build.
17876 (FONT_OBJ): Include w32uniscribe.$(O).
17877 (LIBS): Add uniscribe libraries.
17878
17879 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
17880
178812008-04-02 Chong Yidong <cyd@stupidchicken.com>
17882
17883 * callint.c (Vshift_select_mode): New var.
17884 (Finteractive): Document new ^ spec.
17885 (Fcall_interactively): Call handle-shift-selection if the ^ spec
17886 is present.
17887
17888 * keyboard.c (Vthis_command_keys_shift_translated): New var.
17889 (command_loop_1): Avoid running the direct display versions of
17890 forward-char and backward-char if shift-selection may occur.
17891 (read_key_sequence): Set Vthis_command_keys_shift_translated if
17892 shift-translation takes place.
17893
17894 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
17895 avoid clobbering by define-minor-mode.
17896
17897 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
17898 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
17899
17900 * syntax.c (Fforward_word): Add ^ interactive spec.
17901
17902 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
17903 (Fscroll_right): Add ^ interactive spec.
17904
179052008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
17906
17907 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
17908
17909 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
17910
17911 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
17912
179132008-03-31 Juri Linkov <juri@jurta.org>
17914
17915 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
17916
179172008-03-30 Jan Djärv <jan.h.d@swipnet.se>
17918
17919 * gtkutil.c (xg_set_geometry): Fix indentation.
17920 (xg_resize_outer_widget): Remove.
17921 (x_wm_size_hint_off): Fix indentation.
17922 (xg_frame_set_char_size): Call flush_and_sync after
17923 gtk_window_resize.
17924 (x_wm_set_size_hint): Pass NULL as geometry window to
17925 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
17926 Add menu bar and tool bar height to base height.
17927 (xg_update_frame_menubar, free_frame_menubar)
17928 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
17929 (update_frame_tool_bar, free_frame_tool_bar):
17930 Change xg_resize_outer_widget to xg_frame_set_char_size.
17931
179322008-03-30 Michael Albinus <michael.albinus@gmx.de>
17933
17934 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
17935 (Fdbus_call_method): New parameter TIMEOUT.
17936 (dbus-send-signal): Optimize UNGCPRO call.
17937
179382008-03-29 Juri Linkov <juri@jurta.org>
17939
17940 * window.c (Fdisplay_buffer): Move call to
17941 Vsplit_window_preferred_function out of conditions that check
17942 if window is eligible for vertical splitting.
17943 When Vsplit_window_preferred_function is non-nil, call it and use
17944 its non-nil return value as window. Otherwise, continue doing
17945 vertical splitting using Fsplit_window with arg horflag=nil.
17946 (syms_of_window) <Vsplit_window_preferred_function>: Change the
17947 default value from `split-window' to nil.
17948
179492008-03-29 Juri Linkov <juri@jurta.org>
17950
17951 * callint.c (Fcall_interactively): Revert 2008-03-16 change
17952 for interactive code letters 'b' and 'B'.
17953
179542008-03-29 Eli Zaretskii <eliz@gnu.org>
17955
17956 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
17957 multibyte string.
17958
179592008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
17960
17961 * keyboard.c (pending_funcalls): New var.
17962 (timer_check): Run it.
17963 (syms_of_keyboard): Initialize it.
17964 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
17965 (Vdelete_terminal_functions): New vars.
17966 (syms_of_terminal): Initialize them.
17967 (Fdelete_terminal): Run delete-terminal-functions.
17968 * xdisp.c (safe_eval): Rewrite.
17969 (safe_call2): New fun.
17970 * frame.c (Qdelete_frame_functions): New var.
17971 (syms_of_frame): Initialize it.
17972 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
17973 * lisp.h (safe_call2, pending_funcalls): Declare.
17974
179752008-03-28 Andreas Schwab <schwab@suse.de>
17976
17977 * indent.c (Fmove_to_column): Move declaration before statements.
17978
179792008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
17980
17981 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
17982 (struct frame): Use bit fields for boolean vars.
17983
17984 * process.c (server_accept_connection): Simplify naming.
17985 (emacs_get_tty_pgrp): Use SDATA.
17986
17987 * coding.c (decode_coding_object): Fix last change.
17988
179892008-03-27 Jason Rumney <jasonr@gnu.org>
17990
17991 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
17992
179932008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
17994
17995 * charset.c (Fdefine_charset_internal): Change the way of
17996 registering charsets in Vcharset_order_list.
17997 (syms_of_charset): Make the charset `eight-bit' supplementary.
17998
179992008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
18000
18001 * regex.c (EXTEND_BUFFER): Change order of pointer addition
18002 operations, to avoid having the difference between pointers
18003 overflow.
18004
180052008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
18006
18007 * indent.c (check_display_width): New fun.
18008 (scan_for_column): Use it.
18009
18010 * data.c (syms_of_data): Mark most-positive-fixnum and
18011 most-negative-fixnum as constants.
18012
18013 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
18014
18015 * indent.c (scan_for_column): Extract from current_column_1.
18016 Merge with the same code from Fmove_to_column.
18017 (current_column_1, Fmove_to_column): Use it.
18018
180192008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
18020
18021 * keymap.c (map_keymap_internal): New fun.
18022 (map_keymap): Use it.
18023 (Fmap_keymap_internal): New fun.
18024 (Fmap_keymap): Remove left-out test from before make_save_value.
18025
18026 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
18027
18028 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
18029 Use XCAR/XCDR.
18030
18031 * process.h (struct Lisp_Process): Remove filter_multibyte.
18032 * process.c (QCfilter_multibyte): Remove.
18033 (setup_process_coding_systems): Don't use filter_multibyte.
18034 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
18035 (read_process_output): Don't adjust multibyteness to filter_multibyte.
18036 (Fset_process_filter_multibyte): Change the coding-system to
18037 approximate the previous behavior.
18038 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
18039 coding-system.
18040
18041 * coding.c (decode_coding_object): When not decoding into a buffer,
18042 obey the coding system's preference of (uni|multi)byte.
18043
180442008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
18045
18046 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
18047 every char is changed and has a different byte-length.
18048 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
18049 Fix int -> EMACS_INT.
18050
180512008-03-23 David Hansen <david.hansen@gmx.net>
18052
18053 * dbusbind.c (xd_read_message): Remove extra copying of message
18054 strings. Check for NULL `interface' or `member'.
18055
180562008-03-22 Eli Zaretskii <eliz@gnu.org>
18057
18058 * w32.c (readdir): If FindFirstFile/FindNextFile return in
18059 cFileName a file name that includes `?' characters, use the 8+3
18060 alias in cAlternateFileName instead.
18061
180622008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
18063
18064 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
18065
180662008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
18067
18068 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
18069 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
18070 work on current_buffer only instead (that was already the case
18071 for some of the code anyway).
18072 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
18073 (temp_set_point, temp_set_point_both): Use EMACS_INT.
18074 (SET_PT, SET_PT_BOTH): Adjust.
18075 * intervals.h (set_point, temp_set_point, set_point_both)
18076 (temp_set_point_both): Remove redundant declarations.
18077
180782008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
18079
18080 * fileio.c (Finsert_file_contents):
18081 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
18082 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
18083 when buffer != current_buffer anyway.
18084
180852008-03-20 Andreas Schwab <schwab@suse.de>
18086
18087 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
18088 as default.
18089
180902008-03-19 Jason Rumney <jasonr@gnu.org>
18091
18092 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
18093 (syms_of_w32fns): Initialize them.
18094 (HOURGLASS_ID): New constant.
18095 (x_window_to_frame): Don't check hourglass_window.
18096 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
18097 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
18098 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
18099 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
18100 Only change the cursor if hourglass is not active.
18101 (Fx_create_frame): Initialize frame's current_cursor.
18102 (hourglass_atimer): Remove.
18103 (hourglass_started): New function.
18104 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
18105 (show_hourglass): Adapt to w32, changing argument to frame.
18106
18107 * w32term.h (struct w32_output): Remove hourglass_window.
18108 Add current_cursor.
18109
18110 * eval.c (call_debugger, Fsignal):
18111 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
18112 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
18113 (Fexecute_extended_command, cancel_hourglass_unwind):
18114 * minibuf.c (read_minibuf):
18115 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
18116
181172008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
18118
18119 * window.c (run_funs): New fun.
18120 (run_window_configuration_change_hook): Use it to run the buffer-local
18121 and the global part of the hook.
18122
18123 * xdisp.c (format_mode_line_unwind_data): Add window argument.
18124 (unwind_format_mode_line): Restore selected window.
18125 (x_consider_frame_title, Fformat_mode_line): Set selected window.
18126
181272008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
18128
18129 * editfns.c (Fchar_equal): Check they are valid characters.
18130
18131 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
18132
181332008-03-17 Andreas Schwab <schwab@suse.de>
18134
18135 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
18136 against a charset.
18137
18138 * lisp.h (Fbuffer_list): Declare.
18139
181402008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 18141
aac0c6e3
MR
18142 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
18143 handlebox_widget is != 0.
18144
181452008-03-16 Juri Linkov <juri@jurta.org>
18146
18147 * callint.c (Fcall_interactively): For interactive code letters
18148 'b' and 'B' put the buffer list into the list of default "future"
18149 values of the minibuffer.
18150
181512008-03-16 Andreas Schwab <schwab@suse.de>
18152
18153 * keyboard.c (read_key_sequence): Fix downcasing of letters with
18154 modifiers.
18155
18156 * regex.c (re_match_2_internal): Correct matching of a charset
18157 against latin-1 characters.
18158
181592008-03-16 Kenichi Handa <handa@m17n.org>
18160
18161 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
18162 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
18163 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
18164 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
18165 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
18166 CHAR_STRING_ADVANCE.
18167 (produce_chars): Fix for the case that the source and the
18168 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
18169 instead of CHAR_STRING_ADVANCE.
18170 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
18171 STRING_CHAR_ADVANCE.
18172
181732008-03-15 Andreas Schwab <schwab@suse.de>
18174
18175 * regex.c (re_match_2_internal): Correct matching of eight bit
18176 characters in unibyte strings.
18177
181782008-03-15 Martin Rudalics <rudalics@gmx.at>
18179
18180 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
18181 at end of range when it coincides with the end of the buffer.
18182
181832008-03-14 Eli Zaretskii <eliz@gnu.org>
18184
18185 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
18186
18187 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
18188
181892008-03-14 Jason Rumney <jasonr@gnu.org>
18190
18191 * editfns.c (initial_tz): New variable.
18192 (syms_of_editfns): Initialize it.
18193 (Fset_time_zone_rule): Set it when first called.
18194 Use it when TZSTRING is nil.
18195
18196 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
18197 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
18198 (monitor_from_point_fn, get_monitor_info_fn): New globals.
18199 (globals_of_w32fns): Initialize them.
18200 (compute_tip_xy): Use them to position tooltips.
18201
182022008-03-14 Glenn Morris <rgm@gnu.org>
18203
18204 * emacs.c (main): Revert previous change.
18205 (standard_args): Revert -internal-script back to -scriptload,
18206 and remove the long-option form.
18207
182082008-03-13 Glenn Morris <rgm@gnu.org>
18209
18210 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
18211 Remove option -enable-font-backend.
18212
182132008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
18214
18215 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
18216
182172008-03-11 Jan Djärv <jan.h.d@swipnet.se>
18218
18219 * xterm.c (x_connection_closed): For GTK: If this is the last
18220 terminal just exit without closing the display.
18221
182222008-03-11 Jason Rumney <jasonr@gnu.org>
18223
18224 * w32font.c (w32font_full_name): Use floor to round.
18225
f0131492 182262008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
18227
18228 * sound.c (alsa_configure): Declare vol at beginning of block.
18229
18230 * fontset.c (Ffontset_info): Remove extra semicolon.
18231
182322008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
18233
18234 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
18235 size of resulting string.
18236
182372008-03-10 Jason Rumney <jasonr@gnu.org>
18238
18239 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
18240
182412008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18242
18243 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
18244 Don't pretend as if characters with display property haven't been
18245 consumed for string-replacing-string case.
18246
182472008-03-08 Kim F. Storm <storm@cua.dk>
18248
18249 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
18250 (get_next_display_element, next_element_from_string)
18251 (next_element_from_ellipsis, next_element_from_buffer): Use it.
18252
182532008-03-08 Andreas Schwab <schwab@suse.de>
18254
18255 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
18256
182572008-03-06 Jason Rumney <jasonr@gnu.org>
18258
18259 * w32font.c (w32_registry): Take font_type argument. Use ANSI
18260 when charset not specified. Only translate ANSI to unicode when
18261 font_type is truetype.
18262 (w32font_coverage_ok): New function.
18263 (add_font_entity_to_list): Use it to filter unsuitable fonts.
18264
182652008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
18266
18267 * lread.c (Fread_char): Resolve modifiers.
18268 (Fread_char_exclusive): Likewise.
18269
18270 * character.c (char_resolve_modifier_mask): New function.
18271 (char_string): Use char_resolve_modifier_mask.
18272 (Fchar_resolve_modifiers): New function.
18273 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
18274 function.
18275
182762008-03-04 Jason Rumney <jasonr@gnu.org>
18277
18278 * makefile.w32-in: Always include w32font.c in the build.
18279 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
18280
182812008-03-04 Andreas Schwab <schwab@suse.de>
18282
18283 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
18284 (versionclean): Likewise.
18285
182862008-03-04 Juanma Barranquero <lekktu@gmail.com>
18287
18288 * .cvsignore: Add oo.
18289
182902008-03-03 Andreas Schwab <schwab@suse.de>
18291
18292 * coding.c (decode_coding_object): Inhibit gap shrinking while
18293 decoding in place.
18294
182952008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
18296
18297 * w32term.c: Remove unused include "gnu.h".
18298 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
18299
18300 * gnu.h: Rename to ...
18301 * emacs-icon.h: ... this.
18302 * xterm.c: Use emacs-icon.h instead of gnu.h.
18303 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
18304
183052008-03-03 Juanma Barranquero <lekktu@gmail.com>
18306
18307 * w32font.c: Include math.h.
18308
183092008-03-03 Jason Rumney <jasonr@gnu.org>
18310
18311 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
18312 Compute options separately.
18313 (w32font_open_internal): Set glyph_idx before caching metrics.
18314
18315 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
18316 Define if system headers don't.
18317 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
18318 (w32font_encode_char): Don't declare here.
18319
18320 * w32font.c (Quniscribe, QCformat): New symbols.
18321 (syms_of_w32font): Define them.
18322 (w32font_has_char): Indicate uncertainty.
18323 (w32font_encode_char): Encode as glyph point. Make static.
18324 (recompute_cached_metrics): New function.
18325 (w32font_open_internal): Use it. Set font to use glyph points
18326 initially. Set format based on type of font.
18327 (w32font_text_extents, w32font_draw): Optionally use glyph points.
18328 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
18329 on it. Set format based on information available here.
18330 (add_font_entity_to_list): Identify backend based on opentype_only.
18331
183322008-03-02 Andreas Schwab <schwab@suse.de>
18333
18334 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
18335
18336 * coding.c (decode_coding_big5, produce_chars):
18337 Fix typos in last change.
18338
183392008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
18340
18341 * gnu.h: New icon.
18342
183432008-03-02 Kenichi Handa <handa@m17n.org>
18344
18345 * coding.c (decode_coding_utf_8): When eol-type of CODING is
18346 `dos', don't decode '\r' if that is the last in the source.
18347 (decode_coding_utf_16, decode_coding_emacs_mule)
18348 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18349 (decode_coding_raw_text, decode_coding_charset): Likewise.
18350 (produce_chars): Don't decode EOL here. Use EMACS_INT.
18351
183522008-03-01 Jason Rumney <jasonr@gnu.org>
18353
18354 * w32font.c (w32font_full_name): Report point size for scalable fonts.
18355
183562008-03-01 Kim F. Storm <storm@cua.dk>
18357
18358 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
18359
183602008-03-01 Jason Rumney <jasonr@gnu.org>
18361
18362 * w32font.c (w32font_full_name): New function.
18363 (w32font_open_internal): Use it.
18364
183652008-03-01 Kim F. Storm <storm@cua.dk>
18366
18367 * dispnew.c (line_draw_cost): Fix invalid glyph check.
18368
183692008-03-01 Jason Rumney <jasonr@gnu.org>
18370
18371 * font.c (font_unparse_fcname): Increase len when style is a symbol.
18372
183732008-03-01 Jan Djärv <jan.h.d@swipnet.se>
18374
18375 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
18376 xg_frame_resized when the event is for the edit widget.
18377
18378 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
18379
18380 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
18381 set_char_size.
18382 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
18383 operations on widgets here. Just set frame size if needed.
18384 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
18385 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
18386 (x_wm_set_size_hint): Set size hints on the edit widget only, not
18387 the whole frame.
18388 (xg_create_tool_bar): Move attachment of the tool bar to
18389 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
18390 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
18391
183922008-03-01 Jason Rumney <jasonr@gnu.org>
18393
18394 * w32fns.c (w32_msg_pump): Disable debug code.
18395
183962008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18397
18398 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
18399
184002008-02-29 Chong Yidong <cyd@stupidchicken.com>
18401
18402 * xdisp.c (next_overlay_string): Don't set
18403 overlay_strings_at_end_processed_p if we're currently reading from
18404 a display string.
18405
184062008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
18407
18408 * xdisp.c (get_overlay_strings_1): Fix typo.
18409
184102008-02-29 Chong Yidong <cyd@stupidchicken.com>
18411
18412 * xdisp.c (get_overlay_strings_1): Add missing argument type.
18413
184142008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
18415
18416 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
18417
18418 * xdisp.c (display_mode_element): Cancel the previous change.
18419 (decode_mode_spec): Likewise.
18420 (handle_auto_composed_prop): Don't make composition if it->string
18421 is a string.
18422
184232008-02-27 Kim F. Storm <storm@cua.dk>
18424
18425 * lisp.h (GLYPH): Change type from int to struct with separate char
18426 and face_id members.
18427 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
18428 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
18429 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
18430 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
18431 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
18432 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
18433 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
18434 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
18435 handle new Lisp glyph code encoding, either an integer or a cons.
18436
18437 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
18438 (GLYPH_ALIAS): Delete.
18439 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
18440 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
18441 (GLYPH_FROM_CHAR): Replace macro by ...
18442 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
18443
18444 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
18445 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
18446 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
18447 (GLYPH_INVALID_P): New macro.
18448 (spec_glyph_lookup_face): Update prototype.
18449
18450 * dispnew.c (line_draw_cost): Adapt to new glyph type.
18451 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
18452 new glyph code encoding.
18453 (spec_glyph_lookup_face): No return value; update passed glyph instead.
18454 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
18455
18456 * xdisp.c (get_next_display_element, next_element_from_display_vector):
18457 Adapt to new glyph type and new glyph code encoding.
18458
18459 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
18460
18461 * indent.c (current_column, current_column_1, Fmove_to_column)
18462 (compute_motion): Adapt to new glyph code encoding.
18463
18464 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
18465
184662008-02-27 Chong Yidong <cyd@stupidchicken.com>
18467
18468 * process.c (wait_reading_process_output): Check for window
18469 changes caused by timers.
18470 Suggested by Johan Bockgård.
18471
184722008-02-27 Glenn Morris <rgm@gnu.org>
18473
18474 * emacs.c (USAGE1): Add `--disable-font-backend'.
18475
184762008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
18477
18478 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
18479 is made to the buffer.
18480
184812008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
18482
18483 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
18484 (face_at_string_position):
18485 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
18486 (face_at_string_position):
18487 * xdisp.c (display_string, next_overlay_change):
18488 * buffer.h (overlays_at):
18489 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
18490 Update callers.
18491
184922008-02-26 Chong Yidong <cyd@stupidchicken.com>
18493
18494 * editfns.c (Fformat): Doc fix.
18495
184962008-02-26 Juanma Barranquero <lekktu@gmail.com>
18497
18498 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
18499 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
18500 (Ffont_otf_alternates, Fquery_font): Doc fixes.
18501
185022008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18503
18504 * buffer.c (Fbuffer_swap_text): New function.
18505 (syms_of_buffer): Defsubr it.
18506
185072008-02-25 Chong Yidong <cyd@stupidchicken.com>
18508
18509 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
18510
185112008-02-25 Jason Rumney <jasonr@gnu.org>
18512
18513 * w32font.c (w32font_draw): Draw one character at a time when padding.
18514
185152008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18516
18517 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
18518 Handle a nil arg. Use run_window_configuration_change_hook.
18519 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
18520 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
18521 Use run_window_configuration_change_hook.
18522
185232008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18524
18525 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
18526 1-pixel width.
18527
185282008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18529
18530 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
18531 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
18532 if the glyph in the font is zero pixel with.
18533
18534 * dispextern.h (struct glyph_string): New member padding_p.
18535
18536 * w32font.c (w32font_draw): Pay attention to s->padding_p.
18537
18538 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
18539
18540 * xfont.c (xfont_draw): Pay attention to s->padding_p.
18541
18542 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
18543
18544 * font.c: If the font driver doesn't have `shape' function, return Qnil.
18545
185462008-02-25 Jason Rumney <jasonr@gnu.org>
18547
18548 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
18549
185502008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
18551
18552 Allow fine-grained image-cache flushing.
18553 * dispextern.h (struct image): Add `dependencies' field.
18554 (clear_image_caches): Change arg to Lisp_Object.
18555 * image.c (make_image): Initialize `dependencies' field.
18556 (clear_image_cache): Change arg to allow fine-grained flushing.
18557 Perform the flush even if image-cache-eviction-delay is nil.
18558 (clear_image_caches): Change arg to Lisp_Object.
18559 (Fclear_image_cache): Expand meaning of the argument.
18560 (mark_image): Mark `dependencies' field.
18561 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
18562 (lface_hash): Use XHASH rather than XFASTINT.
18563 (face_at_buffer_position): Fix int -> EMACS_INT position.
18564 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
18565 (select_frame_for_redisplay): Remove code duplication.
18566 (redisplay_internal): Adapt arg to call to clear_image_caches.
18567
185682008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
18569
18570 * s/vms4-0.h:
18571 * s/vms4-2.h:
18572 * s/vms4-4.h:
18573 * s/vms5-5.h: Remove, unused.
18574
18575 * s/irix5-2.h:
18576 * s/irix6-0.h:
18577 * s/riscos5.h:
18578 * s/mach-bsd4-3.h:
18579 * m/mips4.h: Remove files for obsolete systems.
18580
18581 * Makefile.in:
18582 * filelock.c:
18583 * unexmips.c:
18584 * m/hp9000s300.h:
18585 * m/iris4d.h:
18586 * s/aix3-1.h:
18587 * s/hpux.h:
18588 * s/msdos.h:
18589 * s/usg5-0.h:
18590 * s/usg5-2-2.h:
18591 * s/usg5-2.h:
18592 * s/usg5-3.h: Remove references to obsolete variables.
18593
18594 * s/irix5-0.h: Remove, move all the contents ...
18595 * s/irix6-5.h: ... here. Simplify.
18596 * config.in: Regenerate.
18597
185982008-02-24 Jason Rumney <jasonr@gnu.org>
18599
18600 * w32term.c (x_draw_glyph_string_background): Clear the background
18601 manually when cleartype is in use.
18602 (x_draw_glyph_string_foreground): Draw text transparently when
18603 cleartype is in use.
18604
18605 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
18606 a font into it unless we have to.
18607
186082008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18609
18610 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
18611 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 18612
aac0c6e3
MR
186132008-02-18 Jason Rumney <jasonr@gnu.org>
18614
18615 * w32fns.c (Fw32_shell_execute): Encode parameters.
18616
186172008-02-09 Eli Zaretskii <eliz@gnu.org>
18618
18619 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
18620
186212008-02-05 Juanma Barranquero <lekktu@gmail.com>
18622
18623 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
18624
186252008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
18626
18627 * xterm.c (x_set_offset): Don't change the gravity if
18628 CHANGE_GRAVITY is -1.
18629
186302008-02-23 Chong Yidong <cyd@stupidchicken.com>
18631
18632 * fileio.c (auto_save_error_occurred): New var.
18633 (auto_save_error): Set it.
18634 (Fdo_auto_save): Don't overwrite the error message if an auto-save
18635 error occurred.
18636
186372008-02-23 Eli Zaretskii <eliz@gnu.org>
18638
18639 * w32.c (globals_of_w32): Add initializations for
18640 g_b_init_get_sid_sub_authority and
18641 g_b_init_get_sid_sub_authority_count.
18642
186432008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
18644
18645 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
18646 (font_parse_xlfd): Use them for sanity check.
18647 (Finternal_set_font_style_table): Make sure the table is bijective.
18648
18649 Consolidate the image_cache to the terminal struct.
18650 * termhooks.h (P_): Remove redundant def.
18651 (struct terminal): New field `image_cache'.
18652 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
18653 of FRAME_X_IMAGE_CACHE.
18654 * xterm.h (struct x_display_info): Remove image_cache field.
18655 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18656 * w32term.h (struct w32_display_info): Remove image_cache field.
18657 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18658 * macterm.h (struct mac_display_info): Remove image_cache field.
18659 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18660 * xterm.c (x_term_init):
18661 * w32term.c (w32_term_init):
18662 * macterm.c (mac_term_init): Set the image_cache in the terminal.
18663 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
18664 Remove declarations.
18665 (clear_image_caches, mark_image_cache): New declarations.
18666 * xfaces.c (clear_face_cache):
18667 * xdisp.c (redisplay_internal): Use clear_image_caches.
18668 * image.c (clear_image_cache): Don't check that a frame is on
18669 a window-system before checking if it shares the same cache.
18670 (clear_image_caches): New function.
18671 (Fclear_image_cache): Use it.
18672 (mark_image): Move from allo.c.
18673 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
18674 * alloc.c (mark_image, mark_image_cache): Move to image.c.
18675 (mark_object): Don't call mark_image_cache for frames.
18676 (mark_terminals): Call mark_image_cache.
18677
18678 * lisp.h (Fdelete_terminal): Declare.
18679
18680 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
18681 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
18682 wrong_type_argument.
18683
186842008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
18685
18686 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
18687 malayalam.el, and tamil.el. Add sinhala.el.
18688
186892008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
18690
18691 * xterm.c (x_connection_closed): Consolidate identical tests.
18692 (x_delete_terminal): Don't crash if called via x_connection_closed.
18693
186942008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
18695
18696 * xdisp.c (decode_mode_spec): New arg string.
18697 (display_mode_element): Adjust for the above change.
18698
186992008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18700
18701 * callint.c (Fcall_interactively): Use AREF.
18702
187032008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
18704
18705 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
18706
187072008-02-18 Jan Djärv <jan.h.d@swipnet.se>
18708
18709 * xfns.c (Fx_show_tip): Set string to " " if empty.
18710
187112008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
18712
18713 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
18714 with Qt.
18715
187162008-02-17 Kenichi Handa <handa@m17n.org>
18717
18718 * ftfont.c (ftfont_shape): Return Lispy number.
18719
18720 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
18721 for GCs.
18722 (Finternal_set_font_selection_order): Call font_update_sort_order
18723 only when enable_font_backend is set.
18724 (realize_x_face): Set face->font_info to that of default face only
18725 when enable_font_backend is set.
18726
18727 * xdisp.c (handle_composition_prop): Set it->c to the fist
18728 character of the composed region.
18729 (fill_composite_glyph_string): Set base_face->font_info to
18730 s->font_info. Get a face for ascii from base_face->ascii_face.
18731 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
18732 with a face already decided.
18733 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
18734 non-negative.
18735 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
18736 call font_prepare_composition unconditionally.
18737
18738 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
18739
18740 * xterm.h (struct x_display_info): New member font.
18741
18742 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
18743 (x_set_mouse_face_gc, x_new_font): Likewise.
18744 (x_term_init): Setup display_info->font.
18745 (x_delete_terminal): Free display_info->font.
18746
18747 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
18748
18749 * ftxfont.c (ftxfont_default_fid): Delete it.
18750 (ftxfont_open): Set xfont->fid to 0.
18751 (ftxfont_end_for_frame): Clear data specific to the frame and the
18752 font-driver.
18753
18754 * xftfont.c (xftfont_default_fid): Delete it.
18755 (xftfont_open): Set xfont->fid to 0.
18756
18757 * fontset.c (FONTSET_OBJLIST): New macro.
18758 (fontset_find_font): Update font-object list of the fontset.
18759 (free_realized_fontset): New function.
18760 (free_face_fontset): Call free_realized_fontset.
18761 (Ffont_info): Call font_close_object only when enable_font_backend
18762 is set.
18763
18764 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
18765 [HAVE_NTGUI]: Include w32term.h.
18766 [MAC_OS]: Include macterm.ch.
18767 (font_otf_ValueRecord): Use make_number.
18768 (font_finish_cache): Fix handling of reference count.
18769 (font_clear_cache): Update num_fonts.
18770 (font_open_entity): Update smallest_char_width and
18771 smallest_font_height of the frame.
18772 (font_close_object): Update num_fonts.
18773 (Fclear_font_cache): Fix finding the target cache data.
18774
187752008-02-16 Glenn Morris <rgm@gnu.org>
18776
18777 * fontset.c (Finternal_char_font): Fix compilation warning.
18778
187792008-02-16 Eli Zaretskii <eliz@gnu.org>
18780
18781 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
18782 instead of char arrays. Enlarge the size of array passed to
18783 get_token_information.
18784
18785 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
18786 warnings.
18787
187882008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
18789
18790 * .gdbinit: Don't set `args', it breaks gdb --args.
18791
187922008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
18793
18794 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
18795 within a narrowed buffer.
18796
187972008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
18798
18799 * coding.c (decode_coding_object, encode_coding_object):
18800 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
18801
188022008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
18803
18804 * coding.c (coding_set_destination): Use BEG_BYTE rather than
18805 hardcoding 1.
18806 (detect_coding_system):
18807 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
18808 (string_char_to_byte, string_byte_to_char, insert_from_gap):
18809 * insdel.c (insert_from_gap):
18810 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
18811 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
18812 (string_to_multibyte):
18813 * character.c (chars_in_text, multibyte_chars_in_text):
18814 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
18815
18816 * character.h (FETCH_STRING_CHAR_ADVANCE)
18817 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
18818 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
18819 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
18820
18821 * casefiddle.c (casify_region): Only call after-change and composition
18822 functions on the part of the region that was changed.
18823
18824 * keyboard.c (read_avail_input):
18825 * frame.c (Fdelete_frame): Call Fdelete_terminal.
18826
188272008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18828
18829 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
18830 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
18831
188322008-02-11 Juanma Barranquero <lekktu@gmail.com>
18833
18834 * w32menu.c (push_submenu_start, push_submenu_end)
18835 (push_left_right_boundary, push_menu_pane, push_menu_item):
18836 * keyboard.c (read_key_sequence): Don't pass args with side effects
18837 to AREF, it fails when compiling with -DENABLE_CHECKING.
18838
188392008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
18840
18841 * Makefile.in (${lispsource}international/charprop.el):
18842 Delete this target.
18843
18844 * search.c (boyer_moore): Fix incorrect synching of the trunk and
18845 emacs-unicode-2.
18846
188472008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18848
18849 * terminal.c (Fdelete_terminal): Clean up the `force' path.
18850
188512008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18852
18853 * frame.c (Qnoelisp): New symbol.
18854 (syms_of_frame): Initialize it.
18855 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
18856 harmless Elisp code, from a strong `force' from x_connection_closed.
18857 * frame.h (Qnoelisp): Declare.
18858 * xterm.c (x_connection_closed): Pass `noelisp'.
18859
18860 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
18861 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
18862 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
18863 rather than `int' for the type of `type'.
18864
188652008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
18866
18867 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
18868
18869 * Makefile.in (GNUC): Remove support for gcc-1.x.
18870
188712008-02-10 Richard Stallman <rms@gnu.org>
18872
18873 * lisp.h (ASET): Use AREF, not ASLOT.
18874
188752008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18876
18877 * lisp.h (ASET): Check bounds.
18878
188792008-02-10 Glenn Morris <rgm@gnu.org>
18880
18881 * buffer.c (mode-name): Doc fix.
18882
188832008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18884
18885 * Makefile.in:
18886 * emacs.c:
18887 * gmalloc.c:
18888 * keyboard.c:
18889 * lisp.h:
18890 * m/ibm370aix.h:
18891 * process.c:
18892 * regex.c:
18893 * s/hpux.h:
18894 * sysdep.c:
18895 * sysselect.h:
18896 * systty.h:
18897 * unexec.c:
18898 * w32term.c:
18899 * xsmfns.c:
18900 * xterm.c: Remove code that deals with obsolete variables.
18901
18902 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
18903
18904 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
18905 nothing else needs it anymore.
18906
189072008-02-09 Eli Zaretskii <eliz@gnu.org>
18908
18909 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
18910 instead of unibyte_char_to_multibyte.
18911
189122008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18913
18914 * s/gnu-linux.h: Remove commented out code.
18915
18916 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
18917
18918 * Makefile.in: Update what RMS says about using autoconf.
18919 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
18920 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
18921 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
18922 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
18923
189242008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
18925
18926 * keymap.c (Fkey_description): Move side effect outside of macro call.
18927
18928 * xfaces.c (Finternal_make_lisp_face):
18929 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
18930
18931 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
18932 (syms_of_fontset): Use ASET.
18933
18934 * fns.c (concat): Move side effect outside of macro call.
18935 (hash_clear): Use ASET.
18936
189372008-02-08 Richard Stallman <rms@gnu.org>
18938
18939 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
18940 If FORCE, and frame has a surrogate minibuffer for another frame,
18941 delete the other frame first.
18942
189432008-02-07 Timo Savola <timo.savola@iki.fi>
18944
18945 * xterm.c (x_detect_focus_change): Handle embed client message.
18946 (handle_one_xevent): Ditto.
18947 (handle_one_xevent): If embedded and we get a button press/release,
18948 request focus.
18949 (xembed_set_info, xembed_send_message): New functions.
18950 (x_make_frame_visible): Call xembed_set_info if embedded.
18951 (x_make_frame_invisible): Call xembed_set_info if embedded.
18952 (x_term_init): Initialize Xatom_XEMBED.
18953 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
18954 (x_iconify_frame): Ditto.
18955
18956 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
18957 (enum xembed_info, enum xembed_message, enum xembed_focus)
18958 (enum xembed_modifier, enum xembed_accelerator): New.
18959 (xembed_set_info, xembed_send_message): Declare.
18960 (FRAME_X_EMBEDDED_P): New.
18961
18962 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
18963 gtk_plug_new.
18964
18965 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
18966 window ID of a frame.
18967 (x_window): Reparent frame if embedded.
18968 (Fx_create_frame): Don't set border width if embedded.
18969
18970 * emacs.c (USAGE3): Add --parent-id.
18971 (standard_args): Ditto.
18972
189732008-02-07 Jan Djärv <jan.h.d@swipnet.se>
18974
18975 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
18976
189772008-02-07 Jim Meyering <meyering@redhat.com>
18978
18979 Use "do...while (0)", not "if (1)...else" in macro definitions.
18980 The latter provokes a warning from gcc about the empty else, when
18981 followed by ";". Also, without that trailing semicolon, it would
18982 silently swallow up any following statement.
18983 * syntax.h (SETUP_SYNTAX_TABLE)
18984 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
18985 * buffer.h (DECODE_POSITION): Likewise.
18986 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
18987 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
18988 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
18989 (FETCH_CHAR_ADVANCE): Likewise.
18990 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
18991
189922008-02-07 Jim Meyering <meyering@redhat.com>
18993
18994 * lread.c [lint]: Don't include <sys/inode.h>.
18995
189962008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
18997
18998 * xselect.c (x_handle_dnd_message):
18999 * xmenu.c (digest_single_submenu, xmenu_show):
19000 * xdisp.c (with_echo_area_buffer_unwind_data)
19001 (format_mode_line_unwind_data, unwind_format_mode_line)
19002 (display_menu_bar):
19003 * eval.c (Ffetch_bytecode):
19004 * doc.c (store_function_docstring):
19005 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
19006 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
19007 * buffer.c (add_overlay_mod_hooklist): Use ASET.
19008
190092008-02-07 Kenichi Handa <handa@m17n.org>
19010
19011 * ftxfont.c (ftxfont_open): Don't set
19012 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
19013
19014 * ftfont.c (ftfont_open): Fix previous change.
19015
190162008-02-06 Jason Rumney <jasonr@gnu.org>
19017
19018 * w32font.c (w32font_text_extents): Fill in lbearing metric.
19019 Use cached metrics for ASCII characters.
19020 (w32font_open_internal): Don't set font's owning_frame.
19021 Cache metrics for ASCII characters.
19022
19023 * w32font.h (struct w32font_info): Add ascii_metrics.
19024 Remove owning_frame.
19025
190262008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
19027
19028 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
19029 to negative value.
19030
19031 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
19032
19033 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
19034
19035 * charset.c (syms_of_charset): Set QCtest and Qeq.
19036
190372008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
19038
19039 * process.c (Fstart_process):
19040 * callproc.c (Fcall_process): Handle the case where
19041 Funhandled_file_name_directory returns nil.
19042
19043 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
19044 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
19045 * font.c (check_gstring): Use them and AREF to access the vector before
19046 we know it's really a gstring.
19047 (Ffont_shape_text): Fix typo.
46e722a9 19048 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
19049
19050 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
19051 Declare.
19052
19053 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
19054
190552008-02-05 Jason Rumney <jasonr@gnu.org>
19056
19057 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
19058 Set smallest_font_height and smallest_char_width in display info.
19059
190602008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
19061
19062 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
19063
190642008-02-05 Miles Bader <miles@gnu.org>
19065
19066 * xfaces.c (get_lface_attributes, merge_named_face)
19067 (lookup_named_face, lookup_derived_face, realize_named_face):
19068 Revert 2008-02-01 change by cyd@stupidchicken.com.
19069
190702008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
19071
19072 * fontset.c (Ffontset_info): Handle the case of inhibitting the
19073 fallback fonts.
19074 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
19075
190762008-02-04 Jason Rumney <jasonr@gnu.org>
19077
19078 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
19079 set full_name.
19080 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
19081
190822008-02-03 Jason Rumney <jasonr@gnu.org>
19083
19084 * makefile.w32-in (OBJ1): Include font.o here.
19085 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
19086
190872008-02-02 Jason Rumney <jasonr@gnu.org>
19088
19089 * makefile.w32-in (temacs): Bump EMHEAP to 21.
19090
190912008-02-01 Jason Rumney <jasonr@gnu.org>
19092
19093 * s/cygwin.h: Define VIRT_ADDR_VARIES.
19094
19095 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
19096
190972008-02-01 Andreas Schwab <schwab@suse.de>
19098
19099 * Makefile.in (shortlisp, lisp): Update for rename of
19100 ../lisp/language/myanmar.el.
19101
191022008-02-01 Chong Yidong <cyd@stupidchicken.com>
19103
19104 * xfaces.c (get_lface_attributes): Delete function.
19105 (merge_named_face, lookup_named_face, lookup_derived_face)
19106 (realize_named_face): Call lface_from_face_name directly, and use
19107 the fact that merge_face_vectors does not alter its FROM argument.
19108
191092008-02-01 Jason Rumney <jasonr@gnu.org>
19110
19111 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
19112 input in the default locale. Handle non-Unicode multibyte input.
19113
191142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19115
19116 * fontset.c (reorder_font_vector): Exclude nil elements from the
19117 font group. Don't try multiple fonts.
19118 (fontset_font): Adjust for the above change.
19119 (Finternal_char_font): Return nil if the found font doesn't
19120 contain the character ch.
19121
19122 * Makefile.in (lisp, shortlisp): Add cham.el.
19123
191242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19125
19126 * font.h (FONTP): Make it return 1 also for a font-object.
19127
19128 * .gdbinit (xfontset): New function.
19129
19130 * font.c (font_find_for_lface): Check if the character C is
19131 supported or not only for the first font.
19132
19133 * fontset.c (reorder_font_vector): Fix typo.
19134 (fontset_find_font): Don't add a font-spec specifying a script.
19135 Use 0 (not Qt) for the indication of empty font-group. Change the
19136 format of RFONT-DEF. Return Qt if no font in the font-group
19137 support the character.
19138 (fontset_font): Adjust for the above change. If no font was
19139 found the character, remember that.
19140 (face_for_char): Adjust for the change of RFONT-DEF.
19141 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
19142 no font for the target.
19143 (Finternal_char_font): Adjust for the change of RFONT-DEF.
19144
191452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19146
19147 * font.c (font_load_for_face): Handle the case that the font in
19148 face->lface is a string.
19149
191502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19151
19152 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
19153
191542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19155
19156 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
19157 Fix previous change. If the frame is not on a window system,
19158 signal an error.
19159
191602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19161
19162 * coding.c (decode_coding_object, encode_coding_object): Adjust
19163 marker positions after conversion.
19164
19165 * lisp.h (struct Lisp_Marker): New member need_adjustment.
19166
191672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19168
19169 * font.c (font_find_for_lface): Fix the handling of the return
19170 value of font_has_char.
19171 (Ffont_shape_text): Fix previous change.
19172
19173 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
19174 (fontset_ref_and_range): Delete it.
19175 (fontset_find_font): Call char_table_ref_and_range instead of
19176 FONTSET_REF_AND_RANGE.
19177 (make_fontset): Don't setup font groups of Latin here.
19178 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
19179 (new_fontset_from_font): Make the specified font the default for
19180 all Latin characters.
19181
191822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19183
19184 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
19185 is on a window system before accessing the fontset of the frame.
19186
191872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19188
19189 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
19190
19191 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
19192 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
19193
19194 * font.c (Ffont_shape_text): If the font driver doesn't have a
19195 shaper function, make zero-width glyphs to have at least one-pixel
19196 width. Fix setting of `to' field of glyphs.
19197
191982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19199
19200 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
19201 glyphs.
19202
19203 * font.h (struct font_driver): Improve docstring of member `shape'.
19204
192052008-02-01 Kenichi Handa <handa@m17n.org>
19206
19207 * composite.c (syms_of_composite): Fix docstring of
19208 auto-composition-function.
19209
19210 * font.h (LGLYPH_SIZE): New macro.
19211
19212 * font.c (Ffont_fill_gstring): Stop filling when a character not
19213 supported by the font is found.
19214 (Ffont_shape_text): When a shape callback function returns nil,
19215 try at most two more times with larger gstring.
19216 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
19217
19218 * xdisp.c (handle_auto_composed_prop): Change the argument to
19219 auto-composition-function.
19220
19221 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
19222 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
19223 Lispy glyph and store it in the lgstring.
19224
19225 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
19226
19227 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
19228
192292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19230
19231 * font.c (Ffont_shape_text): Avoid unnecessary composition.
19232
19233 * fontset.c (Vfont_encoding_charset_alist): New variable.
19234 (syms_of_fontset): DEFVAR it.
19235 (reorder_font_vector, fontset_find_font): Optimize for the case of
19236 no need of reordering.
19237 (face_for_char): Map the charset property by
19238 Vfont_encoding_charset_alist.
19239
192402008-02-01 Jason Rumney <jasonr@gnu.org>
19241
19242 * w32font.c (logfonts_match): Don't check adstyle here.
19243 (font_matches_spec): Check here against physical font instead.
19244 (add_font_entity_to_list): Avoid some substitutions.
19245
19246 * font.c (font_parse_fcname): Default weight and slant to normal.
19247 (font_score): Prefer normal fonts if weight or slant unspecified.
19248 (font_score) [WINDOWSNT]: Scale weight difference down to closer
19249 match freetype scores.
19250
192512008-02-01 Jason Rumney <jasonr@gnu.org>
19252
19253 * w32font.c (w32font_text_extents): Don't use the frame stored in the
19254 font, as it may have been deleted.
19255 (w32_enumfont_pattern_entity): Map generic family to adstyle using
19256 most common hyphenless variation.
19257 (logfonts_match): Check generic family.
19258 (font_matches_spec): Don't check generic family here.
19259 (fill_in_logfont): Set generic family based on adstyle.
19260
19261 * w32font.h (w32font_get_cache): Update declaration.
19262
192632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19264
19265 * ftfont.c (ftfont_get_cache): Adjust the argument type.
19266
19267 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
19268 If none of the new drivers are available, call font_update_drivers
19269 with the old drivers.
19270
19271 * w32font.c (w32font_get_cache): Adjust the argument type.
19272
19273 * xfont.c (xfont_get_cache): Adjust the argument type.
19274
19275 * font.h (struct font_driver): Change argument type of get_cache.
19276
19277 * xftfont.c (xftfont_start_for_frame): Delete prototype.
19278
19279 * font.c (Ffont_get): Fix arguments to Fassoc.
19280 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
19281 (font_clear_cache): New function.
19282 (font_list_entities, font_matching_entity): Use font_get_cache.
19283 (font_update_drivers): Call font_clear_cache when finishing a driver.
19284
19285 * fontset.c (fontset_find_font): Fix previous change.
19286
192872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19288
19289 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
19290 dpyinfo->font_table.
19291 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
19292 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
19293
19294 * font.c (font_at): Handle the case that the arg C is negative.
19295 Handle the unibyte case.
19296 (Ffont_at): Call font_at with the arg C -1.
19297
19298 * xdisp.c (handle_auto_composed_prop): Don't get a character at
19299 the position here, and call font_at with the arg C -1.
19300 Don't check the range of the existing composition at the point.
19301
193022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19303
19304 * fontset.c (fontset_add): New args charset_id and family.
19305 Change caller.
19306 (load_font_get_repertory, fontset_find_font): Assume that
19307 font_spec is always a font-spec object.
19308 (Fset_fontset_font): Always store a font-spec object in a fontset.
19309
19310 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
19311 instead of get_property_and_range.
19312
193132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19314
19315 * xftfont.c (struct xftfont_info): Delete the member ft_face.
19316 (xftfont_open): Don't keep locking face.
19317 (xftfont_close): Don't unlock face.
19318 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
19319
19320 * fontset.c (fontset_find_font): Don't prefer a font of
19321 supplementary charset.
19322
193232008-02-01 Kenichi Handa <handa@m17n.org>
19324
19325 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
19326 script, langsys_tag to langsys, new member script.
19327 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 19328 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
19329 listing to the script specified in that property. Fix arg to
19330 OTF_check_features.
19331
193322008-02-01 Jason Rumney <jasonr@gnu.org>
19333
19334 * w32font.h: New file.
19335
19336 * w32font.c: Include it.
19337 (struct w32font_info): Add owning_frame field. Move to w32font.h.
19338 (w32font_open): Set owning_frame.
19339 (w32font_text_extents): Use owning_frame.
19340 (struct font_callback_data): Add opentype_only field.
19341 (add_font_entity_to_list): Use it to filter fonts.
19342 Don't check against full name.
19343 (w32font_list_internal): New function.
19344 (w32font_list): Use it.
19345 (w32font_match_internal): New function.
19346 (w32font_match): Use it.
19347 (w32font_open_internal): New function.
19348 (w32font_open): Use it.
19349 (w32font_get_cache, w32font_close, w32font_has_char)
19350 (w32font_encode_char, w32font_text_extents, w32font_draw):
19351 Make non-static.
19352
19353 * makefile.w32-in (w32font.o): Depend on w32font.h.
19354
193552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19356
19357 * charset.c (Fdefine_charset_internal): Record a supplementary
19358 charset at the tail of Vcharset_order_list.
19359
19360 * font.c (Ffont_shape_text): Fix the return value.
19361
19362 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
19363
19364 * xdisp.c (handle_auto_composed_prop): Fix previous change.
19365
193662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19367
19368 * ftfont.c (struct OpenTypeSpec): New struct.
19369 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
19370 (ftfont_get_open_type_spec): New function.
19371 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
19372
19373 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
19374
193752008-02-01 Jason Rumney <jasonr@gnu.org>
19376
19377 * w32font.c (add_font_entity_to_list): Compare only the beginning
19378 of full name.
19379
193802008-02-01 Kenichi Handa <handa@m17n.org>
19381
19382 * xdisp.c (handle_auto_composed_prop): Simplify the code.
19383 Never return HANDLED_RECOMPUTE_PROPS.
19384
193852008-02-01 Kenichi Handa <handa@m17n.org>
19386
19387 * font.c (font_gstring_produce): Delete it.
19388
19389 * composite.h (COMPOSITION_METHOD):
19390 Handle COMPOSITION_WITH_GLYPH_STRING.
19391
193922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19393
19394 * xfont.c (Qx): Delete.
19395 (syms_of_xfont): Don't initialize Qx.
19396
19397 * composite.h (enum composition_method):
19398 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
19399
194002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19401
19402 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
19403 (choose_face_font): Accept new form of font-spec.
19404
19405 * frame.h (font_driver_list): Declare it unconditionally.
19406 (struct frame): Define members font_driver_list and font_data_list
19407 unconditionally.
19408
19409 * fontset.c: Include "font.h" unconditionally.
19410 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
19411 (Fset_fontset_font): Accept a font-spec object.
19412
19413 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
19414 PIXEL_SIZE part a wild card.
19415
19416 * dispextern.h (struct glyph_string): Define members clip and
19417 num_clips unconditionally.
19418 (struct face): Define members font_info and extra unconditionally.
19419
19420 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
19421 ftfont_info only when HAVE_LIBOTF is defined.
19422
194232008-02-01 Andreas Schwab <schwab@suse.de>
19424
19425 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
19426 and end.
19427
194282008-02-01 Jason Rumney <jasonr@gnu.org>
19429
19430 * w32font.c (w32font_driver): Add new fields.
19431
194322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19433
19434 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
19435 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
19436 (LIBES): Add @M17N_FLT_CFLAGS@.
19437
19438 * composite.c (compose_text): Don't treat the new style
19439 composition specially.
19440
19441 * emacs.c (main): Call syms_of_font unconditionally.
19442
19443 * font.h (FONT_ENTITY_NOT_LOADABLE)
19444 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
19445 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
19446 (struct font_driver): New member shape.
19447 (font_registry_charsets): Extern it.
19448 (font_find_for_lface, font_prepare_composition): Adjust prototype.
19449 (font_otf_capability, font_drive_otf): Delete their externs.
19450
19451 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
19452 (font_charset_alist, font_registry_charsets): Move from xfont.c
19453 and rename.
19454 (font_prop_validate_otf): New function.
19455 (font_property_table): Register it for QCotf.
19456 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
19457 (font_drive_otf): Delete.
19458 (font_prepare_composition): New arg F. Adjust for the change of
19459 lispy gstring.
19460 (font_find_for_lface): New arg C.
19461 (font_load_for_face): Adjust for the change of font_find_for_lface.
19462 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
19463 lispy gstring.
19464 (Ffont_shape_text): New function.
19465 (Fopen_font): If the font size is not given, use 12-pixel.
19466 (Ffont_at): New arg STRING.
40b1a3a9 19467 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
19468 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
19469 conditionally.
19470
19471 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
19472 fonts of the same font-spec. Change the format of RFONT-DEF.
19473 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
19474 Adjust for the change of RFONT-DEF.
19475 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
19476
19477 * ftfont.h: New file.
19478
19479 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
19480 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19481 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19482 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
19483 font_otf_capability and font_drive_otf, set ftfont_shape.
19484 (ftfont_list): Adjust for the change of :otf property value.
19485 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
19486 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
19487 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
19488 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19489 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
19490 (otf_gstring, gstring, m17n_flt_initialized): New variables.
19491
19492 * w32term.c (x_draw_composite_glyph_string_foreground):
19493 Adjust for the change of lispy gstring.
19494
19495 * xdisp.c (handle_composition_prop): Adjust for the change of
19496 lispy gstring. Call a function for auto-composition with the
19497 third arg it->window.
19498 (fill_composite_glyph_string): Adjust for the change of lispy string.
19499 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
19500
19501 * xfaces.c (set_font_frame_param): Adjust for the change of
19502 font_find_for_lface.
19503
19504 * xfont.c (x_font_charset_alist): Move to font.c and rename.
19505 (xfont_registry_charsets): Likewise. Change caller.
19506 (syms_of_xfont): Don't handle x_font_charset_alist.
19507
19508 * xftfont.c: Include "ftfont.h".
19509 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19510 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19511 (xftfont_close) [HAVE_LIBOTF]: Close otf.
19512 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19513 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
19514 Set xftfont_driver.shape to xftfont_shape.
19515
19516 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19517 the change of lispy gstring.
19518
195192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19520
19521 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
19522
195232008-02-01 Jason Rumney <jasonr@gnu.org>
19524
19525 * w32font.c (w32font_draw): Fill background manually.
19526
195272008-02-01 Jason Rumney <jasonr@gnu.org>
19528
19529 * font.c (Qfontp): Remove unused symbol.
19530 (QCantialias): New symbol.
19531 (syms_of_font): Define it.
19532 (font_property_table): Set a validator for QCantialias.
19533
19534 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
19535 Define if not already.
19536 (QCfamily): Share with xfaces.c.
19537 (Qstandard, Qsubpixel, Qnatural): New symbols.
19538 (syms_of_w32font): Define them. Don't define QCfamily here.
19539 (w32_antialias_type, lispy_antialias_type): New functions.
19540 (w32_enumfont_pattern_entity): New arg requested_font.
19541 Set antialias parameter if non-default was requested.
19542 (fill_in_logfont): Fill in lfQuality if :antialias specified.
19543
195442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19545
19546 * lread.c (read1): Undo the previous change.
19547
195482008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
19549
19550 * frame.c (Fdelete_frame): Call font_update_drivers only when
19551 USE_FONT_BACKEND is defined.
19552
195532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19554
19555 * font.h (struct font_bitmap): New member bits_per_pixel.
19556 (struct font_driver): New members start_for_frame and end_for_frame.
19557 (struct font_data_list): New struct.
19558 (font_put_frame_data, font_get_frame_data): Extern them.
19559
19560 * frame.h (struct frame): New member font_data_list.
19561
19562 * font.c (font_update_drivers): Call driver->start_for_frame and
19563 driver->end_for_frame at proper timings.
19564 (font_put_frame_data, font_get_frame_data): New functions.
19565 (Ffont_spec): Add usage in the docstring.
19566
19567 * frame.c (make_frame): Initialize f->font_data_list to NULL.
19568 (Fdelete_frame): Call font_update_drivers.
19569
19570 * xftfont.c (struct xftface_info): Delete the member xft_draw.
19571 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
19572 (xftfont_get_xft_draw): New function.
19573 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
19574 (xftfont_end_for_frame): New function.
19575 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
19576
19577 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
19578 Change argument. Cache GCs in the per-frame data.
19579 (struct ftxfont_frame_data): New struct.
19580 (ftxfont_draw_bitmap): New arg gc_fore and flush.
19581 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
19582 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
19583 (ftxfont_end_for_frame): New function.
19584 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
19585
19586 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
19587
195882008-02-01 Kenichi Handa <handa@m17n.org>
19589
19590 * xselect.c (Vselection_coding_system)
19591 (Vnext_selection_coding_system): Delete them.
19592 (syms_of_xselect): Don't declare selection-coding-system and
19593 next-selection-coding-system. They are declared in select.el.
19594
195952008-02-01 Jason Rumney <jasonr@gnu.org>
19596
19597 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
19598
19599 * w32fns.c: Include imm.h.
19600 (get_composition_string_fn, get_ime_context_fn): New optional
19601 system functions.
19602 (globals_of_w32fns): Load them from imm32.dll.
19603 (ignore_ime_char): New flag.
19604 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
19605 WM_IME_ENDCOMPOSITION messages.
19606
19607 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
19608 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
19609
196102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19611
19612 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
19613 (READCHAR_REPORT_MULTIBYTE): New macro.
19614 (readchar): New 2nd arg MULTIBYTE.
19615 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
19616 Make symbol's name multibyte according to the multibyteness of the
19617 source.
19618
196192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19620
19621 * xfaces.c (face_for_overlay_string): Call lookup_face with
19622 correct arguments (fix of synching with the trunk).
19623
196242008-02-01 Kenichi Handa <handa@m17n.org>
19625
19626 * font.c (font_prop_validate_symbol, font_prop_validate_style)
19627 (font_prop_validate_non_neg, font_prop_validate_spacing):
19628 Delete argument prop_index.
19629 (font_property_table): Change arguments to validater. Change Callers.
19630 (font_lispy_object): Delete.
19631 (font_at): Use font_find_object instead fo font_lispy_object.
19632
196332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19634
19635 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
19636 and file names.
19637
196382008-02-01 Jason Rumney <jasonr@gnu.org>
19639
19640 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
19641 (font_matches_spec): Remove debug output.
19642 (add_font_entity_to_list): Avoid using substituted fonts.
19643
196442008-02-01 Jason Rumney <jasonr@gnu.org>
19645
19646 * doc.c (Fsnarf_documentation):
19647 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
19648
196492008-02-01 Miles Bader <miles@gnu.org>
19650
19651 * dispextern.h (struct glyph_row): Only define "clip" field if
19652 HAVE_WINDOW_SYSTEM is defined.
19653
196542008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19655
19656 Fix up multi-tty merge.
19657
19658 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
19659 and indentation.
19660
19661 * xfaces.c (free_realized_face, clear_face_gcs):
19662 Include font_done_for_face in the input_blocked section, just in case.
19663
19664 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
19665 (get_char_face_and_encoding): Undo last change and remove the *other*
19666 duplicate definition (i.e. keep the one that's better scoped and that
19667 includes code for the font-backend).
19668
19669 * terminal.c (create_terminal): Default keyboard_coding to
19670 `no-conversion' and terminal_coding to `undecided'.
19671
19672 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
19673
19674 * fontset.c (free_realized_fontsets): Check that the table entry does
19675 contain a fontset before trying to compare it to `base'.
19676
19677 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
19678 syms_of_charset, and syms_of_coding earlier because init_window_once
19679 now needs Vcoding_system_hash_table to be setup.
19680
19681 * coding.h (default_buffer_file_coding): Remove.
19682
19683 * coding.c (default_buffer_file_coding): Remove.
19684 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
19685 than ->symbol, and use the terminal-local coding system.
19686 (syms_of_coding): Don't setup the coding-systems that are not
19687 terminal-local.
19688 (Fdefine_coding_system_internal): Use XCAR/XCDR.
19689
19690 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
19691 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
19692
19693 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
19694 in chartab.c and were re-added here by mistake.
19695 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
19696
19697 * doc.c (Fsnarf_documentation):
19698 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
19699 src to etc.
19700
19701 * ChangeLog.10: Add mistakenly removed entry.
19702
197032008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
19704
19705 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
19706
197072008-02-01 Miles Bader <miles@gnu.org>
19708
19709 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
19710 Add extra args to FACE_FOR_CHAR.
19711
197122008-02-01 Kenichi Handa <handa@m17n.org>
19713
19714 * keymap.c (where_is_internal_1): If key is a cons, store the copy
19715 in sequence.
19716
19717 * chartab.c (map_sub_char_table, map_char_table): If the range
19718 contains just one character, call the function with that character
19719 even if the depth is not 3.
19720
197212008-02-01 Jason Rumney <jasonr@gnu.org>
19722
19723 * w32font.c (w32font_text_extents): Calculate metrics for the
19724 whole string.
19725
197262008-02-01 Jason Rumney <jasonr@gnu.org>
19727
19728 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
19729
197302008-02-01 Jason Rumney <jasonr@gnu.org>
19731
19732 * w32term.c (x_set_glyph_string_clipping): Use
19733 get_glyph_string_clip_rects.
19734 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19735 Adjust for the change of struct glyph_string.
19736
19737 * w32font.c (w32font_draw): Do clipping here.
19738
197392008-02-01 Kenichi Handa <handa@m17n.org>
19740
19741 * xftfont.c (xftfont_draw): Adjust for the change of struct
19742 glyph_string.
19743
19744 * xterm.c (x_set_glyph_string_clipping): Use
19745 get_glyph_string_clip_rects.
19746 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19747 Adjust for the change of struct glyph_string.
19748
19749 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
19750 the resulting clip(s}.
19751 (expose_overlaps): Add arg r. Change callers. Set it to
19752 row->clip temporarily.
19753 (expose_window): Redraw rows overlapping the exposed area.
19754
19755 * dispextern.h (struct glyph_row): New member clip.
19756 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
19757 clip_height, new member clip, and num_clips.
19758
197592008-02-01 Kenichi Handa <handa@m17n.org>
19760
19761 * data.c (Fchar_or_string_p): Fix docstring.
19762
197632008-02-01 Kenichi Handa <handa@m17n.org>
19764
19765 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
19766 create a temporary XftDraw object.
19767
197682008-02-01 Kenichi Handa <handa@m17n.org>
19769
19770 * font.c (Ffontp): Fix docstring.
19771
19772 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
19773 strong evidence of ISO-2022.
19774
197752008-02-01 Kenichi Handa <handa@m17n.org>
19776
19777 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
19778 SYNTAX_ENTRY_FOLLOW_PARENT.
19779
197802008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19781
19782 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
19783 its type.
19784 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
19785 Update to the new type of weak_hash_tables and next_weak.
19786
19787 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
19788 a plain C pointer to Lisp_Hash_Table.
19789
19790 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
19791 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
19792 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
19793 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
19794 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
19795 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
19796 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
19797 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
19798 (GC_EQ): Remove since they've been identical to their non-GC_
19799 alter-egos ever since the markbit was eradicated.
19800
19801 * alloc.c:
19802 * buffer.c:
19803 * buffer.h:
19804 * data.c:
19805 * fileio.c:
19806 * filelock.c:
19807 * fns.c:
19808 * frame.h:
19809 * lisp.h:
19810 * macterm.c:
19811 * print.c:
19812 * process.c:
19813 * w32fns.c:
19814 * w32menu.c:
19815 * w32term.c:
19816 * xfns.c:
19817 * xmenu.c:
19818 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
19819
198202008-02-01 Kenichi Handa <handa@m17n.org>
19821
19822 * chartab.c (map_sub_char_table): Make it work for the top-level
19823 char-table. Fix handling of parent char-table.
19824 (map_char_table): Adjust for the above change.
19825
198262008-02-01 Jason Rumney <jasonr@gnu.org>
19827
19828 * w32font.c (Qgdi): Rename from Qw32.
19829
198302008-02-01 Jason Rumney <jasonr@gnu.org>
19831
19832 * w32bdf.c (get_quoted_string): Make function static.
19833
198342008-02-01 Kenichi Handa <handa@m17n.org>
19835
19836 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
19837 bigger ascent and descent than those of the font, use them as
19838 font's ascent and descent.
19839
198402008-02-01 Kenichi Handa <handa@m17n.org>
19841
19842 * Makefile.in (${lispsource}international/charprop.el): Move this
19843 target within "#ifdef HAVE_UNIDATA" and "#endif".
19844
198452008-02-01 Kenichi Handa <handa@m17n.org>
19846
19847 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
19848 (shortlisp): Add ../lisp/language/tai-viet.el.
19849
198502008-02-01 Ulrich Mueller <ulm@gentoo.org>
19851
19852 * Makefile.in (${lispsource}international/charprop.el): Depend on
19853 temacs${EXEEXT}.
19854
198552008-02-01 Jason Rumney <jasonr@gnu.org>
19856
19857 * w32font.c (w32font_close): Delete the GDI font object.
19858
19859 * w32menu.c: Include character.h.
19860
19861 * w32proc.c: Likewise.
19862
19863 * w32select.c: Likewise.
19864
19865 * makefile.w32-in (w32proc.o): Depend on character.h.
19866
198672008-02-01 Jason Rumney <jasonr@gnu.org>
19868
19869 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
19870
19871 * w32menu.c (syms_of_w32menu): Likewise.
19872
19873 * w32proc.c (syms_of_ntproc): Likewise.
19874
19875 * w32select.c (syms_of_w32select): Likewise.
19876
19877 * w32term.c (syms_of_w32term): Likewise.
19878
198792008-02-01 Jason Rumney <jasonr@gnu.org>
19880
19881 * w32font.c (w32font_draw): Delete brush after using it.
19882
198832008-02-01 Jason Rumney <jasonr@gnu.org>
19884
19885 * w32font.c (w32font_open): Don't set font_idx.
19886 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
19887 to font settings.
19888 (w32font_draw): Fill background explicitly.
19889
198902008-02-01 Jason Rumney <jasonr@gnu.org>
19891
19892 * w32term.c (w32_initialize): Don't call w32font_initialize.
19893
19894 * w32font.c (w32font_info): Remove subranges.
19895 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
19896 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
19897 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
19898 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
19899 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
19900 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
19901 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
19902 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
19903 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
19904 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
19905 New symbols.
19906 (font_callback_data): New struct.
19907 (w32font_list, w32font_match): Use it.
19908 (w32font_open): Don't populate subranges.
19909 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
19910 (w32font_encode_char): Always return unicode code-point as-is.
19911 (w32font_text_extents): Supply a transformation matrix to
19912 GetGlyphOutline. Never look up by glyph index. Avoid looping
19913 twice. Use unicode version of GetTexExtentPoint32 instead of
19914 glyph index version.
19915 (set_fonts_frame): Remove.
19916 (w32_enumfont_pattern_entity): Add frame parameter, use it to
19917 set frame parameter. Use backward compatible fake foundries.
19918 Save generic family in extra slot under QCfamily. Make width slot
19919 constant. Save QCspacing value. Save list of scripts instead of
19920 binary subranges.
19921 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
19922 (add_font_entity_to_list): Use font_callback_data struct. Filter
19923 unwanted fonts.
19924 (add_one_font_entity_to_list): Use font_callback_data struct.
19925 (w32_registry): Default to iso10646_1.
19926 (fill_in_logfont): Use dpi from extra slot. Don't bother with
19927 string font registries. Don't fill in font name if it is a generic
19928 family name, fill family instead. Use spacing, family and script
19929 extra info to fill pitch, family and charset fields.
19930 (list_all_matching_fonts): Use font_callback_data struct.
19931 (unicode_range_for_char): Remove.
19932 (font_supported_scripts): New function.
19933 (w32font_initialize): Remove.
19934 (syms_of_w32font): Update which symbols are defined.
19935
199362008-02-01 Jason Rumney <jasonr@gnu.org>
19937
19938 * font.c (font_pixel_size): Reverse assq_no_quit args.
19939
19940 * w32term.h (FONT_WIDTH): Report max width, not average.
19941 (FONT_MAX_WIDTH): Remove.
19942 (FONT_AVG_WIDTH): New macro.
19943
19944 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
19945 redefinition of FONT_WIDTH.
19946
19947 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
19948 (w32_cache_char_metrics): Use FONT_WIDTH.
19949
19950 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
19951
199522008-02-01 Jason Rumney <jasonr@gnu.org>
19953
19954 * w32font.c (w32font_open): Make lfHeight negative.
19955
19956 * w32fns.c (x_default_font_parameter): Use new style font name.
19957 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
19958
199592008-02-01 Jason Rumney <jasonr@gnu.org>
19960
19961 * w32font.c (QCsubranges): New symbol.
19962 (w32font_open, w32font_has_char): Get subranges from subproperty
19963 of extra.
19964 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
19965 (syms_of_w32font): Define :subranges symbol.
19966
19967 * font.c (font_put_extra): Expose externally.
19968
19969 * font.h (font_put_extra): Move declaration from font.c.
19970
19971 * font.c (Ffont_get): Use font driver to determine otf capability.
19972 (adjust_anchor): Check if driver defines anchor_point before using.
19973
19974 * w32font.c (w32font_open): Handle size, height and pixel_size better.
19975 (w32font_draw): Use options.
19976 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
19977 Fix detection of truetype fonts.
19978 (registry_to_w32_charset): Handle charsets other than iso8859-1
19979 expressed as lisp symbols.
19980 (w32_registry): Express charset as lisp symbol.
19981 (fill_in_logfont): Reverse pixel and point height logic.
19982 Don't set width here. Set quality to default.
19983
19984 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
19985 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
19986
19987 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19988 Remove redundant loop and allocation.
19989
19990 * makefile.w32-in (font.o, w32font.o): New objects.
19991 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
19992 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
19993
19994 * xdisp.c (fill_composite_glyph_string): Make the first arg to
19995 STORE_XCHARB a valid l-value.
19996
19997 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
19998 calculations for non-Truetype fonts.
19999 (x_draw_glyph_string): Sync with xterm.c.
20000 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
20001 Remove redundant code.
20002 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
20003
20004 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
20005 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
20006
20007 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
20008 (x_to_w32_charset, w32_to_x_charset): Expose externally.
20009
20010 * w32font.c: New file for w32 font backend.
20011
200122008-02-01 Kenichi Handa <handa@m17n.org>
20013
20014 * term.c: Don't include "buffer.h" twice.
20015
200162008-02-01 Kenichi Handa <handa@m17n.org>
20017
20018 * character.c (Funibyte_string): New function.
20019 (syms_of_character): Defsubr it.
20020
200212008-02-01 Jason Rumney <jasonr@gnu.org>
20022
20023 * w32term.c [USE_FONT_BACKEND]:
20024 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
20025 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
20026 (x_draw_glyph_string, x_draw_glyph_string_foreground)
20027 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
20028 (x_free_frame_resources): Sync with xterm.c.
20029
200302008-02-01 Andreas Schwab <schwab@suse.de>
20031
20032 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
20033 char-table size.
20034
200352008-02-01 Kenichi Handa <handa@m17n.org>
20036
20037 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
20038
200392008-02-01 Kenichi Handa <handa@m17n.org>
20040
20041 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
20042 font_otf_gpos, add font_drive_otf.
20043
20044 * fontset.c (fontset_find_font): Pay attention to font size
20045 specified for a font.
20046 (reorder_font_vector): Check contents of font_def.
20047
20048 * font.c (struct otf_list): Delete it.
20049 (otf_list): Make it a lisp variable.
20050 (otf_open): Use lispy otf_list.
20051 (generate_otf_features): Rename from parse_gsub_gpos_spec.
20052 (check_otf_features): New function.
20053 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
20054 New functions.
20055 (font_drive_otf): New function merging font_otf_gsub and
20056 font_otf_gpos.
20057 (font_open_for_lface): New arg spec. Change argument order.
20058 (font_load_for_face): Adjust for the change of font_open_for_lface.
20059 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
20060 Ffont_otf_gpos.
20061 (syms_of_font): Staticpro otf_list. Delete defsubr of
20062 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
20063
20064 * xfaces.c (set_font_frame_param): Adjust for the change of
20065 font_open_for_lface.
20066
20067 * font.h (font_open_for_lface): Adjust prototype.
20068 (struct font_driver): Delete members otf_gsub and otf_gpos, add
20069 member otf_drive.
20070 (font_otf_gsub, font_otf_gpos): Delete externs.
20071 (font_drive_otf): Extern it.
20072
200732008-02-01 Kenichi Handa <handa@m17n.org>
20074
20075 * font.c (font_at): If the window W is not on a window system,
20076 return Qnil.
20077
20078 * coding.c (produce_chars, encode_coding): Don't call
20079 insert_from_gap if no characters to produce.
20080
200812008-02-01 Kenichi Handa <handa@m17n.org>
20082
20083 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
20084 Fclear_face_cache.
20085
20086 * xfaces.c (face_for_font): Check also face->font==font->font.font.
20087
200882008-02-01 Miles Bader <miles@gnu.org>
20089
20090 * emacs.c (main): Change default value of `enable_font_backend' to 1.
20091 Parse "--disable-font-backend" option.
20092 (standard_args): Add "--disable-font-backend" option.
20093
200942008-02-01 Kenichi Handa <handa@m17n.org>
20095
20096 * fontset.c (fontset_find_font): New function.
20097 (fontset_font): Use fontset_find_font.
20098 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
20099 Register the specified font for all Latin characters.
20100 (new_fontset_from_font): Register the specified font for all Latin
20101 characters.
20102 (dump_fontset): For a realized fontset, include the base fontset
20103 name in the returned vector.
20104
201052008-02-01 Kenichi Handa <handa@m17n.org>
20106
20107 * character.h (CHAR_STRING): Cast C to unsigned on calling
20108 char_string.
20109
20110 * character.c (char_string): Type of arg C changed to unsigned.
20111 Signal an error if C is an invalid character code.
20112
20113 * editfns.c (general_insert_function, Fchar_to_string):
20114 Use CHARACTERP, not INTEGERP.
20115
201162008-02-01 Kenichi Handa <handa@m17n.org>
20117
20118 * character.h (MIN_MULTIBYTE_LEADING_CODE)
20119 (MAX_MULTIBYTE_LEADING_CODE): New macros.
20120
20121 * regex.c (analyse_first): Fix for multibyte characters in "case
20122 charset:" and "case categoryspec:".
20123
201242008-02-01 Andreas Schwab <schwab@suse.de>
20125
20126 * Makefile.in (LIBES): Move standard libraries to the end.
20127
201282008-02-01 Kenichi Handa <handa@m17n.org>
20129
20130 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
20131 nonzero, don't shrink the buffer nextb.
20132
20133 * buffer.h (struct buffer_text): New member inhibit_shrinking.
20134
20135 * coding.c (coding_alloc_by_making_gap): New arg offset.
20136 (alloc_destination): Call coding_alloc_by_making_gap with the arg
20137 offset.
20138 (decode_coding_iso_2022): Update coding->safe_charsets.
20139 (decode_coding_gap): Temporarily set
20140 current_buffer->text->inhibit_shrinking to 1.
20141
201422008-02-01 Kenichi Handa <handa@m17n.org>
20143
20144 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
20145 indexing into elements of s->cmp and s->char2b.
20146
201472008-02-01 Juanma Barranquero <lekktu@gmail.com>
20148
20149 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
20150
201512008-02-01 Kenichi Handa <handa@m17n.org>
20152
20153 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
20154 target_multibyte instead of multibyte.
20155 (re_match_2_internal): Call bcmp_translate with target_multibyte.
20156 (bcmp_translate): Change the argument name from multibyte to
20157 target_multibyte.
20158
201592008-02-01 Kenichi Handa <handa@m17n.org>
20160
20161 These changes are to compile a regexp into a pattern that can be
20162 used both for multibyte and unibyte targets.
20163
20164 * Makefile.in (search.o): Depend on charset.h.
20165
20166 * character.c (multibyte_char_to_unibyte_safe): New function.
20167
20168 * search.c: Include "charset.h".
20169 (compile_pattern_1): Delete argument multibyte. Don't set
20170 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
20171 (compile_pattern): Don't compare cp->buf.target_multibyte.
20172 Compare cp->buf.charset_unibyte.
20173 (compile_pattern): Set cp->buf.target_multibyte.
20174
20175 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
20176
20177 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
20178
20179 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
20180 multibyte. Change callers.
20181 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
20182 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
20183 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
20184 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
20185 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
20186 (regex_compile): Make the compiled pattern usable both for
20187 multibyte and unibyte targets.
20188 (analyse_first): Make the fastmap usable both for multibyte and
20189 unibyte targets.
20190 (TRANSLATE_VIA_MULTIBYTE): Delete.
20191 (re_match_2_internal): Pay attention to the case that the
20192 multibyteness of bufp and target may be different.
20193
201942008-02-01 Kenichi Handa <handa@m17n.org>
20195
20196 * xdisp.c (x_produce_glyphs): When a font is not found, make the
20197 empty box occupy at least one column width.
20198
201992008-02-01 Miles Bader <miles@gnu.org>
20200
20201 * Makefile.in: Remove redundant HAVE_XFT clause.
20202
202032008-02-01 Kenichi Handa <handa@m17n.org>
20204
20205 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
20206
202072008-02-01 Kenichi Handa <handa@m17n.org>
20208
20209 * fontset.c (Finternal_char_font): Fix for the case of POSITION
20210 being nil.
20211
202122008-02-01 Kenichi Handa <handa@m17n.org>
20213
20214 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
20215
202162008-02-01 Kenichi Handa <handa@m17n.org>
20217
20218 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
20219
202202008-02-01 Kenichi Handa <handa@m17n.org>
20221
20222 * search.c (simple_search): Fix previous change.
20223
202242008-02-01 Kenichi Handa <handa@m17n.org>
20225
20226 * xftfont.c (ftfont_font_format): Extern declaration.
20227
20228 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
20229
20230 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
20231 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
20232
20233 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
20234 (ftfont_font_format): Fix previous change.
20235
20236 * font.h (Ffont_xlfd_name): EXFUN it.
20237
20238 * font.c (font_parse_xlfd): Fix the array size of `f'.
20239 (register_font_driver): Use EQ to compare driver->type.
20240
20241 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
20242 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
20243 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
20244
202452008-02-01 Kenichi Handa <handa@m17n.org>
20246
20247 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
20248 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
20249
202502008-02-01 Kenichi Handa <handa@m17n.org>
20251
20252 * xfont.c (xfont_open): Set font->format.
20253
20254 * xftfont.c (xftfont_open): Set font->format.
20255
20256 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
20257 (ftfont_list): Include FC_FONTFORMAT in FcObject.
20258 (ftfont_open): Set font->format.
20259 (ftfont_font_format): New function.
20260
20261 * font.h (struct font): New member format.
20262
20263 * font.c (Qopentype): New variable.
20264 (syms_of_font): Defsym it.
20265 (Fquery_font): Change the format of the last element of the return
20266 value.
20267
202682008-02-01 Kenichi Handa <handa@m17n.org>
20269
20270 * xfns.c (xic_create_xfontset): Try the default fontset name as a
20271 last resort.
20272
202732008-02-01 Kenichi Handa <handa@m17n.org>
20274
20275 * coding.c (detect_coding_charset): Fix detection of multi-byte
20276 charset.
20277
202782008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
20279
20280 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
20281
202822008-02-01 Kenichi Handa <handa@m17n.org>
20283
20284 * xdisp.c (get_next_display_element): Set it->face_id for the
20285 first component of a composition.
20286 (x_produce_glyphs): Check if the font is changed or not for composition.
20287
202882008-02-01 Kenichi Handa <handa@m17n.org>
20289
20290 * fontset.c (Qlatin): New variable.
20291 (syms_of_fontset): Define it as a lisp symbol.
20292 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
20293
202942008-02-01 Kenichi Handa <handa@m17n.org>
20295
20296 * font.c (font_unparse_fcname): Pay attention to the case that
20297 some of font property is a null string.
20298
202992008-02-01 Kenichi Handa <handa@m17n.org>
20300
20301 * term.c: Include "composite.h".
20302 (encode_terminal_code): Output all components of composition.
20303 Check the size of encode_terminal_src.
20304 (produce_glyphs): For composition, call produce_composite_glyph.
20305 (append_composite_glyph, produce_composite_glyph): New functions.
20306
20307 * xdisp.c (x_produce_glyphs): In handling composition, if a font
20308 is not found, get font_info from the current ascii face.
20309
203102008-02-01 Kenichi Handa <handa@m17n.org>
20311
20312 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
20313 buffer-file-name to Qnil before calling insert_from_buffer.
20314
20315 * font.c (font_unparse_fcname): Pay attention to the case that
20316 foundry is a null string.
20317
203182008-02-01 Kenichi Handa <handa@m17n.org>
20319
20320 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
20321
20322 * font.c (Qunicode_sip): New variable.
20323 (syms_of_font): Declare it as a Lisp symbol.
20324
20325 * font.h (Qunicode_sip): Extern it.
20326
203272008-02-01 Kenichi Handa <handa@m17n.org>
20328
20329 * composite.c (get_composition_id): Pay attention to TAB component.
20330
20331 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
20332 TAB. Adjust for the change of s->char2b which always points to
20333 the first element of allocated memory.
20334
20335 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
20336
20337 * xdisp.c (handle_composition_prop): Set it->c to the first
20338 non-TAB component.
20339 (fill_composite_glyph_string): Change argument.
20340 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
20341 (x_produce_glyphs): Fix handling of left/right padding.
20342
203432008-02-01 Kenichi Handa <handa@m17n.org>
20344
20345 * coding.c (detect_coding_system): Fix for handling off
20346 inhibit_iso_escape_detection. Fix for the case that no coding
20347 system is defined for a specific coding category.
20348
203492008-02-01 Kenichi Handa <handa@m17n.org>
20350
20351 * font.c (font_matching_entity): Delete unused local var.
20352
20353 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
20354 opening a font.
20355
20356 * fileio.c (Finsert_file_contents): On recovering a file, assume
20357 Unix-like eol.
20358 (choose_write_coding_system): On auto-saving a file, force
20359 Unix-like eol.
20360
20361 * coding.c (setup_coding_system): Fix setting of
20362 coding->common_flags based on eol_type.
20363 (coding_inherit_eol_type): If PARENT is not nil, be sure to
20364 inherit from it.
20365
203662008-02-01 Kenichi Handa <handa@m17n.org>
20367
20368 * alloc.c (NSTATICS): Increas to 0x600.
20369
203702008-02-01 Kenichi Handa <handa@m17n.org>
20371
20372 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
20373 (ftfont_list): Don't check :name property.
20374 (ftfont_match): New function.
20375 (ftfont_pattern_entity): If the pattern doesn't contain
20376 FC_SPACING, don't assume FC_MONO.
20377
20378 * font.h (struct font_driver): New member `match'.
20379 (font_update_drivers): Adjust prototype.
20380
20381 * font.c (font_parse_fcname, font_parse_name): Don't change :name
20382 property of FONT.
20383 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
20384 them unconditionally.
20385 (font_matching_entity): New function.
20386 (font_open_by_name): Try font_matching_entity if exact match is
20387 not found.
20388 (font_update_drivers): Delete the arg FONT. Return a list of
20389 actually used backends. Don't free faces, font caches here.
20390 Don't store data in frame parameters. Don't call x_set_font.
20391 (Ffont_spec): Store :name property as is.
20392 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
20393 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
20394 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
20395 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
20396 Call font->driver->otf_gsub instead of font_otf_gsub.
20397
20398 * frame.c (x_set_font_backend): Do more works that were done in
20399 font_update_drivers before.
20400
20401 * xfont.c (xfont_match): New function.
20402 (xfont_driver): Set xfont_driver.match to xfont_match.
20403 (xfont_draw): Set font in GC if necessary.
20404
20405 * ftxfont.c (ftxfont_match): New function.
20406 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
20407
20408 * xftfont.c (xftfont_match): New function.
20409 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
20410
204112008-02-01 Kenichi Handa <handa@m17n.org>
20412
20413 * font.h (struct font): New member scalable.
20414 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
20415 (font_otf_gsub): Adjust prototype.
20416
20417 * font.c (font_otf_capability): Fix handling of the default langsys.
20418 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
20419 Check the contents of SPEC.
20420 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
20421 (check_gstring): New function.
20422 (REPLACEMENT_CHARACTER): New macro.
20423 (font_otf_gsub): New arg alternate_subst. Be sure to set all
20424 glyph codes of GSTRING.
20425 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
20426 (font_prepare_composition): Set cmp->glyph_len.
20427 (font_open_entity): Set font->scalable.
20428 (Ffont_get): Handle :otf property.
20429 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
20430 functions.
20431 (Fquery_font): Use font->font.full_name.
20432 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
20433 Sfont_otf_alternates.
20434
20435 * ftfont.c (ftfont_open): Set font->font.full_name and
20436 font->font.name properly. Fix calculation of font->font.height
20437 and font->min_width.
20438
20439 * ftxfont.c (ftxfont_create_gcs): New function.
20440 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
20441 (ftxfont_draw_backgrond): Fix filling region.
20442 (ftxfont_default_fid): New function.
20443 (ftxfont_open): Set xfont->fid to the return value of
20444 ftxfont_default_fid.
20445 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
20446 (ftxfont_done_face): Free only GCs that are created by
20447 ftxfont_create_gcs.
20448 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
20449
20450 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
20451 Clip to src->width, etc (not src->clip_XXX).
20452
20453 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
20454 FontBackend frame parameter.
20455
204562008-02-01 Kenichi Handa <handa@m17n.org>
20457
20458 * font.h (struct font_driver_list): New member `on'.
20459 (Fclear_font_cache): EXFUN it.
20460 (font_update_drivers): Extern it.
20461
20462 * font.c (font_unparse_fcname): Fix typo (swidth->width).
20463 (font_list_entities): Check driver_list->on.
40b1a3a9 20464 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
20465 (font_update_drivers): New function.
20466 (Fclear_font_cache): Check driver_list->on.
20467
20468 * frame.h (Qfont_backend): Extern it.
20469 (x_set_font_backend): Extern it.
20470
20471 * frame.c (Qfont_backend): New variable.
20472 (frame_parms): New element for font-backend.
20473 (x_set_font_backend): New function.
20474
20475 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
20476 FontBackend frame parameter.
20477 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
20478 x_set_font_backend.
20479
20480 * xfont.c (xfont_list): Don't try listing by :name property if the
20481 name is not for XLFD.
20482
204832008-02-01 Kenichi Handa <handa@m17n.org>
20484
20485 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
20486 (LGLYPH_SET_TO): New macros.
20487 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
20488 element of G is vector or not.
20489 (font_at): Extern it.
20490
20491 * font.c: Include window.h.
20492 (font_lispy_object): New function.
20493 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
20494 end of valid glyph.
20495 (font_close_object): Fix getting (struct font *).
20496 (font_at): New function.
20497 (Ffont_get): If FONT is a font-object, get entity from it.
20498 (Ffont_make_gstring): Initialize elements of glyphs with nil.
20499 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
20500 range check.
20501 (Ffont_at): New function.
20502 (syms_of_font): Defsubr Sfont_at.
20503
20504 * xdisp.c (it_props): Move the entry for Qauto_composed to just
20505 before the entry for Qcomposition.
20506 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
20507 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
20508 the font in gstring.
20509 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
20510 LGLYPH_FORM (g) to detect the end of valid glyph.
20511 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
20512 we are composing with gstring.
20513
20514 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
20515 Check if adjustment is vector or not.
20516
20517 * Makefile.in (font.o): Make it depends on window.h.
20518
205192008-02-01 Kenichi Handa <handa@m17n.org>
20520
20521 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
20522 adjustment is vector or not.
20523
205242008-02-01 Miles Bader <miles@gnu.org>
20525
20526 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
20527
205282008-02-01 Kenichi Handa <handa@m17n.org>
20529
20530 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
20531 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
20532 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
20533
20534 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
20535 (DEVICE_DELTA): Fix typo.
20536 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
20537 LGLYPH format.
20538
20539 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
20540 the change of LGLYPH format.
20541
205422008-02-01 Kenichi Handa <handa@m17n.org>
20543
20544 * ftfont.c (ftfont_list): Fix typo.
20545 (ftfont_build_basic_charsets): Don't include letters with diacritics.
20546
205472008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20548
20549 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
20550
20551 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
20552 xftface_info is non-NULL.
20553
205542008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20555
20556 * ftfont.c (ftfont_list): Move misplaced #endif.
20557
205582008-02-01 Kenichi Handa <handa@m17n.org>
20559
20560 * ftfont.c (ftfont_list): Pay attention to the case that
20561 FC_CAPABILITY is not defined.
20562
205632008-02-01 Kenichi Handa <handa@m17n.org>
20564
20565 * xftfont.c (xftfont_open): Set charset related members to -1.
20566
20567 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
20568 QCname.
20569 (ftfont_open): Set charset related members to -1.
20570
20571 * fontset.c (Votf_script_alist): New variable.
20572 (syms_of_fontset): Initialize it.
20573 (fontset_font): Delete unused variable.
20574
20575 * fontset.h (Votf_script_alist): Extern it.
20576
20577 * font.c (font_find_for_lface): Optimize code.
20578
20579 * font.h (font_close_object, font_merge_old_spec): Extern them.
20580
205812008-02-01 Kenichi Handa <handa@m17n.org>
20582
20583 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
20584 (syms_of_font): Initialize them.
20585 (font_pixel_size): Allow float value in dpi.
20586 (font_prop_validate_type): Delete.
20587 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
20588 Change caller.
20589 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
20590 (font_prop_validate_extra): Delete.
20591 (font_prop_validate_spacing): New function.
20592 (font_property_table): Add elements for all known properties.
20593 (get_font_prop_index): Rename from check_font_prop_name. New
20594 argument FROM. Change caller.
20595 (font_prop_validate): Validate all known properties.
20596 (font_put_extra): Delete argument force. Change caller.
20597 (font_expand_wildcards): Make it static. Fix the way of shrinking
20598 the possible range.
20599 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
20600 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
20601 Change caller.
20602 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
20603 (font_parse_fcname): Delete argument merge. Fix parsing of point
20604 size. Don't validate properties values here. Change caller.
20605 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
20606 (font_open_by_name): Delete unused variable.
20607 (Ffont_spec): Likewise. Validate property values.
20608 (Ffont_match_p): New function.
20609
20610 * font.h (QCscalable): Extern it.
20611 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
20612
20613 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
20614
20615 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
20616 (xfont_list_pattern): New function.
20617 (xfont_list): Use xfont_list_pattern.
20618
206192008-02-01 Kenichi Handa <handa@m17n.org>
20620
20621 * font.h (Flist_fonts): EXFUN it.
20622
206232008-02-01 Jason Rumney <jasonr@gnu.org>
20624
20625 * w32term.c (w32_initialize): Add back smoothing_type and
20626 smoothing_enabled definitions.
20627
206282008-02-01 Kenichi Handa <handa@m17n.org>
20629
20630 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
20631 s->face->font on determining underline position.
20632
206332008-02-01 Kenichi Handa <handa@m17n.org>
20634
20635 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
20636 (font_has_char): Accept font-object too.
20637 (font_find_for_lface): Try at first with a size specified in face.
20638
206392008-02-01 Kenichi Handa <handa@m17n.org>
20640
20641 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
20642 font_open_by_name.
20643
206442008-02-01 Kenichi Handa <handa@m17n.org>
20645
20646 * font.h (QCspacing, QCdpi): Extern them.
20647 (enum font_spacing): New enum.
20648 (FONT_PIXEL_SIZE_QUANTUM): New macro.
20649
20650 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
20651 (QCspacing, QCdpi): New variables.
20652 (syms_of_font): Initialize them.
20653 (font_pixel_size): New function.
20654 (font_put_extra): New function.
20655 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
20656 in FONT_EXTRA.
20657 (font_parse_fcname): Handle enumerated values (e.g. bold).
20658 Fix handling font size. Add QCname property that contains only
20659 unknown properties.
20660 (font_score): Change argument. Change caller. Pay attention to
20661 FONT_PIXEL_SIZE_QUANTUM.
20662 (font_sort_entites, font_list_entities, font_find_for_lface)
20663 (font_open_for_lface, font_open_by_name): Fix handling of font size.
20664 (Ffont_spec): Add QCname property that contains only unknown properties.
20665
20666 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
20667 include weight in listing pattern, instead check weight of each
20668 listed font. Don't include scalable in pattern. Pay attention to
20669 FONT_PIXEL_SIZE_QUANTUM.
20670
206712008-02-01 Kenichi Handa <handa@m17n.org>
20672
20673 * font.c (font_parse_fcname): Fix parsing of point-size.
20674 (font_unparse_fcname): Produce symbolic names for style properties.
20675 (font_list_entities): Handle float size correctly.
20676 (font_open_by_name): Prefer `normal' property values if the name
20677 doesn't specify them.
20678
20679 * fontset.c (Finternal_char_font): Use font_get_name, not
20680 Ffont_xlfd_name.
20681
20682 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
20683 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
20684 pattern. Don't force scalable.
20685
20686 * xftfont.c (xftfont_open): For generating a name, start from
20687 96-byte buffer.
20688
206892008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20690
20691 * frame.h (x_new_fontset2): Fix prototype.
20692
206932008-02-01 Kenichi Handa <handa@m17n.org>
20694
20695 * font.h (struct font_driver): Delete member parse_name.
20696 (font_match_p, font_get_spec, font_parse_fcname)
20697 (font_unparse_fcname): Extern them.
20698 (font_get_name): Adjust prototype.
20699
20700 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
20701 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
20702 (font_expand_wildcards): Fix handling ENCODING field. Avoid
20703 unnecessary checks for weight, slant, and swidth.
20704 (font_parse_fcname): New function.
20705 (font_unparse_fcname): New function.
20706 (font_parse_name): New function.
20707 (font_match_p): New function.
20708 (font_get_name): Change return value to Lisp string.
20709 (font_get_spec): New function.
20710 (Qunspecified, Qignore_defface): Don't extern them.
20711 (font_find_for_lface): Assume that LFACE is fully specified.
20712 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
20713 object, use it for FACE.
20714 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
20715 driver->parse_name.
20716 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
20717
20718 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
20719 prototype.
20720
20721 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
20722 argument F. Don't call Fnew_fontset. Instead, directly call
20723 make_fontset.
20724
20725 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
20726
20727 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
20728 of x_new_fontset2.
20729
20730 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
20731 (Qsans__serif): New variables.
20732 (ftfont_generic_family_list): New variable.
20733 (syms_of_ftfont): Initialize the above variables.
20734 (ftfont_pattern_entity): Delete argument NAME.
20735 (ftfont_list_generic_family): New function.
20736 (ftfont_parse_name): Delete this function.
20737 (ftfont_list): Try generic family only when FcFontList found no font.
20738 (ftfont_list_family): Fix args to FcObjectSetBuild.
20739
20740 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
20741 object in attrs[LFACE_FONT_INDEX].
20742 (set_lface_from_font_name): Cancel all changes for font-backend.
20743 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
20744 function.
20745 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
20746 font object in QCfont attribute.
20747 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
20748 (realize_default_face) [USE_FONT_BACKEND]: Call
20749 set_lface_from_font_and_fontset.
20750
20751 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
20752 "fixed", and signal error here if no suitable font was found.
20753
20754 * xfont.c (xfont_parse_name): Delete this function.
20755
20756 * xftfont.c (xftfont_open): Change coding style of error
20757 handling. Generate fontconfig's fontname pattern.
20758
20759 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
20760 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
20761
20762 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
20763 Both args FONTSET and FONT_OBJECT must be existing ones.
20764
207652008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20766
20767 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
20768
207692008-02-01 Kenichi Handa <handa@m17n.org>
20770
20771 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
20772
20773 * font.h (struct font): Fix typo.
20774
20775 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
20776 XLFD_XXX_INDEX.
20777 (enum xlfd_field_mask): New enum.
20778 (intern_font_field): Changed argument. Change caller. If digits
20779 are followed by non-digits, return a symbol.
20780 (font_expand_wildcards): New function.
20781 (font_parse_xlfd): Fix wildcard handling.
20782 (Ffont_spec): If :name is specified, reflect the info in the other
20783 properties.
20784
20785 * ftfont.c (ftfont_pattern_entity): Fix typo.
20786 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
20787 locale.
20788
207892008-02-01 Kenichi Handa <handa@m17n.org>
20790
20791 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
20792
20793 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
20794 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
20795 registry doesn't specify encoding part.
20796 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
20797 (font_open_by_name): At first try parsing the name.
20798 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
20799 as Lisp symbols.
20800
20801 * fontset.c (reorder_font_vector): Pay attention to the case that
20802 the 3rd element of font_def is nil.
20803 (fontset_font): For the default fontset, append one more fontset
20804 elements for a script-based font specification. Don't add script
20805 attribute on finding a font.
20806 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
20807 font name.
20808 (fontset_ascii_font): If a font can't be opened, return nil.
20809
20810 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
20811 (ftfont_pattern_entity): New function.
20812 (ftfont_get_cache): Assume that freetype_font_cache is already
20813 initialized.
20814 (ftfont_list): Handle the case that a file is specified in font
20815 name. Use ftfont_pattern_entity to generate entities.
20816 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
20817 (syms_of_ftfont): Initialize freetype_font_cache.
20818
20819 * xftfont.c (xftfont_open): Make the font name fontconfig's
20820 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
20821 (xftfont_close): Free font->font.name if not NULL.
20822
20823 * xfont.c (xfont_list): If script is specified for a font, return
20824 null_vector.
20825 (xfont_list_family): Declare argument type.
20826
20827 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
20828 name, set LFACE_FONT (lface) to nil.
20829
20830 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
20831 return Qnil.
20832
208332008-02-01 Kenichi Handa <handa@m17n.org>
20834
20835 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
20836 (standard_args): Add "-enable-font-backend".
20837
208382008-02-01 Kenichi Handa <handa@m17n.org>
20839
20840 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
20841 (struct xftdraw_list, xftdraw_list): Delete them.
20842 (register_xftdraw, check_xftdraw): Delete them.
20843 (xftfont_prepare_face): Don't call register_xftdraw.
20844 (xftfont_done_face): Don't call check_xftdraw.
20845 (xftfont_draw): Get background color only when with_background is
20846 nonzero.
20847
20848 * xfont.c (xfont_encode_char): Fix calculation of char2b.
20849
208502008-02-01 Kenichi Handa <handa@m17n.org>
20851
20852 These changes are for the new font handling codes.
20853
20854 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
20855 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
20856 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
20857 (FONTSRC, FONTOBJ): New variables.
20858 (obj): Add $(FONTOBJ).
20859 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
20860 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
20861 @LIBOTF_LIBS@.
20862 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
20863 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
20864
20865 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
20866
20867 * character.h (Vscript_representative_chars): Extern it.
20868
20869 * character.c (Vscript_representative_chars): New variable.
20870 (syms_of_character): Declare it as a Lisp variable.
20871
20872 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
20873 enable_font_backend is nonzero, accept the composition method
20874 COMPOSITION_WITH_GLYPH_STRING.
20875
20876 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
20877 enumeration COMPOSITION_WITH_GLYPH_STRING.
20878
20879 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
20880 members clip_x, clip_y, clip_width, and clip_height.
20881 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
20882
20883 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
20884 --enable-font-backend. Call syms_of_font.
20885
20886 * fns.c (assoc_no_quit): New function.
20887
20888 * fontset.h (FONT_INFO_FROM_FACE): New macro.
20889 (face_for_font, new_fontset_from_font)
20890 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
20891
20892 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
20893 (fontset_font, fontset_ascii, face_for_char)
20894 (make_fontset_for_ascii_face, Ffont_info)
20895 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
20896 is nonzero, use font-backend mechanism.
20897 (find_font_encoding): Make it non-static.
20898 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
20899 New functions.
20900
20901 * frame.h (struct frame): New members resx and resy.
20902 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
20903 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
20904
20905 * frame.c [USE_FONT_BACKEND]: Include "font.h".
20906 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
20907
20908 * lisp.h (assoc_no_quit): Extern it.
20909
20910 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
20911 Through out the file, use FONT_INFO_FROM_FACE instead of
20912 FONT_INFO_FROM_ID, use get_per_char_metric instead of
20913 rif->per_char_metric.
20914 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
20915 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
20916 (get_glyph_face_and_encoding, fill_composite_glyph_string)
20917 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20918 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
20919 nonzero, use font-backend mechanism.
20920 (get_per_char_metric): New function.
20921
20922 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
20923 (set_lface_from_font_name)
20924 (set_font_frame_param, free_realized_face)
20925 (prepare_face_for_display, clear_face_gcs)
20926 (Finternal_set_font_selection_order, realize_x_face)
20927 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
20928 font-backend mechanism.
20929 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
20930 (load_face_font) [USE_FONT_BACKEND]: Abort.
20931 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
20932 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
20933
20934 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
20935 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
20936 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
20937 nonzero, register all available font drivers. Call
20938 x_default_font_parameter for deciding a font.
20939 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
20940
20941 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
20942 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
20943 (x_set_glyph_string_clipping_exactly)
20944 (x_compute_glyph_string_overhangs)
20945 (x_draw_glyph_string_foreground)
20946 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
20947 (x_free_frame_resources) [USE_FONT_BACKEND]: If
20948 enable_font_backend is nonzero, use font-backend mechanism.
20949 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
20950
209512008-02-01 Kenichi Handa <handa@m17n.org>
20952
20953 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
20954 system_eol_type.
20955 (syms_of_coding): Initialize system_eol_type.
20956
20957 * process.c (Fset_process_coding_system): Inherit system's eol
20958 format if necessary.
20959
209602008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20961
20962 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
20963
209642008-02-01 Kenichi Handa <handa@m17n.org>
20965
20966 * coding.c (decode_eol): Pay attention to buffer relocation in
20967 del_range_2.
20968 (decode_coding): Call decode_eol before restoring undo_list.
20969
209702008-02-01 Kenichi Handa <handa@m17n.org>
20971
20972 * charset.c (Fdefine_charset_internal): Fix setting of
20973 emacs_mule_bytes.
20974
209752008-02-01 Kenichi Handa <handa@m17n.org>
20976
20977 * keyboard.c (read_char): Check if C is a character or not before
20978 looking up Vkeyboard_translate_table.
20979
209802008-02-01 Kenichi Handa <handa@m17n.org>
20981
20982 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
20983 condition to terminate the loop.
20984
209852008-02-01 Kenichi Handa <handa@m17n.org>
20986
20987 * coding.c (produce_composition): Compare charbuf[i] instead of
20988 args[i] against 0.
20989 (Fterminal_coding_system): Use EQ to compare Lisp objects.
20990
209912008-02-01 Kenichi Handa <handa@m17n.org>
20992
20993 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
20994 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
20995 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
20996 detect_coding.
20997 (emacs_mule_char): Handle old style (Emacs 20) component character
20998 of a composition.
20999 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
21000 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
21001 composition rule.
21002 (decode_coding_emacs_mule): Handle invalid bytes correctly.
21003
210042008-02-01 Kenichi Handa <handa@m17n.org>
21005
21006 * coding.c (encode_coding_ccl): Allocate destination dynamically
21007 when necessary.
21008
210092008-02-01 Kenichi Handa <handa@m17n.org>
21010
21011 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
21012 the loop. When quitted, show a proper error message.
21013
210142008-02-01 Kenichi Handa <handa@m17n.org>
21015
21016 * xterm.c (x_set_glyph_string_clipping_exactly): Set
21017 src->clip_head and src->clip_tail temporarily instead of src->hl.
21018
21019 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
21020 character sequence.
21021 (Fccl_execute_on_string): Use ASET, not XSET.
21022
210232008-02-01 Kenichi Handa <handa@m17n.org>
21024
21025 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
21026
210272008-02-01 Kenichi Handa <handa@m17n.org>
21028
21029 * coding.c (decode_coding): Fix the condition of terminating the
21030 decoding loop.
21031
210322008-02-01 Kenichi Handa <handa@m17n.org>
21033
21034 * data.c (Faset): On setting a character bigger than 255 in a
21035 unibyte string, signal an error instead of make the string multibyte.
21036
210372008-02-01 Kenichi Handa <handa@m17n.org>
21038
21039 * charset.c (map_charset_chars): Fix for ascii-compatible charset
21040 made by a mapping table.
21041
210422008-02-01 Kenichi Handa <handa@m17n.org>
21043
21044 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
21045 not.
21046 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
21047 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
21048
21049 * xterm.c (x_draw_composite_glyph_string_foreground): Check
21050 s->face is NULL or not.
21051
210522008-02-01 Kenichi Handa <handa@m17n.org>
21053
21054 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
21055 (x_draw_glyph_string): Fix drawing of right_overhang and
21056 left_overhang around/on cursor.
21057
21058 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
21059
210602008-02-01 Kenichi Handa <handa@m17n.org>
21061
21062 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
21063
210642008-02-01 Kenichi Handa <handa@m17n.org>
21065
21066 * coding.c (Fdefine_coding_system_internal)
21067 (Fdefine_coding_system_alias): Avoid a duplicated element in
21068 Vcoding_system_alist.
21069
210702008-02-01 Kenichi Handa <handa@m17n.org>
21071
21072 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
21073
21074 * coding.c (Qcoding_system_define_form): New variable.
21075 (syms_of_coding): Intern and staticpro it.
21076 (Fcoding_system_p): Check Qcoding_system_define_form.
21077 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
21078
21079 * coding.h (CODING_SYSTEM_P): If ID is not available, call
21080 Fcoding_system_p.
21081 (CHECK_CODING_SYSTEM): If ID is not available, call
21082 Fcheck_coding_system.
21083 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
21084 Try also Fcheck_coding_system.
21085
210862008-02-01 Kenichi Handa <handa@m17n.org>
21087
21088 * coding.c (code_conversion_restore): GCPRO arg.
21089
210902008-02-01 Kenichi Handa <handa@m17n.org>
21091
21092 * character.c (lisp_string_width): Check multibyteness of STRING.
21093
210942008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21095
21096 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
21097 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
21098 (decode_mac_font_name): Use decode_coding_c_string instead of
21099 decode_coding.
21100 (x_load_font): Initialize fontp->fontset to -1. Set
21101 fontp->encoding_type.
21102
211032008-02-01 Kenichi Handa <handa@m17n.org>
21104
21105 * search.c (search_buffer): Give up BM search on case-fold-search
21106 if one of a target character has a case-equivalence of different
3b59c351 21107 byte length even if that target character is an ASCII.
aac0c6e3
MR
21108 (simple_search): Fix calculation of byte length of matched text.
21109 (boyer_moore): Fix handling of case-equivalent multibyte characters.
21110
211112008-02-01 Kenichi Handa <handa@m17n.org>
21112
21113 * coding.c (decode_coding): Fix handling of invalid bytes.
21114
211152008-02-01 Kenichi Handa <handa@m17n.org>
21116
21117 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
21118 Unicode characters.
21119
211202008-02-01 Kenichi Handa <handa@m17n.org>
21121
21122 * coding.c (encode_coding_object): If a pre-write-conversion
21123 function makes a new buffer, kill it.
21124
211252008-02-01 Kenichi Handa <handa@m17n.org>
21126
21127 * coding.c (QCascii_compatible_p): New variable.
21128 (syms_of_coding): Initialize it.
21129 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
21130 calling string_char.
21131 (record_conversion_result): Add `default:' case.
21132 (coding_charset_list): Delete unused variable `coding_type'.
21133 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
21134 property in the plist of the coding system.
21135 (Fcoding_system_put): Check QCascii_compatible_p.
21136
211372008-02-01 Miles Bader <miles@gnu.org>
21138
21139 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
21140 removed calculation of frame `f', as it's now used.
21141
211422008-02-01 Kenichi Handa <handa@m17n.org>
21143
21144 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
21145 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
21146 (UNIDATA): New variable.
21147 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
21148 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
21149 $(RUN_TEMACS) unconditionally.
21150
211512008-02-01 Kenichi Handa <handa@m17n.org>
21152
21153 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
21154 (admindir): New variable.
21155 ($(lispsource)international/charprop.el): New target.
21156
211572008-02-01 Miles Bader <miles@gnu.org>
21158
21159 * character.c (chars-in-region): Remove obsolete function.
21160 (syms_of_character): Remove its initialization.
21161
211622008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
21163
21164 * w32select.c (validate_coding_system)
21165 (setup_windows_coding_system): New functions.
21166 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
21167 setup_windows_coding_system.
21168 (setup_config, Fw32_get_clipboard_data): Use
21169 validate_coding_system.
21170 (Fx_selection_exists): Move call to setup_config to a place
21171 where signals are allowed.
21172
21173 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
21174 (Fcheck_coding_system): Add declarations.
21175
211762008-02-01 Kenichi Handa <handa@m17n.org>
21177
21178 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
21179
211802008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21181
21182 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
21183 string as the second argument for x_new_fontset.
21184
211852008-02-01 Kenichi Handa <handa@m17n.org>
21186
21187 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
21188 (encode_coding_object): Use safe_call instead of call2.
21189
211902008-02-01 Kenichi Handa <handa@m17n.org>
21191
21192 * fontset.c (Fset_fontset_font): Check family element of a given vector.
21193
21194 * Makefile.in (lisp): Include charprop.el.
21195
211962008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21197
21198 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
21199 Not sure if it's unnecessary.
21200
212012008-02-01 Steven Tamm <steventamm@mac.com>
21202
21203 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
21204 some possibly unnecessary fontset checking code that crashed
21205 when creating a new frame.
21206
212072008-02-01 Kenichi Handa <handa@m17n.org>
21208
21209 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
21210 lookup_face.
21211
21212 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
21213
21214 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
21215
212162008-02-01 Kenichi Handa <handa@m17n.org>
21217
21218 * coding.c: Cancel the change done in HEAD on 2008-02-01.
21219 (coding_charset_list): New function.
21220
21221 * coding.h (coding_charset_list): Extern it.
21222
212232008-02-01 Kenichi Handa <handa@m17n.org>
21224
21225 * fontset.c (Fset_fontset_font): Call find_font_encoding with
21226 concatenation of family and registry.
21227
212282008-02-01 Kenichi Handa <handa@m17n.org>
21229
21230 * character.h (BYTE8_STRING): Fix typo.
21231
21232 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
21233 string to multibyte (sync to HEAD).
21234
21235 * casefiddle.c (casify_region): Handle changes in byte-length
21236 using replace_range_2 (sync to HEAD).
21237
212382008-02-01 Andreas Schwab <schwab@suse.de>
21239
21240 * chartab.c (map_char_table): GCPRO table and arg.
21241
212422008-02-01 Kenichi Handa <handa@m17n.org>
21243
21244 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
21245 already at limit.
21246
212472008-02-01 Kenichi Handa <handa@m17n.org>
21248
21249 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
21250 instead of fast_c_string_match_ignore_case.
21251 (find_font_encoding): Change argument to Lisp_Object. Use
21252 fast_string_match_ignore_case instead of
21253 fast_c_string_match_ignore_case. Change caller.
21254
212552008-02-01 Kenichi Handa <handa@m17n.org>
21256
21257 * xdisp.c (get_next_display_element): In unibyte case, decide to
21258 display in octal form by checking a character by
21259 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
21260
21261 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
21262
21263 * character.c (unibyte_has_multibyte_table): New variable.
21264
21265 * character.h (unibyte_has_multibyte_table): Extern it.
21266 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
21267
212682008-02-01 Kenichi Handa <handa@m17n.org>
21269
21270 * coding.c (encode_coding_iso_2022): Fix handling of charset
21271 annotation.
21272
212732008-02-01 Kenichi Handa <handa@m17n.org>
21274
21275 * coding.c (setup_coding_system): If coding_system is nil, use
21276 Qundecided.
21277 (Fterminal_coding_system): Return nil if terminal coding system is
21278 `undecided'.
21279 (syms_of_coding): Define coding-system `undecided' here. Setup
21280 terminal_coding as `undecided'.
21281
212822008-02-01 Kenichi Handa <handa@m17n.org>
21283
21284 * xdisp.c (message_dolog, set_message_1): Call
21285 unibyte_char_to_multibyte with arg type int.
21286
21287 * lread.c (read1): Fix reading of a char-table.
21288
21289 * print.c (print_object): Include sub char-table in circularities
21290 detection.
21291
212922008-02-01 Kenichi Handa <handa@m17n.org>
21293
21294 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
21295 Append the found sequences in car of ARGS instead of prepending.
21296
212972008-02-01 Kenichi Handa <handa@m17n.org>
21298
21299 * fileio.c (report_file_error): Make a unibyte string from
21300 strerror (errorno).
21301 (Fsubstitute_in_file_name): Fix the arg to
21302 unibyte_char_to_multibyte. It is evaluated twice.
21303
213042008-02-01 Kenichi Handa <handa@m17n.org>
21305
21306 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
21307
213082008-02-01 Kenichi Handa <handa@m17n.org>
21309
21310 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
21311 BOM is not found.
21312 (detect_coding, detect_coding_system): Optimization for ISO-2022
21313 when no 8-bit data is found.
21314
213152008-02-01 Jason Rumney <jasonr@gnu.org>
21316
21317 * w32fns.c (x_to_w32_font): Update to use new coding struct.
21318
213192008-02-01 Kenichi Handa <handa@m17n.org>
21320
21321 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
21322 CHARS.
21323
213242008-02-01 Steven Tamm <steventamm@mac.com>
21325
21326 * macterm.c (mac_encode_char): Add charset argument and update
21327 to use encoding_type.
21328 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
21329 switch to pure fontset.
21330 (decode_mac_font_name): Temporarily remove decoding.
21331 (x_font_name_to_mac_font_name): Temporarily remove encoding.
21332 (x_load_font): Temporarily remove encoding.
21333
213342008-02-01 Kenichi Handa <handa@m17n.org>
21335
21336 * xfaces.c (Fface_font): If frame is not on a window system,
21337 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
21338 refer to face->font.
21339 (split_font_name_into_vector, build_font_name_from_vector)
21340 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
21341 when HAVE_WINDOW_SYSTEM is defined.
21342
213432008-02-01 Kenichi Handa <handa@m17n.org>
21344
21345 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
21346 (x_produce_glyphs): Fix setting of members of cmp in case
21347 cmp->glyph_len is zero.
21348
21349 * fontset.c (Fset_fontset_font): Fix docstring.
21350 (Ffontset_info): Make it backward compatible. New arg ALL.
21351
213522008-02-01 Kim F. Storm <storm@cua.dk>
21353
21354 * process.c (read_process_output): Grow decoding_buf when needed;
21355 this could cause a crash in allocate_string and compact_small_strings.
21356
213572008-02-01 Kenichi Handa <handa@m17n.org>
21358
21359 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
21360
213612008-02-01 Kenichi Handa <handa@m17n.org>
21362
21363 * coding.c (setup_coding_system): Set coding->common_flags
21364 correctly for raw-text.
21365 (consume_chars): On encoding unibyte text by raw-text, don't check
21366 multibyte form.
21367 (encode_coding): On encoding by raw-text, never use translation tables.
21368
21369 * fileio.c (e_write): Short cut for the case of no encoding.
21370
213712008-02-01 Kenichi Handa <handa@m17n.org>
21372
21373 * coding.c (detect_coding, detect_coding_system): Delete unused
21374 variables.
21375
213762008-02-01 Kenichi Handa <handa@m17n.org>
21377
21378 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
21379 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
21380
213812008-02-01 Kenichi Handa <handa@m17n.org>
21382
21383 * coding.c (Ffind_coding_systems_region_internal): Include
21384 raw-text and no-conversion in the result.
21385
213862008-02-01 Kenichi Handa <handa@m17n.org>
21387
21388 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
21389 (load_font_get_repertory): Delete unnecessary check of ENCODING of
21390 FONT_DEF.
21391 (font_def_arg, add_arg, from_arg, to_arg): New args.
21392 (set_fontset_font): Change argument.
21393 (Fset_fontset_font): Fix for the case that TARGET is a script
21394 name and charset name.
21395 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
21396
213972008-02-01 Kenichi Handa <handa@m17n.org>
21398
21399 * fontset.c (fontset_font): Rename from fontset_face. Change return
21400 value.
21401 (face_suitable_for_char_p, face_for_char): Adjust for the change
21402 of fontset_font.
21403 (make_fontset_for_ascii_face): Fix setting of the fontset element
21404 for ASCII.
21405 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
21406 to get a font name.
21407 (Ffontset_info): Adjust for the change of fontset_font.
21408
21409 * coding.c (emacs_mule_char): Check invalid code more rigidly.
21410
21411 * character.h (LEADING_CODE_LATIN_1_MIN)
21412 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
21413
214142008-02-01 Kenichi Handa <handa@m17n.org>
21415
21416 * editfns.c (check_translation): New function.
21417 (Ftranslate_region_internal): Handle M:N mapping.
21418
214192008-02-01 Kenichi Handa <handa@m17n.org>
21420
21421 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
21422
214232008-02-01 Kenichi Handa <handa@m17n.org>
21424
21425 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
21426 goto invalid_code.
21427 (decode_coding_iso_2022): Fix handling of invalid designation.
21428
21429 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
21430 after calling code_conversion_save.
21431
214322008-02-01 Kenichi Handa <handa@m17n.org>
21433
21434 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
21435
21436 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
21437
21438 * fontset.c: Include "intervals.h".
21439 (fontset_face): Fix comparing of Lisp_Objects.
21440 (free_face_fontset, new_fontset_from_font_name): Fix
21441 Lisp_Object/int mixup.
21442
21443 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
21444
21445 * coding.c: Add many prototypes for static functions.
21446 (get_translation_table): Allow max_lookup to be NULL.
21447 (decode_coding, Ffind_coding_systems_region_internal)
21448 (Funencodable_char_position, Fcheck_coding_systems_region): Call
21449 get_translation_table with max_lookup NULL.
21450
214512008-02-01 Kenichi Handa <handa@m17n.org>
21452
21453 * coding.c (get_translation_table): Declare it as Lisp_Object.
21454 (LOOKUP_TRANSLATION_TABLE): New macro.
21455 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
21456 instead of CHAR_TABLE_REF.
21457
214582008-02-01 Kenichi Handa <handa@m17n.org>
21459
21460 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
21461 annotation data format.
21462 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
21463 Change arguments FROM and TO to single argument NCHARS. Change caller.
21464 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
21465 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21466 (decode_coding_ccl, decode_coding_charset): Pay attention to
21467 coding->charbuf_used.
21468 (get_translation): New function.
21469 (produce_chars): New arguments translation_table and last_block.
21470 Translate characters here. Return number of carryover chars.
21471 Change caller.
21472 (produce_composition): New argument pos. Change caller.
21473 Adjust for the change of annotation data format.
21474 (produce_charset, produce_annotation): Likewise.
21475 (decode_coding, encode_coding): Don't call translate_chars.
21476 (consume_chars): New arg translation_table. Change caller.
21477 (translate_chars): Delete.
21478 (syms_of_coding): Make translation-table's number of extra slots 2.
21479
214802008-02-01 Kenichi Handa <handa@m17n.org>
21481
21482 * search.c (simple_search): Fix setting this_pos_byte in backward
21483 search.
21484
21485 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
21486 byte sequence.
21487 (detect_coding_ccl): Fix setting of the variable valids.
21488
214892008-02-01 Kenichi Handa <handa@m17n.org>
21490
21491 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
21492
21493 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
21494
21495 * editfns.c (Ftranslate_region_internal): Rename from
21496 Ftranslate_region. Accept a char-table in TABLE.
21497 (syms_of_editfns): Defsubr Stranslate_region_internal.
21498
21499 * xfaces.c (set_lface_from_font_name): If a font is specified for
21500 a frame, generate a fontset from the font.
21501 (build_scalable_font_name): If the scalable font is requested for
21502 a specific size, don't change that size.
21503 (try_font_list): Try a scalable font also in the case that a
21504 pattern string is specified.
21505
215062008-02-01 Kenichi Handa <handa@m17n.org>
21507
21508 * xfaces.c (Fface_font): New optional arg CHARACTER.
21509
215102008-02-01 Kenichi Handa <handa@m17n.org>
21511
21512 * charset.h (CHARSET_OFFSET): New macro.
21513
215142008-02-01 Kenichi Handa <handa@m17n.org>
21515
21516 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
21517
21518 * fontset.c (fontset_face): Handle the case that repertory is a
21519 char-table.
21520 (find_font_encoding): Return nil for unknown encoding.
21521 (Fset_fontset_font): Ignore a font of unknown encoding.
21522
215232008-02-01 Kenichi Handa <handa@m17n.org>
21524
21525 * keymap.c (describe_vector): Handle default value of a char table.
21526
21527 * fontset.c (fontset_face): Handle fallback fonts correctly.
21528 (Ffontset_info): Return infomation about fallback fonts.
21529
215302008-02-01 Kenichi Handa <handa@m17n.org>
21531
21532 * fontset.c (FONTSET_DEFAULT): New macro.
21533 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
21534 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
21535 the case that it is nil.
21536 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
21537 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
21538
21539 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
21540 subset or superset.
21541
215422008-02-01 Kenichi Handa <handa@m17n.org>
21543
21544 * emacs.c (main): Call init_charset after syms_of_XXX.
21545
21546 * charset.c (Vcharset_map_directory): Delete.
21547 (Vcharset_map_path): New variable.
21548 (load_charset_map_from_file): Use Vcharset_map_path instead.
21549 (init_charset): Initialize Vcharset_map_path.
21550 (syms_of_charset): Delete declaration of "charset-map-directory",
21551 add declaration of "charset-map-path".
21552
215532008-02-01 Kenichi Handa <handa@m17n.org>
21554
21555 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
21556 ASCII only string.
21557
21558 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
21559
21560 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
21561 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
21562
215632008-02-01 Kenichi Handa <handa@m17n.org>
21564
21565 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
21566
21567 * coding.c (QCmnemonic, QCdefalut_char)
21568 (QCdecode_translation_table, QCencode_translation_table)
21569 (QCpost_read_conversion, QCpre_write_conversion): New variables.
21570 (get_translation_table): Return a list of translation tables if
21571 necessary.
21572 (decode_coding): Call get_translation_table with ENCODEP 0.
21573 (char_encodable_p): If translation_table is non-nil, always call
21574 translate_char.
21575 (Fdefine_coding_system_internal): Accept list of translation
21576 tables as :encode-translation-table and :decode-translation-table.
21577 (Fcoding_system_put): New function.
21578 (syms_of_coding): Declare new symbols. Defsubr
21579 Scoding_system_put.
21580 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
21581 typically JISX0212.
21582
21583 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
21584 when the charset is superset type.
21585
21586 * character.c (translate_char): Accept list of translation tables.
21587
215882008-02-01 Kenichi Handa <handa@m17n.org>
21589
21590 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
21591 (CODING_ATTR_TRANS_TBL): New macro.
21592
21593 * coding.c (get_translation_table): New function.
21594 (translate_chars): Fix the bug of skipping annotation data.
21595 (decode_coding, encode_coding): Utilize get_translation_table.
21596 (char_encodable_p, Funencodable_char_position): Translate char if
21597 necessary.
21598 (Ffind_coding_systems_region_internal)
21599 (Fcheck_coding_systems_region): Setup translation table for encode
21600 in a coding system attribute vector in advance.
21601 (Fdefine_coding_system_internal): Allow a symbol as translation
21602 table. For shift-jis type coding system, allow 4th charset.
21603
216042008-02-01 Kenichi Handa <handa@m17n.org>
21605
21606 * coding.c (decode_coding_sjis): Check the first byte rigidly.
21607
21608 * xdisp.c (get_next_display_element): Pass -1 as POS to
21609 FACE_FOR_CHAR if displaying a C-string.
21610
216112008-02-01 Kenichi Handa <handa@m17n.org>
21612
21613 * composite.c (get_composition_id): Handle xoff and yoff in a
21614 composition rule.
21615
21616 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
21617 (struct composition): New member lbearing and rbearing.
21618
21619 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
21620 (x_get_glyph_overhangs): Handle a composition glyph.
21621 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
21622
21623 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
21624 composition glyph.
21625
216262008-02-01 Kenichi Handa <handa@m17n.org>
21627
21628 * print.c: Include charset.h.
21629 (Vprint_charset_text_property): New variable.
21630 (Qdefault): Extern it.
21631 (PRINT_STRING_NON_CHARSET_FOUND)
21632 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
21633 (print_check_string_result): New variable.
21634 (print_check_string_charset_prop): New function.
21635 (print_prune_charset_plist): New variable.
21636 (print_prune_string_charset): New function.
21637 (print_object): Call print_prune_string_charset if
21638 Vprint_charset_text_property is not t.
21639 (print_interval): Print nothing if interval->plist is nil.
21640 (syms_of_print): Declare Vprint_charset_text_property as a lisp
21641 variable. Init and staticpro print_prune_charset_plist.
21642
216432008-02-01 Kenichi Handa <handa@m17n.org>
21644
21645 * fontset.c (new_fontset_from_font_name): Use the specified font
21646 for all characters in the new fontset.
21647
21648 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21649 OBJECT args.
21650
21651 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
21652 OBJECT args for composition too.
21653
21654 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21655 OBJECT args.
21656
216572008-02-01 Kenichi Handa <handa@m17n.org>
21658
21659 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
21660
21661 * fontset.c (reorder_font_vector): Adjust for the change of
21662 FONT_DEF format.
21663 (fontset_face): New arg id. Change caller.
21664 (face_for_char): New args pos and object.
21665 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
21666 (fs_query_fontset): Check NAME by Fassoc too.
21667 (Fset_fontset_font): Allow non-XLFD font name.
21668 (Ffontset_info): Adjust for the change of FONT_DEF format.
21669
21670 * fontset.h (face_for_char): Adjust prototype.
21671
21672 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
21673 (append_space, extend_face_to_end_of_line)
21674 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
21675 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
21676
21677 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
21678 POS and OBJECT args.
21679
21680 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
21681 POS and OBJECT args.
21682
216832008-02-01 Jason Rumney <jasonr@gnu.org>
21684
21685 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
21686 of GlobalAlloc'ed memory.
21687
216882008-02-01 Kenichi Handa <handa@m17n.org>
21689
21690 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
21691
21692 * charset.h (charset_table_used): Delete extern.
21693
21694 * charset.c (charset_table_used): Make it static.
21695 (map_charset_chars): Fix args to c_function with.
21696
21697 * chartab.c (map_sub_char_table_for_charset): Fix args to
21698 c_function with.
21699
21700 * coding.h (enum coding_result_code): Delete
21701 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
21702
21703 * coding.c (Qinsufficient_source, Qinconsistent_eol)
21704 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
21705 (Vlast_code_conversion_error): New variables.
21706 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
21707 (ONE_MORE_BYTE): Record error if any instead of signaling an
21708 error. If non-ASCII multibyte char is found, return the negative
21709 value of the code. All callers changed to check it.
21710 (ONE_MORE_BYTE_NO_CHECK): Likewise.
21711 (record_conversion_result): New function. Change all codes setting
21712 coding->result to call this function.
21713 (detect_coding_utf_8, decode_coding_utf_8)
21714 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
21715 Don't use the local variable incomplete.
21716 (emacs_mule_char): Change the second arg to `const'.
21717 (decode_coding): Fix of flushing out unprocessed data.
21718 (make_conversion_work_buffer): Fix making of a work buffer.
21719 (decode_coding_object): Return coding->dst_object.
21720
21721 * fontset.c (set_fontset_font): Fix args.
21722
21723 * lisp.h (CHARACTERBITS): Define as 22.
21724
21725 * process.c (send_process): Be sure to set coding->src_multibyte.
21726
21727 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
21728
217292008-02-01 Kenichi Handa <handa@m17n.org>
21730
21731 * xdisp.c (handle_auto_composed_prop): Give limit to
21732 Fnext_single_char_property_change.
21733
217342008-02-01 Kenichi Handa <handa@m17n.org>
21735
21736 * composite.c (syms_of_composite): Don't make the composition hash
21737 table weak.
21738
21739 * fontset.c (Fset_fontset_font): Fix docstring.
21740
21741 * lisp.h (detect_coding_system): Adjust prototype.
21742
21743 * fileio.c (kill_workbuf_unwind): Delete this function.
21744 (Finsert_file_contents): Adjust the call of detect_coding_system.
21745 Get conversion_buffer by code_conversion_save. Use the macro
21746 CODING_MAY_REQUIRE_DECODING. After decoding, update
21747 coding_system.
21748
21749 * coding.h (make_conversion_work_buffer): Delete extern.
21750 (code_conversion_save): Extern it.
21751
21752 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
21753 (CODING_GET_INFO): Delete argument eol_type. Change callers.
21754 (decode_coding_utf_8): Don't do eol converion.
21755 (detect_coding_utf_16): Check coding->src_chars, not
21756 coding->src_bytes. Add heuristics for those that have no signature.
21757 (decode_coding_emacs_mule, decode_coding_iso_2022)
21758 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21759 Don't do eol converion.
21760 (adjust_coding_eol_type): Return a new coding system.
21761 (detect_coding): Don't detect eol. Fix for utf-16 detection.
21762 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
21763 each change.
21764 (decode_coding): Pay attention to undo_list. Do eol conversion for
21765 all types of coding-systems (if necessary).
21766 (Vcode_conversion_work_buf_list): Delete it.
21767 (Vcode_conversion_reused_workbuf): Rename from
21768 Vcode_conversion_reused_work_buf.
21769 (Vcode_conversion_workbuf_name): New variable.
21770 (reused_workbuf_in_use): New variable.
21771 (make_conversion_work_buffer): Delete the arg DEPTH.
21772 (code_conversion_restore): Change argument to cons.
21773 (code_conversion_save): Delete the argument BUFFER. Change callers.
21774 (detect_coding_system): New argument src_chars. Change callers.
21775 Fix for utf-16 detection.
21776 (init_coding_once): Don't use ISO_carriage_return.
21777 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
21778 reused_workbuf_in_use.
21779
217802008-02-01 Kenichi Handa <handa@m17n.org>
21781
21782 * keymap.c (store_in_keymap): Pay attention to the case that idx
21783 is a cons specifying a character range.
21784
217852008-02-01 Kenichi Handa <handa@m17n.org>
21786
21787 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
21788 HANDLED_RECOMPUTE_PROPS.
21789
21790 * coding.c (Fdefine_coding_system_internal): Fix checking of
21791 ascii compatibility.
21792
217932008-02-01 Kenichi Handa <handa@m17n.org>
21794
21795 * charset.c (find_charsets_in_text): Delete unused locale variable.
21796 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
21797
21798 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
21799 Resync charset_list to Vemacs_mule_charset_list.
21800
21801 * keymap.c (store_in_keymap): Pay attention to the case that idx
21802 is a cons specifying a character range.
21803
218042008-02-01 Kenichi Handa <handa@m17n.org>
21805
21806 * composite.c (update_compositions): Bind inhibit-read-only, etc
21807 to t before calling remove-list-of-text-properties.
21808
21809 * print.c (print_object): Always print ASCII chars as is.
21810
218112008-02-01 Kenichi Handa <handa@m17n.org>
21812
21813 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
21814
21815 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
21816 is a char table.
21817
218182008-02-01 Kenichi Handa <handa@m17n.org>
21819
21820 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
21821
218222008-02-01 Kenichi Handa <handa@m17n.org>
21823
21824 * xfaces.c (set_lface_from_font_name): Fix for the case that
21825 FONTNAME is not fontset name.
21826
218272008-02-01 Kenichi Handa <handa@m17n.org>
21828
21829 * fns.c (base64_encode_1): Fix previous change.
21830
218312008-02-01 Kenichi Handa <handa@m17n.org>
21832
21833 * fontset.c (set_fontset_font): New function.
21834 (Fset_fontset_font): If a font is specified for a charset, use
21835 map_charset_chars to store the font spec in a fontset.
21836
218372008-02-01 Kenichi Handa <handa@m17n.org>
21838
21839 * fontset.c (fontset_face): Create a fallback fontset on demand.
21840 (make_fontset): Don't create a fallback fontset here.
21841 (free_face_fontset): Free a fallback fontset (if any) too.
21842 (n_auto_fontsets): Delete this variable.
21843 (auto_fontset_alist): New variable.
21844 (new_fontset_from_font_name): Check auto_fontset_alist.
21845 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
21846 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
21847 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
21848 Defsubr Sfontset_list_all.
21849
218502008-02-01 Kenichi Handa <handa@m17n.org>
21851
21852 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
21853
218542008-02-01 Kenichi Handa <handa@m17n.org>
21855
21856 * fontset.c (Fnew_fontset): Check NAME more rigidly.
21857
218582008-02-01 Kenichi Handa <handa@m17n.org>
21859
21860 * editfns.c (Fgoto_char): Fix docstring.
21861
218622008-02-01 Kenichi Handa <handa@m17n.org>
21863
21864 * insdel.c (insert_from_gap): Adjust intervals correctly.
21865
218662008-02-01 Jason Rumney <jasonr@gnu.org>
21867
21868 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
21869 (pfnGetFontUnicodeRanges): New dynamically loaded function.
21870 (w32_initialize): Try to load it.
21871 (x_get_font_repertory): Use it if available.
21872 (w32_encode_char): Add shortcut for unicode output.
21873
21874 * w32fns.c (w32_load_system_font): Default charset to -1.
21875 (x_to_w32_charset): Match all fonts for unicode.
21876 (w32_to_x_charset): New parameter matching. Don't return partial
21877 or wildcard charsets.
21878 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
21879 (w32_codepage_for_font): Return CP_UNICODE for unicode.
21880 (w32_to_x_font): Match charset to real charset.
21881 (enum_font_cb2): Always list unicode versions.
21882
21883 * makefile.w32-in (temacs): Increase EMHEAP.
21884
218852008-02-01 Jason Rumney <jasonr@gnu.org>
21886
21887 * w32term.c (w32_encode_char): New charset parameter.
21888 font_info.encoding becomes encoding_type.
21889 (x_get_font_repertory): New function. Warning: stub only!
21890 (x_new_font): Return quickly if font already set.
21891 (x_new_fontset): fontsetname parameter is Lisp_Object.
21892 Use new fs_query_fontset. Try new_fontset_from_font_name.
21893 Use fontset_name for return value.
21894
21895 * w32term.h: Declare x_get_font_repertory.
21896
21897 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
21898 place of find_charset_in_text. Use encode_coding_object in place
21899 of encode_coding.
21900 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
21901 decode_coding.
21902
21903 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
21904 of x_new_fontset.
21905 (w32_load_system_font): Initialize charset as unicode.
21906 font_info.encoding becomes encoding_type.
21907 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
21908 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
21909 (syms_of_w32fns): Set get_font_repertory_func.
21910
21911 * w32console.c: Include character.h. Use terminal_encode_buffer
21912 from term.c.
21913 (write_glyphs): Use new version of encode_terminal_code. Use
21914 encode_coding_object in place of encode_coding.
21915
21916 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
21917 encoding becomes encoding_type.
21918
21919 * term.c (terminal_encode_buffer): Make externally visible.
21920
21921 * makefile.w32-in: Add character.h dependancies.
21922 (character.o, chartab.o): New targets.
21923
219242008-02-01 Kenichi Handa <handa@m17n.org>
21925
21926 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
21927 CODING_ID_EOL_TYPE.
21928
219292008-02-01 Andreas Schwab <schwab@suse.de>
21930
21931 * coding.c (produce_chars): Revert last change.
21932
219332008-02-01 Kenichi Handa <handa@m17n.org>
21934
21935 * charset.h (charset_unicode): Extern it.
21936
21937 * charset.c (string_xstring_p): Check by (C >= 0x100).
21938 (find_charsets_in_text): Change format of the arc CHARSETS. New
21939 arg MULTIBYTE.
21940 (Ffind_charset_region, Ffind_charset_string): Adjust for the
21941 change of find_charsets_in_text.
21942 (Fsplit_char): Fix doc. Never return unknown.
21943
21944 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
21945
21946 * coding.c (Fdefine_coding_system_alias): Update
21947 Vcoding_system_list.
21948
21949 * fontset.c (load_font_get_repertory): Pay attention to the case
21950 that ENCODING of a font is specified by a char-table.
21951
21952 * xterm.c (x_get_font_repertory): Handle the case that the
21953 encoding of font is other than Unicode.
21954
219552008-02-01 Kenichi Handa <handa@m17n.org>
21956
21957 * term.c (encode_terminal_code): Don't handle glyph-table. Check
21958 if a character is encodable by the terminal coding system. If
21959 not, produces proper number of `?'s. Update
21960 terminal_encode_buffer and terminal_encode_buf_size if necessary.
21961 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
21962
219632008-02-01 Kenichi Handa <handa@m17n.org>
21964
21965 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
21966 variables.
21967 (encode_terminal_code): Change argument. Encode multiple
21968 characters at once. Store the result of encoding in
21969 terminal_encode_buffer.
21970 (write_glyphs, insert_glyphs): Adjust for the change of
21971 encode_terminal_code.
21972 (term_init): Initialize terminal_encode_buffer and
21973 terminal_encode_buf_size.
21974
21975 * coding.c (consume_chars): If coding->src_object is nil, don't
21976 check annotation.
21977
219782008-02-01 Kenichi Handa <handa@m17n.org>
21979
21980 * character.c (char_string): Use ASCII_CHAR_P instead of
21981 SINGLE_BYTE_CHAR_P.
21982
219832008-02-01 Kenichi Handa <handa@m17n.org>
21984
21985 * xdisp.c (handle_auto_composed_prop): Check if the last
21986 characters of auto-composed region is newly composed with the
21987 following characters.
21988 (handle_composition_prop): Fix checking of point being inside
21989 composition.
21990
219912008-02-01 Kenichi Handa <handa@m17n.org>
21992
21993 * fns.c (concat): Don't change multibyteness of the result by
21994 concatenating an 8-bit character.
21995
21996 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
21997 multibyteness of the result when newelt is an 8-bit character.
21998
219992008-02-01 Dave Love <fx@gnu.org>
22000
22001 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
22002 EMACS_INT.
22003
22004 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
22005
22006 * xfaces.c (face_numeric_value): Declare dim size_t.
22007 (Finternal_lisp_face_equal_p): Remove unused f.
22008
22009 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
22010 (MATRIX_ROW): Remove unused vars.
22011 (draw_glyphs, x_insert_glyphs, fast_find_position)
22012 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
22013 byte/char counts.
22014
22015 * regex.c (regex_compile): Remove unused var.
22016
22017 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22018
22019 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
22020 (Faccessible_keymaps, where_is_internal): Remove unused vars.
22021
22022 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
22023
22024 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
22025
22026 * fileio.c (Fwrite_region): Remove unused var.
22027
22028 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
22029 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
22030
22031 * composite.c (Fremove_list_of_text_properties): Declare.
22032
22033 * coding.c (inhibit_pre_post_conversion): Remove (unused).
22034 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
22035 (coding_inherit_eol_type): Remove unused attrs.
22036 (detect_coding): Cast arg of detect_eol.
22037
22038 * charset.c (syms_of_charset): Remove unused var p.
22039 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
22040 byte/char counts.
22041
22042 * casetab.c (set_case_table): Remove unused var.
22043
22044 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
22045 unused vars.
22046
220472008-02-01 Dave Love <fx@gnu.org>
22048
22049 * xterm.c (x_bitmap_mask): Declare.
22050
220512008-02-01 Dave Love <fx@gnu.org>
22052
22053 * xterm.c (x_term_init): Fix type error.
22054
22055 * lisp.h: Add Funibyte_char_to_multibyte.
22056
22057 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
22058 (Fset_coding_system_priority): Doc fix.
22059
22060 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
22061
22062 * indent.c (check_composition): Make start and end EMACS_INT.
22063
22064 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
22065
22066 * xdisp.c (handle_composition_prop, check_point_in_composition):
22067 Make buffer positions EMACS_INT.
22068
22069 * composite.c (find_composition, run_composition_function)
22070 (update_compositions, Ffind_composition_internal): Make buffer
22071 positions EMACS_INT.
22072
22073 * composite.h (find_composition, update_compositions): Make
22074 position args EMACS_INT.
22075
22076 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
22077
22078 * intervals.c (get_property_and_range):
22079 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
22080
22081 * unexalpha.c: Don't include varargs.h.
22082
220832008-02-01 Dave Love <fx@gnu.org>
22084
22085 * coding.h (ENCODE_UTF_8): New.
22086
22087 * Makefile.in (gtkutil.o): Depend on coding.h.
22088
22089 * coding.c (Fset_coding_system_priority): Doc fix.
22090
220912008-02-01 Kenichi Handa <handa@m17n.org>
22092
22093 * fileio.c (Finsert_file_contents): Call setup_coding_system in
22094 the case of auto saving.
22095
220962008-02-01 Andreas Schwab <schwab@suse.de>
22097
22098 * chartab.c (map_char_table, map_char_table_for_charset): Protect
22099 `range' from GC.
22100
221012008-02-01 Kenichi Handa <handa@m17n.org>
22102
22103 * coding.c (decode_coding_sjis): Check bytes more rigidly.
22104
221052008-02-01 Kenichi Handa <handa@m17n.org>
22106
22107 * fileio.c (choose_write_coding_system): Return a decided coding system.
22108 (Fwrite_region): Set Vlast_coding_system_used to the return value
22109 of choose_write_coding_system.
22110
221112008-02-01 Kenichi Handa <handa@m17n.org>
22112
22113 * charset.c (Fset_charset_priority): Pay attention to duplicated
22114 arguments.
22115
22116 * coding.c (QCcategory): New variable.
22117 (syms_of_coding): Defsym it. Set all elements of
22118 Vcoding_category_table and their symbol values.
22119 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
22120 coding-category-XXX, and coding-category-list.
22121 (Fdefine_coding_system_internal): Add category in the plist.
22122
221232008-02-01 Kenichi Handa <handa@m17n.org>
22124
22125 * callproc.c (Fcall_process): Handle carryover correctly.
22126
22127 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
22128 (raw_text_coding_system): Check NILP (coding_system).
22129 (coding_inherit_eol_type): Check NILP (coding_system) and
22130 NILP (parent).
22131 (consume_chars): Fix for the case of raw-text.
22132
22133 * process.c (read_process_output): Handle carryover correctly.
22134
221352008-02-01 Dave Love <fx@gnu.org>
22136
22137 * regex.c (re_search_2): Fix last change.
22138
221392008-02-01 Kenichi Handa <handa@m17n.org>
22140
22141 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
22142 target_multibyte. Even in a unibyte case, return a converted
22143 multibyte char.
22144 (GET_CHAR_AFTER): New macro.
22145 (PATFETCH): Translate via multibyte char.
22146 (HANDLE_UNIBYTE_RANGE): Delete this macro.
22147 (SETUP_MULTIBYTE_RANGE): New macro.
22148 (regex_compile): Setup compiled code so that its multibyteness
22149 matches that of a target. Fix the handling of "[X-YZ]" using
22150 SETUP_MULTIBYTE_RANGE.
22151 (analyse_first) <charset>: For filling fastmap for all multibyte
22152 characters, don't check by BASE_LEADING_CODE_P.
22153 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
22154 the same as RE_MULTIBYTE_P (bufp) now.
22155 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
22156 (TARGET_CHAR_AND_LENGTH): Delete this macro.
22157 (TRANSLATE_VIA_MULTIBYTE): New macro.
22158 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
22159 It is the same as RE_MULTIBYTE_P (bufp) now.
22160 <exactn>: Translate via multibyte.
22161 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
22162 translate it.
22163 <charset, charset_not>: Fetch a character by
22164 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
22165 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
22166 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
22167 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
22168 by GET_CHAR_AFTER.
22169 (bcmp_translate): Likewise.
22170
22171 * search.c (compile_pattern): Check the member target_multibyte,
22172 not the member multibyte of buf.
22173
22174 * lread.c (read1): While reading a string, set force_singlebyte
22175 and force_multibyte correctly.
22176
22177 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
22178 up of unibyte_to_multibyte_table.
22179
221802008-02-01 Kenichi Handa <handa@m17n.org>
22181
22182 * coding.c (setup_coding_system): If coding has
22183 post-read-conversion or pre-write-conversion, set
22184 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
22185 respectively.
22186 (decode_coding_gap): Run post-read-conversion if any.
22187
22188 * fileio.c (Finsert_file_contents): Even if we read into a
22189 unibyte buffer, check if we must decode the result or not.
22190
221912008-02-01 Kenichi Handa <handa@m17n.org>
22192
22193 * coding.c (make_conversion_work_buffer): Change the work buffer
22194 name to the same one as that of Emacs 21.
22195
221962008-02-01 Kenichi Handa <handa@m17n.org>
22197
22198 * coding.h (make_conversion_work_buffer): Adjust prototype.
22199 (code_conversion_restore): Don't extern it.
22200
22201 * coding.c (detected_mask): Delete unused variable.
22202 (decode_coding_iso_2022): Pay attention to the byte sequence of
22203 CTEXT extended segment, and retain those bytes as is.
22204 (decode_coding_ccl): Delete unused variable `valids'.
22205 (setup_coding_system): Delete unused variable `category'.
22206 (consume_chars): Delete unused variable `category'. Make it work
22207 for non-multibyte case.
22208 (make_conversion_work_buffer): Change argument.
22209 (saved_coding): Delete unused variable.
22210 (code_conversion_restore): Don't check saved_coding->destination.
22211 (code_conversion_save): New function.
22212 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
22213 instead of record_unwind_protect.
22214 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
22215 (detect_coding_system): Delete unused variable `mask'.
22216 (Fdefine_coding_system_internal): Delete unused variable id.
22217
22218 * fileio.c (kill_workbuf_unwind): New function.
22219 (Finsert_file_contents): On replacing, call
22220 make_conversion_work_buffer with correct args, and call
22221 record_unwind_protect with the first arg kill_workbuf_unwind.
22222
22223 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
22224
222252008-02-01 Kenichi Handa <handa@m17n.org>
22226
22227 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
22228 (fontset_add): Fix for the case that TO is less than TO1.
22229 (Ffontset_info): Don't use fallback fontset on checking the
22230 default fontset.
22231 (dump_fontset): New function for debugging.
22232
22233 * coding.c (Fdefine_coding_system_internal): Fix for the case that
22234 coding_type is Qcharset.
22235
222362008-02-01 Kenichi Handa <handa@m17n.org>
22237
22238 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
22239 (map_char_table): Don't inherit the value from the parent on
22240 initializing VAL. Adjust for the above change.
22241
222422008-02-01 Kenichi Handa <handa@m17n.org>
22243
22244 * coding.c (Qsignature, Qendian): Delete these variables.
22245 (syms_of_coding): Don't initialize them.
22246 (CATEGORY_MASK_UTF_16_AUTO): New macro.
22247 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
22248 detect_info->found.
22249 (decode_coding_utf_16): Don't detect BOM here.
22250 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
22251 is NOT utf_16_without_bom.
22252 (setup_coding_system): For a coding system of type utf-16, check
22253 if the attribute :endian is Qbig or not (not nil or not), and set
22254 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
22255 (detect_coding): If coding type is utf-16 and BOM detection is
22256 required, detect it.
22257 (Fdefine_coding_system_internal): For a coding system of type
22258 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
22259
222602008-02-01 Kenichi Handa <handa@m17n.org>
22261
22262 * coding.c (coding_set_source): Fix for the case that the current
22263 buffer is different from coding->src_object.
22264 (decode_coding_object): Don't use the conversion work buffer if
22265 DST_OBJECT is a buffer.
22266
222672008-02-01 Dave Love <fx@gnu.org>
22268
22269 * lread.c (read_emacs_mule_char) [len==2]: Index
22270 emacs_mule_charset correctly.
22271
222722008-02-01 Dave Love <fx@gnu.org>
22273
22274 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
22275 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
22276 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
22277 treated specially.)
22278 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
22279 (detected_mask): Remove Big5 bits.
22280
222812008-02-01 Kenichi Handa <handa@m17n.org>
22282
22283 The following changes are to make the font rescaling facility
22284 compatible with Emacs 21.
22285
22286 * xfaces.c (Vface_font_rescale_alist): Rename from
22287 Vface_resizing_fonts.
22288 (struct font_name): Rename member resizing_ratio to rescale_ratio.
22289 (font_rescale_ratio): Rename from font_resizing_ratio.
22290 (split_font_name): Set font->rescale_ratio.
22291 (better_font_p): Pay attention to font->rescale_ratio.
22292 (build_scalable_font_name): Likewise. Change RESX, and RESY
22293 fields.
22294 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
22295
222962008-02-01 Kenichi Handa <handa@m17n.org>
22297
22298 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
22299 (Qutf_16_le): Remove these variables.
22300 (syms_of_coding): Don't DEFSYM them.
22301 (decode_coding_utf_16): Fix handling of BOM.
22302 (encode_coding_utf_16): Fix handling of BOM.
22303
223042008-02-01 Kenichi Handa <handa@m17n.org>
22305
22306 * fileio.c (Finsert_file_contents): On replacing, before decoding
22307 the file into the work buffer, set point of the work buffer to the end.
22308
223092008-02-01 Dave Love <fx@gnu.org>
22310
22311 * coding.c (Fcheck_coding_systems_region): Fix type errors.
22312
223132008-02-01 Dave Love <fx@gnu.org>
22314
22315 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22316 and fix C types.
22317
223182008-02-01 Kenichi Handa <handa@m17n.org>
22319
22320 * xdisp.c (SKIP_GLYPHS): New macro.
22321 (set_cursor_from_row): Pay attention to string display properties.
22322
22323 * category.c (copy_category_entry): Fix for the case that RANGE
22324 is an integer.
22325
22326 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
22327
22328 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
22329
223302008-02-01 Kenichi Handa <handa@m17n.org>
22331
22332 * charset.c (Fcharset_id_internal): New function.
22333 (syms_of_charset): Defsubr it.
22334
22335 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
22336 with the last arg charset_list acquired from coding.
22337 (Fdefine_coding_system_internal): For ccl-based coding system, fix
22338 the attribute coding_attr_ccl_valids.
22339
22340 * coding.h (enum define_coding_ccl_arg_index): Set the first
22341 member coding_arg_ccl_decoder to coding_arg_max.
22342
22343 * ccl.h (ccl_driver): Adjust prototype.
22344
22345 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
22346 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 22347 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
22348 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
22349 last arg Qnil.
22350
223512008-02-01 Kenichi Handa <handa@m17n.org>
22352
22353 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
22354 call encode_char.
22355
22356 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
22357
223582008-02-01 Dave Love <fx@gnu.org>
22359
22360 * composite.c (syms_of_composite): Make composition_hash_table weak.
22361
223622008-02-01 Kenichi Handa <handa@m17n.org>
22363
22364 * dispextern.h (check_face_attributes, generate_ascii_font_name)
22365 (font_name_registry): Don't extern them.
22366 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
22367
22368 * fontset.h (Qfontset): Don't extern it.
22369 (new_fontset_from_font_name): Extern it.
22370
22371 * fontset.c: Give 8 extra slots to fontset objects.
22372 (Qfontset_info): New variable.
22373 (syms_of_fontset): Defsym it.
22374 (FONTSET_FALLBACK): New macro.
22375 (fontset_face): Try also the default fontset.
22376 (make_fontset): Realize a fallback fontset from the default fontset.
22377 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
22378 using split_font_name_into_vector and build_font_name_from_vector.
22379 (Fset_fontset_font): Access the elements of font_spec by enum
22380 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
22381 name by using split_font_name_into_vector.
22382 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
22383 generate a proper font name from the fontset name. Update
22384 Vfontset_alias_alist.
22385 (n_auto_fontsets): New variable.
22386 (new_fontset_from_font_name): New function.
22387 (Ffont_info): Store the information about fonts generated from the
22388 default fontset in the first extra slot of the returned char-table.
22389
22390 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
22391 (font_name_registry): Delete function.
22392 (split_font_name_into_vector): New function.
22393 (build_font_name_from_vector): New function.
22394 (font_list): The argument REGISTRY is now a list of registry names.
22395 (choose_face_font): If we are choosing an ASCII font, and ATTRS
22396 specifies an explicit font name, return the name as is. Make a
22397 list of registy names.
22398
22399 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
22400 of x_new_fontset.
22401 (Fx_create_frame): Don't call x_new_fontset here. Just use
22402 x_list_fonts to check the existence of fonts.
22403
22404 * xterm.h (x_new_fontset): Adjust prototype.
22405
22406 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
22407 string. Use new_fontset_from_font_name to create a fontset from a
22408 font name.
22409
224102008-02-01 Kenichi Handa <handa@m17n.org>
22411
22412 * syntax.c (Vfind_word_boundary_function_table): New name for
22413 Vnext_word_boundary_function_table.
22414 (find-word-boundary-function-table): New name for
22415 next-word-boundary-function-table.
22416
224172008-02-01 Dave Love <fx@gnu.org>
22418
22419 * Makefile.in: Fix some dependencies.
22420
22421 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
22422 set it to nil before returning.
22423
22424 * composite.c (update_compositions): Fix type error.
22425
22426 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
22427
224282008-02-01 Kenichi Handa <handa@m17n.org>
22429
22430 * xterm.c (x_new_font): Optimize for the case that the font is
22431 already set for the frame.
22432
224332008-02-01 Kenichi Handa <handa@m17n.org>
22434
22435 * chartab.c (char_table_ascii): Check if the char table contents
22436 is sub-char-table or not.
22437 (char_table_set, char_table_set_range): Fix argument to
22438 char_table_ascii.
22439
22440 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
22441 (detect_coding_utf_8, detect_coding_utf_16)
22442 (detect_coding_emacs_mule, detect_coding_iso_2022)
22443 (detect_coding_sjis, detect_coding_big5)
22444 (detect_coding_ccl, detect_coding_charset): Change argument MASK
22445 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
22446 sequence is valid in this coding system. Change callers.
22447 (MAX_ANNOTATION_LENGTH): New macro.
22448 (ADD_ANNOTATION_DATA): New macro.
22449 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
22450 ADD_ANNOTATION_DATA. Change the format of annotation data.
22451 (ADD_CHARSET_DATA): New macro.
22452 (emacs_mule_char): New argument ID. Change callers.
22453 (decode_coding_emacs_mule, decode_coding_iso_2022)
22454 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
22455 Produce charset annotation data in coding->charbuf.
22456 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
22457 to charset annotation data in coding->charbuf.
22458 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
22459 coding->common_flags if the coding system is iso-2022 based and
22460 uses designation.
22461 (produce_composition): Adjust for the new annotation data format.
22462 (produce_charset): New function.
22463 (produce_annotation): Handle charset annotation.
22464 (handle_composition_annotation, handle_charset_annotation): New
22465 functions.
22466 (consume_chars): Handle charset annotation. Utilize the above two
22467 functions.
22468 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
22469 buffer, get the deleted text as a string and set
22470 coding->src_object to that string.
22471 (detect_coding, detect_coding_system): Use the new struct
22472 coding_detection_info.
22473
22474 * coding.h (struct coding_detection_info): New structure.
22475 (struct coding_system): Adjust prototype of the member `detector'.
22476 (CODING_ANNOTATE_CHARSET_MASK): New macro.
22477
224782008-02-01 Kenichi Handa <handa@m17n.org>
22479
22480 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
22481
224822008-02-01 Dave Love <fx@gnu.org>
22483
22484 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
22485 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
22486 to new local and nullify apropos_accumulate before returning.
22487 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
22488
224892008-02-01 Kenichi Handa <handa@m17n.org>
22490
22491 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
22492 correctly.
e3eea1fc 22493
aac0c6e3
MR
224942008-02-01 Dave Love <fx@gnu.org>
22495
22496 * fns.c (Flanginfo): Call synchronize_system_time_locale.
22497
224982008-02-01 Kenichi Handa <handa@m17n.org>
22499
22500 The following changes are to make character composition happen
22501 automatically on displaying.
22502
22503 * Makefile.in (lisp, shortlisp): Add composite.elc.
22504
22505 * composite.h (Qauto_composed, Vauto_composition_function)
22506 (Qauto_composition_function): Extern them.
22507
22508 * composite.c (Vcomposition_function_table)
22509 (Qcomposition_function_table): Delete variables.
22510 (Qauto_composed, Vauto_composition_function)
22511 (Qauto_composition_function): New variables.
22512 (run_composition_function): Don't call
22513 compose-chars-after-function.
22514 (update_compositions): Clear `auto-composed' text property.
22515 (compose_chars_in_text): Delete this function.
22516 (syms_of_composite): Staticpro Qauto_composed and
22517 Qauto_composition_function. Declare Vauto_composition_function as
22518 a Lisp variable.
22519
22520 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
22521
22522 * xdisp.c (it_props): Add an entry for Qauto_composed.
22523 (handle_auto_composed_prop): New function.
22524
22525 * xselect.c (selection_data_to_lisp_data): Don't call
22526 compose_chars_in_text.
22527
225282008-02-01 Dave Love <fx@gnu.org>
22529
22530 * keyboard.c (read_char): Modify checking around use of
22531 Vkeyboard_translate_table.
22532
22533 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22534 and fix C types.
22535
225362008-02-01 Kenichi Handa <handa@m17n.org>
22537
22538 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
22539 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22540 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
22541 the case that the last byte is '\r' correctly.
22542 (decode_coding): Flush out the unprocessed data correctly.
22543 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
22544
225452008-02-01 Dave Love <fx@gnu.org>
22546
22547 * xterm.c (XTread_socket): Fix changes for defined keysyms.
22548 Add XK_ISO... case.
22549 (xaw_scroll_callback): Revert last change.
22550
225512008-02-01 Kenichi Handa <handa@m17n.org>
22552
22553 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
22554
225552008-02-01 Kenichi Handa <handa@m17n.org>
22556
22557 * xfaces.c (Vface_resizing_fonts): New variable.
22558 (struct font_name): New member `resizing_ratio'.
22559 (font_resizing_ratio): New function.
22560 (split_font_name): Set font->resizing_ratio.
22561 (better_font_p): Pay attention to font->resizing_ratio.
22562 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
22563 RESX, and RESY fields.
22564 (try_alternative_families): Try scalable fonts if
22565 Vscalable_fonts_allowed is not Qt.
22566 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
22567
225682008-02-01 Dave Love <fx@gnu.org>
22569
22570 * xterm.c (xaw_scroll_callback): Cast correctly.
22571
225722008-02-01 Dave Love <fx@gnu.org>
22573
22574 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
22575 (lispy_kana_keys): Comment out.
22576 (make_lispy_event) [XK_kana_A]: Comment out.
22577
22578 * xterm.c (xaw_scroll_callback): Cast call_data.
22579 (XTread_socket): Deal with ASCII keysyms.
22580 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
22581
225822008-02-01 Dave Love <fx@gnu.org>
22583
22584 * xterm.c (Vx_keysym_table): New.
22585 (syms_of_xterm): Initialize it.
22586 (XTread_socket): Use it.
22587 From head: Eliminate incorrect optimization that tried to avoid
22588 decoding the output of X*LookupString.
22589 (x_get_font_repertory): Delete charset declaration.
22590
225912008-02-01 Kenichi Handa <handa@m17n.org>
22592
22593 * coding.c (detect_coding_charset): If only ASCII bytes are found,
22594 return 0.
22595 (Fdefine_coding_system_internal): Setup
22596 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
22597
225982008-02-01 Dave Love <fx@gnu.org>
22599
22600 * coding.c (Fcheck_coding_system): Doc fix.
22601
22602 * editfns.c (Finsert_byte): Return a proper value.
22603
226042008-02-01 Kenichi Handa <handa@m17n.org>
22605
22606 * coding.c (decode_coding): Fix args to translate_chars. Pay
22607 attention to Vstandard_translation_table_for_decode.
22608 (encode_coding): Fix args to translate_chars. Pay attention to
22609 Vstandard_translation_table_for_encode.
22610
22611 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
22612 SINGLE_BYTE_CHAR_P.
22613
22614 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
22615 not by SINGLE_BYTE_CHAR_P.
22616
22617 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
22618 SINGLE_BYTE_CHAR_P.
22619
22620 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
22621 SINGLE_BYTE_CHAR_P.
22622
22623 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
22624 by SINGLE_BYTE_CHAR_P.
22625
22626 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
22627 SINGLE_BYTE_CHAR_P.
22628
226292008-02-01 Dave Love <fx@gnu.org>
22630
22631 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
22632
226332008-02-01 Dave Love <fx@gnu.org>
22634
22635 * fns.c (Flanginfo): Fix typo.
22636
22637 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
22638
226392008-02-01 Kenichi Handa <handa@m17n.org>
22640
22641 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
22642 (detect_coding_emacs_mule, detect_coding_iso_2022)
22643 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
22644 incomplete byte sequence. Don't update *mask when correctly detected.
22645 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
22646 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
22647 (detect_coding, detect_coding_system): Adjust for the changes above.
22648
226492008-02-01 Kenichi Handa <handa@m17n.org>
22650
22651 * character.c (char_string): Rename from
22652 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
22653 (string_char): Rename from string_char.
22654
22655 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
22656 if C is greater than MAX_3_BYTE_CHAR.
22657 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
22658 string_char instead of string_char_with_unification.
22659
226602008-02-01 Dave Love <fx@gnu.org>
22661
22662 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
22663
226642008-02-01 Kenichi Handa <handa@m17n.org>
22665
22666 * keymap.c (push_key_description): Pay attention to force_multibyte.
22667
22668 * regex.c (re_search_2): Fix for the case of unibyte buffer.
22669
226702008-02-01 Dave Love <fx@gnu.org>
22671
22672 * charset.c (define_charset_internal): Rename `supprementary'.
22673
22674 * Makefile.in (lisp, shortlisp): Remove latin-N.
22675
226762008-02-01 Dave Love <fx@gnu.org>
22677
22678 * xfns.c (x_window, x_window): Use use_xim.
22679
22680 * xterm.c (use_xim): Initialize.
22681 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
22682 (x_term_init): Maybe set use_xim.
22683
22684 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
22685
226862008-02-01 Kenichi Handa <handa@m17n.org>
22687
22688 * search.c (search_buffer): Fix case-fold-search of multibyte
22689 characters.
22690 (boyer_moore): Rename the last argument to char_high_bits.
22691
226922008-02-01 Kenichi Handa <handa@m17n.org>
22693
22694 * xdisp.c (display_string): Fix for the case of zero width glyph.
22695
22696 * xfns.c (x_set_font): Change the error message of the case that
22697 x_new_fontset returns Qt.
22698
22699 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
22700 (Finternal_set_lisp_face_attribute): Use signal_error for the
22701 error of invalid fontset.
22702
22703 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
22704 fontset, return Qt.
22705
227062008-02-01 Dave Love <fx@gnu.org>
22707
22708 * unexelf.c (unexec): Make .got handling not SGI-specific.
22709
22710 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
22711
22712 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
22713
22714 * keyboard.c (read_key_sequence): Fix type error.
22715
22716 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
22717 type error.
22718
22719 * fontset.c (fontset_add): Return Lisp_Object.
22720
227212008-02-01 Dave Love <fx@gnu.org>
22722
22723 * charset.h (charset_ordered_list_tick): Declare extern.
22724
227252008-02-01 Kenichi Handa <handa@m17n.org>
22726
22727 The following changes (and some of 2008-02-01 changes of mine) are
22728 for handling syntax, category, and case conversion for unibyte
22729 characters by converting them to multibyte on the fly. With these
22730 changes, we don't have to setup syntax and case tables for unibyte
22731 characters in each language environment.
22732
22733 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
22734 multibyte if necessary.
22735
22736 * bytecode.c (Fbyte_code): Likewise.
22737
22738 * character.h (LEADING_CODE_LATIN_1_MIN)
22739 (LEADING_CODE_LATIN_1_MAX): New macros.
22740 (unibyte_to_multibyte_table): Extern it.
22741 (unibyte_char_to_multibyte): New macro.
22742 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
22743 (CHAR_LEADING_CODE): New macro.
22744 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
22745
22746 * character.c (unibyte_to_multibyte_table): New variable.
22747 (unibyte_char_to_multibyte): Move to character.h and define as macro.
22748 (multibyte_char_to_unibyte): If C is an eight-bit character,
22749 convert it to the corresponding byte value.
22750
22751 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
22752 not 1, signals an error. Update the elements of
22753 unibyte_to_multibyte_table.
22754 (init_charset_once): Initialize unibyte_to_multibyte_table.
22755 (syms_of_charset): Define the charset `iso-8859-1'.
22756
22757 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
22758 as is without converting it to unibyte. In a unibyte buffer,
22759 convert C to multibyte before checking the syntax.
22760
22761 * lisp.h (unibyte_char_to_multibyte): Delete extern.
22762
22763 * minibuf.c (Fminibuffer_complete_word): Use the macro
22764 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
22765
22766 * regex.h (struct re_pattern_buffer): New member target_multibyte.
22767
22768 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
22769 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
22770 that is zero, convert an eight-bit char to multibyte.
22771 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
22772 non-emacs case.
22773 (PATFETCH): Convert an eight-bit char to multibyte.
22774 (HANDLE_UNIBYTE_RANGE): New macro.
22775 (regex_compile): Setup the compiled pattern for multibyte chars
22776 even if the given regex string is unibyte. Use PATFETCH_RAW
22777 instead of PATFETCH in many places. To handle `charset'
22778 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
22779 only for ASCII chars.
22780 (analyse_first) <exactn>: Simplify because the compiled pattern
22781 is multibyte.
22782 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
22783 <charset>: Use CHAR_LEADING_CODE to get leading codes.
22784 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
22785 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
22786 multibyte always 1.
22787 (re_search_2): In emacs, set the locale variable multibyte to 1,
22788 otherwise to 0. New local variable target_multibyte. Check it
22789 to decide the multibyteness of STR1 and STR2. If
22790 target_multibyte is zero, convert unibyte chars to multibyte
22791 before translating and checking fastmap.
22792 (TARGET_CHAR_AND_LENGTH): New macro.
22793 (re_match_2_internal): In emacs, set the locale variable multibyte
22794 to 1, otherwise to 0. New local variable target_multibyte. Check
22795 it to decide the multibyteness of STR1 and STR2. Use
22796 TARGET_CHAR_AND_LENGTH to fetch a character from D.
22797 <charset, charset_not>: If multibyte is nonzero, check fastmap
22798 only for ASCII chars. Call bcmp_translate with
22799 target_multibyte, not with multibyte.
22800 <begline>: Declare the local variable C as `unsigned'.
22801 (bcmp_translate): Change the last arg name to target_multibyte.
22802
22803 * search.c (compile_pattern_1): Don't adjust the multibyteness of
22804 the regexp pattern and the matching target. Set cp->buf.multibyte
22805 to the multibyteness of the regexp pattern. Set
22806 cp->but.target_multibyte to the multibyteness of the matching target.
22807 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
22808 FETCH_STRING_CHAR_ADVANCE.
22809 (Freplace_match): Convert unibyte chars to multibyte.
22810
22811 * syntax.c (char_quoted, back_comment, scan_words)
22812 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
22813 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
22814 unibyte chars to multibyte.
22815 (skip_chars): Delete the arg syntaxp, and move the code for
22816 handling syntaxes to skip_syntaxes. Change callers.
22817 Fix the case that the multibyteness of STRING and the current
22818 buffer doesn't match.
22819 (skip_syntaxes): New function.
22820 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
22821 SINGLE_BYTE_CHAR_P.
22822
228232008-02-01 Kenichi Handa <handa@m17n.org>
22824
22825 * xfaces.c (QCfontset): New variable.
22826 (LFACE_FONTSET): New macro.
22827 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
22828 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
22829 (Finternal_set_lisp_face_attribute)
22830 (Finternal_get_lisp_face_attribute): Handle QCfontset.
22831 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
22832 check also LFACE_FONTSET_INDEX.
22833 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
22834 attrs[LFACE_FONT_INDEX].
22835 (syms_of_xfaces): Intern and staticpro QCfontset.
22836
22837 * dispextern.h (enum lface_attribute_index): New member
22838 LFACE_FONTSET_INDEX.
22839
22840 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
22841
228422008-02-01 Kenichi Handa <handa@m17n.org>
22843
22844 * coding.c (coding_set_destination): Fix coding->destination for
22845 the case converting a region.
22846 (encode_coding_utf_8): Encode eight-bit chars as single byte.
22847 (encode_coding_object): Fix coding->dst_pos and
22848 coding->dst_pos_byte for the case converting a region.
22849
22850 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
22851
22852 * character.h (BYTE8_STRING): New macro.
22853
22854 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
22855
228562008-02-01 Kenichi Handa <handa@m17n.org>
22857
22858 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
22859 characters by octal form.
22860
22861 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
22862
22863 * buffer.h (_fetch_multibyte_char_len): Delete extern.
22864 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
22865 _fetch_multibyte_char_len.
22866 (FETCH_CHAR_AS_MULTIBYTE): New macro.
22867
22868 * casetab.c (set_canon, set_identity, shuffle): Simplify.
22869
22870 * casefiddle.c (casify_object): Simplify. Handle the case that
22871 the case conversion change the byte length.
22872 (casify_region): Likewise.
22873
22874 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
22875
22876 * character.c (_fetch_multibyte_char_len): Delete this variable.
22877 (syms_of_character): Setup Vprintable_chars.
22878
22879 * editfns.c (Fchar_equal): Fix for the unibyte case.
22880 (Finsert_byte): New function.
22881 (syms_of_editfns): Defsubr it.
22882
22883 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
22884 of direct code 0x3ffff.
22885
22886 * search.c (Freplace_match): Fix for the unibyte case.
22887
228882008-02-01 Kenichi Handa <handa@m17n.org>
22889
22890 * lread.c (safe_to_load_p): Fix the logic.
22891
22892 * syntax.c (scan_words): Don't treat characters belonging to
22893 different scripts as constituting a word.
22894
22895 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22896
22897 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
22898
22899 * emacs.c (main): In the case of --unibyte, instead of aborting on
22900 finding non-empty buffer, make it unibyte.
22901
229022008-02-01 Kenichi Handa <handa@m17n.org>
22903
22904 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
22905 to create a fontset.
22906
229072008-02-01 Dave Love <fx@gnu.org>
22908
22909 * character.c (Funibyte_char_to_multibyte): Doc fix.
22910
22911 * xfns.c [HAVE_STDLIB_H]: Fix last change.
22912
229132008-02-01 Kenichi Handa <handa@m17n.org>
22914
22915 * fontset.c (fontset_add): Make the type `int'.
22916 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
22917
22918 * character.c (unibyte_char_to_multibyte)
22919 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
22920 charset_unibyte, not charset_primary.
22921
22922 * charset.h (charset_unibyte): Extern it instead of charset_primary.
22923
22924 * charset.c (charset_unibyte): Rename from charset_primary.
22925 (Funibyte_charset): Rename from Fprimary_charset.
22926 (Fset_unibyte_charset): Rename from Fset_primary_charset.
22927 (syms_of_charset): Adjust for the above changes.
22928
22929 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22930 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22931 it->multibyte_p is zero.
22932
22933 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
22934 Delete extern.
22935
229362008-02-01 Kenichi Handa <handa@m17n.org>
22937
22938 * coding.c (Fdefine_coding_system_internal): Fix category setting
22939 for a coding system of type iso-2022.
22940
229412008-02-01 Kenichi Handa <handa@m17n.org>
22942
22943 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
22944
229452008-02-01 Kenichi Handa <handa@m17n.org>
22946
22947 * syntax.c (Vnext_word_boundary_function_table): New variable.
22948 (next-word-boundary-function-table): Declare it as a Lisp variable
22949 in syms_of_syntax.
22950 (scan_words): Call functions in Vnext_word_boundary_function_table
22951 if any.
22952
22953 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
22954
22955 * fontset.c (fs_load_font): If fontp->charset is not negative,
22956 return fontp without setting its members.
22957
229582008-02-01 Dave Love <fx@gnu.org>
22959
22960 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
22961
22962 * m/sparc.h (HAVE_ALLOCA): Delete.
22963
22964 * s/irix6-5.h: Don't include strings.h.
22965 (bcopy, bzero, bcmp): Don't undef.
22966
22967 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
22968
22969 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
22970 (TIOCSIGSEND): Don't test IRIX6.
22971 (bcopy, bzero, bcmp): Define conditionally.
22972
229732008-02-01 Kenichi Handa <handa@m17n.org>
22974
22975 * buffer.c (Qas, Qmake, Qto): New variables.
22976 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
22977 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
22978
22979 * callproc.c (Fcall_process): Don't call insert_1_both directly if
22980 we are inserting a process output into a multibyte buffer.
22981
22982 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
22983 multibyte_char_to_unibyte.
22984
22985 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
22986 by the primary charset, make it eight-bit char.
22987 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
22988
22989 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
22990 (charset_8_bit__control, charset_8_bit_graphic)
22991 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
22992 (define_charset_internal): New function.
22993 (syms_of_charset): Call define_charset_internal for pre-defined
22994 charsets.
22995
22996 * charset.h (charset_8_bit): Extern it.
22997
22998 * coding.c (make_conversion_work_buffer): Adjust for the change
22999 of Fset_buffer_multibyte.
23000 (encode_coding_raw_text): Increment p0 in the loop.
23001
23002 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
23003
23004 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
23005 for the change of Fset_buffer_multibyte.
23006
23007 * fns.c (Fstring_to_multibyte): New function.
23008 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
23009
230102008-02-01 Dave Love <fx@gnu.org>
23011
23012 * xfns.c (x_put_x_image): Declare args.
23013
23014 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
23015 (try_font_list): Declare an arg.
23016
23017 * xdisp.c (message2_nolog, set_message): Declare an arg.
23018
23019 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
23020
23021 * syntax.c (scan_sexps_forward): Declare an arg.
23022
23023 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
23024 Declare an arg.
23025
23026 * lisp.h (Fnew_fontset): Declare.
23027
23028 * keymap.c (push_key_description): Call CHARACTERP correctly.
23029
23030 * fontset.c (fontset_add): Declare args. Call make_number correctly.
23031 (face_for_char): Delete unused vars.
23032 (Fset_fontset_font): Doc fix. Delete unused vars.
23033
23034 * doc.c (Fsubstitute_command_keys): Delete unused vars.
23035
23036 * composite.c (update_compositions): Declare arg.
23037
23038 * cm.c (calccost, cmgoto): Declare args.
23039
23040 * charset.c: Remove `emacs' conditional. Doc fixes.
23041 (map_char_table_for_charset): Declare.
23042
23043 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
23044
23045 * ccl.c: Remove `emacs' conditional.
23046
230472008-02-01 Kenichi Handa <handa@m17n.org>
23048
23049 The following changes are to allow specifying multiple font
23050 patterns for a character range (specified by script or charset).
23051
23052 * Makefile.in (abbrev.o): Depend on syntax.h.
23053 (xfaces.o): Depend on charset.h.
23054
23055 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
23056 SINGLE_BYTE_CHAR_P.
23057
23058 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
23059
23060 * character.h (Vchar_script_table): Extern it.
23061
23062 * character.c (Vscript_alist): Delete.
23063 (Vchar_script_table, Qchar_script_table): New variable.
23064 (syms_of_character): Declare Vchar_script_table as a lisp variable
23065 and initialize it.
23066
23067 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
23068 have property char-table-extra-slots, make no extra slot.
23069
23070 * dispextern.h (struct face): Delete member `charset'.
23071 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
23072 SINGLE_BYTE_CHAR_P.
23073 (choose_face_font, lookup_non_ascii_face, font_name_registry):
23074 Add prototypes.
23075 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
23076 (generate_ascii_font_name): Rename from generate_ascii_font.
23077
23078 * fontset.h (get_font_repertory_func): New prototype.
23079 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
23080 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
23081
23082 * fontset.c (Qprepend, Qappend): New variables.
23083 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
23084 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
23085 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
23086 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
23087 (fontset_ref_and_range, fontset_add, reorder_font_vector)
23088 (load_font_get_repertory): New functions.
23089 (fontset_set): Delete.
23090 (fontset_face): New arg FACE. Return face ID, not face.
23091 Complete re-write to handle new fontset structure. Change caller.
23092 (free_face_fontset): Use ASET istead of AREF (X) = Y.
23093 (face_for_char): Don't call lookup_face.
23094 (make_fontset_for_ascii_face): New arg FACE.
23095 (fs_load_font): New arg CHARSET_ID. Don't check
23096 Vfont_encoding_alist here.
23097 (find_font_encoding): New function.
23098 (list_fontsets): Use STRINGP, not ! NILP.
23099 (accumulate_script_ranges): New function.
23100 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
23101 re-written to handle new fontset structure.
23102 (Ffontset_font): Return a copy of element.
23103 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
23104 docstring of font-encoding-alist.
23105
23106 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
23107 (Fset_fotset_font): Fix arguments to 5.
23108
23109 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
23110
23111 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
23112 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23113 (highlight_trailing_whitespace): Adjust for the change of
23114 lookup_named_face.
23115
23116 * xfaces.c: Include charset.h.
23117 (load_face_font): Delete argument C. Change caller.
23118 (generate_ascii_font_name): Rename from generate_ascii_font.
23119 (font_name_registry): New function.
23120 (cache_face): Store ascii faces before non-ascii faces in buckets.
23121 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
23122 Lookup only ascii faces.
23123 (lookup_non_ascii_face): New function.
23124 (lookup_named_face): Delete argument C. Change caller.
23125 (lookup_derived_face): Delete argument C. Change caller.
23126 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
23127 a string, just call font_list with it.
23128 (choose_face_font): Delete arguments FACE and C. New arg
23129 FONT_SPEC. Change caller.
23130 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
23131 Change caller.
23132 (realize_non_ascii_face): New function.
23133 (realize_x_face): Call load_face_font here.
23134 (realize_tty_face): Delete argument C. Change caller.
23135 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
23136 get a face ID.
23137 (dump_realized_face): Don't print charset of FACE.
23138
23139 * xfns.c (x_set_font): Always call x_new_fontset and
23140 store_frame_parameter.
23141 (Fx_create_frame): Call x_new_fontset, not x_new_font.
23142 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
23143
23144 * xterm.h (x_get_font_repertory): Extern it.
23145
23146 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
23147 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
23148 it->multibyte_p is zero.
23149 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23150 (x_new_fontset): If FONTSETNAME doesn't match any existing
23151 fontsets, create a new one.
23152 (x_get_font_repertory): New function.
23153
231542008-02-01 Kenichi Handa <handa@m17n.org>
23155
23156 * coding.c (Ffind_coding_systems_region_internal): Detect an
23157 ASCII only string correctly.
23158
23159 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
23160 version is 0.
23161
231622008-02-01 Kenichi Handa <handa@m17n.org>
23163
23164 * lread.c: Include "coding.h".
23165 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
23166 (load_each_byte, unread_char): New variables.
23167 (readchar_backlog): Delete.
23168 (readchar): Return a character unless load_each_byte is nonzero.
23169 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
23170 cons. If unread_char is not -1, simply return it.
23171 (unreadchar): Handle the case that readcharfun is
23172 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
23173 (read_multibyte): Delete.
23174 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
23175 (read_emacs_mule_char): New functions.
23176 (Fload): Even if the file doesn't have the extension ".elc", if
23177 safe_to_load_p returns a positive version number, assume that the
23178 file contains bytecompiled code. If the version is less than 22,
23179 load the file while decoding multibyte sequences by emacs-mule.
23180 (readevalloop): Don't use readchar_backlog.
23181 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
23182 (Fread_from_string): Pay attention to the case that STREAM is a cons.
23183 (read_escape): Delete the arg BYTEREP.
23184 (read1): Set load_each_byte to 1 temporarily while handling
23185 #@NUMBER. Don't call read_multibyte.
23186 (read_vector): Call Fread with a cons. If readcharfun is
23187 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
23188 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
23189 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
23190 and Qload_force_doc_strings.
23191
231922008-02-01 Kenichi Handa <handa@m17n.org>
23193
23194 * xdisp.c (face_before_or_after_it_pos): Call
23195 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
23196
231972008-02-01 Kenichi Handa <handa@m17n.org>
23198
23199 * character.h (TRAILING_CODE_P): New macro.
23200 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
23201 (string_char_with_unification): Fix prototype.
23202 (Vscript_alist): Extern it.
23203
23204 * character.c (Vscript_alist): New variable.
23205 (string_char_with_unification, str_as_unibyte)
23206 (string_escape_byte8): Add `const' to local variables.
23207 (syms_of_character): Declare script-alist as a Lisp variable.
23208
23209 * charset.h (Vcharset_ordered_list): Extern it.
23210 (charset_ordered_list_tick): Extern it.
23211 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
23212 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
23213 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
23214 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
23215 (Funify_charset): Adjust for the change of Funify_charset.
23216
23217 * charset.c (charset_ordered_list_tick): New variable.
23218 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
23219 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 23220 deunify instead of unify a charset.
aac0c6e3
MR
23221 (string_xstring_p): Add `const' to local variables.
23222 (find_charsets_in_text): Add `const' to arguments and local variables.
23223 (encode_char): Adjust for the change of Funify_charset. Fix
23224 detecting of invalid code.
23225 (Fset_charset_priority): Increment charset_ordered_list_tick.
23226 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
23227 and TO_CODE.
23228
23229 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
23230 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
23231 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
23232 (decode_coding_ccl, consume_chars)
23233 (Ffind_coding_systems_region_internal)
23234 (Fcheck_coding_systems_region): Add `const' to local variables.
23235
23236 * print.c (print_object): Use octal form for printing the
23237 contents of a bool vector.
23238
232392008-02-01 Dave Love <fx@gnu.org>
23240
23241 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
23242 <version == 20>: Refuse to load.
23243
232442008-02-01 Dave Love <fx@gnu.org>
23245
23246 * fns.c: Move coding.h.
23247 (Qcodeset, Qdays, Qmonths): New.
23248 (concat): Use CHARACTERP instead of INTEGERP.
23249 (Flocale_codeset): Delete.
23250 (Flanginfo): New function.
23251 (syms_of_fns): Change accordingly.
23252
23253 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
23254
232552008-02-01 Dave Love <fx@gnu.org>
23256
23257 * casetab.c (init_casetab_once, init_casetab_once): Fix
23258 CHAR_TABLE_SET call.
23259
23260 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
23261
23262 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
23263
23264 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
23265 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
23266 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
23267
23268 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
23269
23270 * coding.c (ENCODE_DESIGNATION, decode_eol)
23271 (make_conversion_work_buffer, code_conversion_restore)
23272 (Fdefine_coding_system_internal): Convert Lisp types.
23273 (code_conversion_restore): Use EQ, not ==.
23274 (Fencode_coding_string): Fix code_convert_string call.
23275
23276 * coding.h (code_convert_region): Fix prototype.
23277
23278 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
23279
23280 * fontset.c (fontset_ref, fontset_set, fs_load_font)
23281 (Ffontset_info): Convert Lisp types.
23282
23283 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
23284
23285 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
23286
23287 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
23288
23289 * chartab.c: Include "...h", not <...h> in some cases.
23290
23291 * callproc.c (Fcall_process): Remove unused variables.
23292
232932008-02-01 Dave Love <fx@gnu.org>
23294
23295 * coding.c (Fset_coding_system_priority): Allow null arg list.
23296
232972008-02-01 Dave Love <fx@gnu.org>
23298
23299 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
23300 (Fself_insert_and_exit): Use CHARACTERP.
23301
23302 * callproc.c (Fcall_process): Remove unused vars.
23303
23304 * xterm.c (XTread_socket): Add extra dead keysyms.
23305
23306 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
23307
23308 * dispextern.h: Remove prototypes for redraw_frame,
23309 redraw_garbaged_frames.
23310
23311 * cmds.c (Fself_insert_command): Use CHARACTERP.
23312
23313 * chartab.c (make_sub_char_table): Remove unused var.
23314 (Fset_char_table_default, Fmap_char_table): Doc fix.
23315
23316 * keymap.c (access_keymap): Remove generic char code.
23317 (push_key_description): Use CHARACTERP.
23318
233192008-02-01 Dave Love <fx@gnu.org>
23320
23321 * charset.c: Doc fixes.
23322 (Funify_charset): Extra checking.
23323
233242008-02-01 Dave Love <fx@gnu.org>
23325
23326 * lread.c: Remove some unused variables.
23327 (safe_to_load_p): If safe, return the magic number version byte.
23328 (Fload): Maybe use load-with-code-conversion.
23329
233302008-02-01 Kenichi Handa <handa@m17n.org>
23331
23332 * category.c (Fmodify_category_entry): Don't modify the contents
23333 of category_set for characters out of the range. Avoid
23334 unnecessary modification.
23335
23336 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
23337 Vchar_unify_table. The default value of the table is now nil.
23338
23339 * character.c (syms_of_character): Setup Vchar_width_table for
23340 eight-bit-control and raw-byte chars.
23341
23342 * charset.h (enum define_charset_arg_index): Delete
23343 charset_arg_parents and add charset_arg_subset and
23344 charset_arg_superset.
23345 (enum charset_attr_index): Delete charset_parents and add
23346 charset_subset and charset_superset.
23347 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
23348 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
23349 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
23350 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
23351 (CHARSET_SUPERSET): New macros.
23352 (charset_work): Extern it.
23353 (ENCODE_CHAR): Use charset_work.
23354 (CHAR_CHARSET_P): Adjust for the change of encoder format.
23355 (map_charset_chars): Extern it.
23356
23357 * charset.c (load_charset_map): Set the default value of encoder
23358 and deunifier char-tables to nil.
23359 (map_charset_chars): Change argument. Change callers. Use
23360 map_char_table_for_charset instead of map_char_table.
23361 (Fmap_charset_chars): New optional args from_code and to_code.
23362 (Fdefine_charset_internal): Adjust for the change of
23363 `define-charset' (:parents -> :subset or :superset).
23364 (charset_work): New variable.
23365 (encode_char, syms_of_charset): Adjust for the change of
23366 Fdefine_charset_internal.
23367 (Ffind_charset_string): Setup the vector `charsets' correctly.
23368
23369 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
23370 the previous change.
23371 (char_table_ref_and_range): Adjust for the above change.
23372 (map_sub_char_table_for_charset): New function.
23373 (map_char_table_for_charset): New function.
23374
23375 * keymap.c (describe_vector): Handle a char-table directly here.
23376 (describe_char_table): Delete.
23377
23378 * lisp.h (map_charset_chars): Delete.
23379
233802008-02-01 Dave Love <fx@gnu.org>
23381
23382 * fns.c (count_combining): Comment out (unused).
23383 (Flocale_codeset): New.
23384 (syms_of_fns): Defsubr it.
23385
23386 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
23387 (size_t): Remove.
23388
233892008-02-01 Dave Love <fx@gnu.org>
23390
23391 * Makefile.in (chartab.o): Depend on charset.h.
23392
233932008-02-01 Kenichi Handa <handa@m17n.org>
23394
23395 * character.c (syms_of_character): Set the default value of
23396 Vprintable_chars to Qnil.
23397
233982008-02-01 Dave Love <fx@gnu.org>
23399
23400 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
23401
234022008-02-01 Kenichi Handa <handa@m17n.org>
23403
23404 * charset.c (load_charset_map): Handle the case that from < to
23405 correctly.
23406
23407 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
23408 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
23409 Pay attention to raw-8-bit chars.
23410
234112008-02-01 Kenichi Handa <handa@m17n.org>
23412
23413 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
23414 It is not bytecompiled now.
23415
23416 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
23417 (charset_jisx0208): New variables.
23418 (Fdefine_charset_internal): Setup them if appropriate.
23419 (init_charset_once): Initialize them to -1.
23420
23421 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
23422 (charset_jisx0208): Extern them.
23423
23424 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
23425 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
23426 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
23427 (setup_iso_safe_charsets): Fix arguments to Fassq.
23428 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
23429 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
23430 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
23431 (encode_coding_iso_2022): Change the 1st arg to
23432 ENCODE_ISO_CHARACTER to a variable.
23433
234342008-02-01 Kenichi Handa <handa@m17n.org>
23435
23436 * charset.h (enum define_charset_arg_index): New enums
23437 charset_arg_min_code and charset_arg_max_code.
23438 (struct charset): New member char_index_offset.
23439
23440 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
23441 Take charset->char_index_offset into account.
23442 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
23443 args[charset_arg_max_code]. Setup charset.char_index_offset.
23444 (syms_of_charset): Fix args to Fdefine_charset_internal.
23445
234462008-02-01 Dave Love <fx@gnu.org>
23447
23448 * coding.c (decode_coding_utf_8): Reject overlong sequences.
23449
234502008-02-01 Dave Love <fx@gnu.org>
23451
23452 * coding.c: Doc fixes.
23453 (Fcoding_system_aliases): Fix return value.
23454 (Qmac): Remove (duplicated) definition.
23455
234562008-02-01 Dave Love <fx@gnu.org>
23457
362654a6
JB
23458 * charset.c (Fcharset_priority_list, Fset_charset_priority):
23459 New functions.
aac0c6e3
MR
23460
23461 * character.c (Fstring): Doc fix.
23462
23463 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
23464
362654a6 23465 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
23466 (font-encoding-alist): Doc fix.
23467
234682008-02-01 Dave Love <fx@gnu.org>
23469
23470 * term.c (costs_set): Declare static, non-initialized for pcc.
23471 (encode_terminal_code): Remove unused var.
23472
23473 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
23474 for K&R.
23475
23476 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
23477
23478 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
23479 (suffixes): Move out of make_subsidiaries for K&R.
23480
23481 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
23482
23483 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
23484
234852008-02-01 Dave Love <fx@gnu.org>
23486
23487 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
23488
23489 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
23490
234912008-02-01 Yong Lu <lyongu@asia-infonet.com>
23492
23493 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
23494
23495 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
23496
234972008-02-01 Kenichi Handa <handa@m17n.org>
23498
23499 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
23500 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
23501
235022008-02-01 Kenichi Handa <handa@m17n.org>
23503
23504 * coding.c (decode_coding_charset): Adjust for the change of
23505 Fdefine_coding_system_internal.
23506 (Fdefine_coding_system_internal): For a coding system of
23507 `charset' type, store a list of charset IDs in
23508 `charset_attr_charset_valids' element of coding attributes.
23509
235102008-02-01 Kenichi Handa <handa@m17n.org>
23511
23512 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
23513 (emacs_mule_char): New arg src. Delete arg `composition'. Change
23514 caller. Handle 2-byte and 3-byte charsets correctly.
23515 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
23516 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
23517 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
23518 (DECODE_EMACS_MULE_21_COMPOSITION): Call
23519 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
23520 sequence.
23521 (decode_coding_emacs_mule): Handle composition correctly. Rewind
23522 `src' and `consumed_chars' correctly before calling emacs_mule_char.
23523 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
23524 and alt&rule composition.
23525 (decode_coding_iso_2022): Handle composition correctly.
23526 (init_coding_once): Setup emacs_mule_bytes for private charsets.
23527
23528 * charset.c (Fdefine_charset_internal): Fix bug for the case of
23529 re-defining a charset. If the charset has :emacs-mule-id, setup
23530 emacs_mule_bytes.
23531 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
23532
235332008-02-01 Kenichi Handa <handa@m17n.org>
23534
23535 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
23536 (encode_coding_big5, encode_coding_charset): If coding requires safe
23537 encoding, produce a character specified by
23538 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
23539
235402008-02-01 Dave Love <fx@gnu.org>
23541
23542 * xterm.c (XSetIMValues): Declare.
23543
23544 * process.c: Conditionally include sys/wait.h, pty.h.
23545
23546 * print.c (print_object): Fix print format for 64-bit systems.
23547
23548 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
23549
23550 * buffer.c (emacs_strerror): Declare.
23551
23552 * fontset.c (Fclear_face_cache): Declare.
23553 (accumulate_font_info): Comment-out (unused).
23554 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
23555 variables.
23556
23557 * character.h (string_escape_byte8): Declare.
23558
23559 * charset.c (load_charset_map, load_charset_map_from_file): Remove
23560 unused vars.
23561 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
23562 (Fmap_charset_chars): Doc fix.
23563
23564 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
23565 (Fset_coding_system_priority, Fset_coding_system_priority)
23566 (Fdefine_coding_system_internal): Doc fix.
23567
235682008-02-01 Dave Love <fx@gnu.org>
23569
23570 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
23571
235722008-02-01 Kenichi Handa <handa@m17n.org>
23573
23574 * character.c (string_escape_byte8): Make multibyte string with
23575 correct size.
23576
23577 * charset.c (Fmake_char): Delete unnecessary code.
23578
235792008-02-01 Kenichi Handa <handa@m17n.org>
23580
23581 * xfns.c (x_encode_text): Allocate coding.destination here, and
23582 call encode_coding_object with dst_object Qnil.
23583
23584 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
23585 multibyte form correctly.
23586
23587 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
23588 against Vfont_encoding_alist.
23589
23590 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
23591 handling of charset list.
23592 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
23593 (decode_coding_object): Move point to coding->dst_pos before
23594 calling post-read-conversion function.
23595 (encode_coding_object): Give correct arguments to
23596 pre-write-conversion. Ignore the return value of
23597 pre-write-conversion function. Pay attention to the case that
23598 pre-write-conversion changes the current buffer. If dst_object is
23599 Qt, even if coding->src_bytes is zero, allocate at least one byte
23600 to coding->destination.
23601
23602 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
23603
23604 * charset.c (Fmake_char): Make it more backward compatible.
23605 (Fmap_charset_chars): Fix docstring.
23606
236072008-02-01 Dave Love <fx@gnu.org>
23608
23609 * coding.c: Doc fixes.
23610 (Fdefine_coding_system_alias): Use names, not symbols, in
23611 coding-system-alist.
23612
236132008-02-01 Kenichi Handa <handa@m17n.org>
23614
23615 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
23616 of calling free_realized_face.
23617
236182008-02-01 Yong Lu <lyongu@asia-infonet.com>
23619
23620 * charset.c (read_hex): Don't treat SPC as a comment starter.
23621 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
23622 (Fdecode_char): Fix typo.
23623
236242008-02-01 Kenichi Handa <handa@m17n.org>
23625
23626 * charset.h (struct charset): New member `code_space_mask'.
23627
23628 * coding.c (coding_set_source): Delete the local variable beg_byte.
23629 (encode_coding_charset, Fdefine_coding_system_internal):
23630 Delete the local variable charset.
23631 (Fdefine_coding_system_internal): Setup
23632 attrs[coding_attr_charset_valids] correctly.
23633
23634 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
23635 member to check if CODE is valid or not.
23636 (Fdefine_charset_internal): Initialize `code_space_mask' member.
23637 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
23638 is within the range of charset->min_code and carset->max_code.
23639
236402008-02-01 Dave Love <fx@gnu.org>
23641
23642 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
23643
23644 * dispextern.h (generate_ascii_font): Fix return type.
23645
23646 * xfaces.c (generate_ascii_font): Fix arg declaration.
23647
23648 * coding.c (coding_inherit_eol_type)
23649 (Fset_terminal_coding_system_internal)
23650 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
23651
236522008-02-01 Kenichi Handa <handa@m17n.org>
23653
23654 * coding.c (decode_coding_charset, encode_coding_charset): Handle
23655 multiple charsets correctly.
23656
236572008-02-01 Kenichi Handa <handa@m17n.org>
23658
23659 * search.c (boyer_moore): Fix handling of multibyte character
23660 translation.
23661
23662 * xdisp.c (display_mode_element): When the variable `elt' is
23663 changed, update `this' and `lisp_string'.
23664
236652008-02-01 Kenichi Handa <handa@m17n.org>
23666
23667 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
23668
23669 * callproc.c (Fcall_process): Be sure to give the current buffer
23670 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
23671
23672 * charset.c (struct charset_map_entries): New struct.
23673 (load_charset_map): Rename from parse_charset_map. New args
23674 entries and n_entries. Change caller.
23675 (load_charset_map_from_file): Rename from load_charset_map.
23676 Change caller. New arg control_flag. Call load_charset_map at
23677 the tail.
23678 (load_charset_map_from_vector): New function.
23679 (Fdefine_charset_internal): Setup charset.compact_codes_p.
23680 (encode_char): If the charset is compact, change a character index
23681 to a code point.
23682
23683 * coding.c (coding_alloc_by_making_gap): Check the case that the
23684 source and destination are the same correctly.
23685 (decode_coding_raw_text): Set coding->consumed_char and
23686 coding->consumed to 0.
23687 (produce_chars): If coding->chars_at_source is nonzero, update
23688 coding->consumed_char and coding->consumed before calling
23689 alloc_destination.
23690 (Fdefine_coding_system_alias): Register ALIAS in
23691 Vcoding_system_alist.
23692 (syms_of_coding): Define `no-conversion' coding system at the tail.
23693
23694 * fileio.c (Finsert_file_contents): Set coding_system instead of
23695 val. If the current buffer is multibyte, always call
23696 decode_coding_gap.
23697
23698 * xfaces.c (try_font_list): Give higher priority to fontset's
23699 family than face's family.
23700
237012008-02-01 Kenichi Handa <handa@m17n.org>
23702
23703 * callproc.c (Fcall_process): Be sure to give the current buffer
23704 to decode_coding_c_string.
23705
23706 * xfaces.c (try_font_list): Give a family specified in a fontset
23707 higher priority than a family specified in a face.
23708
237092008-02-01 Kenichi Handa <handa@m17n.org>
23710
23711 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
23712 Fix arguments to insert_from_buffer.
23713
23714 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
23715
237162008-02-01 Kenichi Handa <handa@m17n.org>
23717
23718 * coding.c (produce_chars): Set the variable `multibytep' correctly.
23719 (decode_coding_gap): Set coding->dst_multibyte correctly.
23720
237212008-02-01 Kenichi Handa <handa@m17n.org>
23722
23723 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
23724 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
23725 (encode_coding_utf_16): Substitute coding->default_char for
23726 non-Unicode characters.
23727 (decode_coding): Don't call record_insert here.
23728 (setup_coding_system): Initialize `surrogate' of
23729 coding->spec.utf_16 to 0.
23730 (EMIT_ONE_BYTE): Fix for multibyte case.
23731
23732 * insdel.c (insert_from_gap): Call record_insert.
23733
237342008-02-01 Kenichi Handa <handa@m17n.org>
23735
23736 * casefiddle.c (casify_region): Fix multibyte case.
23737
23738 * character.c (c_string_width): Add return type `int'.
23739 (char_string_with_unification): Delete arg ADVANCED.
23740
23741 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
23742 (CHAR_STRING): Adjust for the change of char_string_with_unification.
23743 (CHAR_STRING_ADVANCE): Make it do-while statement.
23744
23745 * chartab.c (sub_char_table_set_range): Optimize for the case
23746 DEPTH == 3. Add workaround code for a GCC optimization bug.
23747
23748 * charset.c (parse_charset_map): Remove an unused variable.
23749
23750 * coding.c: Delete unused variables.
23751
23752 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
23753 earlier. If inserted is zero and the coding system doesn't
23754 require flushing, don't call decode_coding_gap.
23755
23756 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
23757
237582008-02-01 Kenichi Handa <handa@m17n.org>
23759
23760 The following changes are for using Unicode as an internal
23761 character model, and use UTF-8 format for buffer/string
23762 representation.
23763
23764 * .gdbinit (xchartable): Adjust for the change of char table structure.
23765 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
23766
23767 * Makefile.in (obj): Add character.o and chartab.o.
23768 (lisp, shortlisp): Remove utf-8.elc.
23769 (*.o): For many files, change dependency on charset.h to
23770 character.h, and add dependency on character.h.
23771 (character.o, chartab.o): New targets.
23772
23773 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
23774 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
23775 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
23776 of "charset.h".
23777
23778 * dired.c, filelock.c: Include "character.h".
23779
23780 * alloc.c: Include "character.h" instead of "charset.h".
23781 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
23782 (syms_of_alloc): Remove defsubr for Smake_char_table.
23783
23784 * buffer.c: Include "character.h" instead of "charset.h", don't
23785 include "coding.h".
23786 (Fset_buffer_multibyte): Adjust for UTF-8.
23787
23788 * buffer.h: EXFUN Fbuffer_live_p.
23789
23790 * callproc.c: Include "character.h" instead of "charset.h".
23791 (Fcall_process): Big change for the new code-conversion APIs.
23792
23793 * casetab.c: Include "character.h" instead of "charset.h".
23794 (set_canon, set_identity, shuffle): Adjust for the new
23795 map_char_table spec.
23796 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
23797 accessing the char table structure.
23798
23799 * chartab.c: New file that implements char table.
23800
23801 * category.c: Include "character.h".
23802 (copy_category_entry): New function.
23803 (copy_category_table): Call map_char_table and copy_category_entry.
23804 (Fmake_category_table): Initialize all top-level slots.
23805 (char_category_set): New function.
23806 (modify_lower_category_set): Delete.
23807 (Fmodify_category_entry): Call char_table_ref_and_range.
23808
23809 * category.h (CATEGORY_SET): Just call char_category_set.
23810
23811 * ccl.c: Include "character.h".
23812 (Qccl, Qcclp): New variables.
23813 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
23814 it's less than 256.
23815 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
23816 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
23817 and DST type.
23818 (ccl_driver): Change types of argument, adjust code accordingly.
23819 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
23820 ccl_driver.
23821 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
23822
23823 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
23824 New members src_multibyte, dst_multibyte, consumed, and produced.
23825 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
23826 (CODING_SPEC_CCL_PROGRAM): New macro.
23827 (ccl_driver): Update prototype.
23828 (Qccl, Qcclp, Fccl_program_p): Extern them.
23829 (CHECK_CCL_PROGRAM): New macro.
23830
23831 * character.c, character.h, chartab.c: New files.
23832
23833 * charset.c: Mostly re-written. Move character and multibyte sequence
23834 handling codes to character.c.
23835
23836 * charset.h: Mostly re-written. Move character and multibyte sequence
23837 handling codes to character.h.
23838
23839 * coding.c, coding.h: Mostly re-written.
23840
23841 * composite.c: Include "character.h" instead of "charset.h".
23842 (CHAR_WIDTH): Move to character.h.
23843 (HASH_KEY, HASH_VALUE): Delete.
23844
23845 * composite.h (enum composition_method): Change order of enumeration
23846 symbols.
23847
23848 * data.c: Include "character.h" instead of "charset.h".
23849 (Faref): Call CHAR_TABLE_REF for a char table.
23850 (Faset): Call CHAR_TABLE_SET for a char table.
23851
23852 * dispextern.h (free_realized_face, check_face_attribytes)
23853 (generate_ascii_font): Extern them.
23854 (free_realized_multibyte_face): Delete extern.
23855
23856 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
23857 table structure.
23858
23859 * editfns.c: Include "character.h" instead of "charset.h".
23860 (Fchar_to_string): Always call CHAR_STRING.
23861
23862 * emacs.c (main): Call init_charset_once, init_charset,
23863 syms_of_chartab, and syms_of_character.
23864
23865 * fileio.c: Include "character.h" instead of "charset.h".
23866 (Finsert_file_contents): Big change for the new code-conversion API.
23867 (choose_write_coding_system, Fwrite_region): Likewise.
23868 (build_annotations_2): Delete.
23869 (e_write): Big change for the new code-conversion API.
23870
23871 * fns.c: Include "character.h" instead of "charset.h".
23872 (copy_sub_char_table): Move to chartab.c.
23873 (Fcopy_sequence): Call copy_char_table for a char table.
23874 (concat): Delete codes calling count_multibyte.
23875 (string_char_to_byte, string_byte_to_char): Adjust for the new
23876 multibyte form.
23877 (internal_equal): Adjust for the change of char table structure.
23878 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
23879 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
23880 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
23881 (char_table_translate, optimize_sub_char_table)
23882 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
23883 chartab.c.
23884 (char_table_ref_and_index): Delete.
23885 (HASH_KEY, HASH_VALUE): Move to lisp.h.
23886 (Fmd5): Call preferred_coding_system instead of accessing
23887 Vcoding_category_list. Adjust for the new code-conversion API.
23888 (syms_of_fns): Move defsubr for char table related functions to
23889 chartab.c.
23890
23891 * fontset.c: Mostly re-written.
23892
23893 * fontset.h (struct font_info): Change type of the member encoding_type.
23894 (enum FONT_SPEC_INDEX): New enum.
23895 (fontset_font_pattern, fs_load_font): Update prototype.
23896 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
23897
23898 * indent.c: Include "character.h" instead of "charset.h".
23899 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
23900
23901 * insdel.c: Include "character.h" instead of "charset.h".
23902 (copy_text): Don't refer to Vnonascii_translation_table.
23903 (insert_from_gap): New function.
23904
23905 * keyboard.c: Include "character.h" instead of "charset.h".
23906 (command_loop_1): Never call direct_output_forward_char before
23907 a non-ASCII character.
23908 (read_char): If Vkeyboard_translate_table is a char table, always
23909 translate a character.
23910
23911 * keymap.c: Include "character.h".
23912 (store_in_keymap): Handle the case that IDX is a cons.
23913 (Fdefine_key): Handle the case that KEY is a cons and the car part
23914 is also a cons (range).
23915 (push_key_description): Adjust for the new character code.
23916 (describe_vector): Call describe_char_table for a char table.
23917 (describe_char_table): New function.
23918
23919 * keymap.h (describe_char_table): Extern it.
23920
23921 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
23922 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
23923 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
23924 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
23925 Delete.
23926 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
23927 structure.
23928 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
23929 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
23930 (CHARTAB_SIZE_BITS_3): New macros.
23931 (chartab_size): Extern it.
23932 (struct Lisp_Char_Table): Re-design.
23933 (struct Lisp_Sub_Char_Table): New structure.
23934 (HASH_KEY, HASH_VALUE): Move from fns.c.
23935 (CHARACTERBITS): Define as 22.
23936 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
23937 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
23938 (GC_SUB_CHAR_TABLE_P): New macro.
23939 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
23940 (code_convert_string_norecord): Deleted extern.
23941 (init_character_once, syms_of_character, init_charset)
23942 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
23943
23944 * lread.c: Include "character.h".
23945 (read_multibyte): New arg NBYTES.
23946 (read_escape): Change the meaning of returned *BYTEREP.
23947 (to_multibyte): Delete.
23948 (read1): Adjust the handling of char table and string.
23949
23950 * print.c: Include "character.h" instead of "charset.h".
23951 (print_string): Convert 8-bit raw bytes to octal form by
23952 string_escape_byte8.
23953 (print_object): Adjust for the new multibyte form. Print 8-bit
23954 raw bytes always in octal form. Handle sub char table correctly.
23955
23956 * process.c: Include "character.h" instead of "charset.h".
23957 (read_process_output, send_process): Adjust for the new
23958 code-conversion API.
23959
23960 * puresize.h (BASE_PURESIZE): Increase.
23961
23962 * regex.c: Include "character.h" instead of "charset.h".
23963 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
23964 (regex_compile): Accept a range whose starting and ending
23965 character have different leading bytes.
23966 (analyse_first): Adjust for the above change.
23967
23968 * search.c: Include "character.h" instead of "charset.h".
23969 (search_buffer, boyer_moore): Adjust for the new multibyte form.
23970 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
23971
23972 * syntax.c: Include "character.h" instead of "charset.h".
23973 (syntax_parent_lookup): Delete.
23974 (Fmodify_syntax_entry): Accept a cons as CHAR.
23975 (skip_chars): Adjust for the new multibyte form.
23976 (init_syntax_once): Call char_table_set_range instead of directly
23977 accessing the structure of a char table.
23978
23979 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
23980 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
23981 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
23982 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
23983
23984 * term.c: Include "buffer.h" and "character.h".
23985 (encode_terminal_code, write_glyphs): Adjust for the new
23986 code-conversion API.
23987 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
23988
23989 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
23990
23991 * xdisp.c: Include "character.h".
23992 (get_next_display_element): Adjust for the new multibyte form.
23993 (disp_char_vector): Adjust for the new char table structure.
23994 (decode_mode_spec_coding): Adjust for the new structure of
23995 coding system.
23996 (decode_mode_spec): Adjust for the new code-conversion API.
23997
23998 * xfaces.c: Include "character.h" instead of "charset.h".
23999 (load_face_font): Adjust for the change of choose_face_font and
24000 FS_LOAD_FONT.
24001 (generate_ascii_font): New function.
24002 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
24003 (set_font_frame_param): Adjust for the change of choose_face_font.
24004 (free_realized_face): Make it public.
24005 (free_realized_faces_for_fontset): Rename from
24006 free_realized_multibyte_face. Free also faces realized for ASCII.
24007 (choose_face_font): Change arguments. Adjust for the change of
24008 fontset_font_pattern and FS_LOAD_FONT.
24009
24010 * xfns.c: Include "character.h".
24011 (x_encode_text): Adjust for the new code-conversion API.
24012
24013 * xselect.c: Don't include "charset.h".
24014 (selection_data_to_lisp_data): Adjust for the new code conversion API.
24015
24016 * xterm.c: Include "character.h".
24017 (x_encode_char): New argument CHARSET. Change caller.
24018 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
24019 Call ENCODE_CHAR instead of SPLIT_CHAR.
24020 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
24021 CHAR_WIDTH instead of CHARSET_WIDTH.
24022 (XTread_socket): Adjust for the new code-conversion API.
24023 (x_new_font): Adjust for the change of FS_LOAD_FONT.
24024 (x_load_font): Adjust for the change of struct font.
24025
240262008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24027
24028 * xfaces.c (face_at_buffer_position): Remove unused vars.
24029
240302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24031
24032 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
24033 Fix overflow checking.
24034
240352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24036
24037 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
24038 Cancel previous change.
24039
240402008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
24041
24042 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
24043 ccl->eight_bit_control. Fix check for buffer overflow.
24044 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
24045 (ccl_driver): Initialize extra_bytes to 0.
24046
240472008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
24048
24049 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
24050 return it ORed with ctrl_modifier.
24051
240522008-01-29 Miles Bader <miles@gnu.org>
24053
24054 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
24055
240562008-01-28 Jason Rumney <jasonr@gnu.org>
24057
24058 * w32.c (stat): Don't double check for networked drive.
24059
240602008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
24061
24062 * window.c (run_window_configuration_change_hook): New function.
24063 Code extracted from set_window_buffer. Set the selected frame.
24064 (set_window_buffer): Use it.
24065 * window.h (run_window_configuration_change_hook): Declare.
24066 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
24067
24068 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
24069
240702008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
24071
24072 * Makefile.in: Remove references to unused macros.
24073
240742008-01-26 Eli Zaretskii <eliz@gnu.org>
24075
24076 * w32.c (g_b_init_get_sid_sub_authority)
24077 (g_b_init_get_sid_sub_authority_count): New static variables.
24078 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
24079 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
24080 (init_user_info): Use them to retrieve uid and gid.
24081 Use 500/513, the Windows defaults, as Administrator's uid/gid.
24082 (fstat): Use pw_uid and pw_gid from the_passwd structure for
24083 st_uid and st_gid of the file.
24084
240852008-01-26 Jason Rumney <jasonr@gnu.org>
24086
24087 * w32.c (logon_network_drive): New function.
24088 (stat): Use it.
24089
240902008-01-26 Chong Yidong <cyd@stupidchicken.com>
24091
24092 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
24093 invisible text covered with an ellipsis.
24094
240952008-01-25 Richard Stallman <rms@gnu.org>
24096
24097 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
24098 jump back to beginning. Move some other initializations after that.
24099 (Qwindow_text_change_functions, Vwindow_text_change_functions):
24100 New variables.
24101 (syms_of_xdisp): Init them.
24102
24103 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
24104
24105 * buffer.c (reset_buffer_local_variables):
24106 Implement `permanent-local-hook'.
24107 (Qpermanent_local_hook): New variable.
24108 (syms_of_buffer): Init and staticpro it.
24109
241102008-01-25 Michael Albinus <michael.albinus@gmx.de>
24111
24112 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
24113
241142008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
24115
24116 * fns.c (Fclrhash): Return TABLE.
24117
241182008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24119
24120 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
24121 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
24122 is set even without positional changes.
24123 (x_scroll_bar_clear): Set bar->redraw_needed_p.
24124
24125 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
24126
241272008-01-23 Jason Rumney <jasonr@gnu.org>
24128
24129 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
24130
24131 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
24132 the unicode range available in MULE by locale-coding-system.
24133 Improve dbcs lead byte detection. Set event timestamp and modifiers
24134 earlier.
24135
241362008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24137
24138 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
24139 [MAC_OSX] (init_mac_osx_environment): Initialize it.
24140 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
24141 when used on child processes.
24142
241432008-01-21 Michael Albinus <michael.albinus@gmx.de>
24144
24145 * dbusbind.c (Fdbus_method_return_internal): Rename from
24146 Fdbus_method_return.
24147 (Fdbus_unregister_object): Move to dbus.el.
24148 (Fdbus_call_method, Fdbus_method_return_internal)
24149 (Fdbus_send_signal): Improve debug messages.
24150
241512008-01-20 Martin Rudalics <rudalics@gmx.at>
24152
24153 * undo.c (undo_inhibit_record_point): New variable.
24154 (syms_of_undo): Initialize it.
24155 (record_point): Don't record point when undo_inhibit_record_point
24156 is set.
24157
241582008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
24159
24160 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
24161
24162 * xdisp.c (Qauto_hscroll_mode): New var.
24163 (syms_of_xdisp): Initialize it.
24164 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
24165 window's buffer.
24166 (hscroll_windows): Don't check automatic_hscrolling_p here.
24167
24168 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
24169 vscroll if we're setting window-buffer to the value it already has.
24170
241712008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
24172
24173 * m/intel386.h: Remove references to XENIX.
24174
241752008-01-17 Andreas Schwab <schwab@suse.de>
24176
24177 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
24178 instead of HAVE_X86_64_LIB64_DIR.
24179 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
24180
241812008-01-17 Glenn Morris <rgm@gnu.org>
24182
24183 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
24184 to HAVE_X86_64_LIB64_DIR.
24185
241862008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
24187
24188 * s/irix3-3.h:
24189 * s/irix4-0.h:
24190 * s/386-ix.h:
24191 * s/domain.h:
24192 * s/hpux9-x11r4.h:
24193 * s/hpux9shxr4.h: Remove files for systems no longer supported.
24194
24195 * sysdep.c: Remove code containing references to symbols defined
24196 by unsupported systems.
24197
241982008-01-16 Glenn Morris <rgm@gnu.org>
24199
24200 * coding.c (select-safe-coding-system-function): Doc fix.
24201
242022008-01-15 Glenn Morris <rgm@gnu.org>
24203
24204 * config.in: Revert 2008-01-13 change: this is a generated file.
24205
242062008-01-13 Tom Tromey <tromey@redhat.com>
24207
24208 * lisp.h: Fix typo.
24209
242102008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
24211
24212 * m/sequent-ptx.h:
24213 * m/sequent.h:
24214 * s/ptx.h:
24215 * s/ptx4-2.h:
24216 * s/ptx4.h: Remove files for systems no longer supported.
24217
24218 * callproc.c (Fcall_process): Fix previous change.
24219
242202008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
24221
24222 * unexsunos4.c: Remove file, system not supported anymore.
24223
24224 * m/mips.h:
24225 * m/intel386.h:
24226 * callproc.c:
24227 * config.in:
24228 * ecrt0.c:
24229 * emacs.c:
24230 * fileio.c:
24231 * frame.c:
24232 * getpagesize.h:
24233 * keyboard.c:
24234 * lread.c:
24235 * process.c:
24236 * puresize.h:
24237 * sysdep.c:
24238 * systty.h:
24239 * syswait.h:
24240 * unexec.c:
24241 * xdisp.c:
24242 * alloc.c: Remove code containing references to symbols defined by
24243 unsupported systems.
24244
242452008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
24246
24247 * coding.c (detect_coding_mask): Fix previous change.
24248
242492008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
24250
24251 * coding.c (detect_coding_iso2022): New arg
24252 latin_extra_code_state. Allow Latin extra codes only
24253 when *latin_extra_code_state is nonzero.
24254 (detect_coding_mask): If there is a NULL byte, detect the encoding
24255 as UTF-16 or binary. If Latin extra codes exist, detect the
24256 encoding as ISO-2022 only when there's no other proper encoding is
24257 found.
24258
242592008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24260
24261 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
24262 #ifdef MAC_OS.
24263
242642008-01-08 Richard Stallman <rms@gnu.org>
24265
24266 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
24267
242682008-01-06 Nick Roberts <nickrob@snap.net.nz>
24269
24270 * keyboard.c (parse_menu_item): Don't enclose key bindings on
24271 menu bar in parentheses.
24272
242732008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
24274
24275 * m/7300.h:
24276 * m/acorn.h:
24277 * m/alliant-2800.h:
24278 * m/alliant.h:
24279 * m/alliant1.h:
24280 * m/alliant4.h:
24281 * m/altos.h:
24282 * m/amdahl.h:
24283 * m/apollo.h:
24284 * m/att3b.h:
24285 * m/aviion-intel.h:
24286 * m/aviion.h:
24287 * m/celerity.h:
24288 * m/clipper.h:
24289 * m/cnvrgnt.h:
24290 * m/convex.h:
24291 * m/cydra5.h:
24292 * m/delta88k.h:
24293 * m/dpx2.h:
24294 * m/dual.h:
24295 * m/elxsi.h:
24296 * m/f301.h:
24297 * m/gould-np1.h:
24298 * m/gould.h:
24299 * m/i860.h:
24300 * m/ibmps2-aix.h:
24301 * m/ibmrt-aix.h:
24302 * m/ibmrt.h:
24303 * m/irist.h:
24304 * m/is386.h:
24305 * m/isi-ov.h:
24306 * m/mega68.h:
24307 * m/mg1.h:
24308 * m/news-r6.h:
24309 * m/news-risc.h:
24310 * m/news.h:
24311 * m/nh3000.h:
24312 * m/nh4000.h:
24313 * m/ns16000.h:
24314 * m/ns32000.h:
24315 * m/nu.h:
24316 * m/orion.h:
24317 * m/orion105.h:
24318 * m/paragon.h:
24319 * m/pfa50.h:
24320 * m/plexus.h:
24321 * m/pyramid.h:
24322 * m/pyrmips.h:
24323 * m/sh3el.h:
24324 * m/sps7.h:
24325 * m/sr2k.h:
24326 * m/stride.h:
24327 * m/sun1.h:
24328 * m/sun2.h:
24329 * m/sun3-68881.h:
24330 * m/sun3-fpa.h:
24331 * m/sun3-soft.h:
24332 * m/sun3.h:
24333 * m/sun386.h:
24334 * m/symmetry.h:
24335 * m/tad68k.h:
24336 * m/tahoe.h:
24337 * m/targon31.h:
24338 * m/tek4300.h:
24339 * m/tekxd88.h:
24340 * m/tower32.h:
24341 * m/tower32v3.h:
24342 * m/ustation.h:
24343 * m/wicat.h:
24344 * m/xps100.h:
24345 * s/cxux.h:
24346 * s/cxux7.h:
24347 * s/dgux.h:
24348 * s/dgux4.h:
24349 * s/dgux5-4-3.h:
24350 * s/dgux5-4r2.h:
24351 * s/esix.h:
24352 * s/esix5r4.h:
24353 * s/hiuxmpp.h:
24354 * s/hiuxwe2.h:
24355 * s/iris3-5.h:
24356 * s/iris3-6.h:
24357 * s/isc2-2.h:
24358 * s/isc3-0.h:
24359 * s/isc4-0.h:
24360 * s/isc4-1.h:
24361 * s/newsos5.h:
24362 * s/newsos6.h:
24363 * s/osf1.h:
24364 * s/osf5-0.h:
24365 * s/riscix1-1.h:
24366 * s/riscix12.h:
24367 * s/sco4.h:
24368 * s/sco5.h:
24369 * s/sunos4-0.h:
24370 * s/sunos4-1.h:
24371 * s/sunos413.h:
24372 * s/sunos4shr.h:
24373 * s/umax.h:
24374 * s/unipl5-2.h:
24375 * s/xenix.h:
24376 * cxux-crt0.s:
24377 * unexapollo.c:
24378 * unexconvex.c:
24379 * unexenix.c:
24380 * unexsni.c: Remove files for systems no longer supported.
24381
24382 * m/intel386.h: Remove references to unsupported systems.
24383
24384 * w32.c (get_emacs_configuration): Remove reference to i860.
24385
24386 * sysdep.c: Remove dead code.
24387
243882008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
24389
24390 * s/rtu.h:
24391 * m/masscomp.h: Remove files. Platform is obsolete.
24392
243932008-01-04 Michael Albinus <michael.albinus@gmx.de>
24394
24395 * dbusbind.c (Fdbus_method_return): New function.
24396 (xd_read_message): Add the serial number to the event.
24397 (Fdbus_register_method): Activate the function.
24398
243992008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
24400
24401 * keyboard.c (read_key_sequence): Fix typo.
24402
244032008-01-03 Michael Albinus <michael.albinus@gmx.de>
24404
24405 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
24406 (xd_signature, xd_append_arg): Handle element type detection for
24407 empty arrays.
24408 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
24409 SDATA () calls; this must be solved more general.
24410 (Fdbus_register_signal): Use SBYTES instead of strlen.
24411
244122008-01-03 Magnus Henoch <magnus@zemdatav>
24413
24414 * dbusbind.c (xd_append_arg): Use unsigned char instead of
24415 unsigned int for byte values (necessary for big-endian platform).
24416 (Fdbus_call_method): Handle the case of no returned arguments.
24417
244182007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
24419
24420 * dbusbind.c (xd_read_message): Use non-static input_event struct.
24421
244222007-12-31 Magnus Henoch <mange@freemail.hu>
24423
24424 * dbusbind.c (xd_signature): Signature of variant is just "v".
24425
244262007-12-30 Michael Albinus <michael.albinus@gmx.de>
24427
24428 * dbusbind.c: Fix several errors and compiler warnings.
24429 Reported by Tom Tromey <tromey@redhat.com>.
24430 (XD_ERROR, XD_DEBUG_MESSAGE)
24431 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
24432 (xd_append_arg): Part for basic D-Bus types rewritten.
24433 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
24434 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
24435 appropriate.
24436 (xd_read_message): Return Qnil. Don't signal an error; it is not
24437 useful during event reading.
24438 (Fdbus_register_signal): Signal an error if the check for
24439 FUNCTIONP fails.
24440 (Fdbus_register_method): New function. The implementation is not
24441 complete, the call of the function signals an error therefore.
24442 (Fdbus_unregister_object): New function, renamed from
24443 Fdbus_unregister_signal. The initial check signals an error, if
24444 the object is not well formed.
24445
244462007-12-30 Richard Stallman <rms@gnu.org>
24447
24448 * textprop.c (get_char_property_and_overlay):
24449 Signal error if POSITION is out of range in a buffer.
24450
244512007-12-29 Martin Rudalics <rudalics@gmx.at>
24452
24453 * w32fns.c (Fx_create_frame): Make copy of frame parameters
24454 because the original parameters are in pure storage now.
24455
244562007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24457
24458 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
24459
244602007-12-22 Eli Zaretskii <eliz@gnu.org>
24461
24462 * callint.c (syms_of_callint) <command-history>: Add reference to
24463 history-length in the doc string.
24464
244652007-12-17 Jason Rumney <jasonr@gnu.org>
24466
24467 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
24468 before passing as wParam.
24469
244702007-12-22 Michael Albinus <michael.albinus@gmx.de>
24471
24472 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
24473 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
24474 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
24475 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
24476 as number.
24477 (Fdbus_call_method): Fix docstring.
24478
244792007-12-21 Michael Albinus <michael.albinus@gmx.de>
24480
24481 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
24482 New macros.
24483 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
24484 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
24485 Simplify.
24486 (xd_signature): New function.
24487 (xd_append_arg): Compute also signatures. Major rewrite.
24488 (xd_retrieve_arg): Make debug messages friendly.
24489 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
24490 Check for signatures of arguments.
24491
244922007-12-19 Michael Albinus <michael.albinus@gmx.de>
24493
24494 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
24495 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
24496 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
24497 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
24498 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
24499 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
24500 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
24501 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
24502 (xd_retrieve_value): Remove. Functionality included in ...
24503 (xd_append_arg): New function.
24504 (Fdbus_call_method, Fdbus_send_signal): Apply it.
24505
245062007-12-16 Michael Albinus <michael.albinus@gmx.de>
24507
24508 * dbusbind.c (top): Include <stdio.h>.
24509 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
24510 dbus_message_new_method_call and dbus_message_new_signal.
24511 (Fdbus_register_signal): Rename unique_name to uname.
24512 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
24513 non-existing unique name. Fix typos in matching rule. Return an
24514 object which is useful in Fdbus_unregister_signal.
24515 (Fdbus_unregister_signal): Reimplementation, in order to remove
24516 only the corresponding entry.
24517 (Vdbus_registered_functions_table): Change the order of entries.
24518 Apply these changes in xd_read_message and Fdbus_register_signal.
24519
245202007-12-16 Andreas Schwab <schwab@suse.de>
24521
24522 * fileio.c (Finsert_file_contents): Fix overflow check to not
24523 depend on undefined integer overflow.
24524
245252007-12-14 Jason Rumney <jasonr@gnu.org>
24526
24527 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
24528 for characters above 127.
24529
245302007-12-13 Jason Rumney <jasonr@gnu.org>
24531
24532 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
24533 before dereferencing array.
24534 (lookup_vk_code): Remove zero comparison.
24535
245362007-12-14 Michael Albinus <michael.albinus@gmx.de>
24537
24538 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
24539 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
24540 Use `unsigned int' instead of `uint'.
24541 (xd_read_message, Fdbus_register_signal): Split expressions into
24542 multiple lines before operators "&&" and "||", according to the
24543 GNU Coding Standards.
24544
245452007-12-14 Eli Zaretskii <eliz@gnu.org>
24546
24547 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
24548
245492007-12-12 Juri Linkov <juri@jurta.org>
24550
24551 * buffer.c (Frename_buffer): In interactive spec replace
24552 `read-buffer' with `read-string' that uses `buffer-name-history'
24553 as history, and the current buffer's name as default.
24554
245552007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
24556
24557 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
24558 manipulating the backtrace manually.
24559 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
24560 (struct backtrace, backtrace_list): Remove.
24561 (command_loop_1): Remove dead var `no_direct'.
24562
24563 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
24564 preserve non-built-in buffer-local variables.
24565 (Fkill_all_local_variables): Don't re-create&re-set permanent
24566 buffer-local variables.
24567
245682007-12-09 Juri Linkov <juri@jurta.org>
24569
24570 * buffer.c (Frename_buffer): Change interactive spec from "s" to
24571 Lisp code that uses `read-buffer' with current buffer as default.
24572
245732007-12-08 Michael Albinus <michael.albinus@gmx.de>
24574
24575 * dbusbind.c (xd_read_message): Generate an event for every
24576 registered handler. There might be several handlers registered
24577 for the same signal.
24578 (Fdbus_register_signal): Don't overwrite a registration for the
24579 same signal. Add a new registration if handlers are different.
24580 (Vdbus_registered_functions_table): Rework doc string.
24581
245822007-12-07 Michael Albinus <michael.albinus@gmx.de>
24583
24584 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
24585 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
24586 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
24587 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
24588 Unify argument lists.
24589 (xd_read_message, Fdbus_register_signal): Reorder and extend event
24590 arguments and hash table keys. Use unique name for service.
24591 (Fdbus_unregister_signal): Remove checks.
24592 (Vdbus_registered_functions_table): Fix doc string.
24593
245942007-12-05 Magnus Henoch <mange@freemail.hu>
24595
24596 * process.c (make_process): Initialize pty_flag to 0.
24597
245982007-12-05 Jason Rumney <jasonr@gnu.org>
24599
24600 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
24601 specified XBMs.
24602
246032007-12-05 Richard Stallman <rms@gnu.org>
24604
24605 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
24606
246072007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24608
24609 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
24610 New variable.
24611 (mac_try_close_socket) [MAC_OSX]: New function.
24612 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
24613 Update cfsockets_for_select. Replace invalid CFRunLoop source.
24614
24615 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
24616 Use mac_try_close_socket.
24617
246182007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24619
24620 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
24621 reloc_base.
24622 (copy_dysymtab): Compute relocation base here.
24623 (rebase_reloc_address) [__ppc64__]: New function.
24624 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
24625 changed.
24626
246272007-12-05 Jason Rumney <jasonr@gnu.org>
24628
24629 * w32proc.c (sys_spawnve): Quote args with wildcards.
24630
246312007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24632
24633 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
24634 __objc_* sections.
24635 (unrelocate) [_LP64]: Set relocation base to address of data segment.
24636
246372007-12-05 Michael Albinus <michael.albinus@gmx.de>
24638
24639 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
24640 Move check for Vdbus_registered_functions_table to
24641 xd_read_queued_messages.
24642 (xd_read_queued_messages): Protect xd_read_message calls by
24643 internal_condition_case_1.
24644
246452007-12-04 Michael Albinus <michael.albinus@gmx.de>
24646
24647 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
24648 Qdbus_system_bus and Qdbus_session_bus, respectively.
24649 (Vdbus_intern_symbols): Remove.
24650 (Vdbus_registered_functions_table): New hash table.
24651 (XD_SYMBOL_INTERN_SYMBOL): Remove.
24652 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
24653 Rewrite in order to manage registered functions by hash table
24654 Vdbus_registered_functions_table.
24655
246562007-12-03 Jan Djärv <jan.h.d@swipnet.se>
24657
24658 * xterm.c: Update URL to Window Manager Specification in comment.
24659
246602007-12-02 Michael Albinus <michael.albinus@gmx.de>
24661
24662 * config.in (HAVE_DBUS): Add.
24663
24664 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
24665 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
24666 (obj): Add $(DBUS_OBJ).
24667 (LIBES): Add $(DBUS_LIBS).
24668 (dbusbind.o): New target.
24669
24670 * dbusbind.c: New file.
24671
24672 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
24673
24674 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
24675 (Qdbus_event): New Lisp symbol.
24676 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
24677 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 24678 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
24679
24680 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
24681
246822007-12-01 Richard Stallman <rms@gnu.org>
24683
24684 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
24685
246862007-11-30 Jason Rumney <jasonr@gnu.org>
24687
24688 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
24689 (w32con_reset_terminal_modes): Clear screen buffer.
24690 (w32_face_attributes): Don't use color indexes that are out of range.
24691 Only reverse the default colors.
24692
24693 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
24694 WINDOWSNT.
24695
24696 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
24697
246982007-11-29 Jason Rumney <jasonr@gnu.org>
24699
24700 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
24701 (w32_face_attributes): Use Vtty_defined_color_alist to determine
24702 if the terminal colors are initialized.
24703 (unspecified_fg, unspecified_bg): Remove unused declarations.
24704
247052007-11-29 Andreas Schwab <schwab@suse.de>
24706
24707 * keyboard.c (apply_modifiers): Fix typo.
24708
247092007-11-29 Richard Stallman <rms@gnu.org>
24710
24711 * keymap.c (Fcurrent_local_map): Doc fix.
24712
247132007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
24714
24715 * s/gnu-kfreebsd.h: New file.
24716
247172007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
24718
24719 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
24720 Don't cast redundantly.
24721
24722 * keyboard.c (KEY_TO_CHAR): New macro.
24723 (parse_modifiers, apply_modifiers): Accept integer arguments.
24724 (read_key_sequence): Use them to unify the "shift->unshift" mapping
24725 for chars and symbol keys.
24726 After doing such remapping, apply function-key-map again.
24727
247282007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
24729
24730 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
24731 compiled anymore.
24732
247332007-11-26 Andreas Schwab <schwab@suse.de>
24734
24735 * process.c (list_processes_1): Fix indentation level of the
24736 command column.
24737
247382007-11-23 Andreas Schwab <schwab@suse.de>
24739
24740 * editfns.c (Fformat): Handle %c specially since it requires the
24741 argument to be of type int.
24742
247432007-11-23 Markus Triska <markus.triska@gmx.at>
24744
24745 * emacs.c (main): Call init_editfns before init_process, since
24746 init_process sets Vprocess_connection_type depending on OS release.
24747
247482007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
24749
24750 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
24751 (find_symbol_value): Use do_symval_forwarding.
24752
24753 * data.c (set_internal): Set the value in the `cons-cell' (for
24754 Buffer_Local_values) not only for frame-local variables.
24755
247562007-11-22 Andreas Schwab <schwab@suse.de>
24757
24758 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
24759 values to sprintf.
24760 * keymap.c (Fsingle_key_description): Likewise.
24761 * print.c (print_object): Likewise.
24762
247632007-11-22 Jan Djärv <jan.h.d@swipnet.se>
24764
24765 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
24766 file for image is nil.
24767
247682007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
24769
24770 * term.c: Include stdarg.h.
24771 (fatal): Implement using varargs.
24772 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
24773
247742007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24775
24776 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
24777 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
24778 Update call to buffer_slot_type_mismatch.
24779 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
24780 (buffer_slot_type_mismatch): Update.
24781 * buffer.c (buffer_local_types): Remove.
24782 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
24783 (defvar_per_buffer): Set the type in the buffer_objfwd.
24784
247852007-11-21 Jason Rumney <jasonr@gnu.org>
24786
24787 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
24788 CreateFileMapping returns NULL on failure.
24789
247902007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24791
24792 * search.c (Fset_match_data): Remove the `evaporate' feature.
24793 (unwind_set_match_data): Don't use the `evaporate' feature.
24794
247952007-11-21 Jason Rumney <jasonr@gnu.org>
24796
24797 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
24798
24799 * w32console.c (w32con_write_glyphs): Remove unused variables.
24800
248012007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
24802
24803 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
24804
24805 * s/darwin.h (MULTI_KBOARD): Remove.
24806
24807 * macfns.c (x_create_tip_frame, Fx_create_frame)
24808 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
24809
248102007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
24811
24812 * buffer.c (Fbuffer_local_value): Remove redundant test.
24813 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
24814 than in `current-buffer' to match the comment.
24815 Do the swap using swap_in_global_binding.
24816
24817 * data.c (store_symval_forwarding, set_internal):
24818 * eval.c (specbind): Remove dead code.
24819
24820 * coding.c (detect_coding, Fupdate_coding_systems_internal):
24821 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
24822 Since we do not want to see internal Lisp_*fwd objects here.
24823
248242007-11-18 Jan Djärv <jan.h.d@swipnet.se>
24825
24826 * sysdep.c (init_system_name): Use getaddrinfo if available.
24827
24828 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
24829 (x_scroll_bar_note_movement): start, end, with, height in struct
24830 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
24831
248322007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
24833
24834 * puresize.h (BASE_PURESIZE): Increase to 1190000.
24835
248362007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
24837
24838 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
24839 This undoes Richard's change of 14-Oct-2002.
24840
24841 * alloc.c (allocate_other_vector):
24842 * lisp.h (allocate_other_vector): Remove.
24843
24844 * window.c (struct save_window_data): Move non-lisp data to the end
24845 and make it `int' rather than Lisp_Object.
24846 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
24847 Done wrap/unwrap integer values.
24848 (Fset_window_configuration, compare_window_configurations):
24849 Update use of fields to their new types.
24850
24851 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
24852 Turn integer fields into `int'. Merge x_window_low and x_window_high.
24853 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
24854 (SET_SCROLL_BAR_X_WINDOW): Remove.
24855 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
24856 Access the new x_window field directly.
24857 * xterm.c (x_scroll_bar_create): Use a pseudovector.
24858 Don't wrap/unwrap integers into Lisp_Objects.
24859 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
24860 (x_scroll_bar_report_motion):
24861 Don't wrap/unwrap integers into Lisp_Objects.
24862 (x_term_init): Use SDATA.
24863 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
24864 (x_scroll_bar_set_handle, x_scroll_bar_remove)
24865 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
24866 (x_scroll_bar_report_motion, x_scroll_bar_clear):
24867 * xfns.c (x_set_background_color):
24868 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
24869 Access the new x_window field directly.
24870
24871 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
24872 (allocate_pseudovector): Make non-static.
24873
24874 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
24875 (allocate_pseudovector): Declare.
24876 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
24877
248782007-11-15 Andreas Schwab <schwab@suse.de>
24879
24880 * editfns.c (Fformat): Correctly format EMACS_INT values.
24881 Also take precision into account when formatting an integer.
24882
24883 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
24884
248852007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
24886
24887 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
24888 (syms_of_keyboard): Defsubr it.
24889
24890 * data.c (swap_in_global_binding): Fix longstanding bug where
24891 store_symval_forwarding was not called with the right second argument,
24892 thus causing objfwd-ing from being dropped.
24893
248942007-11-14 Juanma Barranquero <lekktu@gmail.com>
24895
24896 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
24897 (Fx_display_pixel_height, Fx_display_planes)
24898 (Fx_display_color_cells, Fx_server_max_request_size)
24899 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24900 (Fx_display_visual_class, Fx_display_save_under):
24901 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
24902 (Fx_display_pixel_height, Fx_display_planes)
24903 (Fx_display_color_cells, Fx_server_max_request_size)
24904 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
24905 (Fx_display_mm_height, Fx_display_mm_width)
24906 (Fx_display_backing_store, Fx_display_visual_class)
24907 (Fw32_select_font, Fx_display_save_under):
24908 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
24909 (Fx_display_pixel_height, Fx_display_planes)
24910 (Fx_display_color_cells, Fx_server_max_request_size)
24911 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24912 (Fx_display_save_under): Fix typos in docstrings.
24913
249142007-11-14 Juanma Barranquero <lekktu@gmail.com>
24915
24916 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
24917 corresponding to deleted entries; they are an implementation detail.
24918 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
24919 Remove variables.
24920 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
24921 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
24922 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
24923 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
24924 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
24925 (Fw32_define_rgb_color, Fw32_load_color_file)
24926 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
24927 Fix typos in docstrings.
24928 (Fx_server_version): Reflow docstring.
24929 (Fw32_shell_execute): Doc fixes.
24930
249312007-11-13 Juanma Barranquero <lekktu@gmail.com>
24932
24933 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
24934 if w32_parse_hot_key returned nil.
24935
249362007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
24937
24938 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
24939
249402007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 24941
aac0c6e3
MR
24942 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
24943
24944 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
24945
24946 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
24947 Remove W32_SCROLL_BAR_CLICK_EVENT.
24948
24949 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
24950 Add MULTIMEDIA_KEY_EVENT.
24951
24952 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
24953 (lispy_multimedia_keys) [WINDOWSNT]: New array.
24954 (make_lispy_event) [WINDOWSNT]: Use it to translate
24955 MULTIMEDIA_KEY_EVENT.
24956
24957 * w32term.h (WM_APPCOMMAND): Define if not already.
24958 (GET_APPCOMMAND_LPARAM): Likewise.
24959
24960 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
24961 WM_APPCOMMAND.
24962
24963 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
24964 (syms_of_w32fns): Export and initialize it.
24965 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
24966
249672007-11-09 Chong Yidong <cyd@stupidchicken.com>
24968
24969 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
24970 twice.
24971
24972 * xdisp.c (handle_face_prop): Fix last change.
24973
249742007-11-09 Richard Stallman <rms@gnu.org>
24975
24976 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
24977 not just for after-strings and before-strings.
24978 Call face_for_overlay_string and pass the overlay to it.
24979 (handle_display_prop): Determine whether property came from an overlay.
24980 Pass OVERLAY arg to handle_single_display_spec.
24981 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
24982 (load_overlay_strings): Fill in it->string_overlays.
24983 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
24984
24985 * xfaces.c (face_for_overlay_string): Function renamed from
24986 face_at_buffer_position_no_overlays, and add arg OVERLAY.
24987
24988 * dispextern.h (struct it): New elt string_overlays.
24989 New elt from_overlay, also in stack.
24990 Rearrange a few elements.
24991 (face_for_overlay_string): Decl renamed from
24992 face_at_buffer_position_no_overlays, and add argument.
24993
249942007-11-09 Richard Stallman <rms@gnu.org>
24995
24996 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
24997 to get the base face for an overlay string.
24998
24999 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
25000
25001 * xfaces.c (face_at_buffer_position_no_overlays): New function.
25002
25003 * xdisp.c (handle_stop): Move some code out of loop.
25004
250052007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25006
25007 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
25008 Fix conversion from Lisp object to ATSUFontID.
25009
250102007-11-09 Jason Rumney <jasonr@gnu.org>
25011
25012 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
25013
250142007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25015
25016 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
25017 Don't assume regions are aligned to page boundary.
25018 (print_load_command_name): Add LC_UUID if defined.
25019
250202007-11-09 Richard Stallman <rms@gnu.org>
25021
25022 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
25023
250242007-11-07 Jason Rumney <jasonr@gnu.org>
25025
25026 * s/windows95.h: Remove.
25027
250282007-11-06 Jan Djärv <jan.h.d@swipnet.se>
25029
25030 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
25031 abort with a message on unhandled store_type values.
25032
250332007-11-01 Jan Djärv <jan.h.d@swipnet.se>
25034
25035 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
25036 Remove HAVE_X11R5 and HAVE_X11R4.
25037
250382007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
25039
25040 * Makefile.in: Remove references to sunfns.c and sunfns.o.
25041
250422007-11-01 Johan Bockgård <bojohan@gnu.org>
25043
25044 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
25045 Don't set s->stippled_p here, since it has already been set by
25046 x_set_glyph_string_gc from x_draw_glyph_string.
25047
250482007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
25049
25050 * sunfns.c: Remove file.
25051
25052 * m/sun386.h:
25053 * m/sun2.h:
25054 * m/sparc.h: Remove Sun windows code.
25055
250562007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
25057
25058 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
25059 (init_keyboard): Set current_kboard's window-system to nil.
25060 (tty_read_avail_input): Typo.
25061 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
25062
250632007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
25064
25065 * s/usg5-4.h:
25066 * s/usg5-3.h:
25067 * s/ptx.h:
25068 * m/is386.h:
25069 * m/ibmps2-aix.h:
25070 * Makefile.in: Remove all mentions of X10.
25071
25072 * dispnew.c (syms_of_display): Don't mention version 10.
25073
250742007-10-28 Juanma Barranquero <lekktu@gmail.com>
25075
25076 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
25077 ($(BLD)/abbrev.$(O)): Remove.
25078
250792007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
25080
25081 Rewrite abbrev.c in Elisp.
25082 * image.c (Qcount): Don't declare as extern.
25083 (syms_of_image): Initialize and staticpro `Qcount'.
25084 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
25085 * emacs.c (main): Don't call syms_of_abbrev.
25086 * Makefile.in (obj): Remove abbrev.o.
25087 (abbrev.o): Remove.
25088 * abbrev.c: Remove.
25089
250902007-10-26 Martin Rudalics <rudalics@gmx.at>
25091
25092 * window.c (window_min_size_2): Don't count header-line.
25093
250942007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
25095
25096 * frame.h (struct frame): Move all bit fields after the first bit
25097 field to take advantage of the available space. Group all the
25098 chars together to reduce wasted space due to padding.
25099
251002007-10-26 Juanma Barranquero <lekktu@gmail.com>
25101
25102 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
25103
25104 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
25105 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
25106 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
25107 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
25108 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
25109 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
25110 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
25111 (last_marked, mark_object_loop_halt): Make static.
25112
25113 * frame.c (syms_of_frame) <delete-frame-functions>:
25114 Fix typo in docstring.
25115
251162007-10-25 Juanma Barranquero <lekktu@gmail.com>
25117
25118 * w32.c (init_environment): Fix tiny memory leak.
25119 (w32_get_resource): Remove unused variable `ok'.
25120
251212007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
25122
25123 Make `window-system' into a keyboard-local variable (rather than
25124 frame-local as done originally by multi-tty).
25125
25126 * keyboard.h (struct kboard): Add Vwindow_system.
25127 * keyboard.c (init_kboard): Set a default for Vwindow_system.
25128 (mark_kboards): Mark Vwindow_system.
25129
25130 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
25131 (init_display): Don't set the obsolete `window-system' frame-param.
25132
25133 * xterm.c (x_term_init):
25134 * w32term.c (w32_create_terminal):
25135 * term.c (init_tty): Set Vwindow_system.
25136 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
25137 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
25138
25139 * xfns.c (Fx_create_frame, x_create_tip_frame):
25140 * w32fns.c (Fx_create_frame, x_create_tip_frame):
25141 * macfns.c (Fx_create_frame):
25142 Don't set the obsolete `window-system' frame-param.
25143
25144 * frame.h (Qwindow_system): Remove.
25145 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
25146 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
25147
251482007-10-24 Richard Stallman <rms@gnu.org>
25149
25150 * frame.c (x_figure_window_size): For fullscreen case,
25151 set USPosition | PPosition without clobbering rest of window_prompting.
25152
25153 * keyboard.c (Fcurrent_idle_time): Doc fix.
25154
25155 * print.c (Fwith_output_to_temp_buffer): Doc fix.
25156
251572007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
25158
25159 * process.c (unwind_request_sigio): Only define if __ultrix__.
25160
25161 * callproc.c (child_setup): Remove spurious *.
25162
25163 * lisp.h (Fget_text_property): Declare.
25164 (have_menus_p): Declare it here rather than in sys-dep header files.
25165 * macterm.h (have_menus_p):
25166 * msdos.h (have_menus_p):
25167 * xterm.h (have_menus_p): Remove.
25168
25169 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
25170 (Fmake_variable_frame_local): Just check the variable's const-ness
25171 rather than checking nil or t.
25172
251732007-10-22 Jason Rumney <jasonr@gnu.org>
25174
25175 * w32fns.c: Include math.h.
25176 (w32_abort): Declaration moved to nt/config.nt.
25177
25178 * s/ms-w32.h (HAVE_STDLIB_H): Define.
25179 (abort): Redefinition moved to nt/config.nt.
25180
25181 * m/windowsnt.h: Remove.
25182
251832007-10-22 Juanma Barranquero <lekktu@gmail.com>
25184
25185 * emacs.c (Fdump_emacs): Fix typo in message.
25186 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
25187 <installation-directory>: Reflow docstring.
25188
251892007-10-22 Juri Linkov <juri@jurta.org>
25190
25191 * minibuf.c: Allow minibuffer default to be a list of default values.
25192 With empty input use the first element of this list as returned default.
25193 (string_to_object)
25194 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
25195 (read_minibuf): If defalt is cons, set histstring to its car.
25196 (Fread_string): If default_value is cons, set val to its car.
25197 (Fread_buffer): If def is cons, use its car.
25198 (Fcompleting_read): If defalt is cons, set val to its car.
25199
252002007-10-21 Michael Albinus <michael.albinus@gmx.de>
25201
25202 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
25203
252042007-10-20 Juanma Barranquero <lekktu@gmail.com>
25205
25206 * doc.c (Fdocumentation): Check for advice in all cases.
25207
252082007-10-19 Chong Yidong <cyd@stupidchicken.com>
25209
25210 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
25211
252122007-10-19 Richard Stallman <rms@gnu.org>
25213
25214 * doc.c (Fdocumentation): Check for and handle an advised function.
25215
252162007-10-19 Juanma Barranquero <lekktu@gmail.com>
25217
25218 * process.c (Fset_process_filter): Doc fix.
25219
252202007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
25221
25222 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
25223 which caused key-translation-map to applied repeatedly (thus breaking
25224 double-mode).
25225
252262007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
25227
25228 * xselect.c (x_own_selection, x_handle_selection_clear)
25229 (x_clear_frame_selections):
25230 * w32menu.c (list_of_panes, list_of_items):
25231 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
25232 * textprop.c (validate_plist, interval_has_all_properties)
25233 (interval_has_some_properties, interval_has_some_properties_list)
25234 (add_properties, text_property_list):
25235 * process.c (Fget_buffer_process, list_processes_1, status_notify):
25236 * minibuf.c (Fassoc_string):
25237 * macselect.c (x_own_selection, x_clear_frame_selections)
25238 (Fx_disown_selection_internal):
25239 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
25240 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
25241
252422007-10-17 Chong Yidong <cyd@stupidchicken.com>
25243
25244 * process.c: Link to libs for calling res_init() if available.
25245 (Fmake_network_process): Call res_init() before getaddrinfo or
25246 gethostbyname, if possible.
25247
252482007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
25249
25250 * lread.c (read1): Set pvectype for char_tables.
25251
25252 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
25253 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
25254 Add type checks.
25255 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
25256
25257 * alloc.c (free_misc): Use XMISCTYPE.
25258 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
25259
252602007-10-17 Glenn Morris <rgm@gnu.org>
25261
25262 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
25263 (syms_of_minibuf): Add Qcompletion_ignore_case.
25264 * dired.c (Qcompletion_ignore_case): Change to external.
25265 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
25266 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
25267 (Fread_file_name): Use it rather than intern'ing.
25268
25269 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
25270 (Fread_coding_system): Ignore case of user input.
25271
252722007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25273
25274 * xdisp.c (handle_display_prop): Ignore display specs after
25275 replacing one when string text is being replaced.
25276 (handle_single_display_spec): Pretend as if characters with display
25277 property haven't been consumed only when buffer text is being replaced.
25278
252792007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
25280
25281 * xfns.c (Fx_create_frame, Fx_display_list):
25282 * window.c (window_fixed_size_p, enlarge_window)
25283 (shrink_window_lowest_first):
25284 * macterm.c (init_font_name_table):
25285 * macfns.c (Fx_create_frame, Fx_display_list):
25286 * lread.c (close_load_descs):
25287 * keyboard.c (read_char_x_menu_prompt):
25288 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
25289 * coding.c (code_convert_region_unwind): Test the type of an object
25290 rather than just !NILP before extracting data from it.
25291
25292 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
25293
25294 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
25295 (XMISCANY): New macro.
25296 (XMISCTYPE): Use it.
25297 (struct Lisp_Misc_Any): New type.
25298 (union Lisp_Misc): Use it.
25299 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
25300 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
25301 (find_symbol_value, set_internal, default_value, Fset_default)
25302 (Fmake_variable_buffer_local, Fmake_local_variable)
25303 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
25304 (Flocal_variable_if_set_p, Fvariable_binding_locus):
25305 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
25306 * alloc.c (allocate_buffer): Set the size and tag.
25307 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
25308 Use XMISCANY.
25309 (die): Follow the GNU convention for error messages.
25310 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
25311 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
25312 tag any more.
25313 (set_buffer_internal_1):
25314 * frame.c (store_frame_param):
25315 * eval.c (specbind):
25316 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
25317
25318 * doc.c (Fsnarf_documentation): Simplify.
25319
253202007-10-14 Juanma Barranquero <lekktu@gmail.com>
25321
25322 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
25323 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
25324
253252007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
25326
25327 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
25328
253292007-10-14 Juanma Barranquero <lekktu@gmail.com>
25330
25331 * eval.c (do_autoload): Don't save autoloads.
25332
25333 * data.c (Ffset): Save autoload of the function being set.
25334
253352007-10-07 John Paul Wallington <jpw@pobox.com>
25336
25337 * xfns.c (x_create_tip_frame): Set the `display-type' frame
25338 parameter before setting up faces.
25339
253402007-10-13 Eli Zaretskii <eliz@gnu.org>
25341
25342 * ccl.c (Fregister_code_conversion_map):
25343 * keyboard.c (append_tool_bar_item): Reformat last change.
25344
25345 * lisp.h (eabs): Rename from `abs'. All callers changed.
25346
253472007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
25348
25349 * buffer.c (add_overlay_mod_hooklist):
25350 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
25351 * fontset.c (make_fontset):
25352 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
25353 (append_tool_bar_item):
25354 * macmenu.c (grow_menu_items):
25355 * w32menu.c (grow_menu_items):
25356 * xmenu.c (grow_menu_items): Use larger_vector.
25357
253582007-10-13 Eli Zaretskii <eliz@gnu.org>
25359
25360 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
25361 selected frame'' on MSDOS).
25362
253632007-10-12 Martin Rudalics <rudalics@gmx.at>
25364
25365 * frame.c (Qexplicit_name): New variable.
25366 (x_report_frame_params): Report it in parameter alist.
25367 (syms_of_frame): Intern and staticpro it.
25368
253692007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
25370
25371 * macfns.c (x_create_tip_frame): Set terminal for frame.
25372
253732007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
25374
25375 * frame.c (Qenvironment): Remove.
25376 (syms_of_frame) <Qenvironment>: Don't initialize.
25377 (Fdelete_frame): Don't treat the `environment' param specially.
25378 * frame.h (Qenvironment): Don't declare.
25379 * callproc.c (set_initial_environment): Don't set unused frame param.
25380
25381 * frame.c (Fframe_with_environment): Remove.
25382 (syms_of_frame) <Sframe_with_environment>: Don't declare.
25383
25384 * lisp.h (Fframe_with_environment): Don't declare.
25385
253862007-10-10 Juanma Barranquero <lekktu@gmail.com>
25387
25388 * indent.c (indent_tabs_mode, last_known_column)
25389 (last_known_column_modified): Make static.
25390 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
25391
253922007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
25393
25394 * puresize.h (BASE_PURESIZE): Increase to 1170000.
25395
253962007-10-09 Jason Rumney <jasonr@gnu.org>
25397
25398 * w32term.c (x_set_window_size): Disable code that attempts to tell
25399 Lisp code about a size change before it actually happens.
25400
254012007-10-09 Richard Stallman <rms@gnu.org>
25402
25403 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
25404 return HANDLED_RETURN.
25405
254062007-10-08 Martin Rudalics <rudalics@gmx.at>
25407
25408 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
25409 when there's an unread command event.
25410
25411 * frame.c (focus_follows_mouse): Move here from frame.el to allow
25412 window autoselection act appropriately when leaving selected frame.
25413 (syms_of_frame): Initialize focus_follows_mouse.
25414 * frame.h (focus_follows_mouse): Extern it.
25415 * macterm.c (XTread_socket): When focus_follows_mouse is nil
25416 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
25417 * msdos.c (dos_rawgetc): Likewise.
25418 * w32term.c (w32_read_socket): Likewise.
25419 * xterm.c (handle_one_xevent): Likewise.
25420 * xdisp.c (syms_of_xdisp): In doc-string of
25421 mouse-autoselect-window mention focus-follows-mouse.
25422
254232007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25424
25425 * macterm.c (mac_load_query_font): Fix missing return value.
25426 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
25427 Add BLOCK_INPUT.
25428
254292007-10-08 Richard Stallman <rms@gnu.org>
25430
25431 * xdisp.c (get_window_cursor_type): Implement documented behavior
25432 for cursor-in-non-selected-windows = t.
25433
254342007-10-08 Jason Rumney <jasonr@gnu.org>
25435
25436 * w32.c (w32_get_resource): Always close registry keys.
25437
254382007-10-08 Jason Rumney <jasonr@gnu.org>
25439
25440 * makefile.w32-in (LIBS): Add COMCTL32.
25441
25442 * w32fns.c (globals_of_w32fns): Init common controls.
25443
254442007-10-08 Richard Stallman <rms@gnu.org>
25445
25446 * image.c (our_memory_buffer): Rename from omfib_buffer.
25447
254482007-10-08 Richard Stallman <rms@gnu.org>
25449
25450 * buffer.c (Foverlays_at): Doc fix.
25451
254522007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
25453
25454 * fns.c (Fplist_put): Preserve uneven tail data.
25455
254562007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
25457
25458 * termhooks.h (enum event_kind): Remove trailing comma.
25459
25460 * frame.h (enum): Remove trailing comma.
25461
254622007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
25463
25464 * w32proc.c (delete_child): Don't terminate threads of zombies.
25465
254662007-10-08 Martin Rudalics <rudalics@gmx.at>
25467
25468 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
25469
25470 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
25471 last-repeatable-command.
25472 (init_kboard): Initialize Vlast_repeatable_command.
25473 (command_loop_1): Set it to real_this_command unless that was
25474 bound to an input event.
25475 (mark_kboards): Mark it.
25476
254772007-10-08 Richard Stallman <rms@gnu.org>
25478
25479 * eval.c (condition-case): Doc fix.
25480
254812007-10-08 Masatake YAMATO <jet@gyve.org>
25482
25483 * xfaces.c (tty_supports_face_attributes_p): Fix code
25484 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
25485 was copied and not edited.
25486
254872007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
25488
25489 Add new `input-decode-map' keymap and use it for terminal
25490 escape sequences.
25491 * keyboard.h (struct kboard): Add Vinput_decode_map.
25492 Remove Vlocal_key_translation_map.
25493 * keyboard.c (read_key_sequence): Add support for input-decode-map.
25494 (init_kboard): Init input-decode-map.
25495 Replace local-key-translation-map back with key-translation-map.
25496 (syms_of_keyboard): Declare input-decode-map.
25497 Remove local-key-translation-map. Update docstrings.
25498 (mark_kboards): Mark Vinput_decode_map.
25499 Don't mark Vlocal_key_translation_map.
25500 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
25501 Replace local-key-translation-map back with key-translation-map.
25502 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
25503 Bind in input-decode-map rather than function-key-map.
25504
25505 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
25506 This was made redundant by the previous introduction of XSETPVECTYPE.
25507
255082007-10-09 Richard Stallman <rms@gnu.org>
25509
25510 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
25511
255122007-09-29 Richard Stallman <rms@gnu.org>
25513
25514 * eval.c (internal_condition_case_2, internal_condition_case_1)
25515 (internal_condition_case): Reenable abort if x_catching_errors ()
25516 to see if that really happens and why.
25517
255182007-10-06 Andreas Schwab <schwab@suse.de>
25519
25520 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
25521
255222007-10-04 Juanma Barranquero <lekktu@gmail.com>
25523
25524 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
25525
255262007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
25527
25528 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
25529
255302007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
25531
25532 * window.h (struct window):
25533 * window.c (struct save_window_data, struct saved_window):
25534 * termhooks.h (struct terminal):
25535 * process.h (struct Lisp_Process):
25536 * frame.h (struct frame):
25537 * buffer.h (struct buffer):
25538 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
25539 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
25540 The size field of (pseudo)vectors is now unsigned.
25541 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
25542
25543 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
25544 Turn `count' into an integer.
25545
25546 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
25547 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
25548 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
25549 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
25550 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
25551
25552 * alloc.c (allocate_pseudovector): New fun.
25553 (ALLOCATE_PSEUDOVECTOR): New macro.
25554 (allocate_window, allocate_terminal, allocate_frame)
25555 (allocate_process): Use it.
25556 (mark_vectorlike): New function.
25557 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
25558 (mark_terminals): Use it.
25559 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
25560 (Fmake_byte_code): Use XSETPVECTYPE.
25561
25562 * frame.c (Fframe_parameters): Minor simplification.
25563
25564 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
25565
25566 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
25567
25568 * buffer.c (Fget_buffer_create, init_buffer_once):
25569 * lread.c (defsubr):
25570 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
25571
25572 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
25573 defined differently in the m/*.h files.
25574 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
25575 (XSETPVECTYPE): New macro.
25576 (XSETPSEUDOVECTOR): Use it.
25577
25578 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
25579 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
25580
25581 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
25582 * lread.c (defvar_per_buffer):
25583 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
25584
25585 * window.c (candidate_window_p): Only consider as visible frames that
25586 are on the same terminal.
25587
25588 * m/ibms390x.h (MARKBIT): Remove unused macro.
25589
255902007-10-01 Juanma Barranquero <lekktu@gmail.com>
25591
25592 * lread.c (Fload): Fix typo in docstring.
25593
255942007-10-01 Michaël Cadilhac <michael@cadilhac.name>
25595
25596 * floatfns.c (Fexpt): Manually check for overflows, so that a power
25597 of a non-zero value can't yield zero.
25598
255992007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
25600
25601 * term.c (term_clear_mouse_face, term_mouse_highlight)
25602 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
25603
25604 * print.c (safe_debug_print): Use XHASH.
25605
25606 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
25607 Lisp elements such as tags.
25608 (XHASH): New macro.
25609 (EQ): Use it.
25610 (SREF, SSET, STRING_COPYIN): Use SDATA.
25611 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
25612
25613 * alloc.c (mark_terminal): Remove left-over declaration.
25614 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
25615 (allocate_vectorlike): Remove type argument. Adjust callers.
25616 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
25617 Only handle the one remaining MEM_TYPE_VECTORLIKE.
25618
25619 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
25620 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
25621 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
25622 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
25623 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
25624 Use them.
25625
25626 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
25627 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
25628 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
25629
256302007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
25631
25632 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
25633 loaded by default.
25634
256352007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
25636
25637 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
25638 on this tty.
25639 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
25640
25641 * term.c (mouse_face_window): Rename from Qmouse_face_window.
25642 Update all users.
25643 (handle_one_term_event): Use Gpm_DrawPointer.
25644 (Fgpm_mouse_start): Rename from Fterm_open_connection.
25645 Signal errors instead of returning nil. Always return nil.
25646 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
25647 Make it a noop if gpm-mouse was not activated.
25648 (syms_of_term): Update names.
25649
256502007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
25651
25652 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
25653 (init_sys_modes): Check that gpm_tty is the current tty.
25654
25655 * alloc.c (allocate_terminal): Set the vector size to only count the
25656 lisp fields. Initialize those to nil.
25657 (mark_object): Don't treat terminals specially.
25658 (mark_terminal): Remove.
25659 (mark_terminals): Use mark_object instead.
25660
25661 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
25662 the GC to the beginning.
25663
25664 * indent.h:
25665 * indent.c: Use EMACS_INT for ints coming from Elisp data.
25666
25667 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
25668
256692007-09-25 Jason Rumney <jasonr@gnu.org>
25670
25671 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
25672
25673 * w32console.c (create_w32cons_output): Remove.
25674
25675 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
25676
25677 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
25678 (reset_sys_modes): Use reset_terminal_modes_hook.
25679
256802007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
25681
25682 * eval.c (do_autoload): Don't output any message.
25683
256842007-09-24 Juri Linkov <juri@jurta.org>
25685
25686 * emacs.c (standard_args): Change priority of "--no-splash"
25687 from 40 to 3. Add "--no-desktop" with the same priority.
25688
256892007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
25690
25691 * alloc.c (gc_sweep): Check cons cell mark bits word by word
25692 and optimize the case where they are all 1.
25693
256942007-09-23 Johannes Weiner <hannes@saeurebad.de>
25695
25696 * lisp.h (abs): Define if not defined.
25697 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
25698 Don't define `abs', since it's defined in lisp.h.
25699
257002007-09-22 Eli Zaretskii <eliz@gnu.org>
25701
25702 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
25703 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
25704 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
25705 (init_tty): Use DEV_TTY instead of "/dev/tty".
25706 [WINDOWSNT]: No need to protect from NAME arg being null.
25707
257082007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
25709
25710 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
25711 up the tty state.
25712
257132007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25714
25715 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
25716 (gpm_tty): Change its type.
25717 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
25718 (gpm_tty): Change its type and initialize it.
25719 (Fterm_open_connection): Check the frame is indeed a tty.
25720 Use the new gpm_tty.
25721 (Fterm_close_connection): Use the new gpm_tty.
25722 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
25723 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
25724
257252007-09-21 Juanma Barranquero <lekktu@gmail.com>
25726
25727 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
25728 underline_color, to draw strike-through.
25729
257302007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25731
25732 * lisp.h (allocate_terminal): Declare.
25733
25734 * window.c (candidate_window_p): Consider frames that are being placed
25735 by the user as somewhere between visible and iconified.
25736 (window_loop): Prefer windows on the current frame.
25737 (Fselect_window): Move the use of select-frame to the beginning so we
25738 can just delegate all the work (it'll call us back anyway).
25739
25740 * frame.c (Qdisplay_environment_variable):
25741 * frame.h (Qdisplay_environment_variable): Delete.
25742
25743 * .gdbinit (xbacktrace): Print the arg's address rather than the value
25744 of the first arg, since that value may be a union.
25745
25746 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
25747 parameter rather than Qdisplay_environment_variable. If all else
25748 fails, look for DISPLAY in initial-environment.
25749
257502007-09-21 Glenn Morris <rgm@gnu.org>
25751
25752 * Makefile.in (emacstool): Remove target.
25753 (lisp, shortlisp): Remove termdev.elc.
25754
257552007-09-21 Markus Triska <markus.triska@gmx.at>
25756
25757 * xterm.c (x_delete_display): Compile session management conditionally.
25758
257592007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
25760
25761 * callproc.c (getenv_internal_1): New function.
25762 (getenv_internal): Use it.
25763 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
25764
25765 * terminal.c (get_terminal): Don't accept ints to represent terminals.
25766 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
25767 (Fset_terminal_parameter): Work with dead terminals as well.
25768 (Fmodify_terminal_parameters): Remove.
25769
25770 * terminal.c (get_terminal): Handle terminals.
25771 Make sure the terminal returned is live.
25772 (create_terminal): Use allocate_terminal.
25773 (mark_terminals): Move to alloc.c.
25774 (delete_terminal): Use terminal->name as liveness status.
25775 NULL out fields after freeing their contents.
25776 Don't deallocate the object.
25777 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
25778 rather than an int.
25779 (Fterminal_live_p): Accept non-integer arguments.
25780 (Fterminal_list): Return terminal objects rather than an ints.
25781
25782 * alloc.c (enum mem_type): New member for `terminal' objects.
25783 (allocate_terminal): New function.
25784 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
25785 Handle terminals.
25786 (mark_terminal): New fun.
25787 (mark_terminals): Move from terminal.c.
25788
25789 * term.c (get_tty_terminal): Don't treat output_initial specially.
25790 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
25791 (delete_tty): Use terminal->name as liveness status.
25792
25793 * termhooks.h (struct terminal): Make it into a pseudovector.
25794 Remove `deleted' replaced by checking `name's nullness.
25795
25796 * print.c (print_object): Handle terminals.
25797
25798 * lisp.h (enum pvec_type): New `terminal' pseudovector.
25799 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
25800
25801 * frame.c (make_terminal_frame):
25802 * keyboard.c (tty_read_avail_input):
25803 * w32term.c (x_delete_terminal):
25804 * xfns.c (Fx_create_frame, x_create_tip_frame):
25805 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
25806
258072007-09-20 Glenn Morris <rgm@gnu.org>
25808
25809 * process.c (Fmake_network_process): Doc fix.
25810
258112007-09-19 Jason Rumney <jasonr@gnu.org>
25812
25813 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
25814
258152007-09-19 Michaël Cadilhac <michael@cadilhac.name>
25816
25817 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
25818 Fix a C warning regarding variable constness.
25819
25820 * xterm.c (handle_one_xevent): Fix a C warning.
25821
258222007-09-18 Jason Rumney <jasonr@gnu.org>
25823
25824 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
25825
258262007-09-17 Jan Djärv <jan.h.d@swipnet.se>
25827
25828 * gtkutil.c (gdpy_def): New variable.
25829 (xg_initialize): Initialize gdpy_def.
25830 (xg_display_close): If no other display exists, set gdpy_def to a
25831 new connection.
25832
258332007-09-16 Jan Djärv <jan.h.d@swipnet.se>
25834
25835 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
25836 when we have no file name for the icon.
25837 (xg_tool_bar_expose_callback): Remove.
25838 (xg_create_tool_bar): Don't connect expose signal to
25839 xg_tool_bar_expose_callback.
25840 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
25841
258422007-09-16 Andreas Schwab <schwab@suse.de>
25843
25844 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
25845 values instead of zapping them.
25846
258472007-09-14 Glenn Morris <rgm@gnu.org>
25848
25849 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
25850 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
25851 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
25852 scope and rename to omfib_buffer for clarity.
25853 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
25854
258552007-09-14 Kenichi Handa <handa@m17n.org>
25856
25857 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
25858
258592007-09-13 Jason Rumney <jasonr@gnu.org>
25860
25861 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
25862
25863 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
25864
25865 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
25866 (mac_term_init): Call here instead, passing rif.
25867
258682007-09-13 Glenn Morris <rgm@gnu.org>
25869
25870 * s/hpux.h: No longer define `static' as nothing.
25871
258722007-09-13 Johan Bockgård <bojohan@gnu.org>
25873
25874 * callint.c (Fcall_interactively): Remove unused var `fun'.
25875
258762007-09-12 Romain Francoise <romain@orebokech.com>
25877
25878 * window.c (prefer_window_split_horizontally, display_buffer):
25879 Revert 2007-09-08 change.
25880
258812007-09-12 Glenn Morris <rgm@gnu.org>
25882
25883 * alloca.c: Remove file.
25884 * Makefile.in (alloca): Do not undef.
25885 (allocaobj, alloca.o): Remove.
25886 (otherobj): Remove allocaobj.
25887 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
25888 * regex.c (C_ALLOCA): Remove all references and code that was only
25889 used when this was defined.
25890 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
25891 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
25892 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
25893
25894 * Makefile.in (SOURCES, unlock, relock): Delete.
25895
25896 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
25897 (menu_grab_callback): All uses changed.
25898
25899 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
25900 (x_reply_selection_request): All uses changed.
25901
259022007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
25903
25904 * lread.c (load_warn_old_style_backquotes): Change message to look
25905 better when it appears in the middle of byte-compiler messages.
25906
259072007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
25908
25909 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
25910
25911 * xterm.c (x_create_terminal): Add comment.
25912
25913 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
25914
259152007-09-10 Richard Stallman <rms@gnu.org>
25916
25917 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
25918
259192007-09-10 Michaël Cadilhac <michael@cadilhac.name>
25920
25921 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
25922 (DEFUN): Document `intspec', use it instead of `prompt'.
25923
25924 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
25925
25926 * data.c (Finteractive_form): If the interactive specification starts
25927 with a `(', use it as a Lisp form.
25928
25929 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
25930 name and file modes.
25931
25932 * callint.c (Fcall_interactively): Comment fixes.
25933
259342007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
25935
25936 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
25937 and compiled functions.
25938
259392007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
25940
25941 * window.c (prefer_window_split_horizontally): New variable.
25942 (display_buffer): Consider splitting window horizontally depending
25943 on prefer_window_split_horizontally.
25944
259452007-09-08 Eli Zaretskii <eliz@gnu.org>
25946
25947 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
25948
259492007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25950
25951 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
25952
25953 * frame.c (x_set_frame_parameters): Check number is positive before
25954 using XFASTINT.
25955
25956 * window.c (freeze_window_start): Don't presume selected_window holds
25957 a window object.
25958 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
25959
259602007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
25961
25962 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
25963
259642007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25965
25966 * window.c (Vsplit_window_preferred_function): New var.
25967 (Fdisplay_buffer): Use it.
25968 (syms_of_window): Export, and initialize it.
25969
259702007-09-06 Pixel <pixel@mandriva.com> (tiny change)
25971
25972 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
25973
259742007-09-06 Glenn Morris <rgm@gnu.org>
25975
25976 * gtkutil.c (menu_grab_callback) <cnt>:
25977 * xselect.c (x_reply_selection_request) <cnt>: Move static
25978 variable to file scope.
25979
259802007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
25981
25982 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
25983 consistent values of selected_frame and selected_window.
25984
259852007-09-04 Jason Rumney <jasonr@gnu.org>
25986
25987 * w32console.c (initialize_w32_display): Zero unused hooks.
25988
259892007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25990
25991 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
25992 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
25993
259942007-09-04 Jason Rumney <jasonr@gnu.org>
25995
25996 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
25997 in w32console.c. Set up input. Remove XXX comments that have been
25998 confirmed as correct.
25999
26000 * s/ms-w32.h (MULTI_KBOARD): Define.
26001
26002 * w32console.c (one_and_only_w32cons): Remove.
26003 (initialize_w32_display): Take terminal argument.
26004
26005 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
26006 initialize_w32_display.
26007 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
26008
26009 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
26010
26011 * keyboard.c (discard_mouse_events): Discard it.
26012 (make_lispy_event): Translate it to a lisp event.
26013 (lispy_wheel_names): Add wheel-left and right events.
26014 (syms_of_keyboard): Enlarge wheel_syms.
26015
26016 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
26017 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
26018
26019 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
26020
26021 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
26022 from WM_MOUSEHWHEEL.
26023 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
26024
26025 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
26026 terminal.
26027
26028 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
26029 keyboard for the terminal.
26030
260312007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
26032
26033 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
26034 (Vresume_tty_hook): Rename from Vresume_tty_functions.
26035 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
26036 and resume-tty-function to resume-tty-hook.
26037 (Fsuspend_tty, Fresume_tty): Use new names.
26038
260392007-09-02 Jan Djärv <jan.h.d@swipnet.se>
26040
26041 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
26042 if it starts with "n:".
26043
260442007-08-31 Jan Djärv <jan.h.d@swipnet.se>
26045
26046 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
26047
260482007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
26049
26050 * frame.h:
26051 * frame.c (Qterm_environment_variable): Remove.
26052 (syms_of_frame): Don't init and staticpro it.
26053
26054 * callproc.c (getenv_internal): Remove special case for $TERM.
26055
26056 * callproc.c (Vinitial_environment): New variable.
26057 (set_initial_environment): Initialize it.
26058 (syms_of_callproc): Declare it.
26059 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
26060 TERM under which a process runs is never related to the TERM in which
26061 Emacs is running.
26062
260632007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
26064
26065 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
26066 * s/darwin.h: ... do it here.
26067
260682007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
26069
26070 * lisp.h (set_initial_environment): Rename from set_global_environment.
26071
26072 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
26073 removed by mistake on the multi-tty branch.
26074
26075 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
26076 (Fmodify_frame_parameters): Return a value.
26077
26078 * image.c (png_load): Comment-out var only used in commented-out code.
26079
26080 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
26081 before passing it to mark_object.
26082
26083 * xfaces.c (internal_resolve_face_name): Return a value.
26084 (internal_resolve_face_name, resolve_face_name_error): Comment out.
26085
26086 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
26087 (x_icon): Comment-out var only used in commented-out code.
26088
260892007-08-29 Romain Francoise <romain@orebokech.com>
26090
26091 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
26092 QUIT hasn't been provided.
26093
260942007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
26095
26096 * callproc.c (child_setup, getenv_internal): Use the
26097 display-environment-variable and term-environment-variable frame params.
26098 (set_initial_environment): Initialise Vprocess_environment.
26099
26100 * config.in: Disable multi-keyboard support on a mac.
26101
26102 * frame.c (Qterm_environment_variable)
26103 (Qdisplay_environment_variable): New variables.
26104 (syms_of_frame): Intern and staticpro them.
26105 (Fmake_terminal_frame): Disable output method test.
26106
26107 * frame.h: Declare them here.
26108
26109 * macfns.c (x_set_mouse_color): Get rif from the frame.
26110 (x_set_tool_bar_lines): Don't use updating_frame.
26111 (mac_window): Add 2 new parameters for consistency with other systems.
26112 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
26113 frame parameters following what is done in X11 and w32. Don't use
26114 FRAME_MAC_DISPLAY_INFO.
26115 (Fx_open_connection, start_hourglass): Remove window-system check.
26116 (x_create_tip_frame): Get the keyboard from the terminal.
26117
26118 * macmenu.c: Reorder includes.
26119 (Fx_popup_menu): Use terminal specific mouse_position_hook.
26120
26121 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
26122 terminal parameter.
26123 (x_clear_frame): Add a frame parameter.
26124 (note_mouse_movement): Get rif from the frame.
26125 (mac_term_init): Initialize the terminal.
26126 (mac_initialize): Make static and move terminal initialization ...
26127 (mac_create_terminal): ... to this new function.
26128
26129 * macterm.h (struct mac_display_info): Add terminal.
26130 (mac_initialize): Delete declaration.
26131
26132 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
26133
26134 * sysdep.c: Comment out text after #endif.
26135
26136 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
26137 is defined. Better initialize ttys in windows. Use terminal
26138 specific mouse_position_hook.
26139
26140 * termhooks.h (union display_info): Add mac_display_info.
26141
26142 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
26143 Set the default minibuffer frame, window_system and the rest of the
26144 frame parameters following what is done in X11.
26145
26146 * w32term.c (w32_initialize): Make static.
26147
26148 * xselect.c (x_handle_selection_clear): Only access
26149 terminal->kboard when MULTI_KBOARD is defined.
26150
26151 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
26152 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
26153
261542007-08-29 Jason Rumney <jasonr@gnu.org>
26155
26156 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
26157 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
26158
26159 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
26160 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
26161
26162 * keyboard.c (restore_kboard_configuration): Only define when
26163 MULTI_KBOARD defined.
26164
26165 * makefile.w32-in: Update dependancies from Makefile.in.
26166 (OBJ1): Add terminal.$(O)
26167
26168 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
26169 Don't define function body.
26170 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
26171
26172 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
26173
26174 * w32.c (request_sigio, unrequest_sigio): Remove.
26175
26176 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
26177 (w32con_clear_frame, w32con_clear_end_of_line)
26178 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
26179 (w32con_delete_glyphs, w32con_set_terminal_window)
26180 (scroll_line, w32_sys_ring_bell): Add frame arg.
26181 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
26182 Add terminal arg.
26183 (PICK_FRAME): Remove.
26184 (w32con_write_glyphs): Use frame specific terminal coding.
26185 (one_and_only_w32cons): New global variable.
26186 (initialize_w32_display): Use it for storing hooks.
26187 (create_w32cons_output): New function.
26188
26189 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
26190 arg a frame.
26191
26192 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
26193 Set window_system.
26194 (x_set_tool_bar_lines): Don't use updating_frame.
26195 (Fx_create_frame): Set terminal and ref count.
26196 (Fx_open_connection): Remove window-system check.
26197
26198 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
26199
26200 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
26201 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
26202 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
26203 Add frame arg.
26204 (x_delete_terminal, w32_create_terminal): New functions.
26205 (w32_term_init): Create a terminal.
26206 (w32_initialize): Move terminal specific initialization to
26207 w32_create_terminal.
26208
26209 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
26210 (w32_clear_rect, w32_clear_area): Use background from frame.
26211 (w32_display_info): Add terminal.
26212 (w32_sys_ring_bell, x_delete_display): Declare here.
26213
26214 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
26215
26216 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
26217
262182007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
26219
26220 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
26221 Fix get_named_tty calls for the controlling tty.
26222
262232007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
26224
194d44e7 26225 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
26226
262272007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
26228
26229 * term.c (tty_insert_glyphs): Add missing first parameter.
26230
262312007-08-29 Károly Lőrentey <karoly@lorentey.hu>
26232
26233 * buffer.c (Fbuffer_list, Fbury_buffer):
26234 Take frame->buried_buffer_list into account.
26235
26236 * cm.c (current_tty): New variable, for cmputc().
26237 (cmputc): Use it.
26238 (cmcheckmagic): Add tty parameter, look up terminal streams there.
26239 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
26240 (cmgoto): Add tty parameter. Pass it on to calccost().
26241 Use emacs_tputs() instead of tputs().
26242
26243 * cm.h (emacs_tputs): New macro to set current_tty, and then call
26244 tputs().
26245 (current_tty): New variable, for cmputc().
26246 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
26247
26248 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
26249 (internal_condition_case, internal_condition_case_1)
26250 (internal_condition_case_2): Don't abort when x_catching_errors.
26251
26252 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
26253 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
26254 prevent crashes caused by bogus longjmps in read_char.
26255
26256 * keymap.h (Fset_keymap_parent): Add EXFUN.
26257
26258 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
26259 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
26260 Remove redundant definition.
26261
26262 * macfns.c (x_set_mouse_color, x_make_gc):
26263 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26264
26265 * w32term.c (x_free_frame_resources):
26266 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26267 (w32_initialize): Use the accessor macros for terminal characteristics.
26268
26269 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
26270 Use the accessor macros for terminal characteristics.
26271 * msdos.c (internal_terminal_init): Use the accessor macros for
26272 terminal characteristics.
26273 (ScreenVisualBell, internal_terminal_init):
26274 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26275
26276 * termopts.h (no_redraw_on_reenter): Declare.
26277
26278 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
26279 (mark_terminals, mark_ttys): Declare.
26280 (Fgarbage_collect): Call them.
26281 (mark_object): Mark buried_buffer_list.
26282
26283 * prefix-args.c: Include stdlib.h for exit.
26284
26285 * syssignal.h: Add comment.
26286
26287 * indent.c: Include stdio.h.
26288
26289 * window.h (Vinitial_window_system): Declare.
26290 (Vwindow_system): Delete declaration.
26291
26292 * fontset.c (Finternal_char_font): Use FRAME_RIF.
26293
26294 * image.c (lookup_image): Don't initialize `c' until the xasserts
26295 have been run.
26296
26297 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
26298 FRAME_FOREGROUND_PIXEL.
26299
26300 * print.c (print_preprocess): Don't lose print_depth levels while
26301 iterating.
26302
26303 * widget.c (update_from_various_frame_slots):
26304 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26305
26306 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
26307 frames.
26308 (window_internal_height): Remove bogus make_number call.
26309 (init_window_once): Call make_terminal_frame with two zero parameters.
26310
26311 * fileio.c (Fread_file_name): Update comment.
26312
26313 * callint.c (Fcall_interactively):
26314 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
26315 Make sure it is correctly unwound.
26316
26317 * xsmfns.c (x_session_close): New function.
26318
26319 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
26320 Delete declarations.
26321
26322 * xterm.h: Remove declaration for x_fully_uncatch_errors.
26323 (x_output): Remove background_pixel and foreground_pixel fields.
26324 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
26325 (x_delete_device, x_session_close): Declare.
26326
26327 * lread.c: Include setjmp.h. Update declaration of `read_char'.
26328 (read_filtered_event): Call `read_char' with a local
26329 `wrong_kboard_jmpbuf'.
26330
26331 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
26332 Don't call single_kboard_state. Use FRAME_RIF.
26333
26334 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
26335 systems.
26336
26337 * lisp.h (set_process_environment): Rename to `set_global_environment'.
26338 (Fframe_with_environment, Fset_input_meta_mode)
26339 (Fset_quit_char): EXFUN.
26340 (x_create_device, tty_output, terminal, tty_display_info): Declare.
26341 (init_sys_modes, reset_sys_modes): Update prototypes.
26342 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
26343
26344 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
26345 Vlocal_key_translation_map, and Vkeyboard_translate_table.
26346 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
26347 Delete declarations.
26348 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
26349 (temporarily_switch_to_single_kboard, tty_read_avail_input):
26350 New declarations.
26351
26352 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
26353 already does that during init_display(). Call syms_of_keymap
26354 before syms_of_keyboard. Call `syms_of_terminal'.
26355 Call set_initial_environment, not set_process_environment.
26356 (shut_down_emacs): Call reset_all_sys_modes() instead of
26357 reset_sys_modes().
26358
26359 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
26360 (internal_resolve_face_name, resolve_face_name_error): New functions.
26361 (resolve_face_name): Protect against loops and errors thrown by Fget.
26362 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
26363 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
26364
26365 * scroll.c: Replace CURTTY() with local variables throughout the
26366 file (where applicable).
26367 (calculate_scrolling, calculate_direct_scrolling)
26368 (scrolling_1, scroll_cost): Use the accessor macros for terminal
26369 characteristics.
26370
26371 * keymap.c (Vfunction_key_map): Remove.
26372 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
26373 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
26374 (Vkey_translation_map): Remove.
26375 (syms_of_keymap): Remove DEFVAR for key-translation-map.
26376 (Fdescribe_buffer_bindings)
26377 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
26378 Update for terminal-local key-translation-map.
26379
26380 * Makefile.in (callproc.o): Update dependencies.
26381 (lisp, shortlisp): Add termdev.elc.
26382 (obj): Add terminal.o.
26383 (terminal.o): Add dependencies.
26384 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
26385 (data.o, fns.o): Add termhooks.h dependency.
26386 (SOME_MACHINE_LISP): Add dnd.elc.
26387 (minibuf.o): Fix typo.
26388 Update dependencies.
26389
26390 * data.c (do_symval_forwarding, store_symval_forwarding)
26391 (find_symbol_value): Use the selected frame's keyboard, not
26392 current_kboard.
26393
26394 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
26395 Vwindow_system.
26396
26397 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
26398 Fmenu_bar_open.
26399 (syms_of_xmenu): Update defsubr.
26400 (mouse_position_for_popup, Fx_popup_menu)
26401 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
26402 (set_frame_menubar, free_frame_menubar)
b97439ce 26403 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
26404 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
26405 an X frame.
26406
26407 * xselect.c (x_own_selection): Abort if not an X frame.
26408 (some_frame_on_display): Check if it is an X frame.
26409 (x_handle_selection_clear): Deal with MULTI_KBOARD.
26410
26411 * coding.c: Include frame.h and termhooks.h.
26412 (terminal_coding, keyboard_coding): Delete.
26413 (Fset_terminal_coding_system_internal)
26414 (Fset_keyboard_coding_system_internal)
26415 (Fkeyboard_coding_system)
26416 (Fterminal_coding_system): Add a terminal parameter.
26417 Get terminal_coding from the terminal.
26418 (init_coding_once): Don't call setup_coding_system here.
26419
26420 * dispextern.h (set_scroll_region, turn_off_insert)
26421 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
26422 (tty_clear_end_of_line, tty_setup_colors)
26423 (delete_tty, updating_frame)
26424 (produce_special_glyphs, produce_glyphs, write_glyphs)
26425 (insert_glyphs): Remove.
26426 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
26427 (tty_turn_off_highlight, get_tty_size): Add declaration.
26428 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
26429
26430 * frame.h (enum output_method): Add output_initial.
26431 (struct x_output): Delete.
26432 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
26433 Access foreground_pixel and background_pixel directly from the frame.
26434 (tty_display): Delete.
26435 (struct frame): Add buried_buffer_list, foreground_pixel,
26436 background_pixel and terminal. Delete kboard.
26437 (union output_data): Add tty.
26438 (FRAME_KBOARD): Get the kboard from the terminal.
26439 (FRAME_INITIAL_P): New macro.
26440 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
26441 (Qterm_environment_variable, Qdisplay_environment_variable)
26442 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
26443 New declarations.
26444
26445 * termchar.h (tty_output, tty_display_info): New structures.
26446 (tty_list): Declare.
26447 (FRAME_TTY, CURTTY): New macros.
26448 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
26449 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
26450 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
26451 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
26452
26453 * callproc.c: Include frame.h and termhooks.h, for terminal
26454 parameters.
26455 (add_env): New function.
26456 (child_setup): Use it.
26457 (child_setup, getenv_internal): Handle the new Vprocess_environment.
26458 (getenv_internal): Fix get_terminal_param call.
26459 (Fgetenv_internal, egetenv): Update doc.
26460 (syms_of_callproc): Initialize Vprocess_environment to nil.
26461 Register and initialize them. Remove obsolete defvars. Update doc
26462 strings.
26463 (child_setup): Handle Vlocal_environment_variables.
26464 (getenv_internal): Add terminal parameter.
26465 Handle Vlocal_environment_variables.
26466 (Fgetenv_internal): Add terminal parameter.
26467 (child_setup, getenv_internal, Fgetenv_internal): Store the local
26468 environment in a frame (not terminal) parameter. Update doc strings.
26469 (set_initial_environment): Rename from set_global_environment.
26470 Store Emacs environment in initial frame parameter.
26471
26472 * xdisp.c (redisplay_internal): Update references to
26473 `previous_terminal_frame'.
26474 (display_mode_line, Fformat_mode_line): Replace calls to
26475 `push_frame_kboard' with `push_kboard'.
26476 (get_glyph_string_clip_rects): Add extra parentheses and
26477 braces to prevent compiler warnings.
26478 (calc_pixel_width_or_height): Add xassert to check that the
26479 frame is alive. Don't call `lookup_image' on a termcap frame.
26480 (message2_nolog, message3_nolog, redisplay_internal)
26481 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
26482 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
26483 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
26484 (Fx_display_pixel_width, Fx_display_pixel_height)
26485 (Fx_display_planes, Fx_display_color_cells)
26486 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
26487 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
26488 (Fx_display_backing_store, Fx_display_visual_class)
26489 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
26490 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
26491
26492 * xfns.c (x_set_foreground_color x_set_background_color)
26493 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
26494 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26495 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
26496 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
26497 terminal that is being deleted.
26498 (Fx_create_frame): Use `store_frame_param' to set `window-system'
26499 frame parameter, and make sure it overrides any user-supplied setting.
26500 (Fx_close_connection, Fx_synchronize): Unify argument names with
26501 the rest of the DEFUNs.
26502
26503 * dispnew.c (Fsend_string_to_terminal): Update call to
26504 `get_tty_terminal'.
26505 (Fredraw_frame, Fsend_string_to_terminal)
26506 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
26507 FRAME_TERMCAP_P and FRAME_TTY.
26508 (window_change_signal): Don't believe width/height values that are
26509 impossibly small.
26510 (Vinitial_window_system): Rename from Vwindow_system.
26511 (termscript, Wcm, rif): Delete.
26512
26513 * termhooks.h (struct terminal): New struct containing the
26514 previously global text display hooks and new members NAME,
26515 DELETED and PARAM_ALIST.
26516 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
26517 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
26518 (FRAME_RIF): New macros.
26519 (get_terminal_param, get_device): New declarations.
26520 (termscript): Delete declaration.
26521
26522 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
26523 (XTflash, x_free_frame_resources, x_scroll_bar_create)
26524 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
26525 FRAME_FOREGROUND_PIXEL.
26526 (x_fully_uncatch_errors): Disable definition.
26527 (x_scroll_bar_expose): Fix reference to foreground pixel.
26528 (XTread_socket): Disable loop on all X displays.
26529 (x_delete_terminal): Don't set terminal->deleted and let
26530 delete_terminal delete the frames on the terminal.
26531 (x_delete_display): Doc update to reflect changes in
26532 delete_terminal.
26533 (x_display_info) <terminal>: Move member earlier in the struct.
26534 (deleting_tty): Remove old variable.
26535 (Fsuspend_tty): Call clear_tty_hooks.
26536 (Fresume_tty, init_tty): Call set_tty_hooks.
26537 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
26538 errors on X frames.
26539 (x_catch_errors_unwind): Abort if x_error_message is NULL.
26540 (handle_one_xevent): Initialize `f' to NULL.
26541 (x_delete_terminal, x_create_terminal): New functions.
26542 (XTset_terminal_modes, XTreset_terminal_modes)
26543 (XTread_socket, x_connection_closed, x_term_init)
26544 (x_term_init, x_delete_display): Add terminal parameter.
26545 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
26546 X connections.
26547
26548 * frame.c: Include termchar.h.
26549 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
26550 (Qwindow_system, Qenvironment, Qterm_environment_variable)
26551 (Qdisplay_environment_variable): New vars.
26552 (Fframep): Deal with output_initial.
26553 (Fframe-live-p): Doc fix.
26554 (Fwindow-system): New function.
26555 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
26556 (make_terminal_frame): Don't create frames on a terminal that is
26557 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26558 (store_frame_param): Check for found_for_frame before calling XFRAME.
26559 (Fmake_terminal_frame): Handle NULL tty names correctly.
26560 (syms_of_frame): Enhance doc string of `default-frame-alist'.
26561 (Fdelete_frame): Remove unused variable `count'. Don't allow other
26562 frames to refer to a deleted frame in their 'environment parameter.
26563 (Fframe_with_environment): New function.
26564 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
26565 (get_future_frame_param): New function.
26566 (Fmake_terminal_frame): Use it.
26567 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
26568
26569 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
26570 * sysdep.c (reset_sys_modes): Update for renames.
26571
26572 * keyboard.c (tty_read_avail_input): New function.
26573 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
26574 (syms_of_keyboard): Defsubr them.
26575 (Fset_input_meta_mode, Fset_quit_char): New functions.
26576 (Fset_input_mode): Split to above functions.
26577 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
26578 parameter. Use it in call to `read_char'.
26579 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
26580 Set wrong_kboard_jmpbuf correctly in recursive calls.
26581 Use current_kboard to access Vkeyboard_translate_table.
26582 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
26583 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
26584 Update longjmp invocations. Remember the original current_kboard,
26585 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
26586 changes it. Comment out unnecessary calls to
26587 `record_single_kboard_state' and `any_kboard_state'.
26588 Update recursive calls.
26589 (wrong_kboard_jmpbuf): Remove global variable.
26590 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
26591 Handle deleted interrupted_kboards correctly; that is a legal
26592 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
26593 and read_char calls. Abort if interrupted_kboard died in read_char.
26594 (any_kboard_state, single_kboard_state)
26595 (push_frame_kboard): Remove function.
26596 (pop_kboard): Switch out of single_kboard mode if the kboard has
26597 been deleted. Remove unused variable. Help debugging by not
26598 changing current_kboard unnecessarily. Set current_kboard to the
26599 kboard of the selected frame when the stored kboard object has
26600 been deleted before pop_kboard.
26601 (temporarily_switch_to_single_kboard): Change first parameter to a
26602 frame pointer. Throw an error when caller wants to change kboards
26603 while in single_kboard mode. Don't push_kboard if we weren't in
26604 single kboard state. Don't pop_kboard if we popped into any
26605 kboard state.
26606 (restore_kboard_configuration): Abort if pop_kboard changed the
26607 kboard in single_kboard mode. Call pop_kboard only after setting
26608 up single_kboard mode.
26609 (Frecursive_edit): Switch to single_kboard mode only in nested
26610 command loops.
26611 (cmd_error, command_loop, command_loop_1, timer_check):
26612 Comment out unnecessary call to `any_kboard_state' and
26613 `record_single_kboard_state'.
26614 (delete_kboard): Exit single_kboard mode if we have just deleted
26615 that kboard. Use FRAME_KBOARD.
26616 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
26617 `fatal_error_signal'.
26618 (record_single_kboard_state): Don't push_kboard if we weren't in
26619 single kboard state. Don't pop_kboard if we popped into any
26620 kboard state.
26621 (push_frame_kboard): Rename to push_kboard.
26622 (kbd_buffer_get_event): Use FRAME_TERMINAL.
26623 (read_avail_input): Read input from all terminals.
26624 (mark_kboards): Also mark Vkeyboard_translate_table.
26625 (kbd_buffer_store_event_hold): Simplify condition.
26626 (read_key_sequence): Reinitialize fkey and keytran at each replay.
26627 (Vkeyboard_translate_table): Move to struct kboard.
26628 (init_kboard): Initialize Vkeyboard_translate_table.
26629 (syms_of_keyboard): Use DEFVAR_KBOARD to define
26630 Vkeyboard_translate_table. Update doc strings. Update docs of
26631 local-function-key-map and function-key-map.
26632
26633 * terminal.c: New file.
26634
26635 * term.c: Include errno.h.
26636 (Vring_bell_function, device_list, initial_device)
26637 (next_device_id, ring_bell, update_begin, update_end)
26638 (set_terminal_window, cursor_to, raw_cursor_to)
26639 (clear_to_end, clear_frame, clear_end_of_line)
26640 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
26641 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
26642 (syms_of_term): Move their initialization to terminal.c.
26643 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
26644 (Ftty_display_color_cells)
26645 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
26646 (clear_tty_hooks, set_tty_hooks)
26647 (init_tty, maybe_fatal): New functions.
26648 (Ftty_type): Return nil if terminal is not on a tty instead of
26649 throwing an error. Doc update.
26650 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
26651 Doc update. Initialize new subrs and variables.
26652 (delete_tty): Use terminal->deleted.
26653 (tty_set_terminal_modes): Rename from set_terminal_modes.
26654 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
26655 (set_scroll_region): Rename to `tty_set_scroll_region'.
26656 (turn_on_insert): Rename to `tty_turn_on_insert'.
26657 (turn_off_insert): Rename to `tty_turn_off_insert'.
26658 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
26659 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
26660 (toggle_highligh): Rename to `tty_toggle_highlight'.
26661 (background_highlight): Rename to `tty_background_highlight'.
26662 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
26663 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
26664 (tty_set_scroll_region, tty_background_highlight)
26665 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
26666 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
26667 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
26668 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
26669 Add static modifier.
26670 (tty_reset_terminal_modes, tty_set_terminal_window)
26671 (tty_set_scroll_region, tty_background_highlight)
26672 (tty_highlight_if_desired, tty_cursor_to)
26673 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
26674 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
26675 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
26676 renames.
26677
266782007-08-28 Jan Djärv <jan.h.d@swipnet.se>
26679
26680 * keyboard.c: Qrtl is new.
26681 (parse_tool_bar_item): Handle :rtl keyword.
26682 (syms_of_keyboard): Intern :rtl keyword.
26683
26684 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
26685
26686 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
26687 so no Lisp code is executed.
26688 (file_for_image, find_rtl_image): New functions.
26689 (xg_get_image_for_pixmap): Use file_for_image.
26690 (update_frame_tool_bar): If direction is RTL, use RTL image if
26691 defined. Use Gtk stock images if defined.
26692
266932007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26694
26695 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
26696 for nonexistent or zero-width glyph in composition glyph.
26697
266982007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
26699
26700 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
26701
26702 * xdisp.c (Finvisible_p): New function.
26703 (syms_of_xdisp): defsubr it.
26704
267052007-08-24 Juanma Barranquero <lekktu@gmail.com>
26706
26707 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
26708 Doc fixes.
26709
267102007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26711
26712 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
26713
267142007-08-24 Martin Rudalics <rudalics@gmx.at>
26715
26716 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
26717 whether decoding has modified buffer contents.
26718
267192007-08-24 Jason Rumney <jasonr@gnu.org>
26720
26721 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
26722 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
26723 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
26724 (init_svg_functions) [HAVE_NTGUI]: New function.
26725 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
26726 (svg_load_image): Use them.
26727 (svg_load_image) [HAVE_NTGUI]: Implement background.
26728
267292007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26730
26731 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
26732 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
26733 (LIBX): Remove @RSVG_LIBS@.
26734 (LIBES): Add $(RSVG_LIBS).
26735
26736 * image.c (svg_load_image): Blend with specified background if exists.
26737 Use IMAGE_BACKGROUND. Add Mac OS Support.
26738
26739 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
26740 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
26741 Remove macros.
26742 [MAC_OSX] (socket_callback): Do nothing.
26743 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
26744 ReceiveNextEvent.
26745 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
26746 socket_callback.
26747 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
26748
267492007-08-22 Glenn Morris <rgm@gnu.org>
26750
26751 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
26752
267532007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
26754
26755 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
26756
26757 * image.c: Add support for SVG images. Some additional comments
26758 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
26759 (svg_image_p): New function to test for SVG image.
26760 (svg_load): New function to load SVG image.
26761 (svg_load_image): New function, helper for svg_load.
26762 (Qsvg): New Lisp_object.
26763 (svg_keyword_index): New enum.
26764 (svg_format): New static `image_keyword' struct.
26765 (svg_type): New static `image_type' struct.
26766 (librsvg/rsvg.h): Include it.
26767
267682007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
26769
26770 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
26771
267722007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
26773
26774 * lread.c (Qold_style_backquotes): New var.
26775 (syms_of_lread): Init and staticpro it.
26776 (load_warn_old_style_backquotes): New fun.
26777 (Fload): Use them to warn about old style backquotes.
26778 (end_of_file_error, Fload): Remove unused vars.
26779
26780 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
26781
26782 * lread.c (Vold_style_backquotes): New var.
26783 (syms_of_lread): Init and export it to Elisp.
26784 (read1): Set it when we find an old-style (back)quote.
26785
267862007-08-22 Jason Rumney <jasonr@gnu.org>
26787
26788 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
26789
267902007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
26791
26792 * puresize.h (BASE_PURESIZE): Increase to 1140000.
26793
267942007-08-19 Richard Stallman <rms@gnu.org>
26795
26796 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
26797
267982007-08-19 Andreas Schwab <schwab@suse.de>
26799
26800 * alloc.c (pure): Round PURESIZE up.
26801
268022007-08-17 Jan Djärv <jan.h.d@swipnet.se>
26803
26804 * xterm.c (handle_one_xevent): Remove check that mouse click is in
26805 active frame.
26806
268072007-08-16 Richard Stallman <rms@gnu.org>
26808
26809 * eval.c (Fcommandp): Add parens to clarify.
26810
26811 * minibuf.c (Fall_completions): Use enum for type of table.
26812
26813 * emacs.c (USAGE2): Improve text.
26814
268152007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
26816
26817 * term.c (tty_default_color_capabilities): Declare static
26818 variables in file scope, to avoid HPUX compiler problem.
26819
268202007-08-13 Jan Djärv <jan.h.d@swipnet.se>
26821
26822 * gtkutil.c (update_frame_tool_bar): Use -1 as index
26823 to gtk_toolbar_insert.
26824
268252007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
26826
26827 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
26828
26829 * insdel.c (reset_var_on_error): New fun.
26830 (signal_before_change, signal_after_change):
26831 Use it to reset (after|before)-change-functions to nil in case of error.
26832 Bind inhibit-modification-hooks to t.
26833 Don't bind (after|before)-change-functions to nil while they run.
26834
268352007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26836
26837 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
26838 filling pixmap with stippled background.
26839
268402007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26841
26842 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
26843 Don't use invisible frame as parent window for repositioning.
26844
268452007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
26846
26847 * print.c (new_backquote_output): Rename from old_backquote_output.
26848 (print): Inverse its logic (according to its name) so as to match the
26849 behavior of new_backquote_flag in lread.c.
26850
268512007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26852
26853 * gmalloc.c (posix_memalign): New function.
26854
26855 * macterm.c (frame_highlight, frame_unhighlight): Don't call
26856 ActivateControl/DeactivateControl here.
26857 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
26858 frame-notice-user-settings is non-nil.
26859 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
26860 for kEventParamFMFontStyle.
26861 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
26862 mac_pass_command_to_system and mac_pass_control_to_system here.
26863 (XTread_socket): Call ActivateControl/DeactivateControl here.
26864 (XTread_socket) [TARGET_API_MAC_CARBON]:
26865 Check mac_pass_command_to_system and mac_pass_control_to_system here.
26866 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
26867 for window repositioning.
26868
268692007-08-08 Glenn Morris <rgm@gnu.org>
26870
26871 * Replace `iff' in doc-strings and comments.
26872
268732007-08-07 Chong Yidong <cyd@stupidchicken.com>
26874
26875 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
26876
268772007-08-07 Martin Rudalics <rudalics@gmx.at>
26878
26879 * fileio.c (Finsert_file_contents): Run format-decode and
26880 after_insert_file_functions on entire buffer when REPLACE is
26881 non-nil and inhibit modification_hooks and point_motion_hooks.
26882 For consistency, run after_insert_file_functions iff something
26883 got inserted. Move signal_after_change and update_compositions
26884 after code running after_insert_file_functions. Make sure that
26885 undo_list doesn't record intermediate steps of the decoding process.
26886
268872007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26888
26889 * emacs.c (main)
26890 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
26891 Call malloc_enable_thread on interactive startup.
26892
26893 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
26894 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
26895 [USE_PTHREAD]: Conditionalize with it.
26896 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
26897 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
26898 New functions.
26899
269002007-08-06 Chong Yidong <cyd@stupidchicken.com>
26901
26902 * xdisp.c (redisplay_window): When restoring original buffer
26903 position, make sure it is still valid.
26904
26905 * image.c (png_load): Ignore png-supplied background color.
26906
269072007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26908
26909 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
26910 Use kCFAbsoluteTimeIntervalSince1970.
26911
26912 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
26913 New variable.
26914 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
26915 event loop should be quit.
26916 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
26917 Quit dialog event loop if quit_dialog_event_loop is set.
26918
26919 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
26920 (Selection): New typedef. Use instead of ScrapRef.
26921 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
26922 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
26923 (mac_clear_selection): Rename from clear_scrap.
26924 (get_flavor_type_from_symbol): New argument SEL and subsume function of
26925 scrap_has_target_type. All uses changed.
26926 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
26927 (mac_selection_has_target_p): New functions.
26928 (mac_put_selection_value): Rename from put_scrap_string.
26929 (mac_get_selection_value): Rename from get_scrap_string.
26930 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
26931 (put_scrap_private_timestamp, scrap_has_target_type)
26932 (get_scrap_private_timestamp): Remove functions.
26933 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
26934 (x_own_selection, x_get_local_selection):
26935 Use mac_valid_selection_value_p.
26936 (x_own_selection): Don't use put_scrap_private_timestamp.
26937 Record OWNERSHIP-INFO into Vselection_alist instead.
26938 (x_get_local_selection): Don't check type if request is local.
26939 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
26940 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
26941
269422007-08-04 Jan Djärv <jan.h.d@swipnet.se>
26943
26944 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
26945 add comment explaining why.
26946
269472007-08-03 Richard Stallman <rms@gnu.org>
26948
26949 * fileio.c (Fvisited_file_modtime): Use make_time.
26950
269512007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
26952
26953 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
26954 build.
26955
269562007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
26957
26958 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
26959
269602007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
26961
26962 * puresize.h (BASE_PURESIZE): Increase to 1130000.
26963
269642007-07-30 Richard Stallman <rms@gnu.org>
26965
26966 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
26967
269682007-07-29 Jan Djärv <jan.h.d@swipnet.se>
26969
26970 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
26971
269722007-07-28 Nick Roberts <nickrob@snap.net.nz>
26973
26974 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
26975 remote default-directory.
26976
26977 * buffer.c (mode-line-format): Update doc string.
26978
269792007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26980
26981 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
26982 scroll bar gap.
26983 (x_scroll_bar_create): Set bar->fringe_extended_p.
26984 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
26985 on frame edge. Check fringe background extension. Don't clear
26986 extended fringe background area.
26987
26988 * w32term.h (struct scroll_bar): New member fringe_extended_p.
26989 (w32_fill_area): Enclose multiple statements with do ... while (0).
26990
26991 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
26992 Extend fringe background to scroll bar gap.
26993 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
26994 Set bar->fringe_extended_p.
26995 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26996 Put leftmost/rightmost scroll bars on frame edge. Check fringe
26997 background extension. Don't clear extended fringe background area.
26998
26999 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
27000 New member fringe_extended_p.
27001
270022007-07-25 Glenn Morris <rgm@gnu.org>
27003
27004 * Relicense all FSF files to GPLv3 or later.
27005
27006 * COPYING: Switch to GPLv3.
27007
270082007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
27009
27010 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
27011
27012 * data.c (Finteractive_form): Check for the presence of an
27013 `interactive-form' symbol property more thoroughly.
27014
27015 * data.c (Finteractive_form): Use an `interactive-form' property if
27016 present, analogous to the function-documentation property.
27017
270182007-07-24 Jason Rumney <jasonr@gnu.org>
27019
27020 * w32fns.c (x_real_positions): Get real position from OS instead of
27021 calculating it.
27022
270232007-07-23 Jason Rumney <jasonr@gnu.org>
27024
27025 * filelock.c (current_lock_owner): Allow for @ sign in username.
27026
270272007-07-22 Nick Roberts <nickrob@snap.net.nz>
27028
27029 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
27030 remote default-directory.
27031
27032 * buffer.c (mode-line-format): Describe above case in doc string.
27033
270342007-07-20 Eli Zaretskii <eliz@gnu.org>
27035
27036 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
27037 Define if not defined.
27038
270392007-07-18 Jason Rumney <jasonr@gnu.org>
27040
27041 * w32proc.c (w32_executable_type): Handle 64 bit executables.
27042
270432007-07-18 Richard Stallman <rms@gnu.org>
27044
27045 * data.c (Fsetq_default): Doc fix.
27046
27047 * eval.c (Fsetq): Doc fix.
27048
270492007-07-18 Juanma Barranquero <lekktu@gmail.com>
27050
27051 * coding.c (Ffind_operation_coding_system):
27052 * eval.c (For, Fand): Doc fixes.
27053 Reported by Johan Bockgård.
27054
270552007-07-18 Jan Djärv <jan.h.d@swipnet.se>
27056
27057 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
27058
27059 * xterm.h: Declare x_ewmh_activate_frame.
27060
27061 * xterm.c (x_ewmh_activate_frame): New function.
27062 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
27063
270642007-07-17 Martin Rudalics <rudalics@gmx.at>
27065
27066 * window.c (Fdisplay_buffer): If largest or LRU window is the
27067 only window, split it even if it is not eligible for splitting.
27068 This restores the original behavior broken by the 2007-07-15
27069 change.
27070
270712007-07-17 Glenn Morris <rgm@gnu.org>
27072
27073 * abbrev.c (abbrev_check_chars): New function.
27074 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
27075 Call abbrev_check_chars to check abbrev characters are word
27076 constituents. Doc fix.
27077
270782007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
27079
27080 * process.c (Fstart_process, Fmake_network_process)
27081 (read_process_output): Fix up last changes.
27082
270832007-07-16 Eli Zaretskii <eliz@gnu.org>
27084
27085 * makefile.w32-in (clean): Don't delete *~.
27086
270872007-07-16 Andreas Schwab <schwab@suse.de>
27088
27089 * window.c (Fdisplay_buffer): Use NILP.
27090 (Fset_window_scroll_bars): Likewise.
27091
270922007-07-15 Martin Rudalics <rudalics@gmx.at>
27093
27094 * window.c (window_min_size_2): New function.
27095 (window_min_size_1, size_window, Fdisplay_buffer)
27096 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
27097 windows without mode- or header-lines when window-min-height is
27098 too small.
27099 (size_window): Reset nodelete_p after testing it, following an
27100 earlier note by Kim F. Storm.
27101 (display_buffer): Do not set split_height_threshold to twice the
27102 value of window_min_height to avoid changing the value of a
27103 customizable variable. Rather explicitly check whether the
27104 height of the window that shall be splitted is at least as large
27105 as split_height_threshold.
27106 (Fwindow_full_width_p): New defun.
27107 (syms_of_window): Defsubr it.
27108
27109 * window.h: Add EXFUN for Fwindow_full_width_p.
27110
271112007-07-14 Jason Rumney <jasonr@gnu.org>
27112
27113 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
27114
271152007-07-14 Richard Stallman <rms@gnu.org>
27116
27117 * eval.c (maybe_call_debugger): New function.
27118 (find_handler_clause): Use maybe_call_debugger.
27119 Call it when the handler says `debug'.
27120 Eliminate DEBUGGER_VALUE_PTR.
27121 (Fsignal): Eliminate debugger_value.
27122 (Qdebug): New variable.
27123 (syms_of_eval): Initialize it.
27124
271252007-07-14 Juanma Barranquero <lekktu@gmail.com>
27126
27127 * eval.c (Fprogn):
27128 * keyboard.c (Ftrack_mouse):
27129 * print.c (Fwith_output_to_temp_buffer):
27130 * window.c (Fsave_window_excursion): Doc fix.
27131
271322007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
27133
27134 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
27135
271362007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
27137
27138 * process.h (struct Lisp_Process): Turn slots infd, outfd,
27139 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
27140 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
27141 read_output_delay, and read_output_skip from Lisp_Objects to ints.
27142 Remove unused encoding_carryover.
27143 * process.c: Adjust all functions accordingly.
27144
271452007-07-12 Richard Stallman <rms@gnu.org>
27146
27147 * term.c: Include unistd.h only if HAVE_UNISTD_H.
27148
271492007-07-11 Jason Rumney <jasonr@gnu.org>
27150
27151 * makefile.w32-in (LIBS): Include OLE32.
27152
27153 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
27154 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
27155
271562007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
27157
27158 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
27159 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
27160 from a Lisp_Object into a bare pointer.
27161 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
27162 Adjust the code correspondingly.
27163
27164 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
27165
27166 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
27167 (term_show_mouse_face): Remove unused var `j'.
27168 (handle_one_term_event): Remove unused vars `i' and `j'.
27169 Don't cast return value of ttyname since it's not necessary.
27170
271712007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
27172
27173 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
27174 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
27175
27176 * fns.c (map_char_table): Use an array of int for `indices' rather than
27177 an array of Lisp_Objects (which are only ever integers anyway).
27178 (Fmap_char_table): Update caller.
27179 * lisp.h: Update prototype.
27180 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
27181 * fontset.c (Ffontset_info):
27182 * casetab.c (set_case_table): Update callers.
27183
27184 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
27185
27186 * keymap.c (struct accessible_keymaps_data)
27187 (struct where_is_internal_data): New structures.
27188 (accessible_keymaps_1, where_is_internal_1): Use them to change
27189 interface to adhere to the one used by map_keymap.
27190 (Faccessible_keymaps, where_is_internal): Use map_keymap.
27191 (accessible_keymaps_char_table, where_is_internal_2): Remove.
27192
27193 * keymap.h (map_keymap_function_t): More informative prototype.
27194
271952007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
27196
27197 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
27198 (looking_at_1): Don't change search_regs and last_thing_searched
27199 if `inhibit-changing-match-data' is non-nil.
27200 (string_match_1, search_buffer, set_search_regs): Likewise.
27201 (syms_of_search): Add Lisp level definition for
27202 `inhibit-changing-match-data' and set it to nil.
27203 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
27204 start and end of the match, instead of using values in search_regs.
27205
272062007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
27207
27208 * minibuf.c (Fcompleting_read): New value `confirm-only'
27209 for `require-match'.
27210
272112007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
27212
27213 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
27214 part of the 2007-06-27 change to syms_of_fileio.
27215
272162007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27217
27218 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
27219 Check WINDOWP before using XWINDOW. Consolidate return statements.
27220
272212007-06-27 Richard Stallman <rms@gnu.org>
27222
27223 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
27224
272252007-06-27 Juanma Barranquero <lekktu@gmail.com>
27226
27227 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
27228
272292007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27230
27231 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
27232 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
27233 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
27234 (_free_internal, memalign): Use them.
27235 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
27236 Initialize to PTHREAD_MUTEX_INITIALIZER.
27237 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
27238 (morecore_nolock): Rename from morecore. All uses changed.
27239 Use only nolock versions of internal allocation functions.
27240 (_malloc_internal_nolock, _realloc_internal_nolock)
27241 (_free_internal_nolock): New functions created from
27242 _malloc_internal, _realloc_internal, and _free_internal.
27243 (_malloc_internal, _realloc_internal, _free_internal): Use them.
27244 Copy hook value to automatic variable before its use.
27245 (memalign): Copy hook value to automatic variable before its use.
27246
272472007-06-26 Kenichi Handa <handa@m17n.org>
27248
27249 * coding.c (Ffind_operation_coding_system): Docstring improved.
27250 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
27251
272522007-06-25 David Kastrup <dak@gnu.org>
27253
27254 * keymap.c (Fcurrent_active_maps): Add `position' argument.
27255 (Fwhere_is_internal): Adjust call to `current-active-maps' to
27256 cater for additional parameter.
27257
27258 * keymap.h: Adjust number of parameters to `current-active-maps'.
27259
27260 * doc.c (Fsubstitute_command_keys): Adjust call of
27261 `current-active-maps'.
27262
272632007-06-25 David Kastrup <dak@gnu.org>
27264
27265 * callint.c (Fcall_interactively): Make the parsing of interactive
27266 specs somewhat more readable.
27267
272682007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27269
27270 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
27271 to scroll bar gap also when bitmap fills fringe. Draw only foreground
27272 if extended background has already been filled.
27273
272742007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27275
27276 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
27277 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
27278
27279 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
27280 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
27281 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
27282 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
27283 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
27284 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
27285 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
27286 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
27287 Run timers during dialog popup.
27288 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
27289
272902007-06-21 Jason Rumney <jasonr@gnu.org>
27291
27292 * image.c (convert_mono_to_color_image): Swap fore and background.
27293
272942007-06-20 Jason Rumney <jasonr@gnu.org>
27295
27296 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
27297 (w32_free_bdf_font): Unmap memory not handle.
27298
272992007-06-20 Sam Steingold <sds@gnu.org>
27300
27301 * gmalloc.c (__morecore): Fix the declaration to comply with the
27302 definition.
27303
273042007-06-20 Juanma Barranquero <lekktu@gmail.com>
27305
27306 * w32term.c (w32_delete_display): Remove leftover declaration.
27307 (w32_define_cursor, w32_initialize): Make static.
27308
27309 * w32.c (_wsa_errlist): Fix typo in error message.
27310 (init_environment): Ignore any environment variable from the
27311 registry having a null value.
27312
273132007-06-20 Glenn Morris <rgm@gnu.org>
27314
27315 * Makefile.in (LIBGIF): Default to -lgif.
27316
273172007-06-17 Jason Rumney <jasonr@gnu.org>
27318
27319 * w32menu.c (add_menu_item): Don't use multibyte string functions on
27320 unicode strings.
27321
273222007-06-16 Juanma Barranquero <lekktu@gmail.com>
27323
27324 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
27325 Fix typo in docstring.
27326
273272007-06-16 Eli Zaretskii <eliz@gnu.org>
27328
27329 * w32menu.c (add_menu_item): Escape `&' characters in menu items
27330 and their keybindings.
27331
273322007-06-15 Chong Yidong <cyd@stupidchicken.com>
27333
27334 * composite.c (update_compositions): Fix last fix.
27335
273362007-06-14 Jason Rumney <jasonr@gnu.org>
27337
27338 * w32.c (get_process_times_fn): New function pointer.
27339 (globals_of_w32): Intialize it if present in kernel32.dll.
27340 (w32_get_internal_run_time): New function.
27341
27342 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
27343
273442007-06-14 Kenichi Handa <handa@etlken.m17n.org>
27345
27346 * composite.c (update_compositions): Check the validness of
27347 compositions.
27348
273492007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27350
27351 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
27352 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
27353
27354 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
27355 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
27356
27357 * macgui.h (USE_MAC_TOOLBAR): New define.
27358
27359 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
27360 Return immediately unless popup is activated.
27361
27362 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
27363 background to scroll bar gap.
27364 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
27365 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
27366 scroll bars on frame edge. Check fringe background extension.
27367 Don't clear extended fringe background area.
27368 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
27369 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
27370 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
27371 [USE_MAC_TOOLBAR]: New macros.
27372 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
27373 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
27374 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
27375 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
27376 [USE_MAC_TOOLBAR]: New functions.
27377 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
27378 manually if previous repositioning has failed.
27379 (mac_handle_keyboard_event): Use precomputed event kind.
27380 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
27381 as tool bar item click. Handle mouse movement over tool bar items.
27382
27383 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
27384 toolbar_win_gravity.
27385 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
27386 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
27387 Add externs.
27388
27389 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
27390 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
27391
273922007-06-14 Chong Yidong <cyd@stupidchicken.com>
27393
27394 * image.c (search_image_cache): Remove unused variable.
27395
273962007-06-13 Chong Yidong <cyd@stupidchicken.com>
27397
27398 * xfns.c, xmenu.c: Link to xaw3d if available.
27399
274002007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27401
27402 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
27403 frame_foreground and frame_background.
27404
27405 * image.c (lookup_image): Save frame foreground and background colors.
27406 (search_image_cache): Check if saved and current frame colors match.
27407
274082007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
27409
27410 * regex.c (regex_compile): Remove the `regnum' counter.
27411 Use bufp->re_nsub instead. Add support for \(?N:RE\).
27412
274132007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
27414
27415 * term.c: Include intervals.h to declare Fget_text_property.
27416
274172007-06-10 Jason Rumney <jasonr@gnu.org>
27418
27419 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
27420
274212007-06-08 Juanma Barranquero <lekktu@gmail.com>
27422
27423 * callint.c (Fcall_interactively):
27424 * editfns.c (Fdelete_and_extract_region):
27425 * fileio.c (Fread_file_name):
27426 * fns.c (Fmapconcat):
27427 * keyboard.c (cmd_error_internal):
27428 * keymap.c (Fkey_description):
27429 * lread.c (openp):
27430 * minibuf.c (read_minibuf):
27431 * search.c (wordify):
27432 * sunfns.c (sel_read):
27433 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
27434 * xfns.c (x_default_scroll_bar_color_parameter):
27435 * xmenu.c (menu_help_callback):
27436 * xselect.c (Fx_get_atom_name):
27437 * xterm.c (x_term_init): Use empty_unibyte_string.
27438
274392007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
27440
27441 * alloc.c (init_strings): Initialize canonical empty strings.
27442 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
27443 canonical empty string when the requested size is 0.
27444
27445 * emacs.c (empty_unibyte_string): Rename from empty_string.
27446 (empty_multibyte_string): New canonical empty string.
27447 (syms_of_emacs): Don't initialize empty_string.
27448
27449 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
27450 string, if appropriate.
27451 (empty_unibyte_string, empty_multibyte_string): New externs.
27452 (empty_string): Remove extern.
27453
27454 * lread.c (syms_of_lread): Use empty_unibyte_string.
27455
274562007-06-07 Jason Rumney <jasonr@gnu.org>
27457
27458 * s/ms-w32.h: Don't define HAVE_TZNAME.
27459
27460 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
27461
274622007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27463
27464 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
27465
27466 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
27467 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
27468
27469 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
27470 Don't call next handler.
27471 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
27472 Remove argument. Install handler to application.
27473 (set_frame_menubar): Don't change deep_p.
27474 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
27475 FRAME_OUTER_TO_INNER_DIFF_Y.
27476 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
27477 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
27478 [HAVE_DIALOGS]: New macros.
27479 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
27480 Use them.
27481 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
27482
27483 * macselect.c [MAC_OSX] (install_service_handler): Rename from
27484 init_service_handler. All callers changed. Return OSStatus value.
27485
27486 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
27487 All callers changed so as not to call SetPortWindowPort.
27488 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
27489 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
27490 mac_draw_string_common.
27491 (mac_draw_image_string_qd): Likewise.
27492 (mac_draw_string_common): Use them. Add INLINE.
27493 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
27494 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
27495 GetGlobalMouse.
27496 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
27497 and FRAME_OUTER_TO_INNER_DIFF_Y.
27498 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
27499 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
27500 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
27501 repositioning window to mac_handle_window_event.
27502 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
27503 saving window location to mac_handle_window_event
27504 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
27505 (install_menu_target_item_handler): Remove argument in extern.
27506 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
27507 Also accept command events.
27508 (do_keystroke): New function created from XTread_socket.
27509 (init_command_handler): Remove functions.
27510 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
27511 and save window location by kEventWindowShowing and kEventWindowHiding
27512 handlers here. Don't call next handler for window state change and
27513 focus events.
27514 (mac_handle_application_event, mac_handle_keyboard_event)
27515 [TARGET_API_MAC_CARBON]: New functions.
27516 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
27517 kEventWindowShowing and kEventWindowHiding events. Move installation
27518 of mouse, font, text input and menu target item handlers to
27519 install_application_handler.
27520 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
27521 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27522 New function.
27523 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27524 Register it.
27525 (XTread_socket) [TARGET_API_MAC_CARBON]:
27526 Consolidate SendEventToEventTarget calls.
27527 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
27528 Move application activation handler to mac_handle_application_event.
27529 Move keyboard handler to mac_handle_keyboard_event.
27530 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
27531 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
27532 init_command_handler. Call install_application_handler.
27533
27534 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
27535 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
27536
275372007-06-07 Glenn Morris <rgm@gnu.org>
27538
27539 * emacs.c (main): Use `emacs-copyright' in --version output.
27540
275412007-06-06 Chong Yidong <cyd@stupidchicken.com>
27542
27543 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
27544
275452007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27546
27547 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
27548
27549 * macgui.h: Replace WindowPtr with WindowRef.
27550
27551 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27552 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27553 Replace ControlHandle with ControlRef.
27554 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
27555
27556 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27557 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27558 Replace ControlHandle with ControlRef.
27559 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
27560 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
27561
27562 * macterm.h (struct scroll_bar): Rename member control_handle_low
27563 and control_handle_high to control_ref_low and control_ref_high.
27564 All uses changed.
27565 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
27566 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
27567 respectively. All uses changed.
27568 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
27569 (install_window_handler, remove_window_handler): Replace WindowPtr
27570 with WindowRef in externs.
27571
275722007-06-05 Juanma Barranquero <lekktu@gmail.com>
27573
27574 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
27575
275762007-06-03 Nick Roberts <nickrob@snap.net.nz>
27577
27578 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
27579
27580 * frame.c (Fmouse_position, Fmouse_pixel_position):
27581 Condition on HAVE_GPM too.
27582
27583 * term.c (term_mouse_highlight): Remove unused variables.
27584 (Fterm_open_connection): Set gpm_zerobased to 1.
27585 (term_mouse_movement, term_mouse_click, handle_one_term_event):
27586 Use zero based co-ordinates.
27587 (handle_one_term_event): Report a drag as mouse movement too.
27588
27589 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
27590
275912007-06-03 Chong Yidong <cyd@stupidchicken.com>
27592
27593 * image.c (search_image_cache): New function. Require background
27594 color match if background color is unspecified in the image spec.
27595 (uncache_image, lookup_image): Use it.
27596
275972007-06-01 Juanma Barranquero <lekktu@gmail.com>
27598
27599 * window.c (Fshrink_window): Reflow docstring.
27600
276012007-06-02 Chong Yidong <cyd@stupidchicken.com>
27602
27603 * Version 22.1 released.
27604
276052007-06-01 Richard Stallman <rms@gnu.org>
27606
27607 * xfns.c (x_encode_text): Add GCPRO.
27608
276092007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27610
27611 * xfns.c (x_set_name_internal): Save encoded name before
27612 x_encode_text in case string data is relocated.
27613
276142007-05-31 Richard Stallman <rms@gnu.org>
27615
27616 * buffer.c (syms_of_buffer): Doc fix.
27617
276182007-05-30 Nick Roberts <nickrob@snap.net.nz>
27619
27620 * sysdep.c (init_sys_modes): Add rather than replace with
27621 O_NONBLOCK.
27622
27623 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
27624 term_mouse_moveto.
27625
27626 * termhooks.h (term_mouse_moveto): New extern.
27627
27628 * term.c (mouse_face_window): Rename...
27629 (Qmouse_face_window): ...to this.
27630 (term_show_mouse_face, term_clear_mouse_face)
27631 (term_mouse_highlight): Use Qmouse_face_window.
27632 (term_mouse_moveto): New function.
27633 (term_mouse_position): Make it work.
27634 (syms_of_term): Uncomment assignment to mouse_position_hook.
27635 Staticpro Qmouse_face_window.
27636
276372007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27638
27639 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
27640 around current_column call.
27641
276422007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
27643
27644 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
27645 * xdisp.c (next_element_from_buffer):
27646 * window.c (delete_window):
27647 * term.c (term_mouse_highlight):
27648 * msdos.c (getdefdir):
27649 * macterm.c (mac_create_bitmap_from_bitmap_data)
27650 (init_font_name_table):
27651 * fns.c (Fsxhash):
27652 * data.c (Fmake_local_variable):
27653 * ccl.c (ccl_driver): Likewise.
27654
276552007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27656
27657 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
27658 Call mac_wakeup_from_rne on window size change.
27659
276602007-05-25 Chong Yidong <cyd@stupidchicken.com>
27661
27662 * image.c (uncache_image): Fix typo.
27663
276642007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
27665
27666 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
27667
276682007-05-22 Richard Stallman <rms@gnu.org>
27669
27670 * xterm.c (x_connection_closed): Remove NO_RETURN.
27671
276722007-05-22 Martin Rudalics <rudalics@gmx.at>
27673
27674 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
27675
276762007-05-21 Chong Yidong <cyd@stupidchicken.com>
27677
27678 * image.c (uncache_image): New function.
27679 (Fimage_refresh): New function.
27680
276812007-05-20 Jan Djärv <jan.h.d@swipnet.se>
27682
27683 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
27684
276852007-05-20 Nick Roberts <nickrob@snap.net.nz>
27686
27687 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
27688 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
27689
276902007-05-20 Nick Roberts <nickrob@snap.net.nz>
27691
27692 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
27693 conditional on [HAVE_GPM_H].
27694
276952007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
27696
27697 * syntax.c (skip_chars): Update syntax-table only after we checked that
27698 the new location is valid.
27699
277002007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27701
27702 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
27703 mac_get_window_bounds.
27704
277052007-05-20 Nick Roberts <nickrob@snap.net.nz>
27706
27707 * Makefile.in (LIBGPM): Allow it to be set from configure.
27708 If set then link Emacs with it.
27709
27710 * config.in: Regenerate.
27711
27712 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
27713 New externs.
27714
27715 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
27716 Include gpm.h.
27717 (handle_one_term_event, term_gpm): New externs.
27718
27719 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
27720 and allow it to be interrupted by SIGIO.
27721
27722 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
27723 (wait_reading_process_output): Wait on gpm_fd too.
27724 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
27725 (add_gpm_wait_descriptor_called_flag): New variable.
27726 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
27727
27728 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
27729 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
27730 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
27731 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
27732 (make_lispy_event): Add case GPM_CLICK_EVENT.
27733 (read_avail_input): Handle mouse input.
27734
27735 * term.c (write_glyphs_with_face): New function.
27736 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
27737 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
27738 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
27739 (mouse_face_face_id, term_gpm, pos_x, pos_y)
27740 (last_mouse_x, last_mouse_y): New variables.
27741 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
27742 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
27743 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
27744 (Fterm_close_connection): New functions.
27745 (term_init): Initialise mouse_face_window.
27746
277472007-05-19 Chong Yidong <cyd@stupidchicken.com>
27748
27749 * xdisp.c (redisplay_window): If first window line is a
27750 continuation line, recompute the new window start instead of
27751 recentering.
27752
277532007-05-18 Glenn Morris <rgm@gnu.org>
27754
27755 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
27756 Suggested by Alfred M. Szmidt <ams@gnu.org>.
27757
277582007-05-17 Glenn Morris <rgm@gnu.org>
27759
27760 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
27761
277622007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27763
27764 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
27765 dead key repeat and up events.
27766
277672007-05-14 Chong Yidong <cyd@stupidchicken.com>
27768
27769 * image.c (pbm_load): Check image size for monochrome pbm.
27770
277712007-05-13 Chong Yidong <cyd@stupidchicken.com>
27772
27773 * xterm.c (XTread_socket): Revert last change.
27774
277752007-05-12 Chong Yidong <cyd@stupidchicken.com>
27776
27777 * image.c (pbm_load): Correctly check image size for greyscale pbm.
27778
27779 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
27780
277812007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27782
27783 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
27784 mixup (YAILOM).
27785
277862007-05-07 Andreas Schwab <schwab@suse.de>
27787
27788 * keymap.c (Flookup_key): Fix typo in last change.
27789
277902007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27791
27792 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
27793 mapping for unibyte strings.
27794
277952007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27796
27797 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
27798 (Fx_popup_dialog) [MAC_OSX]: Likewise.
27799
278002007-04-29 Richard Stallman <rms@gnu.org>
27801
27802 * insdel.c (replace_range): For undo, record insertion first.
27803
278042007-04-29 Andreas Schwab <schwab@suse.de>
27805
27806 * lisp.h (VECSIZE): Use OFFSETOF.
27807
278082007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27809
27810 * xdisp.c (try_window_reusing_current_matrix): Fix number of
27811 disabled lines.
27812
278132007-04-28 Richard Stallman <rms@gnu.org>
27814
27815 * lread.c (read_escape): In a string, \s is always space.
27816
278172007-04-27 Jan Djärv <jan.h.d@swipnet.se>
27818
27819 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
27820
27821 * gtkutil.c (xg_update_menubar, create_menus): Create empty
27822 submenu for menu bar items.
27823
27824See ChangeLog.10 for earlier changes.
27825
27826;; Local Variables:
27827;; coding: utf-8
27828;; add-log-time-zone-rule: t
aac0c6e3
MR
27829;; End:
27830
e3eb1dae 27831 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
27832
27833 This file is part of GNU Emacs.
27834
27835 GNU Emacs is free software: you can redistribute it and/or modify
27836 it under the terms of the GNU General Public License as published by
27837 the Free Software Foundation, either version 3 of the License, or
27838 (at your option) any later version.
27839
27840 GNU Emacs is distributed in the hope that it will be useful,
27841 but WITHOUT ANY WARRANTY; without even the implied warranty of
27842 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27843 GNU General Public License for more details.
27844
27845 You should have received a copy of the GNU General Public License
27846 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
27847
27848;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40