Florian Ragwitz' stuff removed because of missing paperwork.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
55e572ef
DN
12010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * xml.c (parse_string): Use const.
4
d4b6d95d
LMI
52010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
6
7 * eval.c (Fbacktrace): Don't overwrite print-level on exit. Also
8 only override Vprint_level if it isn't already bound, and increase
9 the level to 8 to produce more useful backtraces for bug reports.
10
e4b6db12
DN
112010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
12
13 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
14
1becef93
JB
152010-09-30 Juanma Barranquero <lekktu@gmail.com>
16
17 * w32console.c (vga_stdcolor_name): Remove unused function;
18 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
19
df7fcaff
LMI
202010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
21
bac5cef8
LMI
22 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
23 (Fgnutls_boot): Start the handshake.
24 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
25 (Fgnutls_boot): Remove some debugging messages.
26 Change indentation throughout to use the Emacs style.
27 (emacs_gnutls_handshake): Cast the fds to something that's
28 possibly the expected length.
29 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 30
df7fcaff
LMI
31 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
32
33 * process.c (make_process): Set the gnutls_p field to zero by
34 default.
35 (read_process_output): Always call the gnutls_read function if the
36 stream is a gnutls stream.
37 (send_process): Ditto for writes.
38
39 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
40 or write anything until the state is GNUTLS_STAGE_READY.
41 (Fgnutls_boot): Mark the stream as being a gnutls stream.
42
d585695f
EZ
432010-09-29 Eli Zaretskii <eliz@gnu.org>
44
af7ef32d
EZ
45 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
46 NEUTRAL_DIR.
47 (handle_invisible_prop, iterate_out_of_display_property)
48 (next_element_from_buffer): If bidi_it.first_elt is set, call
49 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
50 (Bug#7128)
51
d585695f
EZ
52 * print.c (print_object): Fix format string and argument types for
53 printing a Lisp_Misc_Marker.
54
55 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
56 (load_overlay_strings, get_overlay_strings_1)
57 (get_overlay_strings, forward_to_next_line_start)
58 (back_to_previous_visible_line_start, reseat, reseat_to_string)
59 (get_next_display_element, next_element_from_string)
60 (next_element_from_c_string, next_element_from_buffer)
61 (move_it_vertically_backward, move_it_by_lines, add_to_log)
62 (message_dolog, message_log_check_duplicate, message2_nolog)
63 (message3, message3_nolog, vmessage, set_message, set_message_1)
64 (hscroll_window_tree, text_outside_line_unchanged_p)
65 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
66 (find_last_unchanged_at_beg_row)
67 (find_first_unchanged_at_end_row, row_containing_pos)
68 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
69 (display_count_lines, x_produce_glyphs, note_mouse_highlight): Use
70 EMACS_INT for buffer and string positions.
71
72 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
73 (row_containing_pos): Adjust prototype.
74
75 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
76 (message2_nolog, set_message): Adjust prototypes.
77
a6f3211f
SM
782010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
79
80 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
81 (Fgnutls_boot): Use SDATA.
82 (Fgnutls_handshake): Remove unused var `max_log_level'.
83
e0720500
MA
842010-09-27 Michael Albinus <michael.albinus@gmx.de>
85
11a5af7c 86 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
87 (Bug#7113)
88
d8a4b27a
J
892010-09-27 Jan Djärv <jan.h.d@swipnet.se>
90
42d3022b
J
91 * xgselect.c (xg_select): Clear file descriptors not set from
92 rfds and wfds.
93
d8a4b27a
J
94 * process.c (wait_reading_process_output): Add missing FD_CLR
95 for write_mask (must mirror connect_wait_mask).
96
8ed70bf3
LMI
972010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
98
99 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
100 prefix.
101 (Fgnutls_boot): Use changed process members. Use log level with a
102 function parameter to set it. Bring back Emacs-level debugging
103 messages at log level 1 and 2.
104
105 * process.c (make_process): Initialize gnutls_log_level.
106
107 * process.h: Add gnutls_log_level and rename x509_cred and
108 anon_cred to have the gnutls_ prefix for consistency.
109
110 * gnutls.h (GNUTLS_LOG): Add convenience macro.
111
bedf4aab
JB
1122010-09-27 Juanma Barranquero <lekktu@gmail.com>
113
114 * w32.c (g_b_init_get_sid_identifier_authority)
115 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
116 Remove, not used.
117 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
118 (init_winsock): Remove useless assignment.
119 (open_process_token, get_token_information, lookup_account_sid)
120 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
121 (get_security_descriptor_owner, get_security_descriptor_group)
122 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
123 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
124 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
125 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
126 (unc_volume_file_attributes, convert_from_time_t)
127 (create_toolhelp32_snapshot, process32_first, process32_next)
128 (open_thread_token, impersonate_self, revert_to_self)
129 (get_process_memory_info, get_process_working_set_size)
130 (global_memory_status, global_memory_status_ex, socket_to_fd)
131 (shutdown_handler): Make static.
132
08609ffd
MA
1332010-09-27 Michael Albinus <michael.albinus@gmx.de>
134
135 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
136 (xd_pending_messages): Functions removed.
137 (xd_read_queued_messages): Add parameters fd, *data, for_read in
138 order to be compatible with add_read_fd. Determine bus from data,
139 and call xd_read_message just for this bus.
140 (xd_add_watch): Use xd_read_queued_messages as callback function.
141 Add data.
142
143 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
144
d2e9d0bb
LMI
1452010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
146
147 * gnutls.c (gnutls_log_function): Added more debugging.
ec9f09be 148 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 149
4be9765d
KH
1502010-09-27 Kenichi Handa <handa@m17n.org>
151
152 These changes are to remove restriction on the number of glyphs in
153 one composition.
154
155 * dispextern.h (struct glyph): Change the member "slice" to union.
156 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
157 (GLYPH_SLICE_EQUAL_P): Adjusted for the above change.
158
159 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
160 instead of glyph->slice.
161 (marginal_area_string): Likewise.
162
163 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
164 glyph->u.cmp.
165 (append_composite_glyph): Likewise.
166
167 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
168 glyph->u.cmp.
169 (fill_gstring_glyph_string, x_get_glyph_overhangs)
170 (append_composite_glyph): Likewise.
171 (fill_image_glyph_string): Use glyph->slice.img instead of
172 glyph->slice.
173 (append_glyph, produce_image_glyph, append_stretch_glyph)
174 (note_mouse_highlight): Likewise.
175
3fad2ad2
J
1762010-09-26 Jan Djärv <jan.h.d@swipnet.se>
177
bf05eed6
J
178 * process.c (add_keyboard_wait_descriptor)
179 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
180 (wait_reading_process_output): Don't pass write_mask to select
181 if SELECT_CANT_DO_WRITE_MASK is defined.
182 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 183
3fad2ad2
J
184 * process.h (add_read_fd, delete_read_fd, add_write_fd)
185 (delete_write_fd): Declare.
186
187 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
188 (write_mask): New variable.
189 (max_input_desc): Renamed from max_keyboard_desc.
190 (fd_callback_info): New variable.
70e31436
JB
191 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
192 New functions.
3fad2ad2
J
193 (Fmake_network_process): FD_SET write_mask.
194 (deactivate_process): FD_CLR write_mask.
195 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
196 check_connect removed. check_write is new. Remove references to gpm.
197 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
198 NON_BLOCKING_CONNECT) instead of Connecting.
199 Loop over file descriptors and call callbacks in fd_callback_info
200 if file descriptor is ready for I/O.
201 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
202 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
203 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
204 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
205 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
206 (init_process): Initialize write_mask and fd_callback_info.
207
208 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
209
210 * dbusbind.c: Include process.h.
211 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
212 (xd_read_message_1): New functions.
70e31436
JB
213 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
214 Handle watch for both read and write.
3fad2ad2
J
215 (Fdbus_init_bus): Also register xd_toggle_watch.
216 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
217 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
218 to dbus_connection_flush.
70e31436 219 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
220 Call xd_read_message_1 until status is COMPLETE.
221
dce4c2ac
DN
2222010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
223
224 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
225 (init_tty): Reorder code to reduce the number of #ifdefs.
226 No code changes.
dce4c2ac 227
8af55556
TZ
2282010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
229
230 * process.h: Set up GnuTLS support.
231
232 * process.c (make_process, Fstart_process)
233 (read_process_output, send_process): Set up GnuTLS support for
234 process input/output file descriptors.
235
236 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
237
238 * gnutls.c: The source code for GnuTLS support in Emacs.
239
240 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
241
242 * config.in: Set up GnuTLS support.
243
244 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
245 (obj, LIBES): Set up GnuTLS support.
246
83e245c4
JB
2472010-09-26 Juanma Barranquero <lekktu@gmail.com>
248
249 * w32.c (get_emacs_configuration_options): Fix previous change.
250
d24ec09a
CY
2512010-09-25 Chong Yidong <cyd@stupidchicken.com>
252
253 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
254 alive before using it (Bug#6977).
255
b7bdc47c
LMI
2562010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
257
a952d5f3
LMI
258 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
259
260 * dispextern.h: EMACS_INT/int fixup.
261
262 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
263 fixup.
264
b7bdc47c
LMI
265 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
266
41118bd3
EZ
2672010-09-25 Eli Zaretskii <eliz@gnu.org>
268
2452438f
EZ
269 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
270 (Fselect_window, window_scroll_pixel_based)
271 (window_scroll_line_based, Frecenter, Fset_window_configuration):
272 Use EMACS_INT for buffer positions.
273
274 * textprop.c (validate_interval_range, interval_of)
275 (property_change_between_p, Fadd_text_properties)
276 (set_text_properties_1, Fremove_text_properties)
277 (Fremove_list_of_text_properties, Ftext_property_any)
278 (Ftext_property_not_all, copy_text_properties)
279 (text_property_list, extend_property_ranges)
280 (verify_interval_modification): Use EMACS_INT for buffer
281 positions.
282
f877c546
EZ
283 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
284 for buffer positions.
285
286 * process.c (read_process_output, send_process)
287 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
288 and string positions and size.
289
da43f021
EZ
290 * print.c (print_object, print_string, strout): Use EMACS_INT for
291 string indices.
292
293 * minibuf.c (string_to_object): Use EMACS_INT for string position
294 and size.
295
296 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
297
298 * lread.c <read_from_string_index, read_from_string_index_byte>
299 <read_from_string_limit, readchar_count>: Define EMACS_INT.
300 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
301 buffer positions and string length.
302
41118bd3
EZ
303 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
304 EMACS_INT.
305 (echo_truncate, adjust_point_for_property, read_char)
306 (gen_help_event, make_lispy_event, modify_event_symbol)
307 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
308 for buffer positions and string length.
309
310 * keyboard.h (gen_help_event): Adjust prototype.
311
312 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
313
314 * commands.h <last_point_position>: Declare EMACS_INT.
315
316 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
317 (truncate_echo_area): Accept EMACS_INT argument.
318
319 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
320
321 * lisp.h (truncate_echo_area): Adjust prototype.
322
323 * composite.c (composition_adjust_point): Return EMACS_INT.
324
325 * composite.h (composition_adjust_point): Adjust prototype.
326
ba3033ee
JB
3272010-09-25 Juanma Barranquero <lekktu@gmail.com>
328
329 * process.c (Fmake_network_process): When arg :host is 'local,
330 use address 127.0.0.1, not name "localhost". (Bug#6781)
331
4f3a2f8d
EZ
3322010-09-24 Eli Zaretskii <eliz@gnu.org>
333
5816888b
EZ
334 * indent.c (Fcurrent_indentation, indented_beyond_p)
335 (compute_motion): Use EMACS_INT for buffer position variables.
336
337 * lisp.h (indented_beyond_p): Adjust prototype.
338
339 * buffer.c (overlay_strings): Return EMACS_INT.
340
341 * buffer.h (overlay_strings): Adjust prototype.
342
343 * region-cache.c (pp_cache): Adjust format to arguments.
344
345 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
346 (call_debugger): Use EMACS_INT for specpdl_size related variables.
347 (verror): Use EMACS_INT for size of allocated buffer.
348
ace1712c
EZ
349 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
350 positions.
351
352 * xdisp.c (redisplay_internal, try_window_id)
353 (set_cursor_from_row, find_first_unchanged_at_end_row): Use
354 EMACS_INT for buffer positions.
355
f5276b75 356 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
357
358 * dispnew.c (increment_matrix_positions)
359 (increment_row_positions, copy_glyph_row_contents)
360 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
361 positions.
362
363 * dispextern.h (mode_line_string, marginal_area_string)
364 (increment_matrix_positions, increment_row_positions): Adjust
365 prototypes.
366
367 * data.c (Faref, Faset): Use EMACS_INT for string length and
368 positions.
369
370 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
371 characters to insert.
372
373 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
374 position and size.
375
4f3a2f8d
EZ
376 * syntax.c (scan_words, update_syntax_table)
377 (prev_char_comend_first, back_comment, skip_chars)
378 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars): Use
379 EMACS_INT for buffer and string positions.
380
381 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
382
383 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
384 positions.
385
db063399
LMI
3862010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
387
f0812d35
LMI
388 * scroll.c (calculate_scrolling, line_ins_del)
389 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
390 conversion.
391
f5c7fc27
LMI
392 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
393 (region_cache_backward, region_cache_forward)
394 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
395 conversion.
396
db063399
LMI
397 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
398
399 * eval.c (verror): Fix EMACS_INT/int conversion.
400
07914cd0 401 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
402 (print_preprocess, print_check_string_charset_prop)
403 (print_object): Fix EMACS_INT/int conversion.
404
405 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
406
e6d4aefa
EZ
4072010-09-24 Eli Zaretskii <eliz@gnu.org>
408
69481da7
EZ
409 * callproc.c (Fcall_process): Use EMACS_INT for count of
410 characters read from the subprocess.
411
61bfec98
EZ
412 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
413 positions.
414 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
415 positions.
416
145582a0
EZ
417 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
418 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
419 length.
420 (advance_to_char_boundary, Fset_buffer_multibyte)
421 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
422 (overlay_touches_p, record_overlay_string, overlay_strings)
423 (recenter_overlay_lists, fix_start_end_in_overlays)
424 (modify_overlay, Fmove_overlay, report_overlay_modification)
425 (evaporate_overlays): Use EMACS_INT for buffer positions.
426
427 * lisp.h (fix_start_end_in_overlays, overlay_touches_p): Adjust
428 prototypes.
429
446470a9
EZ
430 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
431 positions.
432
e6d4aefa
EZ
433 * fns.c (Fcompare_strings, Fstring_lessp, concat)
434 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
435 (Fsubstring_no_properties, substring_both, Ffillarray)
436 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
437 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
438 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
439 (Fmd5): Use EMACS_INT for buffer and string positions and length
440 variables and arguments.
441
442 * lisp.h (substring_both): Adjust prototype.
443
eb652396
JB
4442010-09-24 Juanma Barranquero <lekktu@gmail.com>
445
446 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
447 * w32fns.c (clipboard_sequence_fn): Don't declare.
448 (globals_of_w32fns): Don't initialize it.
449
266a86bd 4502010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
451
452 * syntax.c (back_comment): Detect the case where a 1-char comment
453 starter is also the 2nd char of a 2-char comment ender.
454
266a86bd 4552010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
456
457 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
458
40283062
LMI
4592010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
460
db063399
LMI
461 * eval.c (verror): EMACS_INT/int cleanup.
462
faf8b5bc
LMI
463 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
464 unwind_protect more than 2GB worth of functions.
465
466 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
467
40283062
LMI
468 * lisp.h: Have oblookup take EMACS_INT to allow interning big
469 string and avoid compiler warnings.
470 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
471 all users.
472
473 * lread.c (oblookup): EMACS_INT/int cleanup.
474
475 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
476
fe3537c3
EZ
4772010-09-23 Eli Zaretskii <eliz@gnu.org>
478
479 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
480
481 * lisp.h (clip_to_bounds): Adjust prototype.
482
483 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
484
0350982f
LMI
4852010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
486
84c9ce05
LMI
487 * lisp.h: doprnt.c EMACS_INT/int cleanup.
488
489 * doprnt.c (doprnt): EMACS_INT/int cleanup.
490
491 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
492 cleanup.
493
0350982f
LMI
494 * lisp.h: Change the definition of all marker.c functions that
495 take and return buffer stuff to be EMACS_INT instead of int.
496
497 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
498 (buf_charpos_to_bytepos, bytepos_to_charpos)
499 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
500 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
501 for all buffer positions.
502
c50bd0d2
CY
5032010-09-23 Chong Yidong <cyd@stupidchicken.com>
504
505 * intervals.c (traverse_intervals, rotate_right, rotate_left)
506 (split_interval_right, find_interval, next_interval)
507 (delete_node, delete_interval, interval_deletion_adjustment)
508 (adjust_intervals_for_deletion, merge_interval_right)
509 (merge_interval_left, graft_intervals_into_buffer)
510 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
511
512 * intervals.h (traverse_intervals): Update prototype.
513
14162469
EZ
5142010-09-23 Eli Zaretskii <eliz@gnu.org>
515
c098fdb8
EZ
516 * indent.c (compute_motion): Use EMACS_INT for arguments to
517 region_cache_forward.
518
519 * region-cache.c (struct boundary, struct region_cache): Use
520 EMACS_INT for positions.
521 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
522 (delete_cache_boundaries, set_cache_region)
523 (invalidate_region_cache, know_region_cache)
524 (region_cache_forward, region_cache_backward, pp_cache): Use
525 EMACS_INT for buffer positions.
526
527 * region-cache.h (know_region_cache, invalidate_region_cache)
528 (region_cache_forward, region_cache_backward): Adjust prototypes.
529
530 * search.c (string_match_1, fast_c_string_match_ignore_case)
531 (looking_at_1, scan_buffer, scan_newline)
532 (find_next_newline_no_quit, find_before_next_newline)
533 (search_command, trivial_regexp_p, search_buffer, simple_search)
534 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
535 and string positions and length.
536
caefdbe7
EZ
537 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
538 (find_before_next_newline): Adjust prototypes.
c098fdb8 539
29cdc13e
EZ
540 * editfns.c (transpose_markers, update_buffer_properties)
541 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
542 (get_pos_property, Fconstrain_to_field)
543 (Fline_beginning_position, Fline_end_position, Fprevious_char)
544 (Fchar_after, Fchar_before, Finsert_char)
545 (Finsert_buffer_substring, Fcompare_buffer_substrings)
546 (Fsubst_char_in_region, Fformat, Ftranspose_regions): Use
547 EMACS_INT for buffer and string position variables.
c098fdb8 548 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
549
550 * lisp.h (clip_to_bounds): Adjust prototype.
551
e79123aa
EZ
552 * intervals.c (traverse_intervals, rotate_right, rotate_left)
553 (balance_an_interval, split_interval_right, split_interval_left)
554 (find_interval, next_interval, update_interval)
555 (adjust_intervals_for_insertion, delete_node, delete_interval)
556 (interval_deletion_adjustment, adjust_intervals_for_deletion)
557 (offset_intervals, merge_interval_right, merge_interval_left)
558 (graft_intervals_into_buffer, adjust_for_invis_intang)
559 (move_if_not_intangible, get_local_map, copy_intervals)
560 (copy_intervals_to_string, compare_string_intervals)
561 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 562 and for interval tree size.
e79123aa
EZ
563
564 * intervals.h (traverse_intervals, split_interval_right)
565 (split_interval_left, find_interval, offset_intervals)
566 (graft_intervals_into_buffer, copy_intervals)
567 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
568 (update_interval): Adjust prototypes.
569
579c18d0
EZ
570 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
571 Use EMACS_INT for buffer position variables and arguments.
572
573 * composite.c (get_composition_id, find_composition)
574 (run_composition_function, compose_text)
575 (composition_gstring_width, autocmp_chars)
576 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
577 for buffer positions and string length variables and arguments.
578
579 * composite.h (get_composition_id, find_composition, compose_text)
580 (composition_gstring_width): Adjust prototypes.
581
582 * editfns.c (Fformat): Use EMACS_INT for string size variables.
583
584 * xdisp.c (store_mode_line_noprop, display_mode_element): Use
585 EMACS_INT for string positions.
586
587 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
588 position arguments.
589
590 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
591
592 * character.c (parse_str_as_multibyte, str_as_multibyte)
593 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0
EZ
594 (string_count_byte8, string_escape_byte8, c_string_width)
595 (strwidth, lisp_string_width, multibyte_chars_in_text): Use
596 EMACS_INT for string length variables and arguments.
14162469
EZ
597
598 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0
EZ
599 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
600 (c_string_width, strwidth, lisp_string_width): Adjust
14162469
EZ
601 prototypes.
602
579c18d0
EZ
603 * font.c (font_intern_prop): Use EMACS_INT for string length
604 variables.
605
606 * font.c (font_intern_prop): Use EMACS_INT for string length
607 variables.
608
14162469
EZ
609 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
610 variables.
611
612 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
613 (Fmake_string): Protect against too large strings.
614 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
615 (live_misc_p): Use ptrdiff_t instead of int for pointer
616 differences.
617 (string_bytes, check_sblock, check_string_free_list)
618 (allocate_string_data, compact_small_strings, Fmake_string)
619 (Fmake_bool_vector, make_string, make_unibyte_string)
620 (make_multibyte_string, make_string_from_bytes)
621 (make_specified_string_string, Fmake_list, Fmake_vector): Use
622 EMACS_INT for string length variables and arguments.
623 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
624 (Fpurecopy): Use EMACS_INT for string size.
625 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
626 for vector size.
627
628 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
629 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
630 (make_pure_string, string_bytes, check_point_in_composition):
631 Adjust prototypes.
14162469 632
c8a66ab8
EZ
6332010-09-22 Eli Zaretskii <eliz@gnu.org>
634
635 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
636 (check_translation): Use EMACS_INT for buffer positions and
637 length.
638
639 * undo.c (record_marker_adjustment, record_delete)
640 (record_change, record_point, record_insert)
641 (record_property_change, Fprimitive_undo): Use EMACS_INT for
642 buffer positions.
643
644 * lisp.h (record_marker_adjustment, record_delete)
645 (record_change, record_point, record_insert)
646 (record_property_change, Fprimitive_undo): Adjust prototypes.
647
38c54d9d
JB
6482010-09-22 Juanma Barranquero <lekktu@gmail.com>
649 Eli Zaretskii <eliz@gnu.org>
650
651 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
652
413d18e7
EZ
6532010-09-22 Eli Zaretskii <eliz@gnu.org>
654
655 * minibuf.c (Fminibuffer_contents)
656 (Fminibuffer_contents_no_properties)
657 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
658 positions.
659
660 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
661 mark.
662
663 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
664 (allocate_string_data): Accept EMACS_INT for string length.
665
666 * editfns.c (Ffield_string, Ffield_string_no_properties)
667 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
668 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
669 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
670 (Ffield_end): Use EMACS_INT for buffer positions.
671
672 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
673 point with mark.
674
675 * lisp.h (allocate_string_data, make_uninit_string)
676 (make_uninit_multibyte_string, make_buffer_string)
677 (make_buffer_string_both): Adjust prototypes.
678
4b9832a6
CY
6792010-09-22 Chong Yidong <cyd@stupidchicken.com>
680
681 * xml.c: Switch to GNU indentation.
682 (make_dom): Change parse tree format to match xml.el.
683 (Fxml_parse_html_string_internal): Rename from html-parse-string.
684 (Fxml_parse_string_internal): Rename from xml-parse-string.
685
86282aab
KH
6862010-09-22 Kenichi Handa <handa@m17n.org>
687
688 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
689 only if we are not at a composition.
690 (set_iterator_to_next): Give it->end_charpos to
691 composition_compute_stop_pos.
692 (set_iterator_to_next, next_element_from_buffer): Likewise.
693
694 * dispnew.c (buffer_posn_from_coords): Fix position when the
695 current display element is a grapheme cluster in bidi-reordered
696 region.
697
840b985a
AR
6982010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
699
700 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
701 the regions may overlap.
702
5bc88f4b
JB
7032010-09-21 Juanma Barranquero <lekktu@gmail.com>
704
705 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
706
92bc9a36
DN
7072010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
708
d19e096e
DN
709 * emacs.c: Do not include sys/ioctl.h, not needed.
710
92bc9a36
DN
711 * doprnt.c: Do not include stdlib.h, config.h does it.
712 Move #include before macro definition.
713
15f844ac
DN
7142010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
715
48e24408
DN
716 * Makefile.in (temacs): Link using $(CC) not $(LD).
717 (LD_FIRSTFLAG): Define using autoconf.
718 (LD): Remove.
719
65539506
DN
720 Remove HAVE_TERMIOS definitions.
721 * s/usg5-4-common.h (HAVE_TERMIOS):
722 * s/template.h (HAVE_TERMIOS):
723 * s/gnu-linux.h (HAVE_TERMIOS):
724 * s/darwin.h (HAVE_TERMIOS):
725 * s/cygwin.h (HAVE_TERMIOS):
726 * s/bsd-common.h (HAVE_TERMIOS):
727 * s/aix4-2.h (HAVE_TERMIOS):
728 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
729 defined on all non-MS platforms.
730 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
731
15f844ac
DN
732 * xterm.c (xt_action_hook): Use const.
733
7d701334
JB
7342010-09-20 Juanma Barranquero <lekktu@gmail.com>
735
736 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
737 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
738 (gethostname) [!HAVE_SOCKETS]: Remove.
739 (SOCK_REPLACE_HANDLE): Remove macro.
740 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
741 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
742 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
743 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
744
f3ec267a
EZ
7452010-09-18 Eli Zaretskii <eliz@gnu.org>
746
747 * deps.mk (xml.o): Add dependencies.
748
93acd23d
JB
749 * xdisp.c (Fcurrent_bidi_paragraph_direction):
750 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
751
752 * bidi.c (bidi_paragraph_init): Accept an additional argument
753 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
754 search back until a paragraph with a strong directional character
755 is found, and use that to determine paragraph's base direction.
756
757 * dispextern.h (bidi_paragraph_init): Update prototype.
758
69e847be
EZ
7592010-09-17 Eli Zaretskii <eliz@gnu.org>
760
761 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
762 of w32api >= 3.15. (Bug#6989)
763
283357a7
LMI
7642010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
765
766 * process.c (wait_reading_process_output): Don't message about
767 accept-process-output unless the time limit really is zero.
768
4ddb20d6
SM
7692010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
770
771 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
772 int/Lisp_Object mixup).
773
e24ad6dd
J
7742010-09-17 Jan Djärv <jan.h.d@swipnet.se>
775
776 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
777 not HELP.
778
fb0cf781
J
7792010-09-17 Stephen Berman <stephen.berman@gmx.net>
780
781 * frame.c (Ftool_bar_pixel_width): New function to expose tool
782 bar's pixel width to Lisp (Bug#7048).
783
4ddb20d6
SM
7842010-09-14 Juanma Barranquero <lekktu@gmail.com>
785
786 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 787
318a04c6
J
7882010-09-17 Jan Djärv <jan.h.d@swipnet.se>
789
790 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
791 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
792
78a21772
KH
7932010-09-17 Kenichi Handa <handa@m17n.org>
794
795 * ftfont.c (ftfont_check_otf): Fix previous change.
796
fa3f6039
KH
7972010-09-14 Kenichi Handa <handa@m17n.org>
798
799 * ftfont.c (ftfont_check_otf): Fix the case of checking just
800 existence of GSUB or GPOS.
801
2b5491fa
JB
8022010-09-14 Juanma Barranquero <lekktu@gmail.com>
803
804 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
805
c97c655f
LMI
8062010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
807
2b5491fa 808 * xml.c (parse_buffer): Renamed to parse_string(), since that's
c97c655f
LMI
809 what it does.
810 (parse_string): Return nil when the document can't be parsed.
811
6664fc59 8122010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
813
814 * xterm.c (get_current_vm_state): New function.
815 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
816 want_fullscreen so set_wm_state calls are few (Bug#7013).
817 (x_handle_net_wm_state): Move code to get_current_vm_state and
818 call that function.
819
6664fc59 8202010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
821
822 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
823
6664fc59 8242010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
825
826 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
827 we may use designation or locking-shift.
828
6664fc59 8292010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
830
831 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
832 sequence when the source is multibyte.
833
1da70e99
AS
8342010-09-14 Andreas Schwab <schwab@linux-m68k.org>
835
6664fc59
JB
836 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
837 Don't make first argument optional. Doc fix.
1da70e99 838
26632d8d
LMI
8392010-09-14 Leo <sdl.web@gmail.com> (tiny change)
840
841 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
842 parameters for the doc string.
843
21fa8e37
LMI
8442010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
845
846 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
847
5616cc54
SM
8482010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
849
850 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
851 (syms_of_fns): Don't defsubr Sy_or_n_p.
852 * lisp.h: Don't declare Fy_or_n_p.
853 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
854
381408e2
LMI
8552010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
856
857 * xml.c (Fxml_parse_buffer): New function to parse XML files.
858
8592010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
860
861 * xml.c: New file.
862 (Fhtml_parse_buffer): New function to interface to the libxml2
863 html parsing function.
864
733946e7
JB
8652010-09-05 Juanma Barranquero <lekktu@gmail.com>
866
867 * biditype.h: Regenerate.
868
7574650a
AS
8692010-09-04 Andreas Schwab <schwab@linux-m68k.org>
870
871 * nsimage.m (ns_load_image): Check argument types.
872
873 * image.c: Remove all uses of gcpro.
874 (xpm_load): Check all lisp types.
875 (pbm_load): Likewise.
876 (png_load): Likewise.
877 (jpeg_load): Likewise.
878 (tiff_load): Likewise.
879 (gif_load): Likewise.
880 (imagemagick_load_image): Likewise.
881 (imagemagick_load): Likewise.
882 (svg_load): Likewise.
883 (gs_load): Likewise.
884
6e6b8e25
EZ
8852010-09-04 Eli Zaretskii <eliz@gnu.org>
886
887 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't
888 try to reorder grapheme clusters, since LGSTRING should always
889 hold them in the logical order.
890 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
891 return glyph codes in the logical order.
892
dbfe4532
AS
8932010-09-04 Andreas Schwab <schwab@linux-m68k.org>
894
895 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 896 (imagemagick_load_image): Fix type mismatch.
5e5992c2 897 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 898
6d7cc563
JD
8992010-09-02 Jan Djärv <jan.h.d@swipnet.se>
900
901 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
902
903 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
904
905 * xselect.c: Remove declaration of cut-buffer objects and functions.
906 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
907 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
908 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
909 (Fx_rotate_cut_buffers_internal): Remove.
910 (syms_of_xselect): Remove defsubr of above.
911 Remove intern of QCUT_BUFFERn.
912
8f4e9110
SM
9132010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
914
915 * cmds.c (Vblink_paren_function): Remove.
916 (internal_self_insert): Make it insert N chars at a time.
917 Don't call blink-paren-function.
918 (Fself_insert_command): Adjust accordingly.
919 (syms_of_cmds): Don't declare blink-paren-function.
920
d419e1d9
KH
9212010-08-31 Kenichi Handa <handa@m17n.org>
922
923 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
924 characters.
925
926 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
927 (produce_glyphs): Don't set it->char_to_display here.
928 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
929 (produce_special_glyphs): Set temp_it.char_to_display before
930 calling produce_glyphs.
931
932 * xdisp.c (get_next_display_element): Set it->char_to_display
933 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
934 characters.
935 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
936 calling PRODUCE_GLYPHS.
937 (append_space_for_newline): Save and store it->char_to_display.
938 Set it->char_to_display before calling PRODUCE_GLYPHS.
939 (extend_face_to_end_of_line): Set it->char_to_display before
940 calling PRODUCE_GLYPHS.
941 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
942 character to its byte value.
943 (get_char_glyph_code): New function.
944 (produce_stretch_glyph): Set it2.char_to_display too before
945 calling x_produce_glyphs.
946 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
947 non-ASCII characters. Don't set it->char_to_display here.
948 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 949 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 950
b819f760
SM
9512010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
952
953 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
954
07fa68a7
CY
9552010-08-31 Chong Yidong <cyd@stupidchicken.com>
956
957 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
958
cd196f12
SM
9592010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
960
961 * marker.c (Fcopy_marker): Make the first arg optional.
962
49a752bb
KH
9632010-08-30 Kenichi Handa <handa@m17n.org>
964
965 * composite.c (composition_update_it): Fix computing of
966 cmp_it->width.
967
769ae9e1
KH
9682010-08-29 Kenichi Handa <handa@m17n.org>
969
9e69cb05 970 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 971 corresponding bytes.
9e69cb05 972
4520b858
J
9732010-08-29 Jan Djärv <jan.h.d@swipnet.se>
974
975 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
976
fe50eb41
KH
9772010-08-26 Kenichi Handa <handa@m17n.org>
978
979 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
980 on calling composition_compute_stop_pos.
981
f6aa6ec6
KH
9822010-08-25 Kenichi Handa <handa@m17n.org>
983
9dfdbc0a
KH
984 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
985 :otf.
986
f6aa6ec6
KH
987 * composite.c (composition_compute_stop_pos): Don't break
988 composition at PT.
989 (composition_reseat_it): Likewise. Fix calculation of character
990 position starting a composition.
991 (Fcomposition_get_gstring): Don't limit the number of components
992 for automatic composition.
993
ff94e32c
KH
9942010-08-25 Kenichi Handa <handa@m17n.org>
995
996 * composite.c (composition_compute_stop_pos): In forward search,
997 pay attention to the possibility that some character after ENDPOS
998 will be composed with charactrs before ENDPOS.
999
1c409d0b
CY
10002010-08-24 Chong Yidong <cyd@stupidchicken.com>
1001
1002 * keyboard.c (command_loop_1): Don't clobber primary selection
1003 during handle-switch-frame (Bug#6872).
1004
0c372655
MA
10052010-08-23 Michael Albinus <michael.albinus@gmx.de>
1006
1007 * dbusbind.c: Accept UNIX domain sockets as bus address.
1008 (Fdbus_close_bus): New function.
1009 (Vdbus_registered_buses): New variable.
1010 (xd_initialize): Implement string as bus address.
1011 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
1012 (Fdbus_get_unique_name, Fdbus_call_method)
1013 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1014 (Fdbus_method_error_internal, Fdbus_send_signal)
1015 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
1016 check. This is done in xd_initialize_bus. Adapt doc string, if
1017 necessary.
1018 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
1019 Vdbus_registered_buses.
1020 (Vdbus_registered_objects_table): Create hash.
1021
7133b7ee
JL
10222010-08-22 Juri Linkov <juri@jurta.org>
1023
1024 * keyboard.c (Fexecute_extended_command): Move reading a command name
1025 with `completing-read' to a new Elisp function `read-extended-command'.
1026 Call it to read a command to `function' (bug#5364, bug#5214).
1027
198a7a97
CY
10282010-08-22 Chong Yidong <cyd@stupidchicken.com>
1029
1030 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
1031
b0126eac 10322010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
1033
1034 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
1035 instead of SAFE_ALLOCA.
1036
b0126eac 10372010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
1038
1039 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
1040 (Bug#6214).
1041
b0126eac 10422010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
1043
1044 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
1045
b0126eac
CY
10462010-08-22 Jan Djärv <jan.h.d@swipnet.se>
1047
1048 * doc.c (Fsnarf_documentation): Initialize skip_file before
1049 build-files test.
1050
692f3ddc 10512010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 1052
692f3ddc
JB
1053 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
1054 New definitions.
b0126eac
CY
1055 (HAVE_TERMIO): Remove.
1056
5f2f0bc1
EZ
10572010-08-22 Eli Zaretskii <eliz@gnu.org>
1058
b613941b
EZ
1059 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
1060
a583bbef
EZ
1061 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
1062 for w32.
1063
1064 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
1065 it's done in nt/config.nt.
1066
1067 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
1068
5f2f0bc1
EZ
1069 * unexcoff.c (report_error, make_hdr, write_segment)
1070 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
1071 Convert argument lists and prototypes to ANSI C.
1072 (make_hdr, write_segment): Remove unused variables.
1073 (unexec): Remove commented-out line. Initialize `new' to shut up
1074 compiler warnings.
1075
a7ebc409
DN
10762010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
1077
1078 Simplify termio code.
1079 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
1080 HAVE_TERMIO code is obsolete.
1081 Replace HAVE_TERMIOS conditionals with !DOS_NT.
1082 * systty.h: Do not define HAVE_TCATTR.
1083 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
1084 Do not define EMACS_HAVE_TTY_PGRP. Only define
1085 EMACS_GET_TTY_PGRP for !DOS_NT.
1086 * sysdep.c: Include sysselect.h unconditionally. Do not include
1087 sys/ioctl.h and termios.h, systty.h does it. Use
1088 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
1089 (init_baud_rate): Remove HAVE_TERMIO code.
1090 (child_setup_tty): Remove HAVE_TERMIO code.
1091 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
1092 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
1093 (new_ltchars, new_tchars): Remove, unused.
1094 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
1095 code. Remove special casing for __mips__, it was a no-op. Remove
1096 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
1097 (init_sys_modes): Remove HPUX special case.
1098 * process.c: Include stdlib.h unconditionally. Do not include
1099 fcntl.h, systty.h does it. Remove conditional code for
1100 HAVE_SERIAL, it is always true.
1101 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
1102 always true when SIGNALS_VIA_CHARACTERS is true.
1103 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
1104 !WINDOWSNT means HAVE_TERMIOS.
1105 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
1106 conditional, which is true for all HAVE_TERMIOS systems.
1107 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
1108 instead of HAVE_TERMIOS.
1109 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
1110 EMACS_HAVE_TTY_PGRP.
1111 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
1112 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
1113 anyway.
1114
40629f17
EZ
11152010-08-21 Eli Zaretskii <eliz@gnu.org>
1116
1117 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
1118 mirroring pixel positions.
1119
d931da8c
DN
11202010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
1121
b5c76d0c
DN
1122 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
1123 write only.
1124 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
1125 malloc_sbrk_used, nothing uses them.
1126
74815588
DN
1127 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
1128 defined, unconditionally defined in lisp.h.
1129
f5817d1c
DN
1130 * term.c: Do not include <termios.h>, systty.h does it.
1131
d931da8c
DN
1132 * s/unixware.h (HAVE_TCATTR):
1133 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
1134 systty.h defines it when HAVE_TERMIOS is defined.
1135
ff2de6d2 11362010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 1137
b43c883c 1138 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 1139 terminals: add one-character offset for R2L lines.
b43c883c 1140
491a1546
EZ
1141 * emacs.c <emacs_version>: Add a comment regarding
1142 msdos/mainmake.v2's dependency on the syntax of this declaration.
1143
2396cbba
EZ
11442010-08-20 Eli Zaretskii <eliz@gnu.org>
1145
1146 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
1147 position for R2L lines by mirroring the pixel position wrt the
1148 text are box. Improve commentary.
1149
7df6150a
AS
11502010-08-20 Andreas Schwab <schwab@linux-m68k.org>
1151
1152 * image.c (imagemagick_clear_image): Remove debugging output.
1153
a2e5caf7
SM
11542010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1155
1156 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
1157 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
1158 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
1159 self-insert-face.
1160 (syms_of_cmds): Initialize the new vars.
1161
20d60baf
JR
11622010-08-19 Jason Rumney <jasonr@gnu.org>
1163
cc477da7
JR
1164 * w32menu.c (set_frame_menubar): Remove call to undefined function.
1165
20d60baf
JR
1166 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
1167
2c0ac867
J
11682010-08-19 Jan Djärv <jan.h.d@swipnet.se>
1169
1170 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
1171
93352106
EZ
11722010-08-18 Eli Zaretskii <eliz@gnu.org>
1173
1174 * xterm.c (x_draw_bar_cursor):
1175 * w32term.c (x_draw_bar_cursor): If the character under cursor is
1176 R2L, draw the bar cursor on its right rather than on its left.
1177
c785836d
SM
11782010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
1179
0193499f
SM
1180 * eval.c (Fdefmacro): Only obey one declaration.
1181
c785836d
SM
1182 * casefiddle.c (casify_region): Setup gl_state.
1183
9cb728a5
J
11842010-08-18 Jan Djärv <jan.h.d@swipnet.se>
1185
1186 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
1187
e1e18511
J
11882010-08-18 Jan Djärv <jan.h.d@swipnet.se>
1189
1d77b63e 1190 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 1191
64cb6c78
J
11922010-08-18 David De La Harpe Golden <david@harpegolden.net>
1193
1194 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
1195 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
1196 QPRIMARY => NXPrimaryPboard.
1197 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
1198 NXPrimaryPboard => QPRIMARY.
1199 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
1200 NXSecondaryPboard = SecondarySelection.
1201 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
1202
0c9b8993
GM
12032010-08-18 Joakim Verona <joakim@verona.se>
1204
1205 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
1206 defined:
1207 (imagemagick_image_p): New function to test for ImageMagic image.
1208 (imagemagick_load): New function to load ImageMagick image.
1209 (imagemagick_load_image): New function, helper for imagemagick_load.
1210 (imagemagick-types): New function.
1211 (Qimagemagick): New Lisp_object.
1212 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 1213
c3554f68
SM
12142010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
1215
1216 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
1217 is a string.
1218
1ff2e434
J
12192010-08-17 Jan Djärv <jan.h.d@swipnet.se>
1220
1221 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
1222 x_set_tool_bar_position handler.
1223
0cc56427
EZ
12242010-08-17 Eli Zaretskii <eliz@gnu.org>
1225
1226 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
1227 x_set_tool_bar_position handler, needed to support changes from
1228 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
1229
e45a249b
JD
12302010-08-16 Jan Djärv <jan.h.d@swipnet.se>
1231
921242c6
J
1232 * nsselect.m: include keyboard.h for QPRIMARY, remove its
1233 declaration (Bug#6863).
573d150b 1234 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 1235
e45a249b
JD
1236 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
1237
1238 * keyboard.h (QPRIMARY): Declare (Bug#6864).
1239
7c23dd44
CY
12402010-08-16 Chong Yidong <cyd@stupidchicken.com>
1241
1242 * keyboard.c (command_loop_1): Avoid setting selection twice,
1243 since it's done in deactivate-mark as well.
1244 (Vselect_active_regions): Change default to t. Replace `lazy'
1245 with non-default value `only', meaning only set PRIMARY for
1246 temporarily active regions.
1247
1248 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
1249 select-active-regions.
1250
0005830c
J
12512010-08-15 Jan Djärv <jan.h.d@swipnet.se>
1252
1253 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
1254 isn't a string.
1255
603dfc72
AS
12562010-08-15 Andreas Schwab <schwab@linux-m68k.org>
1257
1258 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
1259
c25ce9d0
J
12602010-08-15 Jan Djärv <jan.h.d@swipnet.se>
1261
c3554f68
SM
1262 * keyboard.c (parse_tool_bar_item): malloc buf.
1263 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
1264 new_lbl (Bug#6855).
c25ce9d0 1265
5872c762
EZ
12662010-08-14 Eli Zaretskii <eliz@gnu.org>
1267
b236615c
EZ
1268 * xterm.c (x_draw_stretch_glyph_string):
1269 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
1270 the cursor on the right edge of the stretch glyph.
1271
c3554f68
SM
1272 * xdisp.c (window_box_right_offset, window_box_right):
1273 Fix commentary.
b236615c 1274
5872c762
EZ
1275 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
1276 direction when point is inside a run of whitespace characters.
1277
1278 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
1279
e66f9a1b
JR
12802010-08-14 Jason Rumney <jasonr@gnu.org>
1281
1282 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
1283
79d6f59e
CY
12842010-08-14 Chong Yidong <cyd@stupidchicken.com>
1285
1286 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
1287
1c9b4129
JR
12882010-08-13 Jason Rumney <jasonr@gnu.org>
1289
1290 * w32menu.c (simple_dialog_show): Use unicode message box if available.
1291 (MessageBoxW_Proc): New function typedef.
1292 (unicode-message-box): New function pointer.
1293 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
1294
2b4e6277
J
12952010-08-13 Jan Djärv <jan.h.d@swipnet.se>
1296
1297 * frame.h (Qtool_bar_position): Declare.
1298
1299 * xfns.c (Fx_create_frame): Call x_default_parameter for
1300 Qtool_bar_position.
1301
94c97d85
EZ
13022010-08-13 Eli Zaretskii <eliz@gnu.org>
1303
8ee81892
EZ
1304 * unexcoff.c: Remove the parts used when "emacs" is not defined.
1305 (report_error, report_error_1): Ditto.
1306 (write_segment): Remove "#if 0" unused code.
1307 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
1308 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
1309 (start_of_text): Remove unused function (was used only if NO_REMAP
1310 was NOT defined).
1311
891ef8f7
EZ
1312 * msdos.c (IT_set_face): Fix format string to match argument
1313 types.
1314 (IT_write_glyphs, IT_note_mode_line_highlight)
1315 (IT_set_frame_parameters): Remove unused variables.
1316 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
1317 (IT_set_terminal_modes): Disambiguate expression in if clause.
1318 (Fmsdos_remember_default_colors): Return Qnil.
1319 (IT_set_frame_parameters): Add parens to disambiguate boolean
1320 expression for logging the cursor type to termscript.
1321 (keyboard_layout_list, keypad_translate_map)
1322 (grey_key_translate_map): Add braces in inner initializers.
1323 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
1324 (dos_rawgetc): Remove unused label.
1325 (XMenuActivate): Add braces to remove ambiguous `else'.
1326 (dos_ttraw): Always return a value.
1327 (spawnve): Declare.
1328 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
1329
1330 * dosfns.h (x_set_title): Declare.
1331
1332 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
1333 Remove unused variables.
1334
1335 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
1336 variables.
1337 (init_dosfns): Declare get_lim_data.
1338 (system_process_attributes): Declare Fget_internal_run_time.
1339
38e41e0e
EZ
1340 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
1341 list to be consistent with menu.h.
1342
94c97d85
EZ
1343 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
1344 warnings due to mixing of "char *" and "const char *".
1345
c5683ceb
SM
13462010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1347
1348 Introduce a new comment style "c" flag.
1349 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
1350 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
1351 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
1352 (syntax_prefix_flag_p): New function.
1353 (Fstring_to_syntax): Understand new "c" flag.
1354 (Finternal_describe_syntax_value): Recognize new flag; use the
1355 SYNTAX_FLAGS_* macros.
1356 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
1357 comment style to accomodate the new styles.
1358 (back_comment, forw_comment, Fforward_comment, scan_lists)
1359 (scan_sexps_forward): Update code to obey the new comment style flag.
1360
1361 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
1362
1363 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
1364
7aee76f4
J
13652010-08-11 Jan Djärv <jan.h.d@swipnet.se>
1366
3a46642b
J
1367 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
1368 first.
94dff98f 1369 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
1370
1371 * gtkutil.h (xg_check_special_colors): Declare.
1372
1373 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
1374 (xg_create_frame_widgets): Connect theme name changes to
1375 style_changed_cb.
1376
42ca4633
J
1377 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
1378 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
1379 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 1380 string literal. file is const char*.
42ca4633
J
1381
1382 * xsmfns.c (NOSPLASH_OPT): Change to char[].
1383 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
1384 props. Free them at the end.
1385
1386 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
1387
c5683ceb
SM
1388 * xrdb.c (get_system_app): Make path const and use char *p for
1389 non-const char.
42ca4633
J
1390
1391 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 1392 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
1393 char *.
1394 (button_names): Is const char *.
1395 (xdialog_show): error_name and pane_string is const.
1396
1397 * process.h (synch_process_death): Is const char*.
1398
1399 * w32menu.c (w32_menu_show):
1400 * nsmenu.m (ns_menu_show): error parameter is const char **.
1401
1402 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
1403 is const char **.
1404
1405 * menu.c (Fx_popup_menu): error_name is const.
1406
1407 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
1408 with unsigned char and XtPointer with void *.
1409
1410 * gtkutil.h: Replace widget_value with struct _widget_value.
1411 (enum button_type, struct _widget_value): Remove and use the one from
1412 keyboard.h.
1413
1414 * gtkutil.c (get_utf8_string): Always return an allocated string.
1415 Parameter is const.
1416 (create_dialog, xg_create_one_menuitem, create_menus)
1417 (xg_item_label_same_p, xg_update_menu_item): Free result from
1418 get_utf8_string.
1419 (xg_separator_p, xg_item_label_same_p): label is const.
1420
1421 * font.h (font_open_by_name): Make name const.
1422
1423 * font.c (font_open_by_name): Make name const.
1424
1425 * floatfns.c (matherr): Use a const char* variable for x->name.
1426
1427 * emacs.c (main): Pass char[] to putenv instead of literal.
1428
1429 * callproc.c (synch_process_death): Make const.
1430 (Fcall_process): Make signame const.
1431
9c5bd55a
J
1432 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
1433 (addDisplayItemWithImage): Use const char*.
1434
1435 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
1436 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
1437
1438 * nsfont.m (ns_descriptor_to_entity): Use const char*.
1439
1440 * keyboard.h (_widget_value): name, value and key are const char*.
1441
7aee76f4
J
1442 * unexmacosx.c (unexec_error): Use const char *.
1443
09d93395
DN
14442010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
1445
1446 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 1447 (font_parse_name, font_open_by_name):
09d93395 1448 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 1449 (font_parse_name, font_open_by_name): Remove const.
09d93395 1450
671d409f
AS
14512010-08-09 Andreas Schwab <schwab@linux-m68k.org>
1452
1453 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
1454 definition.
1455
1456 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
1457 * m/amdx86-64.h: Likewise.
1458 * m/arm.h: Likewise.
1459 * m/hp800.h: Likewise.
1460 * m/ia64.h: Likewise.
1461 * m/ibmrs6000.h: Likewise.
1462 * m/ibms390.h: Likewise.
1463 * m/intel386.h: Likewise.
1464 * m/iris4d.h: Likewise.
1465 * m/m68k.h: Likewise.
1466 * m/macppc.h: Likewise.
1467 * m/mips.h: Likewise.
1468 * m/sh3.h: Likewise.
1469 * m/sparc.h: Likewise.
1470 * m/template.h: Likewise.
1471 * m/vax.h: Likewise.
1472 * m/xtensa.h: Likewise.
1473 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
1474 WORDS_BIG_ENDIAN.
1475 * lisp.h: Likewise.
1476 * md5.c: Likewise.
1477 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
1478
8ea90aa3
DN
14792010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
1480
1481 Use const char* instead of char*.
1482 Reduce the number of warnings with -Wwrite-strings.
1483 * xrdb.c (get_environ_db, get_system_name):
1484 * unexelf.c (find_section):
1485 * term.c (string_cost, string_cost_one_line, per_line_cost)
1486 (get_named_tty, init_tty):
1487 * sysdep.c (sys_subshell):
1488 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
1489 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
1490 * search.c (Freplace_match):
1491 * process.c (Fmake_network_process, send_process, init_process):
1492 * lread.c (Fload, init_lread):
1493 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
1494 * keyboard.c (parse_tool_bar_item, struct event_head):
1495 * gtkutil.h (xg_get_font_name):
1496 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
1497 (make_widget_for_menu_item, make_menu_item, create_menus)
1498 (xg_make_tool_item):
1499 * font.c (parse_matrix, font_parse_name):
1500 * floatfns.c (rounding_driver, float_error_fn_name):
1501 * filelock.c (get_boot_time_1, lock_file_1):
1502 * fileio.c (barf_or_query_if_file_exists, check_writable):
1503 * editfns.c (get_system_name, get_operating_system_release)
1504 (Fencode_time, Fset_time_zone_rule):
1505 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
1506 * buffer.c (defvar_per_buffer): Use const.
1507
7815fe19 15082010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 1509
692f3ddc 1510 * charset.c: Include <stdlib.h>.
7a84eee5
KH
1511 (struct charset_sort_data): New struct.
1512 (charset_compare): New function.
692f3ddc 1513 (Fsort_charsets): New function.
7a84eee5
KH
1514 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
1515
1516 * coding.c (decode_coding_iso_2022): Fix checking of dimension
1517 number in CTEXT extended segment.
1518
7815fe19 15192010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
1520
1521 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
1522 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
1523
7815fe19 15242010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
1525
1526 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
1527 (Fhash_table_size): Fix typos in docstrings.
1528 (Fmake_hash_table): Doc fix.
1529
7815fe19 15302010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
1531
1532 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
1533 Doc fix (bug#5625).
1534
7815fe19 15352010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
1536
1537 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
1538 the MSDOS definition.
1539
1b6d8cf0
DN
15402010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
1541
675e2c69
DN
1542 Use const char* instead of char*.
1543 * xterm.c (x_create_toolkit_scroll_bar):
1544 * xfont.c (xfont_list_pattern):
1545 * xfns.c (x_default_scroll_bar_color_parameter)
1546 (xic_create_fontsetname, x_default_font_parameter)
1547 (x_screen_planes):
1548 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
1549 (store_mode_line_string, decode_mode_spec, display_string):
1550 * menu.c (digest_single_submenu):
1551 * keymap.h (initial_define_key, initial_define_lispy_key):
1552 * keymap.c (initial_define_key, initial_define_lispy_key):
1553 * image.c (image_error, image_keyword):
1554 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
1555 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
1556 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
1557 (ftfont_list, ftfont_match):
1558 * frame.c (frame_parm_table):
1559 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1560 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1561 (font_add_log, font_deferred_log):
1562 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1563 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1564 (font_add_log, font_deferred_log):
1565 * emacs.c (argmatch):
1566 * dispextern.h (struct it):
1567 * coding.c (ENCODE_DESIGNATION):
1568 * charset.c (define_charset_internal): Use const.
1569
25717ca1
DN
1570 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
1571
c5683ceb
SM
1572 * xrdb.c: Remove include guard.
1573 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
1574 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
1575 realloc->xrealloc instead of using #defines.
1576
efb41e21
EZ
15772010-08-08 Eli Zaretskii <eliz@gnu.org>
1578
cd21226d 1579 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
1580 * editfns.c (Fline_beginning_position, Fline_end_position):
1581 State in the doc strings that start and end of line are in the
1582 logical order.
cd21226d 1583
efb41e21
EZ
1584 * xdisp.c (display_line): Move the handling of overlay arrow after
1585 the call to find_row_edges. (Bug#6699)
1586
746812d9
CY
15872010-08-07 Chong Yidong <cyd@stupidchicken.com>
1588
1589 * keyboard.c (command_loop_1):
1590 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
1591
9852377f
CY
15922010-08-07 Chong Yidong <cyd@stupidchicken.com>
1593
1594 * insdel.c (prepare_to_modify_buffer): Save active region text to
1595 Vsaved_region_selection.
1596
1597 * xselect.c (QPRIMARY): Move to keyboard.c.
1598
1599 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
1600 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
1601 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 1602
0e9c8657
JB
16032010-08-07 Juanma Barranquero <lekktu@gmail.com>
1604
1605 * alloc.c (lisp_malloc):
1606 * buffer.c (set_buffer_internal, set_buffer_internal_1):
1607 * charset.h (emacs_mule_charset):
1608 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
1609 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
1610 (bitch_at_user):
1611 * lisp.h (Fcheck_coding_system, Fget_text_property)
1612 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
1613 Remove duplicate declarations.
1614
648801d1
DN
16152010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1616
32bc6709
DN
1617 * process.c: Simplify include logic.
1618
3ef1d108
DN
1619 * keyboard.h (quit_char): Add declaration.
1620 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
1621 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
1622 Add declarations.
3ef1d108
DN
1623 * sysdep.c:
1624 * w32.c: Remove the above declarations.
1625
97ec208f
DN
1626 Remove extern declarations in .c files, .h files have them.
1627 * xterm.c:
1628 * xdisp.c:
97ec208f
DN
1629 * msdos.c:
1630 * image.c:
1631 * gtkutil.c:
1632 * fileio.c:
1633 * eval.c: Remove declarations.
1634
94eed851
DN
1635 * frame.c (frame_params): Make const.
1636
36e053eb
DN
1637 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
1638
0e843971
DN
1639 * emacs.c (emacs_copyright, emacs_version): Make static.
1640 (Vinitial_window_system, Vauto_save_list_file_name)
1641 (Vinhibit_redisplay): Remove declarations.
1642 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
1643 for AIX.
1644
648801d1
DN
1645 Use const for some arrays and functions.
1646 * xterm.h (xg_set_icon_from_xpm_data):
1647 * xfns.c (xg_set_icon_from_xpm_data):
1648 * term.c (fkeys):
1649 * keyboard.c (lispy_accent_keys, lispy_function_keys)
1650 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
1651 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
1652 (frame.c frame_parms):
1653 * emacs-icon.h (gnu_xpm_bits):
1654 * callint.c (callint_argfuns): Use const.
1655
8646d999
J
16562010-08-06 Jan Djärv <jan.h.d@swipnet.se>
1657
1658 * sysdep.c: Move include term.h last of includes (Bug#6812).
1659
cb4545ad
EZ
16602010-08-06 Eli Zaretskii <eliz@gnu.org>
1661
1662 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
1663
1664 * msdos.c (IT_display_cursor): Log cursor position on termscript.
1665
1666 * .gdbinit (pgx): Display the avoid_cursor_p flag.
1667
da7e2be6
JB
16682010-08-06 Juanma Barranquero <lekktu@gmail.com>
1669
1670 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
1671
3d608a86
J
16722010-08-06 Jan Djärv <jan.h.d@swipnet.se>
1673
7908fb60
J
1674 * xterm.h (x_get_focus_frame): Declare.
1675
1676 * keyboard.h (poll_for_input_1): Unconditionally declare.
1677
4094bf36
J
1678 * nsterm.h (x_set_menu_bar_lines): Declare.
1679
1680 * window.c: Don't include menu.h, it depends on lots of other .h-files.
1681
3d608a86
J
1682 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
1683
1684 * window.c: Include menu.h.
1685
1686 * unexmacosx.c (print_region_list, print_regions)
1687 (build_region_list, find_emacs_zone_regions)
1688 (unexec_regions_merge, read_load_commands, dump_it)
1689 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
1690
1691 * term.c: Check HAVE_SYS_IOCTL_H.
1692
686b968e 1693 * sysdep.c: Check HAVE_TERM_H.
3d608a86 1694
686b968e 1695 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
1696
1697 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
1698 (ns_ring_bell, ns_defined_color, hide_hourglass)
1699 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
1700 Convert to ANSI C prototypes.
1701 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
1702 before code.
1703
1704 * nsterm.h : Include sysselect.h.
1705 (x_sync, x_get_focus_frame, x_set_mouse_position)
1706 (x_set_mouse_pixel_position, x_make_frame_visible)
1707 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
1708 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
1709 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
1710 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 1711 Declare.
3d608a86
J
1712
1713 * nsmenu.m (popup_activated, name_is_separator)
1714 (syms_of_nsmenu): Convert to ANSI C prototypes.
1715 (runMenuAt): Prototypes and move declarations before code.
1716
1717 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
1718
1719 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
1720 prototypes.
1721
1722 * nsfns.m (have_menus_p, ns_display_info_for_name)
1723 (x_set_cursor_type, ns_appkit_version_str)
1724 (ns_appkit_version_int, ns_do_applescript)
1725 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
1726 (syms_of_nsfns): Convert to ANSI C prototypes.
1727
1728 * menu.h (x_set_menu_bar_line): Declare.
1729 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
1730
1731 * lisp.h (fmod_float): Declare.
1732
1733 * image.c (xpm_scan, xpm_make_color_table_v)
1734 (xpm_put_color_table_v, xpm_get_color_table_v)
1735 (xpm_make_color_table_h, xpm_put_color_table_h)
1736 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
1737 (xpm_load): Convert to ANSI C prototypes.
1738
1739 * emacs.c: Include nsterm.h if HAVE_NS.
1740
1741 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
1742
fce70521
DN
17432010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1744
1745 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
1746 subprocesses, only MSDOS does not define HAVE_SOCKETS.
1747 (socket_options): Use const char* for name.
1748
a11889ab
JB
17492010-08-06 Juanma Barranquero <lekktu@gmail.com>
1750
1751 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
1752
1753 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
1754 Don't declare xmalloc_widget_value and digest_single_submenu.
1755
1756 * w32font.c (Qlatin): Remove declaration.
1757
1758 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
1759
c95b508f 1760 * dired.c (compile_pattern): Restore declaration.
a11889ab 1761
6254cdda
DN
17622010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
1763
04bab72c
DN
1764 Remove extern declarations in .c files, .h files have them.
1765 * data.c:
1766 * dired.c:
1767 * editfns.c:
1768 * filelock.c:
1769 * fns.c:
1770 * font.c:
1771 * fontset.c:
1772 * frame.c:
1773 * fringe.c:
1774 * ftfont.c:
1775 * gtkutil.c:
1776 * indent.c:
1777 * keyboard.c:
1778 * keymap.c:
1779 * lread.c:
1780 * menu.c:
1781 * print.c:
1782 * search.c:
1783 * sound.c:
1784 * window.c:
1785 * xdisp.c:
1786 * xfaces.c:
1787 * xfns.c:
1788 * xfont.c:
1789 * xftfont.c:
1790 * xmenu.c:
1791 * xterm.c: Remove declarations.
1792
dff94ed5
DN
1793 Cleanup syssignal.h.
1794 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
1795 (main_thread): Move down to remove #ifdef.
1796 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
1797 Remove conditional definition following unconditional ones.
1798
99f3388e
DN
1799 * lisp.h: Remove HAVE_SHM code, unused.
1800 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
1801 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
1802 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
1803 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
1804 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
1805 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
1806 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
1807 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
1808 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
1809 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
1810 (Qwindow_scroll_functions, Vafter_load_alist)
1811 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
1812 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
1813 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
1814 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
1815 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
1816 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
1817 (initial_argv, last_nonmenu_event, load_in_progress)
1818 (noninteractive_need_newline, scroll_margin): Add declarations.
1819
1820 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
1821 declarations, menu.h has them.
1822 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
1823 (Vinput_method_function, Qinput_method_function)
1824 (Qevent_symbol_element_mask, last_event_timestamp):
1825 * dispextern.h (Voverflow_newline_into_fringe):
1826 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
1827 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
1828 (syms_of_w32font, syms_of_nsfont):
1829 * fontset.h (find_font_encoding, Qlatin):
1830 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
1831 (Vtool_bar_mode, set_frame_menubar):
1832 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
1833 * xterm.h (Qx_gtk_map_stock):
1834 * keymap.h (meta_prefix_char): Add declarations.
1835
9f5dd6f2
DN
1836 * term.c: Remove dead code.
1837
6254cdda
DN
1838 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
1839 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
1840 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
1841 which is what was there before BSD_PGRPS was removed.
1842
29cf3e20
EZ
18432010-08-05 Eli Zaretskii <eliz@gnu.org>
1844
1845 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
1846
1847 * unexcoff.c: Renamed from unexec.c.
1848
aaa0a19a
SM
18492010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
1850
1851 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
1852
8d1d9587
JB
18532010-08-03 Johan Bockgård <bojohan@gnu.org>
1854
1855 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 1856 (Bug#6744)
8d1d9587 1857
9a747ba6
JD
18582010-08-02 Jan Djärv <jan.h.d@swipnet.se>
1859
4d464ae4
JD
1860 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
1861 to TRUE if depth of screen is < 16.
1862
ac01763e
JD
1863 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
1864 USE_GTK_TOOLTIP.
e0d62a9b
JB
1865 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
1866 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 1867 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
1868 USE_GTK_TOOLTIP.
1869 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
1870
1871 * xterm.h (USE_GTK_TOOLTIP): New define.
1872 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
1873
9a747ba6
JD
1874 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
1875 to Control-D (Bug#6771).
1876
7b0815ba
JB
18772010-08-02 Juanma Barranquero <lekktu@gmail.com>
1878
1879 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
1880 Wording by Drew Adams <drew.adams@oracle.com>.
1881
aa1859f5
J
18822010-08-01 Jan Djärv <jan.h.d@swipnet.se>
1883
1884 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
1885 ttip_lbl.
1886
1887 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
1888 calling gtk_widget_queue_draw.
1889 (x_free_frame_resources): Call xg_free_frame_widgets.
1890
1891 * xfns.c (x_gtk_use_system_tooltips): New variable.
1892 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
1893 new gtkutil tooltip functions to show the tooltip.
1894 (Fx_hide_tip): Call xg_hide_tooltip.
1895 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
1896
1897 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
1898 (xg_show_tooltip, xg_hide_tooltip): Declare.
1899
1900 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
1901 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
1902 New functions.
aa1859f5
J
1903 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
1904 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
1905 Remove code that is commented out.
1906
76417ef4
SM
19072010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
1908
1909 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
1910
16041401
CY
19112010-07-31 Chong Yidong <cyd@stupidchicken.com>
1912
1913 * xselect.c (x_own_selection): Use list4.
1914
2c09a58f
DN
19152010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
1916
1917 * buffer.c (Qwindow): Do not define, already defined in data.c.
1918 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
1919
59df9fdd 19202010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 1921
59df9fdd
JB
1922 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
1923 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
1924 * config.in: Undef HAVE_DIRENT_H.
1c97e857 1925 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 1926 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 1927
1b231651
DN
19282010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1929
1930 Rename s/usg5-4.h -> s/usg5-4-common.h.
1931 * s/usg5-4.h: Rename file to ...
1932 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
1933 * s/unixware.h:
1934 * s/sol2-6.h:
1935 * s/irix6-5.h: Update includes accordingly.
1936
bfeabdc3
JD
19372010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1938
2ebf1083
J
1939 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
1940
bfeabdc3 1941 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
1942 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
1943 Remove toolbar_height.
1944 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
1945 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
1946 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
1947 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
1948
1949 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1950
1951 * xfns.c (x_set_tool_bar_position): New function.
1952 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
1953 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 1954 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
1955
1956 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
1957 and FRAME_TOOLBAR_LEFT_WIDTH.
1958
1959 * gtkutil.h (xg_change_toolbar_position): Declare.
1960
1961 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
1962 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1963 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
1964 (xg_create_frame_widgets): Create a hobox for placing widgets
1965 vertically. Use gtk_box_pack_start.
1966 (xg_height_or_width_changed): Renamed from xg_height_changed.
1967 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
1968 (xg_update_frame_menubar, free_frame_menubar): Change to
1969 xg_height_or_width_changed.
1970 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
1971 size correctly. Remove hardcoded 4, instead use handlebox size -
1972 toolbar size.
1973 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 1974 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
1975 (xg_pack_tool_bar): POS is a new parameter.
1976 Set orientation of tool bar based on pos.
1977 Only make handlebox_widget if NULL.
1978 Check if tool bar goes to vbox or hbox depending on pos.
1979 (xg_update_tool_bar_sizes): New function.
686b968e 1980 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
1981 height, call xg_update_tool_bar_sizes instead.
1982 (free_frame_tool_bar): Remove from hbox or vbox depending on
1983 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
1984 (xg_change_toolbar_position): New function.
1985
1986 * frame.h (struct frame): Add tool_bar_position.
1987 (Qbottom): Declare.
1988
1989 * frame.c (Qtool_bar_position): New variable.
1990 (make_frame): Set tool_bar_position to Qtop.
1991 (frame_parms): Add tool-bar-position.
1992 (x_report_frame_params): Store tool_bar_position.
1993 (x_set_fringe_width): Reset wm size hint after fringe changes.
1994
26469a38
DN
19952010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1996
1997 Make lisp_time_argument declaration work on all systems.
1998 * lisp.h (lisp_time_argument): Move declaration ...
1999 * systime.h (lisp_time_argument): ... here
2000 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
2001
8848b728
JD
20022010-07-29 Jan Djärv <jan.h.d@swipnet.se>
2003
2004 * vm-limit.c (POINTER): Add typedef for it.
2005 (start_of_data): Change return type from POINTER to char *.
2006
2007 * frame.h (Qtty_color_mode): Move declaration out of ifdef
2008 HAVE_WINDOW_SYSTEM.
2009
76fd1ee9
DN
20102010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2011
0441987e
DN
2012 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
2013 Remove reference to __osf__, unused.
2014
56a000c7
DN
2015 * mem-limits.h: Remove duplicated includes.
2016 (NULL): Remove definition, unused.
2017 (POINTER): Remove definition.
2018 (start_of_data): Use char* in prototype, as the function
2019 definition does.
2020
e6cba650
DN
2021 Remove extern declarations from .c files, and them to .h files.
2022 * keyboard.h (Qhelp_echo, waiting_for_input)
2023 (input_available_clear_time, ignore_mouse_drag_p)
2024 (Vdouble_click_time, real_this_command, Vthis_original_command):
2025 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
2026 (Voverriding_local_map_menu_flag):
2027 * lisp.h (Qinteractive_form, use_file_dialog)
2028 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
2029 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
2030 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2031 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
2032 (Qfunction, debug_on_next_call, Qfield)
2033 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
2034 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
2035 (Qfile_directory_p, Qinsert_file_contents)
2036 (Qcompletion_ignore_case, Qcompletion_ignore_case)
2037 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
2038 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
2039 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
2040 (Qminibuffer_prompt)
2041 (Vtemporary_file_directory,char_ins_del_vector, Qface):
2042 * xterm.h (gray_bitmap_width, gray_bitmap_height)
2043 (gray_bitmap_bits, xic_create_fontsetname):
2044 * coding.h (Vtranslation_table_for_input): Add extern declarations.
2045
2046 * xsmfns.c (Vuser_login_name):
2047 * xrdb.c (Vdouble_click_time):
2048 * xfaces.c (xic_create_fontsetname):
2049 * w32select.c (waiting_for_input):
2050 * print.c (minibuffer_auto_raise):
2051 * msdos.c (Qhelp_echo):
2052 * macros.c (real_this_command):
2053 * keymap.c (Voverriding_local_map):
2054 * xterm.c (poll_for_input_1, gray_bitmap_width)
2055 (gray_bitmap_height, gray_bitmap_bits;
2056 * xmenu.c ( Voverriding_local_map)
2057 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
2058 (use_file_dialog, Xt_app_con):
2059 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
2060 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
2061 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
2062 (Qtool_bar_lines, ignore_mouse_drag_p):
2063 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
2064 (Qrear_nonsticky, nconc2):
2065 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
2066 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
2067 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
2068 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
2069 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
2070 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
2071 (gc_in_progress):
2072 * doc.c (Voverriding_local_map, Qremap):
2073 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
2074 (Vcompletion_regexp_list):
2075 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
2076 (Qcompletion_ignore_case):
2077 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
2078 (Vhistory_length, Vthis_original_command, real_this_command)
2079 (Qface, Qminibuffer_prompt, history_delete_duplicates):
2080 * image.c (Qrisky_local_variable):
2081 * fontset.c (QCname):
2082 * fns.c (minibuffer_auto_raise, QCname):
2083 * dispnew.c (char_ins_del_cost):
2084 * composite.c (font_fill_lglyph_metrics):
2085 * cmds.c (Qface, Vtranslation_table_for_input):
2086 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
2087 * ccl.c (charset_unicode):
2088 * callproc.c (Vtemporary_file_directory):
2089 * buffer.c (emacs_strerror): Remove extern declarations.
2090
2091 * data.c (Qwindow): Make non-static, used from other files too.
2092 * frame.c (validate_x_resource_name): Remove shadow definition for i.
2093
76fd1ee9
DN
2094 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
2095 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
2096 * s/usg5-4.h (COFF):
2097 * s/template.h:
2098 * s/msdos.h (COFF, NO_REMAP):
2099 * s/ms-w32.h (NO_REMAP):
2100 * s/hpux10-20.h (NO_REMAP):
2101 * m/sparc.h (SEGMENT_MASK):
2102 * m/m68k.h (NO_REMAP):
2103 * m/intel386.h (SEGMENT_MASK):
2104 * m/arm.h (NO_REMAP):
2105 * m/alpha.h (COFF):
2106 * m/template.h: Remove references to unused defines.
2107
8a52f00a
JD
21082010-07-28 Jan Djärv <jan.h.d@swipnet.se>
2109
2110 * xsettings.c (Ftool_bar_get_system_style): Also check for
2111 Qtext_image_horiz.
2112
2113 * xdisp.c (Qtext_image_horiz): Define.
2114 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 2115 to documentation of tool-bar-style.
8a52f00a
JD
2116
2117 * lisp.h (Qtext_image_horiz): Declare.
2118
2119 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
2120 style text_image_horiz.
2121
89dc303e
DN
21222010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2123
60799703
DN
2124 * emacs.c (Fkill_emacs): Remove return statement.
2125
37254dc1
DN
2126 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
2127 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
2128 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
2129 local extern declarations.
2130
71c7345a
DN
2131 * xmenu.c: Do not included lwlib.h, not needed.
2132
6ba577cb
DN
2133 * m/iris4d.h (XUINT, XSET): Remove, not needed.
2134
fdb183d6
DN
2135 * process.c: Move definitions earlier to minimize #ifdefs.
2136
2137 * xterm.h (x_get_customization_string, x_load_resources)
2138 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
2139 (x_check_errors, x_property_data_to_lisp, defined_color)
2140 (xic_set_xfontset, x_defined_color): Use const.
2141
2142 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
2143 (x_text_icon, x_check_errors, x_connection_closed): Use const.
2144
2145 * xselect.c (selection_data_to_lisp_data)
2146 (x_property_data_to_lisp):
2147 * xrdb.c (x_get_string_resource, file_p)
2148 (x_get_customization_string, magic_file_p, search_magic_path)
2149 (get_system_app, get_user_app, x_load_resources, x_get_resource)
2150 (x_get_string_resource): Use const.
2151
2152 * xfns.c: Include xlwmenu.h when USE_LUCID.
2153 (x_defined_color, xic_set_xfontset): Use const.
2154 (Fx_hide_tip): Remove local extern declaration.
2155
2156 * xfaces.c (Qmouse_face): Remove declaration.
2157 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 2158 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
2159
2160 * xdisp.c (do_mouse_tracking): Remove declaration.
2161 (add_to_log): Use const.
2162
2163 * minibuf.c (Qmouse_face): Remove declaration.
2164
2165 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
2166
2167 * keyboard.h (do_mouse_tracking): Add declaration.
2168
2169 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
2170 (QCdata, QCtype, Qcenter): Remove declarations.
2171
2172 * frame.c (x_get_resource_string, x_get_string_resource)
2173 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2174 (x_default_parameter): Use const.
2175
2176 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
2177 (QCheight, QCsize, QCname): Remove declarations.
2178
2179 * emacs.c (main): Remove local extern declaration.
2180
2181 * editfns.c (region_limit, syms_of_editfns): Remove local extern
2182 declarations.
2183
2184 * dispnew.c: Remove duplicate #include <unistd.h>.
2185 (update_window, update_frame_1, init_display): Remove local extern
2186 declarations.
2187
2188 * dispextern.h (add_to_log): Remove declaration.
2189 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2190 (x_frame_get_and_record_arg, x_default_parameter): Add const.
2191
2192 * dired.c (scmp): Add const.
2193 (directory_files_internal): Remove local extern declaration.
2194
2195 * data.c (Finteractive_form): Use const.
2196
2197 * composite.c (syms_of_composite): Remove local extern declarations.
2198
2199 * charset.c (add_to_log): Remove declaration.
2200
2201 * character.c (strwidth, parse_str_to_multibyte): Add const.
2202
2203 * character.h (strwidth, parse_str_to_multibyte): Likewise.
2204
2205 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
2206
89dc303e 2207 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
2208 (Lisp_Subr): Make doc and intspec constant.
2209 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
2210 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
2211 (QCheight, QCsize, QCname, QCwidth, QCforeground)
2212 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
2213 (display_arg): Add declarations.
89dc303e 2214
0ed082fe 22152010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
2216
2217 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
2218
0ed082fe
JB
2219 * window.c (Fwindow_height): Doc fix (bug#6518).
2220
22212010-07-27 Juanma Barranquero <lekktu@gmail.com>
2222
2223 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
2224
ccaf0336
DN
22252010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
2226
977105dc
DN
2227 * keyboard.c (Ftop_level, Fexit_recursive_edit)
2228 (Fabort_recursive_edit): Remove return statements in NO_RETURN
2229 functions.
2230
f5ada890
DN
2231 * frame.h (Qtty_color_mode): Add declaration.
2232
ccaf0336
DN
2233 * lisp.h (Ftop_level, Fexit_recursive_edit)
2234 (Fabort_recursive_edit): Mark as NO_RETURN.
2235
dfe3c90f
KH
22362010-07-26 Kenichi Handa <handa@m17n.org>
2237
2238 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 2239 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 2240
7d383292
JB
22412010-07-26 Juanma Barranquero <lekktu@gmail.com>
2242
2243 * lread.c (unreadpure, mapatoms_1): Make static.
2244
da31e629
JB
22452010-07-25 Juanma Barranquero <lekktu@gmail.com>
2246
2247 * terminfo.c (tparam): Fix prototype of tparm.
2248
7bfa6d77
AS
22492010-07-25 Andreas Schwab <schwab@linux-m68k.org>
2250
dcc19aac
AS
2251 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
2252 find start of text segment.
2253 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
2254 is defined.
2255
7bfa6d77
AS
2256 * callproc.c (set_initial_environment): Avoid unbalanced braces.
2257
63f9a672
KB
22582010-07-25 Ken Brown <kbrown@cornell.edu>
2259
2260 * vm-limit.c (check_memory_limits): Fix previous change;
2261 accidentally reverted an earlier change.
2262
24933075
KB
22632010-07-25 Ken Brown <kbrown@cornell.edu>
2264
2265 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
2266 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
2267
361358ea
JB
22682010-07-25 Juanma Barranquero <lekktu@gmail.com>
2269
2270 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
2271 * dired.c (opendir, readdir): Fix prototypes.
2272 * editfns.c (w32_get_internal_run_time): Fix prototypes.
2273 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
2274 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
2275 (telldir): Remove declaration.
2276 * ralloc.c (real_morecore, __morecore): Fix prototypes.
2277 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
2278 * syssignal.h (strsignal): Fix prototype.
2279 * term.c (tparam): Fix prototype.
2280 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
2281 (term_get_fkeys): Set inside "#ifndef DOS_NT".
2282 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
2283 and __morecore.
2284 * w32gui.h (XParseGeometry): Fix prototype.
2285 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
2286 * w32term.c (my_set_focus): Declare inside #if 0.
2287 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
2288 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
2289 (drain_message_queue, get_next_msg, post_msg, parse_button)
2290 (ClipboardSequence_Proc): Fix prototypes.
2291 (wait_for_sync): Remove declaration.
2292
630b9592
JB
22932010-07-24 Juanma Barranquero <lekktu@gmail.com>
2294
2295 * w32fns.c (w32_to_x_color): Remove, unused.
2296
6a0d6611
AS
22972010-07-24 Andreas Schwab <schwab@linux-m68k.org>
2298
2299 * lisp.h: Remove leftover P_.
2300
4e8608ff
DN
23012010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
2302
2303 * ecrt0.c, unexalpha.c: Remove files, unused.
2304
c8197983
AS
23052010-07-24 Andreas Schwab <schwab@linux-m68k.org>
2306
2307 * cmds.c (internal_self_insert): Make static.
2308 * lisp.h (internal_self_insert): Remove declaration.
2309
97b372d7
JB
23102010-07-23 Juanma Barranquero <lekktu@gmail.com>
2311
33ac0414
JB
2312 * alloc.c (free_float):
2313 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
2314 * frame.c (delete_frame_handler):
2315 * ralloc.c (reorder_bloc):
2316 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
2317 Remove unused static functions.
2318
94da8397
JB
2319 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
2320 it is called only from NS code.
2321
2e6c8532
JB
2322 * w32term.c (my_set_focus): #ifdef away; it is called only from
2323 "#ifdef 0" code.
2324
97b372d7
JB
2325 * w32fns.c (x_edge_detection):
2326 * xfaces.c (may_use_scalable_font_p):
2327 Remove obsolete static declarations.
2328
7c3320d8
JB
23292010-07-20 Juanma Barranquero <lekktu@gmail.com>
2330
2331 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
2332 (emacs_blocked_realloc, uninterrupt_malloc):
2333 * fringe.c (w32_reset_fringes):
2334 * image.c (convert_mono_to_color_image, lookup_rgb_color)
2335 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
2336 * sound.c (be2hs, do_play_sound):
2337 * vm-limit.c (get_lim_data, ret_lim_data):
2338 * w32term.c (x_free_frame_resources):
2339 * xfaces.c (x_create_gc, x_free_gc):
2340 Convert definitions to standard C.
2341
d5273788
SM
23422010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
2343
2344 * eval.c (Feval, Ffuncall): Use the new names.
2345
2346 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
2347 (DEFUN): Add braces around the union initialisation and use ## to
2348 specify the right union alternative and avoid a cast.
2349
8d16a259
JB
23502010-07-18 Juanma Barranquero <lekktu@gmail.com>
2351
2352 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
2353
3b8eff32
CY
23542010-07-17 Chong Yidong <cyd@stupidchicken.com>
2355
2356 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
2357
499322ce
J
23582010-07-17 Jan Djärv <jan.h.d@swipnet.se>
2359
2360 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
2361 is related to the menu bar (Bug#6499).
a628ad9d 2362 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 2363
f6003da5 23642010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
2365
2366 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
2367
2368 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
2369
2370 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
2371 i.e. don't put back ButtonRelease (Bug#6608).
2372
2373 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
2374 instead of Window. Call xg_event_is_for_menubar when
2375 USE_GTK (Bug#6499).
2376
2377 * gtkutil.h (xg_event_is_for_menubar): Declare.
2378
2379 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
2380
f6003da5 23812010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
2382
2383 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
2384 when it's the same as the old foreground. (Bug#6609)
2385
23243f29
J
23862010-07-16 Jan Djärv <jan.h.d@swipnet.se>
2387
2388 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
2389 widget is non-null (Bug#6645).
2390
2b23d2a6
AS
23912010-07-15 Andreas Schwab <schwab@linux-m68k.org>
2392
01b564ff
AS
2393 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
2394 Convert old-style definition.
2395
2b23d2a6
AS
2396 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
2397 timestamp argument.
2398
c4affd2c
EZ
23992010-07-15 Eli Zaretskii <eliz@gnu.org>
2400
2401 * fringe.c (update_window_fringes): Restore mistakenly reverted
2402 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
2403
cf28cebc
J
24042010-07-14 Jan Djärv <jan.h.d@swipnet.se>
2405
2406 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
2407 (SET_SAVED_KEY_EVENT): Remove (not used).
2408 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
2409 remove size parameter.
2410 (handle_one_xevent): Check popup_activated () for menu for Xt also.
2411 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
2412 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
2413 ButtonRelease.
6b2c4bd9
J
2414 (x_set_window_size_1): scroll_bar_actual_width is always
2415 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
2416
2417 * xdisp.c (pending_menu_activation): Remove extern declaration.
2418 (prepare_menu_bars): Remove setting of pending_menu_activation.
2419
2420 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
2421 (x_activate_menubar): Set popup_activated_flag for Xt also.
2422 Remove setting of pending_menu_activation.
cf28cebc
J
2423 (set_frame_menubar): Remove check of pending_menu_activation.
2424 Declare menubar_size before code. Correct spelling in comment.
2425
f6c1c771
KH
24262010-07-14 Kenichi Handa <handa@m17n.org>
2427
2428 * font.c (font_open_entity): Cancel previous change.
2429 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
2430
20477505
EZ
24312010-07-13 Eli Zaretskii <eliz@gnu.org>
2432
77defa9a
EZ
2433 Remove subprocesses #ifdefs.
2434 * process.c <inhibit_sentinels>: Move to the common part.
2435 (Fwaiting_for_user_input_p): Move to the common part; return nil
2436 if async subprocesses aren't supported.
2437 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
2438 MS-DOS. Remove "#ifdef subprocesses".
2439 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
2440 (gettimeofday): Remove "#ifdef subprocesses".
2441 (wait_without_blocking): Remove function.
2442 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
2443 Remove "#ifdef subprocesses".
2444 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
2445 compiled on MS-DOS.
2446 * callproc.c (Fcall_process) [!MSDOS]: Don't call
2447 wait_for_termination on MS-DOS.
2448 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
2449 initialization of inhibit_sentinels.
2450 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
2451 subprocesses" conditional.
2452 * callproc.c (Fcall_process) [!subprocesses]: Don't call
2453 wait_for_termination, since `buffer' cannot be an integer when
2454 async subprocesses are not supported
2455 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
2456 for ifdefing away the call to Fprocess_status.
2457
20477505
EZ
2458 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
2459 away the entire body of the function.
2460
b3ffc17c
DN
24612010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
2462
01faa934
DN
2463 Remove subprocesses #ifdefs from term.c.
2464 * process.c (add_keyboard_wait_descriptor)
2465 (delete_keyboard_wait_descriptor): Move to common section, do
2466 nothing when subprocesses is not defined.
a628ad9d
JB
2467 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
2468 Remove subprocesses #ifdefs.
01faa934 2469
b3ffc17c
DN
2470 Convert maybe_fatal to standard C.
2471 * lisp.h (verror): Declare.
2472 * eval.c (verror): New function containing the code from ...
2473 (error): ... this. Call verror.
2474 * term.c (vfatal): New function containing the code from ...
2475 (fatal): ... this. Call vfatal.
2476 (maybe_fatal): Convert to standard C, use variable number of
2477 arguments. Declare as non-return.
2478 (init_tty): Fix maybe_fatal call.
2479
0521f580
DN
24802010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2481
2482 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
2483 (_scroll_bar_note_movement): Convert definitions to standard C.
2484 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
2485 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
2486
ebd15611
DN
24872010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2488
2489 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
2490 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
2491 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
2492 (xaw_jump_callback, xaw_scroll_callback)
2493 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
2494 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
2495 definitions to standard C.
2496 * xmenu.c (menubar_id_to_frame, popup_get_selection)
2497 (popup_activate_callback, popup_deactivate_callback)
2498 (menu_highlight_callback, menubar_selection_callback)
2499 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
2500 (free_frame_menubar, popup_selection_callback, as)
2501 (create_and_show_popup_menu, dialog_selection_callback)
2502 (create_and_show_dialog):
2503 * xfns.c (hack_wm_protocols, x_window):
2504 * xfaces.c (x_update_menu_appearance):
2505 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
2506 (char_to_pixel_size, round_size_to_char, get_wm_shell)
2507 (set_frame_size, update_wm_hints, setup_frame_gcs)
2508 (update_various_frame_slots, update_from_various_frame_slots)
2509 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
2510 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
2511 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
2512
de06a2dd
AS
25132010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2514
a628ad9d 2515 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 2516
fc549af9
EZ
25172010-07-12 Eli Zaretskii <eliz@gnu.org>
2518
2519 * process.c (setup_process_coding_systems): Move to the part
2520 shared by non-subprocesses systems, and make its body empty when
2521 subprocesses is not defined.
2522 (close_process_descs): Move to the part shared by non-subprocesses
2523 systems.
1408902e
EZ
2524 (wait_reading_process_output) [!subprocesses]: Convert arg list to
2525 ANSI C.
fc549af9 2526
d5a3eaaf
AS
25272010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2528
2529 * editfns.c (transpose_markers): Convert old-style definition.
2530 * emacs.c (abort, shut_down_emacs, fixup_locale)
2531 (synchronize_system_time_locale)
2532 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
2533 * floatfns.c (extract_float, matherr, init_floatfns)
2534 (syms_of_floatfns): Likewise.
2535 * fns.c (make_hash_table): Likewise.
2536 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
2537 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
2538 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
2539 (ftfont_variation_glyphs): Likewise.
2540 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
2541 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
2542 * lread.c (read_filtered_event): Likewise.
2543 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
2544 * process.c (wait_reading_process_output): Likewise.
2545 * scroll.c (do_line_insertion_deletion_costs): Likewise.
2546 * search.c (search_buffer, boyer_moore): Likewise.
2547 * syntax.c (scan_sexps_forward): Likewise.
2548 * xdisp.c (try_scrolling): Likewise.
2549 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
2550 (face_at_string_position): Likewise.
2551 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
2552 * xselect.c (x_get_window_property, receive_incremental_selection)
2553 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
2554 Likewise.
2555 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
2556
6f704c76
DN
25572010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2558
ded80a25
DN
2559 * callproc.c (child_setup): Remove subprocesses conditional.
2560 Remove code dealing with SET_EMACS_PRIORITY, unused.
2561
49d937f4 2562 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
2563 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
2564
2565 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
2566 (__do_global_dtors, __main): Use void in definition.
2567 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
2568 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
2569 the only users from ...
2570 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
2571 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
2572 (HAVE_VOLATILE): Remove, unused.
2573
6f704c76
DN
2574 Convert more function definitions to standard C.
2575 * xdisp.c (window_box_edges, handle_single_display_spec)
2576 (display_string): Convert definition to standard C.
2577 * scroll.c (do_direct_scrolling, scrolling_1):
2578 * dispnew.c (allocate_matrices_for_frame_redisplay)
2579 (mirrored_line_dance):
2580 * coding.c (code_convert_string):
2581 * charset.c (map_charset_chars):
2582 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
2583 (Fregister_ccl_program, Fregister_code_conversion_map):
2584 * keyboard.c (kbd_buffer_nr_stored): Likewise.
2585 (head_table): Make static and const.
2586
e6cfa7c3
AS
25872010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2588
2589 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
2590 (PROFILING_LDFLAGS): Set from substitution.
2591 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
2592 CFLAGS last.
2593
892dd565
KH
25942010-07-12 Kenichi Handa <handa@m17n.org>
2595
6f2cdcd1
KH
2596 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
2597 (shortlisp): Likewise.
2598
892dd565
KH
2599 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
2600
2601 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
2602 of FONT_ENTITY_INDEX.
2603 (Ffont_get): If KEY is :otf and the font-object doesn't have the
2604 property, get the property value dynamically.
2605 (Ffont_put): Accept font-entity and font-object too.
2606 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
2607 return value changed.
2608 (syms_of_font): Adjusted for the above change.
2609
ae96d47a
AS
26102010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2611
c8fc18ee
AS
2612 * blockinput.h: Remove obsolete comment.
2613
89887d67
AS
2614 * lisp.h: Include <stddef.h>.
2615 (OFFSETOF): Don't define.
2616 (VECSIZE): Use offsetof instead of OFFSETOF.
2617 (PSEUDOVECSIZE): Likewise.
2618 * process.c (conv_sockaddr_to_lisp): Likewise.
2619 * alloc.c: Don't include <stddef.h>.
2620 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
2621
ae96d47a
AS
2622 * process.c: Remove obsolete comment.
2623
635c0aa1
CY
26242010-07-11 Chong Yidong <cyd@stupidchicken.com>
2625
2626 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
2627
a64df650
AS
26282010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2629
8966b757
AS
2630 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
2631 index, rindex.
2632 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
2633 * editfns.c (Fuser_full_name, Fformat): Likewise.
2634 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
2635 * fileio.c (Ffile_symlink_p): Likewise.
2636 * filelock.c (current_lock_owner): Likewise.
2637 * font.c (font_parse_name, font_parse_family_registry): Likewise.
2638 * fontset.c (fontset_pattern_regexp): Likewise.
2639 * lread.c (read1): Likewise.
2640 * sysdep.c (init_system_name): Likewise.
2641 * xfns.c (select_visual): Likewise.
2642 * s/hpux10-20.h (index, rindex): Don't define.
2643 * s/ms-w32.h (index): Likewise.
2644 * s/usg5-4.h: Likewise.
2645
cf237e27
AS
2646 * callproc.c (relocate_fd): Use F_DUPFD if defined.
2647
a8fe7202
AS
2648 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
2649 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
2650 (egetenv): Likewise.
2651 * doprnt.c (doprnt): Likewise.
2652 * editfns.c (set_time_zone_rule, format2): Likewise.
2653 * emacs.c (decode_env_path): Likewise.
2654 * eval.c (signal_error, error): Likewise.
2655 * insdel.c (replace_range_2): Likewise.
2656 * keyboard.c (cmd_error_internal): Likewise.
2657 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
2658 * print.c (write_string, write_string_1, print_error_message):
2659 Likewise.
2660 * vm-limit.c (warn_function, memory_warnings): Likewise.
2661 * xdisp.c (message1, message1_nolog, message_with_string)
2662 (vmessage, message, message_nolog): Likewise.
2663 * emacs.c: Remove duplicate declaration.
2664 * keyboard.h: Likewise.
2665 * lisp.h: Update prototypes.
2666
bb8e180f
AS
2667 * eval.c: Fix indentation problem.
2668
83380e65
AS
2669 * keyboard.c: Include "process.h"
2670
a64df650
AS
2671 * eval.c: Remove obsolete noinline declaration.
2672 * fns.c: Likewise.
2673
6a8033e1
KR
26742010-07-11 Ken Raeburn <raeburn@raeburn.org>
2675
2676 * doprnt.c (doprnt): Take a va_list argument instead of count and
2677 pointer.
2678 * eval.c (error): Change to a standard-C variadic function.
2679 * xdisp.c (vmessage): Renamed from message, made static, and
2680 changed to take a va_list argument.
2681 (message): New variadic wrapper.
2682 (message_nolog): Now a variadic function, calling vmessage.
2683 * lisp.h: Include stdarg.h for va_list.
2684 (doprnt, error, message, message_nolog): Decls updated.
2685
462aa963
EZ
26862010-07-11 Eli Zaretskii <eliz@gnu.org>
2687
2688 * process.c (syms_of_process) <delete-exited-processes>: Define
2689 even if !subprocesses.
2690 (delete_exited_processes): Ditto.
2691
2692 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
2693 (delete_exited_processes): Don't define.
2694
48104462
CY
26952010-07-10 Chong Yidong <cyd@stupidchicken.com>
2696
2697 * frame.c (make_frame): Initialize menu_bar_lines and
2698 tool_bar_lines members.
2699 (make_initial_frame, make_terminal_frame): Initialize
2700 menu_bar_lines using value of menu-bar-mode.
2701
2702 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
2703
f388c88a
EZ
27042010-07-10 Eli Zaretskii <eliz@gnu.org>
2705
2706 * process.c: Reshuffle #include's. Condition some of the global
2707 and static variables on `subprocesses'.
2708 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2709 Leave only one implementation.
2710 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
2711 (kill_buffer_processes, Flist_system_processes)
2712 (Fprocess_attributes, init_process, syms_of_process): Unify the
2713 implementations for with subprocesses and without them.
2714
723f5a07
J
27152010-07-09 Jan Djärv <jan.h.d@swipnet.se>
2716
2717 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
2718 correct size for Motif.
2719 (free_frame_menubar): Call x_set_window_size to update frame size.
2720
2721 * xfns.c (x_window): Set borderWidth to 0 for pane and
2722 EmacsFrame. Frame size calculation is wrong otherwise.
2723
2536a4b7
MA
27242010-07-09 Michael Albinus <michael.albinus@gmx.de>
2725
2726 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
2727 allows to suppress errors when polling in Emacs' main loop.
2728 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
2729 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2730 (Fdbus_method_error_internal, Fdbus_send_signal)
2731 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
2732 (Fdbus_register_method): Use it. (Bug#6579)
2733
5842a27b
DN
27342010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2735
2736 * alloc.c: Convert DEFUNs to standard C.
2737 * buffer.c:
2738 * bytecode.c:
2739 * callint.c:
2740 * callproc.c:
2741 * casefiddle.c:
2742 * casetab.c:
2743 * category.c:
2744 * character.c:
2745 * charset.c:
2746 * chartab.c:
2747 * cmds.c:
2748 * coding.c:
2749 * composite.c:
2750 * data.c:
2751 * dbusbind.c:
2752 * dired.c:
2753 * dispnew.c:
2754 * doc.c:
2755 * dosfns.c:
2756 * editfns.c:
2757 * emacs.c:
2758 * eval.c:
2759 * fileio.c:
2760 * filelock.c:
2761 * floatfns.c:
2762 * fns.c:
2763 * font.c:
2764 * fontset.c:
2765 * frame.c:
2766 * fringe.c:
2767 * image.c:
2768 * indent.c:
2769 * insdel.c:
2770 * keyboard.c:
2771 * keymap.c:
2772 * lread.c:
2773 * macros.c:
2774 * marker.c:
2775 * menu.c:
2776 * minibuf.c:
2777 * msdos.c:
2778 * nsfns.m:
2779 * nsmenu.m:
2780 * nsselect.m:
2781 * print.c:
2782 * process.c:
2783 * search.c:
2784 * sound.c:
2785 * syntax.c:
2786 * term.c:
2787 * terminal.c:
2788 * textprop.c:
2789 * undo.c:
2790 * w16select.c:
2791 * w32console.c:
2792 * w32fns.c:
2793 * w32font.c:
2794 * w32menu.c:
2795 * w32proc.c:
2796 * w32select.c:
2797 * window.c:
2798 * xdisp.c:
2799 * xfaces.c:
2800 * xfns.c:
2801 * xmenu.c:
2802 * xselect.c:
2803 * xsettings.c:
2804 * xsmfns.c: Likewise.
2805
d568829b
EZ
28062010-07-08 Eli Zaretskii <eliz@gnu.org>
2807
2808 * process.c (kbd_is_on_hold, hold_keyboard_input)
2809 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
2810
52214050
J
28112010-07-08 Jan Djärv <jan.h.d@swipnet.se>
2812
2813 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
2814 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
2815 unless USE_LUCID.
2816
313d9eb2
DN
28172010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2818
a628ad9d
JB
2819 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
2820 declaration.
d8825aa3 2821
295d0d8f
DN
2822 Clean up include guards.
2823 * tparam.c: Remove include guards for config.h, string.h and code
2824 that assumes #ifndef emacs.
2825 * termcap.c:
2826 * unexalpha.c:
2827 * sysdep.c:
2828 * filemode.c:
2829 * filelock.c:
2830 * bidi.c: Likewise.
2831
49d9e6b0
DN
2832 Remove prefix-args.c
2833 * prefix-args.c: Remove file.
2834 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
2835 * Makefile.in (temacs${EXEEXT}): Remove references to
2836 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
2837 (mostlyclean): Remove reference to prefix-args.
2838 (prefix-args): Remove.
2839
313d9eb2
DN
2840 Simplify cstart_of_data, start_of_code and related code.
2841 * mem-limits.h: Remove !emacs and _LIBC conditional code.
2842 (start_of_data): Merge into start_of_data function.
2843 * sysdep.c (start_of_text): Remove. Move simplified versions of
2844 it in the only users: unexaix.c and unexec.c.
2845 (read_input_waiting): Remove local declaration of quit_char.
2846 (start, etext): Remove declarations.
2847 (start_of_data): Merge with the version in mem-limits.h and move
2848 to vm-limits.c.
2849 * vm-limit.c (start_of_data): Merged and simplified version of the
2850 code formerly in mem-limits.h and sysdep.c.
2851 * unexec.c (start): New declaration, moved from sysdep.c.
2852 (start_of_text): Simplified version of the code formerly in sysdep.c.
2853 * unexaix.c (start_of_text): Simplified version of the code
2854 formerly in sysdep.c.
2855 * m/alpha.h (HAVE_TEXT_START): Remove.
2856 (TEXT_START): Move ...
2857 * unexalpha.c (TEXT_START): ... here.
2858 * s/hpux10-20.h (TEXT_START): Remove.
2859 * s/darwin.h (TEXT_START):
2860 * m/mips.h (TEXT_START):
2861 * m/macppc.h (HAVE_TEXT_START):
2862 * m/m68k.h (TEXT_START):
2863 * m/iris4d.h (TEXT_START):
2864 * m/intel386.h (TEXT_START):
2865 * m/ibmrs6000.h (TEXT_START):
2866 * m/ia64.h (HAVE_TEXT_START):
2867 * s/msdos.h (TEXT_START): Likewise.
2868
72af86bd
AS
28692010-07-07 Andreas Schwab <schwab@linux-m68k.org>
2870
2871 * alloc.c (overrun_check_malloc, overrun_check_realloc)
2872 (overrun_check_free, xstrdup, allocate_string)
2873 (allocate_string_data, compact_small_strings, Fmake_string)
2874 (make_unibyte_string, make_multibyte_string)
2875 (make_string_from_bytes, make_specified_string, make_float)
2876 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
2877 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
2878 memcpy, memmove, memset, memcmp.
2879 * atimer.c (start_atimer, set_alarm): Likewise.
2880 * buffer.c (clone_per_buffer_values, report_overlay_modification)
2881 (mmap_realloc, init_buffer_once): Likewise.
2882 * callint.c (Fcall_interactively): Likewise.
2883 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
2884 (getenv_internal_1): Likewise.
2885 * casefiddle.c (casify_object): Likewise.
2886 * ccl.c (ccl_driver): Likewise.
2887 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
2888 * charset.c (load_charset_map_from_file)
2889 (load_charset_map_from_file, load_charset_map_from_vector)
2890 (Fdefine_charset_internal): Likewise.
2891 * cm.c (Wcm_clear): Likewise.
2892 * coding.c (decode_eol, decode_coding_object)
2893 (Fset_coding_system_priority, make_subsidiaries): Likewise.
2894 * data.c (Faset): Likewise.
2895 * dired.c (directory_files_internal, file_name_completion_stat):
2896 Likewise.
2897 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
2898 (clear_glyph_row, copy_row_except_pointers)
2899 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
2900 (save_current_matrix, restore_current_matrix)
2901 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
2902 (mirror_line_dance, scrolling_window): Likewise.
2903 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
2904 Likewise.
2905 * doprnt.c (doprnt): Likewise.
2906 * editfns.c (Fuser_full_name, make_buffer_string_both)
2907 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
2908 * emacs.c (sort_args): Likewise.
2909 * eval.c (Fapply, Ffuncall): Likewise.
2910 * fileio.c (Ffile_name_directory, make_temp_name)
2911 (Fexpand_file_name, search_embedded_absfilename)
2912 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
2913 (auto_save_error): Likewise.
2914 * fns.c (Fstring_equal, Fcopy_sequence, concat)
2915 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
2916 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
2917 (Fmake_hash_table): Likewise.
2918 * fringe.c (Fdefine_fringe_bitmap): Likewise.
2919 * ftfont.c (ftfont_text_extents): Likewise.
2920 * getloadavg.c (getloadavg): Likewise.
2921 * image.c (define_image_type, make_image, make_image_cache)
2922 (x_create_x_image_and_pixmap, xbm_image_p)
2923 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
2924 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
2925 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
2926 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
2927 (tiff_image_p, tiff_read_from_memory, gif_image_p)
2928 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
2929 Likewise.
2930 * indent.c (scan_for_column, compute_motion): Likewise.
2931 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
2932 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
2933 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
2934 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
2935 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
2936 (store_user_signal_events, menu_bar_items, tool_bar_items)
2937 (process_tool_bar_item, append_tool_bar_item)
2938 (read_char_minibuf_menu_prompt, read_key_sequence)
2939 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
2940 Likewise.
2941 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
2942 Likewise.
2943 * lisp.h (STRING_COPYIN): Likewise.
2944 * lread.c (Fload, read1, oblookup): Likewise.
2945 * msdos.c (Frecent_doskeys): Likewise.
2946 * nsfns.m (Fx_create_frame): Likewise.
2947 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
2948 Likewise.
2949 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
2950 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
2951 Likewise.
2952 * nsmenu.m (ns_update_menubar): Likewise.
2953 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
2954 * print.c (print_unwind, printchar, strout, print_string)
2955 (print_error_message): Likewise.
2956 * process.c (conv_lisp_to_sockaddr, set_socket_option)
2957 (Fmake_network_process, Fnetwork_interface_list)
2958 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
2959 (init_process): Likewise.
2960 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
2961 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
2962 Likewise.
2963 * scroll.c (do_scrolling, do_direct_scrolling)
2964 (scrolling_max_lines_saved): Likewise.
2965 * search.c (search_buffer, wordify, Freplace_match): Likewise.
2966 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
2967 * syntax.c (skip_chars, skip_syntaxes): Likewise.
2968 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
2969 (emacs_set_tty): Likewise.
2970 * term.c (encode_terminal_code, calculate_costs)
2971 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
2972 Likewise.
2973 * termcap.c (tgetst1, gobble_line): Likewise.
2974 * termhooks.h (EVENT_INIT): Likewise.
2975 * tparam.c (tparam1): Likewise.
2976 * unexalpha.c (unexec): Likewise.
2977 * unexec.c (write_segment): Likewise.
2978 * unexmacosx.c (unexec_write_zero): Likewise.
2979 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
2980 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
2981 * w32font.c (w32font_list_family, w32font_text_extents)
2982 (w32font_list_internal, w32font_match_internal)
2983 (w32font_open_internal, compute_metrics, Fx_select_font):
2984 Likewise.
2985 * w32menu.c (set_frame_menubar, add_menu_item)
2986 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
2987 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
2988 * w32uniscribe.c (uniscribe_list_family): Likewise.
2989 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
2990 * window.c (make_window, replace_window, set_window_buffer)
2991 (Fsplit_window): Likewise.
2992 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
2993 (add_to_log, message3, x_consider_frame_title)
2994 (append_space_for_newline, extend_face_to_end_of_line)
2995 (decode_mode_spec_coding, init_glyph_string): Likewise.
2996 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
2997 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
2998 (face_attr_equal_p, make_realized_face, make_face_cache)
2999 (free_realized_faces, lookup_named_face, smaller_face)
3000 (face_with_height, lookup_derived_face)
3001 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
3002 (Finternal_set_font_selection_order, realize_default_face)
3003 (compute_char_face, face_at_buffer_position)
3004 (face_for_overlay_string, face_at_string_position, merge_faces):
3005 Likewise.
3006 * xfns.c (xic_create_fontsetname, Fx_create_frame)
3007 (Fx_window_property, x_create_tip_frame)
3008 (Fx_backspace_delete_keys_p): Likewise.
3009 * xfont.c (xfont_list, xfont_match, xfont_list_family)
3010 (xfont_text_extents): Likewise.
3011 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
3012 * xrdb.c (magic_file_p, x_get_resource): Likewise.
3013 * xselect.c (x_queue_event, x_get_window_property)
3014 (receive_incremental_selection): Likewise.
3015 * xsmfns.c (x_session_check_input): Likewise.
3016 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
3017 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
3018 Likewise.
3019 * character.h (BCOPY_SHORT): Removed.
3020 * config.in: Regenerate.
3021 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
3022 * emacs.c (main) [PROFILING]: Don't declare
3023 dump_opcode_frequencies.
3024 * lisp.h (safe_bcopy): Remove declaration.
3025 (memset) [!HAVE_MEMSET]: Declare.
3026 (memcpy) [!HAVE_MEMCPY]: Likewise.
3027 (memmove) [!HAVE_MEMMOVE]: Likewise.
3028 (memcmp) [!HAVE_MEMCMP]: Likewise.
3029 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
3030 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
3031 Don't define.
3032 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
3033 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
3034 (BCOPY_DOWNWARD_SAFE): Don't define.
3035 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
3036 (memcpy) [!HAVE_MEMCPY]: Define.
3037 (memmove) [!HAVE_MEMMOVE]: Define.
3038 (memcmp) [!HAVE_MEMCMP]: Define.
3039
cb768704
J
30402010-07-07 Jan Djärv <jan.h.d@swipnet.se>
3041
3042 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
3043 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
3044 New functions.
cb768704
J
3045 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
3046 select on empty input mask.
3047 (init_process): Initialize kbd_is_on_hold to 0.
3048
3049 * process.h (hold_keyboard_input, unhold_keyboard_input)
3050 (kbd_on_hold_p): Declare.
3051
3052 * keyboard.c (input_available_signal): Declare.
3053 (kbd_buffer_nr_stored): New function.
3054 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
3055 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
3056 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
3057 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
3058 (tty_read_avail_input): If input is on hold, return.
3059 Don't read more that free slots in kbd_buffer (Bug#6571).
3060
3a8ce822
EZ
30612010-07-07 Eli Zaretskii <eliz@gnu.org>
3062
3063 * msdos.h:
3064 * msdos.c:
3065 * dosfns.c:
3066 * w16select.c: Convert function definitions to ANSI C.
3067
a628ad9d
JB
3068 * msdos.h (ctrl_break_func, install_ctrl_break_check):
3069 Remove unused prototypes.
3a8ce822 3070
cf84bb53
JB
30712010-07-07 Juanma Barranquero <lekktu@gmail.com>
3072
3073 * coding.c, sysdep.c: Convert some more functions to standard C.
3074
1a4990fb
JB
30752010-07-07 Juanma Barranquero <lekktu@gmail.com>
3076
3077 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
3078 (encode_coding_object): Use SPECPDL_INDEX.
3079 (syms_of_coding): Use DOS_NT.
3080
c0f2f16b
DN
30812010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
3082
48fb6855
DN
3083 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
3084
c0f2f16b
DN
3085 Make the function member of Lisp_Subr use standard C prototypes.
3086 * lisp.h (struct Lisp_Subr): Use a union for the function member.
3087 (DECL_ALIGN): Add a cast for the function.
3088 * eval.c (Feval, Ffuncall): Use the proper type for each type
3089 function call.
3090
67aecef9
CY
30912010-07-06 Chong Yidong <cyd@stupidchicken.com>
3092
3093 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
3094 fringe face id, so face-remapping-alist works (Bug#6091).
3095
b56ceb92
JB
30962010-07-06 Juanma Barranquero <lekktu@gmail.com>
3097
3098 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
3099 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
3100 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
3101
7af07b96
AS
31022010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3103
3104 * xterm.c (x_get_keysym_name): Change type of parameter to int.
3105 * lisp.h: Declare x_get_keysym_name.
3106 * keyboard.c (modify_event_symbol): Don't declare
3107 x_get_keysym_name here.
3108
69e24e34
DN
31092010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
3110
3111 * ecrt0.c: Revert conversion to standard C.
3112
d3da34e0 31132010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
3114
3115 * vm-limit.c (memory_warnings):
3116 * keyboard.c (modify_event_symbol):
3117 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
3118 (round2, emacs_rint):
3119 * process.c (send_process, old_sigpipe): Convert function
3120 definitions and declarations to standard C.
3121
31222010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
3123
3124 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
3125 * xdisp.c: Convert function definitions to standard C.
3126
3127 * cm.c (cmputc): Arg C is now int, not char.
3128 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
3129
00be444c
J
31302010-07-05 James Cloos <cloos@jhcloos.com>
3131
3132 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
3133
3134 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
3135 _NET_WM_ICON_NAME atoms.
3136
3137 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
3138 and _NET_WM_ICON_NAME properties, too, matching what is
3139 done in the Gtk+ case.
3140
e4c8d29a
J
31412010-07-05 Jan Djärv <jan.h.d@swipnet.se>
3142
ff919460
J
3143 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
3144
e4c8d29a
J
3145 * xsmfns.c (SSDATA): New macro.
3146 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
3147 passed to strlen/strcpy/strcat.
3148 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
70e31436 3149 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
3150
3151 * xsettings.c (something_changedCB, parse_settings)
3152 (apply_xft_settings): Reformat prototype.
3153 (something_changedCB, init_gconf): Remove unused variable i.
3154 (read_settings): Remove unused variable long_len.
3155
3156 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
3157 (xg_get_image_for_pixmap, create_dialog)
3158 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
3159 (menuitem_highlight_callback, make_menu_item)
3160 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
3161 (xg_create_scroll_bar, xg_update_scrollbar_pos)
3162 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
3163 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
3164 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
3165 (xg_tool_bar_item_expose_callback): Reformat prototype.
3166 (xg_update_menubar): GList *group => GSList *group.
3167 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
3168 before use.
3169 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
3170 to GTK_IMAGE (wimage).
3171
dd4c5104
DN
31722010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
3173
898b4c5c
DN
3174 * atimer.c: Use "" instead of <> for local includes for
3175 consistency with the rest of the code.
3176
dd4c5104
DN
3177 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
3178 * xrdb.c (get_system_name):
3179 * window.c (shrink_windows):
3180 * syntax.c (forw_comment):
3181 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
3182 (ins_del_costs):
3183 * mem-limits.h (start_of_data):
3184 * lread.c (readevalloop):
3185 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
3186 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
3187 * frame.c (x_get_focus_frame):
3188 * floatfns.c (fmod_float):
3189 * fileio.c (choose_write_coding_system):
3190 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
3191 (malloc_initialize_hook, sort_args, synchronize_locale):
3192 * doprnt.c (doprnt):
3193 * dired.c (compile_pattern):
3194 * data.c (fmod_float):
3195 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
3196 (map_char_table_for_charset):
3197 * charset.c (define_charset_internal):
3198 * alloc.c (Fgarbage_collect): Convert declarations or definitions
3199 to standard C.
3200
9a39b306 32012010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 3202 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
3203
3204 * lread.c (read1): Fix up last change to not mess up `c'.
3205
e6cb2cbb
JB
32062010-07-04 Juanma Barranquero <lekktu@gmail.com>
3207
3208 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
3209
438105ed
JB
32102010-07-04 Juanma Barranquero <lekktu@gmail.com>
3211
3212 Fix prototypes.
3213
e5447b22 3214 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 3215 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
3216 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
3217 arg, as required by internal_condition_case_1.
dcc7404b 3218 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
3219 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
3220 (analyse_first): Fix "const const".
e5447b22 3221 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 3222 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 3223 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 3224
971de7fb
DN
32252010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
3226
3227 * alloc.c: Convert function definitions to standard C.
3228 * atimer.c:
3229 * bidi.c:
3230 * bytecode.c:
3231 * callint.c:
3232 * callproc.c:
3233 * casefiddle.c:
3234 * casetab.c:
3235 * category.c:
3236 * ccl.c:
3237 * character.c:
3238 * charset.c:
3239 * chartab.c:
3240 * cmds.c:
3241 * coding.c:
3242 * composite.c:
3243 * data.c:
3244 * dbusbind.c:
3245 * dired.c:
3246 * dispnew.c:
3247 * doc.c:
3248 * doprnt.c:
3249 * ecrt0.c:
3250 * editfns.c:
3251 * fileio.c:
3252 * filelock.c:
3253 * filemode.c:
3254 * fns.c:
3255 * font.c:
3256 * fontset.c:
3257 * frame.c:
3258 * fringe.c:
3259 * ftfont.c:
3260 * ftxfont.c:
3261 * gtkutil.c:
3262 * indent.c:
3263 * insdel.c:
3264 * intervals.c:
3265 * keymap.c:
3266 * lread.c:
3267 * macros.c:
3268 * marker.c:
3269 * md5.c:
3270 * menu.c:
3271 * minibuf.c:
3272 * prefix-args.c:
3273 * print.c:
3274 * ralloc.c:
3275 * regex.c:
3276 * region-cache.c:
3277 * scroll.c:
3278 * search.c:
3279 * sound.c:
3280 * strftime.c:
3281 * syntax.c:
3282 * sysdep.c:
3283 * termcap.c:
3284 * terminal.c:
3285 * terminfo.c:
3286 * textprop.c:
3287 * tparam.c:
3288 * undo.c:
3289 * unexelf.c:
3290 * window.c:
3291 * xfaces.c:
3292 * xfns.c:
3293 * xfont.c:
3294 * xftfont.c:
3295 * xgselect.c:
3296 * xmenu.c:
3297 * xrdb.c:
3298 * xselect.c:
3299 * xsettings.c:
3300 * xsmfns.c:
3301 * xterm.c: Likewise.
3302
ae492bec
EZ
33032010-07-03 Eli Zaretskii <eliz@gnu.org>
3304
76ea4cc9
EZ
3305 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
3306 frames other than the initial one. Fix reversal of colors when
3307 `reverse' is specified in the frame parameters. Call
3308 update_face_from_frame_parameter instead of
3309 internal-set-lisp-face-attribute. Initialize screen colors from
3310 initial_screen_colors[] when f->default_face_done_p is zero,
3311 instead of depending on being called with default-frame-alist as
3312 the alist argument.
3313
3314 * xfaces.c (update_face_from_frame_parameter): Move out of
3315 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
3316 with HAVE_WINDOW_SYSTEM.
3317
1e6255ae
EZ
3318 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
3319 to menu-bar-mode, if not set in the frame parameters or in
3320 default-frame-alist.
3321
ae492bec
EZ
3322 * w32console.c (sys_tputs): Adjust argument list to prototype in
3323 term.c.
3324
3a35a84c
JB
33252010-07-03 Juanma Barranquero <lekktu@gmail.com>
3326
3327 * lisp.h (memory_warnings): Fix prototype.
3328
3329 * cm.h (evalcost): Fix prototype.
3330
3331 * cm.c (evalcost): Fix arg type.
3332
c532d349
DN
33332010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
3334
3335 * term.c (term_clear_mouse_face, Fidentity):
3336 * syssignal.h (signal_handler_t):
3337 * lisp.h (memory_warnings):
3338 * coding.h (preferred_coding_system):
3339 * cm.h (evalcost):
3340 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
3341
c0b36d46
EZ
33422010-07-02 Eli Zaretskii <eliz@gnu.org>
3343
3344 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
3345 from prototypes.
3346
3347 * msdos.h (load_pixmap): Don't define away.
3348
383e0970
J
33492010-07-02 Jan Djärv <jan.h.d@swipnet.se>
3350
f57e2426
J
3351 * lisp.h:
3352 * atimer.h: Remove define for P_.
3353
3354 * alloc.c: Remove __P and P_ from .c and .m files.
3355 * atimer.c:
3356 * buffer.c:
3357 * callint.c:
3358 * category.c:
3359 * charset.c:
3360 * chartab.c:
3361 * cm.c:
3362 * coding.c:
3363 * composite.c:
3364 * data.c:
3365 * dired.c:
3366 * dispnew.c:
3367 * doc.c:
3368 * editfns.c:
3369 * emacs.c:
3370 * eval.c:
3371 * fileio.c:
3372 * filelock.c:
3373 * fns.c:
3374 * font.c:
3375 * fontset.c:
3376 * frame.c:
3377 * ftfont.c:
3378 * ftxfont.c:
3379 * gmalloc.c:
3380 * gtkutil.c:
3381 * image.c:
3382 * indent.c:
3383 * intervals.c:
3384 * keyboard.c:
3385 * keymap.c:
3386 * lread.c:
3387 * marker.c:
3388 * menu.c:
3389 * minibuf.c:
3390 * print.c:
3391 * process.c:
3392 * scroll.c:
3393 * search.c:
3394 * sound.c:
3395 * strftime.c:
3396 * syntax.c:
3397 * sysdep.c:
3398 * term.c:
3399 * terminal.c:
3400 * textprop.c:
3401 * unexalpha.c:
3402 * w32console.c:
3403 * w32fns.c:
3404 * w32font.c:
3405 * w32menu.c:
3406 * w32term.c:
3407 * w32uniscribe.c:
3408 * window.c:
3409 * xdisp.c:
3410 * xfaces.c:
3411 * xfns.c:
3412 * xfont.c:
3413 * xftfont.c:
3414 * xmenu.c:
3415 * xselect.c:
3416 * xterm.c: Likewise.
3417
383e0970 3418 Remove P_ and __P macros.
f57e2426
J
3419 * atimer.h: Remove P_ and __P macros.
3420 * buffer.h:
383e0970
J
3421 * category.h:
3422 * ccl.h:
3423 * character.h:
3424 * charset.h:
3425 * cm.h:
3426 * coding.h:
3427 * composite.h:
3428 * dispextern.h:
3429 * disptab.h:
9e892c8d 3430 * dosfns.h:
383e0970
J
3431 * font.h:
3432 * fontset.h:
3433 * frame.h:
3434 * gtkutil.h:
3435 * indent.h:
3436 * intervals.h:
3437 * keyboard.h:
3438 * keymap.h:
3439 * lisp.h:
3440 * macros.h:
3441 * md5.h:
3442 * menu.h:
3443 * msdos.h:
3444 * nsterm.h:
3445 * puresize.h:
3446 * region-cache.h:
3447 * syntax.h:
3448 * syssignal.h:
3449 * systime.h:
3450 * termhooks.h:
9e892c8d 3451 * w32font.h:
383e0970
J
3452 * w32term.h:
3453 * widget.h:
3454 * window.h:
3455 * xgselect.h:
3456 * xsettings.h:
3457 * xterm.h: Likewise.
3458
98601119
DN
34592010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
3460
d9170db5
DN
3461 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
3462
98601119
DN
3463 Cleanup old code.
3464 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
3465 * syssignal.h: Remove code for Lynx, not supported anymore.
3466 * vm-limit.c: Remove unused code the depends on emacs not being
3467 defined and NO_LIM_DATA being defined.
3468 * mem-limits.h: Remove dead code.
3469
1f984e12
J
34702010-07-01 Jan Djärv <jan.h.d@swipnet.se>
3471
c49d071a
J
3472 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
3473
9d5405ec
J
3474 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
3475 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
3476
7a18115b
J
3477 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
3478 parameters, they are already absolute.
3479
a628ad9d
JB
3480 * nsterm.m (x_set_window_size, initFrameFromEmacs):
3481 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 3482
a628ad9d 3483 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 3484
a628ad9d
JB
3485 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
3486 Update FRAME_TOOLBAR_HEIGHT.
581a8100 3487
a628ad9d
JB
3488 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
3489 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 3490
c1ef4455
CY
34912010-06-30 Chong Yidong <cyd@stupidchicken.com>
3492
3493 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
3494 check default-frame-alist.
3495
ce8f5a9a
AS
34962010-06-30 Andreas Schwab <schwab@linux-m68k.org>
3497
3498 * process.c (create_process): Avoid using invalid file descriptors.
3499
3500 * callproc.c (child_setup): Avoid closing a file descriptor twice.
3501
bf935339
J
35022010-06-30 Jan Djärv <jan.h.d@swipnet.se>
3503
3504 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
3505 Improve documentation. Return font regardless of use_system_font.
3506 (syms_of_xsettings): Improve documentation for font-use-system-font.
3507
7c33a057
CY
35082010-07-10 Chong Yidong <cyd@stupidchicken.com>
3509
2ec1b5ee
CY
3510 * xfaces.c (realize_face): Garbage the frame if a face is removed
3511 (Bug#6593).
3512
35132010-07-05 Andreas Schwab <schwab@linux-m68k.org>
3514
3515 * keyboard.c: Remove duplicate <setjmp.h>.
3516 (read_key_sequence): Remove volatile qualifiers.
3517
35182010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3519
3520 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
3521 (struct glyph_row): New members left_fringe_offset and
3522 right_fringe_offset.
3523
3524 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
3525 specially.
3526 * w32term.c (w32_draw_fringe_bitmap): Likewise.
3527 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
3528
3529 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 3530 Take account of bitmap offset.
2ec1b5ee
CY
3531 (draw_window_fringes): Take account of window vscroll.
3532 (update_window_fringes): Likewise. Extend top-aligned top indicator
3533 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
3534 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
3535 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
3536
35372010-07-04 Juanma Barranquero <lekktu@gmail.com>
3538
3539 * w32fns.c (Qtooltip): Declare.
3540 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
3541
35422010-07-03 Jan Djärv <jan.h.d@swipnet.se>
3543
3544 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
3545 grab on just Press (Bug#6499).
3546
35472010-07-02 Chong Yidong <cyd@stupidchicken.com>
3548
3549 * frame.c (Qtooltip): New var.
3550 (delete_frame): Use it. Fix faulty if statement. Don't update
3551 mode line for tooltip frames. Suggested by Martin Rudalics.
3552
3553 * xfns.c (x_create_tip_frame):
3554 * w32fns.c (x_create_tip_frame): Use it.
3555
35562010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
3557
3558 * xftfont.c (xftfont_open): Check font width one by one also when
3559 spacing is dual.
3560
3561 * ftfont.c (ftfont_open): Ditto.
3562
6259c2ec
GM
35632010-06-30 Glenn Morris <rgm@gnu.org>
3564
a46007e9
GM
3565 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
3566
6259c2ec
GM
3567 * Makefile.in (CANNOT_DUMP): Update for configure name change.
3568
3569 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
3570 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
3571 * s/darwin.h (SYSTEM_MALLOC):
3572 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
3573
5d1d3d04
J
35742010-06-29 Jan Djärv <jan.h.d@swipnet.se>
3575
3576 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
3577 (ns_get_screen): Don't assign integer to f.
3578 (Fx_display_color_cells): Declarations before statements.
3579
e547b051
J
35802010-06-28 Jan Djärv <jan.h.d@swipnet.se>
3581
5fc8e5bc
J
3582 * xfns.c (x_default_font_parameter): Remove got_from_system
3583 (Bug#6526).
3584
e547b051
J
3585 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
3586 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
3587 defines based on what configure finds.
3588
3589 * xterm.c (XTflash): Use gtk_widget_get_window.
3590 (xg_scroll_callback): Use gtk_adjustment_get_upper and
3591 gtk_adjustment_get_page_size.
3592 (handle_one_xevent): Use gtk_widget_get_mapped.
3593 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
3594 messages.
3595
3596 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
3597
3598 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
3599 HAVE_GTK_FILE_SELECTION_NEW.
3600
3601 * gtkutil.c (xg_display_open, xg_display_close): Remove
3602 HAVE_GTK_MULTIDISPLAY, it is always defined.
3603 (xg_display_open): Return type is void.
3604 (gtk_widget_set_has_window)
3605 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
3606 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
3607 (gtk_adjustment_set_page_increment)
3608 (gtk_adjustment_get_step_increment): #define these if not found
3609 by configure.
3610 (remove_submenu): New define based on Gtk+ version.
3611 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
3612 gtk_widget_get_window.
3613 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
3614 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
3615 (create_dialog): Use gtk_dialog_get_action_area and
3616 gtk_dialog_get_content_area.
3617 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
3618 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
3619 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
3620 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
3621 g_object_ref and g_object_unref.
3622 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
3623 gtk_widget_get_sensitive.
3624 (xg_update_submenu): Use remove_submenu.
3625 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
3626 properties instead to get old x and y position.
3627 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
3628 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 3629 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
3630 (xg_get_tool_bar_widgets): New function.
3631 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
3632 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
3633 (toolbar_set_orientation): New #define based on if configure
3634 finds gtk_orientable_set_orientation.
3635 (xg_create_tool_bar): Call toolbar_set_orientation.
3636 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
3637 instead of gtk_box_pack_start_defaults.
3638
b9229673
CY
36392010-06-28 Chong Yidong <cyd@stupidchicken.com>
3640
3641 * cmds.c (Fdelete_backward_char): Move into Lisp.
3642
bbc803b0
DN
36432010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
3644
3645 * s/freebsd.h (BSD4_2): Remove redundant definition.
3646 bsd-common.h defines it already.
3647
6431f2e6
CY
36482010-06-27 Chong Yidong <cyd@stupidchicken.com>
3649
3650 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
3651 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
3652 tool-bar-mode, which are now set using these X resources at
3653 startup, to determine the defaults (Bug#2249).
3654
3655 * w32fns.c (Fx_create_frame):
3656 * nsfns.m (Fx_create_frame): Likewise.
3657
3658 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
3659
8c079ebb
JB
36602010-06-24 Juanma Barranquero <lekktu@gmail.com>
3661
3662 * gtkutil.c (xg_update_scrollbar_pos):
3663 Avoid C99 mid-block variable declaration.
3664
e9b7ab96
JD
36652010-06-22 Jan Djärv <jan.h.d@swipnet.se>
3666
bc869eca
JD
3667 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
3668
2b7e356a 3669 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
3670
3671 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
3672 if height is less than scroll bar min size.
3673 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
3674
e9b7ab96
JD
3675 * xfns.c (x_default_font_parameter): Try to open font from system
3676 before using it (bug#6478). Rename got_from_gconf to got_from_system.
3677
a628ad9d 36782010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
3679
3680 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
3681
70c4cfbb
EZ
36822010-06-20 Eli Zaretskii <eliz@gnu.org>
3683
3684 * xdisp.c (try_scrolling): When scroll-conservatively is set to
3685 most-positive-fixnum, be extra accurate when scrolling window
3686 start, to avoid missing the cursor line.
3687
ad5a12b5
EZ
36882010-06-19 Eli Zaretskii <eliz@gnu.org>
3689
3690 * xdisp.c (try_scrolling): Compute the limit for searching point
3691 in forward scroll from scroll_max, instead of an arbitrary limit
3692 of 10 screen lines. See
3693 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
3694 and
3695 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
3696 for details.
3697
2a64315a 36982010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
3699
3700 * editfns.c (Fbyte_to_string): Pacify compiler.
3701
288cf4e9
SM
37022010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
3703
3704 * lread.c (read1): Phase out old-style backquotes a bit more.
3705
6e6e5760
EZ
37062010-06-12 Eli Zaretskii <eliz@gnu.org>
3707
cbc4fd20
EZ
3708 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
3709 bidimirror.h.
3710
3711 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
3712
317fbf33
EZ
3713 * bidi.c (bidi_initialize): Remove explicit initialization of
3714 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 3715 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 3716 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
3717
3718 * biditype.h: New file.
3719
cbc4fd20
EZ
3720 * bidimirror.h: New file.
3721
6e6e5760
EZ
3722 * window.c (syms_of_window): Doc fix (bug#6409).
3723
4176cba2
RF
37242010-06-12 Romain Francoise <romain@orebokech.com>
3725
3726 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
3727 ediff-hook.
3728
cb4bfcb5
GM
37292010-06-10 Glenn Morris <rgm@gnu.org>
3730
64c60c2f
GM
3731 * editfns.c (Fbyte_to_string): Pacify compiler.
3732
cb4bfcb5
GM
3733 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
3734
2ec1b5ee
CY
37352010-06-26 Andreas Schwab <schwab@linux-m68k.org>
3736
3737 * alloc.c (Fmake_byte_code): Don't access undefined argument
3738 (Bug#6517).
3739
37402010-06-25 Chong Yidong <cyd@stupidchicken.com>
3741
3742 * xdisp.c (next_element_from_image): Ensure that after-strings are
3743 read the next time we hit handle_stop (Bug#1336).
3744
37452010-06-23 Andreas Schwab <schwab@linux-m68k.org>
3746
3747 * lread.c (read1): Signal error if #s is not followed by paren.
3748
37492010-06-19 Chong Yidong <cyd@stupidchicken.com>
3750
3751 * image.c (free_image): Mark frame as garbaged (Bug#6426).
3752
3753 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
3754
37552010-06-15 Glenn Morris <rgm@gnu.org>
3756
3757 * editfns.c (Fbyte_to_string): Pacify compiler.
3758
e454a4a3
SM
37592010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
3760
3761 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
3762 Check `object's type before accessing its guts.
3763
c1b1acc2
DN
37642010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
3765
3766 * s/usg5-4.h: Fix previous change.
3767 Suggested by Lawrence Mitchell <wence@gmx.li>
3768
657d4c0b
AS
37692010-06-08 Andreas Schwab <schwab@linux-m68k.org>
3770
3771 * minibuf.c (Fall_completions): Add more checks.
3772
9b27fd9f
JB
37732010-06-08 Juanma Barranquero <lekktu@gmail.com>
3774
3775 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
3776
a99ebb40
DN
37772010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
3778
d7c5d87d
DN
3779 * lread.c (X_OK): Remove, unused.
3780
0263a941
DN
3781 * dispnew.c: Remove obsolete comment.
3782
a99ebb40
DN
3783 Remove INCLUDED_FCNTL.
3784 * xterm.c (INCLUDED_FCNTL):
3785 * callproc.c (INCLUDED_FCNTL):
3786 * alloc.c (INCLUDED_FCNTL):
3787 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
3788 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
3789
13b5221f
MR
37902010-06-07 Martin Rudalics <rudalics@gmx.at>
3791
3792 * window.c (Fselect_window): Move `record_buffer' up to the
3793 beginning of this function, so the buffer gets recorded
3794 even if the selected window does not change.
3795 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
3796
5220357f
JB
37972010-06-07 Juanma Barranquero <lekktu@gmail.com>
3798
3799 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
3800 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
3801
3085237c
DN
38022010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
3803
3804 Remove BSTRING related code, all platforms define it.
3805 * s/usg5-4.h (BSTRING): Remove definition.
3806 * s/template.h (BSTRING):
3807 * s/msdos.h (BSTRING):
3808 * s/ms-w32.h (BSTRING):
3809 * s/hpux10-20.h (BSTRING):
3810 * s/gnu-linux.h (BSTRING):
3811 * s/darwin.h (BSTRING):
3812 * s/cygwin.h (BSTRING):
3813 * s/bsd-common.h (BSTRING):
3814 * s/aix4-2.h (BSTRING): Likewise.
3815 * sysdep.c: Remove code depending on BSTRING not being defined.
3816
409f2919
JB
38172010-06-05 Juanma Barranquero <lekktu@gmail.com>
3818
3819 Remove obsolete macro BASE_LEADING_CODE_P.
3820 * character.h (BASE_LEADING_CODE_P): Remove.
3821 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
3822 * buffer.c (Fset_buffer_multibyte):
3823 * indent.c (scan_for_column, compute_motion):
3824 * insdel.c (count_combining_before, count_combining_after):
3825 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
3826
087fc47a
JB
38272010-06-04 Juanma Barranquero <lekktu@gmail.com>
3828
3829 Turn `directory-sep-char' into a noop.
3830
3831 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
3832 (DIRECTORY_SEP): Define unconditionally.
3833
3834 * s/ms-w32.h (DIRECTORY_SEP): Remove.
3835
3836 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
3837 call dostounix_filename directly.
3838
3839 * fileio.c (CORRECT_DIR_SEPS): Remove.
3840 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
3841 (Fsubstitute_in_file_name): Use dostounix_filename instead.
3842 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
3843 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
3844
3845 * w32proc.c (CORRECT_DIR_SEPS): Remove.
3846 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
3847
0eb7675e
AS
38482010-06-03 Andreas Schwab <schwab@linux-m68k.org>
3849
a628ad9d
JB
3850 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
3851 (Bug#6346)
0eb7675e 3852
78edd3b7
JB
38532010-06-03 Juanma Barranquero <lekktu@gmail.com>
3854
3855 * ccl.c (Fccl_program_p): Fix typo in docstring.
3856
eb697db5
DN
38572010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
3858
3859 Move UNEXEC definition to autoconf.
3860 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
3861 * s/sol2-10.h (UNEXEC):
3862 * s/irix6-5.h (UNEXEC):
3863 * s/hpux10-20.h (UNEXEC):
3864 * s/gnu-linux.h (UNEXEC):
3865 * s/darwin.h (UNEXEC):
3866 * s/cygwin.h (UNEXEC):
3867 * s/bsd-common.h (UNEXEC):
3868 * s/aix4-2.h (UNEXEC):
3869 * m/alpha.h (UNEXEC): Likewise.
3870 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
3871
aa3830c4
JB
38722010-06-03 Juanma Barranquero <lekktu@gmail.com>
3873
3874 Remove obsolete pre-unicode2 macros.
3875 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
3876 * composite.c (composition_reseat_it):
3877 * data.c (Faset):
3878 * fns.c (Ffillarray):
3879 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
3880 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
3881
d234d13e
JL
38822010-06-03 Juri Linkov <juri@jurta.org>
3883
3884 * buffer.c (Fother_buffer): Add CHECK_FRAME.
3885 (Fswitch_to_buffer): Remove unused variable `err'.
3886
0d4bcf4d
GM
38872010-06-03 Glenn Morris <rgm@gnu.org>
3888
e23dc1e2
GM
3889 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
3890
05b09564
GM
3891 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
3892 now that AH_BOTTOM does it.
3893
824e2978
GM
3894 * m/hp800.h (HAVE_ALLOCA):
3895 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
3896
0d4bcf4d
GM
3897 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
3898 Remove NOT_C_CODE tests, it is always true now.
3899
c55d2abf
DN
39002010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
3901
08a494a3
DN
3902 Fix config.h includes.
3903 * xsettings.c:
3904 * xgselect.c:
3905 * nsterm.m:
3906 * nsselect.m:
3907 * nsimage.m:
3908 * nsfont.m:
3909 * nsfns.m:
3910 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
3911 other files do.
3912
75934b1d
DN
3913 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
3914
9f32a766
DN
3915 * s/sol2-6.h: Remove obsolete comments.
3916
c55d2abf
DN
3917 Remove unnecessary alloca.h includes.
3918 * keymap.c: Do not include alloca.h, config.h does that.
3919 * sysdep.c: Likewise. Do not define fwrite, not used.
3920
06ac62b4
SM
39212010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
3922
3923 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
3924 the HAVE_TERMIO where it belongs (bug#6149).
3925
1ab8293c
SM
39262010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
3927
3928 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
3929 of bug#6305).
3930
6dcfd253
EZ
39312010-05-30 Eli Zaretskii <eliz@gnu.org>
3932
3933 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
3934 state is always cached (bug#6306).
3935
6d26bbb2
EZ
39362010-05-29 Eli Zaretskii <eliz@gnu.org>
3937
06fa4a23
EZ
3938 Fix cursor motion in bidi-reordered continued lines.
3939 * xdisp.c (try_cursor_movement): Backup to non-continuation line
3940 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
3941 over continuation lines in bidi-reordered buffers. Return
3942 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
3943 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
3944
f5783df3
MA
39452010-05-28 Michael Albinus <michael.albinus@gmx.de>
3946
3947 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
3948
7d56b2dd
KH
39492010-05-28 Kenichi Handa <handa@m17n.org>
3950
3951 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
3952 Don't sheck SPEC if it is nil.
3953 (font_list_entities): Call font_delete_unmatched if
b925d231 3954 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 3955
e58d4ff7
GM
39562010-05-28 Glenn Morris <rgm@gnu.org>
3957
3958 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
3959
f1a5d776
CY
39602010-05-27 Chong Yidong <cyd@stupidchicken.com>
3961
3962 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
3963 whether to trash.
3964 (internal_delete_file, Frename_file): Callers changed.
3965 (delete_by_moving_to_trash): Doc fix.
3966 (Fdelete_directory_internal): Don't move to trash.
3967
3968 * callproc.c (delete_temp_file):
3969 * buffer.c (Fkill_buffer): Callers changed.
3970
3971 * lisp.h: Update prototype.
3972
f44a59e6
CY
39732010-05-27 Chong Yidong <cyd@stupidchicken.com>
3974
3975 * xdisp.c (redisplay_window): After redisplay, check if point is
3976 still valid before setting it (Bug#6177).
3977
81ac4f35
GM
39782010-05-27 Glenn Morris <rgm@gnu.org>
3979
3980 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
3981 Convert comments to Makefile format.
3982
3983 * Makefile.in (bootstrap-clean): No more Makefile.c.
3984
ccd89fb3
GM
39852010-05-26 Glenn Morris <rgm@gnu.org>
3986
90278cb6
GM
3987 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
3988 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
3989
ccd89fb3
GM
3990 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3991 Remove.
3992 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3993
b7050583
KH
39942010-05-26 Kenichi Handa <handa@m17n.org>
3995
3996 * composite.c (composition_compute_stop_pos): Fix condition for
3997 backward scanning.
3998
e5458003
GM
39992010-05-25 Glenn Morris <rgm@gnu.org>
4000
c345fe90
GM
4001 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
4002 Move before TEMACS_LDFLAGS.
4003 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4004 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4005
2e0689ab
GM
4006 * Makefile.in (NOT_C_CODE): No longer define.
4007 (config.h): No longer include.
4008
8009a5e8
GM
4009 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
4010 variables it may reference.
4011
e5458003
GM
4012 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
4013 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
4014
10f72a37
KH
40152010-05-25 Kenichi Handa <handa@m17n.org>
4016
4017 * dispextern.h (struct composition_it): New members rule_idx and
4018 charpos.
4019
4020 * xdisp.c (set_iterator_to_next): While scanning backward, assume
4021 that the character positions of IT point the last character of the
4022 current grapheme cluster.
4023 (next_element_from_composition): Don't change character positions
4024 of IT.
4025 (append_composite_glyph): Set glyph->charpos to
4026 it->cmp_it.charpos.
4027
4028 * composite.c (autocmp_chars): Change the first argument to RULE,
4029 and try composition with RULE only.
4030 (composition_compute_stop_pos): Record the index number of the
4031 composition rule in CMP_IT->rule_idx.
4032 (composition_reseat_it): Call autocmp_chars repeatedly until the
4033 correct rule of the composition is found.
4034 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
4035 is at the last character of the current grapheme cluster when
4036 CMP_IT->reversed_p is nonzero.
4037
171eda53 40382010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 4039
171eda53
SM
4040 * editfns.c (Fbyte_to_string): New function.
4041
66a9f7f4
SM
40422010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
4043
4044 * process.c (Fmake_network_process): Set :host to nil if it's not used.
4045 Suggested by Masatake YAMATO <yamato@redhat.com>.
4046
d8c315d1
EZ
40472010-05-23 Eli Zaretskii <eliz@gnu.org>
4048
171eda53 4049 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 4050
f5b416d2 40512010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
4052
4053 * s/netbsd.h: If terminfo is found, use it in preference to
4054 termcap. (Bug#6190) [Backport from trunk]
4055
0416466c
EZ
40562010-05-19 Eli Zaretskii <eliz@gnu.org>
4057
11117830 4058 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
4059
4060 * dispextern.h (struct glyph_row): New members minpos and maxpos.
4061 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
4062 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
4063 and maxpos members instead of start.pos and end.pos, respectively.
4064
4065 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
4066 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
4067 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
4068 (try_window_reusing_current_matrix, try_window_id):
4069 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
4070 (init_from_display_pos, init_iterator): Use EMACS_INT for
4071 character and byte positions.
66a9f7f4 4072 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
4073 arguments for minimum and maximum buffer positions seen by
4074 display_line for this row. Don't use iterator to find the
4075 position following the maximum one; instead, increment the
11117830
EZ
4076 position found by display_line directly. Fix logic; eol_pos
4077 should be tested before the rest. Handle the case of characters
4078 delivered from display vector (bug#6036). Fix tests related to
4079 it->method. Handle the truncated_on_right_p rows.
4080 (RECORD_MAX_MIN_POS): New macro.
4081 (display_line): Use it to record the minimum and maximum buffer
4082 positions for glyphs in the row being assembled. Record the
4083 position of the newline that terminates the line. If word wrap is
4084 in effect, restore minimum and maximum positions seen up to the
4085 wrap point, when iterator returns to it.
4086 (try_window_reusing_current_matrix): Give up if in bidi-reordered
4087 row and cursor not already at point. Restore original pre-bidi
4088 code for unidirectional buffers.
d36fe237
EZ
4089
4090 * dispnew.c (increment_row_positions, check_matrix_invariants):
4091 Increment and check row->start.pos and row->end.pos, in addition
4092 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
4093
11117830
EZ
4094 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
4095 Display truncated_on_left_p and truncated_on_right_p flags.
4096 Formatting fixes.
4097 (pmtxrows): Display the ordinal number of each row. Don't display
4098 rows beyond the last one.
4099
4100 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
4101 it is not copied by bidi_copy_it.
4102
6e83d800
EZ
41032010-05-22 Eli Zaretskii <eliz@gnu.org>
4104
4105 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
4106 (Bug#6237)
4107
110683ad
CY
41082010-05-22 Chong Yidong <cyd@stupidchicken.com>
4109
4110 * image.c (Fimage_flush): Rename from image-refresh.
4111
98fe5161
CY
41122010-05-21 Chong Yidong <cyd@stupidchicken.com>
4113
4114 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
4115 just one window.
4116
4117 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
4118 (clear_image_cache): If the number of cached images is unusually
4119 large, decrease the cache eviction delay (Bug#6230).
4120
e8752c66
GM
41212010-05-21 Glenn Morris <rgm@gnu.org>
4122
66dbf213
GM
4123 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
4124 Move these rules to ns.mk.
4125 * ns.mk: New file.
4126
04384b2d
GM
4127 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
4128
e8752c66
GM
4129 * Makefile.in (CANNOT_DUMP): New, set by configure.
4130 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
4131
2e2bbddb
JL
41322010-05-20 Juri Linkov <juri@jurta.org>
4133
4134 * fileio.c (Fdelete_file): Change interative spec to use
4135 `read-file-name' like in `find-file-read-args' where the default
4136 value is `default-directory' instead of `buffer-file-name'.
4137 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
4138
31c4aaf6
KR
41392010-05-20 Kevin Ryde <user42@zip.com.au>
4140
4141 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
4142 (Voverriding_terminal_local_map, Vsystem_key_alist)
4143 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
4144
9d5cf9b6
GM
41452010-05-20 Glenn Morris <rgm@gnu.org>
4146
4147 * Makefile.in (DEPDIR): New constant.
4148 (DEPFLAGS): Set with configure, not cpp.
4149 (MKDEPDIR): New, set by configure.
4150 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
4151 (clean): Use $DEPDIR.
4152 (deps_frag): Include from configure.
4153 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
4154 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
4155
ead6f8f5
EZ
4156 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
4157 reallocation of the cache. (Bug#6210)
4158
7f34aec3
GM
41592010-05-19 Glenn Morris <rgm@gnu.org>
4160
d494e8f2
GM
4161 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
4162
c1d0dcfd
GM
4163 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
4164 (GNULIB_VAR): Remove.
4165 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
4166
4167 * m/ibms390x.h (LINKER):
4168 * m/macppc.h (LINKER) [GNU_LINUX]:
4169 * s/aix4-2.h (ORDINARY_LINK):
4170 * s/cygwin.h (LINKER):
4171 * s/darwin.h (ORDINARY_LINK):
4172 * s/gnu.h (ORDINARY_LINK):
4173 * s/netbsd.h (LINKER):
4174 * s/usg5-4.h (ORDINARY_LINK):
4175 Move to configure.
4176
7f34aec3
GM
4177 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
4178
754790b6
CY
41792010-05-18 Chong Yidong <cyd@stupidchicken.com>
4180
4181 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
4182 prevent stack overflow if number of arguments is too large
4183 (Bug#6214).
4184
161e44d1
JB
41852010-05-18 Juanma Barranquero <lekktu@gmail.com>
4186
4187 * charset.c (load_charset_map_from_file): Don't call close after fclose.
4188
be4ff9da
GM
41892010-05-18 Glenn Morris <rgm@gnu.org>
4190
9539dc5d
GM
4191 * s/gnu-linux.h: Combine two conditionals.
4192
4193 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
4194 $(POST_ALLOC_OBJ).
4195
40dc6bf4
GM
4196 * Makefile.in (RALLOC_OBJ): New, set by configure.
4197 (rallocobj): Replace with the previous variable.
4198 (otherobj): Use $RALLOC_OBJ.
4199
4200 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
4201 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
4202
be4ff9da
GM
4203 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
4204 (gmallocobj, vmlimitobj): Replace with previous two variables.
4205 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
4206
16455a85
GM
42072010-05-17 Glenn Morris <rgm@gnu.org>
4208
4209 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
4210 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
4211
5fdb7468
GM
42122010-05-16 Glenn Morris <rgm@gnu.org>
4213
7ca1f3f9
GM
4214 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
4215
7541dad5
GM
4216 * Makefile.in (clean): Get rid of HAVE_NS conditional.
4217
da53fab9
GM
4218 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
4219 trailing "/".
4220
b02a6645
GM
4221 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
4222 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
4223
8877ca0f
GM
4224 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
4225 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
4226 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
4227 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
4228 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
4229
5fdb7468
GM
4230 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
4231 Remove ${STARTFLAGS}, nothing ever sets it.
4232
95adb4b1
DN
42332010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
4234
4235 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
4236
676b6304
GM
42372010-05-16 Glenn Morris <rgm@gnu.org>
4238
9beab9ce
GM
4239 * Makefile.in (LIBX_BASE): Always define.
4240
8a95f0e7
GM
4241 * Makefile.in (LIBX_OTHER): Move out of cpp section.
4242
676b6304
GM
4243 * Makefile.in (LIBXT): Always define.
4244
6e546d18
GM
42452010-05-15 Glenn Morris <rgm@gnu.org>
4246
4235ca47 4247 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 4248
6e546d18
GM
4249 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
4250 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
4251
8c5ff6dd
KR
42522010-05-15 Ken Raeburn <raeburn@raeburn.org>
4253
560bb7ae 4254 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
4255 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
4256
8b4eb796
KR
4257 * emacs.c (main): Initialize initial-environment and
4258 process-environment before generating from env, not after.
4259
8c5ff6dd
KR
4260 Handle --version reasonably in CANNOT_DUMP configuration.
4261 * emacs.c (emacs_version, emacs_copyright): New string variables.
4262 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
4263 (syms_of_emacs): Defvar them, and initialize them from the C
4264 string variables.
4265 (main): If initialization hasn't been done, print initial version
4266 info from the C strings, instead of starting an interactive session.
4267
dbd3f723
EZ
42682010-05-15 Eli Zaretskii <eliz@gnu.org>
4269
d20e1419
EZ
4270 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
4271 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
4272 (bidi_paragraph_init): Remove redundant assertion that we are at
4273 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
4274
4275 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
4276 (syms_of_xdisp): Defsubr it.
4277
d36fe237
EZ
4278 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
4279
dbd3f723
EZ
4280 * Makefile.in: Fix MSDOS-related comments.
4281
02be533b
GM
42822010-05-15 Glenn Morris <rgm@gnu.org>
4283
1a82cca9
GM
4284 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
4285 (really-lwlib, really-oldXMenu): Always define.
4286 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
4287
3df7b338
GM
4288 * Makefile.in: Simplify cpp conditional.
4289
2b5f541b
GM
4290 * Makefile.in (${ns_appdir}): Simplify using umask.
4291
02be533b
GM
4292 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
4293
4e2db1fe
SM
42942010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
4295
4296 * eval.c (specbind): Remove left-over duplicate test.
4297 Disallow let-binding frame-local vars. Add comment.
4298
4b292a22
EZ
42992010-05-14 Eli Zaretskii <eliz@gnu.org>
4300
2fe72643 4301 Make the cache of bidi iterator states dynamically allocated.
1edbd309 4302 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
4303 (bidi_init_it): Call it.
4304 (bidi_cache_iterator_state): Enlarge the cache if needed.
4305
4e2db1fe 4306 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
4307 bidi_get_next_char_visually. All callers changed.
4308
82ebc97b
KH
43092010-05-14 Kenichi Handa <handa@m17n.org>
4310
4311 * dispextern.h (struct composition_it): New member reversed_p.
4312
4313 * composite.c (composition_compute_stop_pos): Search backward if
4314 ENDPOS < CHARPOS.
4315 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
4316 Set CMP_IT->reversed_p.
b4b6e17e 4317 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 4318
4e2db1fe
SM
4319 * xdisp.c (set_iterator_to_next):
4320 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
4321 scanning backward. Call composition_compute_stop_pos if scan
4322 direction is changed.
4323 (next_element_from_buffer): Call composition_compute_stop_pos with
4324 negative ENDPOS if we are scanning backward.
4325 (next_element_from_composition): Pay attention to
4326 IT->cmp_it.reversed_p.
4327
0e5d7800
KH
43282010-05-14 Kenichi Handa <handa@m17n.org>
4329
560bb7ae 4330 * font.c (font_range): Return the range for the font found at first.
0e5d7800 4331
cb027b32
GM
43322010-05-14 Glenn Morris <rgm@gnu.org>
4333
177b0288
GM
4334 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
4335
fbc00890
GM
4336 * Makefile.in (mktime, X11, register): Move undefs to configure.
4337
f14d1dfd
GM
4338 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
4339 (MSDOS_X_OBJ): New variable.
4340 (MSDOS_SUPPORT_REAL): New constant.
4341 (MSDOS_SUPPORT): Set as a variable, not with cpp.
4342 (obj): Use MSDOS_X_OBJ.
4343 (lisp): Use MSDOS_SUPPORT as a variable.
4344
11842bd8
GM
4345 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
4346 (GPM_MOUSE_SUPPORT): Now it's a constant.
4347 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
4348 not cpp.
4349
489d31a4 4350 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 4351 (ns_appresdir): Remove, unused.
e20f1f07 4352
489d31a4
GM
4353 * Makefile.in (SHELL): Move outside cpp section.
4354
cb027b32
GM
4355 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
4356
5a903aa9
GM
43572010-05-13 Glenn Morris <rgm@gnu.org>
4358
3369c79f
GM
4359 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
4360 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
4361
d5e982a6
GM
4362 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
4363 HAVE_WINDOW_SYSTEM must be too.
4364
6192e163
GM
4365 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
4366 (lisp): Remove WINNT_SUPPORT.
4367
472c5d6b
GM
4368 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
4369 Let configure set these variables (to empty) in this case as well.
4370
0116466b
GM
4371 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
4372 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
4373
5a903aa9
GM
4374 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
4375 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
4376 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
4377 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
4378 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 4379 the values output by configure.
5a903aa9
GM
4380 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
4381
1a0d7c06
GM
43822010-05-12 Glenn Morris <rgm@gnu.org>
4383
b5457f14
GM
4384 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
4385 (LINKER_WAS_SPECIFIED): Remove.
4386
1a0d7c06
GM
4387 * Makefile.in (LIB_GCC): Set using configure, not cpp.
4388 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
4389 * m/arm.h (LIB_GCC) [GNU_LINUX]:
4390 * s/cygwin.h (LIB_GCC):
4391 * s/freebsd.h (LIB_GCC):
4392 * s/gnu-linux.h (LIB_GCC):
4393 * s/msdos.h (LIB_GCC):
4394 * s/netbsd.h (LIB_GCC):
4395 Move to configure.
4396
3ffd4615 43972010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
4398
4399 * ftfont.c: Fix incorrect parentheses of #if condition for
4400 definining M17N_FLT_USE_NEW_FEATURE.
4401
acddf8ae
GM
44022010-05-11 Glenn Morris <rgm@gnu.org>
4403
4404 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
4405 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
4406
ae5e04fa
EZ
44072010-05-10 Eli Zaretskii <eliz@gnu.org>
4408
4409 * xdisp.c (init_iterator): Don't turn on bidi reordering in
4410 unibyte buffers. See
4411 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
4412
7490175b
GM
44132010-05-10 Glenn Morris <rgm@gnu.org>
4414
97efb629
GM
4415 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
4416 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
4417 (LIBES): Use LIBS_SYSTEM as a variable.
4418 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
4419 * s/aix4-2.h (LIBS_SYSTEM):
4420 * s/freebsd.h (LIBS_SYSTEM):
4421 * s/hpux10-20.h (LIBS_SYSTEM):
4422 * s/sol2-6.h (LIBS_SYSTEM):
4423 * s/unixware.h (LIBS_SYSTEM):
4424 Move to configure.
4425
7490175b
GM
4426 * s/aix4-2.h (MAIL_USE_LOCKF):
4427 * s/bsd-common.h (MAIL_USE_FLOCK):
4428 * s/darwin.h (MAIL_USE_FLOCK):
4429 * s/gnu-linux.h (MAIL_USE_FLOCK):
4430 * s/irix6-5.h (MAIL_USE_FLOCK):
4431 * s/template.h (MAIL_USE_FLOCK):
4432 Move to configure.
4433
0235128c 44342010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
4435
4436 * Version 23.2 released.
4437
0235128c 44382010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
4439
4440 * composite.c (autocmp_chars): Save point as marker before calling
4441 auto-composition-function (Bug#5984).
4442
4443 * lisp.h (restore_point_unwind): Add prototype.
4444
4445 * fileio.c (restore_point_unwind): Remove static attribute.
4446
0235128c 44472010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
4448
4449 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
4450 new feature of libotf and m17n-flt.
0235128c
SM
4451 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
4452 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
4453 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
4454 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
4455 that OUT is NULL. Use OTF_drive_gsub_with_log and
4456 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
4457 OTF_drive_gpos.
4458 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
4459 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
4460 Setup mflt_enable_new_feature and mflt_try_otf.
4461
4721152c
J
44622010-05-08 Jan Djärv <jan.h.d@swipnet.se>
4463
4464 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
4465
4466 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
4467 box and toolbar (Bug #6139).
4468 (xg_create_tool_bar): Remove comment (Bug #6139).
4469 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
4470 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
4471
ee0a16cf
JB
44722010-05-08 Juanma Barranquero <lekktu@gmail.com>
4473
4474 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
4475 Update dependencies.
4476
96d79611
EZ
44772010-05-08 Eli Zaretskii <eliz@gnu.org>
4478
4479 * fringe.c (update_window_fringes): Set up truncation bitmaps for
4480 R2L lines.
4481
40c17879
GM
44822010-05-08 Glenn Morris <rgm@gnu.org>
4483
7b42b29f
GM
4484 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
4485
40c17879
GM
4486 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
4487 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
4488 (termcapobj): Replace with TERMCAP_OBJ.
4489 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
4490 (LIBES): Use LIBS_TERMCAP as a variable.
4491
4492 * s/freebsd.h (osreldate.h): No longer include, since this file
4493 does not use __FreeBSD_version any more.
4494
4495 * s/aix4-2.h (TERMINFO):
4496 * s/cygwin.h (TERMINFO):
4497 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4498 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
4499 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4500 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4501 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
4502 * s/irix6-5.h (TERMINFO):
4503 * s/netbsd.h (LIBS_TERMCAP):
4504 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
4505 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
4506 * s/usg5-4.h (TERMINFO):
4507 Move to configure.
4508
94b612ad
SM
45092010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
4510
4511 * eval.c (unbind_to): Don't unbind a local binding into the global
4512 binding when the local binding disappeared. Inversely, don't unbind
4513 a global binding into a newly created local binding.
4514 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
4515 can specify the frame to use, when applicable. Adjust callers.
4516
15e12598 45172010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 4518 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
4519
4520 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
4521
f724825e
EZ
45222010-05-07 Eli Zaretskii <eliz@gnu.org>
4523
5cba3209
EZ
4524 * w32fns.c: Include w32.h.
4525 (Fw32_shell_execute): Decode the error message before passing it
4526 to `error'. (Bug#6126)
4527
d16bdfc3
EZ
4528 * msdos.c (dos_set_window_size):
4529 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
4530 instead of `XSYMBOL (foo)->value'.
4531
59d93e87
EZ
45322010-05-07 Eli Zaretskii <eliz@gnu.org>
4533
9fdec8bc
EZ
4534 Fix the MS-DOS build, broken by autoconfiscation.
4535
4536 * Makefile.in: Don't use Make-style comments past the "start of
4537 cpp stuff" line.
4538 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
4539
4540 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
4541 edited directly by msdos/sed1v2.inp).
f724825e 4542
2f86b22b
GM
45432010-05-07 Glenn Morris <rgm@gnu.org>
4544
4545 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
4546 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
4547 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
4548 move out of cpp section.
4549 * s/freebsd.h (LD_SWITCH_SYSTEM):
4550 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
4551 * s/netbsd.h (LD_SWITCH_SYSTEM):
4552 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
4553
49ebbd65
DN
45542010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
4555
4556 Define LIB_STANDARD and START_FILES using autoconf.
4557 * s/usg5-4.h (LIB_STANDARD):
4558 * s/netbsd.h (START_FILES):
4559 * s/irix6-5.h (LIB_STANDARD):
4560 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
4561 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4562 * s/freebsd.h (START_FILES):
4563 * s/darwin.h (START_FILES):
4564 * s/cygwin.h (START_FILES):
4565 * s/aix4-2.h (LIB_STANDARD):
4566 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
4567 * Makefile.in (STARTFILES): Rename to START_FILES, define using
4568 autoconf, not cpp.
4569
d43c06d6
DN
45702010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
4571
28823648
DN
4572 Remove NEED_BSDTTY and NEED_UNISTD_H.
4573 * s/hpux10-20.h (NEED_BSDTTY): Remove.
4574 * s/aix4-2.h (NEED_UNISTD_H): Remove.
4575 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
4576 <sys/ptyio.h> and <unistd.h>.
4577
aca00430
DN
4578 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
4579
d43c06d6
DN
4580 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
4581 * s/gnu.h (START_FILES): Remove empty definition.
4582
3e56b11d
JD
45832010-05-06 Jan Djärv <jan.h.d@swipnet.se>
4584
4585 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
4586
e3cf0cde
GM
45872010-05-06 Glenn Morris <rgm@gnu.org>
4588
4589 * Makefile.in (CPP, LN_S): Remove unused variables.
4590
774b9a60
SM
45912010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
4592
4593 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
4594
4ab92842
LM
45952010-05-05 Lawrence Mitchell <wence@gmx.li>
4596
4597 * m/sparc.h: Fix typo in earlier change.
4598
178f2507
SM
45992010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4600
4601 Misc tweaks.
4602 * eval.c (Fdefvaralias): Remove unintended nested if.
4603 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
4604
80f00217 46052010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
4606
4607 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
4608
ef03a4e6
DN
46092010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4610
58eb6cf0
DN
4611 Remove BSD_PGRPS.
4612 * s/bsd-common.h (BSD_PGRPS): Remove undef.
4613 * s/gnu-linux.h (BSD_PGRPS): Remove.
4614 * term.c (dissociate_if_controlling_tty):
4615 * sysdep.c (narrow_foreground_group, widen_foreground_group)
4616 (init_sys_modes, reset_sys_modes):
4617 * emacs.c (main):
4618 * callproc.c (Fcall_process, child_setup): Remove code depending
4619 on BSD_PGRPS.
4620
ef03a4e6
DN
4621 Remove POSIX_SIGNALS.
4622 * s/usg5-4.h (POSIX_SIGNALS):
4623 * s/netbsd.h (POSIX_SIGNALS):
4624 * s/msdos.h (POSIX_SIGNALS):
4625 * s/ms-w32.h (POSIX_SIGNALS):
4626 * s/hpux11.h (POSIX_SIGNALS):
4627 * s/gnu.h (POSIX_SIGNALS):
4628 * s/gnu-linux.h (POSIX_SIGNALS):
4629 * s/freebsd.h (POSIX_SIGNALS):
4630 * s/darwin.h (POSIX_SIGNALS):
4631 * s/cygwin.h (POSIX_SIGNALS):
4632 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
4633 * s/unixware.h:
4634 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
4635 * process.c (create_process):
4636 * syssignal.h:
4637 * sysdep.c (wait_for_termination, init_signals):
4638 * process.c (create_process):
4639 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
4640 remove all code that assumes the contrary.
4641
49628785
GM
46422010-05-04 Glenn Morris <rgm@gnu.org>
4643
27a2cdfc
GM
4644 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
4645 variable.
4646 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4647 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
4648 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4649 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
4650 LD_SWITCH_SYSTEM_tmp.
4651 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
4652 New variables, set by configure.
4653
eb21eab5
GM
4654 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4655 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
4656 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4657 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
4658 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
4659
49628785
GM
4660 * s/aix4-2.h (C_SWITCH_SYSTEM):
4661 * m/alpha.h (C_SWITCH_MACHINE):
4662 Move to configure.in.
4663 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
4664 New variables, set by configure.
4665 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
4666 $c_switch_machine and $c_switch_system.
4667
7dff330b
DN
46682010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4669
4670 * s/hpux10-20.h (LIB_STANDARD): New definition.
4671 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
4672 on it, not used anymore.
4673
53967e09
CY
46742010-05-03 Chong Yidong <cyd@stupidchicken.com>
4675
4676 * eval.c (internal_condition_case_n): Rename from
4677 internal_condition_case_2.
4678 (internal_condition_case_2): New function.
4679
4680 * xdisp.c (safe_call): Use internal_condition_case_n.
4681
4682 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
4683 (internal_delete_file, Frename_file): Callers changed.
4684
4685 * buffer.c (Fkill_buffer):
4686 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
4687
4688 * lisp.h: Update prototypes.
4689
3dee6fdb
GM
46902010-05-03 Glenn Morris <rgm@gnu.org>
4691
4692 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
4693 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
4694 (LIBXT): Set with configure, not cpp.
4695 (LIBX): Remove.
4696 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
4697
a101e0fb
DN
46982010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4699
4700 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
4701 The FreeBSD is not needed, the default works, Solaris version is
4702 not needed, and the remaining case is not supported by configure.
4703
f63d0028
JD
47042010-05-02 Jan Djärv <jan.h.d@swipnet.se>
4705
4706 * xsmfns.c (CHDIR_OPT): New define.
4707 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
4708 restarting emacs.
4709
4710 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
4711 shut_down_emacs.
4712
4713 * emacs.c (USAGE1): Mention --chdir.
4714 (main): Handle --chdir.
4715 (standard_args): Add --chdir.
4716 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
4717 #5552).
4718
e4814a9f
DN
47192010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
4720
cd03c74a
DN
4721 Remove LD_SWITCH_MACHINE.
4722 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
4723 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
4724
c3a398a1
DN
4725 Clean up IRIX code.
4726 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
4727 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
4728
87e7285c
DN
4729 Clean up AIX code.
4730 * m/ibmrs6000.inp: Remove file, unused.
4731 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
4732 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
4733 definition ...
4734 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
4735
80f00217
JB
4736 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
4737 unused.
e4814a9f 4738
59ca28de
EZ
47392010-05-01 Eli Zaretskii <eliz@gnu.org>
4740
197daef4
EZ
4741 Emulate POSIX_SIGNALS on MS-Windows.
4742
4743 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
4744 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
4745
4746 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
4747 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
4748 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
4749
80f00217
JB
4750 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
4751 New stubs.
197daef4 4752
af7c7572
EZ
4753 Miscellaneous fixes of bidi display.
4754
59ca28de
EZ
4755 * xdisp.c (find_row_end): New function, refactored from display_line.
4756 (display_line): Use it.
017ea819
EZ
4757 (extend_face_to_end_of_line): In almost-filled rows, extend only
4758 if the row is R2L and not continued.
166e930d 4759 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 4760 Preserve overlay and string info in row->end.
166e930d
EZ
4761 (insert_left_trunc_glyphs): Support addition of left truncation
4762 glyphs to R2L rows.
b47e0dcf 4763 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
4764 glyph between adjacent windows. Fix a crash when a display string
4765 is continued to the next line. Don't return zero if cursor was
4766 found by `cursor' property of a display string.
b47e0dcf
EZ
4767 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
4768 test for that explicitly.
59ca28de 4769
7acac9f4
GM
47702010-05-01 Glenn Morris <rgm@gnu.org>
4771
4772 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
4773 for clarity.
4774 (OTHER_OBJ): Remove.
4775 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
4776 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
4777
45841e65
KK
47782010-05-01 Karel Klíč <kklic@redhat.com>
4779
4780 * fileio.c (Ffile_selinux_context): Context functions may return null.
4781
afc61943
DN
47822010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
4783
80f00217 4784 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 4785
5a1bb006
GM
47862010-04-30 Glenn Morris <rgm@gnu.org>
4787
4788 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
4789 (OTHER_OBJ): Define as a separate variable, for clarity.
4790
210af043
J
47912010-04-30 Jan Djärv <jan.h.d@swipnet.se>
4792
4793 * xsettings.c: include limits.h and update file comment.
4794
0a7df391
GM
47952010-04-30 Glenn Morris <rgm@gnu.org>
4796
d5096f16
GM
4797 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
4798 Set with configure, not cpp.
4799 (LIBW): Remove, replace with $TOOLKIT_LIBW.
4800
7eb1ac33
GM
4801 * Makefile.in (mallocobj): Remove.
4802 (otherobj): Simplify using @OTHER_OBJ@.
4803
517d086b
GM
4804 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
4805 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
4806 Don't bother making nsgui.h dependency platform-specific.
4807
0a7df391
GM
4808 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
4809
d6d23852
SM
48102010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
4811
d2630aef
SM
4812 * process.c (read_process_output, exec_sentinel): Don't burp if the
4813 sentinel/filter kills the current buffer (bug#6060).
4814
f9dddf52 4815 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
4816 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
4817 Remove unused var `args'.
4818 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
4819 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
4820 * doc.c (store_function_docstring): Use XSETCAR.
4821
f1e3642a
GM
48222010-04-28 Glenn Morris <rgm@gnu.org>
4823
faf535f8
GM
4824 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
4825 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
4826
c40f9449
GM
4827 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
4828
658f86ca
GM
4829 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
4830 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
4831
bc0b5f61
GM
4832 * Makefile.in (FONT_OBJ): New, set by configure.
4833 (FONT_DRIVERS): Use $FONT_OBJ.
4834
294c50a0
GM
4835 * Makefile.in (LIBXMU): Set with configure, not cpp.
4836 * s/aix4-2.h (LIBXMU):
4837 * s/hpux10-20.h (LIBXMU):
4838 Remove definition, now set in configure.
4839
e6ec4e99
GM
4840 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
4841
f1e3642a
GM
4842 * m/amdx86-64.h [i386]: Move this test to configure.in.
4843
c6ea2936
GM
48442010-04-27 Glenn Morris <rgm@gnu.org>
4845
8fdac2c3
GM
4846 * Makefile.in (LIBXTR6): Set with configure, not cpp.
4847 * s/unixware.h (NEED_LIBW): Remove definition.
4848
986fb647
GM
4849 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
4850 (TOOLKIT_LIBW): New, set by configure.
4851 (@X_TOOLKIT_TYPE@): No longer define it.
4852
c6ea2936
GM
4853 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
4854 (MOTIF_LIBW): Set with configure, not cpp.
4855 * s/aix4-2.h (LIB_MOTIF):
4856 * s/gnu-linux.h (LIB_MOTIF):
4857 * s/unixware.h (LIB_MOTIF): Move to configure.in.
4858
aaa36002
DN
48592010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
4860
4861 Reduce CPP usage.
4862 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
4863 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
4864 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
4865 definitions and undefs. Inline definitions in the only user.
4866 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 4867
b678dd8b
GM
48682010-04-27 Glenn Morris <rgm@gnu.org>
4869
76cda504
GM
4870 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
4871 since the defaults (set by the system file) are fine in most cases.
4872 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
4873 * m/ibms390x.h (START_FILES, LIB_STANDARD):
4874 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
4875 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
4876 Remove definitions, since they are set correctly in s/gnu-linux.h.
4877 * s/freebsd.h (START_FILES, LIB_STANDARD):
4878 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4879 * s/hpux10-20.h (START_FILES):
4880 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
4881 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
4882
b678dd8b
GM
4883 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
4884 (MOTIF_LIBW): Use $LIBXP.
4885 (otherobj): Use $WIDGET_OBJ.
4886
9452ded1
DN
48872010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
4888
7e10844c
DN
4889 * Makefile.in (LIBS_MACHINE): Remove, unused.
4890
9452ded1
DN
4891 Use autoconf instead of cpp for LIB_MATH.
4892 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
4893 * s/cygwin.h (LIB_MATH): Likewise.
4894 * Makefile.in (LIB_MATH): Do not define with cpp.
4895 (LIBES): Use autoconf for LIB_MATH.
4896
fcebfc6a
KH
48972010-04-26 Kenichi Handa <handa@m17n.org>
4898
4899 * composite.c (Ffind_composition_internal): Fix the return value
4900 for an automatic composition.
4901
39e2ad1b
DN
49022010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
4903
4904 Remove all NO_ARG_ARRAY uses.
4905 * fns.c (concat2, concat3, nconc2):
4906 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
4907 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
4908 * m/xtensa.h (NO_ARG_ARRAY):
4909 * m/template.h (NO_ARG_ARRAY):
4910 * m/sparc.h (NO_ARG_ARRAY):
4911 * m/sh3.h (NO_ARG_ARRAY):
4912 * m/mips.h (NO_ARG_ARRAY):
4913 * m/macppc.h (NO_ARG_ARRAY):
4914 * m/iris4d.h (NO_ARG_ARRAY):
4915 * m/intel386.h (NO_ARG_ARRAY):
4916 * m/ibms390x.h (NO_ARG_ARRAY):
4917 * m/ibms390.h (NO_ARG_ARRAY):
4918 * m/ibmrs6000.h (NO_ARG_ARRAY):
4919 * m/ia64.h (NO_ARG_ARRAY):
4920 * m/hp800.h (NO_ARG_ARRAY):
4921 * m/arm.h (NO_ARG_ARRAY):
4922 * m/amdx86-64.h (NO_ARG_ARRAY):
4923 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
4924
adf4f59c
EZ
49252010-04-25 Eli Zaretskii <eliz@gnu.org>
4926
6bdf5d65
EZ
4927 * xdisp.c (display_line): Don't assume 2nd call to
4928 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
4929 (iterate_out_of_display_property): New function, body from pop_it.
4930 (pop_it): Use it.
adf4f59c 4931
dfbbda83
GM
49322010-04-24 Glenn Morris <rgm@gnu.org>
4933
4934 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
4935 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
4936 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
4937 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
4938
2d4018aa
EZ
49392010-04-24 Eli Zaretskii <eliz@gnu.org>
4940
a49884a6
EZ
4941 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
4942 use `get_next_display_element' and `set_iterator_to_next' to
4943 advance to the next character, when looking for the character that
4944 begins the next row.
4945
76db6fcc 4946 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
4947 definition of "struct Lisp_Symbol".
4948
70eab5c1
GM
49492010-04-24 Glenn Morris <rgm@gnu.org>
4950
4951 * Makefile.in (CRT_DIR): New variable, set by configure.
4952 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
4953 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
4954
1ad4cc3d
DN
49552010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4956
e769f484
DN
4957 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
4958
4196ff33
DN
4959 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
4960
879b0ee4
DN
4961 Remove redundant flags.
4962 * s/freebsd.h (C_SWITCH_SYSTEM):
4963 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
4964 * s/netbsd.h (C_SWITCH_SYSTEM):
4965 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
4966 of these.
4967
03cbbcb8
DN
4968 Simplify m/intel386.h.
4969 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
4970 user: ecrt0.c.
4971 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
4972 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
4973 the only user: s/unixware.h.
4974 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
4975 from m/intel386.h.
4976 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
4977 moved here from m/intel386.h.
4978
1ad4cc3d
DN
4979 * m/mips.h: Remove #if 0 code.
4980
8785b888
EZ
49812010-04-23 Eli Zaretskii <eliz@gnu.org>
4982
728588cc
EZ
4983 Fix display of composed characters from L2R scripts in bidi buffers.
4984 * xdisp.c (set_iterator_to_next, next_element_from_composition):
4985 After advancing IT past the composition, resync the bidi iterator
4986 with IT's position. (Bug#5977)
4987
a63f80b4
DN
49882010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4989
4990 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
4991 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
4992
ff5dec5c
SM
49932010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
4994
4995 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
4996
8785b888
EZ
49972010-04-23 Eli Zaretskii <eliz@gnu.org>
4998
58ccf243 4999 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
5000 * xdisp.c (pop_it): When the stack is popped after displaying
5001 from a string, bidi-iterate to exit from the text portion covered
5002 by the `display' property or overlay. (Bug#5988, bug#5920)
5003
feeb1604
DN
50042010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5005
8e324eb6
DN
5006 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
5007 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
5008
809fcaba
DN
5009 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
5010 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
5011
ed710380
DN
5012 Simplify STARTFILES definition.
5013 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
5014 relying on Makefile.in to define it.
5015 * s/cygwin.h (START_FILES): Likewise.
5016 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
5017
feeb1604
DN
5018 Clean up Solaris code.
5019 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
5020 (LIB_MOTIF): Remove, configure takes care of this.
5021 (NOT_USING_MOTIF): Remove, unused.
5022 * xrdb.c: Remove #if 0-ed #include.
5023 (SYSV): Remove conditional for old SysV.
5024 * sysdep.c (closedir): Remove conditional code for Solaris,
5025 Solaris has closedir.
5026
a0d0b563
JD
50272010-04-22 Jan Djärv <jan.h.d@swipnet.se>
5028
5029 * xsettings.c (read_and_apply_settings): Check if current_font is
5030 NULL before strcmp (Bug#6001).
5031
56bae7c7
DN
50322010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
5033
5034 Clean up HP-UX files.
5035 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
5036 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
5037 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
5038 * s/hpux10-20.h: ... to the only user, here.
5039
372b7a95
EZ
50402010-04-21 Eli Zaretskii <eliz@gnu.org>
5041
5042 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
5043 use buffer-local values of paragraph-start and paragraph-separate.
5044 <paragraph_start_re, paragraph_separate_re>: Rename from
5045 fallback_paragraph_start_re and fallback_paragraph_separate_re.
5046 (Bug#5992)
5047
f904c0f9
JD
50482010-04-21 Jan Djärv <jan.h.d@swipnet.se>
5049
5050 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
5051 current_tool_bar_style are new.
5052 (store_config_changed_event): Rename from store_font_changed_event.
5053 (XSETTINGS_TOOL_BAR_STYLE): New define.
5054 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
5055 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
5056 HAVE_XFT.
5057 (something_changedCB): store_font_changed_event is now
c4cc8b9a 5058 store_config_changed_event.
f904c0f9
JD
5059 (parse_settings): Rename from parse_xft_settings. Read
5060 non-xft xsettings outside #ifdef HAVE_XFT.
5061 (read_settings): Renamed from read_xft_settings.
5062 (apply_xft_settings): Take current settings as parameter. Do not
5063 call read_(xft)_settings.
5064 (read_and_apply_settings): New function.
5065 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
5066 read_and_apply_settings if there are settings to be read.
5067 (init_xsettings): Renamed from init_xfd_settings.
5068 Call read_and_apply_settings unconditionally.
5069 (xsettings_initialize): Call init_xsettings.
5070 (Ftool_bar_get_system_style): New function.
5071 (syms_of_xsettings): Define Qmonospace_font_name and
5072 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 5073 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 5074 dynamic-setting.
31a01b90 5075 Move misplaced HAVE_GCONF
f904c0f9
JD
5076
5077 * xsettings.h (Ftool_bar_get_system_style): Declare.
5078
5079 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
5080 Qtext, Qboth, Qboth_horiz are new.
5081 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
5082 Vtool_bar_style, tool_bar_max_label_size.
5083
5084 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
5085
5086 * keyboard.c: QClabel is new.
5087 (parse_tool_bar_item): Take out QClabel from tool bar items.
5088 Try to construct a label if ther is no QClabel.
5089 (syms_of_keyboard): Intern :label as QClabel.
5090
5091 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
5092 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
5093 New.
5094
5095 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
5096 dynamic-setting.el.
5097
5098 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
5099 (xg_make_tool_item, xg_show_toolbar_item): New function.
5100 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
5101 Call xg_make_tool_item to make a tool bar item.
5102 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
5103
5104 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
5105 into account for toolbars.
5106
c632dfda
JD
51072010-04-21 Jan Djärv <jan.h.d@swipnet.se>
5108
5109 * data.c (make_blv): Declarations before code (Bug#5993).
5110
10efe302
GM
51112010-04-21 Glenn Morris <rgm@gnu.org>
5112
5113 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
5114 Define using autoconf, not cpp.
5115 (LIBXSM): New variable, set by autoconf.
5116 (LIBXT): Use $LIBXSM.
5117
4285ac5a
DN
51182010-04-21 Dan Nicolaescu <local_user@dannlt>
5119
3ec759e7
DN
5120 Remove NOMULTIPLEJOBS, unused.
5121 * s/template.h (NOMULTIPLEJOBS):
5122 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
5123
4285ac5a
DN
5124 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
5125 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
5126 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
5127 detects -znocombreloc and passes it to the linker
5128 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
5129
2807228d
GM
51302010-04-21 Glenn Morris <rgm@gnu.org>
5131
5132 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
5133
574c05e2
KK
51342010-04-21 Karel Klíč <kklic@redhat.com>
5135
5136 * Makefile.in (LIBSELINUX_LIBS): New.
5137 (LIBES): Add $LIBSELINUX_LIBS.
5138 * eval.c, lisp.h (call7): New function.
5139 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
5140 (Ffile_selinux_context, Fset_file_selinux_context):
5141 New functions.
5142 (Fcopy_file): New parameter preserve-selinux-context.
5143 (Frename_file): Preserve selinux context when renaming by copy-file.
5144
91eac4bb 51452010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 5146 Eli Zaretskii <eliz@gnu.org>
91eac4bb 5147
50426a04
JB
5148 Don't depend on cm.c or termcap.c on Windows, use stubs.
5149 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
5150 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
5151 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
5152 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
5153 (sys_tputs, sys_tgetstr): New stubs.
5154 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
5155 (tputs, tgetstr): New; define to sys_*.
91eac4bb 5156
938efb77
JB
51572010-04-20 Juanma Barranquero <lekktu@gmail.com>
5158
5159 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
5160
b4bf28b7
SM
51612010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5162
8b1e1112
SM
5163 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
5164 Just signal a warning rather than an error when inside a let.
5165 (Fmake_variable_frame_local): Add the same test.
5166
933ac235
SM
5167 * font.c (syms_of_font): Make the style table vars read-only.
5168
b4bf28b7
SM
5169 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
5170 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
5171
5172 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
5173
93d68d0c
EZ
51742010-04-20 Eli Zaretskii <eliz@gnu.org>
5175
5176 Fix R2L paragraph display on TTY.
5177
5178 * xdisp.c (unproduce_glyphs): New function.
5179 (display_line): Use it when produced glyphs are discarded from R2L
5180 glyph rows.
5181 (append_composite_glyph): In R2L rows, prepend the glyph rather
5182 than appending it.
5183
5184 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
5185 rather than append it. Set up the resolved_level and bidi_type
5186 attributes of the appended glyph.
283ccc18
EZ
5187 (produce_special_glyphs): Mirror the backslash continuation
5188 character in R2L lines.
93d68d0c 5189
283ccc18 5190 Implement display of R2L paragraphs in GUI sessions.
26cdf528 5191
283ccc18
EZ
5192 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
5193 append_stretch_glyph.
5194 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
5195 off-by-one error in computing x at end of text in the row.
5196 (append_stretch_glyph): In reversed row, prepend the glyph rather
5197 than append it. Set resolved_level and bidi_type of the glyph.
5198 (extend_face_to_end_of_line): If the row is reversed, prepend a
5199 stretch glyph whose width is such that the rightmost glyph will be
5200 drawn at the right margin of the window. Fix off-by-one error on
5201 TTY frames in testing whether a line needs face extension. Fix
5202 face extension at ZV. If this is the last glyph row, use
5203 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
5204 region face.
5205 (set_cursor_from_row, display_line): Use
26cdf528
EZ
5206 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
5207 row->continuation_lines_width.
283ccc18
EZ
5208 (next_element_from_buffer): Don't call bidi_paragraph_init if we
5209 are at ZV. Fixes a crash when reseated to ZV by
5210 try_window_reusing_current_matrix.
45903529
EZ
5211 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
5212 which happens with R2L glyph rows. Fixes a crash when inserting a
5213 character at end of an R2L line.
283ccc18
EZ
5214 (set_cursor_from_row): Don't be fooled by truncated rows: don't
5215 treat them as having zero-width characters. Improve comments.
5216 Don't reverse pos_before and pos_after for reversed glyph rows.
5217 Set cursor.x to negative value when the cursor might be on the
5218 left fringe.
5219 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
5220 left fringe, not the right one.
f951a506
EZ
5221 (notice_overwritten_cursor, draw_phys_cursor_glyph)
5222 (erase_phys_cursor): For reversed cursor_row, support cursor on
5223 the left fringe.
5224
283ccc18
EZ
5225 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
5226 of continuation indicators on the fringes.
5227 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
5228 left fringe.
5229
f951a506
EZ
5230 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
5231 draw cursor on the left fringe.
5232
5233 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
5234 cursor on the left fringe.
5235
f951a506
EZ
5236 * dispnew.c (update_text_area): Handle reversed desired rows when
5237 the cursor is on the left fringe.
5238 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
5239 below, not by 0, for when the cursor is on the left fringe.
5240
3bb49aaf
JD
52412010-04-20 Jan Djärv <jan.h.d@swipnet.se>
5242
5243 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
5244 widget is a scrollbar.
5245
c0be27fd
KH
52462010-04-20 Kenichi Handa <handa@m17n.org>
5247
5248 * charset.c (char_charset): Consider Vcharset_non_preferred_head
5249 only when the arg CHARSET_LIST is nil.
5250
ce5b453a
SM
52512010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5252
5253 Make variable forwarding explicit rather the using special values.
5254 Basically, this makes the structure of buffer-local values and object
5255 forwarding explicit in the type of Lisp_Symbols rather than use
5256 special Lisp_Objects for that. This tends to lead to slightly more
5257 verbose code, but is more C-like, simpler, and makes it easier to make
5258 sure we handled all cases, among other things by letting the compiler
5259 help us check it.
5260 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
5261 Removing forwarding objects.
5262 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
5263 (struct Lisp_Symbol): Make the various forms of variable-forwarding
5264 explicit rather than hiding them inside Lisp_Object "values".
5265 (XFWDTYPE): New macro.
5266 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
5267 (XBUFFER_LOCAL_VALUE): Remove.
5268 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
5269 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
5270 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
5271 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
5272 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
5273 Remove the Lisp_Misc_* header.
5274 (struct Lisp_Buffer_Local_Value): Redefine.
5275 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
5276 (struct Lisp_Misc_Any): Add filler to get the right size.
5277 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
5278 Lisp_Intfwd.
5279 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
5280 (DEFVAR_KBOARD): Allocate a forwarding object.
5281 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
5282 (let_shadows_global_binding_p): New function.
5283 (union Lisp_Val_Fwd): New type.
5284 (make_blv): New function.
5285 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
5286 (store_symval_forwarding, swap_in_global_binding, Fboundp)
5287 (swap_in_symval_forwarding, find_symbol_value, Fset)
5288 (let_shadows_buffer_binding_p, set_internal, default_value)
5289 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
5290 (Fkill_local_variable, Fmake_variable_frame_local)
5291 (Flocal_variable_p, Flocal_variable_if_set_p)
5292 (Fvariable_binding_locus):
5293 * xdisp.c (select_frame_for_redisplay):
5294 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
5295 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
5296 * frame.c (store_frame_param):
5297 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
5298 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
5299 value structure.
5300 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
5301 (clone_per_buffer_values): Only adjust markers into the current buffer.
5302 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
5303 (Fbuffer_local_value, set_buffer_internal_1)
5304 (swap_out_buffer_local_variables):
5305 Adapt to the new symbol value structure.
5306 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
5307 (defvar_per_buffer): Take a new arg for the fwd object.
5308 (buffer_lisp_local_variables): Return a proper alist (different fix
5309 for bug#4138).
5310 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
5311 (Fgarbage_collect): Don't handle buffer_defaults specially.
5312 (mark_object): Handle new symbol value structure rather than the old
5313 special Lisp_Misc_* objects.
5314 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
5315 * term.c (set_tty_color_mode):
5316 * bidi.c (bidi_initialize): Don't access the ->value field directly.
5317 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
5318 a buffer_local_flags.
5319 * print.c (print_object): Get rid of impossible forwarding objects.
5320
fd3998ff
EZ
53212010-04-19 Eli Zaretskii <eliz@gnu.org>
5322
5323 * bidi.c (bidi_get_type, bidi_get_category)
5324 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
5325 (bidi_type_of_next_char, bidi_level_of_next_char):
5326 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 5327
e42cd1a7
JB
53282010-04-19 Juanma Barranquero <lekktu@gmail.com>
5329
5330 * dired.c (Ffile_attributes): Fix typo in docstring.
5331
6e104790 53322010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
5333
5334 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
5335 NSInteger (Bug#5811).
5336
6e104790 53372010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
5338
5339 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
5340 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
5341
6e104790 53422010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
5343
5344 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
5345
6e104790
SM
53462010-04-19 Chong Yidong <cyd@stupidchicken.com>
5347
5348 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
5349 terminal frames (Bug#5837).
5350
37dcfea0
EZ
53512010-04-19 Eli Zaretskii <eliz@gnu.org>
5352
d1da276f
EZ
5353 * .gdbinit (xsubchartable): New command.
5354
37dcfea0
EZ
53552010-04-19 Eli Zaretskii <eliz@gnu.org>
5356
5357 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 5358 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
5359 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
5360 and
5361 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
5362
e9515805
SM
53632010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
5364
5365 * alloc.c (Fpurecopy): Hash-cons if requested.
5366 (syms_of_alloc): Update purify-flag docstring.
5367
22aa44a8
JD
53682010-04-18 Jan Djärv <jan.h.d@swipnet.se>
5369
5370 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
5371 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
5372
ebb5722e
EZ
53732010-04-17 Eli Zaretskii <eliz@gnu.org>
5374
5375 Fix a crash when an NSM character is inserted at BEGV.
5376
5377 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
5378 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
5379 NEUTRAL_B or UNKNOWN_BT.
5380
0f4442ef
EZ
53812010-04-16 Eli Zaretskii <eliz@gnu.org>
5382
5383 * xdisp.c (set_cursor_from_row): Don't consider possibility of
5384 other rows with cursor unless they are different from this row and
5385 this row is part of a continued line. (Bug#5943)
5386
7d4e45f8
DN
53872010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
5388
5389 * s/freebsd.h: Restore osreldate.h include.
5390 Suggested by Naohiro Aota.
5391
5ba5ec85
J
53922010-04-16 Jan Djärv <jan.h.d@swipnet.se>
5393
5394 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
5395
20af301d
CY
53962010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
5397
5398 * s/cygwin.h: Avoid linking against static libgcc.
5399
a4b000fb
JL
54002010-04-15 Juri Linkov <juri@jurta.org>
5401
5402 * window.c: Add Qscroll_command.
5403 Remove Vscroll_preserve_screen_position_commands.
5404 (window_scroll_pixel_based, window_scroll_line_based): Check the
5405 `scroll-command' property on the last command instead of searching
5406 the last command in Vscroll_preserve_screen_position_commands.
5407 (syms_of_window): Initialize and staticpro `Qscroll_command'.
5408 Put Qscroll_command property on Qscroll_up and Qscroll_down.
5409 (scroll-preserve-screen-position): Doc fix.
5410 (Vscroll_preserve_screen_position_commands): Remove variable.
5411
bc319ba4
DN
54122010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5413
6bb24457
DN
5414 * xdisp.c (message): Do not use NO_ARG_ARRAY.
5415
19d4c244
DN
54162010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
5417
5418 Reduce cpp use in Makefile.in.
5419 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
5420 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
5421 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
5422 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
5423 (CRT0_COMPILE): Remove, inline it in the only user.
5424
32129746
JL
54252010-04-14 Juri Linkov <juri@jurta.org>
5426
5427 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
5428 `scroll-up-command' and `M-v' from `scroll-down' to
5429 `scroll-down-command'.
5430
9013a7f8
JL
54312010-04-14 Juri Linkov <juri@jurta.org>
5432
5433 * window.c (Vscroll_preserve_screen_position_commands): New variable
5434 with the default value as the list of Qscroll_down and Qscroll_up.
5435 (window_scroll_pixel_based, window_scroll_line_based): Search the
5436 last command in the list Vscroll_preserve_screen_position_commands
5437 instead of comparing with Qscroll_up and Qscroll_down.
5438
4bef8d26
JD
54392010-04-13 Jan Djärv <jan.h.d@swipnet.se>
5440
92848133
JD
5441 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
5442 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
5443 does that.
5444
4bef8d26
JD
5445 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
5446 to zero.
5447
58b963f7
SM
54482010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5449
84164a0d
SM
5450 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
5451
2b0a91e7
SM
5452 Try to solve the problem of spurious EOF chars in long lines of text
5453 sent to interactive subprocesses.
5454 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
5455 (system_process_attributes): Remove unused var `ttotal'.
5456 * process.c (send_process): Don't bother breaking long line with EOF
5457 chars when talking to ttys any more.
5458 (wait_reading_process_output): Output a warning when called in such
5459 a way that it could block without being interruptible.
5460
58b963f7
SM
5461 Try to detect file modification within the same second.
5462 * buffer.h (struct buffer): New field modtime_size.
5463 * buffer.c (reset_buffer): Initialize it.
5464 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
5465 (Fverify_visited_file_modtime): Check it.
5466 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
5467 (Fset_visited_file_modtime): Set (or clear) it.
5468
01f5787b
SM
54692010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
5470
5471 * process.c (status_notify): Remove unused var `ro'.
5472
83725342
JD
54732010-04-12 Jan Djärv <jan.h.d@swipnet.se>
5474
5475 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
5476 more than one visual (Bug#5938).
5477
b9465836
DN
54782010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
5479
50426a04
JB
5480 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
5481 Undefine.
b9465836 5482
8d9c8ece
DN
54832010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
5484
b1f52161
DN
5485 Remove C_SWITCH_SYSTEM_TEMACS.
5486 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
5487 (malloc, realloc, free): Use emacs, not temacs for conditional
5488 definition.
5489
5490 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
5491 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
5492
8d9c8ece
DN
5493 Use autoconf, not cpp for some variables.
5494 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
5495 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
5496 (ALL_CFLAGS): Use them as make variables.
5497 (really-lwlib, really-oldXMenu): Do not pass them.
5498
1ecb2d3f
JD
54992010-04-11 Jan Djärv <jan.h.d@swipnet.se>
5500
5501 * xmenu.c (apply_systemfont_to_dialog): New.
5502 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
5503
3a4fa2f2
SM
55042010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
5505
97e53006
SM
5506 * process.c (exec_sentinel): Preserve current-buffer.
5507
3a4fa2f2
SM
5508 * process.c (read_process_output): Move the save-current-buffer to
5509 apply to both the filter and the non-filter branches.
5510
88df7221
DN
55112010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
5512
5513 * s/msdos.h (UNEXEC): New definition.
5514
5634ff85
YM
55152010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5516
6eff5c3d
YM
5517 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
5518 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
5519
5520 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
5521 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
5522 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
5523 TRY_WINDOW_CHECK_MARGINS.
5524
5525 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
5526 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
5527 width only when it is for padding.
5634ff85 5528
b13aef54
J
55292010-04-09 Jan Djärv <jan.h.d@swipnet.se>
5530
5531 * xfns.c (Fx_show_tip): Call try_window in a loop until
5532 fonts_changed_p is zero (Bug#2423).
5533
21d28484
EZ
55342010-04-08 Eli Zaretskii <eliz@gnu.org>
5535
5536 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
5537 the end of TEXT_AREA. (Bug#5856)
5538
0269ef77
JD
55392010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5540
5541 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
5542 HAVE_GCONF.
5543
5930fe97
EZ
55442010-04-08 Eli Zaretskii <eliz@gnu.org>
5545
5546 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
5547 prev.orig_type, for resolving type of NSM. (Bug#5858)
5548
99852628
JD
55492010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5550
5551 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
5552 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
5553 in current_font.
5554 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
5555 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
5556 New functions.
5557 (syms_of_xsettings): Initialize current_font.
5558 defsubr Sfont_get_system_normal_font.
99852628 5559
686b968e
JB
5560 * xsettings.h (Ffont_get_system_normal_font)
5561 (xsettings_get_system_normal_font): Declare.
99852628
JD
5562
5563 * xfns.c (extern xlwmenu_default_font): Remove.
5564 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
5565 to xlwmenu.c.
5566
5567 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
5568 menu items in UTF-8.
5569
5570 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
5571 (apply_systemfont_to_menu): New function.
5572 (set_frame_menubar, create_and_show_popup_menu): Call
5573 apply_systemfont_to_menu.
5574
7fc874c4
J
55752010-04-07 Jan Djärv <jan.h.d@swipnet.se>
5576
5577 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
5578 FRAME_LINE_TO_PIXEL_Y.
5579
5580 * xterm.c (x_set_window_size_1): Don't add border_width/height to
5581 pixelwidth/height.
5582
863bf481
DN
55832010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
5584
5e5a3b92
DN
5585 Simplify code for HP machines.
5586 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
5587 for GNU_LINUX, not needed.
5588 (UNEXEC, NEED_BSDTTY): Move definitions...
5589 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
5590
863bf481
DN
5591 * m/iris4d.h (UNEXEC): Move definition ...
5592 * s/irix6-5.h (UNEXEC): ... here.
5593
3e6bec3b
JD
55942010-04-04 Jan Djärv <jan.h.d@swipnet.se>
5595
5596 * xfns.c (set_machine_and_pid_properties): New function.
5597 (Fx_create_frame): Call set_machine_and_pid_properties.
5598
2912322b
SM
55992010-04-03 Eli Zaretskii <eliz@gnu.org>
5600
1502b819
EZ
5601 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
5602 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
5603 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
5604
2912322b
SM
5605 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
5606 in this function. (Bug#5703)
5607
56082010-04-03 Chong Yidong <cyd@stupidchicken.com>
5609
5610 * nsterm.h: Fix last change.
5611
c435b432
DN
56122010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
5613
a568f507
DN
5614 * m/intel386.h (NO_REMAP): Move definition ...
5615 * s/msdos.h (NO_REMAP): ... here.
5616
4cd9f6c2
DN
5617 * m/vax.h (CRT0_DUMMIES): Remove, unused.
5618
c435b432
DN
5619 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
5620 used on those platforms.
5621
42a2c622
DN
56222010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
5623
5624 Remove extern errno declarations.
5625 * xterm.c:
5626 * xrdb.c:
5627 * w32term.c:
5628 * unexec.c:
5629 * unexaix.c:
5630 * sysdep.c:
5631 * process.c:
5632 * lread.c:
5633 * keyboard.c:
5634 * floatfns.c:
5635 * filelock.c:
5636 * fileio.c:
5637 * emacs.c (main):
5638 * ecrt0.c:
5639 * dispnew.c:
5640 * callproc.c:
5641 * buffer.c: Remove errno extern declarations.
5642 * s/netbsd.h (NEED_ERRNO): Remove.
5643
8224f93d
DN
56442010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
5645
5646 Remove all uses of LIBX11_SYSTEM.
5647 * Makefile.in (LIBX11_SYSTEM): Remove.
5648 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
5649 instead.
5650
814062c7
EZ
56512010-04-01 Eli Zaretskii <eliz@gnu.org>
5652
ed68db4d
EZ
5653 Remove support for DJGPP v1.x (bug#5813).
5654
5655 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
5656 * s/msdos.h:
5657 * unexec.c (make_hdr, copy_text_and_data):
5658 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 5659 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
5660 (IT_set_terminal_modes, __write, _rename, gethostname)
5661 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
5662 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
5663 the value of __DJGPP__.
ed68db4d
EZ
5664 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
5665 compatibility code.
8224f93d
DN
5666 * lread.c:
5667 * gmalloc.c (memalign):
5668 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
5669 * emacs.c (main):
5670 * dosfns.c (init_dosfns):
ed68db4d
EZ
5671 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
5672
52f4d8d5
EZ
56732010-04-01 Eli Zaretskii <eliz@gnu.org>
5674
814062c7
EZ
5675 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
5676 string with `cursor' property comes from an `after-string'
5677 overlay. (Bug#5816)
5678
0dc2e11d
GM
56792010-04-01 Glenn Morris <rgm@gnu.org>
5680
5681 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
5682 Define as Makefile variables.
5683 (LIBX): Use above variables rather than directly using autoconf.
5684
1d29df59
DN
56852010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
5686
5687 Clean up BSD_SYSTEM use.
5688 * xterm.c:
5689 * process.c:
5690 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
5691 for including <sys/ioctl.h>.
5692 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
5693 code is only used for MSDOS.
5694
1546c559
JL
56952010-03-31 Juri Linkov <juri@jurta.org>
5696
5697 * image.c: Add `Qextension_data'.
5698 (syms_of_image): Initialize and staticpro `Qextension_data'.
5699 (Fimage_metadata): Rename from `Fimage_extension_data'.
5700 (gif_load): Put GIF extension data to the property
5701 `Qextension_data'.
5702
6521c534
CY
57032010-03-31 Chong Yidong <cyd@stupidchicken.com>
5704
5705 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
5706 * nsterm.h: Fix prototype.
5707
52c30783
EZ
57082010-03-31 Eli Zaretskii <eliz@gnu.org>
5709
5710 * xdisp.c (highlight_trailing_whitespace): Support highlight of
5711 trailing whitespace in right-to-left rows.
5712
855a0da7
SM
57132010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5714
5715 Get rid of the direct_output optimizations.
5716 * keyboard.c (nonundocount): Remove extern declaration.
5717 (command_loop_1): Remove brittle optimisation for cheap and
5718 common operations.
5719 * xdisp.c (redisplay_internal): Don't bother checking
5720 redisplay_performed_directly_p any more.
5721 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
5722 any more.
5723 * dispnew.c (redisplay_performed_directly_p)
5724 (direct_output_for_insert, direct_output_forward_char):
5725 * dispextern.h (redisplay_performed_directly_p)
5726 (direct_output_for_insert, direct_output_forward_char): Remove.
5727 * cmds.c (nonundocount): Make it static.
5728
85738751 57292010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
5730
5731 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
5732
85738751 57332010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
5734
5735 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
5736 invisible (Bug#5766).
5737
85738751 57382010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 5739
855a0da7
SM
5740 * xdisp.c (x_consider_frame_title, update_window_cursor):
5741 Remove HAVE_NS conditionals.
194d44e7 5742 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
5743
5744 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
5745 filename for the title.
5746 (ns_set_doc_edited): Do nothing if the selected window is a
5747 minibuffer window.
5748
5749 * nsterm.h: Add prototypes for ns_set_name_as_filename and
5750 ns_set_doc_edited.
5751
5752 * nsterm.m: Remove unneeded prototype.
5753
85738751 57542010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
5755
5756 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
5757 in the DOC file. (Bug#5336)
5758
85738751 57592010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
5760
5761 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
5762
75d1428c
SM
57632010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5764
5765 * window.c (keys_of_window): Remove redundant/overridden bindings.
5766
82043cfb
EZ
57672010-03-30 Eli Zaretskii <eliz@gnu.org>
5768
5769 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
5770 Restore original behavior when the iterator is not bidi_p.
5771
b5dd0ae7
DN
57722010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5773
5774 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
5775
bd924a5d
EZ
57762010-03-30 Eli Zaretskii <eliz@gnu.org>
5777
5778 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
5779 are outside the range of cached character positions.
5780
3580374b
JB
57812010-03-30 Juanma Barranquero <lekktu@gmail.com>
5782
5783 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
5784
a7b02820
EZ
57852010-03-30 Eli Zaretskii <eliz@gnu.org>
5786
5787 Initial support for bidirectional editing.
5788
5789 * Makefile.in (obj): Include bidi.o.
5790 (bidi.o): New target.
5791
5792 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
5793 ($(BLD)/bidi.$(O)): New target.
5794
5795 * bidi.c: New file.
5796
5797 * buffer.h (struct buffer): New members bidi_display_reordering
5798 and bidi_paragraph_direction.
5799
5800 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
5801 and bidi_paragraph_direction.
5802 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
5803 and bidi-paragraph-direction.
5804 (Fbuffer_swap_text): Swap the values of
5805 bidi_display_reordering and bidi_paragraph_direction.
5806
5807 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
5808 (bidi_type_t, bidi_dir_t): New types.
5809 (bidi_saved_info, bidi_stack, bidi_it): New structures.
5810 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
5811 prev_stop, base_level_stop, and eol_pos.
5812 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
5813 (IT_STACK_SIZE): Enlarge to 5.
5814 (struct glyph_row): New member reversed_p.
5815 <string_buffer_position>: Update prototype.
5816 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
5817 glyph_row if bidi_it.paragraph_dir == R2L.
5818 (struct glyph): New members resolved_level and bidi_type.
5819
5820 * dispnew.c (direct_output_forward_char): Give up if we need bidi
5821 processing or buffer's direction is right-to-left.
5822 (prepare_desired_row): Preserve the reversed_p flag.
5823 (row_equal_p): Compare the reversed_p attributes as well.
5824
5825 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
5826 bidi_init_it and set it->paragraph_embedding from the current
5827 buffer's value of bidi_paragraph_direction.
5828 (reseat_1): Initialize bidi_it.first_elt.
5829 (set_iterator_to_next, next_element_from_buffer): Use the value of
5830 paragraph_embedding to determine the paragraph direction.
5831 (set_iterator_to_next): Under bidi reordering, call
5832 bidi_get_next_char_visually. Call bidi_paragraph_init if the
5833 new_paragraph flag is set in the bidi iterator.
5834 (next_element_from_buffer): If bidi_it.first_elt is set,
5835 initialize paragraph direction and find the first character to
5836 display in the visual order. If reseated to a middle of a line,
5837 prime the bidi iterator starting at the line's beginning. Handle
5838 the situation where we overstepped stop_charpos due to
5839 non-linearity of the bidi iteration. Likewise for when we back up
5840 beyond the previous stop_charpos. When moving across stop_charpos,
5841 record it in prev_stop.
5842 (display_line): Set row->end and it->start for the next row to the
5843 next character in logical order. Always extend reversed_p rows to
5844 the end of line, even if they end at ZV. Copy the reversed_p flag
5845 to the next glyph row. Keep calling set_cursor_from_row for
5846 bidi-reordered rows even if we already have a possible candidate
5847 for cursor position. Set row_end after all the row's glyphs have
5848 been produced, by looping over the glyphs. Record the position
5849 after EOL in it->eol_pos, and use it to set end_pos of the last
5850 row produced for a continued line.
5851 <Qright_to_left, Qleft_to_right>: New variables.
5852 (syms_of_xdisp): Initialize and staticpro them.
5853 (string_buffer_position_lim): New function.
5854 (string_buffer_position): Most of code moved to
5855 string_buffer_position_lim. Last argument and return value are
5856 now EMACS_INT; all callers changed.
5857 (set_cursor_from_row): Rewritten to support bidirectional text and
5858 reversed glyph rows.
5859 (text_outside_line_unchanged_p, try_window_id): Disable
5860 optimizations if we are reordering bidirectional text and the
5861 paragraph direction can be affected by the change.
5862 (append_glyph, append_composite_glyph)
5863 (produce_image_glyph, append_stretch_glyph): Set the
5864 resolved_level and bidi_type members of each glyph.
5865 (append_glyph): If the glyph row is reversed, prepend the glyph
5866 rather than appending it.
5867 (handle_stop_backwards): New function.
5868 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
5869 (reseat): call handle_stop_backwards to recompute prev_stop and
5870 base_level_stop for the new position.
5871 (handle_invisible_prop): Under bidi iteration, skip invisible text
5872 using bidi_get_next_char_visually. If we are `reseat'ed, init the
5873 paragraph direction. Update IT->prev_stop after skipping
5874 invisible text.
5875 (move_it_in_display_line_to): New variables prev_method
5876 and prev_pos. Compare for strict equality in
5877 BUFFER_POS_REACHED_P.
5878 (try_cursor_movement): Examine all the candidate rows that occlude
5879 point, to return the best match. If rows are bidi-reordered
5880 and point moved backwards, back up to the row that is not a
5881 continuation line, and start looking for a suitable row from
5882 there.
5883
5884 * term.c (append_glyph): Reverse glyphs by pre-pending them,
5885 rather than appending, if the glyph_row's reversed_p flag is set.
5886 Set the resolved_level and bidi_type members of each glyph.
5887
5888 * .gdbinit (pbiditype): New command.
5889 (pgx): Use it to display bidi level and type of the glyph.
5890 (pitx): Display some bidi information about the iterator.
5891 (prowlims, pmtxrows): New commands.
5892
32a8894e
DN
58932010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5894
5895 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
5896 * s/usg5-4.h (LIBS_DEBUG):
5897 * s/irix6-5.h (C_DEBUG_SWITCH):
5898 * s/gnu-linux.h (LIBS_DEBUG):
5899 * s/darwin.h (LIBS_DEBUG):
5900 * s/bsd-common.h (LIBS_DEBUG):
5901 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
5902 * m/iris4d.h (LIBS_DEBUG):
5903 * m/hp800.h (LIBS_DEBUG): Remove definitions.
5904
5905 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
5906 (LIBS_DEBUG): Remove definition.
5907
649dbf36
CY
59082010-03-27 Chong Yidong <cyd@stupidchicken.com>
5909
5910 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
5911 Windows.
5912
cad4261f
YM
59132010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5914
5915 * process.c (Fmake_network_process): Don't call turn_on_atimers around
5916 `connect' (Bug#5723).
5917
cd591dbc
HE
59182010-03-25 Helmut Eller <eller.helmut@gmail.com>
5919
5920 * process.c (Fmake_network_process): Call `select' for interrupted
5921 `connect' rather than creating new socket (Bug#5173).
5922
e867cb5d 59232010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
5924
5925 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
5926
5927 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
5928
5929 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
5930
e867cb5d 59312010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
5932
5933 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
5934 XLoadQueryFont.
5935
e867cb5d 59362010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
5937
5938 * coding.c (decode_coding_ccl): Fix previous change for the
5939 multibyte case.
fb608df3
KH
5940 (encode_coding_ccl): Don't setup ccl program here. Fix for the
5941 case that the output buffer is fullfilled.
5942 (encode_coding): Setup ccl program here.
fbdc1721 5943
5845f0ed
DN
59442010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
5945
814fb708
DN
5946 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
5947
5845f0ed
DN
5948 Simplify LIBS_MACHINE definitions.
5949 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
5950 * m/iris4d.h (LIBS_MACHINE): Likewise.
5951 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
5952 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 5953 * s/netbsd.h: Remove commented out code.
5845f0ed 5954
b7064064
DN
59552010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
5956
df7734b2
DN
5957 Remove dead code dealing with POSIX_SIGNALS.
5958 * atimer.c (set_alarm): Remove dead code, all USG systems define
5959 POSIX_SIGNALS.
5960 * data.c (arith_error): Likewise.
5961 * keyboard.c (input_available_signal, handle_user_signal)
5962 (interrupt_signal): Likewise.
5963 * process.c (sigchld_handler): Likewise.
5964 (create_process): Remove if 0 code. Remove HPUX conditional when
5965 !defined (POSIX_SIGNALS), it cannot be true.
5966 * syssignal.h: Remove USG5_4 and USG conditionals when
5967 !POSIX_SIGNALS, they cannot be true.
5968
b7064064
DN
5969 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
5970 NO_SOCK_SIGIO, not used anymore.
5971
55da5ee3
DN
59722010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
5973
0be96e3a
DN
5974 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
5975 support vax on BSDs.
5976
55da5ee3
DN
5977 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
5978 * s/aix4-2.h (ORDINARY_LINK): ... here.
5979
c0282183
AS
59802010-03-21 Andreas Schwab <schwab@linux-m68k.org>
5981
82c3d67a
AS
5982 * Makefile.in (abs_builddir): Define.
5983 (bootstrap_exe): Use it.
5984 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 5985
3613edce
SM
59862010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
5987
5988 * Makefile.in (bootstrap_exe): Use an absolute name.
5989
7f110ddc
DN
59902010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5991
22e87574
DN
5992 Remove support for old GNU/Linux using libc version 5.
5993 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
5994 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
5995
05a670e6
DN
5996 Consolidate redundant definitions in s/bsd-common.h.
5997 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5998 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5999 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
6000 doing it in all files that include this one.
6001 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6002 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6003 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6004 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6005 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6006 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6007 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6008 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6009 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6010
2968f561
DN
6011 Consolidate redundant definitions.
6012 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
6013 it's undefined in all files that include this one.
6014 (POSIX_SIGNALS): Define here instead of doing it in all files that
6015 include this one.
6016 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6017 (POSIX_SIGNALS): Do not define.
6018 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6019 (POSIX_SIGNALS): Do not define.
6020 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6021 (POSIX_SIGNALS): Do not define.
6022
15d25dc0
DN
6023 Remove support for old UNIX System V systems.
6024 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
6025 * s/usg-5-4-2.h: Remove.
6026
07e339e4
DN
6027 Remove support for Solaris on PPC and for old versions.
6028 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
6029 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
6030 that cancel each other.
6031 * s/sol2-3.h:
6032 * s/sol2-4.h:
6033 * s/sol2-5.h: Remove.
6034 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
6035 (NO_REMAP): Remove, unused.
6036 (UNEXEC): Move definition ...
6037 * s/aix4-2.h (UNEXEC): ... here.
6038
7f110ddc
DN
6039 * s/openbsd.h: Remove support for non-ELF and for systems that do
6040 not support shared libraries.
6041 * s/netbsd.h:
6042 * s/freebsd.h: Likewise.
6043
605f35cd
DN
60442010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6045
6046 Remove non-working support for lynxos 3.0.
6047 * s/lynxos.h: Remove file.
6048
6049 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
6050 COFF_BSD_SYMBOLS, nothing defines it anymore.
6051
aed71cf4
DN
60522010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6053
6054 Remove obsolete uses of HAVE_SHM.
6055 * emacs.c (standard_args):
6056 (Fdump_emacs):
6057 (syms_of_emacs): Remove code depending on HAVE_SHM.
6058
6059 * alloc.c: Remove HAVE_SHM dependent definition.
6060
6061 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
6062
aded53ff
GM
60632010-03-18 Glenn Morris <rgm@gnu.org>
6064
17284745
GM
6065 * emacs.c (USAGE4): Hard-code bug address.
6066 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
6067 (bug_reporting_address): Remove.
6068 (main): Don't call bug_reporting_address.
6069
aded53ff
GM
6070 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
6071 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
6072
303500aa
CY
60732010-03-15 Chong Yidong <cyd@stupidchicken.com>
6074
6075 * xfns.c (Fx_create_frame):
6076 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
6077 on left.
6078
cef3058f
CY
60792010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
6080
6081 * editfns.c (Fformat): Account for string precision when computing
6082 field width (Bug#5710).
6083
a647d59d
CY
60842010-03-12 Chong Yidong <cyd@stupidchicken.com>
6085
4fa42018
CY
6086 * xfns.c (Fx_create_frame): Set default to Qright.
6087
a647d59d
CY
6088 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
6089 all window systems.
6090
6da23aaa
EZ
60912010-03-12 Eli Zaretskii <eliz@gnu.org>
6092
a96f6398 6093 These changes remove termcap.c from the build on Posix platforms.
83d02def 6094 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
6095 (MSDOS_OBJ): ...to here.
6096 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
6097 now identical to when LIBS_TERMCAP is defined.
6098
6099 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
6100
6101 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
6102
a96f6398 6103 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 6104
288f9fc0
CY
61052010-03-10 Chong Yidong <cyd@stupidchicken.com>
6106
6107 * Branch for 23.2.
6108
d48cd3f4
SM
61092010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6110
6111 Cleanup setup of gl_state in various parts of the code.
6112 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
6113 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
6114 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
6115 (skip_chars):
6116 * regex.c (regex_compile): Use it.
6117 (re_compile_pattern): Don't set gl_state.current_syntax_table since
6118 it's now set in regex_compile when/if we need it.
6119
618db430
SM
61202010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
6121
c0335e02
SM
6122 Make it possible to C-g in a tight bytecode loop again (bug#5680).
6123 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
6124 (QUIT): Use it to consolidate code and remove redundancy.
6125 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
6126
254c06a8
SM
6127 * regex.c (regex_compile): Setup gl_state as well.
6128
618db430
SM
6129 * syntax.c (skip_chars): Setup gl_state (bug#3823).
6130 (in_classes): Use CONSP before XCAR/XCDR.
6131
233f0c9f
CY
61322010-03-03 Chong Yidong <cyd@stupidchicken.com>
6133
6134 * keymap.c (Fwhere_is_internal): Use Fequal to compare
6135 definitions, so that keyboard macros are correctly handled
6136 (Bug#5481).
6137
75f80e63
EZ
61382010-03-02 Eli Zaretskii <eliz@gnu.org>
6139
6140 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
6141 text that could be relocated inside the call to emacs_mule_char.
6142 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
6143 (CODING_DECODE_CHAR): Add a comment describing its purpose.
6144
dcfb9bc4
KH
61452010-03-02 Kenichi Handa <handa@m17n.org>
6146
fc9a17bc
KH
6147 * character.c (parse_str_as_multibyte): Fix handling of the
6148 multibyte form of raw-bytes.
6149 (str_as_multibyte): Likewise.
6150
dcfb9bc4
KH
6151 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
6152 form of raw-bytes.
6153
412c01b6
CY
61542010-02-28 Chong Yidong <cyd@stupidchicken.com>
6155
6156 * charset.c (load_charset_map_from_file)
6157 (load_charset_map_from_vector): Zero out allocated
6158 charset_map_entries before using them.
6159
df7e1ea0
AS
61602010-02-27 Andreas Schwab <schwab@linux-m68k.org>
6161
6162 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
6163
fe69a722
CY
61642010-02-27 Chong Yidong <cyd@stupidchicken.com>
6165
4ed28cf4
CY
6166 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
6167 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 6168
7379cfce
KH
61692010-02-26 Kenichi Handa <handa@m17n.org>
6170
f88cc4d6
KH
6171 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
6172
7379cfce
KH
6173 * xdisp.c (reseat_to_string): Fix previous change.
6174
cf2fdcfb
CY
61752010-02-26 David Reitter <david.reitter@gmail.com>
6176
6177 * nsfont.m (nsfont_draw): ns_antialias_text should be a
6178 Lisp_Object (Bug#4736).
6179
cc6c7c75
KH
61802010-02-25 Kenichi Handa <handa@m17n.org>
6181
6182 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
6183
32e737d7
JD
61842010-02-24 Jan Djärv <jan.h.d@swipnet.se>
6185
6186 * xterm.c (XTflash): Move declarations before statements.
6187
6188 * gtkutil.c (xg_get_gdk_display): Remove (unused).
6189 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
6190 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
6191 (xg_create_tool_bar): Remove unused variables.
6192 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 6193 (xg_create_frame_widgets): Remove variable grav.
32e737d7 6194
676cae9f
CY
61952010-02-21 Chong Yidong <cyd@stupidchicken.com>
6196
6197 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
6198
886cc2b8
SM
61992010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
6200
6201 * term.c (fatal): Add a final \n if needed (bug#5596).
6202
ddb2d8e2
CY
62032010-02-18 Chong Yidong <cyd@stupidchicken.com>
6204
6205 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
6206
2a4f8d3d
GM
62072010-02-18 Glenn Morris <rgm@gnu.org>
6208
6209 * callint.c (Finteractive): Doc fix.
6210
ebaf11b6
KH
62112010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
6212
886cc2b8
SM
6213 * coding.c (record_conversion_result):
6214 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
6215 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
6216 memory allocation error.
6217
d0396581
KH
62182010-02-17 Kenichi Handa <handa@m17n.org>
6219
886cc2b8
SM
6220 * coding.c (decode_coding_ccl): Don't setup ccl program here.
6221 Fix for the case that the output buffer is fullfilled.
d0396581
KH
6222 (decode_coding): Setup ccl program here. Keep looping when the
6223 decoder stopped because the output buffer is
6224 fullfilled (bug#5534).
6225
6226 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
6227
98599f74
JD
62282010-02-13 Jan Djärv <jan.h.d@swipnet.se>
6229
471e4f04 6230 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 6231 bug #5571.
886cc2b8 6232 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 6233 overdrawn.
98599f74 6234
182659ae
JD
62352010-02-10 Jan Djärv <jan.h.d@swipnet.se>
6236
6237 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
6238 doing_interact here.
6239 (ice_connection_closed): New function.
6240 (x_session_check_input, smc_die_CB, ice_io_error_handler)
6241 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
6242 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
6243 returns I/O error.
6244 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
6245 bug #5512.
6246
9be32c4e 62472010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
6248
6249 * nsfont.m (nsfont_open): The system's value for the font descent
6250 is negative, so round it down to avoid clipping.
6251
a2f3eb19
CY
62522010-02-06 Chong Yidong <cyd@stupidchicken.com>
6253
6254 * charset.c (load_charset_map_from_file)
6255 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 6256 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 6257
3088147c
CY
62582010-02-05 Chong Yidong <cyd@stupidchicken.com>
6259
6260 * charset.c (load_charset_map_from_file): Allocate large
6261 charset_map_entries structure on the heap rather than the stack.
6262 (Bug#5526).
6263
b57d9029
KH
62642010-01-31 Kenichi Handa <handa@m17n.org>
6265
6266 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 6267 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 6268
c67d885b
CY
62692010-01-31 Chong Yidong <cyd@stupidchicken.com>
6270
6271 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
6272 <deactivated@gmail.com> (Bug#3605).
6273
8fab2362
CY
62742010-01-31 David De La Harpe Golden <david@harpegolden.net>
6275
6276 * fileio.c (Frename_file): Correctly rename symlinks to
6277 directories (Bug#5496).
6278
cb2a62f2
CY
62792010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
6280
6281 * nsterm.m (ns_ring_bell): Handle visible bell like X.
6282
944c7a26
AS
62832010-01-30 Andreas Schwab <schwab@linux-m68k.org>
6284
6285 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
6286
c024ac08
CY
62872010-01-29 Chong Yidong <cyd@stupidchicken.com>
6288
6289 * frame.c (DEFAULT_ROWS): Change default to 35.
6290
6291 * xfns.c (x_default_font_parameter): Change default XFT font to
6292 monospace-10 (Bug#3643).
6293
af93af83
EZ
62942010-01-29 Eli Zaretskii <eliz@gnu.org>
6295
6296 * w32inevt.c (key_event): Remove unnecessary comparison of
6297 event->uChar.AsciiChar with 128.
6298
ca0eb708
CY
62992010-01-28 Chong Yidong <cyd@stupidchicken.com>
6300
b242dbfc
CY
6301 * fileio.c (Frename_file): Fix last change (Bug#5487).
6302
ca0eb708
CY
6303 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
6304
6305 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
6306
45d45af5
JD
63072010-01-28 Jan Djärv <jan.h.d@swipnet.se>
6308
6309 * xfns.c (Fx_create_frame): Remove window size matching code from
6310 2010-01-15.
a73f9c9d 6311 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 6312
7e233730
JR
63132010-01-27 Jason Rumney <jasonr@gnu.org>
6314
6315 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 6316 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 6317
86e893e3
KH
63182010-01-27 Kenichi Handa <handa@m17n.org>
6319
6320 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 6321 pattern string (Bug#4209).
86e893e3 6322
8719abec
CY
63232010-01-27 David De La Harpe Golden <david@harpegolden.net>
6324
6325 * fileio.c (Frename_file): Call copy-directory and
6326 delete-directory for directories, in order to handle cross-device
6327 renaming (Bug#3353).
6328
844794c8
JD
63292010-01-25 Jan Djärv <jan.h.d@swipnet.se>
6330
aa3e13b5 6331 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 6332 sizes 24 and 10. Bug #3643.
844794c8 6333
bd4b5750
SM
63342010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
6335
8dc1adf6 6336 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
6337 * keymap.c (shadow_lookup): Add `remap' arg.
6338 (describe_map, describe_vector): Update calls to shadow_lookup.
6339 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
6340 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
6341 perform remapping during shadow_lookup check of remapped_sequences.
6342
285d07e2
CY
63432010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
6344
6345 * image.c (png_load): Use png_sig_cmp instead of the obsolete
6346 png_check_sig, which has been removed in libpng 1.4.
6347
c6d09b8d
CY
63482010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
6349
6350 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
6351 lacks this header file).
6352
3d782998
YM
63532010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6354
6355 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
6356 as in Emacs 22.
6357
2aff7c53
YM
63582010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6359
6360 * lisp.h (make_pure_string): String pointer arg now points to const.
6361
6362 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
6363 args now point to const.
6364
74327f7a
EZ
63652010-01-22 Eli Zaretskii <eliz@gnu.org>
6366
6367 * lread.c (Fload): Don't treat files without .elc extension as
6368 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
6369 them. (bug#5303)
6370
4d1e6632
KH
63712010-01-20 Kenichi Handa <handa@m17n.org>
6372
6373 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
6374 treat the source as actual byte sequence.
6375
1fdede8f
AM
63762010-01-19 Alan Mackenzie <acm@muc.de>
6377
6378 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 6379 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
6380 `signal_after_change_p' to `coherent_change_p', and make the
6381 invocation of `modify_region' conditional on it.
6382
67477f30
JD
63832010-01-19 Jan Djärv <jan.h.d@swipnet.se>
6384
6385 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
6386 for debug purpose.
6387 (syms_of_xsettings): Declare xft-settings.
6388
244b023e
CY
63892010-01-18 Chong Yidong <cyd@stupidchicken.com>
6390
6391 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
6392
617364fe
CY
63932010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
6394
6395 * xterm.c (event_handler_gdk): Block input (Bug#5037).
6396
4fe22cdf
CY
63972010-01-16 Chong Yidong <cyd@stupidchicken.com>
6398
6399 * emacs.c (standard_args): Adjust arg priorities to reflect how
6400 they are processed in startup.el.
6401
e118d2be
AS
64022010-01-16 Andreas Schwab <schwab@linux-m68k.org>
6403
6404 * Makefile.in (lisp, shortlisp): Update.
6405
523ae620
SM
64062010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
6407
6408 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
6409 code, link the new kboard into all_kboard before running Lisp code,
6410 and protect the new terminal with GCPRO (Bug#5365).
6411 (x_term_init): Remove unused var `atom'.
6412 (x_delete_display, x_delete_terminal): Remove unused var `i'.
6413
f0d13888
JD
64142010-01-15 Jan Djärv <jan.h.d@swipnet.se>
6415
6416 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
6417 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
6418 to find out usable size of the desktop. Don't make frames larger than
ac146f82 6419 this. Bug #3643.
f0d13888 6420
cc320f07
KH
64212010-01-15 Kenichi Handa <handa@m17n.org>
6422
6423 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
6424
7ffdf101
CY
64252010-01-15 Chong Yidong <cyd@stupidchicken.com>
6426
6427 * nsterm.m (Qnone): Define.
6428
6429 * nsfns.m (Qnone): Move definition to nsterm.m.
6430
d12bd917
KH
64312010-01-14 Kenichi Handa <handa@m17n.org>
6432
6433 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
6434 systems.
6435
d9a7c140
KH
64362010-01-14 Kenichi Handa <handa@m17n.org>
6437
6438 Make auto-composition work on all buffers even if they are
6439 fundamental mode.
6440
6441 * composite.c (Vauto_composition_mode): New variable.
6442 (composition_compute_stop_pos): Check Vauto_composition_mode
6443 instead of Vauto_composition_function.
6444 (composition_adjust_point, Ffind_composition_internal): Likewise.
6445 (syms_of_composite): Declare Lisp variable
6446 "auto-composition-mode" here.
6447
63286bb2
CY
64482010-01-13 Chong Yidong <cyd@stupidchicken.com>
6449
6450 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
6451 during call to vendor-specific-keysyms (Bug#5365).
6452
c2623ee7
YM
64532010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6454
6455 * keyboard.c (input_available_signal) [SYNC_INPUT]:
6456 Call SIGNAL_THREAD_CHECK (Bug#5333).
6457
6458 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
6459 Call SIGNAL_THREAD_CHECK.
6460
0b5397c2
SM
64612010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
6462
6463 Try to fix bug#5314. This is probably not the final word, tho.
6464 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
6465 recent-auto-save-p as a side-effect.
6466 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
6467 * buffer.c (Fkill_buffer, reset_buffer):
6468 * editfns.c (Fsubst_char_in_region):
6469 * fileio.c (Finsert_file_contents, Fdo_auto_save)
6470 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
6471
dc954cb2
KH
64722010-01-13 Kenichi Handa <handa@m17n.org>
6473
6474 Display buffer name, etc. in mode line by composing correctly.
6475
6476 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
6477 STRING is not nil.
0b5397c2 6478 (display_mode_element): Adjust for the change of
dc954cb2
KH
6479 decode_mode_spec and display_line.
6480 (decode_mode_spec): Change arg MULTIBYTE to STRING.
6481 (display_string): Handle the case that STRING is non-null and
6482 LISP_STRING is not nil.
6483
0b5397c2
SM
6484 * xterm.c (x_draw_composite_glyph_string_foreground):
6485 Pay attention to s->face->overstrike.
dc954cb2
KH
6486
6487 * composite.c (composition_reseat_it): Don't check PT if STRING is
6488 non nil.
6489
4a00eaca
YM
64902010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6491
6492 * keyboard.c (read_char): Don't apply previous change when current
6493 buffer is unchanged by command execution.
6494
60abb287
JD
64952010-01-12 Jan Djärv <jan.h.d@swipnet.se>
6496
6497 * keyboard.c (read_char): Return after executing from special map.
6498
893db5bc
GM
64992010-01-12 Glenn Morris <rgm@gnu.org>
6500
6501 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
6502 bug-gnu-emacs rather than emacs-pretest-bug.
6503
4d03ece0
CY
65042010-01-11 Chong Yidong <cyd@stupidchicken.com>
6505
6506 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
6507 initializing the Lisp variables that depend on them.
6508
1df47e38
YM
65092010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6510
6511 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
6512 Clear areas that will not be updated after change of menu bar lines.
6513 Clear the menu bar window's current matrix when the window gets empty.
6514
2f1c6384
CY
65152010-01-09 Chong Yidong <cyd@stupidchicken.com>
6516
e398c61c
CY
6517 * intervals.h, textprop.c (extend_property_ranges): Return value
6518 and args changed. Discard properties that begin at or after the
6519 new end (Bug#5306).
6520
6521 * editfns.c (Fformat): Caller changed.
6522
e5a29a10
CY
6523 * nsterm.m (ns_set_default_prefs): Delete function.
6524 (syms_of_nsterm): Initialize ns_command_modifier,
6525 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
6526 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
6527
2f1c6384
CY
6528 * xdisp.c (pos_visible_p): Check for invisible text at the correct
6529 position (Bug#4040).
6530
d427a9fa
EZ
65312010-01-09 Eli Zaretskii <eliz@gnu.org>
6532
6533 * editfns.c (Ffloat_time): Doc fix.
6534
21b9df2f
JD
65352010-01-09 Jan Djärv <jan.h.d@swipnet.se>
6536
6537 * xfns.c (Fx_create_frame): Don't create frame larger than display
6538 by default bug#3643.
6539
4b00d3b1
YM
65402010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6541
6542 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
6543 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
6544 windows above internal border.
6545
6546 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
6547 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
6548 windows above internal border.
6549
6550 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
6551 tool bar windows specially.
6552
6553 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
6554
6555 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
6556 specially.
6557 (XTflash): Take account of menu bar height.
6558
6559 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
6560 specially.
6561
5075d853
JD
65622010-01-08 Jan Djärv <jan.h.d@swipnet.se>
6563
ac146f82 6564 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
6565 also be true before we can return early (bug #5339).
6566
474217c8
CY
65672010-01-06 David Reitter <david.reitter@gmail.com>
6568
6569 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
6570 (Fns_display_usable_bounds): Rewrite, computing bounds properly
6571 (Bug#3233).
6572
c0e6d47d
JD
65732010-01-06 Jan Djärv <jan.h.d@swipnet.se>
6574
d0cf45b7
JD
6575 * font.c (font_open_entity): Enable chache and call cached_font_ok
6576 for the driver if defined.
6577 (QCuser_spec): New symbol.
6578 (font_spec_from_name): Save name as user-spec.
6579 (font_load_for_lface): Keep user-spec instead of name.
6580 (font_open_by_name): Save name as user-spec.
6581 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 6582 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
6583
6584 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
6585 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
6586 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
6587
6588 * font.h (struct font_driver): Add cached_font_ok.
6589
c0e6d47d
JD
6590 * xterm.c (x_clear_frame): Queue draw for scroll bars.
6591
7c583cd8
JD
65922010-01-05 Jan Djärv <jan.h.d@swipnet.se>
6593
6594 * xterm.c (x_new_font): Move code for setting rows/cols before
6595 resizing ...
ac146f82 6596 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
6597
6598 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
6599 (xg_frame_resized, xg_frame_set_char_size):
6600 Call xg_clear_under_internal_border.
7c583cd8 6601 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 6602
03f77f0a
CY
66032010-01-05 Chong Yidong <cyd@stupidchicken.com>
6604
6605 * keyboard.c (read_key_sequence): Catch keyboard switch after
6606 making a new tty frame (Bug#5095).
6607
2a1ef5be
KH
66082010-01-05 Kenichi Handa <handa@m17n.org>
6609
6610 * fontset.c (fontset_find_font): Fix getting the frame pointer.
6611
e3eb1dae
SM
66122010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
6613
6614 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
6615 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
6616 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
6617
777013f2
MA
66182010-01-03 Michael Albinus <michael.albinus@gmx.de>
6619
6620 * dbusbind.c (xd_add_watch): Improve debug message.
6621 (xd_remove_watch): Improve debug message. If DATA is the session
6622 bus, unset D-Bus session environment.
6623 (Fdbus_init_bus): Pass the bus as argument to
6624 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 6625
8932b1c2
CY
66262010-01-01 Chong Yidong <cyd@stupidchicken.com>
6627
87231e2c
CY
6628 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
6629
4801c5fa
CY
6630 * lread.c (syms_of_lread): Make it clearer that these are the
6631 names of loaded files (Bug#5068).
6632
8932b1c2
CY
6633 * eval.c (run_hook_with_args): Handle the case where the global
6634 value has the obsolete single-function form (Bug#5026).
6635
11e3c684
CY
66362009-12-27 Chong Yidong <cyd@stupidchicken.com>
6637
6638 * minibuf.c (Fall_completions): Minor optimization.
6639
5b28ce35
EZ
66402009-12-26 Eli Zaretskii <eliz@gnu.org>
6641
5ce6e4f4
JB
6642 * .gdbinit (pgx): Fix display of composite glyphs.
6643 Display cmp.from and cmp.to as well.
6644 (pitx): Fix last change.
5b28ce35 6645
bcffff46
KH
66462009-12-25 Kenichi Handa <handa@m17n.org>
6647
6648 * composite.h (composition_adjust_point): Update prototype.
6649
6650 * composite.c (composition_reseat_it): Don't make a composition
6651 spanning over point.
6652 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
6653 composable characters.
6654 (composition_adjust_point): New arg NEW_PT. Callers changed.
6655
6656 * keyboard.c (command_loop_1): Force redisplay if the last point
6657 was within a composition.
6658 (adjust_point_for_property): Don't adjust point for automatic
6659 composition when called after buffer modification.
6660
3f670e9a
EZ
66612009-12-19 Eli Zaretskii <eliz@gnu.org>
6662
5ce6e4f4
JB
6663 * .gdbinit (pitx): Don't use enum names, use their values.
6664 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
6665 (pgx): Don't use enum names, use their values.
6666 (pitmethod): New helper command.
6667 (pitx): Use it to display iteration method.
6668 (pgrowit): New command.
6669
ad903955
EZ
6670 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
6671
3f670e9a
EZ
6672 Update dependencies in Makefile.in.
6673
6674 * Makefile.in (alloc.o): Depend on termhooks.h.
6675 (atimer.o): Depend on blockinput.h.
6676 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
6677 and frame.h.
6678 (callint.o): Depend on systime.h, coding.h, and composite.h.
6679 (callproc.o): Depend on buffer.h.
6680 (casefiddle.o): Don't depend on charset.h.
6681 (casetab.o): Depend on character.h.
6682 (ccl.o): Depend on composite.h.
6683 (chartab.o): Depend on ccl.h.
6684 (cm.o): Depend on dispextern.h.
6685 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
6686 (coding.o): Don't depend on $(INTERVALS_H).
6687 (composite.o): Don't depend on dispextern.h explicitly (it's in
6688 $(INTERVALS_H)). Depend on ccl.h.
6689 (data.o): Depend on systime.h, coding.h, composite.h,
6690 dispextern.h, font.h, and ccl.h.
6691 (dired.o): Depend on composite.h.
6692 (dispnew.o): Depend on coding.h. Don't depend explicitly on
6693 composite.h (it's in $(INTERVALS_H)).
6694 (doc.o): Depend on systime.h, coding.h, and composite.h.
6695 (editfns.o): Don't depend explicitly on dispextern.h.
6696 (emacs.o): Depend on frame.h and coding.h.
6697 (eval.o): Depend on coding.h, composite.h, and xterm.h.
6698 (fileio.o): Depend on frame.h and commands.h. Don't depend
6699 explicitly on dispextern.h.
6700 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
6701 composite.h.
6702 (fns.o): Don't depend on termhooks.h.
6703 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
6704 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
6705 coding.h, $(INTERVALS_H), window.h, xterm.h.
6706 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
6707 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
6708 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
6709 fontset.h, ccl.h, and ftfont.h.
6710 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6711 (gtkutil.o): Depend on dispextern.h and composite.h.
6712 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
6713 termhooks.h, and ccl.h.
6714 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
6715 (intervals.o): Depend on systime.h and coding.h.
6716 (keyboard.o): Depend on composite.h and coding.h.
6717 (keymap.o): Depend on coding.h and frame.h.
6718 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
6719 (macros.o): Depend on systime.h, coding.h, and composite.h.
6720 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
6721 and atimer.h.
6722 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
6723 dispextern.h explicitly.
0b5397c2
SM
6724 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
6725 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
6726 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
6727 (regex.o): Don't depend on charset.h.
6728 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
6729 (search.o): Don't depend explicitly on composite.h.
6730 (sound.o): Depend on atimer.h and systime.h.
6731 (syntax.o): Don't depend explicitly on composite.h.
6732 (sysdep.o): Depend on coding.h and composite.h.
6733 (term.o): Depend on xterm.h and buffer.h.
6734 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
6735 (textprop.o): Don't depend on dispextern.h explicitly.
6736 (undo.o): Depend on dispextern.h.
6737 (window.o): Depend on coding.h and termhooks.h. Don't depend on
6738 dispextern.h and composite.h explicitly.
6739 (xdisp.o): Depend on ccl.h.
6740 (xfaces.o): Depend on coding.h and ccl.h.
6741 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
6742 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6743 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
6744 ftfont.h.
6745 (xgselect.o): New dependency.
6746 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
6747 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
6748 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
6749 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
6750 (xsmfns.o): Depend on frame.h and dispextern.h.
6751 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
6752 sysselect.h.
6753
7a6f7fea
AS
67542009-12-19 Andreas Schwab <schwab@linux-m68k.org>
6755
6756 * font.c (Fclear_font_cache): Pass correct cache argument to
6757 font_clear_cache.
6758
f4c21026
AS
67592009-12-16 Andreas Schwab <schwab@linux-m68k.org>
6760
6761 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
6762 twice.
6763
f7ab0997
CY
67642009-12-15 Chong Yidong <cyd@stupidchicken.com>
6765
6766 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
6767 calling file-remote-p. Reported by Jim Meyering.
6768
fa8e045a
MA
67692009-12-15 Michael Albinus <michael.albinus@gmx.de>
6770
6771 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 6772 avoid compiler warnings. (Bug #5217)
fa8e045a 6773
a63dba42
KH
67742009-12-14 Kenichi Handa <handa@m17n.org>
6775
6776 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
6777 in 8-bit encoding.
6778
5ce6e4f4 67792009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
6780
6781 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
6782 tooltip windows.
6783
223e5fc6
JD
67842009-12-13 Jan Djärv <jan.h.d@swipnet.se>
6785
36acb2a7
JD
6786 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
6787 Xatom_net_window_type.
6788
6789 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
6790 Xatom_net_window_type.
6791
b8f00677
JD
6792 * xterm.c (my_log_handler): New function.
6793 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 6794 so we can filter out buggy messages. (Bug #5120).
b8f00677 6795
e5f0bc9a
JD
6796 * xterm.c (xg_scroll_callback): Parameter list changed,
6797 use parameter GtkScrollType to determine scroll/line/page.
6798 Only allow dragging if a button < 4 is grabbed (bug #5177).
6799 (xg_end_scroll_callback): New function.
6800 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
6801 xg_create_scroll_bar.
6802
6803 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
6804 (scroll_end_callback): Remove.
6805 (xg_create_scroll_bar): Add parameter end_callback, bind it to
6806 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 6807 bug #5177.
e5f0bc9a
JD
6808 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
6809 bug #5177.
6810
6811 * gtkutil.h (XG_LAST_SB_DATA): Remove.
6812 (xg_create_scroll_bar): Add GCallback end_callback.
6813
223e5fc6
JD
6814 * xftfont.c (QClcdfilter): New variable.
6815 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
6816 (syms_of_xftfont): Initialize QClcdfilter.
6817
3c055b77
JD
68182009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6819
6820 * xsettings.c (struct xsettings): Add member seen.
6821 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 6822 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
6823 (apply_xft_settings): Only update Xft settings with what member seen
6824 indicates as new.
6825
05fe33ff
EZ
68262009-12-12 Eli Zaretskii <eliz@gnu.org>
6827
c4cc8b9a 6828 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
6829 (struct glyph): Use EMACS_INT for charpos.
6830 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
6831 region_beg_charpos, region_end_charpos,
6832 redisplay_end_trigger_charpos, and also for
6833 iterator_stack_entry.end_charpos and
6834 iterator_stack_entry.stop_charpos.
6835
e8d7886a
JD
68362009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6837
5ce6e4f4 6838 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
6839 (xg_create_scroll_bar): Call scroll_end_callback on button release
6840 event (bug #5177).
6841 (xg_event_is_for_scrollbar): != replaced with ==.
6842
d0db2ec8
KH
68432009-12-12 Kenichi Handa <handa@m17n.org>
6844
6845 * ftfont.c (struct ftfont_info): New member matrix.
6846 (ftfont_open): Setup xftfont_info->matrix.
6847 (MFLTFontFT): New member matrix.
6848 (FLOOR, CEIL, ROUND): New macros.
6849 (ftfont_get_metrics): Handle matrix transformation.
6850 (ftfont_shape_by_flt): New arg matrix. Callers changed.
6851
6852 * xftfont.c (struct xftfont_info): New member matrix.
6853 (xftfont_open): Setup xftfont_info->matrix.
6854
68552009-12-10 Kenichi Handa <handa@m17n.org>
6856
6857 * xdisp.c (append_space_for_newline): Consider face-remapping.
6858
2cc7b62f
AS
68592009-12-09 Andreas Schwab <schwab@linux-m68k.org>
6860
b87dd913
AS
6861 * xsettings.c: Include "keyboard.h".
6862
eba5eb94
AS
6863 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
6864
2cc7b62f
AS
6865 Fix implicit function declarations.
6866 * cmds.c: Include "frame.h".
6867 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
6868 * frame.h: Move declaration of delete_frame outside of
6869 HAVE_WINDOW_SYSTEM.
6870
a4ef73c8
CY
68712009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
6872
6873 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
6874
6875 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
6876 GTK builds.
6877
944a300c
AS
68782009-12-07 Andreas Schwab <schwab@linux-m68k.org>
6879
6880 * unexelf.c (unexec): Don't search for .data twice.
6881
022eef62
CY
68822009-12-05 Chong Yidong <cyd@stupidchicken.com>
6883
426ac949
CY
6884 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
6885 if push failed.
6886 (handle_line_prefix): Set avoid_cursor_p here. Check return value
6887 of push_display_prop (Bug#5000).
6888
022eef62
CY
6889 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
6890 value of font_list_entities (Bug#5085).
6891
be95bee9
JB
68922009-12-04 Juanma Barranquero <lekktu@gmail.com>
6893
6894 Fix `string-to-number' to deal consistently with integers and floats.
6895 * lread.c (isfloat_string): New argument ignore_trailing to accept all
6896 trailing characters, not just whitespace.
6897 (read1): Pass new arg 0 to keep old behavior.
6898 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
6899 trailing chars, as it is already done for integers. Doc fixes.
6900 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
6901
24c2d7ce
EZ
69022009-12-04 Eli Zaretskii <eliz@gnu.org>
6903
0b5397c2
SM
6904 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
6905 Delete unused enumeration value.
24c2d7ce 6906
7e694795
EZ
69072009-12-03 Eli Zaretskii <eliz@gnu.org>
6908
6909 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
6910
84b31826
SM
69112009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
6912
6913 * process.c (Fmake_network_process): Fix up the tests for
6914 "connectionless socket", so they DTRT for seqpacket sockets as well.
6915
f00c449b
SM
69162009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
6917
6918 * process.c (Qseqpacket): New symbol.
6919 (HAVE_SEQPACKET): New macro.
6920 (Fmake_network_process): Accept new :type `seqpacket'.
6921 (init_process): Add `seqpacket' feature when applicable.
6922 (syms_of_process): Initialize Qseqpacket.
6923
8096a0ff
YM
69242009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6925
6926 * font.c (font_load_for_lface, font_open_by_name): Don't store name
6927 if entity is Qnil.
6928
3e0de07f
SM
69292009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
6930
6931 * print.c (print_preprocess): Preprocess the key_and_value table of
6932 hashtables, even tho they're "hidden" (bug#5082).
6933
abeafb2a
JD
69342009-11-29 Jan Djärv <jan.h.d@swipnet.se>
6935
6936 * frame.c (frame_make_pointer_invisible)
6937 (frame_make_pointer_visible): Declare f before statements.
6938
4bf47195
EZ
69392009-11-28 Eli Zaretskii <eliz@gnu.org>
6940
6941 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
6942 omitted dependencies on lisp.h.
6943
c525b3f2
JD
69442009-11-27 Jan Djärv <jan.h.d@swipnet.se>
6945
ece2d4ed
JD
6946 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
6947 is NULL.
6948
6949 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
6950
6951 * frame.c (frame_make_pointer_invisible)
3e0de07f 6952 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
6953 frame.
6954
c525b3f2
JD
6955 * search.c (simple_search): Remove warning by making *p const.
6956
2f00e299
DN
69572009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
6958
6959 * xdisp.c (power_letter): Remove duplicate const.
6960
084b049b
JD
69612009-11-25 Jan Djärv <jan.h.d@swipnet.se>
6962
a1fadc6f
JD
6963 * term.c (delete_tty): Remove check for last terminal (bug#4970).
6964
5ce6e4f4 6965 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
6966 defaults (bug #5025).
6967
28259cac
SM
69682009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
6969
6970 * insdel.c (adjust_markers_for_delete): Move it in the
6971 right direction! (bug#4803)
6972
e8e14166
YM
69732009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6974
6975 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
6976
6977 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
6978
86677b58
GM
69792009-11-24 Glenn Morris <rgm@gnu.org>
6980
6981 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
6982
581e51e8
JD
69832009-11-23 Jan Djärv <jan.h.d@swipnet.se>
6984
cfc86c7a
JD
6985 * Makefile.in: Must create deps for ecrt0.o in its rule.
6986
581e51e8
JD
6987 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
6988 because that is what Gtk+ font dialog understands.
6989
6990 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
6991 of Fcopy_sequence.
6992 (font_open_by_name): Put name given into QCname for font-object returned.
6993
6994 * frame.c (x_set_font): Save original font name as frame parameter
6995 font-parameter.
6996
6997 * xsettings.c (set_default_xft_settings): New function.
6998 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
6999 is found.
7000
8b264ecb
AS
70012009-11-22 Andreas Schwab <schwab@linux-m68k.org>
7002
7003 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
7004 searching backwards through multibyte buffer.
7005
872870b2
JD
70062009-11-21 Jan Djärv <jan.h.d@swipnet.se>
7007
7008 * xterm.c: #include xgselect.h.
7009 (x_initialize): Call xgselect_initialize.
7010
7011 * xsettings.c (something_changedCB): C++ comments => C comments.
7012 (init_gconf): Do not deal with any GLib file descriptors, xg_select
7013 does that now.
7014
7015 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
7016 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
7017 (scroll_bar_button_cb): Remove.
5ce6e4f4 7018 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
7019 event.
7020 (xg_create_scroll_bar): Don't bind button-press-event and
7021 button-release-event.
7022
7023 * process.c: Include xgselect.h if defined (USE_GTK) ||
7024 defined (HAVE_GCONF).
7025 (wait_reading_process_output): Call xg_select for the same condition.
7026
7027 * xgselect.c (xg_select): New function to better integrate with
7028 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
7029
7030 * xgselect.h: New file, declare xg_select, xgselect_initialize.
7031
7032 * Makefile.in (XOBJ): Add xgselect.o.
7033
62a6e103
AS
70342009-11-21 Andreas Schwab <schwab@linux-m68k.org>
7035
0b5397c2
SM
7036 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
7037 Remove ignored second argument. All callers changed.
62a6e103
AS
7038 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
7039 (RE_STRING_CHAR_AND_LENGTH): Likewise.
7040 * xdisp.c (string_char_and_length): Likewise.
7041
b0ca0f33
DN
70422009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
7043
7044 * xterm.c (x_new_font):
7045 * print.c (print_object):
7046 * cmds.c (Fself_insert_command): Move declarations before statements.
7047
dd5a6279
CY
70482009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
7049
7050 * s/cygwin.h: Remove unneeded linker flags.
7051
4a8e097d
JD
70522009-11-20 Jan Djärv <jan.h.d@swipnet.se>
7053
0d1d0d26
JD
7054 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
7055
7056 * xsettings.h: Declare xsettings_get_system_font.
7057
7058 * xsettings.c (xsettings_get_system_font): New function.
7059 (init_gconf): No use initiating gconf unless we have Xft also.
7060 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
7061 HAVE_GCONF.
7062
4a8e097d
JD
7063 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
7064 add a blank entry so it doesn't collapse into nothing.
7065
8ab1650e
SM
70662009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
7067
7068 * lread.c (Funintern): Comment out last change.
7069
82c602f0
RS
70702009-11-19 Richard Stallman <rms@gnu.org>
7071
7072 * lread.c (Funintern): Error if symbol is t or nil.
7073
87e32266
SM
70742009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
7075
7076 * insdel.c (make_gap_larger): Don't make as many assumptions about the
7077 representation of Lisp integers.
7078 Reported by MJ Chan <mjchan.inbox@gmail.com>.
7079
1b9ac145
AS
70802009-11-17 Andreas Schwab <schwab@linux-m68k.org>
7081
7082 * lisp.h: Remove declaration of Ffont_get_system_font.
7083 * xfns.c: Move include of "xsettings.h".
7084 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
7085
dfb3c4c6
JD
70862009-11-17 Jan Djärv <jan.h.d@swipnet.se>
7087
87e32266
SM
7088 * xsettings.c (something_changedCB, Ffont_get_system_font):
7089 Check use_system_font.
dfb3c4c6
JD
7090 (syms_of_xsettings): DEFVAR font-use-system-font.
7091
9370c1d8
AS
70922009-11-17 Andreas Schwab <schwab@linux-m68k.org>
7093
25fe851a
AS
7094 * xfns.c (x_default_font_parameter): Remove dead assignment.
7095
9370c1d8
AS
7096 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
7097
637fa988
JD
70982009-11-17 Jan Djärv <jan.h.d@swipnet.se>
7099
87e32266 7100 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 7101 not have FC_LCD_*. #define them if not there.
a6eb20d8 7102
87e32266 7103 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 7104
637fa988
JD
7105 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
7106
7107 * xterm.c (handle_one_xevent): Call xft_settings_event for
7108 ClientMessage, PropertyNotify and DestroyNotify.
7109 (x_term_init): If we have XFT, get DPI from Xft.dpi.
7110 Call xsettings_initialize.
7111
7112 * xftfont.c (xftfont_fix_match): New function.
7113 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
7114 Call xftfont_fix_match after XftFontMatch.
7115
7116 * xfont.c (xfont_driver): Initialize all members.
7117
87e32266
SM
7118 * xfns.c (x_default_font_parameter):
7119 Try font from Ffont_get_system_font.
637fa988
JD
7120 Do not get font from x_default_parameter if we got one from
7121 Ffont_get_system_font.
87e32266 7122 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
7123
7124 * w32font.c (w32font_driver): Initialize all members.
7125
7126 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
7127
7128 * lisp.h: Declare syms_of_xsettings.
7129
87e32266
SM
7130 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
7131 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
7132
7133 * ftfont.c (ftfont_filter_properties): New function.
7134
7135 * frame.c (x_set_font): Remove unused variable lval.
7136
87e32266 7137 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
7138
7139 * font.c (font_put_extra): Don't return if val is nil, it means
7140 boolean option is off.
7141 (font_parse_fcname): Collect all extra properties in extra_props
7142 and call filter_properties for all drivers with extra_props and
7143 font as parameter.
87e32266
SM
7144 (font_open_entity): Do not use cache, it does not pick up new
7145 fontconfig settings like hinting.
637fa988
JD
7146 (font_load_for_lface): If spec had a name in it, store it in entity.
7147
a73f9c9d 7148 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
7149
7150 * config.in: HAVE_GCONF is new.
7151
7152 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
7153 xsettings.o is new.
7154
5a942932
KH
71552009-11-17 Kenichi Handa <handa@m17n.org>
7156
7157 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
7158 back to the default font in case that no suitable font is found.
7159
b7c7a4d1
SM
71602009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
7161
7162 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
7163 Suggested by Chad Brown <yandros@mit.edu>.
7164 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
7165
072f1e39
JD
71662009-11-16 Jan Djärv <jan.h.d@swipnet.se>
7167
7168 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
7169
5d1e70a2
AS
71702009-11-14 Andreas Schwab <schwab@linux-m68k.org>
7171
87e32266 7172 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 7173
a53cfbe5
JD
71742009-11-14 Jan Djärv <jan.h.d@swipnet.se>
7175
473a99b7
JD
7176 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
7177 has a parent.
7178
a53cfbe5 7179 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 7180 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
7181
7182 * config.in: Generated (AUTO_DEPEND).
7183
f04bb9b2
MA
71842009-11-13 Michael Albinus <michael.albinus@gmx.de>
7185
b7c7a4d1 7186 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
7187 Vdbus_registered_functions_table, because it contains also
7188 properties. Fix docstring.
b7c7a4d1 7189 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 7190
8f11f7ec
SM
71912009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
7192
7193 * alloc.c (mark_object): Don't reprocess marked strings.
7194 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
7195 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
7196
8a605fe8
KH
71972009-11-13 Kenichi Handa <handa@m17n.org>
7198
8f11f7ec 7199 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
7200 semantics of Vword_combining_categories.
7201 (Vword_combining_categories): Describe the slight change of the
7202 semantics.
7203
241c4680
EZ
72042009-11-13 Eli Zaretskii <eliz@gnu.org>
7205
7206 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
7207
7208 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
7209
5d58e44c
SM
72102009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
7211
7212 * xdisp.c (syms_of_xdisp): Fix typo in last change.
7213
5e13f9d3
JB
72142009-11-12 Juanma Barranquero <lekktu@gmail.com>
7215
7216 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
7217
cf54c754
DR
72182009-11-11 David Reitter <david.reitter@gmail.com>
7219
7220 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
7221 variables to fix 2009-11-09 change.
7222
a4ada374
DN
72232009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
7224
91433552
DN
7225 * process.c (ifflag_def): Make flag_sym constant.
7226 (Fnetwork_interface_info): Use a constant pointer.
7227 (ifflag_table):
7228 * xfns.c (cursor_bits):
7229 * xdisp.c (power_letter):
7230 * termcap.c (speeds, esctab):
7231 * sysdep.c (baud_convert):
7232 * keyboard.c (lispy_accent_codes, modifier_names):
7233 * image.c (xbm_format, xpm_format, pbm_format, png_format)
7234 (jpeg_format, tiff_format, gif_format, svg_format)
7235 (interlace_start, interlace_increment, gs_format):
7236 * gtkutil.c (separator_names):
7237 * fringe.c (swap_nibble):
7238 * fns.c (base64_value_to_char, base64_char_to_value):
7239 * fileio.c (make_temp_name_tbl):
7240 * coding.c (suffixes): Make constant.
7241
f4265f6c
DN
7242 * frame.c (make_initial_frame):
7243 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
7244 build_string.
7245 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
7246
04420943
DN
7247 * s/freebsd.h:
7248 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
7249
0a5d24ae
DN
7250 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
7251 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
7252
a4ada374
DN
7253 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
7254 * xterm.c (syms_of_xterm):
7255 * xfaces.c (syms_of_xfaces):
7256 * xdisp.c (syms_of_xdisp):
7257 * lread.c (syms_of_lread):
7258 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
7259 build_string.
91433552 7260
a4ada374
DN
7261 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
7262
af98fc7f
SM
72632009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
7264
8ab1650e 7265 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 7266
e90292a9
JD
72672009-11-10 Jan Djärv <jan.h.d@swipnet.se>
7268
7269 * keyboard.h: Declare timer_check.
7270
7271 * keyboard.c (timer_check_2): New function that does what the old
7272 timer_check did.
7273 (timer_check): Call timer_check_2 until -1 or a non-zero time is
7274 returned, i.e. don't return -1 with timers pending.
7275
7276 * process.c: Remove extern declaration of timer_check.
7277
7278 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
7279 even if timer_check returned -1.
7280
af98fc7f
SM
7281 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
7282 xg_dialog_data.
e90292a9
JD
7283 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
7284 the event loop.
7285 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
7286 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
7287 Destroy the dialog after xg_dialog_run.
7288
045b83c0
SM
72892009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
7290
7291 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
7292
1fb99a3a
JD
72932009-11-10 Jan Djärv <jan.h.d@swipnet.se>
7294
7295 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
7296
04e452cb
JB
72972009-11-09 Juanma Barranquero <lekktu@gmail.com>
7298
7299 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
7300
ef7417fd
SM
73012009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
7302
7303 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
7304 w32menu.c, and nsmenu.m.
7305 Simplify the obsolete case where position is nil.
7306 (cleanup_popup_menu): New function, moved from nsmenu.m.
7307 (struct skp): Remove slot `notreal'.
7308 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
7309 adjust callers.
7310 (single_menu_item): Adjust call to parse_menu_item.
7311 (syms_of_menu): Defsubr x-popup-menu.
7312 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
7313 (keymap_panes): Don't export any more.
7314 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
7315 (xmenu_show): Declare.
7316 * keyboard.c (parse_menu_item): Remove arg `notreal'.
7317 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
7318 * keyboard.h (parse_menu_item): Update declaration.
7319 * xmenu.c (Fx_popup_menu): Remove.
7320 (syms_of_xmenu): Don't defsubr x-popup-menu.
7321 * w32menu.c (Fx_popup_menu): Remove.
7322 (syms_of_w32menu): Don't defsubr x-popup-menu.
7323 * nsmenu.m (cleanup_popup_menu): Remove.
7324 (ns_menu_show): Rename from ns_popup_menu and remove all the code
7325 moved to menu.c's Fx_popup_menu.
7326 (Fx_popup_menu): Remove.
7327 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
7328 menu_items (it's done in menu.c already).
7329
424d6179
SM
73302009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
7331
7332 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
7333 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
7334
c0df13a6 73352009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
7336
7337 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 7338 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
7339 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
7340 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
7341
2de9f71c
SM
73422009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
7343
7344 Let integers use up 2 tags to give them one extra bit and thus double
7345 their range.
7346 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
7347 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
7348 New macros.
7349 (enum Lisp_Type): Use them. Give explicit values.
7350 (Lisp_Type_Limit): Remove.
7351 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
7352 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
7353 Pay attention to USE_2_TAGS_FOR_INTS.
7354 (INTEGERP): Use LISP_INT_TAG_P.
7355 * fns.c (internal_equal): Simplify the default case.
7356 (sxhash): Use case_Lisp_Int.
7357 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
7358 any more.
7359 (Ftype_of): Use case_Lisp_Int.
7360 (store_symval_forwarding): Take into account the fact that Ints can
7361 now have more than one tag.
7362 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 7363 (buffer_slot_type_mismatch):
2de9f71c
SM
7364 * xfaces.c (face_attr_equal_p):
7365 * print.c (print_object):
7366 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
7367 Use case_Lisp_Int.
7368
323637a2
EZ
73692009-11-06 Eli Zaretskii <eliz@gnu.org>
7370
7ac65b38
EZ
7371 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
7372
323637a2
EZ
7373 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
7374 warning.
7375
e511451f
JD
73762009-11-06 Jan Djärv <jan.h.d@swipnet.se>
7377
7378 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
7379
7380 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
7381
7382 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
7383 ButtonPressRelease and MotionNotify (bug#4870).
7384
5e2327cf
DN
73852009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
7386
5adc433e
DN
7387 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
7388
d67b4f80
DN
7389 * xterm.c (syms_of_xterm):
7390 * xselect.c (syms_of_xselect):
7391 * xmenu.c (syms_of_xmenu):
7392 * xfns.c (syms_of_xfns):
7393 * xfaces.c (syms_of_xfaces):
7394 * xdisp.c (syms_of_xdisp):
7395 * window.c (syms_of_window):
7396 * w32fns.c (syms_of_w32fns):
7397 * undo.c (syms_of_undo):
7398 * textprop.c (syms_of_textprop):
7399 * terminal.c (syms_of_terminal):
7400 * syntax.c (syms_of_syntax):
7401 * sound.c (syms_of_sound):
7402 * search.c (syms_of_search):
7403 * print.c (syms_of_print):
7404 * minibuf.c (syms_of_minibuf):
7405 * macros.c (syms_of_macros):
7406 * keymap.c (syms_of_keymap, initial_define_key)
7407 (initial_define_lispy_key):
7408 * keyboard.c (syms_of_keyboard):
7409 * insdel.c (syms_of_insdel):
7410 * image.c (syms_of_image):
7411 * fringe.c (syms_of_fringe):
7412 * frame.c (syms_of_frame):
7413 * fontset.c (syms_of_fontset):
7414 * fns.c (syms_of_fns):
7415 * fns.c (syms_of_fns):
7416 * fileio.c (syms_of_fileio):
7417 * fileio.c (syms_of_fileio):
7418 * eval.c (syms_of_eval):
7419 * doc.c (syms_of_doc):
7420 * dispnew.c (syms_of_display):
7421 * dired.c (syms_of_dired):
7422 * dbusbind.c (syms_of_dbusbind):
7423 * data.c (syms_of_data):
7424 * composite.c (syms_of_composite):
7425 * coding.c (syms_of_coding):
7426 * cmds.c (syms_of_cmds):
7427 * charset.c (define_charset_internal, syms_of_character):
7428 * ccl.c (syms_of_ccl):
7429 * category.c (syms_of_category, init_category_once):
7430 * casetab.c (syms_of_casetab):
7431 * casefiddle.c (syms_of_casefiddle):
7432 * callint.c (syms_of_callint):
7433 * bytecode.c (syms_of_bytecode):
7434 * buffer.c (keys_of_buffer, syms_of_buffer):
7435 * alloc.c (syms_of_alloc):
7436 * process.c (syms_of_process, init_process):
7437 * lread.c (syms_of_lread, init_obarray):
7438 * font.c (build_style_table):
7439 * emacs.c (syms_of_emacs, main): Replace calls to intern with
7440 intern_c_string, calls to make_pure_string with
7441 make_pure_c_string. Use pure_cons instead of Fcons.
7442
5e2327cf
DN
7443 * process.c (socket_options): Make it const.
7444 (set_socket_option, init_process): Use a const pointer.
7445
7446 * lread.c (intern_c_string): New function.
7447 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
7448 (defvar_int): Uset it. Make the name const char*.
7449
7450 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
7451 (defvar_int): Update prototypes.
7452 (DEFUN, EXFUN): Support for prototypes is now required.
7453 (intern_c_string): New prototype.
7454 (struct Lisp_Subr): Make symbol_name constant.
7455
7456 * font.c (struct table_entry): Remove unused member. Make NAMES
7457 constant.
7458 (weight_table, slant_table, width_table): Make constant.
7459
7460 * emacs.c (struct standard_args): Make name and longname constant.
7461
7462 * character.h (DEFSYM): Use intern_c_string.
7463
a56eaaef
DN
74642009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
7465
7466 * alloc.c (make_pure_c_string): New function.
7467
7468 * eval.c (Fautoload): Purecopy all arguments.
7469
f6a07420
KH
74702009-11-05 Kenichi Handa <handa@m17n.org>
7471
7472 * fileio.c (Finsert_file_contents): Be sure set coding-system of
7473 the buffer in case of replace.
7474
5d28d4b1
DN
74752009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
7476
7477 * puresize.h (BASE_PURESIZE): Increase to 1620000.
7478
b349d111
SM
74792009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
7480
d528b1ce
SM
7481 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
7482 when applicable (bug#4851).
7483
b349d111
SM
7484 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
7485 (P_): Support for prototypes is now required.
7486
c38eb027
CY
74872009-10-31 Chong Yidong <cyd@stupidchicken.com>
7488
7489 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
7490 (Bug#4827).
7491
0405f8d9
EZ
74922009-10-30 Eli Zaretskii <eliz@gnu.org>
7493
d528b1ce 7494 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 7495
ca0a881a
DN
74962009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
7497
7498 * puresize.h (BASE_PURESIZE): Increase to 1470000.
7499
d528b1ce
SM
7500 * lread.c (Fload): Purecopy the file name when building
7501 Vpreloaded_file_list.
ca0a881a 7502
47e0e0e4
JR
75032009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
7504
7505 * w32fns.c (syms_of_w32fns): Change default value of
7506 w32-scroll-lock-modifier to nil. (Bug#2827)
7507
057bce6f
JB
75082009-10-26 Juanma Barranquero <lekktu@gmail.com>
7509
782a943e 7510 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 7511
242bc74c
AS
75122009-10-26 Andreas Schwab <schwab@redhat.com>
7513
7514 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
7515
522d013a
JB
75162009-10-26 Juanma Barranquero <lekktu@gmail.com>
7517
7518 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
7519 For delta < 0, skip check that only makes sense when the mini-window
7520 is going to be enlarged. (Bug#4534)
7521
18060980
CY
75222009-10-25 Chong Yidong <cyd@stupidchicken.com>
7523
7524 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
7525 string in menu maps (Bug#4471).
7526
fec8f0fe
CY
75272009-10-24 Chong Yidong <cyd@stupidchicken.com>
7528
7529 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
7530 FRAME_NS_VIEW on terminal frames (Bug#4765).
7531
10d66ec0
AS
75322009-10-24 Andreas Schwab <schwab@linux-m68k.org>
7533
1cae01f7
AS
7534 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
7535 DBUS_TYPE_UINTnn separately to get proper sign extension.
7536
58a12889
AS
7537 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
7538 can properly handle unsigned types.
d528b1ce 7539 (make_uid, make_gid): Remove.
58a12889 7540
987c9327
AS
7541 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
7542 types again.
7543
522d013a 7544 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
7545 (system_process_attributes): Likewise.
7546
905a9ed3
DN
75472009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
7548
7549 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
7550
7551 * eval.c (Fautoload): Purecopy the filename. Simplify.
7552
7553 * category.c (Fdefine_category): Purecopy docstring.
7554
a599b3e8
AS
75552009-10-23 Andreas Schwab <schwab@linux-m68k.org>
7556
7b792fc9
AS
7557 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
7558
a599b3e8
AS
7559 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
7560
b35ac83e
CY
75612009-10-23 Chong Yidong <cyd@stupidchicken.com>
7562
7563 * window.c (Fwindow_edges, Fwindow_pixel_edges)
7564 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
7565 (Bug#4775).
7566
e8903e00
SM
75672009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
7568
7569 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
7570 (init_fileio_once):
7571 * lisp.h (init_fileio_once): Remove.
7572 * emacs.c (main): Don't call init_fileio_once.
7573
8f43cbf3
DN
75742009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
7575
7576 * puresize.h (BASE_PURESIZE): Increase to 1430000.
7577
26898943
AS
75782009-10-21 Andreas Schwab <schwab@linux-m68k.org>
7579
7580 * doprnt.c (doprnt): Fix overflow check.
7581
5c646d5a
JD
75822009-10-21 Jan Djärv <jan.h.d@swipnet.se>
7583
3132a7ea
JD
7584 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
7585
5c646d5a
JD
7586 * xterm.h (x_wait_for_event): Declare it.
7587
7588 * xterm.c (pending_event_wait): New variable.
7589 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
7590 see pending_event_wait.eventtype.
7591 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
7592 (x_new_font): Call change_frame_size with new rows/columns before we
7593 try to resize the frame.
5c646d5a 7594 (x_wait_for_event): New function.
d528b1ce
SM
7595 (x_set_window_size_1): Don't change gravity unless change_gravity
7596 is set.
5c646d5a
JD
7597 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
7598 don't change frame size, instead wait for the ConfigureNotify.
7599 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
7600 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
7601 (x_initialize): Initialize pending_event_wait.
7602
7603 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
7604 size.
7605
7606 * widget.c (EmacsFrameSetValues): Add comment.
7607 (EmacsFrameSetCharSize): Just call x_set_window_size.
7608
7609 * gtkutil.c (xg_frame_set_char_size): Flush events and call
7610 x_wait_for_event.
d528b1ce 7611 (flush_and_sync): Remove again.
5c646d5a
JD
7612 (xg_get_font_name): Suggest monospace if no previous font is known.
7613
e9c1637d
SM
76142009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
7615
7616 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 7617 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 7618
5a72cccb
YM
76192009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7620
7621 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
7622 processing pending events when event is filtered for input method.
ab04798f 7623 (Bug#3681)
5a72cccb 7624
2629aa37
JB
76252009-10-20 Juanma Barranquero <lekktu@gmail.com>
7626
7627 * fns.c: Add #endif accidentally removed in previous change.
7628
c3417a74
DN
76292009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7630
7631 * fns.c: Remove code for unsupported system: MAC_OS.
7632 * image.c: Likewise. Include setjmp.h.
7633
9685cef2
JD
76342009-10-19 Jan Djärv <jan.h.d@swipnet.se>
7635
7636 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
7637 pixel -1 (bug #4742).
7638
d7306fe6
DN
76392009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7640
019d2c4c
DN
7641 * process.c (create_pty): Remove conditionals for no longer
7642 supported systems: UNIPLUS and RTU.
7643
ee6bacd4
DN
7644 * xterm.c:
7645 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
7646
d7306fe6
DN
7647 * alloc.c: Do not define struct catchtag.
7648 * eval.c: Move struct catchtag definition ...
7649 * lisp.h: ... here.
7650
7651 * image.c: Move png.h #include earlier to avoid warnings.
7652
7653 * xterm.c:
7654 * xsmfns.c:
7655 * xselect.c:
7656 * xrdb.c:
7657 * xmenu.c:
7658 * xftfont.c:
7659 * xfont.c:
7660 * xfns.c:
7661 * xfaces.c:
7662 * xdisp.c:
7663 * window.c:
7664 * widget.c:
7665 * w32xfns.c:
7666 * w32uniscribe.c:
7667 * w32term.c:
7668 * w32select.c:
7669 * w32reg.c:
7670 * w32proc.c:
7671 * w32menu.c:
7672 * w32inevt.c:
7673 * w32heap.c:
7674 * w32font.c:
7675 * w32fns.c:
7676 * w32console.c:
7677 * w32.c:
7678 * w16select.c:
7679 * vm-limit.c:
7680 * unexsol.c:
7681 * unexec.c:
7682 * unexcw.c:
7683 * unexaix.c:
7684 * undo.c:
7685 * tparam.c:
7686 * textprop.c:
7687 * terminfo.c:
7688 * terminal.c:
7689 * termcap.c:
7690 * term.c:
7691 * syntax.c:
7692 * sound.c:
7693 * sheap.c:
7694 * search.c:
7695 * scroll.c:
7696 * region-cache.c:
7697 * regex.c:
7698 * ralloc.c:
7699 * process.c:
7700 * print.c:
b024548b
DN
7701 * nsterm.m:
7702 * nsselect.m:
7703 * nsmenu.m:
7704 * nsimage.m:
7705 * nsfont.m:
7706 * nsfns.m:
d7306fe6
DN
7707 * msdos.c:
7708 * minibuf.c:
7709 * menu.c:
7710 * marker.c:
7711 * macros.c:
7712 * keymap.c:
7713 * keyboard.c:
7714 * intervals.c:
7715 * insdel.c:
7716 * indent.c:
7717 * gtkutil.c:
7718 * ftxfont.c:
7719 * ftfont.c:
7720 * fringe.c:
7721 * frame.c:
7722 * fontset.c:
7723 * font.c:
7724 * fns.c:
7725 * floatfns.c:
7726 * filelock.c:
7727 * fileio.c:
7728 * emacs.c:
7729 * editfns.c:
7730 * dosfns.c:
7731 * doprnt.c:
7732 * doc.c:
7733 * dispnew.c:
7734 * dired.c:
7735 * dbusbind.c:
7736 * data.c:
7737 * composite.c:
7738 * coding.c:
7739 * cmds.c:
7740 * cm.c:
7741 * chartab.c:
7742 * charset.c:
7743 * character.c:
7744 * ccl.c:
7745 * category.c:
7746 * casetab.c:
7747 * casefiddle.c:
7748 * callproc.c:
7749 * callint.c:
7750 * bytecode.c:
7751 * buffer.c:
7752 * atimer.c: Include setjmp.h. (Bug#4643)
7753
fd5f21e6
SM
77542009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
7755
4c0354d7
SM
7756 Remove leftover table unibyte_to_multibyte_table.
7757 * character.c (unibyte_to_multibyte_table): Remove.
7758 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
7759 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
7760 * character.h (UNIBYTE_TO_CHAR): New macro.
7761 (MAKE_CHAR_MULTIBYTE): Use it.
7762 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
7763 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
7764 (message_dolog, set_message_1):
7765 * search.c (Freplace_match):
7766 * editfns.c (Fcompare_buffer_substrings):
7767 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
7768 (concat):
7769 * insdel.c (copy_text, count_size_as_multibyte):
7770 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
7771 * term.c (produce_glyphs):
7772 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
7773 * regex.c (RE_CHAR_TO_MULTIBYTE):
7774 * cmds.c (internal_self_insert):
7775 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
7776
fd5f21e6
SM
7777 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
7778
4418646e
DN
77792009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
7780
7781 * puresize.h (BASE_PURESIZE): Increase to 1310000.
7782
35f5c1d2
JB
77832009-10-16 Juanma Barranquero <lekktu@gmail.com>
7784
7785 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
7786
a0cd8f6b
AR
77872009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7788
7789 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
7790 still needed under Tiger.
7791
7792 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
7793
7794 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
7795 __Apple__.
7796
7797 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
7798
01a8d3fa
KH
77992009-10-15 Kenichi Handa <handa@m17n.org>
7800
7801 * print.c (print_object): Escape a symbol like "2E10" too.
7802
bf6c75c9 78032009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
7804
7805 Cleanups and changes for 64-bit compile under Snow Leopard.
7806 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
7807
7808 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
7809
c5959062 7810 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
7811 (ns_findfonts, nsfont_list_family): Use long format in printf, and
7812 cast argument.
7813 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 7814 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
7815
7816 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
7817
7818 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
7819 where appropriate.
7820
7821 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
7822 where appropriate.
6e4780c5
JB
7823 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
7824 Use stringWithUTF8String.
bf6c75c9
AR
7825 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
7826
6e4780c5
JB
7827 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
7828 Add formal protocol mention to inheritance.
bf6c75c9
AR
7829 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
7830
6e4780c5
JB
7831 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
7832 Fix printf format.
bf6c75c9
AR
7833 (ns_query_color): Use CGFloat where appropriate.
7834 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 7835 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
7836 argument.
7837
3d87f118
AR
7838 * config.in (NS_HAVE_NSINTEGER): Drop.
7839
a95c8102
AR
7840 * dbusbind.c (dbus-method-return-internal)
7841 (dbus-method-error-internal): Use long format in printf, and cast
7842 argument.
7843
7844 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
7845 in printf, and cast argument.
7846
6873acca 7847 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
7848 cast argument.
7849
9ec6f100
GM
78502009-10-11 Glenn Morris <rgm@gnu.org>
7851
7852 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
7853
5be883cd
JD
78542009-10-08 Jan Djärv <jan.h.d@swipnet.se>
7855
7856 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
7857 menu bar with a small width so it doesn't enlarge the frame.
7858
d7a39b51
JB
78592009-10-08 Juanma Barranquero <lekktu@gmail.com>
7860
7861 * fontset.c (Fset_fontset_font): Fix typos in error messages.
7862
0c2b6f8e
GM
78632009-10-06 Glenn Morris <rgm@gnu.org>
7864
7865 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
7866 SOME_MACHINE_LISP (this enters indirectly via DOC).
7867
e02131a2
EZ
78682009-10-05 Eli Zaretskii <eliz@gnu.org>
7869
7870 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
7871
b4744254
EZ
78722009-10-04 Eli Zaretskii <eliz@gnu.org>
7873
7874 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
7875 Doc fix.
7876
dbf64827
JB
78772009-10-03 Martin Rudalics <rudalics@gmx.at>
7878
7879 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
7880
e9a0aef8
MA
78812009-10-02 Michael Albinus <michael.albinus@gmx.de>
7882
d528b1ce 7883 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
7884 used anymore outside fileio.c.
7885
7886 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
7887
64eb2b56
JB
78882009-10-01 Juanma Barranquero <lekktu@gmail.com>
7889
7890 * lisp.h (Qdelete_directory_internal):
7891 Declare, instead of Qdelete_directory.
7892
7893 * w32fns.c (Fsystem_move_file_to_trash): Use it.
7894
9d28c33e
SM
78952009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
7896
7897 * eval.c (Fcalled_interactively_p): Add `kind' argument.
7898
9d8f3bd9
MA
78992009-10-01 Michael Albinus <michael.albinus@gmx.de>
7900
9d28c33e 7901 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
7902 Fdelete_directory. It is not a command anymore. It has no file
7903 name handler.
7904
9694740b
SM
79052009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
7906
7907 * xdisp.c (get_next_display_element): Use an enum in last change.
7908
748e162f
KH
79092009-09-28 Kenichi Handa <handa@m17n.org>
7910
9694740b 7911 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
7912 unibyte_display_via_language_environment in handling
7913 Vnobreak_char_display.
7914
17efd58d
AR
79152009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7916
7917 * nsterm.h (ns_app_name): New extern variable.
7918
7919 * nsterm.m (ns_app_name): New variable.
7920 (ns_term_init): Set and use it.
7921 (ns_term_shutdown): Use it.
7922
7923 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
7924 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
7925
7926 * nsfns.m (ns_set_name_iconic, ns_set_name)
7927 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
7928 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
7929
9694740b
SM
7930 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
7931 Remove double-casting in client_data comparison.
31c2d412 7932
3208cb35
YM
79332009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7934
7935 * keyboard.c (make_lispy_event): Remember last wheel direction.
7936 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
7937
b7d552d6
GM
79382009-09-26 Glenn Morris <rgm@gnu.org>
7939
7940 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
7941 internal.elc. Add term/pc-win.elc.
7942 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
7943 term/x-win.elc.
7944 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
7945 term/w32-win.elc.
7946 (NS_SUPPORT): New.
7947 (lisp): Add NS_SUPPORT.
7948 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
7949
4ff670a8
DR
79502009-09-25 David Reitter <david.reitter@gmail.com>
7951
7952 * nsmenu.m (EmacsMenu-clear): Recognize application menu
7953 on Mac OS X 10.6+ (bug#4513).
7954
feabfb6c
JB
79552009-09-24 Juanma Barranquero <lekktu@gmail.com>
7956
7957 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
7958 some parts of Emacs code (like font selection) don't grok them.
7959 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 7960
de59072a
AS
79612009-09-24 Andreas Schwab <schwab@redhat.com>
7962
7963 * coding.c (decode_coding_iso_2022): Fix operator precedence.
7964
a489517b
JB
79652009-09-24 Juanma Barranquero <lekktu@gmail.com>
7966
7967 * dired.c (Fdirectory_files): Fix typo in docstring.
7968
0592970c
AR
79692009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7970
7971 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
7972 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
7973 (EmacsScroller-setPosition:portion:whole:): Remove -display call
7974 under GNUstep.
7975 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
7976
7977 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
7978 glyph advancement.
7979
48e8a88b
AR
79802009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7981
7982 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 7983 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
7984
7985 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
7986 deleted (bug #4492).
7987
e14f0a78
AR
7988 * nsfont.m (Vns_reg_to_script): New lisp variable.
7989 (syms_of_nsfont): Declare it.
7990 (ns_registry_to_script): New function.
7991 (ns_get_req_script): Call it.
7992 (ns_findfonts): Don't give up on non-unicode registry.
7993
7994 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
7995
5b650faa
SM
79962009-09-20 Tom Tromey <tromey@redhat.com>
7997
7998 * eval.c (find_handler_clause): Make stack-trace-on-error work in
7999 batch mode (bug#4228).
8000
a489517b 80012009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
8002
8003 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 8004 carefully. (Bug #4339)
0bae4e09 8005
fcfe06f3
CY
80062009-09-18 Chong Yidong <cyd@stupidchicken.com>
8007
d798ba87 8008 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 8009
31642728
AR
80102009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8011
8012 * emacs.c (inhibit_x_resources): Update doc string for NS.
8013 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 8014 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
8015
8016 * nsterm.h (ns_no_defaults): Remove.
8017
8018 * nsterm.m (ns_no_defaults): Remove.
8019 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
8020 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
8021 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
8022 don't update the NSWindow itself.
8023 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 8024 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
8025
8026 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
8027 ns_use_qd_smoothing.
8028
8029 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
8030 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 8031 (x-close-connection): Drop PSFlush() under OS X.
a489517b 8032 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 8033
8686ac71
JB
80342009-09-17 Juanma Barranquero <lekktu@gmail.com>
8035
8036 * emacs.c (inhibit_x_resources): New variable.
8037 (main) [HAVE_NS]: Don't process --quick command line option.
8038 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
8039
8040 * lisp.h (inhibit_x_resources): Declare it extern.
8041
8042 * w32reg.c (x_get_string_resource):
8043 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
8044
e227ba05
EZ
80452009-09-17 Eli Zaretskii <eliz@gnu.org>
8046
362654a6
JB
8047 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
8048 Add lisp/term/internal.elc.
e227ba05 8049
742d40e8
SM
80502009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8051
8052 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
8053 (bug#4461).
8054
005bd5a2
DN
80552009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
8056
8057 * puresize.h (BASE_PURESIZE): Increase to 1290000.
8058
8059 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
8060 (OBJECTS_MACHINE): Remove, unused.
8061
f9af9719
SM
80622009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
8063
8064 * frame.c (x_get_resource_string): Remove unused.
8065
0307c7d2
JD
80662009-09-15 Jan Djärv <jan.h.d@swipnet.se>
8067
8068 * xterm.c (x_new_font): Call change_frame_size before calling
8069 x_set_window_size, in case frame size won't change.
8070
8071 * frame.c (x_set_font): Remove dead code.
8072
428b13d6
SM
80732009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
8074
8075 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
8076
5766c380
SM
80772009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8078
8079 * lread.c (Fload): Don't output a message after loading an obsolete
8080 package any more (done in Lisp now).
8081
2fd0161b
CY
80822009-09-12 Chong Yidong <cyd@stupidchicken.com>
8083
8084 * fns.c (syms_of_fns): Doc fix (Bug#4227).
8085
bc5e75b6
SM
80862009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8087
8088 * keymap.c (Fwhere_is_internal): Use nconc2.
8089
c31c985e
AM
80902009-09-11 Alan Mackenzie <acm@muc.de>
8091
8092 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
8093 batch mode.
8094
78012bd2
AS
80952009-09-11 Andreas Schwab <schwab@linux-m68k.org>
8096
8097 * xdisp.c (display_mode_element): Detect cycles.
8098
9d889332
SM
80992009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8100
8101 * keymap.c (where_is_internal): Don't erroneously return nil right after
8102 filling the cache.
8103 (where_is_internal_1): Fix up typo.
8104
7ab5d780
GM
81052009-09-11 Glenn Morris <rgm@gnu.org>
8106
8107 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
8108 share a common doc-string.
8109
5238a749
SM
81102009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8111
66d77eda
SM
8112 * keymap.c (get_keymap): Return the actual keymap symbol rather than
8113 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
8114
5238a749
SM
8115 * keymap.c (QCadvertised_binding): New constant.
8116 (syms_of_keymap): Initialize it.
8117 (Fwhere_is_internal): Try and use bindings from :advertised-binding
8118 if applicable.
8119
19f48442
SM
81202009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
8121
50d4ba39
SM
8122 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
8123 (parse_menu_item): Streamline since bindings are recomputed all the
8124 time anyway. Don't bother checking Vdefine_key_rebound_commands any
8125 more and don't support lmenu's menu-alias any more either.
8126
a88a5372
SM
8127 * keymap.c (where_is_internal_data): Make noindirect a boolean.
8128 (where_is_internal): Strip it down to only traverse the keymaps.
8129 Move the cache handling from Fwhere_is_internal to here.
8130 (Fwhere_is_internal): Move the handling of remapping and the choice of
8131 the best binding from where_is_internal to here.
8132 Unify the cached/noncached paths, so remapping is also handled
8133 correctly when the cache is used, and so the cache can be used to
8134 speed up remap-handling when applicable.
8135 Give preference to non-remapped bindings.
8136 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
8137 non-remapped bindings.
8138 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
8139 command remapping.
8140
19f48442
SM
8141 * xdisp.c (display_mode_element): Move list length limit from 50 to
8142 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
8143
599498c3 81442009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
8145
8146 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
8147
f9b7b5ac
SM
81482009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
8149
a53af587
JB
8150 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
8151 (Bug#4334)
8152
f9b7b5ac
SM
8153 * keymap.c (where_is_internal): Filter out shadowed remappings.
8154 Assume that where_is_internal returns unshadowed bindings to simplify
8155 the code and get rid of the gotos. Use ASIZE.
8156
04f4b72d
JD
81572009-09-04 Jan Djärv <jan.h.d@swipnet.se>
8158
4da146f2
JD
8159 * xterm.c (x_focus_changed): If we get a focusout and pointer
8160 is invisible, make it visible.
8161
04f4b72d
JD
8162 * xterm.h: Remove condition for declaration of
8163 x_*_window_to_frame.
8164
7cef7ce3
SM
81652009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
8166
8167 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
8168 initial terminal as well.
8169
a54fa5b7
JD
81702009-09-02 Jan Djärv <jan.h.d@swipnet.se>
8171
8172 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 8173 x_menubar_window_to_frame.
a54fa5b7 8174
50426a04 8175 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
8176 (XTmouse_position): Do not return valid positions
8177 for clicks in the menubar and the toolbar for Gtk+.
8178
8179 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
8180 if the widget for the event has the same top level as a frame,
8181 return the frame.
8182 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
8183 internal windows, bug #4122.
8184 (x_non_menubar_window_to_frame): Remove.
8185
5a021dd0
GM
81862009-09-02 Glenn Morris <rgm@gnu.org>
8187
8188 * buffer.c (default-major-mode): Move most of the doc from here...
8189 (major-mode): ... to here.
8190
548fe2f3
NR
81912009-08-30 Nick Roberts <nickrob@snap.net.nz>
8192
8193 * process.c (wait_reading_process_output): Keep the descriptor
8194 when pty is used by a non-child process, e.g., in I/O buffer of
8195 GDB this allows inferior to be restarted.
8196
e0840eef
EZ
81972009-08-29 Eli Zaretskii <eliz@gnu.org>
8198
8199 * xdisp.c (redisplay_internal): Remove redundant test and collapse
8200 both branches into one.
8201
82e98df4
SM
82022009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
8203
8204 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
8205 (main): Use enable-multibyte-characters rather than
8206 default-enable-multibyte-characters. Output a warning message when
8207 running a unibyte session.
8208
890617cb
YM
82092009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8210
8211 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
8212 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
8213 (copy_data_segment): Also copy __program_vars section.
8214 (copy_dyld_info) [LC_DYLD_INFO]: New function.
8215 (dump_it) [LC_DYLD_INFO]: Use it.
8216
8217 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
8218
e7adeadc
EZ
82192009-08-28 Eli Zaretskii <eliz@gnu.org>
8220
8221 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
8222 $(SRC)/buildobj.h.
8223 (buildobj.h): Renamed from $(SRC)/buildobj.h.
8224 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
8225 $(SRC)/buildobj.h.
8226 (clean): Add buildobj.h.
8227
3ed8bbdc
TZ
82282009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
8229
8230 * print.c (print_object): Set escapeflag to 1 when printing
8231 hashtable keys and values.
8232
155a6764
SM
82332009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
8234
8235 * lread.c (read_integer): Use doubles (and potentially return a float
8236 number) as we do in string-to-number.
8237 (read1): Use strtol to read integers, signal errors on strtol's
8238 overflow and use floats if strtol's output is too large for
8239 Elisp integers.
8240
877610de
EZ
82412009-08-27 Eli Zaretskii <eliz@gnu.org>
8242
8243 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
8244 (make-buildobj-SH): Fix last change.
8245 (SRC): Move to before where it's first used.
8246
ef73e7be
KH
82472009-08-27 Kenichi Handa <handa@m17n.org>
8248
550c8289
KH
8249 * process.c (send_process): Use encode_coding_object instead of
8250 encode_coding_string to perform eol-conversion even if the string
8251 is unibyte.
8252
60afa08d
KH
8253 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
8254 character.
8255
ef73e7be 8256 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 8257 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 8258
7b3a82d7
DN
82592009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
8260
5654bf63
DN
8261 * callproc.c (Fcall_process): Remove always true #if.
8262
7b3a82d7
DN
8263 * lisp.h: Replace #if 0 code for checking with text pointing to
8264 the --enable-checking configure flag.
8265
8266 * emacs.c (main): Mention the --enable-profiling configure flag
8267 instead of using CFLAGS.
8268
878bde49
KR
82692009-08-26 Ken Raeburn <raeburn@raeburn.org>
8270
8271 * Makefile.in (buildobj.h): New target.
8272 (doc.o): Depend on it.
8273 (temacs${EXEEXT}): Don't generate buildobj.lst.
8274 (mostlyclean): Delete buildobj.h, not buildobj.lst.
8275 * makefile.w32-in ($(SRC)/buildobj.h): New target.
8276 ($(BLD)/doc.$(O)): Depend on it.
8277 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
8278 provided by Eli Zaretskii.)
8279 ($(TEMACS)): Don't generate buildobj.lst.
8280 * doc.c: Include buildobj.h.
8281 (buildobj): New static variable.
8282 (Fsnarf_documentation): Use it, instead of opening and reading
8283 buildobj.lst.
8284
1574224c
MA
82852009-08-25 Michael Albinus <michael.albinus@gmx.de>
8286
8287 * dbusbind.c (Fdbus_call_method)
8288 (Fdbus_call_method_asynchronously): Use English numeric format for
8289 timeout values in doc string.
8290
d9da2f45
KH
82912009-08-25 Kenichi Handa <handa@m17n.org>
8292
ef73e7be
KH
8293 * alloc.c (mark_char_table): New function.
8294 (mark_object): Use mark_char_table for a char-table.
8295
d9da2f45
KH
8296 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
8297 (CHAR_TABLE_REF): Use it.
8298
c8edcc01
KR
82992009-08-23 Ken Raeburn <raeburn@raeburn.org>
8300
8301 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
8302 before invoking the newly build emacs to check for load-path
8303 shadowing.
8304
7763401b
GM
83052009-08-22 Glenn Morris <rgm@gnu.org>
8306
8307 * Makefile.in (bootstrap_exe): New variable.
8308 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
8309 Use ${bootstrap_exe}.
8310
729eadda
EZ
83112009-08-22 Eli Zaretskii <eliz@gnu.org>
8312
8313 * coding.h (encode_coding_string): Don't encode unibyte strings.
8314 (Bug#4047)
8315
eb4c6ace
MA
83162009-08-22 Michael Albinus <michael.albinus@gmx.de>
8317
8318 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
8319
8320 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
8321 intended as hotfix only.
8322 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
8323
36e34d1b
AR
83242009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8325
8326 * nsterm.m (ns_get_color): Update documentation properly for last
8327 change, and clean up loose ends in the code left by it. Fix
8328 longstanding bug with 16-bit hex parsing, and add support for
8329 yet another X11 format (rgb:r/g/b) for compatibility.
8330 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
8331 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
8332
f983eb8a
SM
83332009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
8334
8335 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
8336
3f56d3c6
MA
83372009-08-20 Michael Albinus <michael.albinus@gmx.de>
8338
8339 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
8340 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
8341 (xd_initialize, xd_pending_messages): Check, whether
8342 $DBUS_SESSION_BUS_ADDRESS is set.
8343
fb641d68
YM
83442009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8345
8346 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
8347
8348 * nsterm.m (ns_get_color): Remove incompatible color formats again.
8349
cf59a374
GM
83502009-08-20 Glenn Morris <rgm@gnu.org>
8351
8352 * emacs.c (system-type): Doc fix.
8353
1373f3be
SM
83542009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
8355
8356 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
8357 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
8358
058ed861
MA
83592009-08-18 Michael Albinus <michael.albinus@gmx.de>
8360
1373f3be
SM
8361 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
8362 New functions.
058ed861
MA
8363 (xd_initialize): Revert change from 2009-08-16.
8364
563a866e 83652009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
8366
8367 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 8368 font-group vector, return nil.
5fc05db0 8369
e42bdf01
CY
83702009-08-17 Chong Yidong <cyd@stupidchicken.com>
8371
8372 * process.c (status_notify): Don't perform redisplay.
8373 (Fdelete_process, list_processes_1, process_send_signal):
8374 Expliticly perform redisplay.
8375 (wait_reading_process_output): Always check process status, but
8376 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
8377
4230ab74
KR
83782009-08-17 Ken Raeburn <raeburn@raeburn.org>
8379
1373f3be 8380 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
8381 (XFLOAT_INIT): New macro for storing a float value.
8382 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
8383 * fns.c (sxhash): Copy out the value of a float in order to
8384 examine its bytes.
8385 * dbusbind.c (xd_append_arg): Likewise.
8386
4230ab74
KR
8387 * emacs.c (main): Don't call syms_of_data twice.
8388
a0645cdd
MA
83892009-08-16 Michael Albinus <michael.albinus@gmx.de>
8390
8391 * dbusbind.c (xd_initialize): Add connection file descriptor to
8392 input_wait_mask, in order to let select() detect, whether a new
8393 message has been arrived.
ca4f31ea 8394 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 8395
485db0ba
MA
83962009-08-15 Michael Albinus <michael.albinus@gmx.de>
8397
1373f3be
SM
8398 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
8399 New functions.
485db0ba
MA
8400
8401 * lisp.h (xd_pending_messages): Declare.
8402
8403 * keyboard.c (readable_events): Call xd_pending_messages.
8404
b5b98ff4
CY
84052009-08-15 Chong Yidong <cyd@stupidchicken.com>
8406
1373f3be 8407 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 8408
f8354c6e
CY
8409 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
8410
b5b98ff4
CY
8411 * buffer.c (set_buffer_internal_1)
8412 (swap_out_buffer_local_variables): Check for unbound local
8413 variables (Bug#4138).
8414
8b9fc636
EZ
84152009-08-14 Eli Zaretskii <eliz@gnu.org>
8416
8417 * process.c (create_pty): Fix last change.
8418
ce959360
CY
84192009-08-13 Chong Yidong <cyd@stupidchicken.com>
8420
8421 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
8422 (xbm_load_image): Caller changed.
64b807c9 8423 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 8424
c7baf7e9
NR
84252009-08-13 Nick Roberts <nickrob@snap.net.nz>
8426
8427 * process.c (create_pty): New function.
8428 (Fstart_process): Use it to allow Emacs to just associate a pty
8429 with the buffer. See associated change in gdb-mi.el.
8430 (list_processes_1): Deal with no program name.
8431 (start_process_unwind): Use pid == -2 to mean no process.
8432
1ac9108a
SM
84332009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
8434
8435 * cmds.c (nonundocount): New global variable.
8436 (keys_of_cmds): Initialize it.
8437 (Fself_insert_command): Use it to combine upto 20 sequential chars
8438 into a single undo entry, just like the Qself_insert_command code in
8439 keyboard.c does.
8440 Call frame_make_pointer_invisible, also like the Qself_insert_command
8441 code in keyboard.c does.
8442 * keyboard.c (command_loop_1): Use the new global nonundocount rather
8443 than its own local replacement for it.
8444
e267324c
KR
84452009-08-10 Ken Raeburn <raeburn@raeburn.org>
8446
1ac9108a 8447 * fns.c (concat): Don't re-set string length to its current value.
77437343 8448
1ac9108a
SM
8449 * coding.h (decode_coding_string, encode_coding_string):
8450 Use SBYTES macro.
f0bed503 8451
1ac9108a 8452 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
8453 (doprnt): Merge with doprnt1, discarding lispstrings code.
8454 * lisp.h (doprnt_lisp): Don't declare.
8455
416e006d
JL
84562009-08-07 Juri Linkov <juri@jurta.org>
8457
8458 * puresize.h (BASE_PURESIZE): Increase to 1270000.
8459
6f7d5780
DN
84602009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8461
8462 * print.c (syms_of_print): Undo previous change.
8463
f19a0f5b
TZ
84642009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
8465
8466 * lread.c (read1, syms_of_lread): Read hashtables back from the
8467 readable format.
8468
8469 * print.c (print_preprocess, print_object): Print hashtables fully
8470 and readably.
8471 (syms_of_print): Provide 'hashtable-print-readable.
8472
b9173dc2
AR
84732009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8474
8475 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
8476 no family set.
8477 (nsfont_open): Handle case when entity has no family.
8478
1586503c
AR
84792009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8480
8481 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
8482 element, not a list, for match case.
8483
087048cd
KH
84842009-07-28 Kenichi Handa <handa@m17n.org>
8485
8486 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
8487 rigidly.
8488
8489 * xfont.c (xfont_list_pattern): Don't ignore the return value of
8490 font_parse_xlfd. Check font properties more rigidly.
8491
780c2506
DN
84922009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8493
31fd7c5c
JB
8494 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
8495 bsd-common.h.
780c2506 8496
a8c0cc18
KH
84972009-07-27 Kenichi Handa <handa@m17n.org>
8498
8499 * xfaces.c (face_with_height): Call font_clear_prop.
8500
4fbe2306
CY
85012009-07-26 Chong Yidong <cyd@stupidchicken.com>
8502
111d9af3
CY
8503 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
8504
8505 * xterm.c (x_term_init): Use Qx.
8506
4fbe2306
CY
8507 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
8508
1ac9108a 8509 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
8510 (ns_get_color): Revert 2009-07-16 change.
8511
beb0b7f9
EZ
85122009-07-25 Eli Zaretskii <eliz@gnu.org>
8513
8514 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 8515 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 8516
2baf5e76
KR
85172009-07-25 Ken Raeburn <raeburn@raeburn.org>
8518
1ac9108a
SM
8519 * coding.h (decode_coding_string, encode_coding_string):
8520 Use SCHARS macro.
8890e5f5 8521
2baf5e76 8522 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 8523 (load_depth): Delete.
2baf5e76
KR
8524 (Qload_in_progress): New variable.
8525 (load_unwind): Don't reference load_depth or load_in_progress.
8526 (Fload): Likewise; specbind Qload_in_progress instead.
8527 (init_lread): Don't initialize load_depth.
8528 (syms_of_lread): Initialize and protect Qload_in_progress.
8529
1395c6f5
AR
85302009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8531
8532 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
8533
4e2f36cf
AR
85342009-07-23 Yavor Doganov <yavor@gnu.org>
8535
8536 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
8537
5dd9a6f7
AR
85382009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8539
8540 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
8541 Bugs 3792, 3720, 2402.
8542 (ns_lookup_indexed_color): Check for bad index.
8543 (ns_index_color): Init unused slot to 0.
8544 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
8545 Bug 3714, possibly 3082.
5dd9a6f7 8546
c902b920
JR
85472009-07-22 Jason Rumney <jasonr@gnu.org>
8548
1ac9108a
SM
8549 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
8550 Position IME window at cursor (Bug#2570).
c902b920
JR
8551 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
8552 (globals_of_w32fns): Dynamically load functions required above.
8553
8554 * w32term.c (w32_draw_window_cursor): Send message to reposition
8555 any IME window.
8556
090101cf
CY
85572009-07-21 Chong Yidong <cyd@stupidchicken.com>
8558
8559 * fileio.c: Revert 2009-07-16 changes.
8560 (Vauto_save_include_big_deletions): New variable.
8561 (Fdo_auto_save): Disable auto-save only if
8562 auto-save-include-big-deletions is nil.
8563
e6583e3d
CY
85642009-07-21 Chong Yidong <cyd@stupidchicken.com>
8565
8566 * xdisp.c (move_it_to): For continued lines ending in a tab, take
8567 the overflowed pixels into account (Bug#3879).
8568
ece435a5
KR
85692009-07-21 Ken Raeburn <raeburn@raeburn.org>
8570
8571 * lread.c (load_depth): New variable.
8572 (Fload, load_unwind, init_lread): Set it to the load recursion
8573 depth; set load_in_progress as a simple boolean based on the
8574 current load_depth. (Bug#3892)
8575
40b2d973
AR
85762009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8577
8578 * nsfont.m (ns_has_attribute): Remove.
8579 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
8580
10be7e0d
JL
85812009-07-18 Juri Linkov <juri@jurta.org>
8582
8583 * process.c (Fset_process_query_on_exit_flag): Mention killing
8584 a buffer in docstring.
8585
fa055055
KH
85862009-07-17 Kenichi Handa <handa@m17n.org>
8587
8588 * casetab.c (shuffle): Fix the logic of setting up the cycle.
8589
042f7b69
YM
85902009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8591
8592 * nsfns.m (Fns_set_alpha): Remove function.
8593 (syms_of_nsfns): Don't defsubr it.
8594
8595 * nsterm.m (ns_get_color): Remove incompatible color formats.
8596 (ns_color_to_lisp): Generate #rrggbb color format string.
8597
4be941e3
RS
85982009-07-16 Richard Stallman <rms@gnu.org>
8599
8600 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
8601 (Fset_buffer_auto_saved): Handle save_length = -2.
8602
4e6b227d
CY
86032009-07-16 Chong Yidong <cyd@stupidchicken.com>
8604
8605 * xterm.c (Qx_gtk_map_stock): New var.
8606
8607 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
8608 of calling intern each time.
8609
a1856973
YM
86102009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8611
8612 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
8613 does tiling.
8614
8615 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
8616
497e54d8
KH
86172009-07-14 Kenichi Handa <handa@m17n.org>
8618
72d36834
KH
8619 * font.c (font_vconcat_entity_vectors): New function.
8620 (struct font_sort_data): New member font_driver_preference.
8621 (font_compare): Check font_driver_preference.
8622 (font_sort_entities): The format of the first argument changed.
8623 (font_delete_unmatched): Likewise.
8624 (font_list_entities): The return type changed.
8625 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
8626 (font_find_for_lface): Adjuste for the above changes.
8627 Don't suppress the checking of C even if the repertory supports it.
8628 (Flist_fonts): Adjust for the above changes.
72d36834 8629
1ac9108a
SM
8630 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
8631 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
8632 Reject a font who has adstyle property that is different from a
8633 langname derived from registry property.
1ac9108a 8634 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 8635
b6046155
EZ
86362009-07-13 Eli Zaretskii <eliz@gnu.org>
8637
8638 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
8639 local copy of dirfilename.
8640
fb6b6049
KH
86412009-07-13 Kenichi Handa <handa@m17n.org>
8642
e2402a5e
KH
8643 * chartab.c (sub_char_table_ref_and_range): Fix the range check
8644 against max_char.
8645
fb6b6049
KH
8646 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
8647 calling XSYMBOL (sym).
8648
65156807
EZ
86492009-07-11 Eli Zaretskii <eliz@gnu.org>
8650
1ac9108a
SM
8651 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
8652 New function.
8653 (directory_files_internal) [WINDOWSNT]:
8654 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
8655 the filesystem of the directory is fast or slow.
8656
8657 * w32.c (logon_network_drive): Don't assume PATH is an absolute
8658 file name.
8659 (is_slow_fs): New function.
8660 (stat): Use it to determine whether to issue more system calls to
8661 get accurate file attributes, when w32-get-true-file-attributes is
8662 `local'.
8663
e0ab5fcf
JD
86642009-07-10 Jan Djärv <jan.h.d@swipnet.se>
8665
8666 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 8667 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
8668 parameter font-parameter as default to the font dialog.
8669
784ceded
KH
86702009-07-10 Kenichi Handa <handa@m17n.org>
8671
8672 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
8673
fb8edc0b
EZ
86742009-07-09 Eli Zaretskii <eliz@gnu.org>
8675
1ac9108a 8676 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 8677
fb8edc0b
EZ
8678 * w32.c (stat): Treat UNC file names as residing on remote
8679 drives. (Bug#3542)
8680
635c75b1
KH
86812009-07-09 Kenichi Handa <handa@m17n.org>
8682
8683 * fontset.c (fontset_find_font): Fix previous change.
8684
c1d5ce94
MA
86852009-07-08 Michael Albinus <michael.albinus@gmx.de>
8686
8687 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
8688 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
8689 error flag.
8690
edb61b39
KH
86912009-07-08 Kenichi Handa <handa@m17n.org>
8692
374bf7e4
KH
8693 * fontset.c (fontset_find_font): Fix the logic of handling
8694 charset_matched.
8695 (font_for_char): Delete unused var.
8696 (generate_ascii_font_name): Delete it.
8697
edb61b39
KH
8698 * coding.h (JIS_TO_SJIS2): Fix the code range check.
8699
8700 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
8701 (encode_coding_sjis): Fix the code range check.
8702
0f3f018c
CY
87032009-07-07 Chong Yidong <cyd@stupidchicken.com>
8704
8705 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
8706 (Fexpand_file_name): Copy string data properly (Bug#3772).
8707
fcaf6f3a
JD
87082009-07-07 Jan Djärv <jan.h.d@swipnet.se>
8709
8710 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
8711 first MapNotify.
8712
6809ca75
KH
87132009-07-07 Kenichi Handa <handa@m17n.org>
8714
8715 * character.h (unibyte_has_multibyte_table): Delete extern.
8716 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
8717
8718 * charset.c (Fset_charset_priority): Update charset_unibyte.
8719 (syms_of_charset): Initialize charset_unibyte.
8720
8721 * character.c (unibyte_has_multibyte_table): Delete it.
8722 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
8723 charset_unibyte.
8724 (multibyte_char_to_unibyte_safe): Likewise.
8725 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
8726
1ac9108a 8727 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
8728 (x_produce_glyphs): Likewise.
8729
8730 * .gdbinit (xcharset): Fix the treating $arg0.
8731
ad9e2d54
EZ
87322009-07-04 Eli Zaretskii <eliz@gnu.org>
8733
8734 Emulation of `getloadavg' on MS-Windows.
50426a04 8735 * w32.c: Include float.h.
ad9e2d54
EZ
8736 (g_b_init_get_native_system_info, g_b_init_get_system_times)
8737 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
8738 (get_native_system_info, get_system_times): New functions.
8739 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
8740 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
8741 (globals_of_w32): Initialize g_b_init_get_native_system_info,
8742 g_b_init_get_system_times, and num_of_processors.
8743
0a3472c7
JR
87442009-07-03 Jason Rumney <jasonr@gnu.org>
8745
8746 * w32term.c (w32_initialize): Use standard types.
8747
80904120
EZ
87482009-07-03 Eli Zaretskii <eliz@gnu.org>
8749
8750 * dired.c (Ffile_attributes): Decode user and group names by the
8751 locale's encoding. (Bug#3443)
8752
6978862d
DN
87532009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
8754
f8d23104
DN
8755 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
8756 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
8757
8758 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
8759
8760 * term.c (init_tty): Remove spurious #ifdef.
8761
6978862d
DN
8762 * m/mips.h: Mention this file is also used for netbsd.
8763 * m/pmax.h: Remove file.
8764
e044e4fc
JD
87652009-07-03 Jan Djärv <jan.h.d@swipnet.se>
8766
8767 * xterm.h (struct x_display_info): Add invisible_cursor.
8768 (struct x_output): Add current_cursor.
8769
8770 * xterm.c (XTtoggle_invisible_pointer): New function.
8771 (x_define_frame_cursor): Don't define cursor if invisible or the
8772 same as before. Set current_cursor.
8773 (x_create_terminal): Set toggle_invisible_pointer_hook.
8774
8775 * xfns.c (make_invisible_cursor): New function.
8776 (x_set_mouse_color): Call make_invisible_cursor.
8777 Set current_cursor.
8778 (x_window): Set current_cursor.
8779
8780 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
8781
8782 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
8783 inserting a character.
8784 (read_avail_input): Call frame_make_pointer_visible.
8785
8786 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
8787 (frame_make_pointer_invisible, frame_make_pointer_visible):
8788 New functions.
e044e4fc
JD
8789 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
8790
8791 * frame.h: Declare frame_make_pointer_invisible and
8792 frame_make_pointer_visible.
8793 (struct frame): Add pointer_invisible.
8794
574c8efa
JD
87952009-07-02 Jan Djärv <jan.h.d@swipnet.se>
8796
7b507248
JD
8797 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
8798 frame isn't visible.
8799 (xg_frame_resized): If width/height is -1, get size of window
8800 from X server.
8801
8802 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
8803 for MapNotify.
8804
835bdaa7 8805 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 8806 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 8807 (flush_and_sync): Reintroduce.
574c8efa 8808
3f1c6666 88092009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 8810
31fd7c5c 8811 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
8812
8813 * xterm.c (x_handle_net_wm_state): Also look for sticky.
8814 (x_term_init): Initialize Xatom_net_wm_state_sticky.
8815
8816 * frame.h: Declare Qsticky.
8817
cad9ef74
JD
8818 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
8819
8820 * nsfns.m (ns_frame_parm_handlers): Ditto.
8821
8822 * frame.c: Declare Qsticky.
8823 (frame_parms): Add sticky.
8824
8825 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
8826
8827 * xterm.h: Declare x_set_sticky.
8828
8829 * xterm.c (x_set_sticky): New function.
8830
69b16610
JD
8831 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
8832 (xg_tool_bar_menu_proxy): Attach enter/leave events to
8833 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
8834
8835 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
8836
8837 * frame.c: Qmaximized is new.
8838 (x_set_frame_parameters): Do not handle fullscreen specially.
8839 Only set width and height if explicitly set.
8840 (x_set_fullscreen): Handle Qmaximized.
8841 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
8842 (syms_of_frame): Initialize Qmaximized.
8843
1ac9108a
SM
8844 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
8845 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
8846
8847 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
8848 for Expose event. Add call to x_check_fullscreen for MapNotify event.
8849 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
8850 set gravity to NorthWestGravity when USE_GTK.
8851 (set_wm_state): New function.
31fd7c5c 8852 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
8853 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
8854 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 8855 or the case when no window manager is running. That means remove calls
3f1c6666
JD
8856 to x_real_positions and x_fullscreen_adjust.
8857
8858 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
8859 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
8860 flush_and_sync.
8861 (xg_height_changed): New function.
8862 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
8863 and gtk_window_set_policy. Set frame gravity after parsing the
8864 geometry string.
3f1c6666
JD
8865 (xg_update_frame_menubar, free_frame_menubar)
8866 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
8867 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
8868 Remove calls to xg_frame_set_char_size.
8869
fd503d99
KH
88702009-07-01 Kenichi Handa <handa@m17n.org>
8871
8872 * keyboard.c (decode_keyboard_code): New function.
8873 (tty_read_avail_input): Decode the input bytes if necessary.
8874
1ac9108a
SM
8875 * coding.c (setup_coding_system):
8876 Initialize coding->carryover_bytes to 0.
fd503d99
KH
8877 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
8878 use Qno_conversion.
8879
24ed93fb
YM
88802009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8881
8882 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
8883
99061dfc
CY
88842009-06-30 Chong Yidong <cyd@stupidchicken.com>
8885
1ac9108a 8886 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 8887
ff90fbde
JR
88882009-06-30 Jason Rumney <jasonr@gnu.org>
8889
8890 * w32term.c (w32_initialize): Use GetModuleHandle for library that
8891 is already loaded.
8892 Set user model ID if supported (bug#1849).
8893
5f445726
JM
88942009-06-29 Jim Meyering <meyering@redhat.com>
8895
8896 Remove useless if-before-xfree test.
8897 * nsfont.m (nsfont_close): Remove useless test.
8898 * term.c (delete_tty): Likewise.
8899 * w32.c (system_process_attributes): Likewise.
8900 * w32font.c (w32font_close): Likewise.
8901 * xfaces.c (x_free_gc): Likewise.
8902 * xselect.c (buffer): Likewise.
8903
b9607587
AS
89042009-06-28 Andreas Schwab <schwab@linux-m68k.org>
8905
8906 * process.c (send_process): Keep decoded string in a local
8907 variable and protect it from GC. (Bug#3521)
8908
89ba96f4
EZ
89092009-06-28 Eli Zaretskii <eliz@gnu.org>
8910
8911 * term.c (create_tty_output) [MSDOS]: #ifdef away.
8912 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
8913
098a1589
CY
89142009-06-28 Chong Yidong <cyd@stupidchicken.com>
8915
485422be
CY
8916 * xdisp.c (start_display, handle_face_prop)
8917 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
8918 (redisplay_window, try_window_id, produce_image_glyph):
8919 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 8920
098a1589
CY
8921 * xterm.c (x_update_window_begin, x_new_focus_frame)
8922 (x_scroll_bar_handle_click, handle_one_xevent)
8923 (handle_one_xevent, XTread_socket, x_focus_on_frame)
8924 (x_make_frame_visible, x_make_frame_invisible)
8925 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
8926 code chunks that are now obsolete.
8927
78c38319
MA
89282009-06-28 Michael Albinus <michael.albinus@gmx.de>
8929
8930 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
8931 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
8932 for hours, when optimzation is enabled.
8933 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
8934 (xd_read_message): Make them static.
8935
4189ed40
CY
89362009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
8937
8938 * term.c (turn_on_face): Allow simultaneously bold and dim
8939 terminal faces (Bug#3530).
8940
cd9b5e16
CY
89412009-06-27 Chong Yidong <cyd@stupidchicken.com>
8942
4e23bedb
CY
8943 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
8944
cd9b5e16
CY
8945 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
8946 truncation glyphs (Bug#3686).
8947
07cc3c35
GM
89482009-06-27 Glenn Morris <rgm@gnu.org>
8949
8950 * m/pmax.h: Restore file, with only netbsd portions.
8951
31fd7c5c 89522009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 8953
cd9b5e16 8954 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 8955
42d4a64f
KH
89562009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
8957
8958 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
8959 the arg FORCE_SYMBOL.
8960
930fe55b 89612009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
8962
8963 * fontset.c (fontset_find_font): When a usable rfont_def is found
8964 in a fallback font-group, make it the first element of the group.
8965
57ebc3fd
CY
89662009-06-24 Chong Yidong <cyd@stupidchicken.com>
8967
8968 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
8969
f084f942
KH
89702009-06-24 Kenichi Handa <handa@m17n.org>
8971
8972 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
8973 set for C.
8974 (fontset_font): Record the availability of a font for C both in
8975 the realized fontsets of the current one and the default one.
8976
2f686c87
DN
89772009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
8978
8979 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
8980 conditional, it is always defined on AIX.
8981
666e158e
MB
89822009-06-23 Miles Bader <miles@gnu.org>
8983
8984 * window.c (Vrecenter_redisplay): New variable.
8985 (syms_of_window): Initialize it.
8986 (Qtty): New extern declaration.
8987 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
8988
c6da7cd2
JM
89892009-06-23 Jim Meyering <meyering@redhat.com>
8990
1ac9108a
SM
8991 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
8992 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 8993 pointer dereferences are guaranteed to be valid.
c6da7cd2 8994
678dca3d
KH
89952009-06-23 Kenichi Handa <handa@m17n.org>
8996
74d75424
KH
8997 * emacs.c (main): Call init_font ().
8998
8999 * font.h (Vfont_log): Extern it.
9000 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
9001
9002 * font.c (font_sort_entities, font_list_entities)
9003 (font_matching_entity, font_open_entity)
9004 (font_close_object): Change font_add_log to FONT_ADD_LOG.
9005 (Vfont_log): Delete static.
9006 (font_log_env_checked): Delete this variable.
9007 (font_add_log): Don't check font_log_env_checked.
9008 (font_deferred_log): Check Vfont_log.
9009 (init_font): New function.
9010
678dca3d
KH
9011 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
9012
9013 * w32font.c: Change font_add_log to FONT_ADD_LOG.
9014
9015 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
9016
9017 * xfont.c: Change font_add_log to FONT_ADD_LOG.
9018
9019 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
9020 (face_for_char): Don't call font_deferred_log here.
9021 (font_for_char): Likewise.
9022
8a668709
CY
90232009-06-22 Chong Yidong <cyd@stupidchicken.com>
9024
9a01ee33
CY
9025 * w32term.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).
9028
9029 * xterm.c (x_draw_glyph_string): Use the glyph string's width
9030 rather than its background_width for drawing the overline and
9031 underline (Bug#489).
ec7c9926
CY
9032 (xg_default_icon_file): New variable.
9033 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
9034 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 9035
8a668709
CY
9036 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
9037 (load_overlay_strings): Remove externs.
9038 (fast_find_position): Function deleted.
9039 (mouse_face_from_buffer_pos): New function, based on
9040 fast_find_position. Correctly handle before-strings,
9041 display-strings, and after-strings (Bug#1220).
9042 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
9043
4d4c02d8
CY
90442009-06-21 Chong Yidong <cyd@stupidchicken.com>
9045
1ac9108a 9046 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
9047 (move_it_in_display_line_to, move_it_in_display_line_to)
9048 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
9049
70243478
CY
90502009-06-21 Chong Yidong <cyd@stupidchicken.com>
9051
9052 * Branch for 23.1.
9053
13087e59
JR
90542009-06-21 Jason Rumney <jasonr@gnu.org>
9055
9056 * w32term.c (keyboard_codepage): New static variable.
9057 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
9058 (w32_read_socket) [WM_CHAR]: Use it to decode character
9059 input (bug#3237).
9060 (w32_initialize): Initialize it.
9061 (codepage_for_locale): New function.
9062
4735b74e
KR
90632009-06-20 Ken Raeburn <raeburn@raeburn.org>
9064
9065 * process.c (status_message): Pass Faset index argument as a lisp
9066 object, so as to work with USE_LISP_UNION_TYPE.
9067
0e727afa
YM
90682009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9069
9070 * coding.c (Ffind_coding_systems_region_internal):
9071 Cache checked characters.
9072
cf299835
KH
90732009-06-18 Kenichi Handa <handa@m17n.org>
9074
1ac9108a 9075 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 9076
90f20d94
AS
90772009-06-18 Andreas Schwab <aschwab@redhat.com>
9078
9079 * xdisp.c (redisplay_internal): Check that the frame is still
9080 live after redisplay of its windows.
9081 (redisplay_windows): Check that the window is still live.
9082
7f1faf1c
KH
90832009-06-17 Andreas Schwab <schwab@linux-m68k.org>
9084
9085 * coding.c (detect_coding_utf_16): Fix previous change.
9086
cc13543e
KH
90872009-06-16 Kenichi Handa <handa@m17n.org>
9088
9089 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
9090 UTF-16 by checking the dispersion of Eth and Oth bytes.
9091
977b85f4
AS
90922009-06-15 Andreas Schwab <schwab@linux-m68k.org>
9093
9094 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
9095
66bd43d1
KH
90962009-06-15 Kenichi Handa <handa@m17n.org>
9097
9098 * process.c (status_message): Fix previous change. Be sure to
9099 decode a localized string.
9100
cb5ca9c5
YM
91012009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9102
9103 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
9104 add comment explaining why.
9105
ec7709ba 91062009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 9107
ec7709ba 9108 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 9109
4b7f335c
AR
91102009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
9111
9112 * nsfont.m (ns_attribute_value): Remove.
9113 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
9114 (ns_has_attribute): Shrink the normal range.
9115 (ns_findfonts): Don't worry about requested spec in determining
9116 need for synthItal.
e41820ee 9117 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 9118
73b26103
SZ
91192009-06-14 Seiji Zenitani <zenitani@mac.com>
9120
9121 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
9122
5753e4da
KH
91232009-06-11 Kenichi Handa <handa@m17n.org>
9124
9125 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
9126 overhang for the static composition case.
9127
3561b671
KH
91282009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9129
5753e4da
KH
9130 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
9131 overhang for the automatic composition case.
9132
3561b671
KH
9133 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
9134 composition case.
9135
852bbd41
CY
91362009-06-10 Chong Yidong <cyd@stupidchicken.com>
9137
9138 * xdisp.c (get_next_display_element): When handling wrap-prefix
9139 and line-prefix, treat \n as a control character (bug#3502).
9140
9903d1e6
KH
91412009-06-10 Kenichi Handa <handa@m17n.org>
9142
9143 * font.c (font_parse_family_registry): Fix for one-char foundry.
9144 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
9145
0bcbaaaa
CY
91462009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
9147
9148 * process.c (status_message): Fix handling of multibyte signal
9149 string (Bug#3499).
9150
40aa3f13
JM
91512009-06-09 Jim Meyering <meyering@redhat.com>
9152
1f80c7e2
CY
9153 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
9154 color name is missing.
40aa3f13 9155
72d51285
KH
91562009-06-09 Kenichi Handa <handa@m17n.org>
9157
9158 * charset.c (Fmap_charset_chars): In docstring, state clearly that
9159 FROM-CODE and TO-CODE are codepoints of CHARSET.
9160
c1d04d84
AR
91612009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
9162
9163 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
9164
91652009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
9166
9167 Changes to support :script/:lang/:otf in NS font driver.
9168 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
9169 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
9170 indicate not part of font driver interface, and change callers.
9171 (ns_get_family): Remove pointless null check.
9172 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
9173 ns_spec_to_descriptor, ns_descriptor_to_entity.
9174 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
9175 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
9176 (ns_spec_to_descriptor, ns_descriptor_to_entity)
9177 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
9178 (ns_get_req_script, ns_accumulate_script_ranges)
9179 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
9180 New functions.
9181 (nsfont_list, nsfont_match): Use ns_findfonts.
9182 (nsfont_open): Use font descriptor instead of traits.
9183 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
9184 (dump_glyphstring): Rename to ns_dump_glyphstring.
9185
c7eb9816
AR
9186 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
9187
c1d04d84
AR
9188 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
9189
9190 * fontset.c (fontset_from_font): Remove NS-specific code.
9191
ec7709ba 91922009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
9193
9194 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
9195 nonactive windows.
9196
31fd7c5c 91972009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 9198
1ac9108a 9199 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 9200
68852c13 92012009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
9202
9203 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
9204
6756cd1d
CY
92052009-06-07 Chong Yidong <cyd@stupidchicken.com>
9206
9207 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
9208 account for the overflowing of newlines into the last glyph on the
9209 display line (Bug#3482).
9210
28bf482a
DR
92112009-06-05 David Reitter <david.reitter@gmail.com>
9212
ec7709ba
JB
9213 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
9214 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
9215 Fns_selection_exists_p, Fns_selection_owner_p.
9216
fdb55376
JR
92172009-06-03 Jason Rumney <jasonr@gnu.org>
9218
9219 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
9220 available. (Bug#3379)
9221
05129fbe
KH
92222009-05-29 Kenichi Handa <handa@m17n.org>
9223
1ac9108a
SM
9224 * coding.c (get_translation_table):
9225 Check Venable_character_translation.
05129fbe 9226
ec7709ba 92272009-05-26 David Reitter <david.reitter@gmail.com>
15891144 9228
ec7709ba
JB
9229 * nsterm.m (ns_raise_frame): Only raise frame if visible.
9230 (x_make_frame_visible): Move frame to front rather than calling
15891144 9231 ns_raise_frame().
ec7709ba 9232 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 9233 isn't key window.
ec7709ba 9234 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
9235 drawRect may be called by NSView even if the frame is hidden.
9236
ec7709ba
JB
9237 * nsfns.m (Fx_create_frame): Follow other ports in
9238 determining visibility; default to t. Ensure async_visible is set.
15891144 9239
21f73755
EZ
92402009-05-23 Eli Zaretskii <eliz@gnu.org>
9241
9242 * dired.c (Ffile_attributes): Doc fix.
9243
34001e41
CY
92442009-05-22 Chong Yidong <cyd@stupidchicken.com>
9245
9246 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
9247
46306a17
SM
92482009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
9249
9250 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
9251 and xfont_scratch_props.
9252 (syms_of_xfont): Do it here instead.
9253 (xfont_find_ccl_program): Delete, unused.
9254 (xfont_open): Delete unused var `i'.
9255
ef6e0694
KH
92562009-05-21 Kenichi Handa <handa@m17n.org>
9257
9258 * fontset.c (Qlatin): Don't make it static.
9259
46306a17
SM
9260 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
9261 New functions.
ef6e0694
KH
9262 (xfont_scripts_cache, xfont_scratch_props): New variables.
9263 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
9264 (xfont_list_pattern): Argument changed. Callers changed.
9265 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
9266 (xfont_list): Don't reject a font spec with :script property.
9267 (xfont_has_char): Fix setting of encoding.
9268 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
9269 xfont_scratch_props.
9270
92712009-05-19 Kenichi Handa <handa@m17n.org>
9272
46306a17 9273 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
9274 Callers changed.
9275
92762009-05-18 Kenichi Handa <handa@m17n.org>
9277
9278 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
9279
ac71ced7
SM
92802009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9281
9282 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
9283 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
9284
1c6d1051
YM
92852009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9286
9287 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
9288 (x_delete_terminal): Dissociate resource database from display and
9289 then call XrmDestroyDatabase before closing display.
9290
9b9b779c
AR
92912009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
9292
9293 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
9294 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
9295 whether selected frame is viable before raising it (based on patch
9296 by David Reitter), and improve commentary.
9297 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 9298
cccd42d5
KH
92992009-05-15 Kenichi Handa <handa@m17n.org>
9300
9301 * font.c (Ffont_spec): Check arguments.
9302
337fbd17
CY
93032009-05-14 Chong Yidong <cyd@stupidchicken.com>
9304
9305 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
9306 weight when testing attributes (Bug#3282).
9307
47a6002f
JD
93082009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9309
9310 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
9311 what we expect to get in the next ConfigureNotify event.
9312
9cb363db
YM
9313 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
9314 before Xft one (Bug#1696).
9315
b9126609
CY
93162009-05-07 David Reitter <david.reitter@gmail.com>
9317
9318 * nsfns.m (Fx_display_planes): Compute bitplanes using
9319 NSBitsPerPixelFromDepth (Bug#3207).
9320
27a69fd9
CY
93212009-05-10 Chong Yidong <cyd@stupidchicken.com>
9322
9323 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
9324
00f37552
TTN
93252009-05-10 Ulrich Mueller <ulm@gentoo.org>
9326
9327 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
9328
2d82a920
DR
93292009-05-07 David Reitter <david.reitter@gmail.com>
9330
ec7709ba
JB
9331 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
9332 Respect mouse face background.
2d82a920 9333
46b0d52d
DR
93342009-05-07 David Reitter <david.reitter@gmail.com>
9335
ec7709ba
JB
9336 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
9337 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
9338 in ns_update_begin and ns_update_end.
9339
ce1b23bb
SM
93402009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9341
5996e1b7
SM
9342 * nsfns.m (ns_get_screen): Rewrite.
9343 Don't presume selected-frame is of type `ns'.
9344
ba98e3a0
SM
9345 * font.c (font_update_drivers): Sanity fallback to avoid disabling
9346 all drivers.
9347
ce1b23bb
SM
9348 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
9349
bcda200f
YM
93502009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9351
9352 * keyboard.h (add_user_signal): Fix typo in extern.
9353
9354 * lisp.h (add_user_signal): Remove extern.
9355
9356 * unexelf.c (unexec): Consider a section to precede the .bss section
9357 if its addresses overlap that of .bss.
9358 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
9359 instead of dumping process.
9360
864660a2
SM
93612009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9362
9363 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
9364
50da4e56
SM
93652009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
9366
9367 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
9368
51520a1a
DN
93692009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
9370
9371 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
9372 any statements.
9373
409ea3a1
AS
93742009-05-02 Andreas Schwab <schwab@linux-m68k.org>
9375
59c4c60f
AS
9376 * process.c (read_process_output): Make sure the current buffer is
9377 always restored.
9378
409ea3a1
AS
9379 * coding.c (record_conversion_result): Don't modify
9380 Vlast_code_conversion_error for successful result.
9381 (alloc_destination): Don't clobber conversion result. (Bug#1650)
9382
56f00ed2
KH
93832009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9384
9385 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 9386 (load_charset_map): Remove unnecessary code.
56f00ed2 9387
4491c9d2
DR
93882009-04-30 David Reitter <david.reitter@gmail.com>
9389
35f5b128 9390 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
9391 through f24.
9392
6970f632
CY
93932009-04-30 Chong Yidong <cyd@stupidchicken.com>
9394
9395 * xfaces.c (face_at_buffer_position): New arg base_face_id.
9396
9397 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
9398 face_at_buffer_position.
9399 (face_before_or_after_it_pos, get_next_display_element)
9400 (note_mouse_highlight): Update face_at_buffer_position call.
9401
9402 * term.c (term_mouse_highlight):
9403 * msdos.c (IT_note_mouse_highlight):
9404 * fontset.c (Finternal_char_font):
35f5b128 9405 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
9406
9407 * dispextern.h (face_at_buffer_position): Update prototype.
9408
0c616f63
KH
94092009-04-30 Kenichi Handa <handa@m17n.org>
9410
35f5b128 9411 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 9412
ad3aaf33
AS
94132009-04-29 Andreas Schwab <schwab@linux-m68k.org>
9414
9415 * callproc.c (Fcall_process): Fix GC protection. Make sure
9416 current buffer is always restored.
9417
c3c963a0
YM
94182009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9419
9420 * atimer.c (init_atimer): Also clear stopped_atimers.
9421
9422 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
9423
7e3386cb
YM
9424 * process.c (create_process): Clean up merger residues of
9425 2008-07-17 change.
9426
91f68422
CY
94272009-04-29 Ulrich Mueller <ulm@gentoo.org>
9428
9429 * lread.c (Vread_circle): New variable.
9430 (read1): Disable recursive read if Vread_circle is nil.
9431
24b34550
KH
94322009-04-29 Kenichi Handa <handa@m17n.org>
9433
9434 * fontset.h (set_default_ascii_font): Delete extern.
9435
9436 * fontset.c (set_default_ascii_font): Delete this unused function.
9437
9438 * frame.c (x_set_font): When ARG is a font-object, check if the
9439 font-object matches with the ASCII font-spec of the frame's
9c358bda 9440 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 9441
77bf07e1
AS
94422009-04-28 Andreas Schwab <schwab@linux-m68k.org>
9443
9444 * fns.c (Flocale_info): Protect vector from GC during decoding.
9445
9446 * process.c (Fstart_process): Protect argv strings from GC during
9447 encoding.
9448
2c55aacf
AS
94492009-04-27 Andreas Schwab <schwab@linux-m68k.org>
9450
9451 * sysdep.c: Include <ctype.h>.
9452
b892d3c9
DR
94532009-04-27 David Reitter <david.reitter@gmail.com>
9454
35f5b128 9455 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
9456 Remove commented-out code.
9457
9d0644c4
JB
94582009-04-26 Johan Bockgård <bojohan@gnu.org>
9459
9460 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9461
b7053016
JR
94622009-04-25 Jason Rumney <jasonr@gnu.org>
9463
9464 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
9465
4e8231f3
YM
94662009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9467
9468 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
9469 Swap bytes in short integer if fringe bitmap width > 8.
9470
493dcf2c
KH
94712009-04-23 Kenichi Handa <handa@m17n.org>
9472
9473 * xfaces.c (Fx_list_fonts): If a font size is specified in
9474 PATTERN, set it in returned scalable fonts.
9475
401e9e57
CY
94762009-04-22 Chong Yidong <cyd@stupidchicken.com>
9477
708e05dc
CY
9478 * keyboard.c (Fset_input_meta_mode): Doc fix.
9479
9480 * dispnew.c (Fsend_string_to_terminal): Doc fix.
9481
1ac9108a 9482 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
9483
9484 * coding.c (Fterminal_coding_system): Doc fix.
9485
9486 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
9487 (Fx_display_pixel_height, Fx_display_planes)
9488 (Fx_display_color_cells, Fx_server_max_request_size)
9489 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9490 (Fx_display_mm_height, Fx_display_mm_width)
9491 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
9492 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
9493 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
9494 (check_x_display_info): Handle terminal objects instead of
9495 terminal ids.
9496
401e9e57
CY
9497 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
9498 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
9499 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
9500 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 9501
df80c7f0
KH
95022009-04-21 Kenichi Handa <handa@m17n.org>
9503
5a8f12af 9504 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 9505 (font_score): Check AVGWIDTH too.
908567ef 9506
df80c7f0
KH
9507 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
9508 worst case.
1ac9108a
SM
9509 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
9510 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 9511
705af33f
JR
95122009-04-19 Jason Rumney <jasonr@gnu.org>
9513
9514 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 9515 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
9516
9517 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
9518 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
9519 get_phys_cursor_geometry.
9520
b71ac3dd 9521 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
9522 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
9523 using get_phys_cursor_geometry.
9524
9525 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
9526 correctly calculated.
9527
dc2933eb
JD
95282009-04-19 Jan Djärv <jan.h.d@swipnet.se>
9529
1ac9108a
SM
9530 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
9531 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
9532 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
9533 is deprecated.
9534
973e7849
AS
95352009-04-18 Andreas Schwab <schwab@linux-m68k.org>
9536
9537 * font.c (font_put_frame_data): Use xfree instead of free.
9538
314d66f4
JB
95392009-04-17 Juanma Barranquero <lekktu@gmail.com>
9540
9541 * w32font.c (Qja, Qko): Remove declarations.
9542 (syms_of_w32font): Don't DEFSYM them.
9543
cf702558
CY
95442009-04-17 Chong Yidong <cyd@stupidchicken.com>
9545
9546 * font.c (Qja, Qko): Move definitions here from ftfont.c.
9547
9548 * font.h (Qja, Qko): Extern them.
9549
9550 * ftfont.c (Qja, Qko): Remove declarations.
9551
9552 * xfont.c (Qja, Qko): Remove declarations.
9553
b50504f5
KH
95542009-04-17 Kenichi Handa <handa@m17n.org>
9555
bde25748
KH
9556 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
9557 string from a vector to handle Latin-1 characters correctly.
9558
b50504f5
KH
9559 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
9560 entity even if the cache hits.
9561
f4646fff
AS
95622009-04-16 Andreas Schwab <schwab@linux-m68k.org>
9563
9564 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 9565 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 9566
e7deaab0
AS
9567 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
9568 * lisp.h: Adjust prototypes.
9569
0a0e7d49
CY
95702009-04-16 Chong Yidong <cyd@stupidchicken.com>
9571
9572 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
9573 change (Bug#3003).
9574
3c908a57
KH
95752009-04-16 Kenichi Handa <handa@m17n.org>
9576
1ac9108a 9577 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
9578
9579 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
9580 adstyle.
9581
9582 * ftfont.c (Qja, Qko): Don't make them static.
9583 (enum ftfont_cache_for): New enum.
9584 (fc_charset_table): Undo the previous change.
9585 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
9586 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
9587 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
9588 non-scarable font, try to get AVERAGE_WIDTH.
9589 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
9590 Change ft_face_cache from a list of a hash-table. Don't check
9591 `ja' and `ko' adstyle here.
9592 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
9593 FTFONT_CACHE_FOR_CHARET.
9594 (ftfont_get_charset): Undo the previous change.
1ac9108a 9595 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
9596 (ftfont_close): Likewise.
9597 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
9598
9599 * font.c (font_sort_entites): Change the meaning of the arg
9600 BEST-ONLY. Don't optimize for VEC of lenght 1.
9601 (font_select_entity): Just return the value of font_sort_entites.
9602
9603 * xfaces.c (merge_face_vectors): Reflect font properties in
9604 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
9605 font_clear_prop if a face attribute doesn't change.
9606
3c908a57
KH
9607 * charset.h (charset_ksc5601): Extern it.
9608
9609 * charset.c (charset_ksc5601): New variable.
9610 (Fdefine_charset_internal): Set charset_ksc5601.
9611 (init_charset_once): Initialize charset_ksc5601 to -1.
9612
d65859c3
DN
96132009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
9614
9615 * fileio.c (history_delete_duplicates): Remove unused declaration.
9616
9617 * callint.c (history_delete_duplicates): New declaration.
9618 (Fcall_interactively): Remove command history duplicates when
9619 history_delete_duplicates is true.
9620
3ba010e5
EZ
96212009-04-14 Eli Zaretskii <eliz@gnu.org>
9622
9623 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
9624
06f19b91
KH
96252009-04-14 Kenichi Handa <handa@m17n.org>
9626
9627 * font.c (Ffont_info): Fix docstring. Fix the second element of
9628 the returned value (bug#2949).
9629
2cce8bfc
CY
96302009-04-14 Chong Yidong <cyd@stupidchicken.com>
9631
9632 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
9633
d156542d
KH
96342009-04-14 Kenichi Handa <handa@m17n.org>
9635
9636 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
9637 encoding charset is ascii_compatible.
9638
9639 * charset.c (Fdefine_charset_internal): Make charset
9640 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
9641 code_offset is 0, and covers all ASCII characters.
9642
86fa089e
SM
96432009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
9644
9645 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
9646 (ns_string_to_pasteboard_internal):
9647 * nsmenu.m (process_dialog):
9648 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
9649 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
9650 * lisp.h (Fx_load_color_file): Declare.
9651
a8a3728b
KH
96522009-04-13 Kenichi Handa <handa@m17n.org>
9653
1ac9108a 9654 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
9655 (font_select_entity): Suppress the code to optimize for the same
9656 kind of fonts.
9657 (font_load_for_lface): Get a font that supports at least ASCII
9658 characters.
9659
9660 * ftfont.c (Qja, Qko): New variables.
9661 (fc_charset_table): Delete uniquifier data for iso8859-1.
9662 (ftfont_get_latin1_charset): New function.
9663 (get_adstyle_property): New function.
9664 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
9665 bitmap fonts.
9666 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
9667 Delete iso-8859-1 range from the charset of fonts whose adstyle is
9668 `ko' or `ja'.
9669 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 9670 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
9671 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
9672 property.
9673 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
9674 (syms_of_ftfont): DEFSYM Qja and Qko.
9675
483670b5
KH
96762009-04-09 Kenichi Handa <handa@m17n.org>
9677
12b55765
KH
9678 * charset.c (map_charset_chars): For a charset of `superset'
9679 method, fix calculation of code range.
9680
483670b5
KH
9681 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
9682 from the list of extra properties.
9683 (font_clear_prop): Be sure to delete `:name' font property.
9684
57d3b93b
KH
96852009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9686
b4b2c2ca
YM
9687 * dispnew.c (redraw_overlapping_rows): Fix detection of
9688 overlapping for topmost and bottommost rows.
9689
1ac9108a 9690 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 9691
472c3609
JR
96922009-04-06 Jason Rumney <jasonr@gnu.org>
9693
9694 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
9695
ab193662
KH
96962009-04-06 Kenichi Handa <handa@m17n.org>
9697
9698 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
9699
9700 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
9701
0c26f026
KH
97022009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9703
9704 * ftfont.c (ftfont_open): Fix checking of the return value of
9705 FT_Load_Char. Fix setting font->underline_thickness.
9706
e173bbce
CY
97072009-04-04 Chong Yidong <cyd@stupidchicken.com>
9708
9709 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
9710 (Fterminal_parameters, Fterminal_parameter)
9711 (Fset_terminal_parameter): In doc string, refer to terminal
9712 objects rather than terminal ids.
9713
693a2698
EZ
97142009-04-04 Eli Zaretskii <eliz@gnu.org>
9715
9716 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
9717 ret_lim_data. (Bug#2867)
9718
d5221487
CY
97192009-04-03 Chong Yidong <cyd@stupidchicken.com>
9720
9721 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
9722 so they don't get wider than the window, matching 2006-01-23
9723 change to the partner function in xdisp.c (Bug#2800).
9724
223509a3
KH
97252009-04-03 Kenichi Handa <handa@m17n.org>
9726
9727 * print.c (print_object): Make each lowest sub_char_table start a
9728 new line (Bug#2866).
9729
74fcd0b1
KH
97302009-04-02 Kenichi Handa <handa@m17n.org>
9731
9732 * fontset.c (fontset_font): Record no-font when a fontset
9733 explicitly tells not to try another font-specs.
9734
c542407d
SM
97352009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
9736
9737 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
9738
e3869731
KH
97392009-03-30 Kenichi Handa <handa@m17n.org>
9740
d8d2f142
KH
9741 * fontset.c (fontset_from_font): Specify only registry in a
9742 font-spec for all characters supported by that registry.
9743
e3869731
KH
9744 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
9745 even if HAVE_M17N_FLT is not defined.
9746
5da5f805
CY
97472009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
9748
9749 * ftfont.c: Conditionalize prototyping and use of
9750 ftfont_variation_glyphs.
9751
ab226c50
SM
97522009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
9753
9628fed7
SM
9754 * frame.c (delete_frame): Work around compiler bug.
9755
9756 * editfns.c (general_insert_function): Adjust to insdel.c changes.
9757 * insdel.c (prepare_to_modify_buffer, signal_before_change):
9758 Some more EMACS_INT.
9759 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
9760
9761 * xdisp.c (dump_glyph): Fix typo.
9762
ae19ba7c
SM
9763 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
9764 (adjust_markers_gap_motion, adjust_markers_for_delete)
9765 (adjust_markers_for_insert, adjust_point)
9766 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
9767 (make_gap, copy_text, count_size_as_multibyte, insert)
9768 (insert_and_inherit, insert_before_markers)
9769 (insert_before_markers_and_inherit, insert_1)
9770 (count_combining_before, count_combining_after, insert_1_both)
9771 (insert_from_string, insert_from_string_before_markers)
9772 (insert_from_string_1, insert_from_gap, insert_from_buffer)
9773 (insert_from_buffer_1, adjust_after_replace)
9774 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
9775 (replace_range_2, del_range, del_range_1, del_range_byte)
9776 (del_range_both, del_range_2, modify_region)
9777 (prepare_to_modify_buffer, signal_before_change)
9778 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
9779 for buffer positions and sizes.
9780 * lisp.h: Adjust prototypes accordingly.
9781
9782 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
9783 (non_regular_inserted, non_regular_nbytes, read_non_regular)
9784 (Finsert_file_contents): Use EMACS_INT for buffer positions.
9785
ab226c50
SM
9786 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
9787
46dfb8fb
JD
97882009-03-27 Jan Djärv <jan.h.d@swipnet.se>
9789
9790 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
9791 lines and columns so we keep the same pixel height and width.
9792
9793 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
9794 the property _NET_WM_STATE has changed.
46dfb8fb
JD
9795 (x_handle_net_wm_state): New function to update frame parameter
9796 fullscreen.
9797 (x_term_init): Initialize atoms for _NET_WM_STATE.
9798
9799 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
9800
d347e494
SM
98012009-03-27 Kevin Ryde <user42@zip.com.au>
9802
9803 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
9804 Gpm_GetEvent as an error that justifies closing the filedescriptor.
9805 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
9806 (Fgpm_mouse_stop): Pass that new parameter.
9807 * termhooks.h (close_gpm): Adjust prototype.
9808
84db11d6
SM
98092009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
9810
c95a5008
SM
9811 * lisp.h (Fx_focus_frame): Declare.
9812
84db11d6
SM
9813 * callint.c (Fcall_interactively): For '^' just delegate the work to
9814 handle-shift-selection.
9815 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
9816
0a1958d6
CY
98172009-03-24 Chong Yidong <cyd@stupidchicken.com>
9818
0bfdff23
CY
9819 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
9820
0a1958d6
CY
9821 * data.c (Qinteractive_form): New variable.
9822 (Finteractive_form): Use it.
9823
9824 * eval.c (Fcommandp): Use Qinteractive_form.
9825
58aec0d6
JR
98262009-03-24 Jason Rumney <jasonr@gnu.org>
9827
9828 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
9829 Calculate total size precisely. Decode environment variables
9830 before substituting. (Bug#38)
9831
553dd618
KH
98322009-03-24 Kenichi Handa <handa@m17n.org>
9833
9834 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 9835 encoding (Bug#2722).
553dd618 9836
c39ea606
JD
98372009-03-23 Jan Djärv <jan.h.d@swipnet.se>
9838
9839 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
9840 that gdpy is set.
9841
bc9b2b5e
AM
98422009-03-22 Alan Mackenzie <acm@muc.de>
9843
9844 * callint.c (Finteractive): Clarify the doc string - even
9845 promptless elements need \n separators.
9846
9f995a76
JR
98472009-03-22 Jason Rumney <jasonr@gnu.org>
9848
9849 * w32term.c (syms_of_w32term): Doc fix for
9850 x-use-underline-position-properties.
9851
22749e9a
EZ
98522009-03-21 Eli Zaretskii <eliz@gnu.org>
9853
9854 * w32.c (getpwuid): Change argument type to unsigned.
9855 (struct w32_id): Change type of `rid' member to unsigned.
9856 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
9857 argument ID to unsigned. All callers changed.
9858 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
9859
e00553bf
EZ
98602009-03-20 Eli Zaretskii <eliz@gnu.org>
9861
9862 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
9863 negative, produce a float value.
9864
9865 * dired.c (make_uid, make_gid): New functions.
9866 (Ffile_attributes): Use them to avoid negative UID and GID.
9867
f761d6b6
JB
98682009-03-20 Juanma Barranquero <lekktu@gmail.com>
9869
9870 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
9871 (syms_of_keyboard) <command-hook-internal, input-method-function>:
9872 Fix typos in docstrings.
9873
d507f8d7
KH
98742009-03-19 Kenichi Handa <handa@m17n.org>
9875
9876 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
9877 changed, use font_load_for_lface to get a new font object.
9878 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
9879
9880 * frame.c (x_set_font): Handle the case that ARG is a cons.
9881
c68845e0
GM
98822009-03-19 Glenn Morris <rgm@gnu.org>
9883
9884 * fileio.c (Fsubstitute_in_file_name): Doc fix.
9885
bfa49dd1
CY
98862009-03-19 Chong Yidong <cyd@stupidchicken.com>
9887
9888 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
9889
8458d4c1
KH
98902009-03-19 Kenichi Handa <handa@m17n.org>
9891
9892 * charset.c (load_charset_map_from_file): When a mapfile can't be
9893 loaded, signal an error.
9894
78e7d1fe
EZ
98952009-03-18 Eli Zaretskii <eliz@gnu.org>
9896
9897 * dired.c (Ffile_attributes): Make sure UID and GID are always
9898 positive, even if the value is too large for a positive EMACS_INT.
9899 Doc fix.
9900
9901 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
9902
5da9fdfa
YM
99032009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9904
9905 * xmenu.c (xdialog_show): Move Fredisplay call ...
9906 (Fx_popup_dialog): ... here.
9907
7519c40d
SM
99082009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
9909
9910 * dired.c (file_name_completion): Disable the first optimization just
9911 installed, since it is not implemented correctly.
9912
2cd298e2
SM
99132009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9914
9915 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 9916 only if the entry can affect bestmatch.
2cd298e2
SM
9917 Stop the search early, as Ftry_completion already does.
9918
48d37adf
CY
99192009-03-17 Chong Yidong <cyd@stupidchicken.com>
9920
e10c9c93 9921 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 9922
9286b16a
CY
99232009-03-15 Chong Yidong <cyd@stupidchicken.com>
9924
9925 * keyboard.c (parse_menu_item): Don't display remappings as menu
9926 equivalent bindings (Bug#788).
9927
f7b146dc
JR
99282009-03-15 Jason Rumney <jasonr@gnu.org>
9929
9930 * w32term.h (WM_EMACS_PAINT): New message.
9931 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
9932 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
9933 before passing to lisp thread. (Bug#950)
9934
f761d6b6 99352009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 9936
d93f9575
CY
9937 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
9938 variable as it was never reset.
9939 (ns_term_init): Remove initialization of Lisp-settable defaults
9940 and ns_expand_space.
9941 (-setPanelFromDefaultValues): Remove ns_expand_space.
9942 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
9943 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
9944 i.e. no additional spacing, similar to Carbon port.
9945
d93f9575
CY
9946 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
9947 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 9948
305018ec
JD
99492009-03-14 Jan Djärv <jan.h.d@swipnet.se>
9950
9951 * sound.c (alsa_configure): Remove call to deprecated
9952 snd_pcm_sw_params_set_xfer_align.
9953
f761d6b6 99542009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
9955
9956 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
9957 after clicking in a detached tool bar.
9958 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
9959
46e722a9
SM
99602009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
9961
348db3dd
SM
9962 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
9963 int/Lisp_Object mixup).
46e722a9 9964
a3d16f39
KH
99652009-03-13 Kenichi Handa <handa@m17n.org>
9966
9967 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 9968 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
9969 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
9970 (set_fontset_font): Change ARG to a vector. Handle range_list in
9971 ARG correctly.
9972 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 9973 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
9974 the above change.
9975 (fontset_from_font): Fix previous change.
fe24f56a 9976 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
9977 entry. If FONTSET is the default fontset, don't set the extra
9978 slot of the returning char-table.
9979
b066e6b6
JB
99802009-03-12 Juanma Barranquero <lekktu@gmail.com>
9981
9982 * nsfns.m (Fx_close_connection): Doc fix.
9983 (Fns_do_applescript): Reflow docstring.
9984 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
9985 (Fx_display_pixel_width, Fx_display_pixel_height)
9986 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
9987 Fix typos in docstrings.
9988 (Fns_set_alpha): Fix typos in error messages.
9989
d472514e 99902009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 9991
d472514e 9992 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
9993 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
9994 were used for such events.
9995
d472514e
JB
9996 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
9997 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 9998
d472514e 9999 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
10000 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
10001
fb930676
KH
100022009-03-11 Kenichi Handa <handa@m17n.org>
10003
ff85581a
KH
10004 * font.h (font_open_by_spec): Extern it.
10005
c50b7e98
KH
10006 * font.c (font_open_by_spec): New function.
10007 (font_open_by_name): Use font_open_by_spec.
10008
fb930676
KH
10009 * frame.c (x_set_font): When ARG is a font-object, don't alter the
10010 fontset of the frame.
10011
10012 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
10013 modify the default font of frames that use this fontset.
10014 (num_auto_fontsets): New variable.
10015 (fontset_from_font): Use num_auto_fontsets to decide a fontset
10016 name. Be sure to set FONTSET_ASCII to the correct font name.
10017 (update_auto_fontset_alist): New function.
10018
df4e8455
JB
100192009-03-11 Juanma Barranquero <lekktu@gmail.com>
10020
10021 * makefile.w32-in: Update dependencies.
10022
0a375797
AR
100232009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10024
10025 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
10026
61313fa3
SM
100272009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10028
10029 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
10030
b55103fb
CY
100312009-03-10 Chong Yidong <cyd@stupidchicken.com>
10032
10033 * lread.c (Feval_buffer): Doc fix.
10034
dde2559c
KH
100352009-03-09 Kenichi Handa <handa@m17n.org>
10036
10037 * charset.c (Qfile_name_handler_alist): Extern it.
10038 (load_charset_map_from_file): Temporarily bind
10039 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
10040
df4e8455 100412009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 10042
47f588bb
GM
10043 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
10044 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 10045
4ddf94bd
AR
100462009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10047
4c9bdfc2
AR
10048 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
10049 (x_set_window_size): Change back to calculated method of setting
10050 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
10051 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
10052 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
10053
fe41ae9e
AR
10054 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
10055
4c9bdfc2
AR
10056 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
10057 accelerator in parens under GNUstep.
10058
825d0875
KH
100592009-03-06 Kenichi Handa <handa@m17n.org>
10060
10061 These changes are to detect incorrect composition sequence without
f3b3be74 10062 looking ahead the source. (Bug#2370)
825d0875
KH
10063
10064 * coding.h: Include "composite.h".
10065 (enum compisition_state): New enum.
10066 (struct compisition_status): New struct.
10067 (struct iso_2022_spec): New member cmp_status.
10068 (struct emacs_mule_spec): New struct.
10069 (struct coding_system): New members ctext_extended_segment_len and
10070 embedded_utf_8. Change the union member
10071 spec.emacs_mule_full_support to spec.emacs_mule.
10072
10073 * coding.c (CODING_ISO_CMP_STATUS): New macro.
10074 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 10075 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
10076 (ADD_COMPOSITION_DATA): New arg nbytes.
10077 (emacs_mule_char): New arg cmp_status.
10078 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
10079 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
10080 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
10081 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
10082 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
10083 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
10084 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
10085 (EMACS_MULE_COMPOSITION_END): New macro.
10086 (emacs_mule_finish_composition): New function.
10087 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
10088 (decode_coding_emacs_mule): Avoid long looking ahead while
10089 handling composition.
10090 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
10091 (ENCODE_COMPOSITION_RULE): New macro.
10092 (finish_composition): New function.
10093 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
10094 (DECODE_COMPOSITION_START): New implementation.
10095 (DECODE_COMPOSITION_END): Likewise.
10096 (STORE_COMPOSITION_RULE): New macro.
10097 (decode_coding_iso_2022): Avoid long looking ahead while handling
10098 composition, CTEXT extended segment, and embedded UTF-8.
10099 (setup_coding_system): For a coding of type iso-2022, reset
10100 CODING_ISO_EXTSEGMENT_LEN (coding) and
10101 CODING_ISO_EMBEDDED_UTF_8 (coding).
10102 (get_translation): Delete arguments last_block, from_nchars,
10103 to_nchars. Callers changed.
10104 (produce_chars): Don't modify charbuf. Adjusted for the change of
10105 get_translation.
98a326f7 10106 (produce_composition): Adjust for the new annotation sequence.
825d0875 10107 (handle_composition_annotation): Likewise.
98a326f7 10108 (consume_chars): Adjust for the change of get_translation.
825d0875 10109
ccbc4452
AR
101102009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
10111
4ddf94bd 10112 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 10113
988a7ddb
KH
101142009-03-05 Kenichi Handa <handa@m17n.org>
10115
10116 * font.c (font_select_entity): New function.
10117 (font_find_for_lface): Use font_select_entity to select a font.
10118
10119 * fontset.c (fontset_find_font): If a font found without
a8a3728b 10120 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
10121 font with C restriction.
10122
98a326f7 101232009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 10124
be1bce46 10125 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 10126
10ea2b82
JR
101272009-03-04 Jason Rumney <jasonr@gnu.org>
10128
2c93b248 10129 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 10130 characters that have already been read. (Bug#2569)
2c93b248 10131
10ea2b82
JR
10132 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
10133 Log an error message if check_image_size failed.
10134 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 10135 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 10136
71a0c011
EZ
101372009-03-02 Eli Zaretskii <eliz@gnu.org>
10138
10139 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
10140 when decoding process output.
10141
2f63bba8
RS
101422009-03-01 Richard M Stallman <rms@gnu.org>
10143
10144 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
10145
10146 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
10147
0a9564cb
EZ
101482009-02-28 Eli Zaretskii <eliz@gnu.org>
10149
10150 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
10151 (decode_coding_emacs_mule, decode_coding_iso_2022)
10152 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10153 (decode_coding_raw_text, decode_coding_charset)
10154 (setup_coding_system, decode_eol, decode_coding, consume_chars):
10155 Honor inhibit-eol-conversion. (Bug #2186)
10156
449148b3
JR
101572009-02-28 Jason Rumney <jasonr@gnu.org>
10158
10159 * coding.c (detect_coding_charset): If not checking latin extra,
10160 fail on characters between 0x80 and 0xA0. (Bug#2354)
10161
a4aee864
EZ
101622009-02-28 Eli Zaretskii <eliz@gnu.org>
10163
10164 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 10165 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 10166
d88bee5a
GM
101672009-02-27 Glenn Morris <rgm@gnu.org>
10168
10169 * callint.c (Finteractive): Doc fix.
10170
a808f22d
KH
101712009-02-27 Kenichi Handa <handa@m17n.org>
10172
10173 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
10174
caf8d60c
CY
101752009-02-27 Chong Yidong <cyd@stupidchicken.com>
10176
10177 * font.c (font_style_to_value): Set value for unknown symbols to
10178 100 instead of 255.
b61137ea
CY
10179 (weight_table, slant_table, width_table): Treat "unspecified" as
10180 the default value.
caf8d60c 10181
1a0de25c
JB
101822009-02-26 Juanma Barranquero <lekktu@gmail.com>
10183
10184 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
10185
8fc45744
JB
101862009-02-25 Juanma Barranquero <lekktu@gmail.com>
10187
107bd7d1
JB
10188 * lread.c (Fload): Stop checking Vloads_in_progress and signal
10189 error as soon as a recursive load is detected.
8fc45744 10190
f097e223
AR
101912009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10192
10193 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
10194 before caching.
10195
8810a12f
KH
101962009-02-24 Kenichi Handa <handa@m17n.org>
10197
10198 * fontset.c (fontset_find_font): Fix the condition for checking
10199 unavailable font.
10200
2c7d1565
GM
102012009-02-24 Glenn Morris <rgm@gnu.org>
10202
10203 * xfaces.c (Finternal_set_font_selection_order): Remove leading
10204 whitespace that confuses documentation.
10205
a20878b6
MB
102062009-02-23 Miles Bader <miles@gnu.org>
10207
10208 * process.c (Flist_system_processes, Fprocess_attributes)
10209 (syms_of_process): Rename `system-process-attributes' to
10210 `process-attributes'.
10211
b3b58c01
AS
102122009-02-22 Andreas Schwab <schwab@linux-m68k.org>
10213
1b3b981b
AS
10214 * coding.h (struct coding_system): Make safe_charsets a pointer to
10215 unsigned char.
10216 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
10217 being 255.
10218 (SAFE_CHARSET_P): Likewise.
10219 (setup_iso_safe_charsets): Properly setup safe_charsets.
10220 (Fdefine_coding_system_internal): Likewise.
10221 (setup_coding_system): Likewise. Remove unneeded casts.
10222 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
10223 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
10224 unneeded casts.
10225
b3b58c01
AS
10226 * insdel.c (del_range_2): Don't modify gap contents when called
10227 from decode_coding_object. (Bug#1809)
10228
0b6f228c
CY
102292009-02-21 Chong Yidong <cyd@stupidchicken.com>
10230
10231 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
10232 Qfont_object.
10233 (Ftype_of): Recognize font objects.
10234
10235 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
10236
10237 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
10238 moved to data.c.
10239
52f8870b
AR
102402009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10241
10242 * nsterm.m (x_make_frame_invisible): Unset async_visible,
10243 async_iconified. Based on a patch by Christian Lynbech
10244 <christian.lynbech@tieto.com>.
10245 (EmacsView-windowDidMiniaturize:): Unset async_visible.
10246
7087d5e9
GM
102472009-02-20 Glenn Morris <rgm@gnu.org>
10248
10249 * syntax.c (Fskip_chars_forward): Fix doc typo.
10250
41d2ceef
CY
102512009-02-20 Chong Yidong <cyd@stupidchicken.com>
10252
10253 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
10254
1a3b7ca6
CY
102552009-02-19 Chong Yidong <cyd@stupidchicken.com>
10256
10257 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
10258
73cce38d
KH
102592009-02-19 Kenichi Handa <handa@m17n.org>
10260
10261 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 10262 Don't overflow coding->carryover. (Bug#2370)
73cce38d 10263
a51092ee
DN
102642009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
10265
10266 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
10267
c423ecca
KH
102682009-02-18 Kenichi Handa <handa@m17n.org>
10269
10270 * font.c (font_check_otf_features): Fix handling of `nil' element.
10271 (Ffont_spec): Describe :lang and :otf in the docstring.
10272
4c1958f4
AS
102732009-02-16 Andreas Schwab <schwab@suse.de>
10274
10275 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
10276 string.
10277
5704f39a
KH
102782009-02-16 Kenichi Handa <handa@m17n.org>
10279
10280 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 10281 (Bug#1723)
5704f39a 10282
8f0085aa
CY
102832009-02-14 Chong Yidong <cyd@stupidchicken.com>
10284
a057d86a 10285 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
10286
10287 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
10288 (handle_line_prefix): Suppress wrapping of wrap prefixes.
10289
aff01dd9
EZ
102902009-02-14 Eli Zaretskii <eliz@gnu.org>
10291
10292 * msdos.c (MAX_SCREEN_BUF): New macro.
10293 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
10294 Encode the entire run of glyphs sharing the same face, instead of
10295 doing that one glyph at a time (fixes a bug with displaying
10296 double-size characters).
10297
ba301db3
AR
102982009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
10299
10300 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
10301
10302 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
10303 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 10304 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
10305
10306 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 10307 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 10308
51d861de
SM
103092009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
10310
ac146f82 10311 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
10312 invisible areas.
10313
7fed8996
JR
103142009-02-12 Jason Rumney <jasonr@gnu.org>
10315
631ea4fb
JR
10316 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
10317 (add_font_entity_to_list): Call check_face_name even when family
10318 is unspecified.
10319
cb4a3e42
JR
10320 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10321 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 10322 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 10323
7fed8996 10324 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 10325 raster fonts. (Bug#2219)
7fed8996 10326
895416e3
KH
103272009-02-12 Kenichi Handa <handa@m17n.org>
10328
10329 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
10330 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
10331 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 10332 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
10333 (find_automatic_composition): While looking forward and backward,
10334 check static composition. Fix where to stop looking forward.
10335 (composition_adjust_point): Fix checking of static composition.
10336 (Fcomposition_get_gstring): Pay attention to
1dacf998 10337 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
10338
10339 * lisp.h (fast_looking_at): Extern it.
10340
10341 * search.c (fast_looking_at): New function.
10342
51d861de 10343 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
10344 <struct glyph>.u.cmp.to.
10345 (append_composite_glyph): Likewise.
10346
51d861de 10347 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
10348 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
10349 composition.
51d861de 10350 (append_composite_glyph): Adjust for the change of
895416e3
KH
10351 <strcut glyph>.u.cmp.to.
10352
8510724d
JB
103532009-02-11 Juanma Barranquero <lekktu@gmail.com>
10354
10355 * casetab.c (init_casetab_once):
10356 * coding.c (ALLOC_CONVERSION_WORK_AREA):
10357 * font.c (font_update_lface):
10358 * fontset.c (Fnew_fontset):
10359 * ftfont.c (ftfont_drive_otf):
10360 * xfont.c (xfont_open):
10361 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
10362
294fa707
SM
103632009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
10364
10365 * fileio.c (Fwrite_region): !NILP -> CONSP.
10366
b5bfebec
AS
103672009-02-10 Andreas Schwab <schwab@suse.de>
10368
10369 * process.c (send_process): Properly relocate pointer into data
adab88bd 10370 when using encoded data. (Bug#2272)
b5bfebec 10371
cb84a2be
KH
103722009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
10373
10374 * coding.c (detect_coding_charset): Fix previous change.
10375
89e09428
JR
103762009-02-08 Jason Rumney <jasonr@gnu.org>
10377
10378 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 10379 disappeared while hourglass was displayed. (Bug #2193)
89e09428 10380
4470a277
AS
103812009-02-07 Andreas Schwab <schwab@suse.de>
10382
10383 * unexelf.c (unexec): Fix error message.
10384
3175b12a
AR
103852009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
10386
10387 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 10388 when modal window is active. (Bug #2152)
3175b12a
AR
10389 (applicationShouldTerminate:): Remove now-unneeded while loop
10390 around NSRunAlertPanel.
10391
10392 * nsmenu.m (popupSession): New file-global variable.
10393 (pop_down_menu): End the popupSession before closing dialog.
10394 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
10395 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
10396 don't query NSApp for events (just sleep instead).
10397
8434d0b8
EZ
103982009-02-07 Eli Zaretskii <eliz@gnu.org>
10399
51d861de
SM
10400 * coding.c (syms_of_coding) <translation-table-for-input>:
10401 Modify doc string to discourage use for character code unification.
8434d0b8 10402
aa82edfd
CY
104032009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10404
10405 * atimer.c (run_timers): Update pending_atimers.
10406
2d283c7c
CY
104072009-02-06 Chong Yidong <cyd@stupidchicken.com>
10408
eb306cab
CY
10409 * image.c (svg_load_image): Fix last change.
10410
2d283c7c
CY
10411 * xfns.c (Fx_create_frame): Signal an error if no font is
10412 found (Bug#2147).
10413
4d8e170e
JB
104142009-02-05 Juanma Barranquero <lekktu@gmail.com>
10415
10416 * character.c (syms_of_character) <script-representative-chars>:
10417 Fix typo in docstring.
10418
c96169a0
AR
104192009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10420
10421 * nsmenu.m (pop_down_menu): New function.
10422 (ns_popup_dialog): Call it on unwind.
10423 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
10424 call timer_check() (Bug#2154).
10425 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
10426 handling_signal is set.
10427 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
10428
31fd7c5c 10429 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
10430
10431 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
10432
10433 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
10434
51d861de
SM
10435 * keyboard.c (poll_for_input_1, handle_async_input):
10436 Set handling_signal under HAVE_NS.
c96169a0 10437
aacd8ba1
GM
104382009-02-04 Glenn Morris <rgm@gnu.org>
10439
10440 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
10441
4cb75c4b
KH
104422009-02-04 Kenichi Handa <handa@m17n.org>
10443
10444 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
10445
10446 * charset.c (Fchar_charset): New optional arg restriction.
10447
10448 * coding.h (coding_system_charset_list): Extern it.
10449
10450 * coding.c (coding_system_charset_list): New function.
10451
10452 * composite.c: Include coding.h and termhooks.h.
10453 (composition_gstring_p): Fix for the terminal case.
10454 (composition_gstring_width): Likewise.
10455 (fill_gstring_body): Likewise.
10456 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
10457 the frame.
10458 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
10459 is within a composition.
867d4bb3 10460 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
10461
10462 * term.c (encode_terminal_code): Fix handling of composition.
10463 (produce_composite_glyph): For static composition, get pixel_width
10464 from struct composition.
10465
826ba17e
AS
104662009-02-02 Andreas Schwab <schwab@suse.de>
10467
10468 * unexelf.c (unexec): Handle unaligned bss offset.
10469
8ad093db
AR
104702009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10471
10472 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
10473 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 10474
8ad093db
AR
10475 * keyboard.c (handle_interrupt): Don't call
10476 quit_throw_to_read_char() under NS.
d0a76a6e 10477
8ad093db
AR
10478 * blockinput.h: Remove NS-specific code.
10479
4d18a7a2
DN
104802009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
10481
db878925
DN
10482 * dispnew.c (window_change_signal): Don't try to get the size of a
10483 suspended tty frame.
10484 * term.c (Fresume_tty): Resize if the size has changed while the
10485 tty was suspended.
10486
4d18a7a2
DN
10487 * alloc.c (mark_stack): Properly conditionalize previous change.
10488
8984df7c
JB
104892009-01-30 Juanma Barranquero <lekktu@gmail.com>
10490
10491 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
10492 * w32term.c (w32_read_socket) [SYNC_INPUT]:
10493 Remove; this code is not used on Windows.
10494
75f4f1ac
EZ
104952009-01-30 Eli Zaretskii <eliz@gnu.org>
10496
10497 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
10498 EOLs that also has stray ^M characters.
10499
07a1e794
JB
105002009-01-30 Juanma Barranquero <lekktu@gmail.com>
10501
10502 * atimer.c (run_timers, alarm_signal_handler):
10503 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
10504 * w32inevt.c (w32_console_read_socket):
10505 * w32term.c (w32_read_socket):
10506 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
10507
a8b11cc9
CY
105082009-01-30 Chong Yidong <cyd@stupidchicken.com>
10509
10510 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
10511 Initialize it as a relative filename pattern.
10512 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
10513 (Fcall_process_region): Simplify temp file creation using
10514 temporary-file-directory.
10515
c279587b
EZ
105162009-01-29 Eli Zaretskii <eliz@gnu.org>
10517
10518 * msdos.c: Rename pending_signals to msdos_pending_signals.
10519 (sig_suspender, sigprocmask): Adjust.
10520
a8fe3242
CY
105212009-01-29 Chong Yidong <cyd@stupidchicken.com>
10522
10523 * keyboard.c (pending_signals): New var.
10524 (poll_for_input, input_available_signal, init_keyboard): Set it.
10525 (process_pending_signals): New function.
10526
10527 * lisp.h (QUIT): Check pending_signals instead of
10528 interrupt_input_pending. Use process_pending_signals.
10529
51d861de 10530 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 10531
51d861de 10532 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
10533
10534 * sysdep.c (emacs_write): Use process_pending_signals.
10535
10536 * xterm.c (XTread_socket): Update pending_signals.
10537
10538 * w32term.c (w32_read_socket): Update pending_signals.
10539
10540 * w32inevt.c (w32_console_read_socket): Update pending_signals.
10541
6570a1c4
KH
105422009-01-29 Kenichi Handa <handa@m17n.org>
10543
10544 * xftfont.c (xftfont_has_char): New function.
10545 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
10546
d72a4afa
AR
105472009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10548
10549 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
10550 under GNUstep.
10551 (ns_query_color): New declaration.
10552
10553 * nsterm.m (ns_confirm_quit): New variable.
10554 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
10555 (EmacsApp-applicationShouldTerminate:): Use it.
10556 (EmacsPrefsController): Let user set it.
10557 (ns_query_color): New function.
10558 (ns_defined_color): Use it.
10559 (ns_initialize): Drop.
10560 (ns_term_init): Add two lines from ns_initialize(), and set
10561 input_interrupt_mode to nil.
10562
10563 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 10564 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 10565
9fe78804
KH
105662009-01-28 Kenichi Handa <handa@m17n.org>
10567
10568 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
10569 (fontset_get_font_group): Remember that no font-group is specified
10570 for C.
9fe78804 10571
fa57de36
CY
105722009-01-27 Chong Yidong <cyd@stupidchicken.com>
10573
930600e9
CY
10574 * fns.c (concat): Check for string overflow (bug#1787).
10575
fa57de36
CY
10576 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
10577 Quadruple undo limits (bug#1501).
10578
7179ce7b
KH
105792009-01-27 Kenichi Handa <handa@m17n.org>
10580
10581 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
10582 directly use GT_Get_Char_index.
10583
10584 * xftfont.c (struct xftfont_info): New member `index'.
10585
10586 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 10587 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 10588
5be8fcc0
CY
105892009-01-26 Kenichi Handa <handa@m17n.org>
10590
10591 * fontset.c (fontset_find_font): Fix handling of non-cons return
10592 value of fontset_get_font_group.
10593 (fontset_font): Revert last change.
10594
19ae3e61
JR
105952009-01-26 Jason Rumney <jasonr@gnu.org>
10596
10597 * w32font.c (w32font_list_internal): Return quickly if registry is
10598 unknown. Simplify final return.
10599 (add_font_entity_to_list): Break complex logic down into more
10600 manageable chunks. Move unknown registry check to
10601 w32font_list_internal.
10602
8612b71a
AR
106032009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
10604
10605 Changes to remove Feval calls from GUI under NS.
10606
d8038940
JB
10607 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
10608 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
10609 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
10610
10611 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
10612 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
10613 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
10614 instead of NON_ASCII_KEYSTROKE_EVENT.
10615 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
10616 (EmacsApp-applicationShouldTerminate:): Query user.
10617 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
10618 instead of Feval.
10619
10620 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
10621
10622 * keyboard.c (kbd_buffer_get_event): Check for it.
10623 (keys_of_keyboard): Define lispy keys for
10624 ns-put/unput-working-text.
10625
10626 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
10627 versions.
10628 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
10629
6288ae55
CY
106302009-01-25 Chong Yidong <cyd@stupidchicken.com>
10631
10632 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 10633 setting current_buffer directly. (Bug#2044)
6288ae55 10634
289e7f8f
CY
106352009-01-24 Chong Yidong <cyd@stupidchicken.com>
10636
5ce87308 10637 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 10638 any work. (Bug#1952, bug#1990).
5ce87308 10639
64cc3cf6 10640 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 10641
b3243e6f
AR
106422009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10643
10644 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
10645 (ns_no_defaults): New declaration.
10646 (main): Use it.
e0d2e69a 10647
d900b2af 10648 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 10649
d900b2af 10650 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 10651
d900b2af
AR
10652 * nsterm.m (ns_no_defaults): New variable.
10653 (ns_initialize): Don't read defaults when ns_no_defaults.
10654 (EmacsView-readSelectionFromPasteboard:)
10655 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 10656 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
10657 (ns_dumpglyphs_stretch): New function.
10658 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 10659 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 10660
e0d2e69a
AR
10661 * nsimage.m (setPixmapData:): Set to ignore image DPI.
10662
3ac71f5d
CY
106632009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
10664
10665 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
10666 call for Sparc64.
10667
3fe53a83
AR
106682009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10669
10670 * nsfns.m:
10671 * nsgui.h:
10672 * nsmenu.m:
10673 * nsselect.m:
10674 * nsterm.h:
10675 * nsterm.m: Remove '23' comments that indicated code added during
10676 update from emacs-20 -> emacs-23.
10677
10f87c6f 106782009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
10679
10680 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 10681 ns_alternate_modifier. (Bug#1217)
a3b53a85 10682
c7cef62d
AR
10683 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
10684 Display all shortcuts, including those w/o super modifier.
10685
575fb8bd
AR
10686 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
10687
918b848b
CY
106882009-01-22 Chong Yidong <cyd@stupidchicken.com>
10689
10690 * fileio.c (Vwrite_region_post_annotation_function)
10691 (Vwrite_region_annotation_buffers): New vars.
10692 (build_annotations_unwind): Just reset
10693 Vwrite_region_annotation_buffers.
10694 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
10695 Call write-region-post-annotation-function.
10696 (build_annotations): Add to Vwrite_region_annotation_buffers if
10697 buffer changes.
10698
a39e2539
AR
106992009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10700
10701 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
10702 Tiger.
51d861de
SM
10703 * nsfns.m (ns_do_applescript):
10704 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 10705
35ed44db
AR
107062009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
10707
10708 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
10709
cbe0b5bf
AR
107102009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10711
10712 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 10713
6049d3a0
AR
10714 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
10715
10716 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
10717 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
10718 handle Ctrl-tab. (Bug#1841)
10719 (ns_get_color): Use unsigned long long for scanned hex string value.
10720 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 10721 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 10722 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 10723 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 10724 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 10725 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 10726 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 10727
d3810c21 10728 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 10729 DPI. (Bug#1316)
d3810c21
AR
10730 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
10731 values in onTiger section.
4c7077c3 10732
e301e634
CY
107332009-01-19 Chong Yidong <cyd@stupidchicken.com>
10734
7f82490b
CY
10735 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
10736 Check return value of font_spec_from_name.
64cc3cf6 10737 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
10738
10739 * font.c (font_spec_from_name): Return Qnil if font name could not
10740 be parsed.
10741 (font_parse_name): Treat a `?' character as part of an XLFD.
10742
e301e634
CY
10743 * fns.c (Fsubstring): Doc fix.
10744
1c0db158
KH
107452009-01-19 Kenichi Handa <handa@m17n.org>
10746
51d861de 10747 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
10748 (ftfont_list): Likewise.
10749
acf20901
JB
107502009-01-18 Juanma Barranquero <lekktu@gmail.com>
10751
fff4e459
JB
10752 * dbusbind.c (Fdbus_register_signal):
10753 * process.c (conv_sockaddr_to_lisp):
10754 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
10755
acf20901
JB
10756 * callproc.c (Fgetenv_internal): Doc fix.
10757
e7abcdfb
CY
107582009-01-16 Chong Yidong <cyd@stupidchicken.com>
10759
10760 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
10761 it is not even used.
10762
b60861e6
GM
107632009-01-16 Glenn Morris <rgm@gnu.org>
10764
10765 * font.c (Ffont_variation_glyphs): Silence compiler.
10766
8db52afe
JB
107672009-01-15 Juanma Barranquero <lekktu@gmail.com>
10768
10769 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
10770 Reported by David Robinow <drobinow@gmail.com>.
10771
4cddb209
KH
107722009-01-15 Kenichi Handa <handa@m17n.org>
10773
51d861de 10774 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 10775
f247f67b
JR
107762009-01-14 Jason Rumney <jasonr@gnu.org>
10777
10778 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 10779 never a fontset. (Bug#1562)
f247f67b 10780
f56a4450
KH
107812009-01-14 Kenichi Handa <handa@m17n.org>
10782
10783 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 10784 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 10785
4e99855e
CY
107862009-01-13 Chong Yidong <cyd@stupidchicken.com>
10787
10788 * font.c (font_clear_prop): If clearing the family, clear the font
10789 width index too.
10790
fff4e459 10791 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 10792
24f01470
JB
107932009-01-12 Juanma Barranquero <lekktu@gmail.com>
10794
10795 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
10796 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
10797 functions, use sizeof.
10798
a41240a3
MR
107992009-01-12 Martin Rudalics <rudalics@gmx.at>
10800
10801 * keyboard.c (read_char): Fix case where last_nonmenu_event
10802 returned a bad value with submenus. (Bug#447)
10803
944636b8
CY
108042009-01-12 Chong Yidong <cyd@stupidchicken.com>
10805
10806 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
10807 family, clear the font width index too.
10808
0dad7c6f
JR
108092009-01-11 Jason Rumney <jasonr@gnu.org>
10810
10811 * keyboard.c (cmd_error_internal): Exit when errors occur before
10812 frame creation and not in daemon mode. (Bug#1836)
10813
7c2363af
CY
108142009-01-10 Chong Yidong <cyd@stupidchicken.com>
10815
10816 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
10817 of a display vector, backtrack.
10818 (try_window_reusing_current_matrix): Check glyph type before
10819 referencing charpos member.
10820
97b1b294
EZ
108212009-01-10 Eli Zaretskii <eliz@gnu.org>
10822
10823 Fix Bug #876:
10824
10825 * coding.c (inhibit_null_byte_detection): New variable.
10826 (detect_coding, detect_coding_system): Don't pay attention to null
10827 bytes if inhibit_null_byte_detection is non-zero.
51d861de 10828 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
10829 <inhibit-iso-escape-detection>: Doc fix.
10830
4624b6e3
JR
108312009-01-09 Jason Rumney <jasonr@gnu.org>
10832
10833 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 10834 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
10835 Only report Unicode Plane 2 fonts as unicode-sip.
10836
323b840c
CY
108372009-01-09 Chong Yidong <cyd@stupidchicken.com>
10838
51d861de
SM
10839 * xfaces.c (Fx_font_family_list): Delete function.
10840 Move compatibility version to faces.el.
323b840c 10841
51d861de 10842 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 10843
eba7400d
MR
108442009-01-09 Martin Rudalics <rudalics@gmx.at>
10845
10846 * frame.c (x_set_frame_parameters): Remember requested value for
10847 fullscreen before it's reset by the parameter handler.
10848
4b09796d
GM
108492009-01-09 Glenn Morris <rgm@gnu.org>
10850
10851 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 10852 (last_command_event): ... and update all users.
4b09796d
GM
10853 (last_input_char): For clarity, rename to...
10854 (last_input_event): ... and update all users.
10855 (last-command-char, last-input-char): Move to subr.el as aliases.
10856 * cmds.c, commands.h: Update for last_command_char rename.
10857
14ccea62
CY
108582009-01-08 Chong Yidong <cyd@stupidchicken.com>
10859
51d861de 10860 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 10861
5f004711
JR
108622009-01-08 Jason Rumney <jasonr@gnu.org>
10863
10864 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
10865 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
10866 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
10867 Don't declare.
fff4e459 10868 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
10869 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
10870
b71f6f73
KH
108712009-01-07 Kenichi Handa <handa@m17n.org>
10872
50b06221 10873 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 10874 remember the coding system used for decoding in
50b06221
KH
10875 coding_system (Bug#1039).
10876
b71f6f73 10877 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 10878 breaking the loop. (Bug#870)
b71f6f73
KH
10879 (decode_coding_utf_16, decode_coding_emacs_mule)
10880 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10881 (decode_coding_charset): Likewise.
10882
56f668f7
MR
108832009-01-05 Martin Rudalics <rudalics@gmx.at>
10884
10885 * frame.c (x_set_frame_parameters): Make sure height (width) get
10886 applied when fullwidth (fullheight) is set. (Bug#1522)
10887
5da9424d
JB
108882009-01-04 Juanma Barranquero <lekktu@gmail.com>
10889
10890 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
10891 (utc_base): Declare as ULONGLONG, not long double.
10892 (convert_time_raw): Delete.
10893 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
10894 (initialize_utc_base): New function.
10895 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
10896 (convert_from_time_t): Use initialize_utc_base; compute result with
10897 64-bit arithmetic.
10898 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
10899
c4605e09
EZ
109002009-01-03 Eli Zaretskii <eliz@gnu.org>
10901
9acef61c 10902 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
10903 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
10904 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
10905 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
10906 [!subprocesses]: Define.
10907 (syms_of_process) [!subprocesses]: Intern and staticpro them.
10908 (Flist_system_processes, Fsystem_process_attributes)
10909 [!subprocesses]: Call list_system_processes and
10910 system_process_attributes instead of returning Qnil.
10911
9acef61c
JB
10912 * dosfns.c (system_process_attributes, list_system_processes):
10913 New functions.
c4605e09
EZ
10914
10915 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
10916
10917 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
10918 Don't use the default (no-op) implementation.
10919
8b7d0a16
JR
109202009-01-03 Jason Rumney <jasonr@gnu.org>
10921
a6d46bc1
JR
10922 * keyboard.c (parse_modifiers_uncached): Wheel events are
10923 clicks (bug#687).
10924
8b7d0a16
JR
10925 * w32term.c (x_query_colors, x_query_color): New functions.
10926
10927 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
10928 (svg_load_image): Cast returned pointers from dynamically loaded
10929 functions. Eliminate W32 specific code.
10930
bfe11752
DN
109312009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
10932
89e2438a
DN
10933 * nsfns.m (x_set_foreground_color, x_set_background_color)
10934 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
10935 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
10936 x_ prefix instead of ns_. Update references.
10937 (syms_of_nsfns): Add a FIXME comment.
10938
10939 * nsterm.m (x_set_cursor_type): New prototype.
10940 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
10941
bfe11752
DN
10942 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
10943 for Solaris instead of incorrectly providing Qutime and Qcutime.
10944
031da700
EZ
109452009-01-02 Eli Zaretskii <eliz@gnu.org>
10946
10947 * w32.c (process_times): Compute sum of utime and stime.
10948 (system_process_attributes): Add Qtime to the alist.
10949
10950 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
10951 and add them to the alist.
10952
10953 * process.c (top level) <Qtime, Qctime>: New variables.
10954 (syms_of_process): staticpro them.
10955 (Fsystem_process_attributes): Add their documentation to the doc
10956 string.
10957
10958 * process.h: Declare Qtime and Qctime.
10959
df23bf08
JR
109602009-01-02 Jason Rumney <jasonr@gnu.org>
10961
9acef61c 10962 * image.c (Qgobject): New symbol.
df23bf08
JR
10963 (syms_of_image): Initialize it.
10964 (init_svg_functions): Load some functions from gobject library.
10965
5bbdf7aa
DN
109662009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
10967
10968 * frame.c (make_terminal_frame): Remove redundant code and useless
10969 block.
10970
63136da6
AS
109712009-01-01 Andreas Schwab <schwab@suse.de>
10972
10973 * process.c (conv_sockaddr_to_lisp): Add workaround for
10974 getsockname bug on BSD.
10975
9ef69046
CY
109762009-01-01 Chong Yidong <cyd@stupidchicken.com>
10977
d6fafbe0
CY
10978 * xfns.c (x_create_tip_frame): Set border width of the X window.
10979
51d861de 10980 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 10981
f9c34147
JR
109822009-01-01 Jason Rumney <jasonr@gnu.org>
10983
9acef61c 10984 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
10985 Don't block input, as per earlier xterm.c changes.
10986
f5497e45
AR
109872008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
10988
10989 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
10990 (ns_appkit_version_int): New function.
10991 (x-server-version): Use ns_appkit_version_int and follow 21+
10992 convention of returning 3 integers.
10993
c19cab20
KH
109942008-12-30 Kenichi Handa <handa@m17n.org>
10995
10996 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
10997 (CHAR_SURROGATE_PAIR_P): New macro.
10998
10999 * font.h (struct font_driver): New member get_variation_glyphs.
11000
9acef61c 11001 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
11002 (Ffont_variation_glyphs): New function.
11003 (syms_of_font): Defsubr it.
11004
11005 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
11006 ftfont_variation_glyphs.
11007 (setup_otf_gstring): New function.
11008 (ftfont_drive_otf): Use it.
11009 (ftfont_shape_by_flt): Handle variation selector.
11010 (ftfont_variation_glyphs): New function.
11011
28cd591f
MR
110122008-12-30 Martin Rudalics <rudalics@gmx.at>
11013
11014 * frame.c (Vemacs_iconified): Remove.
11015
7f714baf
JR
110162008-12-30 Jason Rumney <jasonr@gnu.org>
11017
11018 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 11019 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 11020
9d2d22ab
CY
110212008-12-30 Chong Yidong <cyd@stupidchicken.com>
11022
11023 * indent.c (Fvertical_motion): Don't advance iterator if we have
11024 reseated to the desired position.
11025
11026 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
11027 checking for pos match.
11028
545312c2
KH
110292008-12-30 Kenichi Handa <handa@m17n.org>
11030
1ede3eb6
KH
11031 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
11032 just get the low 8-bit of the code.
11033
545312c2
KH
11034 * font.c (font_intern_prop): Validate str as multibyte.
11035
bd7bbf29
DN
110362008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
11037
31e0750e
DN
11038 * dispextern.h (struct face): Move lface and hash from the middle
11039 of bitfields.
11040
bd7bbf29
DN
11041 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
11042
b5672e7c
DN
110432008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
11044
11045 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
11046 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
11047 instead of intervals.h.
11048
d704470f
AS
110492008-12-26 Andreas Schwab <schwab@suse.de>
11050
11051 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
11052 cons.
11053
54b33868
MR
110542008-12-26 Martin Rudalics <rudalics@gmx.at>
11055
11056 * textprop.c (Qminibuffer_prompt): New variable.
11057 (syms_of_textprop): Initialize it.
11058 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
11059 in minibuffer-prompt face. (Bug#1662)
11060
40b615d6
JR
110612008-12-25 Jason Rumney <jasonr@gnu.org>
11062
11063 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
11064
baae5c2d
JR
110652008-12-24 Jason Rumney <jasonr@gnu.org>
11066
11067 * ralloc.c (r_alloc_reset_variable): New function.
11068
11069 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 11070 record of what points where. (Bug#716)
baae5c2d 11071
a9051c88
DN
110722008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
11073
11074 * minibuf.c (read_minibuf): Follow the non-interactive case when
11075 running as a daemon, before detaching.
11076
8b146312
AS
110772008-12-22 Andreas Schwab <schwab@suse.de>
11078
11079 * buffer.c (init_buffer): Use realloc instead of xrealloc.
11080 * gtkutil.c (free_widget_value): Use xfree instead of free.
11081
56f2de10
MR
110822008-12-22 Martin Rudalics <rudalics@gmx.at>
11083
11084 * frame.c (delete_frame): New function derived from
11085 Fdelete_frame to handle Qnoelisp value for FORCE argument.
11086 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
11087 (Fdelete_frame): Call delete_frame. Remove line from doc-string
11088 saying that FORCE non-nil doesn't run `delete-frame-functions'.
11089 * frame.h: Extern delete_frame.
11090 * window.c (window_loop):
11091 * terminal.c (delete_terminal):
11092 * xterm.c (x_connection_closed):
11093 * xfns.c (Fx_hide_tip):
9acef61c 11094 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 11095
1fc200d6
JR
110962008-12-21 Jason Rumney <jasonr@gnu.org>
11097
11098 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
11099 when character maps to .notdef character.
11100
5e252df2
SM
111012008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
11102
11103 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
11104
99b72cc4
JR
111052008-12-20 Jason Rumney <jasonr@gnu.org>
11106
11107 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 11108 a graphical frame on Windows. (Bug#1325)
99b72cc4 11109
acc49a52
JD
111102008-12-20 Jan Djärv <jan.h.d@swipnet.se>
11111
11112 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
11113
6ea15123
CY
111142008-12-20 Chong Yidong <cyd@stupidchicken.com>
11115
11116 * minibuf.c (Fread_buffer): Doc fix.
11117
b2dab6c8
JR
111182008-12-20 Jason Rumney <jasonr@gnu.org>
11119
54ea0c87 11120 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 11121 server name in UNC paths. (Bug#719)
54ea0c87 11122
b2dab6c8 11123 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 11124 charbuf. (Bug#1035)
b2dab6c8 11125
6d1921be
DN
111262008-12-19 Daniel Engeler <engeler@gmail.com>
11127
11128 * sysdep.c (serial_configure): Fix typo.
11129
53934c98
DN
111302008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
11131
11132 * sysdep.c: Include alloca.h.
f4f634e8
DN
11133 (system_process_attributes): Add implementation for Solaris.
11134
11135 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 11136
06e111a6
DN
111372008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
11138
11139 Reorganize implementation of Flist_system_processes and
11140 Fsystem_process_attributes. No functional changes.
11141 * process.c: Don't #include pwd.h, grp.h and limits.h.
11142 (Flist_system_processes): Just call list_system_processes.
11143 (Fsystem_process_attributes): Just call system_process_attributes.
11144 (procfs_list_system_processes, time_from_jiffies)
11145 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
11146 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
11147
11148 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
11149 (list_system_processes): Rename from
11150 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
11151 Provide a do nothing implementation.
11152 (system_process_attributes): Rename from
11153 procfs_list_system_processes.
11154 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 11155 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
11156
11157 * w32.c (list_system_processes): Rename from
11158 w32_list_system_processes.
11159 (system_process_attributes): Rename from
11160 w32_system_process_attributes.
11161
11162 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
11163
11164 * process.h (w32_list_system_processes)
11165 (w32_system_process_attributes): Remove.
362654a6
JB
11166 (list_system_processes, system_process_attributes):
11167 New prototypes.
06e111a6 11168
6a705b23
KH
111692008-12-19 Kenichi Handa <handa@m17n.org>
11170
11171 * xfont.c (xfont_decode_coding_xlfd): New function.
11172 (xfont_encode_coding_xlfd): New function.
11173 (xfont_list_pattern): Decode XLFD by iso-8859-1.
11174 (xfont_list): Decode and encode XLFD by iso-8859-1.
11175 (xfont_match): Likewise.
11176 (xfont_list_family): Likewise.
11177 (xfont_open): Likewise.
11178
d66c0241 11179 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
11180 names are utf-8.
11181
d66c0241 11182 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
11183 names are utf-8.
11184
5a130941
JD
111852008-12-18 Jan Djärv <jan.h.d@swipnet.se>
11186
11187 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
11188 changed.
bfd20325
JD
11189 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
11190 clicked on a detached tool bar button.
5a130941 11191
fd95644b
DN
111922008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
11193
11194 * emacs.c (main): Print and error and exit when no data is read
11195 from the pipe.
11196
e6eee6ae
JR
111972008-12-17 Jason Rumney <jasonr@gnu.org>
11198
11199 * w32font.c (w32font_has_char): Always return -1.
11200
a35dd56b
KH
112012008-12-16 Kenichi Handa <handa@m17n.org>
11202
11203 * font.c (font_open_entity): Fix previous change.
11204
0e3635c2
DN
112052008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
11206
11207 * process.c: Include <limits.h>.
11208
d4835507 112092008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
11210
11211 * font.c (font_update_drivers): Fix mistake in reconstructing the
11212 driver list.
11213
112142008-12-16 Chong Yidong <cyd@stupidchicken.com>
11215
11216 * font.c (font_clear_cache): Fix format of font cache data.
11217
e2cbc401
CY
112182008-12-15 Chong Yidong <cyd@stupidchicken.com>
11219
11220 * xftfont.c (xftfont_open): Free Xft font pattern if
11221 XftFontOpenPattern fails.
11222
11223 * xterm.c (x_free_frame_resources): Remove extraneous call to
11224 free_frame_faces.
11225
b131d535
CY
112262008-12-13 Chong Yidong <cyd@stupidchicken.com>
11227
11228 * xterm.c (x_delete_display): Move xim_close_dpy call to
11229 x_delete_terminal.
11230 (x_delete_terminal): Call xim_close_dpy.
11231
e6df5336
JR
112322008-12-13 Jason Rumney <jasonr@gnu.org>
11233
11234 * w32font.c (intern_font_name): New function.
11235 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
11236 (w32font_open_internal, Fx_select_font): Decode font name.
11237 (fill_in_logfont, list_all_matching_fonts): Encode font name.
11238
11239 * w32font.h (intern_font_name): Declare new function.
11240
11241 * w32uniscribe.c (add_opentype_font_name_to_list):
11242 Use intern_font_name.
11243
20d68145
CY
112442008-12-13 Chong Yidong <cyd@stupidchicken.com>
11245
9f2554de
CY
11246 * frame.c (Fdelete_frame): Call free_font_driver_list.
11247
3d9bec9a
CY
11248 * font.c (free_font_driver_list): Implement missing function.
11249
20d68145
CY
11250 * w32term.c (w32_term_init): Don't initialize the image cache
11251 here; it will be done in init_frame_faces.
11252
11253 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
11254 (struct x_display_info): Remove unused member null_pixel. New
11255 member xim_callback_data.
11256
11257 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
11258 (xim_initialize): Save pointer to callback function data.
11259 (xim_close_dpy): Free callback function data. Call XCloseIM,
11260 reverting 2008-11-04 change by David Smith.
11261 (x_term_init): Don't initialize the image cache here; it will be
11262 done in init_frame_faces. Remove ancient "null_pixel" cruft.
11263 (x_delete_display): Free x_dnd_atoms member.
11264
96f9306b
KH
112652008-12-13 Kenichi Handa <handa@m17n.org>
11266
6dec9044
JB
11267 * font.c (font_rescale_ratio): Moved from xfaces.c.
11268 Argument type changed. Handle a font-spec too.
96f9306b 11269 (font_score): Check Vface_font_rescale_alist.
6dec9044 11270 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
11271
11272 * xfaces.c (font_rescale_ratio): Moved to font.c.
11273
8d5b4964
CY
112742008-12-13 Chong Yidong <cyd@stupidchicken.com>
11275
11276 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
11277
e6df5336
JR
112782008-12-12 Jason Rumney <jasonr@gnu.org>
11279
11280 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
11281 Vwindow_system_version to the real w32 major version.
11282
97c6058a
DN
112832008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
11284
11285 * term.c (init_tty): Move setting the terminal name before the
11286 potential user: maybe_fatal.
11287
ec4e88d7
CY
112882008-12-11 Chong Yidong <cyd@stupidchicken.com>
11289
d4835507
JB
11290 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
11291 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 11292
b4233ec9
JR
112932008-12-11 Jason Rumney <jasonr@gnu.org>
11294
8ec71e23 11295 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 11296 SYMBOL_CHARSET. (Bug#547)
8ec71e23 11297
b4233ec9 11298 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 11299 size for surrogates. (Bug#1096, bug#872)
b4233ec9 11300
011a0143
JB
113012008-12-11 Juanma Barranquero <lekktu@gmail.com>
11302
11303 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
11304
3c309f34
JB
113052008-12-11 Juanma Barranquero <lekktu@gmail.com>
11306
11307 * process.c (Fsystem_process_attributes, syms_of_process):
11308 Fix typo in name of Ssystem_process_attributes.
11309 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
11310
fedc6ab5
JB
113112008-12-11 Juanma Barranquero <lekktu@gmail.com>
11312
11313 * syntax.c (Fmodify_syntax_entry): Doc fix.
11314
ba3de0e8
JB
113152008-12-10 Juanma Barranquero <lekktu@gmail.com>
11316
11317 * font.c (Ffont_spec): Move usage to end of docstring.
11318
174f1c74
JR
113192008-12-10 Jason Rumney <jasonr@gnu.org>
11320
11321 * w32font.c (Qcham): New symbol.
11322 (font_supported_scripts): Add cham, and comments for other new
11323 scripts in bitfield from OpenType spec.
9d32f818
JR
11324 (add_font_entity_to_list): Limit unicode-sip fonts to those that
11325 contain characters beyond the bmp.
174f1c74 11326
7b649478
KH
113272008-12-10 Kenichi Handa <handa@m17n.org>
11328
11329 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 11330 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
11331 Qunicode_sip.
11332
2133e2d1
JB
113332008-12-10 Juanma Barranquero <lekktu@gmail.com>
11334
11335 * coding.c (QCdefault_char): Rename from QCdefalut_char.
11336 (Fcoding_system_put): Use QCdefault_char.
11337 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
11338
9af886ee
CY
113392008-12-09 Chong Yidong <cyd@stupidchicken.com>
11340
74d819eb
CY
11341 * xftfont.c (syms_of_xftfont): Fix typo.
11342
4ccfa1c0 11343 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 11344
7c19d3ae
DN
113452008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
11346
11347 * emacs.c (main): Close daemon_pipe on exec.
11348
567826bb
CY
113492008-12-08 Chong Yidong <cyd@stupidchicken.com>
11350
11351 * termchar.h (struct tty): New members termcap_term_buffer and
11352 termcap_strings_buffer.
11353
11354 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 11355 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
11356 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
11357 All callers changed.
11358 (init_tty): Store termcap data and string buffers in new struct
11359 tty members termcap_term_buffer and termcap_strings_buffer.
11360 (delete_tty): Free them.
4ccfa1c0 11361 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 11362
aa96c42b
SZ
113632008-12-07 Seiji Zenitani <zenitani@mac.com>
11364
11365 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 11366 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 11367
b7e1d896
CY
113682008-12-06 Chong Yidong <cyd@stupidchicken.com>
11369
11370 * coding.c (make_conversion_work_buffer): Disable buffer
11371 modification hooks in the work buffer.
11372
b5ec91a5
EZ
113732008-12-05 Eli Zaretskii <eliz@gnu.org>
11374
11375 * process.c (procfs_system_process_attributes): If `nread' has a
11376 negative value, assign zero to it.
11377
a5d2a52b
CY
113782008-12-05 Chong Yidong <cyd@stupidchicken.com>
11379
68c5540b 11380 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 11381
7bf1bb21
KH
113822008-12-05 Kenichi Handa <handa@m17n.org>
11383
11384 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
11385 second character is a combining character.
11386
2fdc7d00
EZ
113872008-12-05 Eli Zaretskii <eliz@gnu.org>
11388
11389 * process.c (procfs_system_process_attributes): Don't use cmd,
11390 cmdsize, and q without initializing them first.
11391
bf6bfba8
JR
113922008-12-04 Jason Rumney <jasonr@gnu.org>
11393
11394 * w32font.c (w32font_draw): Initialize orig_clip before getting
11395 it, and delete it when finished.
11396
a3b1a468
DN
113972008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
11398
11399 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
11400 case when running as a daemon before detaching.
11401
8b8be8eb
JB
114022008-12-03 Juanma Barranquero <lekktu@gmail.com>
11403
805f2638 11404 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 11405
b1bde622
KH
114062008-12-03 Kenichi Handa <handa@m17n.org>
11407
e500c47d
KH
11408 * font.c (font_at): Set `multibyte' at first.
11409
ca516334
KH
11410 * coding.c (decode_coding_charset): Check type of an element of
11411 vector VALIDS.
7bf1bb21 11412 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 11413
4ccfa1c0 11414 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
11415 (font_for_char): Likewise.
11416
1e5ecd37
CY
114172008-12-03 Chong Yidong <cyd@stupidchicken.com>
11418
d5b01609 11419 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
11420 (font_update_lface): Handle fonts with corrupted size specs,
11421 i.e. non-int and non-float.
d5b01609 11422
11e3a6e4 11423 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 11424 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 11425 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 11426
ab06788b
CY
11427 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
11428
1e5ecd37 11429 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 11430 underline_minimum_offset for underline position.
1e5ecd37 11431
63c125ab
DN
114322008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
11433
11434 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
11435
11436 * character.c (c_string_width): Specify the type for LEN.
11437
3a8406e1
KH
114382008-12-03 Kenichi Handa <handa@m17n.org>
11439
4ccfa1c0 11440 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 11441 (decode_coding_utf_8): Likewise.
4ccfa1c0 11442 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 11443 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 11444
651df7d9
CY
114452008-12-02 Chong Yidong <cyd@stupidchicken.com>
11446
11447 * keyboard.c (make_lispy_position): Only use PT if the selected
11448 window is current.
11449
1f625c6c
AS
114502008-12-02 Andreas Schwab <schwab@suse.de>
11451
f7741ce9
AS
11452 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
11453
1f625c6c
AS
11454 * doprnt.c (doprnt1): Fix size of charbuf.
11455
92bc2678
CY
114562008-12-02 Chong Yidong <cyd@stupidchicken.com>
11457
11458 * keyboard.c (timer_check): Revert last change.
11459
93b9e8cc
JB
114602008-12-02 Juanma Barranquero <lekktu@gmail.com>
11461
11462 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
11463
fd7a37d5
JB
114642008-12-01 Juanma Barranquero <lekktu@gmail.com>
11465
11466 * makefile.w32-in: Update dependencies.
11467 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
11468
c115043b
AS
114692008-12-01 Andreas Schwab <schwab@suse.de>
11470
11471 * font.c (register_font_driver): Use xmalloc.
11472 (font_put_frame_data): Likewise.
11473
f5668d2a
CY
114742008-12-01 Chong Yidong <cyd@stupidchicken.com>
11475
860d96be
CY
11476 * xfaces.c (realize_x_face): Make abort condition clearer.
11477
f5668d2a
CY
11478 * gtkutil.c (update_frame_tool_bar): Initialize variable.
11479
379c17e7
CY
114802008-11-30 Chong Yidong <cyd@stupidchicken.com>
11481
11482 * keyboard.c (timer_check): After a timer runs, ensure that the
11483 selected window's buffer is current.
11484
35f36d65
JB
114852008-11-30 Juanma Barranquero <lekktu@gmail.com>
11486
f952c61c
JB
11487 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
11488 It was accidentally restored by the Unicode merge.
11489
35f36d65
JB
11490 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
11491
b23077df
JB
114922008-11-29 Juanma Barranquero <lekktu@gmail.com>
11493
11494 * w32proc.c: Include "coding.h".
11495 (Fw32_short_file_name): Encode filename passed to Windows API.
11496 (Fw32_long_file_name): Encode filename passed to Windows API and
11497 decode back the result. (Bug#1433)
11498
b8ebe9dd
KH
114992008-11-29 Kenichi Handa <handa@m17n.org>
11500
8cc53f96
KH
11501 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
11502 not before accessing it.
11503
b8ebe9dd
KH
11504 * charset.c (Fdefine_charset_internal): After calculating
11505 min_char, max_char, and fastmap, copy the charset structure again.
11506 (encode_char): Fix the previous change.
11507
59bc82c0
SZ
115082008-11-28 Seiji Zenitani <zenitani@mac.com>
11509
11510 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
11511
11512 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
11513
11514 * nsterm.m (x_set_frame_alpha): New function.
11515
32247e3d
EZ
115162008-11-27 Eli Zaretskii <eliz@gnu.org>
11517
11518 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
11519
b003e5ff
JB
115202008-11-27 Juanma Barranquero <lekktu@gmail.com>
11521
11522 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
11523 pointer to check_face_name.
11524
708550f5
KH
115252008-11-27 Kenichi Handa <handa@m17n.org>
11526
11527 * category.h (SET_CATEGORY_SET): Call set_category_set.
11528 (set_category_set): Extern it.
11529
11530 * category.c (hash_get_category_set): New function.
11531 (Fmodify_category_entry): Adjusted for the change of
11532 char_table_ref_and_range. Call hash_get_category_set to get a
11533 category set to store in the table.
11534
11535 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
11536 Funify_charset.
11537
2ae37cf0 11538 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
11539 (DECODE_CHAR): Check if the decoder vector is ready.
11540 (ENCODE_CHAR): Check if the encoder char-table is ready.
11541 (maybe_unify_char): Extern it.
11542
11543 * charset.c (Vchar_unified_charset_table): Delete it.
11544 (inhibit_load_charset_map): New variable.
11545 (temp_charset_work): New variable.
11546 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
11547 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
11548 New macros.
11549 (load_charset_map): Meaning of control_flag changed. If
11550 inhibit_load_charset_map is nonzero, setup a table in
11551 temp_charset_work.
11552 (load_charset): New argument control_flag.
11553 (map_charset_for_dump): New function.
11554 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
11555 map_charset_for_dump.
11556 (Fdefine_charset_internal): If the charset method is MAP, load
11557 mapping tables by calling load_charset.
11558 (Funify_charset): Don't load a mapping table but directly set
11559 Vchar_unify_table.
11560 (maybe_unify_char): New function.
11561 (decode_char): Don't handle the deleted method MAP_DEFERRED.
11562 Handle the case of inhibit_load_charset_map being nonzero.
11563 (encode_char): Don't handle the deleted method MAP_DEFERRED.
11564 Handle the case of inhibit_load_charset_map being nonzero.
11565 (Fclear_charset_maps): Just free temp_charset_work.
11566 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
11567 variable.
11568
11569 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
11570 change of char_table_ref_and_range.
11571 (char_table_ref_and_range): Change the meaning of argument FROM
11572 and TO. Now the caller must provide initial values for *FROM
11573 and *TO.
11574
11575 * fontset.c (fontset_add): Adjusted for the change of
11576 char_table_ref_and_range.
11577 (fontset_get_font_group): Likewise.
11578 (Ffontset_info): Likewise.
11579
11580 * keymap.c (describe_vector): Adjusted for the change of
11581 char_table_ref_and_range. For char-table, put boundary between
11582 non-ASCII and 8-bit characters.
11583
11584 * print.c (print_object): For bool-vector, delete unnecessary
11585 check of ASCII_BYTE_P.
11586
9196133b
JR
115872008-11-26 Jason Rumney <jasonr@gnu.org>
11588
11589 * w32font.c (w32font_open_internal): Don't include external
9acef61c 11590 leading in font height. (Bug#879)
9196133b 11591
9f688acf
GM
115922008-11-26 Glenn Morris <rgm@gnu.org>
11593
11594 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
11595 redefinition with ifdef. (Bug#1383)
11596
90d19aff
AR
115972008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11598
11599 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
11600
4ccfa1c0 116012008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
11602
11603 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
11604 New EmacsView methods.
11605 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
11606 Fixes bug #1048,1357,1414.
11607
116082008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11609
11610 Fix bug #1362.
11611 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
11612 is not an indexed color.
11613 * nsterm.m (free_indexed_color): Add argument checking.
11614 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
11615
e7d5ecb3
CY
116162008-11-24 Chong Yidong <cyd@stupidchicken.com>
11617
11618 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
11619 Document confirm-after-completion value for
11620 minibuffer-completion-confirm.
11621
c285743c
JR
116222008-11-24 Jason Rumney <jasonr@gnu.org>
11623
11624 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
11625 warning.
11626
b0857706
JR
116272008-11-23 Jason Rumney <jasonr@gnu.org>
11628
11629 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
11630 restored before returning.
11631
11632 * w32font.c (check_face_name): New function.
11633 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 11634 fonts. (Bug#642)
b0857706 11635
ee50ff07
MR
116362008-11-22 Martin Rudalics <rudalics@gmx.at>
11637
11638 * buffer.c (Fswitch_to_buffer): Reword and mention new option
11639 confirm-nonexistent-file-or-buffer in doc-string.
11640
b8ff72fa
SM
116412008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
11642
11643 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
11644 Fix copy/paste typo. Add checks.
11645
cee53ed4
KH
116462008-11-21 Kenichi Handa <handa@m17n.org>
11647
11648 * coding.c (detect_coding_iso_2022): Reject invalid composition
11649 sequence.
11650 (DECODE_COMPOSITION_START): If the current source is the last
11651 block, and the current composition doesn't end, regard this
11652 sequence as invalid.
11653 (decode_coding_iso_2022): Handle invalid composition sequence.
11654
f6ef1e65
MR
116552008-11-20 Martin Rudalics <rudalics@gmx.at>
11656
11657 * window.c (coordinates_in_window): Don't return
11658 ON_VERTICAL_BORDER for the rightmost position of a mode/header
11659 line when the window is not the rightmost one. (Bug#1372)
11660
e08b1705
MR
116612008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
11662
11663 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
11664
ad98e89f
EZ
116652008-11-15 Eli Zaretskii <eliz@gnu.org>
11666
11667 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
11668 and bright_bg if noninteractive is non-zero.
11669
fb098a4b
CY
116702008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11671
11672 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
11673 x_draw_glyph_string_background.
11674
11675 * w32term.c (x_draw_glyph_string): Likewise.
11676
ce952b6e
CY
116772008-11-15 Chong Yidong <cyd@stupidchicken.com>
11678
11679 * xterm.c (x_draw_glyph_string): Stop drawing the background of
11680 the next glyph string once past the overhang width.
11681
11682 * nsterm.m (ns_draw_glyph_string): Likewise.
11683
11684 * w32term.c (x_draw_glyph_string): Likewise.
11685
26ea7079
CY
116862008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
11687
11688 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
11689 double file close.
11690
1c33c906
MR
116912008-11-14 Martin Rudalics <rudalics@gmx.at>
11692
11693 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
11694 dedicated status of window before attempting to display another
11695 buffer in it.
11696
8fc29035
JB
116972008-11-14 Juanma Barranquero <lekktu@gmail.com>
11698
11699 * msdos.c (Fmsdos_long_file_names):
11700 (syms_of_msdos) <dos-unsupported-char-glyph>:
11701 * dosfns.c (Fint86): Fix typos in docstrings.
11702
55fb4286
EZ
117032008-11-14 Eli Zaretskii <eliz@gnu.org>
11704
11705 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
11706
3fda0315
KY
117072008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
11708
11709 * puresize.h (BASE_PURESIZE): Increase to 1260000.
11710
7e849c17
CY
117112008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
11712
11713 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
11714
11715 * frame.h: Negative alpha means "don't touch".
11716
11717 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
11718
11719 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
11720
b9fd67bd
DN
117212008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
11722
11723 * hftctl.c:
11724 * chpdef.h:
11725 * acldef.h: Remove files used only for systems no longer supported.
11726
11727 * Makefile.in: Fix .o alphabetical ordering.
11728 (hftctl.o): Remove dependency, file removed.
11729 (keymap.o, print.o): Depend on charset.h.
11730
d5998e03
KH
117312008-11-10 Kenichi Handa <handa@m17n.org>
11732
2ae37cf0 11733 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 11734
be70e183
CY
117352008-11-08 Chong Yidong <cyd@stupidchicken.com>
11736
11737 * dired.c (file_name_completion): If completion_ignore_case is
11738 enabled, ignore case when checking completion-regexp-list.
11739
7cf94eac
EZ
117402008-11-08 Eli Zaretskii <eliz@gnu.org>
11741
11742 * vm-limit.c (get_lim_data): Fix last change.
11743
ee107a89
KH
117442008-11-08 Kenichi Handa <handa@m17n.org>
11745
11746 * character.c (Fget_byte): New function.
11747 (syms_of_character): Defsubr Fget_byte.
11748
5fd15622
CY
117492008-11-07 Chong Yidong <cyd@stupidchicken.com>
11750
11751 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
11752 cursor position is valid after scrolling.
11753
13d62fad
JB
117542008-11-06 Juanma Barranquero <lekktu@gmail.com>
11755
11756 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
11757
a1dd2936
GM
117582008-11-06 Glenn Morris <rgm@gnu.org>
11759
11760 * xterm.c (handle_one_xevent): Don't let popup menus cause
11761 mouse-autoselect-window related window switching. (Bug#1261)
11762
860cd236
CY
117632008-11-04 David Smith <davidsmith@acm.org> (tiny change)
11764
11765 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
11766
653a3150
AS
117672008-11-04 Andreas Schwab <schwab@suse.de>
11768
11769 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
11770
870f5cac
CY
117712008-11-03 Chong Yidong <cyd@stupidchicken.com>
11772
11773 * xfns.c (Fx_wm_set_size_hint): New function.
11774
1e02f3cb
MR
117752008-11-03 Martin Rudalics <rudalics@gmx.at>
11776
11777 * textprop.c (Fprevious_single_char_property_change): Return 0
11778 when there's no change in a string. (Bug#1301)
11779
e630dfc6
MR
117802008-11-02 Martin Rudalics <rudalics@gmx.at>
11781
11782 * frame.c (do_switch_frame): New argument NORECORD passed to
11783 Fselect_window.
11784 (Fselect_frame): New argument NORECORD passed to
11785 do_switch_frame.
11786 (Fset_frame_selected_window): New argument NORECORD passed to
11787 Fselect_frame.
11788 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
11789 in call of do_switch_frame.
11790 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
11791 Handle NORECORD argument in call of Fselect_frame.
11792 * lisp.h (do_switch_frame, Fselect_frame)
11793 (Fset_frame_selected_window): Adjust declarations.
11794 * window.c (select_frame_norecord): New function.
11795 (run_window_configuration_change_hook): Use it and call
11796 Fselect_frame with NORECORD set.
11797 (Fselect_window): Pass NORECORD to Fselect_frame.
11798 (Fset_window_configuration): Handle NORECORD argument in call of
11799 do_switch_frame.
11800 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
11801 Fset_frame_selected_window.
11802 * keyboard.c (command_loop_1): Handle NORECORD in call of
11803 Fselect_frame (currently ifdefd).
11804
9020b223
GM
118052008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
11806
11807 * emacs.c (USAGE2): Untabify.
11808
793ffee8
SM
118092008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
11810
11811 * composite.c (fill_gstring_header): Fix copy/paste typo.
11812
ab6d1131
MR
118132008-10-31 Martin Rudalics <rudalics@gmx.at>
11814
11815 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
11816 (Fother_window): Rename argument and rewrite doc-string.
11817 (select_window_norecord): Fix return value. (Bug#1276)
11818
601a9cf1
JB
118192008-10-30 Juanma Barranquero <lekktu@gmail.com>
11820
11821 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
11822 new frames overriding foreground for tooltips. Based on similar patch
11823 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
11824
813b0652
CY
118252008-10-29 Chong Yidong <cyd@stupidchicken.com>
11826
11827 * emacs.c (Fdaemon_initialized): Initialize nfd.
11828
4414f58f
MR
118292008-10-29 Martin Rudalics <rudalics@gmx.at>
11830
11831 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
11832 (Fwindow_text_height): Clarify doc-strings.
11833 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
11834 doc-string of window-scroll-functions.
11835
ecdcaa09
RS
118362008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
11837
11838 * category.c (syms_of_category): Fix typo in docstring.
11839
23fe745a
JB
118402008-10-28 Juanma Barranquero <lekktu@gmail.com>
11841
11842 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
11843 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
11844 Fix typos in docstrings.
11845
ff808935
DN
118462008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
11847
11848 * emacs.c (daemon_pipe): Make non-static.
11849 (IS_DAEMON): Move definition ...
11850 * lisp.h (IS_DAEMON): ... here.
11851 (daemon_pipe): Declare.
11852 (is_daemon): Remove.
11853 * dispnew.c (init_display): Use IS_DAEMON.
11854
fc012771
SM
118552008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
11856
11857 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
11858 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
11859
11860 * emacs.c (is_daemon): Remove.
11861 (main): Don't set is_daemon.
11862 (IS_DAEMON): New macro.
11863 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 11864 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
11865 parent exits.
11866 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
11867
d8bdbe6f
CY
118682008-10-27 Chong Yidong <cyd@stupidchicken.com>
11869
d1a072bf
CY
11870 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
11871 over-sized glyph, draw it with the default glyph width.
11872
e2e325aa
CY
11873 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11874 glyph, draw it with the default glyph width.
11875
11876 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11877 glyph, draw it with the default glyph width.
11878
d8bdbe6f
CY
11879 * xdisp.c (try_scrolling): When computing the distance from the
11880 scroll margin to PT, try moving some distance past the window
11881 bottom before giving up.
11882
7bfac547
MR
118832008-10-27 Martin Rudalics <rudalics@gmx.at>
11884
11885 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
11886 (Fset_window_buffer): Explain in doc-string that a window can be
11887 "strongly" dedicated to its buffer.
11888
4ff029f6
DN
118892008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
11890
11891 * emacs.c (daemon_name): New variable.
11892 (main): Deal with --daemon=SERVER_NAME.
11893 (Fdaemonp): Return a name if one was passed to --daemon.
11894
5790ef40
DN
118952008-10-26 Romain Francoise <romain@orebokech.com>
11896
f9bd0df9 11897 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
11898 (main): Create a pipe before forking, make the parent exit only after
11899 the child has closed its end of the pipe. Move closing the
11900 descriptors ...
11901 (Fdaemon_initialized): ... here. New function.
11902
f5385255
SM
119032008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
11904
4d632321
SM
11905 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
11906 the previous unoptimized table.
11907
f5385255
SM
11908 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
11909 the distinction between non-nil and non-t value of `dedicated'.
11910
6c56a0f3
CY
119112008-10-25 Chong Yidong <cyd@stupidchicken.com>
11912
11913 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 11914 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 11915
fec89261
MR
119162008-10-25 Martin Rudalics <rudalics@gmx.at>
11917
11918 * window.c (Fget_buffer_window, Fdelete_windows_on)
11919 (Freplace_buffer_in_windows): Make buffer argument optional and
11920 rename to buffer_or_name.
11921
34fcddd0
CY
119222008-10-24 Chong Yidong <cyd@stupidchicken.com>
11923
f5385255
SM
11924 * xdisp.c (handle_single_display_spec, handle_display_prop):
11925 Undo 2005-05-16 change.
34fcddd0
CY
11926 (handle_stop): Pop iterator if it's loaded with an empty string.
11927 (get_overlay_strings_1): Don't save iterator if it's loaded with
11928 an empty string (bug#1201).
11929
064766f2
KH
119302008-10-24 Kenichi Handa <handa@m17n.org>
11931
11932 * ftfont.c (ftfont_otf_features): Fix previous change.
11933 (ftfont_otf_capability): Check FeatureList.FeatureCount before
11934 calling ftfont_otf_features.
11935
f9bd0df9 119362008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
11937
11938 * font.c (font_match_p): Fix for the case that a vector of
11939 characters is in script-representative-chars.
11940
1dae9197
MA
119412008-10-24 Michael Albinus <michael.albinus@gmx.de>
11942
11943 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 11944 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
11945 (xd_read_queued_messages): Catch Qdbus_error from the macros.
11946 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 11947 macro. (Bug#1186)
1dae9197 11948
f9bd0df9 119492008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
11950
11951 * s/sol2-10.h: New file.
11952
878a4584
JB
119532008-10-23 Juanma Barranquero <lekktu@gmail.com>
11954
11955 * xdisp.c (fill_glyph_string): Fix typo in source (though the
11956 poor beast has survived 9+ years and the jump from xterm.c!).
11957
cd265ca6
MR
119582008-10-23 Martin Rudalics <rudalics@gmx.at>
11959
11960 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
11961 Reword doc-string.
f5385255 11962 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 11963
472a4dc9
JB
119642008-10-23 Juanma Barranquero <lekktu@gmail.com>
11965
11966 * character.c (syms_of_character) <script-representative-chars>:
11967 <unicode-category-table>: Doc fixes.
11968
159bd5a2
NF
119692008-10-23 Noah Friedman <friedman@splode.com>
11970
11971 * coding.c (make_conversion_work_buffer): Check that
11972 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
11973 Fget_buffer_create.
11974
49f9c344
KH
119752008-10-23 Kenichi Handa <handa@m17n.org>
11976
11977 * font.c (font_add_log): Check the values of extra properties.
11978
12bb3111
MR
119792008-10-22 Martin Rudalics <rudalics@gmx.at>
11980
11981 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11982 Reword doc-string.
11983 (Fset_window_parameter): Use NILP.
11984 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 11985 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 11986
bbeb4e99
JB
119872008-10-22 Juanma Barranquero <lekktu@gmail.com>
11988
11989 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
11990
119912008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
11992
11993 * nsfns.m (ns_appkit_version): New function.
11994 (x-server-version): Use it.
11995 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
11996 (x-server-vendor): Don't check_ns().
11997
11998 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
11999
a9b555d3
JB
120002008-10-22 Juanma Barranquero <lekktu@gmail.com>
12001
12002 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
12003 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
12004
4626499f
KH
120052008-10-22 Kenichi Handa <handa@m17n.org>
12006
e3681952
KH
12007 * syntax.c (scan_words): Call word_boundary_p instead of comparing
12008 scripts.
12009
4626499f
KH
12010 * category.c (word_boundary_p): Check scripts instead of charset.
12011 Handle nil value in word-separating-categories and
12012 word-combining-categories.
12013 (syms_of_category): Fix docstrings of word-separating-categories
12014 and word-combining-categories.
12015
1560f91a
EZ
120162008-10-21 Eli Zaretskii <eliz@gnu.org>
12017
12018 * coding.c (Fencode_coding_region, Fdecode_coding_region)
12019 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
12020
f4668441
MR
120212008-10-21 Martin Rudalics <rudalics@gmx.at>
12022
12023 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
12024 Rename arg "buffer" to "buffer_or_name".
12025 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
12026 it optional.
12027 (no_switch_window): Remove since the return value is not used.
a9b555d3 12028 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
12029 Consider window as dedicated when Fwindow_dedicated_p returns a
12030 non-nil value.
12031 * lisp.h: Remove prototype for no_switch_window.
12032
fd75ddb2
JD
120332008-10-21 Jan Djärv <jan.h.d@swipnet.se>
12034
12035 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 12036 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 12037
07295713
KH
120382008-10-21 Kenichi Handa <handa@m17n.org>
12039
12040 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
12041 check Vlatin_extra_code_table.
12042
712adc82
EZ
120432008-10-20 Eli Zaretskii <eliz@gnu.org>
12044
12045 * fileio.c (Fset_file_modes): Doc fix.
12046
f549eb0b
MA
120472008-10-19 Michael Albinus <michael.albinus@gmx.de>
12048
12049 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
12050 in arrays.
12051
aac0c6e3
MR
120522008-10-19 Martin Rudalics <rudalics@gmx.at>
12053
12054 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
12055 Mention kill-buffer in doc-string.
12056 (Fset_window_buffer): Reinsert tem check removed in last commit.
12057 (Fenlarge_window, Fshrink_window): Have argument names and
12058 doc-string follow Elisp manual more closely.
12059
120602008-10-18 Eli Zaretskii <eliz@gnu.org>
12061
12062 * fileio.c (Fset_file_modes): Doc fix.
12063
120642008-10-18 Martin Rudalics <rudalics@gmx.at>
12065
12066 * window.c (Fwindow_width, Fset_window_start)
12067 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
12068 (Fdelete_windows_on, Freplace_buffer_in_windows):
12069 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
12070 (Fwindow_dedicated_p): Make window argument optional.
12071 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
12072 (Fset_window_buffer): Respect any non-nil dedicated value for
12073 window. Rename "buffer" argument to "buffer_or_name".
12074
120752008-10-18 Ulrich Mueller <ulm@gentoo.org>
12076
12077 * m/sh3.h: New file, machine description for SuperH.
12078
120792008-10-17 Martin Rudalics <rudalics@gmx.at>
12080
12081 * window.c (Fsplit_window): Rename arg horflag to horizontal.
12082
120832008-10-17 Kenichi Handa <handa@m17n.org>
12084
12085 * ftfont.c (ftfont_otf_features): Fix indexing
12086 gsub_gpos->FeatureList.Feature. Check the validity of indices.
12087
120882008-10-16 Magnus Henoch <mange@freemail.hu>
12089
12090 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
12091 (Fdbus_call_method_asynchronously): Ditto.
12092 This change makes C-h f display the argument list.
12093
120942008-10-16 Chong Yidong <cyd@stupidchicken.com>
12095
12096 * fileio.c (Fexpand_file_name): Doc fix.
12097
12098 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
12099 of :foreground and :background equivalent to unspecified (20.x
12100 compatibility).
12101
121022008-10-15 Eli Zaretskii <eliz@gnu.org>
12103
12104 * buffer.c (syms_of_buffer): Doc fix.
12105
121062008-10-14 Kenichi Handa <handa@m17n.org>
12107
12108 * font.c (font_clear_prop): When clearing font width, clear the
12109 average width field too.
12110
121112008-10-12 Andreas Schwab <schwab@suse.de>
12112
12113 * ftfont.c (ftfont_shape_by_flt): Make static.
12114 * ftfont.h (ftfont_shape_by_flt): Don't declare.
12115
12116 * font.c: Don't include <m17n-flt.h>.
12117
121182008-10-10 Eli Zaretskii <eliz@gnu.org>
12119
12120 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
12121
121222008-10-09 Eli Zaretskii <eliz@gnu.org>
12123
12124 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
12125 away code.
12126
121272008-10-09 Chong Yidong <cyd@stupidchicken.com>
12128
12129 * dispnew.c (update_text_area): Avoid looping due to large glyph
12130 overhangs (bug#1070).
12131
121322008-10-09 Kenichi Handa <handa@m17n.org>
12133
12134 * fontset.c (face_for_char): If face->fontset is negative, just
12135 return ascii_face.
12136
f5385255
SM
12137 * font.c (font_delete_unmatched): Fix previous change.
12138 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
12139
121402008-10-09 Martin Rudalics <rudalics@gmx.at>
12141
12142 * frame.c (Fraise_frame): On text-only terminals select frame in
12143 order to make it visible. (Bug#1061)
12144
121452008-10-08 Chong Yidong <cyd@stupidchicken.com>
12146
12147 * fontset.c (fontset_find_font): Check frame validity.
12148
121492008-10-07 Chong Yidong <cyd@stupidchicken.com>
12150
a9b555d3 12151 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
12152 (xg_display_close): Allow Emacs to close all displays (bug#985).
12153
121542008-10-06 Andreas Schwab <schwab@suse.de>
12155
f5385255 12156 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
12157
121582008-10-06 Chong Yidong <cyd@stupidchicken.com>
12159
f5385255 12160 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 12161
a9b555d3 12162 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
12163
12164 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
12165 during initialization.
12166
121672008-10-04 Eli Zaretskii <eliz@gnu.org>
12168
12169 * xdisp.c (redisplay_internal): If frame switched, redisplay the
12170 whole thing on MSDOS frames as well as on a TTY.
12171
12172 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
12173 well as for TTY.
12174 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
12175 well as on a TTY.
12176
12177 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
12178 as well as for TTY.
12179
12180 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
12181
12182 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
12183 MSDOS frames as well.
12184
121852008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12186
12187 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
12188 correct arguments.
b71ac3dd 12189 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
12190
121912008-10-03 Glenn Morris <rgm@gnu.org>
12192
12193 * emacs.c (USAGE1): Add --daemon.
12194
121952008-10-02 Eli Zaretskii <eliz@gnu.org>
12196
12197 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
12198 100, so it's in percents as advertised.
12199
122002008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12201
12202 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
12203 (ns_output.current_cursor, ns_output.desired_cursor)
12204 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
12205 (FRAME_NEW_CURSOR_COLOR): Remove.
12206
12207 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 12208 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
12209 enumeration (HOLLOW_BOX_CURSOR, etc.).
12210
12211 * nsterm.m (ns_frame_rehighlight): Remove commented code.
12212 (draw_window_cursor): Simplify code.
f5385255
SM
12213 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
12214 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 12215 updates manually.
a9b555d3
JB
12216 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
12217 Use core Emacs cursor types.
aac0c6e3 12218
b8ff72fa 12219 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
12220
122212008-10-02 Martin Rudalics <rudalics@gmx.at>
12222
12223 * process.c (Faccept_process_output): Fix doc-string.
12224
122252008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
12226
12227 * gmalloc.c (__sbrk): Also define for uClibc.
12228
12229 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
12230 for uClibc.
12231
122322008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12233
12234 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
12235 styles.
12236 (nsfont_open): Reenable the cache.
12237
122382008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12239
12240 * font.c (font_matching_entity): Reflect ATTRS in font selection.
12241 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
12242
122432008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
12244
12245 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
12246 a suspended terminal.
12247
122482008-09-30 Michael Albinus <michael.albinus@gmx.de>
12249
12250 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
12251
122522008-09-30 Eli Zaretskii <eliz@gnu.org>
12253
12254 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
12255
122562008-09-30 Chong Yidong <cyd@stupidchicken.com>
12257
12258 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
12259 in a continued line coincides with a line beginning.
12260
122612008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
12262
12263 * nsfont.m (nsfont_trait_distance): Fix bug.
12264 (nsfont_list): Return a list rather than a vector (syncs with Handa
12265 changes of 2008-05-14).
12266 (nsfont_open): Improve logging.
12267
122682008-09-29 Andreas Schwab <schwab@suse.de>
12269
12270 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
12271
122722008-09-28 Martin Rudalics <rudalics@gmx.at>
12273
12274 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
12275 name as char-resolve-modifiers.
12276 Reported by: Markus Triska <markus.triska@gmx.at>
12277
122782008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
12279
12280 * dispnew.c (init_display): Return earlier when running as a daemon.
12281
122822008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12283
12284 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
12285
122862008-09-27 Eli Zaretskii <eliz@gnu.org>
12287
12288 * composite.c (Fcomposition_get_gstring)
12289 (Fcompose_region_internal, Fcompose_string_internal)
12290 (Ffind_composition_internal): Doc fix.
12291 (syms_of_composite) <compose-chars-after-function>: Doc fix.
12292 (syms_of_composite) <auto-composition-function>: Doc fix.
12293 (syms_of_composite) <composition-function-table>: Doc fix.
12294
122952008-09-25 Chong Yidong <cyd@stupidchicken.com>
12296
12297 * search.c (wordify): New argument for lax word-ends.
12298 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
12299
123002008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
12301
12302 * lisp.h (is_daemon): Declare.
12303 * dispnew.c (init_display): Do not try to initialize the terminal
12304 when running as a daemon.
12305
123062008-09-22 Chong Yidong <cyd@stupidchicken.com>
12307
12308 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
12309 x_display_pixel_height.
12310
123112008-09-22 Martin Rudalics <rudalics@gmx.at>
12312
12313 * undo.c (record_point): Don't call Fundo_boundary for first
12314 change. (Bug#731)
12315
123162008-09-22 Juanma Barranquero <lekktu@gmail.com>
12317
12318 * emacs.c (Fdaemonp): Doc fix.
12319
123202008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
12321
12322 * emacs.c (main): Place #ifdef in the proper place.
12323
123242008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
12325
12326 * emacs.c (standard_args): Add --daemon.
12327 (main): Disconnect from the terminal when --daemon is passed.
12328 (is_daemon): New variable.
12329 (Fdaemonp): New function.
12330 (syms_of_emacs): Defsubr it.
12331
123322008-09-20 Chong Yidong <cyd@stupidchicken.com>
12333
12334 * xdisp.c (get_next_display_element): Handle string display
12335 correctly when checking for the end of a box run.
12336
123372008-09-20 Glenn Morris <rgm@gnu.org>
12338
12339 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
12340 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
12341 (Frename_file): Avoid copying to trash if a rename involves
12342 a delete. (Bug#964).
12343
123442008-09-20 Eli Zaretskii <eliz@gnu.org>
12345
12346 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
12347 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
12348 frames as well as termcap frames.
12349 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
12350 get_named_tty.
12351
123522008-09-19 Eli Zaretskii <eliz@gnu.org>
12353
12354 * process.c (procfs_system_process_attributes): Fix cmdline in
12355 case /proc/PID/cmdline is empty.
12356
12357 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
12358 x_display_pixel_height.
12359
123602008-09-19 Juanma Barranquero <lekktu@gmail.com>
12361
12362 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
12363
12364 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
12365 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
12366
123672008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
12368
12369 * dispextern.h (struct it): Move line_wrap away from the middle of
12370 bitfields. Move voffset in struct iterator_stack_entry after the
12371 bitfields. Move tab_width near after another short.
12372
123732008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
12374
12375 * frame.h (struct frame): Move alpha from the middle of bitfields.
12376
12377 * window.h (struct window): Move frozen_window_start_p after the
12378 rest of the bitfields to reduce padding.
12379
123802008-09-18 Chong Yidong <cyd@stupidchicken.com>
12381
12382 * xterm.h (x_display_info): Remove `height' and `width' members.
12383
12384 * nsterm.h (ns_display_info): Remove `height' and `width' members.
12385
12386 * w32term.h (w32_display_info): Remove `height', `width',
12387 `height_in', and `width_in' members.
12388
b8ff72fa
SM
12389 * xterm.c (x_display_pixel_height, x_display_pixel_width):
12390 New functions.
aac0c6e3
MR
12391 (x_calc_absolute_position): Use them.
12392 (x_term_init): Omit removed `height' and `width' members.
12393
b8ff72fa
SM
12394 * w32term.c (x_display_pixel_height, x_display_pixel_width):
12395 New functions.
aac0c6e3
MR
12396 (w32_read_socket, x_calc_absolute_position): Use them.
12397 (w32_initialize_display_info, w32_term_init): Omit removed members
12398 of w32_display_info.
12399
b8ff72fa
SM
12400 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
12401 New functions.
12402 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 12403
b8ff72fa
SM
12404 * xterm.c (x_display_pixel_height, x_display_pixel_width):
12405 New functions.
aac0c6e3
MR
12406 (x_calc_absolute_position): Use them.
12407 (x_term_init): Omit removed `height' and `width' members.
12408
12409 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
12410 (compute_tip_xy):
12411 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
12412 * xmenu.c (menu_position_func): Use x_display_pixel_height and
12413 x_display_pixel_width.
12414
124152008-09-18 Kenichi Handa <handa@m17n.org>
12416
12417 * composite.c (fill_gstring_header): Don't check FROM and TO here.
12418 (composition_compute_stop_pos): Fix handling of static composition.
12419 (Fcomposition_get_gstring): Check FROM and TO at first.
12420
124212008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
12422
46e722a9 12423 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
12424 mixup (YAILOM).
12425
124262008-09-17 Chong Yidong <cyd@stupidchicken.com>
12427
12428 * indent.c (Fvertical_motion): Use position reported by iterator
12429 instead of PT for determining screen motion (bug#943).
12430
124312008-09-17 Romain Francoise <romain@orebokech.com>
12432
12433 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
12434
124352008-09-17 Kenichi Handa <handa@m17n.org>
12436
12437 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
12438
12439 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
12440 if necessary.
12441
124422008-09-16 Kenichi Handa <handa@m17n.org>
12443
12444 * coding.c (make_conversion_work_buffer): Avoid calling
12445 Fget_buffer_create if it is not necessary.
12446
124472008-09-15 Martin Rudalics <rudalics@gmx.at>
12448
12449 * window.c (Fselect_window): Don't update window_select_count and
12450 use_time when norecord is not nil.
12451
124522008-09-14 Kenichi Handa <handa@m17n.org>
12453
12454 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
12455 specpdl_ptr.
12456
124572008-09-12 Kenichi Handa <handa@m17n.org>
12458
12459 * indent.c (scan_for_column): Don't handle automatic composition
12460 if the current buffer is not associated with a window.
12461
12462 * composite.c (composition_reseat_it): If the current buffer is
12463 not associated with a window, ignore the automatic composition.
12464 (find_automatic_composition): Likewise.
12465
124662008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12467
12468 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
12469 (Fgpm_mouse_stop): Use it.
12470 * termhooks.h (close_gpm): Declare.
12471 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
12472 connection if Gpm_GetEvent fails.
12473
12474 * window.c (set_window_buffer): Always preserve current-buffer.
12475
124762008-09-12 Glenn Morris <rgm@gnu.org>
12477
12478 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
12479
124802008-09-11 Glenn Morris <rgm@gnu.org>
12481
12482 * charset.c (charset-map-path): Doc fix.
12483
124842008-09-10 Kenichi Handa <handa@m17n.org>
12485
12486 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
12487
12488 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
12489 compose a grapheme cluster with the preceding base glyph.
12490
12491 * composite.c (composition_compute_stop_pos): Fix previous change.
12492 Reset cmp_it->id to -1 at first.
12493
124942008-09-10 Glenn Morris <rgm@gnu.org>
12495
12496 * Makefile.in (character.o, chartab.o): Fix config.h typo.
12497
124982008-09-09 Chong Yidong <cyd@stupidchicken.com>
12499
12500 * keyboard.c (read_key_sequence): Reapply translation maps when
12501 switching keyboards.
12502
125032008-09-09 Kenichi Handa <handa@m17n.org>
12504
12505 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
12506 characters.
12507
12508 * composite.c (FORWARD_CHAR): Fix calculation
12509 of (POSITION).pos_byte.
12510 (composition_compute_stop_pos): Limit the search of composition to
12511 at most 500 characters ahead. If we reach the limit or find a
12512 newline, set cmp_it->ch to -2 and return 0.
12513 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
12514
125152008-09-08 Kenichi Handa <handa@m17n.org>
12516
12517 * indent.c (Fvertical_motion): Be sure to set
12518 it_overshoot_expected if it.cmp_it.id is non-negative.
12519
125202008-09-07 Andreas Schwab <schwab@suse.de>
12521
12522 * callproc.c (Fcall_process): Don't hold references to string data
12523 across garbage collection. Move initialisation of new_argv down
12524 to avoid compiler bug.
12525
125262008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12527
12528 * process.c (Fsystem_process_attributes): Doc fix.
12529
125302008-09-07 Chong Yidong <cyd@stupidchicken.com>
12531
12532 * callproc.c (Fcall_process): Canonicalize current directory name.
12533
12534 * xdisp.c (move_it_to): When moving by vpos, ensure that the
12535 iterator advances to the next line if the current line ends in a
12536 continued tab.
12537
125382008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
12539
12540 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
12541 member to point to cmp_from.
12542
12543 * xdisp.c: Doc fix for references to gidx data member.
12544
125452008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
12546
12547 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
12548
125492008-09-07 Kenichi Handa <handa@m17n.org>
12550
12551 * composite.c (FORWARD_CHAR): Check STOP after
12552 incrementing (POSITION).pos.
12553
125542008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12555
12556 * process.c (Fsystem_process_attributes): Doc fix.
12557
125582008-09-06 Chong Yidong <cyd@stupidchicken.com>
12559
12560 * keyboard.c (Ftop_level): Doc fix.
12561
125622008-09-06 Eli Zaretskii <eliz@gnu.org>
12563
12564 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
12565 minibuffer, don't let lower part of menu invade the echo area.
12566
12567 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
12568 "char *q" to access menu text and advance through it. Revert the
12569 change that displayed ">" instead of ASCII character 0x10.
12570
125712008-09-05 Eli Zaretskii <eliz@gnu.org>
12572
12573 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
12574 toggle boxes and radio buttons on MS-DOS as well.
12575
125762008-09-05 Kenichi Handa <handa@m17n.org>
12577
12578 * composite.c (autocmp_chars): Check lookback count.
12579 (composition_compute_stop_pos): Set cmp_it->lookback.
12580 (composition_reseat_it): Check lookback count.
12581 (struct position_record): New struct.
12582 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
12583 (find_automatic_composition): New function.
12584 (composition_adjust_point): Use find_automatic_composition.
12585
12586 * dispextern.h (struct composition_it): New member lookback.
12587
125882008-09-02 Chong Yidong <cyd@stupidchicken.com>
12589
12590 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
12591 if moving by a single line.
12592
125932008-09-02 Andreas Schwab <schwab@suse.de>
12594
12595 * xterm.c (x_delete_display): Fix merge error.
12596
12597 * fileio.c (Fexpand_file_name): Remove unused variables.
12598
125992008-09-02 Eli Zaretskii <eliz@gnu.org>
12600
12601 * fileio.c (Fexpand_file_name): Copy argument `name' into local
12602 storage on all platforms, not just on DOS_NT.
12603
126042008-09-02 Jason Rumney <jasonr@gnu.org>
12605
b8ff72fa
SM
12606 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
12607 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
12608
126092008-09-01 Chong Yidong <cyd@stupidchicken.com>
12610
12611 * xfaces.c (Finternal_set_alternative_font_family_alist)
12612 (Finternal_set_alternative_font_registry_alist): Properly copy
12613 entire alist structure.
12614
126152008-09-01 Kenichi Handa <handa@m17n.org>
12616
d66c0241 12617 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 12618 representative chars of the script is a vector.
d66c0241
JB
12619 (ftfont_list): Handle the case where the representative chars of
12620 the script is a vector.
aac0c6e3
MR
12621
12622 * character.c (syms_of_character): Docstring of
12623 script-representative-chars fixed.
12624
126252008-08-31 Eli Zaretskii <eliz@gnu.org>
12626
12627 * msdos.c (BUILD_CHAR_GLYPH): New macro.
12628 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
12629 the menu. Allocate larger buffer for `text', to account for
12630 possible ^C characters.
12631
126322008-08-31 Martin Rudalics <rudalics@gmx.at>
12633
12634 * xdisp.c (prepare_menu_bars): Don't call
12635 Vwindow_size_change_functions with arg Qt.
12636
126372008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
12638
12639 * font.h (font_range):
12640 * fileio.c (report_file_error):
46e722a9
SM
12641 * composite.c (composition_update_it): Yet another int/Lisp_Object
12642 mixup (YAILOM).
aac0c6e3
MR
12643
126442008-08-30 Glenn Morris <rgm@gnu.org>
12645
12646 * data.c (Fmake_variable_frame_local): Doc fix.
12647
12648 * frame.c (Fmodify_frame_parameters): Doc fix.
12649
126502008-08-30 Eli Zaretskii <eliz@gnu.org>
12651
12652 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
12653 needed by GetTokenInformation.
12654 (w32_system_process_attributes): Check return values of all system
12655 APIs.
12656
12657 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
12658 only when the state changes.
12659 (IT_update_begin, IT_update_end): Add termscript trace.
12660
12661 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
12662 clipboard is unavailable. Set dst to NULL if it doesn't point to
12663 malloc'ed data.
12664 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
12665 passing random values to xfree.
12666
12667 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 12668 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
12669
126702008-08-29 Jason Rumney <jasonr@gnu.org>
12671
12672 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
12673
126742008-08-29 Eli Zaretskii <eliz@gnu.org>
12675
12676 * composite.c (fill_gstring_body): Avoid compiler warnings.
12677
12678 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
12679 LGLYPH_SET_CODE to avoid compiler warnings.
12680
2ae37cf0 12681 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
12682
12683 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
12684
12685 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
12686 LGLYPH_SET_CODE.
12687
126882008-08-29 Kenichi Handa <handa@m17n.org>
12689
12690 * fileio.c (report_file_error): Don't downcase the first character
12691 of errstring if it is still unibyte.
12692
126932008-08-29 Kenichi Handa <handa@m17n.org>
12694
12695 These changes are to re-implement the automatic composition so
12696 that it doesn't use text properties.
12697
12698 * Makefile.in (ftfont.o): Depend on composite.h.
12699 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
12700
12701 * character.h (Vunicode_category_table): Extern it.
12702
12703 * character.c (Vunicode_category_table): New variable.
12704 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
12705
12706 * chartab.c (optimize_sub_char_table): Perform more greedy
12707 optimization.
12708
b8ff72fa
SM
12709 * composite.h (enum composition_method):
12710 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
12711 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
12712 (Vcomposition_function_table): Extern it.
12713 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
12714 (composition_gstring_put_cache, composition_gstring_from_id)
12715 (composition_gstring_p, composition_gstring_width)
12716 (composition_compute_stop_pos, composition_reseat_it)
12717 (composition_update_it, composition_adjust_point): Extern them.
12718 (Fcomposition_get_gstring): EXFUN it.
12719
d66c0241 12720 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
12721 (Vcomposition_function_table)
12722 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
12723 (gstring_hash_table, gstring_work, gstring_work_headers):
12724 New variables.
aac0c6e3
MR
12725 (gstring_lookup_cache, composition_gstring_put_cache)
12726 (composition_gstring_from_id, composition_gstring_p)
12727 (composition_gstring_width, fill_gstring_header)
12728 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
12729 (composition_reseat_it, composition_update_it)
b8ff72fa 12730 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
12731 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
12732 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 12733 Defsubr composition_get_gstring.
aac0c6e3
MR
12734
12735 * dispextern.h (struct glyph): New union u.cmp. Delete the member
12736 cmp_id.
12737 (struct glyph_string): Delete the member gidx. New members
12738 cmp_id, cmp_from, and cmp_to.
12739 (enum it_method): Delete GET_FROM_COMPOSITION.
12740 (struct composition_it): New struct.
12741 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
12742 Delete c, len, cmp_id, cmp_len in u.comp.
12743
12744 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 12745 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 12746 (enum lglyph_indices): Likewise.
b8ff72fa 12747 (font_range): Adjust extern.
aac0c6e3
MR
12748 (font_fill_lglyph_metrics): Extern it.
12749
12750 * font.c (QCf): New variable.
12751 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12752 (font_prepare_composition): Delete this function.
12753 (font_range): Type and arguments changed.
12754 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
12755 (font_fill_lglyph_metrics): New function.
b8ff72fa 12756 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 12757 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
12758 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
12759 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
12760
12761 * fontset.h (font_for_char): Extern it.
12762
12763 * fontset.c (font_for_char): New function.
12764
12765 * ftfont.c: Include composite.h.
12766 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 12767 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
12768
12769 * indent.c: Include composite.h and dispextern.h.
12770 (check_composition): Delete this function.
12771 (scan_for_column): Handle composition by
12772 composition_compute_stop_pos, composition_reseat_it, and
12773 composition_update_it.
12774 (compute_motion): Likewise.
12775 (Fvertical_motion): Fix checking of composition.
12776
12777 * keyboard.c (adjust_point_for_property): Check composition by
12778 composition_adjust_point.
12779
b8ff72fa 12780 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
12781 struct glyph_string.
12782
b8ff72fa
SM
12783 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
12784 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
12785 struct glyph.
12786 (produce_composite_glyph): Likewise.
12787
b8ff72fa
SM
12788 * w32term.c (x_draw_composite_glyph_string_foreground):
12789 Adjust for the change of struct glyph_string.
aac0c6e3
MR
12790 (x_draw_glyph_string): Likewise.
12791
12792 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
12793 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12794
12795 * xdisp.c: Include font.h.
12796 (it_props): Delete the entry for Qauto_composed.
12797 (init_iterator): Initialize it->cmp_it.id to -1.
12798 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 12799 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
12800 (handle_auto_composed_prop): Delete it.
12801 (handle_composition_prop): Handle only static composition.
12802 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
12803 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 12804 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
12805 (pop_it): Likewise.
12806 (get_next_element): Delete next_element_from_composition.
12807 (CHAR_COMPOSED_P): New macro.
12808 (get_next_display_element): For automatic composition, get a face
12809 from the font in the glyph-string.
12810 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 12811 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
12812 (next_element_from_string): Check if the character at the current
12813 position is composed by CHAR_COMPOSED_P.
12814 (next_element_from_buffer): Likewise.
d66c0241
JB
12815 (next_element_from_composition): Adjust for the change of struct it.
12816 Update it->cmp_it.
b8ff72fa
SM
12817 (dump_glyph): Adjust for the change of struct glyph.
12818 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
12819 it and struct glyph. Don't handle automatic composition here.
12820 (fill_gstring_glyph_string): New function.
12821 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 12822 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
12823 (BUILD_GSTRING_GLYPH_STRING): New macro.
12824 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
12825 automatic composition.
b8ff72fa 12826 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 12827 struct glyph.
b8ff72fa 12828 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 12829
b8ff72fa 12830 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
12831 the change of struct glyph_string.
12832 (x_draw_glyph_string): Likewise.
12833
128342008-08-29 Glenn Morris <rgm@gnu.org>
12835
12836 * buffer.c (word-wrap): Doc fix.
12837 * xdisp.c (truncate-partial-width-windows): Doc fix.
12838 Increase default to 50.
12839
128402008-08-29 Chong Yidong <cyd@stupidchicken.com>
12841
12842 * xdisp.c (update_tool_bar_unwind): New function.
12843 (update_tool_bar): Temporarily set selected frame before building
12844 tool-bar items.
12845
128462008-08-28 Michael Albinus <michael.albinus@gmx.de>
12847
12848 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
12849 snprintf, respectively.
12850 (xd_append_arg): Convert strings with Fstring_make_unibyte.
12851
128522008-08-28 Chong Yidong <cyd@stupidchicken.com>
12853
12854 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
12855 LDFLAGS to GNUstep CC invocation.
12856
128572008-08-27 Chong Yidong <cyd@stupidchicken.com>
12858
12859 * indent.c (Fvertical_motion): Revert last change. Handle the
12860 general case where we are moving forward, and PT spans multiple
12861 screen lines.
12862
12863 * eval.c (find_handler_clause): Temporarily increase
12864 max-lisp-eval-depth while printing the backtrace buffer, to
12865 guarantee that help-mode code can run.
12866
128672008-08-27 Eli Zaretskii <eliz@gnu.org>
12868
12869 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
12870 colors under -rv.
12871 (IT_set_frame_parameters): Don't swap foreground and background
12872 colors if `(reverse . t)' is present in the frame properties.
12873 (internal_terminal_init): Call init_frame_faces only for the
12874 initial frame.
12875
128762008-08-27 Andreas Schwab <schwab@suse.de>
12877
12878 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
12879
128802008-08-27 Andreas Schwab <schwab@suse.de>
12881
12882 * search.c (search_buffer): Set char_base to zero only at the end.
12883
128842008-08-27 Kenichi Handa <handa@m17n.org>
12885
b8ff72fa 12886 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
12887
128882008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
12889
12890 * xterm.c (x_term_init): Temporarily hide the partially
12891 initialized terminal while calling vendor-specific-keysyms.
12892
128932008-08-26 Eli Zaretskii <eliz@gnu.org>
12894
12895 * msdos.c (internal_terminal_init): Most initializations done only
12896 once, especially initial_screen_colors[] and termscript open.
12897
128982008-08-26 Chong Yidong <cyd@stupidchicken.com>
12899
12900 * eval.c (Fcondition_case): Doc fix.
12901
12902 * widgetprv.h (EmacsFramePart): Change font member to the new font
12903 struct.
12904
12905 * widget.c: Include character.h and font.h for XSETFONT.
12906 (setup_frame_gcs): Compute X font id from font struct, just once.
12907
129082008-08-26 Eli Zaretskii <eliz@gnu.org>
12909
12910 * term.c (get_named_tty): Fix last change.
12911
129122008-08-26 Chong Yidong <cyd@stupidchicken.com>
12913
12914 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 12915 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
12916
129172008-08-25 Eli Zaretskii <eliz@gnu.org>
12918
12919 * frame.c (do_switch_frame): Mark previously displayed frame as
12920 obscured for FRAME_MSDOS_P frames as well.
12921
129222008-08-24 Eli Zaretskii <eliz@gnu.org>
12923
12924 * frame.c (make_terminal_frame): Initialize f->terminal,
12925 f->terminal->reference_count, and scroll bars on MS-DOS as well.
12926 Set the top frame to newly created frame.
12927 (Fmake_terminal_frame): Reuse the_only_display_info.
12928
12929 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
12930 estimating available memory.
12931
b97439ce 129322008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
12933
12934 * nsterm.m (ns_draw_window_cursor): Don't call
12935 NSDisableScreenUpdates and NSEnableScreenUpdates on
12936 non-NS_IMPL_COCOA systems.
12937
129382008-08-23 Andreas Schwab <schwab@suse.de>
12939
12940 * process.c (procfs_system_process_attributes): Fix use of
12941 uninitialized variables.
12942
129432008-08-23 Eli Zaretskii <eliz@gnu.org>
12944
12945 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
12946
12947 * dispnew.c (init_display): Remove MS-DOS specific conditions for
12948 calling tty-set-up-initial-frame-faces.
12949
b8ff72fa
SM
12950 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
12951 Allow MSDOS frames along with X frames.
aac0c6e3
MR
12952
12953 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
12954 addition to output_termcap.
12955
12956 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
12957
12958 * termchar.h (FRAME_TTY): Support output_msdos_raw.
12959 (struct tty_display_info) [MSDOS]: Add fields related to mouse
12960 highlight.
12961
12962 * process.c [!subprocesses]: Define QCname.
12963 (syms_of_process): Intern and staticpro it.
12964
12965 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
12966 Adjust for changes in encoding/decoding routines.
12967 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
12968 encode_coding and decode_coding.
12969
b8ff72fa 12970 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
12971
12972 * dosfns.c: Include frame.h before termhooks.h.
12973 (dos_cleanup): Use CURTTY ()->termscript instead of a global
12974 variable termscript.
12975
12976 * s/msdos.h (USER_FULL_NAME): Define.
12977 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
12978
12979 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
12980 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
12981 pw->pw_gecos.
12982
12983 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
12984 SELECTED_FRAME as additional (1st) argument.
12985 (tty_read_avail_input): Handle output_msdos_raw in
12986 addition to output_termcap.
12987
12988 * msdos.c: Include frame.h before termhooks.h.
12989 (mouse_on, mouse_off, mouse_moveto, mouse_init)
12990 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
12991 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
12992 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
12993 (IT_set_terminal_modes, IT_reset_terminal_modes)
12994 (IT_set_frame_parameters): Use tty->termscript instead of a global
12995 variable termscript.
12996 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
12997 global variable terminal_coding. Don't refer to
12998 Vnonascii_translation_table.
12999 (internal_terminal_init): Set Vwindow_system in current_kboard.
13000 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
13001 Announce date and time of session start, if termscript is open.
13002 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
13003 term.c:init_tty). Open termscript only of not already open.
13004 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
13005 here instead of dos_ttraw. Don't initialize display if this is an
13006 initial tty. Don't set FRAME_FONT.
13007 (Vwindow_system_version): Bump to 23.
13008 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
13009 is available, set up mouse_position_hook.
13010 (dos_ttraw, IT_set_terminal_modes): If called with initial
13011 terminal, do nothing.
13012 (IT_set_frame_parameters): Handle the Qtty_type frame
13013 parameter by calling internal_terminal_init.
13014 (dos_set_window_size, show_mouse_face)
13015 (clear_mouse_face, IT_note_mode_line_highlight)
13016 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
13017 (dos_rawgetc): Use tty_display_info instead of x_display_info.
13018 (initialize_msdos_display): New function.
13019 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
13020 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
13021 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
13022 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 13023 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
13024 (request_sigio, unrequest_sigio): Don't define, now defined on
13025 sysdep.c.
13026 (IT_write_glyphs): Rewrite to use encode_terminal_code.
13027
13028 * term.c [MSDOS]: Include msdos.h.
13029 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
13030 conditional to DOS_NT. Allow only one call to this function in a
13031 session. Don't allocate a new struct tty_display_info; instead,
13032 reuse the_only_display_info. Call get_tty_size to get screen
13033 dimensions. Call init_baud_rate to set bad_rate.
13034 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
13035 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 13036 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
13037 (get_tty_terminal, get_named_tty, Ftty_type)
13038 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
13039 output_termcap.
b8ff72fa
SM
13040 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
13041 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 13042 only when subprocesses are supported.
aac0c6e3
MR
13043
13044 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
13045 f->output_data.x.
13046 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
13047 terminal devices.
13048
5582fbc7 13049 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
13050 x_output.
13051 (FRAME_FONT): Use output_data.tty.
13052 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
13053 (struct x_display_info): Rename from display_info. Update all users in
13054 msdos.c.
aac0c6e3 13055 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 13056 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
13057 (dos_ttraw): Update prototype.
13058
13059 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
13060 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
13061
130622008-08-23 Jason Rumney <jasonr@gnu.org>
13063
13064 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
13065 (fn_TIFFSetDirectory): New library function used.
13066 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
13067 (tiff_load): Use :index to select among multiple images. Set count
13068 property when multiple images exist.
13069 (gif_format): Use :index, not :image.
13070
130712008-08-23 Chong Yidong <cyd@stupidchicken.com>
13072
13073 * xdisp.c (try_scrolling): Check INT_MAX instead of
13074 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
13075 to obtain INT_MAX.
13076
130772008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
13078
13079 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
13080
130812008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
13082
13083 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
13084 GNUstep library location.
13085
130862008-08-21 Chong Yidong <cyd@stupidchicken.com>
13087
13088 * xfaces.c (x_update_menu_appearance): Check validity of menu font
13089 before using it.
13090
13091 * puresize.h (BASE_PURESIZE): Increase to 1250000.
13092
130932008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13094
13095 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
13096 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
13097 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
13098 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
13099 (EmacsApp-cursor_blink_handler): Remove declaration.
13100 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
13101 match 01 Feb 2008 changes in xterm.c.
13102 (ns_read_socket): Add cast to avoid warning.
13103 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
13104 GNUstep.
13105
131062008-08-20 Chong Yidong <cyd@stupidchicken.com>
13107
13108 * xselect.c (x_get_foreign_selection): Return nil if desired
13109 selection could not be obtained, instead of signalling an error.
13110
131112008-08-20 David Reitter <david.reitter@gmail.com>
13112
13113 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
13114 * nsterm.m: Remove ns-specific code for cursor blinking.
13115 (ns_draw_window_cursor): Clear cursor properly rather than
13116 redrawing the area. Respect width of bar cursors.
13117 These changes enable the use of generic blink-cursor-mode and
13118 generic cursor types in NS and support smooth cursor movements (do
13119 not blink off after command).
13120 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
13121 Nextstep, too.
13122
131232008-08-19 Kenichi Handa <handa@m17n.org>
13124
13125 * font.c (Vfont_log_deferred): New variable.
13126 (font_add_log): Check Vfont_log_deferred.
13127 (font_deferred_log): New function.
13128
13129 * font.h (font_deferred_log): Extern it.
13130
13131 * fontset.c (reorder_font_vector): Use encoding charset of fonts
13132 for sorting.
13133 (face_for_char): Use deferred log.
13134
131352008-08-18 Kenichi Handa <handa@m17n.org>
13136
13137 * fontset.c (face_for_char): Add font log.
13138
13139 * font.c (font_add_log): Add the font properties :script, :lang,
13140 and :otf in the log.
13141
131422008-08-17 Chong Yidong <cyd@stupidchicken.com>
13143
13144 * xdisp.c: Remove dead code.
13145 (handle_invisible_prop, next_overlay_string): Defer call to
13146 setup_for_ellipsis.
13147 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
13148
131492008-08-15 Chong Yidong <cyd@stupidchicken.com>
13150
13151 * xfaces.c (lookup_derived_face): Properly handle possible zero
13152 return value of get_lface_attributes.
13153 (merge_faces): Don't tell lookup_derived_face to signal an error
13154 if face is not found.
13155
13156 * dired.c (Fdirectory_files): Doc fix.
13157
13158 * process.c (make_process): Initialize kill_without_query struct
13159 member.
13160
131612008-08-15 Eli Zaretskii <eliz@gnu.org>
13162
13163 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
13164 Alternative calculation of totphys for Visual Studio 6.
13165
13166 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
13167
13168 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
13169 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
13170 All users changed.
13171 (stat): Only root directory passed to GetDriveType. Allow RAM
13172 disk as well as local fixed disk when w32-get-true-file-attributes
13173 is set to `local'.
13174 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
13175 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
13176 (w32_cached_id, w32_add_to_cache): New functions.
13177 (get_name_and_id): Look account names in the cache before calling
13178 lookup_account_sid.
13179 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
13180 New initialization flags.
13181 (globals_of_w32): Initialize them to zero.
13182 (w32_system_process_attributes): Use w32_cached_id and
13183 w32_add_to_cache.
13184
131852008-08-14 Lawrence Mitchell <wence@gmx.li>
13186
13187 * lread.c (Fread_char, Fread_char_exclusive): If no character
13188 event is read before timeout is reached, return nil, rather than
13189 converting to a number.
13190
131912008-08-14 Chong Yidong <cyd@stupidchicken.com>
13192
13193 * fns.c (use_dialog_box): Doc fix.
13194
13195 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
13196 on OS X.
13197
131982008-08-13 Chong Yidong <cyd@stupidchicken.com>
13199
13200 * frame.c (Qns_parse_geometry): New var.
13201 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
13202
132032008-08-11 Chong Yidong <cyd@stupidchicken.com>
13204
13205 * xdisp.c (x_produce_glyphs): Handle the case when font has no
13206 space character in calculating tabs.
13207
132082008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
13209
13210 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
13211
132122008-08-10 Glenn Morris <rgm@gnu.org>
13213
13214 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
13215 silence gcc "limited range of data type" warnings in some
13216 make_fixnum_or_float calls.
13217
132182008-08-09 Eli Zaretskii <eliz@gnu.org>
13219
13220 * w32.c (w32_system_process_attributes): If the process does not
13221 exist, return nil.
13222
13223 * w32.c: Include thelp32.h, psapi.h and coding.h.
13224 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
13225 declarations.
13226 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
13227 (Process32Next_Proc): New typedefs.
13228 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
13229 (g_b_init_process32_next, g_b_init_open_thread_token)
13230 (g_b_init_impersonate_self, g_b_init_revert_to_self)
13231 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
13232 (g_b_init_get_process_working_set_size)
13233 (g_b_init_global_memory_status_ex): New static variables.
13234 (globals_of_w32): Initialize them.
13235 (create_toolhelp32_snapshot, process32_first, process32_next)
13236 (open_thread_token, impersonate_self, revert_to_self)
13237 (get_process_memory_info, get_process_working_set_size)
13238 (global_memory_status, global_memory_status_ex): New wrapper
13239 functions.
13240 (w32_list_system_processes, w32_system_process_attributes)
13241 (enable_privilege, restore_privilege, ltime, process_times):
13242 New functions.
13243 (convert_time_raw): New function.
13244 (convert_time): Remove conversion of FILETIME into time in 100
13245 nsec units, call convert_time_raw instead.
13246
13247 * process.h (w32_list_system_processes, w32_system_process_attributes):
13248 Add prototypes.
13249 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
13250 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
13251 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
13252 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
13253
13254 * process.c (Fsystem_process_attributes): Doc fix.
13255
132562008-08-08 Chong Yidong <cyd@stupidchicken.com>
13257
13258 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
13259 a continued multi-char glyph; if so, advance to the actual glyph.
13260
132612008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
13262
13263 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
13264
13265 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
13266 (.m.o): Use it.
13267 * config.in: Regenerate.
13268
132692008-08-07 Chong Yidong <cyd@stupidchicken.com>
13270
13271 * xdisp.c (redisplay_window): Revert last change.
13272 (try_window): Check bottom scroll margin too.
13273
132742008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13275
13276 * config.in: Regenerate.
13277
13278 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
13279 -list-load-path-shadows'.
13280 (nsgui.h): Reduce number of things depending on it.
13281
132822008-08-06 Chong Yidong <cyd@stupidchicken.com>
13283
13284 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
13285 instead of window-end which does the wrong thing at eob.
13286 (try_cursor_movement): Minor optimization.
13287 (redisplay_window): If scroll margin is defined, don't assume
13288 window doesn't need scrolling.
13289
132902008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13291
13292 * config.in: Regenerate.
13293
13294 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
13295 (mostlyclean): Don't delete *.d under NS.
13296
13297 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
13298
132992008-08-06 Kenichi Handa <handa@m17n.org>
13300
13301 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
13302
133032008-08-06 Andreas Schwab <schwab@suse.de>
13304
13305 * config.in: Regenerate.
13306
133072008-08-05 Chong Yidong <cyd@stupidchicken.com>
13308
13309 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
13310 forcing a window start.
13311
13312 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
13313 (auto_save_1): Update modtime when auto-save-list-file-name is on.
13314
133152008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13316
13317 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
13318 argument.
13319
133202008-08-05 Juanma Barranquero <lekktu@gmail.com>
13321
13322 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
13323 <scroll-down-aggressively, before-change-functions>:
13324 <after-change-functions>: Reflow docstrings.
13325
133262008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 13327 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
13328
13329 Dock menu customization, based on a patch by Ken Raeburn, plus some
13330 other fixes.
13331 * nsmenu.m (dockMenu): New variable.
13332 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
13333
13334 * nsterm.h (dockMenu): Declare.
13335
13336 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
13337 (ns_term_init): Initialize dockMenu.
13338 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
13339 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
13340 left.
13341
13342 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
13343
133442008-08-04 Chong Yidong <cyd@stupidchicken.com>
13345
13346 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
13347
13348 * config.in: Regenerate.
13349
133502008-08-04 Seiji Zenitani <zenitani@mac.com>
13351
13352 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
13353
133542008-08-04 Chong Yidong <cyd@stupidchicken.com>
13355
13356 * nsterm.h (find_and_call_menu_selection): Fix prototype.
13357
133582008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13359
13360 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
13361
13362 * keyboard.h: Comment an #endif.
13363
13364 * lisp.h (have_menus_p): Adjust comment.
13365
13366 * menu.c (find_and_return_menu_selection): Fix comparison with
13367 client_data.
13368
13369 * nsmenu.m (popup_activated_flag): New variable.
13370 (popup_activated): New function.
13371 (menu-or-popup-active-p): New exported lisp definition.
13372 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
13373 when popup done.
13374 (ns_popup_dialog): Set popup_activated_flag.
13375
13376 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
13377 version for GNUstep (handled by conditional typedef in nsterm.m).
13378 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
13379 in rgb.txt).
13380
13381 * process.c (init_process): Use DARWIN_OS, not DARWIN.
13382
13383 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
13384
13385 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
13386
13387 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
13388 shortcircuit if popup_activated like GTK and X toolkit.
13389
13390 * m/inter386.h: Change DARWIN to DARWIN_OS.
13391
13392 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
13393 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
13394 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
13395 comment on NO_SOCK_SIGIO.
13396
133972008-08-03 Chong Yidong <cyd@stupidchicken.com>
13398
13399 * nsterm.m (windowDidResize): Remove stopModal call.
13400
134012008-08-03 Andreas Schwab <schwab@suse.de>
13402
13403 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
13404 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
13405
134062008-08-02 Chong Yidong <cyd@stupidchicken.com>
13407
13408 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
13409 Don't use uninitialized pointer variable when using getrlimit.
13410
134112008-08-02 Jason Rumney <jasonr@gnu.org>
13412
13413 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
13414
134152008-08-02 Eli Zaretskii <eliz@gnu.org>
13416
13417 * alloc.c (NSTATICS): Bump to 0x640.
13418
13419 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
13420
13421 * lisp.h: Add prototype for directory_files_internal.
13422
13423 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
13424 New functions.
13425 (syms_of_process): Defsubr them. Add initializations for various
13426 Q* symbols used in procfs_system_process_attributes.
13427 (procfs_list_system_processes, procfs_system_process_attributes)
13428 [HAVE_PROCFS]: New functions.
13429 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
13430 (procfs_get_total_memory): New functions.
13431
134322008-08-01 Juanma Barranquero <lekktu@gmail.com>
13433
13434 * xfaces.c (Fx_load_color_file): Fix previous change;
13435 it is #ifdef WINDOWSNT, not WINDOWS_NT.
13436
134372008-08-01 Michael Albinus <michael.albinus@gmx.de>
13438
13439 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
13440
134412008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13442
13443 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
13444
134452008-08-01 Chong Yidong <cyd@stupidchicken.com>
13446
13447 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
13448
13449 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
13450 define NSApplicationDelegateReplySuccess.
13451 (EmacsView -converstationIdentifier): Use long instead of
13452 NSInteger for GNUstep, since it doesn't have NSInteger.
13453
13454 * xmenu.c: Revert last change.
13455
13456 * keyboard.h: Fix last change.
13457
134582008-08-01 Juanma Barranquero <lekktu@gmail.com>
13459
13460 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
13461 on Windows.
13462
134632008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13464
13465 Warning clearing and clean-up in NS port.
13466 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
13467 Add prototypes.
13468 * nsgui.h (FACE_DEFAULT): Remove, unused.
13469 (XGCValues): Change colors to unsigned long.
13470 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
13471 nsterm.m.
13472 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
13473 (ns_list_fonts): Remove, unused.
13474 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
13475 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
13476 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
13477 (nsfont_draw): Compare face colors to 0, not nil.
13478 * nsmenu.m (struct widget_value): Drop unneeded declaration.
13479 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
13480 (-addSubmenuWithTitle:): Use NSMenuItem class.
13481 (ns_popup_menu): Use NO, not NULL, for enabled setting.
13482 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
13483 (ns_clip_to_row): Make gc arg a BOOL.
13484 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
13485 ns_clip_to_row() call.
13486 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
13487 used). Cast FRAME_FONT assignments.
13488 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
13489 (ns_string_to_lispmod): Change arg to const char.
13490 (ns_term_init): Use NSMenuItem class.
13491 (EmacsApp -openFile:): Move to different section of file.
13492 (EmacsApp -application:openFiles:): Don't return a value, call
13493 -replyToOpenOrPrint:.
13494 (EmacsView -keyDown:): Fix up cast.
13495 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
13496 (EmacsView -menuDown:): Cast tag in call to
13497 find_and_call_menu_selection().
13498 (ns_list_fonts): Remove, unused.
13499 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
13500 (ns_fontname_to_xlfd): Make static.
13501 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
13502 Remove prototypes (now in keyboard.h).
13503 (next_menubar_widget_id): Remove, unused.
13504 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
13505 Remove prototypes (now in keyboard.h).
13506 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
13507
135082008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
13509
13510 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
13511 (floatfns.o): Depend on syssignal.h.
13512 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
13513
13514 * systty.h: Fix previous change that removed BSD_TERMIOS.
13515 Add comments to #ifdefs.
13516
135172008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13518
13519 * w32fns.c (w32-load-color-file): Remove.
13520 (x-open-connection): Use renamed Fx_load_color_file.
13521 * xfaces.c (x-load-color-file): Add.
13522 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
13523 Emacs.clr.
13524 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
13525
135262008-07-31 Michael Albinus <michael.albinus@gmx.de>
13527
13528 * dbusbind.c (Fdbus_call_method_asynchronously)
13529 (Fdbus_method_error_internal): New defuns.
13530 (xd_read_message): Handle also reply messages.
13531 (Vdbus_registered_functions_table): Extend docstring.
13532
135332008-07-31 Juanma Barranquero <lekktu@gmail.com>
13534
13535 * keyboard.c (gobble_input): Fix previous change.
13536
135372008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13538
13539 * bitmaps/README:
13540 * xfns.c:
13541 * termcap.c:
13542 * term.c:
13543 * syswait.h:
13544 * systty.h:
13545 * systime.h:
13546 * syssignal.h:
13547 * sysdep.c:
13548 * process.h:
13549 * process.c:
13550 * print.c:
13551 * ndir.h:
13552 * lread.c:
13553 * keyboard.c:
13554 * getpagesize.h:
13555 * floatfns.c:
13556 * fileio.c:
13557 * emacs.c:
13558 * doc.c:
13559 * dispnew.c:
13560 * dired.c:
13561 * data.c:
13562 * callproc.c:
13563 * buffer.c:
13564 * README:
13565 * Makefile.in:
13566 * s/template.h:
13567 * s/msdos.h:
13568 * m/vax.h: Remove VMS support.
13569 * s/vms.h:
13570 * vlimit.h:
13571 * uaf.h:
13572 * temacs.opt:
13573 * param.h:
13574 * ioctl.h: Remove file.
13575
135762008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13577
13578 * s/ms-w32.h (MULTI_KBOARD): Remove.
13579 * xterm.c:
13580 * xselect.c:
13581 * xfns.c:
13582 * window.c:
13583 * w32term.c:
13584 * w32fns.c:
13585 * terminal.c:
13586 * termhooks.h:
13587 * term.c:
13588 * sysdep.c:
13589 * keyboard.h:
13590 * keyboard.c:
13591 * frame.h:
13592 * frame.c:
13593 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
13594 * config.in: Regenerate.
13595
135962008-07-30 Jason Rumney <jasonr@gnu.org>
13597
13598 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
13599
13600 * w32font.c (w32font_encode_char): Leave as unicode if in range.
13601 (w32font_open_internal): Get unicode version of textmetrics.
13602 Don't enable or disable glyph indices here.
13603 (w32font_open): Disable use of glyph indices.
13604
13605 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
13606
136072008-07-30 Chong Yidong <cyd@stupidchicken.com>
13608
13609 * minibuf.c (Vread_buffer_function): Doc fix.
13610
136112008-07-30 John Paul Wallington <jpw@pobox.com>
13612
13613 * minibuf.c (read_buffer_completion_ignore_case): New var.
13614 (Fread_buffer): Use it.
13615
136162008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
13617
13618 * systty.h (sensemode): Remove empty #if. Remove reference to
13619 BSD_TERMIOS, unused.
13620
13621 * sysdep.c: Remove reference to DGUX.
13622 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
13623
13624 * config.in: Regenerate.
13625
136262008-07-30 Jason Rumney <jasonr@gnu.org>
13627
13628 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
13629
136302008-07-29 Jason Rumney <jasonr@gnu.org>
13631
13632 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
13633 is populated.
13634 (uniscribe_encode_char): Always use uniscribe.
13635 Avoid using context if cache is populated.
13636
136372008-07-29 Jan Djärv <jan.h.d@swipnet.se>
13638
13639 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
13640 open menu.
13641
13642 * gtkutil.c (menu_nav_ended): Remove.
13643 (create_menus): Remove signal connect for menu_nav_ended.
13644
136452008-07-28 Chong Yidong <cyd@stupidchicken.com>
13646
13647 * xdisp.c (redisplay_window): Check return value of
13648 compute_window_start_on_continuation_line before forcing a window
13649 start.
13650
136512008-07-28 Jason Rumney <jasonr@gnu.org>
13652
13653 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
13654
13655 * w32term.c (w32_enable_unicode_output, cleartype_active):
13656 Remove obsolete display options.
13657 (x_draw_glyph_string_background): Don't use old cleartype_active
13658 workaround.
13659 (w32_initialize): Remove cleartype_active initialization.
13660 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
13661
136622008-07-28 Andreas Schwab <schwab@suse.de>
13663
13664 * lisp.h (init_weak_hash_tables, syms_of_font)
13665 (xd_read_queued_messages, syms_of_dbusbind): Declare.
13666 (remove_hash_entry): Don't declare.
13667 * eval.c (maybe_call_debugger): Make static and move before use.
13668 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
13669 * xdisp.c: Include "gtkutil.h" if USE_GTK.
13670 * xterm.h (x_set_frame_alpha): Declare.
13671
136722008-07-28 Jan Djärv <jan.h.d@swipnet.se>
13673
13674 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
13675 (create_menus): Connect selection-done to menu_nav_ended.
13676
136772008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13678
13679 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
13680 Set Vx_resource_name to a fallback. Replace read of 'buffered'
13681 parameter with read of 'alpha' one.
13682 (Qns_frame_parameter): Remove.
5582fbc7 13683 * nsselect.m (selection-coding-system)
aac0c6e3
MR
13684 (next-selection-coding-system, Vselection_coding_system)
13685 (Vnext_selection_coding_system): Drop.
13686
136872008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13688
13689 * nsfns.m (do-applescript, do_applescript): Rename to
13690 ns-do-applescript, ns_do_applescript, and move within file.
13691
136922008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
13693
13694 Remove support for Mac Carbon.
13695 * mactoolbox.c:
13696 * macterm.h:
13697 * macterm.c:
13698 * macselect.c:
13699 * macmenu.c:
13700 * macgui.h:
13701 * macfns.c:
13702 * mac.c: Remove file.
13703 * s/darwin.h:
13704 * m/intel386.h:
13705 * xfaces.c:
13706 * xdisp.c:
13707 * window.c:
13708 * tparam.c:
13709 * termhooks.h:
13710 * termcap.c:
13711 * term.c:
13712 * syssignal.h:
13713 * sysselect.h:
13714 * sysdep.c:
13715 * process.c:
13716 * lread.c:
13717 * lisp.h:
13718 * keyboard.c:
13719 * image.c:
13720 * fringe.c:
13721 * frame.h:
13722 * frame.c:
13723 * fontset.c:
13724 * font.h:
13725 * font.c:
13726 * fns.c:
13727 * fileio.c:
13728 * emacs.c:
13729 * dispnew.c:
13730 * dispextern.h:
13731 * config.in:
13732 * atimer.c:
2ae37cf0 13733 * Makefile.in: Remove code for Carbon.
aac0c6e3 13734
f0131492 137352008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
13736
13737 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
13738
137392008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13740
13741 * macterm.h (kCGBitmapByteOrder32Host): New define for
13742 non-universal SDKs.
13743
13744 * image.c (mac_create_cg_image_from_image, image_load_image_io)
13745 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13746
13747 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
13748 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13749
137502008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
13751
13752 * w32inevt.c: Include dispextern.h.
13753
137542008-07-26 Andreas Schwab <schwab@suse.de>
13755
13756 * print.c (print_object): Fix off-by-one in last change.
13757
137582008-07-25 Juanma Barranquero <lekktu@gmail.com>
13759
13760 * term.c (syms_of_term): Don't initialize default_orig_pair,
13761 default_set_foreground and default_set_background on Windows.
13762
137632008-07-25 Jason Rumney <jasonr@gnu.org>
13764
13765 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
13766 ScriptItemize. Clean up return value checking. Remove unused
13767 variables.
13768 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
13769 shaping engine.
13770
13771 * w32font.c (w32font_has_char): Handle the case where we can't
13772 determine the script for a character.
13773
137742008-07-25 Chong Yidong <cyd@stupidchicken.com>
13775
13776 * term.c (syms_of_term): Initialize default_orig_pair,
13777 default_set_foreground, and default_set_background.
13778
13779 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
13780 clash (bug#86).
13781 (getloadavg): Callers changed.
13782
13783 * image.c (svg_load_image): Fix last change.
13784 (svg_load_image): Use rsvg_handle_get_dimensions to check that
13785 image size is valid. Use g_object_unref instead of deprecated
13786 rsvg_handle_free to free rsvg handle.
13787 (x_from_xcolors): Don't initialize pixmap (silence compiler).
13788
137892008-07-25 Jason Rumney <jasonr@gnu.org>
13790
13791 * w32font.c (w32font_encode_char): Encode characters outside BMP as
13792 surrogates before looking up glyph index.
13793 (w32font_text_extents): Encode as surrogates if falling back to
13794 functions that need UTF-16 wide chars.
13795
13796 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
13797 BMP as surrogates before looking up glyph index.
13798
137992008-07-25 Chong Yidong <cyd@stupidchicken.com>
13800
13801 * image.c (svg_load_image): Check for failure in return value of
13802 rsvg_handle_get_pixbuf. Free rsvg handle when done.
13803
138042008-07-25 Jason Rumney <jasonr@gnu.org>
13805
13806 * w32font.c (Fx_select_font): Reverse sense of second arg.
13807
138082008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
13809
13810 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
13811 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
13812
13813 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
13814 (PURESIZE): Use it.
13815
138162008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
13817
13818 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
13819 * m/alpha.h (TEXT_END):
13820 * m/ibmrs6000.h (TEXT_END):
13821 * m/macppc.h (TEXT_END):
13822 * s/darwin.h (TEXT_END):
13823 * s/msdos.h (TEXT_END): Remove, unused.
13824 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
13825 * s/cygwin.h: Remove comment.
13826
13827 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
13828 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
13829 * m/intel386.h (DOT_GLOBAL_START):
13830 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
13831 (USG): Remove, file not used on USG platforms.
13832
13833 * Makefile.in (HAVE_X11): Remove empty #else.
13834
138352008-07-24 Andreas Schwab <schwab@suse.de>
13836
13837 * fileio.c (Finsert_file_contents): Properly adjust undo list
13838 after format conversion.
13839
138402008-07-24 Jan Djärv <jan.h.d@swipnet.se>
13841
13842 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
13843 (menu_nav_ended): Remove.
13844 (create_menus): Remove signal connect for menu_nav_ended.
13845 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
13846 create_menus.
13847 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
13848
138492008-07-23 Jason Rumney <jasonr@gnu.org>
13850
13851 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
13852 with opened font.
13853 (w32font_open): Set font type to gdi.
13854
13855 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
13856
138572008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
13858
13859 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
13860 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
13861 defines it.
13862 * unexec.c (ADDR_CORRECT): Define unconditionally.
13863
13864 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
13865
13866 * unexec.c: Remove code depending on !COFF and USG, the file is
13867 not used for such systems.
13868
13869 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
13870 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
13871 (LD_SWITCH_SYSTEM_1): Remove, update users.
13872
13873 * s/darwin.h (DATA_END):
13874 * m/intel386.h (DATA_END):
13875 * m/ibmrs6000.h (DATA_END):
13876 * m/alpha.h (DATA_END): Remove, unused.
13877
13878 * config.in: Regenerate.
13879 * s/ms-w32.h (subprocesses): Define unconditionally.
13880 * s/template.h (subprocesses): Update comment.
13881 * s/vms.h (subprocesses):
13882 * s/usg5-4.h (subprocesses):
13883 * s/hpux10-20.h (subprocesses):
13884 * s/gnu-linux.h (subprocesses):
13885 * s/cygwin.h (subprocesses):
13886 * s/bsd-common.h (subprocesses):
13887 * s/aix4-2.h (subprocesses):
13888 * s/darwin.h (subprocesses): Do not define, defined by default now.
13889
13890 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
13891 Remove all references.
13892 (temacs): Add GNUstep specific ld flags.
13893
13894 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
13895 similarly to what X does.
13896
138972008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13898
13899 * nsfns.m (x-list-fonts): Remove.
13900 (syms_of_nsfns): Drop the x-list-fonts declaration.
13901 * nsterm.m: Get rid of remaining "//" comments.
13902
139032008-07-22 Chong Yidong <cyd@stupidchicken.com>
13904
13905 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
13906
13907 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
13908 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
13909 (Fns_own_selection_internal, Fx_disown_selection_internal)
13910 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
13911
13912 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
13913 ... */' style of docstrings. Doc fixes.
13914
139152008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13916
13917 * terminfo.c (UP, BC, PC): Undo previous change.
13918
13919 * nsfns.m: Rename ns prefixed functions/variables to the
13920 corresponding x versions. Update references.
13921
139222008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
13923
13924 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
13925
139262008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13927
13928 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
13929 Remove forwarding functions.
13930 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
13931 non-static.
13932 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
13933 non-static.
13934 (ns_frame_parm_handlers): Use the new names.
13935 (syms_of_nsfns): Move to the end of file.
13936
13937 * nsterm.m (syms_of_nsterm): Move to the end of file.
13938
13939 * dispnew.c (init_display): Remove code for X10.
13940
139412008-07-22 Jason Rumney <jasonr@gnu.org>
13942
13943 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
13944 bare drive.
13945
139462008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13947
13948 * nsterm.m (syms_of_nsterm): Remove debugging println.
13949
139502008-07-22 David Reitter <david.reitter@gmail.com>
13951
13952 * nsfns.m (do_applescript, F_do_applescript): NS version of the
13953 Carbon implementation of the same functionality: execute arbitrary
13954 AppleScript code.
13955
139562008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13957
13958 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
13959 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
13960 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
13961 (Fx_display_mm_height, Fx_display_mm_width)
13962 (Fx_display_backing_store, Fx_display_visual_class)
13963 (Fx_display_save_under, Fx_open_connection)
13964 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
13965 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
13966 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13967 (Fx_display_pixel_width, Fx_display_pixel_height)
13968 (Fx_display_usable_bounds, Fx_display_planes)
13969 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
13970 ... */' style of docstrings.
13971
139722008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
13973
13974 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
13975 on this platform.
13976 (mips):
13977 * m/iris4d.h (mips): Do not define.
13978 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
13979
13980 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
13981
13982 * image.c:
13983 * nsfns.m:
13984 * nsselect.m:
13985 * nsterm.h:
13986 * nsterm.m: Rename ns prefixed functions/variables to the
13987 corresponding x versions. Update references.
13988
13989 * m/ibms390x.h (NO_REMAP): Do not undefine.
13990
13991 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
13992
139932008-07-21 Chong Yidong <cyd@stupidchicken.com>
13994
13995 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
13996 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
13997 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
13998 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
13999 (Fns_display_mm_height, Fns_display_mm_width)
14000 (Fns_display_backing_store, Fns_display_visual_class)
14001 (Fns_display_save_under, Fns_open_connection)
14002 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
14003 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
14004 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
14005 (Fns_display_pixel_width, Fns_display_pixel_height)
14006 (Fns_display_usable_bounds, Fx_display_planes)
14007 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
14008
140092008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
14010
14011 * print.c (print_object): Check print_depth before searching for
14012 circularities.
14013
140142008-07-21 Michael Albinus <michael.albinus@gmx.de>
14015
14016 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
14017 only sprintf.
14018
140192008-07-21 Kenichi Handa <handa@m17n.org>
14020
14021 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
14022
140232008-07-20 Andreas Schwab <schwab@suse.de>
14024
14025 * syntax.c (find_start_pos, find_start_value)
14026 (find_start_value_byte, find_start_begv, find_defun_start)
14027 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
14028
140292008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
14030
14031 * s/sol2-3.h: Insert contents of s/sol2.h.
14032 (LD_SWITCH_SYSTEM): Remove redundant definition.
14033 * s/sol2.h: Remove, unused.
14034
140352008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14036
14037 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
14038
140392008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14040
14041 * Makefile.in (ns_appdir): Fix typo in find command.
14042
140432008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
14044
14045 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
14046
14047 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
14048 added not supported anymore.
14049
14050 * s/usg5-4-2.h (LIBS_SYSTEM):
14051 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
14052
14053 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14054 * s/lynxos.h (GETPGRP_NO_ARG):
14055 * s/hpux10-20.h (NO_SIOCTL_H):
14056 * s/gnu.h (GETPGRP_NO_ARG):
14057 * s/gnu-linux.h (NO_SIOCTL_H):
14058 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14059 * s/cygwin.h (GETPGRP_NO_ARG):
14060 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
14061 (C_DEBUG_SWITCH): Remove duplicate definition.
14062
14063 * m/ibms390.h: Remove boilerplate comments.
14064
14065 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
14066
14067 * process.c (HAVE_SERIAL): Consolidate ifdefs.
14068 (wait_reading_process_output): Remove code for SunOS, platform not
14069 supported anymore. Use SOLARIS2 instead of sun.
14070
140712008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14072
14073 * font.c (font_open_by_name): Under NS, default lface height to zero.
14074 (font_open_for_lface): Under NS, set size based on frame fontsize.
14075 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
14076 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
14077
140782008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14079
14080 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
14081 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
14082 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
14083 YES/NO.
14084 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
14085 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
14086 * Makefile.in (clean): Clear out build destination dir.
14087
140882008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14089
14090 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
14091 xterm, xselect.
14092 * lisp.h: Remove declaration of hash_remove.
14093 * nsgui.h: Remove redefinitions of hash_remove.
14094 * fns.c (hash_remove): Rename to hash_remove_from_table.
14095
140962008-07-19 Seiji Zenitani <zenitani@mac.com>
14097
14098 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
14099 strdup() the family UTF8String before modifying it.
14100
141012008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14102
14103 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
14104 NS_FACE_BACKGROUND with 0 instead of nil.
14105 * nsfont.m (nsfont_draw): Same.
14106
141072008-07-19 Chong Yidong <cyd@stupidchicken.com>
14108
14109 * nsfns.m (ns_set_background_color): Fix crash.
14110
141112008-07-18 Chong Yidong <cyd@stupidchicken.com>
14112
14113 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
14114
141152008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
14116
14117 * puresize.h (BASE_PURESIZE): Increase to 1240000.
14118
141192008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14120
14121 * gtkutil.c: Include <config.h> instead of "config.h".
14122
14123 * lisp.h (Foverlay_buffer): Add EXFUN.
14124
14125 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
14126 child process to complete child_setup. Undo 2005-09-21 change.
14127
14128 * s/darwin.h: Mention setsid after vfork.
14129
141302008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14131
14132 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
14133 Depend on macgui.h.
14134
14135 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
14136 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
14137
14138 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
14139 and f19.
14140 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
14141
14142 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
14143 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
14144 Remove enumerators.
14145
14146 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
14147 Check if FACE_FROM_ID returns NULL.
14148
141492008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
14150
14151 * w32inevt.c (change_frame_size): Remove extern declaration.
14152 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
14153 change_frame_size.
14154
141552008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
14156
14157 * getloadavg.c: Revert last change (2008-07-15).
14158
141592008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
14160
14161 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 14162 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
14163 from configure.
14164
141652008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
14166
14167 * s/sol2.h:
14168 * s/sol2-4.h: Reorganize conditionals.
14169
14170 * ecrt0.c: Remove code depending on m68000, not used anymore.
14171
14172 * fns.c (hash_remove): Make static.
14173 * lisp.h (hash_remove): Don't prototype.
14174
14175 * m/ibmrs6000.h:
14176 * m/ibms390x.h:
14177 * m/macppc.h: Remove boilerplate comments.
14178
14179 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
14180 Solaris, which does not need them.
14181
14182 * m/vax.h: Remove comments about unsupported systems.
14183
14184 * s/darwin.h: Reorganize ifdefs.
14185
141862008-07-17 Andreas Schwab <schwab@suse.de>
14187
14188 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
14189
141902008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
14191
14192 Use SDATA. Follow coding convention of placing operators at
14193 beginning of next line rather than end of previous line, and placing
14194 spaces around infix operators.
14195
14196 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
14197 in case it was defined already.
14198 USE @GNUSTEP_MAKEFILES@ rather than envvars.
14199 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
14200 ns_default.
14201 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
14202 Lisp_Objects.
14203 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
14204 (ns_defined_color, ns_color_to_lisp): Declare.
14205 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
14206 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
14207 it's accepted even with USE_LISP_UNION_TYPE.
14208 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
14209 (update_frame_tool_bar): Remove apparently obsolete tests for
14210 non-integerness of f->tool_bar_lines.
14211 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
14212 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
14213 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
14214 (nsfont_open): Don't confuse NULL for Qnil.
14215 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
14216 * menu.h (find_and_call_menu_selection):
14217 * menu.c (find_and_call_menu_selection): Use just int for vector size.
14218 (find_and_return_menu_selection): Always return something.
14219 * frame.h: Include dispextern.h for Display_Info.
14220 (display_x_get_resource): Declare.
14221
142222008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
14223
14224 * syntax.c: Remove stdio.h include accidentally introduced in
14225 Emacs.app commit.
14226 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
14227 NS_IMPL_COCOA.
14228 * keyboard.c (handle_async_input, input_available_signal): Remove
14229 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
14230
142312008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
14232
14233 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
14234 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
14235 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
14236 Use SDATA.
14237
14238 * keymap.c: Remove all NS-specific code.
14239 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
14240 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
14241 where_is_preferred_modifier, return a different value depending on how
14242 preferred is the binding.
14243 (where_is_internal): Adjust accordingly.
14244 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
14245 Adjust to new preferred_sequence_p.
14246 (syms_of_keymap): Declare `where-is-preferred-modifier'.
14247 * keyboard.c (parse_solitary_modifier): Not static any more.
14248 * keyboard.h (parse_solitary_modifier): Declare.
14249
142502008-07-16 Andreas Schwab <schwab@suse.de>
14251
14252 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
14253 of easymenu.
14254
142552008-07-16 Chong Yidong <cyd@stupidchicken.com>
14256
14257 * xdisp.c (move_it_in_display_line): Account for word wrap, so
14258 that we don't move off the line.
14259
142602008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
14261
14262 * keyboard.c (Qsuper): Remove.
14263 (parse_menu_item): Don't call where_is_internal specially for NS.
14264
142652008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
14266
14267 * s/gnu-linux.h: Remove boilerplate comments.
14268
14269 * m/alpha.h (__ELF__): Consolidate conditions.
14270
14271 * m/m68k.h (linux): Use GNU_LINUX instead.
14272 Remove boilerplate comments.
14273
14274 * m/intel386.h: Undo refactoring from previous change.
14275 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
14276 too, remove dead code.
14277 (linux): Use GNU_LINUX instead.
14278
142792008-07-16 Jason Rumney <jasonr@gnu.org>
14280
14281 * w32gui.h: Repeat 26 June changes lost by last change.
14282
142832008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
14284
14285 * systty.h: Remove code for Aix on 386, unsupported platform.
14286
14287 * s/ms-w32.h: Remove boilerplate comments.
14288 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
14289
14290 * s/gnu-linux.h (TERM): Remove support.
14291 (HAVE_SYSVIPC): Remove, unused.
14292 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
14293 for this system.
14294
14295 * process.c: Remove support for IRIS, unused.
14296 Remove support for TERM, not relevant anymore.
14297
14298 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
14299 used with the definition.
14300
14301 * s/aix4-2.h (static): Do not undef.
14302
14303 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
14304 only used on Aix.
14305 (HAVE_SYSVIPC): Remove, unused.
14306
14307 * m/hp800.h (CANNOT_DUMP): Do not undef.
14308
14309 * m/alpha.h: Fix comment.
14310
14311 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
14312 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
14313 used by this configuration.
14314 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
14315 * unexec.c: Remove code depending on HPUX and
14316 USG_SHARED_LIBRARIES, not used with this file. Remove code
14317 depending on IRIS, unused. Remove if 0-ed code.
14318
14319 * s/template.h: Remove comments about static.
14320
14321 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
14322 Remove if 0-ed code.
14323 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
14324 were the same as the default.
14325 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
14326 Remove boilerplate comments.
14327 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
14328 (HAVE_SYSVIPC): Remove, unused.
14329 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
14330
14331 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14332 Remove boilerplate comments.
14333 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14334 Remove boilerplate comments.
14335 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14336 Remove boilerplate comments.
14337 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
14338
14339 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
14340 USG systems which do not use DATA_SEG_BITS.
14341 Refactor code. Remove boilerplate comments.
14342
14343 * m/ibms390.h:
14344 * m/m68k.h:
14345 * s/bsd-common.h:
14346 * s/cygwin.h:
14347 * s/darwin.h:
14348 * s/freebsd.h:
14349 * s/gnu.h:
14350 * s/msdos.h: Remove boilerplate comments.
14351
14352 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 14353 do not use this file.
aac0c6e3
MR
14354 (IRIS_4D): Remove, unused.
14355
14356 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 14357 do not use this file.
aac0c6e3
MR
14358 (SIGN_EXTEND_CHAR):
14359 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
14360 * unexmips.c: Remove file, unused.
14361
14362 * editfns.c (Fuser_full_name): Replace the only use of
14363 USER_FULL_NAME with its value.
14364 * config.in: Regenerate.
14365
143662008-07-16 David Reitter <david.reitter@gmail.com>
14367
14368 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
14369 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
14370
143712008-07-16 Glenn Morris <rgm@gnu.org>
14372
14373 * emacs.c (system-type): Doc fix.
14374
143752008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
14376
14377 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
14378 If the cache doesn't work, let's fix it, rather than work around it.
14379
143802008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14381
14382 * Makefile.in: Correct additions for nsfont.o in last commit.
14383 * nsfont.m: New file (forgot last commit).
14384
143852008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
14386
14387 * callproc.c (set_initial_environment): Initialize
14388 Vprocess_environment under CANNOT_DUMP (fixes crash when
14389 batch-compiling for bootstrap).
14390
143912008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 14392 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 14393
c4cc8b9a
JB
14394 * frame.c (make_initial_frame): Call init_frame_faces(f) in
14395 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
14396
143972008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14398
14399 Changes and additions for NeXTstep windowing system (Cocoa and
14400 GNUstep) support.
14401
14402 * Makefile.in:
14403 * config.in: Support defines and build commands for NS port.
14404 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
14405 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
14406 * dispextern.h: Include nsgui.h and add needed typedefs under NS
14407 windowing.
14408 (struct face): Add synth_ital field.
14409 * dispnew.c: Include nsterm.h when compiling under NS windowing.
14410 (init_display): Initialize Vinitial_window_system to "ns" when so
14411 compiled.
14412 * emacs.c: Include GSConfig.h when compiling under GNUstep.
14413 (display_arg): Use under NS.
14414 (main): Under NS, allocate autorelease pool and handle command line
14415 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
14416 (standard_args): Add NS-specific args.
14417 (shut_down_emacs): Shut down NS terminal if compiled under NS.
14418 * font.c (DEFAULT_ENCODING): New variable.
14419 (font_find_for_lface): Use it.
14420 (syms_of_font): Load syms_of_nsfont under NS.
14421 * font.h: Declare nsfont_driver when compiled under NS.
14422 * fontset.c: When compiling under NS, include nsterm.h.
14423 (fontset_from_font): Autoconstruct fontset under NS.
14424 * frame.c (various): Under NS, include nsterm.h, add Qns window system
14425 symbol, document and use it.
14426 (do_switch_frame): When for_deletion under Cocoa, add
14427 Fraise_frame(Qnil).
14428 (x_set_frame_parameters): Ensure font attribute changes are picked up.
14429 (x_get_arg): Allow "yes" and "no" as boolean values.
14430 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
14431 Qright under Cocoa.
14432 (focus-follows-mouse): Default to 0 under NS.
14433 * frame.h (enum output_method): Add output_ns.
14434 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
14435 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
14436 (FRAME_WINDOW_P): NS-specific definition.
14437 * fringe.c (max_used_fringe_bitmap): Make public.
14438 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
14439 (getloadavg): Use NeXT code under descendant OS's.
14440 * image.c (includes and header section, x_create_bitmap_from_data)
14441 (x_create_bitmap_from_file, free_bitmap_record, image_background)
14442 (image_background_transparent, x_clear_image_1)
14443 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
14444 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
14445 (x_to_xcolors, x_from_xcolors, x_disable_image)
14446 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
14447 other GUIs, including XPM support using code originally written for
14448 Carbon GUI.
14449 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
14450 using NS API.
14451 (image_ascent): Use font metrics macros instead of direct struct field
14452 access.
14453 * keyboard.c (includes): Add nsterm.h when compiling under NS.
14454 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
14455 Also, handle NS as GTK for menu bar purposes.
14456 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
14457 toolkit where they differ.
14458 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
14459 use cachelist, still needed under NS.
14460 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
14461 (struct widget_value): Define it here for menu.c.
14462 * keymap.c (includes): Include modifier internals.
14463 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
14464 NS.
14465 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
14466 support for preferring sequences using certain modifiers, specified by
14467 the FIRSTONLY argument.
14468 * lisp.h (hash_remove): Rename to avoid name clash when compiling
14469 under NS GNUstep implementation.
14470 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
14471 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
14472 * menu.c: Include nsterm.h under NS.
14473 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
14474 (free_menubar_widget_tree_value, update_submenu_strings)
14475 (find_and_call_menu_selection): Treat NS as X and NT.
14476 (find_and_return_menu_selection): New function, used for popup menus.
14477 * nsgui.h:
14478 * nsterm.h:
14479 * nsfns.m:
14480 * nsimage.m:
14481 * nsmenu.m:
14482 * nsselect.m:
14483 * nsterm.m: New files.
14484 * process.c (wait_reading_process_output): Under NS, call ns_select()
14485 instead of plain select().
14486 * syntax.c (char_quoted): Under NS, avoid a crash when called near
14487 beginning of buffer.
14488 * sysselect.h (init_process): Rename when compiling under Cocoa to
14489 avoid name conflict.
14490 * termhooks.h (display_info): Add ns_display_info to union.
14491 * terminal.c (Fterminal_live_p): Add ns to terminal types.
14492 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
14493 COCOA environment.
14494 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
14495 unexec() signature. (Note, this will dump, but the resulting file
14496 crashes; unexosx is used instead; keeping around for reference and
14497 possible aid in getting dump working under GNUstep.)
14498 * w32gui.h (button_type, widget_value): Remove definitions (now in
14499 keyboard.h).
14500 * window.c: Include nsterm.h when compiling under NS.
14501 * xdisp.c (includes): Include nsterm.h when compiling under NS.
14502 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
14503 other GUI windowing systems.
14504 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
14505 GTK.
14506 (x_consider_frame_title): Under NS, set icon type and frame
14507 modified-state indicator; use ns_set_name_as_filename() when using
14508 formatted title.
14509 (update_window_cursor): Make public when compiling under NS.
14510 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
14511 (hourglass_atimer, Vhourglass_delay
14512 * xfaces.c (header section, init_frame_faces, clear_font_table)
14513 (defined_color, unload_color, x_face_list_fonts)
14514 (prepare_face_for_display): Add NS support parallel to other GUIs.
14515 Emulate GCs like other non-X GUIs.
14516 (split_font_name): Don't lowercase font name under NS.
14517 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
14518 under NS.
14519 * s/darwin.h: Add support for compilation under NS.
14520
145212008-07-15 Jason Rumney <jasonr@gnu.org>
14522
14523 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
14524 (w32_show_hourglass): Rename from show_hourglass.
14525 (w32_hide_hourglass): Rename from hide_hourglass.
14526 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
14527 (Vhourglass_delay): Declare extern.
14528 (hourglass_started): Remove.
14529
14530 * xdisp.c (Vhourglass_delay): Remove static.
14531 (hourglass_started, start_hourglass, cancel_hourglass):
14532 Don't include these versions on WINDOWSNT.
14533
145342008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14535
14536 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
14537 variables (formerly in xfns.c).
14538 (show_hourglass, hide_hourglass): New prototypes (same).
14539 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
14540 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
14541 in xfns.c).
14542 (syms_of_xdisp): Declare/initialize display-hourglass,
14543 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
14544 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
14545 formerly in xfns.c.
14546 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14547 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14548 (start_hourglass, cancel_hourglass): Remove.
14549 (show_hourglass, hide_hourglass): Remove prototypes and static
14550 modifiers.
14551 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
14552 hourglass_atimer, hourglass_shown_p declaration/initialization.
14553 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14554 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14555 (start_hourglass, cancel_hourglass): Remove.
14556 (show_hourglass, hide_hourglass): Remove prototypes and static
14557 modifiers.
14558 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
14559 hourglass_atimer, hourglass_shown_p declaration/initialization.
14560 * w32fns.c (display_hourglass_p, Vhourglass_delay)
14561 (DEFAULT_HOURGLASS_DELAY): Remove.
14562 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
14563 hourglass_shown_p declaration/initialization.
14564
145652008-07-14 Jason Rumney <jasonr@gnu.org>
14566
14567 * w32fns.c (w32_get_arg): Remove wrapper function.
14568 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
14569 directly.
14570 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
14571
145722008-07-14 Kenichi Handa <handa@m17n.org>
14573
14574 * xfont.c (xfont_open): Add workaround for X's bug.
14575
145762008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14577
14578 * fontset.c: Include <stdio.h> unconditionally.
14579
145802008-07-13 Michael Albinus <michael.albinus@gmx.de>
14581
14582 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
14583 for filtering.
14584
145852008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
14586
14587 * s/vms.h: Use __GNUC__ instead of _GNUC_.
14588
14589 * m/macppc.h:
14590 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
14591
c4cc8b9a 14592 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
14593 (SPECIAL_EMACS_INT):
14594 * m/ia64.h (SPECIAL_EMACS_INT):
14595 * m/amdx86-64.h (SPECIAL_EMACS_INT):
14596 * s/gnu.h (NLIST_STRUCT):
14597 * s/aix4-2.h (X11R5_INHIBIT_I18N):
14598 * s/gnu-linux.h (LINUX):
14599 * s/msdos.h (HAVE_FACES):
14600 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
14601
14602 * systty.h:
14603 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
14604 anymore.
14605
146062008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
14607
14608 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
14609 always defined as int.
14610
14611 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
14612 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
14613 * s/gnu-linux.h (HAVE_WAIT_HEADER):
14614 * s/freebsd.h (HAVE_WAIT_HEADER):
14615 * s/bsd-common.h (HAVE_UNION_WAIT):
14616 * s/aix4-2.h (HAVE_WAIT_HEADER):
14617 * m/mips.h (HAVE_UNION_WAIT):
14618 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
14619 (COFF, static): Do not define, they are undefined later in the file.
14620
14621 * process.c (update_status): Don't use a union.
14622 (status_convert):
14623 (sigchld_handler): Use int instead of WAITTYPE.
14624
146252008-07-12 Chong Yidong <cyd@stupidchicken.com>
14626
14627 * indent.c (Fvertical_motion): Restore hscroll before moving to
14628 goal column.
14629
146302008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14631
14632 * lisp.h: Remove left over code.
14633
146342008-07-11 Andreas Schwab <schwab@suse.de>
14635
14636 * lisp.h: Fix logic in last change.
14637
14638 * menu.h: New file.
14639 * menu.c: Include it.
14640 * xmenu.c: Likewise.
14641 * Makefile.in: Update dependencies.
14642
146432008-07-11 Kenichi Handa <handa@m17n.org>
14644
14645 * fontset.c (fontset_from_font): Cancel the previous change.
14646
146472008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14648
14649 * lisp.h:
14650 * w32heap.c:
14651 * emacs.c:
14652 * alloc.c: Replace all references of NO_UNION_TYPE with
14653 USE_LISP_UNION_TYPE.
14654
14655 * m/xtensa.h (NO_UNION_TYPE):
14656 * m/vax.h (NO_UNION_TYPE):
14657 * m/template.h (NO_UNION_TYPE):
14658 * m/sparc.h (NO_UNION_TYPE):
14659 * m/mips.h (NO_UNION_TYPE):
14660 * m/macppc.h (NO_UNION_TYPE):
14661 * m/m68k.h (NO_UNION_TYPE):
14662 * m/iris4d.h (NO_UNION_TYPE):
14663 * m/intel386.h (NO_UNION_TYPE):
14664 * m/ibms390x.h (NO_UNION_TYPE):
14665 * m/ibms390.h (NO_UNION_TYPE):
14666 * m/ibmrs6000.h (NO_UNION_TYPE):
14667 * m/ia64.h (NO_UNION_TYPE):
14668 * m/hp800.h (NO_UNION_TYPE):
14669 * m/arm.h (NO_UNION_TYPE):
14670 * m/amdx86-64.h (NO_UNION_TYPE):
14671 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
14672 defining it the same.
14673
146742008-07-10 Chong Yidong <cyd@stupidchicken.com>
14675
14676 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
14677
146782008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
14679
14680 * fileio.c:
50426a04 14681 * sysdep.c:
aac0c6e3
MR
14682 * systty.h:
14683 * m/ibmrs6000.h:
14684 * m/iris4d.h:
14685 * s/aix4-2.h:
14686 * s/freebsd.h:
14687 * s/gnu-linux.h:
14688 * s/hpux10-20.h:
14689 * s/hpux11.h:
14690 * s/netbsd.h:
14691 * s/sol2-3.h:
14692 * s/sol2-4.h:
14693 * s/sol2.h:
14694 * s/usg5-4.h:
14695 * s/vms.h: Remove references to unused variables.
14696
146972008-07-10 Andreas Schwab <schwab@suse.de>
14698
14699 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
14700 pattern before matching the generic family.
14701
147022008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
14703
14704 * unexec.c:
14705 * s/vms.h:
14706 * s/usg5-4-2.h:
14707 * s/sol2-5.h:
14708 * s/freebsd.h:
14709 * s/darwin.h: Remove dead code.
14710
14711 * m/template.h:
14712 * m/sparc.h:
14713 * m/mips.h:
14714 * m/m68k.h:
14715 * m/iris4d.h:
14716 * m/intel386.h:
14717 * m/ibms390x.h:
14718 * m/ibms390.h:
14719 * m/ia64.h:
14720 * m/hp800.h:
14721 * m/arm.h:
14722 * m/amdx86-64.h: Remove dead code and references to unused
14723 and compiler defined symbols.
14724
14725 * unexmips.c:
14726 * unexelf.c: Remove references to desupported systems.
14727
14728 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
14729
14730 * m/powermac.h: Remove boilerplate comments.
14731 (NO_REMAP): Remove unused definition.
14732
14733 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
14734 define them.
14735
147362008-07-10 Kenichi Handa <handa@m17n.org>
14737
14738 * xfont.c (xfont_open): Log the reason of failure.
14739
147402008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
14741
14742 * fontset.c (fontset_get_font_group):
14743 * font.c (font_check_otf): Specify argument types.
14744
147452008-07-09 Kenichi Handa <handa@m17n.org>
14746
14747 * coding.c (detect_coding_utf_8): Set detect_info->found only when
14748 non-ASCII char is found.
14749
14750 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
14751 (reorder_font_vector): Change the arg preferred_family to font.
14752 Prefer the spec matching with font.
14753 (fontset_get_font_group): New function.
14754 (fontset_find_font): Change the format of an element of a realized
14755 fontset. Use fontset_get_font_group.
14756 (fontset_font): Try the current fontset, the default fontset, the
14757 fallbacks of the current fontset, and the fallbacks of the default
14758 fontset in this order.
14759 (face_for_char): Delete the shortcut to use the current font.
14760 (fontset_from_font): Don't set fonts for Latin in the fontset.
14761
14762 * font.h (font_make_object, font_match_p): Adjust prototypes.
14763
14764 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
14765
14766 * font.c (font_make_object): New arg entity and pixelsize.
14767 (font_check_otf_features, font_check_otf): New functions.
14768 (font_match_p): Check :lang, :script, and :otf properties.
14769
14770 * xfont.c (xfont_open): Adjust it for the change of
14771 font_make_object.
14772 (xfont_text_extents): Fix initial setting of metrics.
14773
14774 * ftfont.c (struct ftfont_info): New member index, delete member
14775 fc_charset_idx. Make the member order compatible with struct
14776 xftfont_info.
14777 (fc_charset_table): Change charset names to registry names.
14778 (ftfont_pattern_entity): Delete the args registry and
14779 fc_charset_idx. Change the value of :font-entity property
14780 to (FONTNAME . INDEX). Always set :registry property to
14781 `iso10646-1'.
14782 (struct ftfont_cache_data): New struct.
14783 (ftfont_lookup_cache): New arg for_face.
14784 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
14785 (ftfont_driver): Set the member otf_capability.
14786 (ftfont_get_charset): Adjust it for the change of
14787 fc_charset_table.
14788 (OTF_TAG_SYM): New macro.
14789 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
14790 for the change of fc_charset_table.
14791 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
14792 ftfont_pattern_entity. Add FC_INDEX to objset.
14793 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
14794 and ftfont_pattern_entity.
14795 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
14796 font_make_object, struct ftfont_info.
14797 (ftfont_has_char): Use ftfont_get_fc_charset.
14798 (ftfont_otf_features, ftfont_otf_capability): New functions.
14799 (ftfont_shape): Use ftfont_get_otf.
14800 (ftfont_text_extents): Fix initial setting of metrics.
14801
14802 * xftfont.c (struct xftfont_info): New member ft_size. Make the
14803 member order compatible with struct ftfont_info.
14804 (xftfont_open): Add FC_CHARSET to the pattern. Set
14805 xftfont_info->ft_size. Don't unlock the face. Check BDF
14806 properties if appropriate.
14807 (xftfont_close): Unlock the face.
14808 (xftfont_anchor_point, xftfont_shape): Deleted.
14809 (syms_of_xftfont): Don't set members anchor_point and shape of
14810 xftfont_driver.
14811
14812 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
14813 font_make_object.
14814
14815 * w32font.c (w32font_open): Adjust it for the change of
14816 font_make_object.
14817 (w32font_open_internal): Don't set properties of font_object here.
14818
148192008-07-08 Chong Yidong <cyd@stupidchicken.com>
14820
14821 * macfns.c (x_create_tip_frame):
14822 * w32fns.c (x_create_tip_frame):
14823 * xfns.c (x_create_tip_frame): Pass parameter argument to
14824 face-set-after-frame-default.
14825
14826 * xfaces.c (Finternal_merge_in_global_face): Save merged
14827 attributes for the default face back into the face vector.
14828
148292008-07-08 Andreas Schwab <schwab@suse.de>
14830
14831 * fontset.h: Declare fontset_from_font. Don't declare
14832 new_fontset_from_font and fontset_from_font_name.
14833 * xterm.c: Include "fontset.h".
14834 * Makefile.in (xterm.o): Update dependencies.
14835
148362008-07-08 Glenn Morris <rgm@gnu.org>
14837
14838 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
14839 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
14840
148412008-07-07 Chong Yidong <cyd@stupidchicken.com>
14842
14843 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
14844 (x_set_frame_parameters): Don't bind it.
14845
148462008-07-07 Juanma Barranquero <lekktu@gmail.com>
14847
14848 * w32fns.c (map_w32_filename): Declare extern.
14849
148502008-07-07 Jason Rumney <jasonr@gnu.org>
14851
14852 * w32term.c (WS_EX_LAYERED): Define if not already.
14853
148542008-07-06 Chong Yidong <cyd@stupidchicken.com>
14855
14856 * xfaces.c (set_font_frame_param): Don't try to set the font
14857 parameter if it is still unspecified in the lface.
14858
148592008-07-05 Chong Yidong <cyd@stupidchicken.com>
14860
14861 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
14862 face if it didn't already exist.
14863
14864 * xdisp.c (try_window_id): Give up if word-wrapping is on.
14865
148662008-07-05 Andreas Schwab <schwab@suse.de>
14867
14868 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
14869
148702008-07-05 Chong Yidong <cyd@stupidchicken.com>
14871
14872 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
14873 word-wrapping.
14874 (IT_DISPLAYING_WHITESPACE): New macro.
14875 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
14876 when word-wrapping. Simplify word-wrapping logic. Use correct
14877 pixel positions when saving copies of the iterator.
14878 (display_line): Use proper wrap point if the last character on a
14879 line was preceded by whitespace.
14880
148812008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
14882
14883 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
14884
148852008-07-04 Kenichi Handa <handa@m17n.org>
14886
14887 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
14888
14889 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
14890
148912008-07-02 Jason Rumney <jasonr@gnu.org>
14892
14893 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 14894 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
14895
14896 * xdisp.c (next_element_from_display_vector): Move assignment out
14897 of if statement.
14898
148992008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
14900
14901 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
14902
14903 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
14904 (syms_of_fileio): Initialize and export them.
14905 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
14906
14907 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
14908 (Fsystem_move_file_to_trash): New function.
14909 (syms_of_w32fns): Export it to lisp.
14910
149112008-07-01 Jason Rumney <jasonr@gnu.org>
14912
14913 * w32font.c (w32font_text_extents): Don't count overhang as part
14914 of width.
14915
149162008-06-30 Miles Bader <miles@gnu.org>
14917
14918 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
14919 Add `avoid_cursor_p' field.
14920
14921 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
14922 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
14923 (append_glyph, append_composite_glyph, produce_image_glyph)
14924 (append_stretch_glyph): Initialize avoid_cursor_p.
14925 (get_it_property): Rename from `get_line_height_property'.
14926 (x_produce_glyphs): Use get_it_property.
14927 (handle_line_prefix, push_display_prop): New functions.
14928 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
14929 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
14930 New variables.
14931 (syms_of_xdisp): Initialize them.
14932
149332008-06-30 Kenichi Handa <handa@m17n.org>
14934
14935 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
14936 XftDefaultSubstitute (they are called in XftFontMatch).
14937 (xftfont_open): Fix args to ftfont_font_format.
14938
14939 * ftfont.c (fc_charset_table): New member lang.
14940 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 14941 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
14942 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
14943 (ftfont_open): Fix args to ftfont_font_format.
14944 (ftfont_font_format): New arg filename.
14945
149462008-06-30 Chong Yidong <cyd@stupidchicken.com>
14947
14948 * xfaces.c (Finternal_merge_in_global_face): If default face was
14949 modified, realize it again. Update the font face attribute.
14950
149512008-06-29 Jason Rumney <jasonr@gnu.org>
14952
14953 * w32term.c (x_set_frame_alpha): Fix logic.
14954
149552008-06-29 Kenichi Handa <handa@m17n.org>
14956
14957 * fontset.c (Finternal_char_font): Return font-object instead of
14958 font-name.
14959
14960 * composite.c (get_composition_id): Fix the width calculation for TAB.
14961
149622008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
14963
14964 * indent.c (Fvertical_motion): Properly handle float column arg.
14965
149662008-06-28 Jason Rumney <jasonr@gnu.org>
14967
14968 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
14969 (pfnSetLayeredWindowAttributes): New function pointer.
14970 (w32_initialize): Initialize it when supported.
14971 (x_set_frame_alpha): New function.
14972
14973 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
14974 (w32_frame_parm_handlers): Set alpha handler.
14975
14976 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
14977
149782008-06-27 Jason Rumney <jasonr@gnu.org>
14979
14980 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
14981 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
14982 (w32_to_x_charset, x_to_w32_charset)
14983 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14984 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14985 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14986 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14987 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14988 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14989 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
14990 (Qw32_charset_unicode): Remove.
14991 (syms_of_w32fns): Update for above changes.
14992
14993 * w32font.c (w32_to_x_charset, x_to_w32_charset)
14994 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14995 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14996 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14997 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14998 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14999 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
15000 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
15001 (syms_of_w32font): Update for above changes.
15002
150032008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
15004
15005 * s/usg5-4.h: Fix previous change: keep the correct branch of a
15006 removed #if.
15007 (USG_SHARED_LIBRARIES): Remove duplicate definition.
15008
150092008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 15010 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
15011
15012 * makefile.w32-in (LOCAL_FLAGS):
15013 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
15014
15015 * sysdep.c (_spawnlp, _getpid):
15016 Declare with explicit _cdecl instead of _CRTAPI1.
15017
15018 * editfns.c (Fget_internal_run_time):
15019 Check for WINDOWSNT with #ifdef, not #if.
15020
150212008-06-26 Jason Rumney <jasonr@gnu.org>
15022
15023 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
15024
15025 * w32term.c (x_draw_glyph_string_foreground)
15026 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
15027 Use FONT_HANDLE macro.
15028 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
15029
15030 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15031 (uniscribe_encode_char): Use FONT_HANDLE macro.
15032
15033 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
15034 (w32font_text_extents): Use precast w32_font.
15035 (w32font_close): Free cached metrics.
15036 (w32font_open_internal): Allocate space for name on stack.
15037
150382008-06-26 Chong Yidong <cyd@stupidchicken.com>
15039
15040 * xdisp.c (extend_face_to_end_of_line): Fix last change.
15041
150422008-06-26 Jason Rumney <jasonr@gnu.org>
15043
15044 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
15045 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
15046
150472008-06-26 Juanma Barranquero <lekktu@gmail.com>
15048
15049 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
15050
150512008-06-26 Jason Rumney <jasonr@gnu.org>
15052
15053 * w32bdf.c, w32bdf.h: Remove obsolete files.
15054
15055 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
15056
15057 * w32gui.h: Don't include w32bdf.h.
15058 (XCharStruct, enum w32_char_font_type, W32FontStruct):
15059 Remove obsolete font support.
15060
15061 * w32font.h (struct w32font_info): Remove compat_w32_font.
15062 Add hfont member.
15063 (FONT_COMPAT): Remove obsolete macro.
15064
15065 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
15066 (w32font_encode_char, w32font_text_extents): Use new hfont member.
15067 (w32font_open_internal): Remove compat code. Set new hfont member.
15068 (Fx_select_font): Use new hfont member.
15069
15070 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15071 (uniscribe_encode_char): Use new hfont member.
15072
15073 * w32term.c (x_draw_glyph_string_foreground)
15074 (x_draw_composite_glyph_string_foreground): Use new hfont member.
15075 (x_draw_glyph_string): Use metrics in w32font_info.
15076
150772008-06-26 Kenichi Handa <handa@m17n.org>
15078
15079 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
15080
150812008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
15082
15083 * unexnext.c:
15084 * m/ews4800.h:
15085 * m/hp9000s300.h:
15086 * m/ibm370aix.h:
15087 * m/mips-siemens.h:
15088 * m/ncr386.h:
15089 * m/next.h:
15090 * m/pmax.h:
15091 * m/powerpcle.h:
15092 * m/tandem-s2.h:
15093 * s/386bsd.h:
15094 * s/bsd386.h:
15095 * s/bsd4-1.h:
15096 * s/bsd4-2.h:
15097 * s/bsdos2-1.h:
15098 * s/bsdos2.h:
15099 * s/bsdos3.h:
15100 * s/bsdos4.h:
15101 * s/nextstep.h:
15102 * s/ultrix4-3.h:
15103 * s/usg5-0.h:
15104 * s/usg5-2-2.h:
15105 * s/usg5-2.h:
15106 * s/usg5-4-3.h:
15107 * s/ux4800.h:
15108 * s/uxpds.h:
15109 * s/uxpv.h: Remove support for obsolete systems.
15110 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 15111 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
15112 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
15113 Remove, insert contents in s/aix4-2.h.
15114 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
15115 * s/bsd4-3.h: Rename to ...
15116 * s/bsd-common.h: ... this.
15117 * data.c:
15118 * doc.c:
15119 * ecrt0.c:
15120 * emacs.c:
15121 * fileio.c:
15122 * floatfns.c:
15123 * keyboard.c:
15124 * mem-limits.h:
15125 * print.c:
15126 * process.c:
15127 * sysdep.c:
15128 * syssignal.h:
15129 * systty.h:
15130 * syswait.h:
15131 * term.c:
15132 * unexec.c:
15133 * unexelf.c:
15134 * unexhp9k800.c:
15135 * m/hp800.h:
15136 * m/ibmrs6000.h:
15137 * m/mips.h:
15138 * m/vax.h:
15139 * s/darwin.h:
15140 * s/freebsd.h:
15141 * s/gnu.h:
15142 * s/ms-w32.h:
15143 * s/msdos.h:
15144 * s/netbsd.h:
15145 * s/template.h: Remove references to obsolete variables.
15146
15147 * Makefile.in: Add dependencies for all unexec files.
15148 (admindir): Remove unused variable.
15149 (UNEXEC_SRC): Remove references.
15150
151512008-06-25 Chong Yidong <cyd@stupidchicken.com>
15152
15153 * xfns.c (x_default_font_parameter): If Xft is available, first
15154 try Monospace-12 for the default font.
15155
151562008-06-25 Jason Rumney <jasonr@gnu.org>
15157
15158 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
15159
151602008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
15161
15162 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
15163
15164 * buffer.c (syms_of_buffer): Remove default-word-wrap.
15165
151662008-06-25 Juanma Barranquero <lekktu@gmail.com>
15167
15168 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
15169 <scroll-conservatively>: Fix typo in docstring.
15170
15171 * xselect.c (Fx_send_client_event): Doc fix.
15172
151732008-06-25 Kenichi Handa <handa@m17n.org>
15174
15175 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
15176
15177 * font.c (font_parse_fcname): Remove unused variables.
15178 (font_sort_entites): Delete the arg SPEC. Caller changed.
15179 Fix for the case of ! best_only.
15180 (font_delete_unmatched): Check DPI and AVGWIDTH too.
15181
15182 * lisp.h (Fstring_to_unibyte): EXFUN it.
15183
15184 * character.h (str_to_unibyte): Extern it.
15185
15186 * character.c (str_to_unibyte): New function.
15187
15188 * fns.c (Fstring_to_unibyte): New function.
15189 (syms_of_fns): Defsubr it.
15190
151912008-06-24 Kenichi Handa <handa@m17n.org>
15192
15193 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
15194 DPI too.
15195 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
15196
151972008-06-24 Andreas Schwab <schwab@suse.de>
15198
15199 * Makefile.in (${lispsource}loaddefs.el): Rename from
15200 ../lisp/loaddefs.el.
15201 (bootstrap-clean): Do what distclean does but don't remove
15202 Makefile.
15203 (distclean): Depend on bootstrap-clean and remove Makefile.
15204
152052008-06-24 Chong Yidong <cyd@stupidchicken.com>
15206
15207 * buffer.h (struct buffer): New member word_wrap.
15208
15209 * buffer.c (syms_of_buffer): New variables default-word-wrap and
15210 word-wrap.
15211 (init_buffer_once): Initialize them.
15212
15213 * dispextern.h (struct it): Replace bool truncate_lines_p with a
15214 line_wrap enum possessing three possible values.
15215
15216 * termopts.h: Replace truncate_partial_width_windows with
15217 Vtruncate_partial_width_windows.
15218
15219 * dispnew.c (direct_output_for_insert): Avoid direct output when
15220 inserting a space with word wrap on.
15221
15222 * indent.c (compute_motion): Obey integer values of
15223 truncate-partial-width-windows.
15224
15225 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
15226 replacing truncate_partial_width_windows.
15227 (init_iterator): If Vtruncate_partial_width_windows is an integer,
15228 truncate only if the window width is below that integer.
15229 (start_display, resize_mini_window, produce_stretch_glyph)
15230 (display_string, move_it_in_display_line_to): Use line_wrap.
15231 (back_to_previous_visible_line_start, reseat_1): Reset
15232 string_from_display_prop_p.
15233 (display_line): Extend default face to end of line when wrapping.
15234
152352008-06-24 Kim F. Storm <storm@cua.dk>
15236
15237 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
15238 to wrap continued lines at word boundaries.
15239
152402008-06-24 Jason Rumney <jasonr@gnu.org>
15241
15242 * font.c (Ffont_face_attributes): Multiply pixel size before point
15243 conversion to avoid multiplying rounding error.
15244
152452008-06-23 Jason Rumney <jasonr@gnu.org>
15246
15247 * w32term.c (x_draw_glyph_string_background)
15248 (x_draw_glyph_string): Remove old bdf font code.
15249
15250 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
15251
152522008-06-22 Kenichi Handa <handa@m17n.org>
15253
15254 * font.c (font_find_for_lface): Try the adstyle specified in
15255 the property of LFACE_FONT of LFACE (if any).
15256
152572008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 15258 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
15259
15260 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
15261
152622008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
15263
15264 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
15265 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
15266 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
15267 (witness-emacs): Remove.
15268 (lisp, shortlisp): Move loaddefs.el earlier.
15269 (mostlyclean): Forget about witness-emacs.
15270
152712008-06-22 Glenn Morris <rgm@gnu.org>
15272
15273 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
15274 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
15275
152762008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
15277
15278 * Makefile.in (PRECOMP): Remove.
15279 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
15280 (witness-emacs): Run `compile-first'.
15281 (.el.elc): Use the new compile-onefile target.
15282
152832008-06-21 Kenichi Handa <handa@m17n.org>
15284
15285 * xftfont.c (xftfont_open): Handle QCembolden only when
15286 FC_EMBOLDEN is defined.
15287
152882008-06-21 Andreas Schwab <schwab@suse.de>
15289
15290 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
15291 (.el.elc): Likewise.
15292
152932008-06-21 Miles Bader <miles@gnu.org>
15294
15295 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
15296 build dir, not the lisp source dir.
15297
152982008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
15299
15300 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
15301 (bootstrapclean): Remove.
15302 (.el.elc): New rule.
15303 (PRECOMP): New var.
15304 (../lisp/subdirs.el): Remove.
15305 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
15306 (witness-emacs): New target.
15307 (mostlyclean): Remove witness-emacs as well.
15308 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
15309 Add witness-emacs dependency.
15310
153112008-06-20 Chong Yidong <cyd@stupidchicken.com>
15312
15313 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
15314 defined by the font.
15315
153162008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15317
15318 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
15319 (bootstrap-clean): New target that keeps TAGS around.
15320 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
15321 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
15322
153232008-06-20 Jason Rumney <jasonr@gnu.org>
15324
15325 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
15326 Remove obsolete font code.
15327
15328 * w32font.c (font_matches_spec): Use csb bitfield from font signature
15329 to determine language support.
15330
153312008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15332
15333 * sysdep.c (cfsetspeed): New fun extracted from the code.
15334 (cfmakeraw): Move before first use.
15335
153362008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
15337
15338 * sysdep.c (cfmakeraw): Provide fallback implementation.
15339 (serial_configure): Provide fallback implementation of cfsetspeed.
15340
153412008-06-20 Kenichi Handa <handa@m17n.org>
15342
15343 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
15344 the pattern.
15345
15346 * fontset.c (fontset_from_font): Copy font_spec before changing
15347 the elements.
15348
15349 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
15350
153512008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15352
15353 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
15354 for explicit `font' parameters.
15355
15356 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
15357
153582008-06-19 Kenichi Handa <handa@m17n.org>
15359
15360 * frame.c: Include <ctype.h>.
15361 (x_set_font_backend): Allow spacing characters in the X resource
15362 for FontBackend.
15363
153642008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
15365
15366 * w32fns.c, xfns.c (Qfont_param): New var.
15367 (syms_of_w32fns): Initialize it.
15368 (x_default_font_parameter): Record explicit `font' into
15369 `font-parameter'.
15370
153712008-06-18 Kenichi Handa <handa@m17n.org>
15372
15373 * font.c (font_parse_xlfd): Fix previous change.
15374 (font_parse_fcname): Don't use :fc-unknown-spec.
15375 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
15376 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
15377 (font_add_log): Prepend the driver name to the resulting fonts.
15378
15379 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
15380 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
15381 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
15382
15383 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
15384 (QCembolden): New variables.
15385 (syms_of_xftfont): DEFSYM them.
15386 (xftfont_open): Call XftFontMatch. Don't trust the result of
15387 XftTextExtents8 if the pixel_size is less than 5.
15388
153892008-06-18 Andreas Schwab <schwab@suse.de>
15390
15391 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
15392 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
15393
153942008-06-18 Jason Rumney <jasonr@gnu.org>
15395
15396 * w32font.c (w32font_list, w32font_match): Add logging.
15397
15398 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
15399
154002008-06-17 Chong Yidong <cyd@stupidchicken.com>
15401
15402 * font.c (font_parse_fcname): Store divider characters for
15403 unknown-spec list. For known key symbols, intern using correct
15404 symbol name.
15405
154062008-06-17 Kenichi Handa <handa@m17n.org>
15407
15408 * xfaces.c (realize_default_face): If the frame is not on window
15409 system, set the fontset of face to nil.
15410
154112008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
15412
15413 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
15414
154152008-06-16 Juanma Barranquero <lekktu@gmail.com>
15416
15417 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
15418 (build_font_name_from_vector): Delete externs.
15419
15420 * xfaces.c (struct font_name): Don't declare.
15421
154222008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
15423
15424 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
15425
154262008-06-16 Chong Yidong <cyd@stupidchicken.com>
15427
15428 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
15429
154302008-06-16 Juanma Barranquero <lekktu@gmail.com>
15431
15432 * font.c (Ffont_spec): Fix usage in docstring.
15433 (Ffont_face_attributes): Doc fix.
15434
154352008-06-16 Andreas Schwab <schwab@suse.de>
15436
15437 * font.c (Ffont_face_attributes): Fix definition.
15438
154392008-06-16 Jason Rumney <jasonr@gnu.org>
15440
15441 * font.h (font_style_symbolic_from_value): Remove.
15442
15443 * font.c (font_style_symbolic_from_value): Remove.
15444 (font_style_symbolic): Revert to pre 2008-06-13 version.
15445
15446 * w32font.c (w32_to_fc_weight): New function.
15447 (w32font_full_name, logfont_to_fcname): Use it.
15448
154492008-06-16 Kenichi Handa <handa@m17n.org>
15450
15451 * font.c (font_check_object): Delete it.
15452 (font_clear_cache): Check if a font-object is alive.
15453 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
15454 font-object to nil.
15455 (font_close_object): Don't check FONT_CLOSE_OBJECT.
15456 (font_at): Don't call font_check_object.
15457 (Ffont_get): Return a symbol for :weight, :slant, and :width.
15458
154592008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
15460
15461 * puresize.h (BASE_PURESIZE): Increase to 1230000.
15462
154632008-06-16 Chong Yidong <cyd@stupidchicken.com>
15464
15465 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
15466
154672008-06-15 Chong Yidong <cyd@stupidchicken.com>
15468
15469 * font.c (font_parse_fcname): Only one decimal point.
15470 (font_unparse_fcname): Handle data in family and foundry indices
15471 as symbols, not strings.
15472 (font_unparse_gtkname, Ffont_face_attributes): New functions.
15473
15474 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
15475
15476 * font.h (font_unparse_gtkname): Add prototype.
15477
154782008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
15479
15480 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
15481
154822008-06-15 Andreas Schwab <schwab@suse.de>
15483
15484 * font.c (font_update_drivers): Fix crash when no drivers match.
15485
154862008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
15487
15488 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
15489 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
15490
154912008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
15492
15493 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
15494
154952008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
15496
15497 * process.c (Fserial_process_configure, Fprocess_send_eof):
15498 Use EQ to compare Lisp_Objects.
15499
155002008-06-13 Jason Rumney <jasonr@gnu.org>
15501
15502 * w32fns.c (Fw32_select_font): Remove old font API function.
15503
15504 * w32font.c (logfont_to_fcname): New function.
15505 (Fx_select_font): New font dialog function compatible with
15506 GTK/fontconfig version.
15507
15508 * font.c (font_style_symbolic_from_value): New function.
15509 (font_style_symbolic): Use it.
15510
15511 * font.h (font_style_symbolic_from_value): Declare new function.
15512
155132008-06-13 Juanma Barranquero <lekktu@gmail.com>
15514
15515 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
15516 <font-width-table>: Fix typos in docstrings.
15517
155182008-06-13 Daniel Engeler <engeler@gmail.com>
15519
15520 These changes add serial port access.
15521 * process.c: Add HAVE_SERIAL.
15522 (Fdelete_process, Fprocess_status, Fset_process_buffer)
15523 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
15524 (list_processes_1, select_wrapper, Fstop_process)
15525 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
15526 (status_notify): Modify to handle serial processes.
15527 [HAVE_SERIAL] (Fserial_process_configure)
15528 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
15529 New functions.
15530 * process.h (struct Lisp_Process): Add `type'.
15531 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
15532 New functions.
15533 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
15534 serial ports.
b71ac3dd 15535 (serial_open, serial_configure): New functions.
aac0c6e3
MR
15536 * w32.h: Add FILE_SERIAL.
15537 (struct _child_process): Add ovl_read, ovl_write.
15538
155392008-06-13 Kenichi Handa <handa@m17n.org>
15540
15541 * dispextern.h (enum lface_attribute_index): New member
15542 LFACE_FOUNDRY_INDEX.
15543
15544 * font.c (font_score): Delete arg alternate_families. Check only
15545 weight, slant, width, and size. Ignore the difference of alias
15546 style symbols.
15547 (font_sort_entites): Adjust for the above change. Reflect the
15548 order of font-driver to scores.
15549 (font_list_entities): Don't check alternate_familes here.
15550 (font_clear_prop): Handle foundry.
15551 (font_update_lface): Don't parse "foundry-family" form here.
15552 Handle FONT_FOUNDRY_INDEX.
15553 (font_find_for_lface): Likewise. Handle alternate families here.
15554 If registry is nil, try iso8859-1 and ascii-0.
15555 (font_open_for_lface): Pay attention to size in ENTITY.
15556 (font_open_by_name): Simplify by calling font_load_for_lface.
15557 (free_font_driver_list): Delete it.
15558 (font_update_drivers): Preserve the order of backends.
15559 (syms_of_font): Setting of sort_shift_bits adjusted for the change
15560 of font_score and font_sort_entites.
15561 (font_update_sort_order): Likewise.
15562
15563 * xfaces.c (LFACE_FOUNDRY): New macro.
15564 (check_lface_attrs): Check foundry.
15565 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
15566 (merge_face_vectors): Check foundry.
15567 (merge_face_ref): Likewise.
15568 (Finternal_set_lisp_face_attribute): Likewise.
15569 (x_update_menu_appearance): Likewise.
15570 (Finternal_get_lisp_face_attribute): Likewise.
15571 (lface_hash): Likewise.
15572 (lface_same_font_attributes_p): Likewise.
15573 (x_supports_face_attributes_p): Likewise.
15574 (tty_supports_face_attributes_p): Likewise.
15575 (Finternal_set_alternative_font_family_alist): Intern strings.
15576 (Finternal_set_alternative_font_registry_alist): Downcase strings.
15577 (realize_default_face): Set LFACE_FOUNDRY (lface).
15578
15579 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
15580 font-driver at first.
15581
15582 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
15583
155842008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
15585
15586 * lread.c (Fload): Use xfree, not free on saved_doc_string.
15587
155882008-06-12 Jim Meyering <meyering@redhat.com>
15589
15590 Make unexec_free handle NULL the same way free does.
15591 * unexmacosx.c (unexec_free): Ignore a NULL argument.
15592
155932008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
15594
15595 * character.h (CHAR_TO_BYTE_SAFE): New macro.
15596 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
15597 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
15598 (WEAK_ALIAS): Simplify.
15599 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
15600 when searching a unibyte buffer.
15601
156022008-06-12 Chong Yidong <cyd@stupidchicken.com>
15603
15604 * xfns.c (Fx_select_font): Rename from x-font-dialog.
15605
156062008-06-12 Juanma Barranquero <lekktu@gmail.com>
15607
15608 * w32font.c: Include ctype.h.
15609
156102008-06-11 Jason Rumney <jasonr@gnu.org>
15611
15612 * w32font.c (w32font_encode_char): Detect missing glyphs that are
15613 misreported as space.
15614 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
15615 as aliases for registry iso10646-1.
15616
156172008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
15618
15619 * buffer.c (clone_per_buffer_values): Skip `name'.
15620
156212008-06-11 Chong Yidong <cyd@stupidchicken.com>
15622
15623 * font.c (font_parse_fcname): Fix last change; accept decimal
15624 points in font size.
15625
156262008-06-10 Jason Rumney <jasonr@gnu.org>
15627
15628 * w32uniscribe.c (add_opentype_font_name_to_list):
15629 Skip non unicode fonts.
15630
156312008-06-10 Chong Yidong <cyd@stupidchicken.com>
15632
15633 * xfns.c (Fx_font_dialog): New function.
15634
15635 * gtkutil.c (xg_dialog_response_cb): Rename from
15636 xg_file_response_callback.
15637 (pop_down_dialog): Rename from pop_down_file_dialog.
15638 (xg_get_file_name): Callers changed.
15639 (xg_get_font_name): New function.
15640
15641 * gtkutil.h (xg_get_font_name): Insert prototype.
15642
156432008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15644
15645 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
15646 x_underline_minimum_display_offset.
15647 (syms_of_xdisp): Declare it here rather than in xterm.c.
15648 * dispextern.h (underline_minimum_offset): Declare it.
15649 * w32term.c (x_draw_glyph_string): Use it.
15650 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
15651 (syms_of_xterm): Don't declare it any more.
15652 (x_draw_glyph_string): Adjust to the new name.
15653
8719abec 156542008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
15655
15656 * xterm.c (x_underline_minimum_display_offset): New var.
15657 (x_draw_glyph_string): Use it.
15658 (syms_of_xterm): Declare it.
15659
156602008-06-10 Chong Yidong <cyd@stupidchicken.com>
15661
15662 * font.c (font_parse_fcname): Accept GTK-style font names too.
15663
156642008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15665
15666 * dired.c (file_name_completion): Don't return t if the match is exact
15667 but with different capitalization.
15668 * minibuf.c (Ftry_completion): Simplify.
15669
15670 * window.c (Vwindow_point_insertion_type): New var.
15671 (set_window_buffer): Use it.
15672 (syms_of_window): Init and export it to Lisp.
15673
156742008-06-10 Kenichi Handa <handa@m17n.org>
15675
15676 * font.h (font_intern_prop): Prototype adjusted.
15677
15678 * font.c (font_intern_prop): New arg force_symbol.
15679 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
15680 Adjust for the change of font_intern_prop.
15681
15682 * ftfont.c (ftfont_pattern_entity):
15683 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
15684 (w32_registry):
15685 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
15686 the change of font_intern_prop.
15687
156882008-06-09 Juanma Barranquero <lekktu@gmail.com>
15689
15690 * w32menu.c (digest_single_submenu): Declare extern.
15691
156922008-06-09 Jason Rumney <jasonr@gnu.org>
15693
15694 * w32term.c (x_make_frame_visible): Use alternate restore flags.
15695
15696 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
15697 (parse_single_submenu): Remove.
15698 (digest_single_submenu): Remove.
15699 (syms_of_w32menu): Don't initialise variables that have moved
15700 to menu.c.
15701 (set_frame_menubar): Sync with version in xmenu.c.
15702 (w32_menu_show): Sync with xmenu_show in xmenu.c.
15703
15704 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
15705 Make static again.
15706
157072008-06-09 Jason Rumney <jasonr@gnu.org>
15708
15709 Changes to w32 files related to the move of common menu code
15710 to menu.c on 2008-06-08 by Chong Yidong.
15711
15712 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
15713 defs to w32gui.h.
15714 (single_keymap_panes, push_menu_item, push_menu_pane):
15715 Make globally visible.
15716
15717 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
15718 (local_free, malloc_widget_value, free_widget_value)
15719 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
15720 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
15721 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
15722 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
15723 (menu_items, menu_items_allocated, menu_items_used)
15724 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
15725 (init_menu_items, finish_menu_items, discard_menu_items)
15726 (grow_menu_items, push_submenu_start, push_submenu_end)
15727 (push_left_right_boundary, push_menu_pane, push_menu_item)
15728 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
15729 (free_menubar_widget_tree_value, parse_single_submenu)
15730 (update_submenu_strings): Remove functions.
15731 (xmalloc_widget_value): Remove and declare extern.
15732
15733 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
15734 (OBJ1): Build it.
15735
15736 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
15737 (local_heap, local_alloc, local_free, malloc_widget_value)
15738 (free_widget_value): Define here.
15739
157402008-06-09 Kenichi Handa <handa@m17n.org>
15741
15742 * font.h (Qascii_0): Extern it.
15743
15744 * font.c (Qascii_0): New variable.
15745 (syms_of_font): DEFSYM it.
15746 (font_open_by_name): If the registry "iso8859-1" fails, try also
15747 "ascii-0".
15748
15749 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
15750
157512008-06-08 Kenichi Handa <handa@m17n.org>
15752
15753 * .gdbinit (xfont): New command.
15754
157552008-06-08 Andreas Schwab <schwab@suse.de>
15756
15757 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
15758 * Makefile.in (menu.o): Update dependencies.
15759
15760 * Makefile.in (obj): Always add menu.o.
15761 * emacs.c (main): Always call syms_of_menu.
15762 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
15763
157642008-06-08 Chong Yidong <cyd@stupidchicken.com>
15765
15766 * Makefile.in: Compile menu.c.
15767
15768 * lisp.h: Declare syms_of_menu.
15769
15770 * emacs.c (main): Call syms_of_menu.
15771
15772 * keyboard.h: Relocate platform-independent menu definitions from
15773 xmenu.c.
15774
15775 * menu.c: New file. Relocate platform-independent menu
15776 definitions from xmenu.c. Suggested by Adrian Robert.
15777
15778 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 15779 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
15780 (menu_items_used, menu_items_n_panes)
15781 (menu_items_submenu_depth): Move to keyboard.h.
15782 (init_menu_items, finish_menu_items, unuse_menu_items)
15783 (discard_menu_items, restore_menu_items, save_menu_items)
15784 (grow_menu_items, push_submenu_start, push_submenu_end)
15785 (push_left_right_boundary, push_menu_pane, push_menu_item)
15786 (keymap_panes, single_keymap_panes, single_menu_item)
15787 (list_of_panes, list_of_items, find_and_call_menu_selection)
15788 (xmalloc_widget_value, free_menubar_widget_value_tree)
15789 (parse_single_submenu, digest_single_submenu)
15790 (update_submenu_strings): Move to menu.c.
15791
157922008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
15793
15794 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
15795
157962008-06-06 Miles Bader <miles@gnu.org>
15797
15798 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
15799 face, not frame default.
15800
158012008-06-05 Martin Rudalics <rudalics@gmx.at>
15802
15803 * window.c (pop_up_windows, pop_up_frames)
15804 (display_buffer_reuse_frames, Vpop_up_frame_function)
15805 (Vdisplay_buffer_function, Veven_window_heights)
15806 (Vspecial_display_buffer_names, Vspecial_display_regexps)
15807 (Vspecial_display_function, Vsame_window_buffer_names)
15808 (Vsame_window_regexps, split_height_threshold)
15809 (Vsplit_window_preferred_function): Move those vars to window.el.
15810 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
15811 (Fdisplay_buffer): Move those functions to window.el.
15812 (syms_of_window): Remove corresponding declarations.
15813 (display_buffer): New function.
15814 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
15815 * dispnew.c (Flast_nonminibuf_frame): New function.
15816 * buffer.c (Fpop_to_buffer): Move to window.el.
15817
158182008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15819
15820 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
15821
158222008-06-05 Kenichi Handa <handa@m17n.org>
15823
15824 * coding.c (detect_coding): Fix previous change.
15825 (detect_coding_system): Likewise.
15826
158272008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15828
15829 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
15830
15831 * keymap.c (Vminibuffer_local_filename_must_match_map):
15832 Rename from Vminibuffer_local_must_match_filename_map.
15833 (syms_of_keymap):
15834 * minibuf.c (Fcompleting_read): Adjust accordingly.
15835 * commands.h: Rename declaration as well.
15836
158372008-06-05 Kenichi Handa <handa@m17n.org>
15838
15839 * font.c (Ffont_spec): Don't use font_parse_family_registry for
15840 family name.
15841 (Ffont_put): Likewise.
15842
15843 * fontset.c (fontset_find_font): Call font_open_for_lface with the
15844 current font-spec.
15845
15846 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
15847 is unspecified.
15848
15849 * xfaces.c (realize_x_face): If the font-related face attributes
15850 are the same as those of default face, realize a new fontset from
15851 default->fontset.
15852 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
15853
158542008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15855
15856 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
15857 (move_it_in_display_line): New wrapper.
15858
15859 * window.c (window_scroll_pixel_based_preserve_x)
15860 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
15861 (window_scroll_pixel_based, window_scroll_line_based):
15862 Use them to preserve column positions.
15863 (syms_of_window): Initialize them.
15864
15865 * indent.c (Fvertical_motion): Extend first arg to allow passing an
15866 (HPOS . VPOS) pair.
15867
15868 * dispextern.h (move_it_in_display_line): Declare.
15869
158702008-06-05 Juanma Barranquero <lekktu@gmail.com>
15871
15872 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
15873 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
15874 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
15875
158762008-06-04 Juanma Barranquero <lekktu@gmail.com>
15877
15878 * window.c (Fset_window_parameter): Doc fix.
15879 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
15880
158812008-06-04 Joakim Verona <joakim@verona.se>
15882
15883 * window.h (struct window): Add new member window_parameters.
15884
15885 * window.c (Fwindow_parameters, Fwindow_parameter)
15886 (Fset_window_parameter): New defuns.
15887 (syms_of_window): Defsubr the new defuns.
15888 (make_window): Initialize window_parameters to nil.
15889
158902008-06-04 John Paul Wallington <jpw@pobox.com>
15891
15892 * eval.c (Fdefmacro): Doc fix.
15893
158942008-06-04 Kenichi Handa <handa@m17n.org>
15895
15896 * coding.c (detect_coding): Fix handling of coding->head_ascii.
15897 Be sure to call setup_coding_system when we find a proper coding system.
15898 (detect_coding_system): Fix handling of coding->head_ascii.
15899
159002008-06-03 Andreas Schwab <schwab@suse.de>
15901
15902 * font.c (font_prop_validate_spacing): Fix last change.
15903
159042008-06-03 Kenichi Handa <handa@m17n.org>
15905
15906 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
15907 (font_parse_fcname): Fix handling of unknown key.
15908
15909 * xfont.c (xfont_list): Try an alias.
15910
15911 * charset.c (char_charset): Return NULL if the arg charset_list is
15912 specified and C doesn't belong to any of them.
15913
159142008-06-02 Chip Coldwell <coldwell@redhat.com>
15915
15916 * font.c (font_pixel_size): Don't take cdr of an integer.
15917
159182008-06-02 Jim Meyering <meyering@redhat.com>
15919
15920 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
15921 * alloc.c (xfree): Return right away for a NULL arg.
15922 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
15923 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
15924 * mac.c (create_apple_event_from_event_ref): Likewise.
15925 (create_apple_event_from_drag_ref, cfstring_create_normalized):
15926 Likewise.
15927 * doprnt.c (doprnt1): Likewise.
15928 * frame.c (frame): Likewise.
15929 * keyboard.c (wipe_kboard): Likewise.
15930 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
15931 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
15932 * term.c (tty_default_color_capabilities, maybe_fatal)
15933 (delete_tty): Likewise.
15934 * w16select.c (string): Likewise.
15935 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
15936 * w32bdf.c (w32_free_bdf_font): Likewise.
15937 * w32fns.c (w32_unload_font): Likewise.
15938 * w32font.c (w32font_close): Likewise.
15939 * window.c (size_window): Likewise.
15940 * xselect.c (receive_incremental_selection): Likewise.
15941 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
15942 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
15943 * w32.c (stat): Likewise.
15944
15945 Remove useless if-before-free tests.
15946 * editfns.c (Fset_time_zone_rule): Likewise.
15947 * lread.c (nosuffix): Likewise.
15948 * ralloc.c (get_bloc): Likewise.
15949 * regex.c (reg_free): Likewise.
15950 * xftfont.c (xftfont_open, xftfont_close): Likewise.
15951 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
15952 * xsmfns.c (smc_save_yourself_CB): Likewise.
15953
159542008-06-02 Kenichi Handa <handa@m17n.org>
15955
15956 * font.c (font_find_for_lface): Handle float font size.
15957 (font_open_for_lface): Likewise.
15958
15959 * xfaces.c (x_supports_face_attributes_p): Check face->font before
15960 comparing the properties.
15961
159622008-06-01 Jason Rumney <jasonr@gnu.org>
15963
15964 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
15965 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
15966 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
15967 Don't add empty script list.
15968 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
15969
159702008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
15971
15972 * Makefile.in (dot, dotdot): Remove, update users.
15973 ".." has been used elsewhere in the file for a long time.
15974 (LIBXT_STATIC): Remove conditional based on unused variable.
15975
159762008-06-01 Miles Bader <miles@gnu.org>
15977
15978 * xfaces.c (Vface_remapping_alist): New variable.
15979 (syms_of_xfaces): Initialize it.
15980 (enum named_merge_point_kind): New type.
15981 (struct named_merge_point): Add `named_merge_point_kind' field.
15982 (push_named_merge_point): Make cycle detection respect different
15983 named-merge-point kinds.
15984 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
15985 Remove face-name alias resolution.
15986 (lface_from_face_name): New definition using
15987 `lface_from_face_name_no_resolve'.
15988 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
15989 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
15990 (get_lface_attributes): New definition that layers face-remapping on
15991 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
15992 (lookup_basic_face): New function.
15993 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
15994 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
15995 `get_lface_attributes'.
15996 (face_at_buffer_position): Use `lookup_basic_face' to lookup
15997 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
15998 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
15999
16000 * xdisp.c (init_iterator): Pass base_face_id through
16001 `lookup_basic_face' when we actually use it as a face-id.
16002 (handle_single_display_prop): Use `lookup_basic_face' to lookup
16003 DEFAULT_FACE_ID.
16004
16005 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
16006 lookup the initial face-id.
16007
16008 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
16009
160102008-06-01 Juanma Barranquero <lekktu@gmail.com>
16011
16012 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
16013 (Fremove_text_properties): Fix typos in docstrings.
16014
160152008-05-31 Kenichi Handa <handa@m17n.org>
16016
16017 * font.c (font_list_entities): Fix the car part of data to be
16018 stored in the cache.
16019
16020 * ftfont.c (ftfont_font_format): Don't use strcasestr.
16021
160222008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
16023
16024 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
16025 Add a `test' argument so another predicate than `equal' can be used.
16026 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
16027 (map_char_table): Remove unused vars `c' and `i'.
16028 * lisp.h (Foptimize_char_table): Adjust declaration.
16029 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
16030
160312008-05-30 Kenichi Handa <handa@m17n.org>
16032
16033 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
16034 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
16035 defined.
16036
160372008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
16038
16039 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
16040 (Fmake_variable_frame_local): Disallow mixing buffer-local and
16041 frame-local settings for the same variable.
16042
160432008-05-30 Kenichi Handa <handa@m17n.org>
16044
16045 * fontset.c (Ffont_info): Move to font.c.
16046 (syms_of_fontset): Delete defsubr of Sfont_info.
16047
16048 * font.c (font_style_to_value, font_score): Delete casting of the
16049 args to xstcasecmp.
16050 (register_font_driver): Increment num_font_drivers only when
16051 registering the driver globally.
16052 (Ffont_info): Move from fontset.c. Handle a font object too.
16053 (syms_of_font): Defsubr Sfont_info.
16054
160552008-05-29 Kenichi Handa <handa@m17n.org>
16056
16057 * coding.h (enum define_coding_utf8_arg_index): New enum.
16058 (enum coding_attr_index): Change coding_attr_utf_16_bom to
16059 coding_attr_utf_bom.
16060 (enum utf_bom_type): Rename from utf_16_bom_type.
16061 (struct utf_16_spec): Adjust for the above change.
16062 (struct coding_system): Add utf_8_bom in `spec' union.
16063
16064 * coding.c (CODING_UTF_8_BOM): New macro.
16065 (enum coding_category): Delete coding_category_utf_8, add
16066 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
16067 coding_category_utf_8_sig.
16068 (CATEGORY_MASK_UTF_8): Delete it.
16069 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
16070 (CATEGORY_MASK_UTF_8_SIG): New macros.
16071 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
16072 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
16073 CATEGORY_MASK_UTF_8_SIG.
16074 (CATEGORY_MASK_UTF_8): New macro.
16075 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
16076 (detect_coding_utf_8): Check BOM.
16077 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
16078 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
16079 (encode_coding_utf_16): Likewise.
16080 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
16081 (detect_coding, detect_coding_system): Handle utf-8-auto.
16082 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
16083 (syms_of_coding): Fix setting up of Vcoding_category_table.
16084
160852008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
16086
16087 * process.c (Faccept_process_output): If `millisec' is non-nil,
16088 `seconds' default to 0.
16089 (wait_reading_process_output): Also return non-nil if we read output
16090 from a non-running process.
16091
160922008-05-29 Jason Rumney <jasonr@gnu.org>
16093
16094 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
16095 `raster' specified.
16096 (add_font_entity_to_list): Allow non-opentype truetype fonts back
16097 in the uniscribe backend, but disallow any font that has no
16098 unicode subrange support.
16099
161002008-05-29 Juanma Barranquero <lekktu@gmail.com>
16101
16102 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
16103 Fix typos in docstrings.
16104
161052008-05-29 Kenichi Handa <handa@m17n.org>
16106
16107 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
16108 (Fx_family_fonts): Set frame correctly.
16109
161102008-05-28 Jason Rumney <jasonr@gnu.org>
16111
16112 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
16113
161142008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
16115
16116 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
16117 calling build_annotations.
16118
161192008-05-28 Juanma Barranquero <lekktu@gmail.com>
16120
16121 * coding.c (Fdecode_coding_region, Fencode_coding_region)
16122 (Fencode_coding_string):
16123 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
16124 <latin-extra-code-table>: Fix typos in docstrings.
16125 (syms_of_coding) <coding-system-alist>: Doc fix.
16126 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
16127
161282008-05-28 Kenichi Handa <handa@m17n.org>
16129
16130 * fontset.c (Ffont_info): Don't call font_close_object.
16131
16132 * font.c (font_parse_family_registry): Use Ffont_put to validate
16133 foundry and family.
16134 (font_delete_unmatched): Don't check spacing.
16135 (font_list_entities): Add spacing to the spec to list fonts.
16136
16137 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
16138 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
16139
16140 * coding.c (encode_coding_raw_text): Fix previous change.
16141 (encode_coding_object): When the dst_object is a buffer and is
16142 different from src_object, move gap to PT.
16143
161442008-05-27 Chong Yidong <cyd@stupidchicken.com>
16145
16146 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
16147
161482008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
16149
16150 * coding.c (encode_coding_raw_text): Set coding->produced_char for
16151 all branches. Compute it differently.
16152
16153 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
16154
161552008-05-27 Juanma Barranquero <lekktu@gmail.com>
16156
16157 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
16158 into "else if () ... else ...".
16159
161602008-05-27 Jason Rumney <jasonr@gnu.org>
16161
16162 * w32font.c (w32font_open_internal): Determine if glyph indices
16163 are likely to work here.
16164
161652008-05-27 Chong Yidong <cyd@stupidchicken.com>
16166
16167 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
16168 draw overlap glyphs with appropriate highlighting.
16169
161702008-05-27 Kenichi Handa <handa@m17n.org>
16171
16172 * xfont.c (xfont_open): Fix calculation of font->average_width.
16173
161742008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
16175
16176 * casefiddle.c (casify_object): Try to guess better whether the
16177 argument is a byte or a char.
16178
161792008-05-26 Andreas Schwab <schwab@suse.de>
16180
16181 * xselect.c (x_reply_selection_request): Properly handle format == 32.
16182 Always send multiples of format size.
16183
16184 * xterm.c (x_set_frame_alpha): Fix type mismatch.
16185
161862008-05-26 Jason Rumney <jasonr@gnu.org>
16187
16188 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
16189 (compute_metrics): Don't set failure if we just cleared the cache.
16190 (w32_weight_table): Remove unused variable.
16191 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
16192 backwards compatibility.
16193
161942008-05-25 Kenichi Handa <handa@m17n.org>
16195
16196 * w32term.c (x_draw_glyph_string):
16197 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
16198
16199 * xfaces.c: Delete unused function prototypes.
16200 (xstrlwr, font_frame): Delete them.
16201 (clear_face_cache): Delete unused variable.
16202
16203 * xftfont.c (xftfont_open): Delete unused variable.
16204 If underline_thickness is not 1, adjust underline_position.
16205
16206 * ftxfont.c (ftxfont_open): Delete unused variable.
16207
16208 * fontset.c (face_for_char): Optimize for the case of no charset
16209 property.
16210
16211 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
16212 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
16213 (otf_open, font_otf_capability, generate_otf_features)
16214 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16215 Comment out by surrounding "#if 0" and "#endif" for the moment.
16216 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
16217 (syms_of_font): Codes for accessing above commented out.
16218
162192008-05-24 Eli Zaretskii <eliz@gnu.org>
16220
16221 * w32proc.c: Include dispextern.h.
16222
16223 * w32.c: Include dispextern.h.
16224
162252008-05-23 Juanma Barranquero <lekktu@gmail.com>
16226
16227 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
16228 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
16229 Fix typos in docstrings.
16230
162312008-05-23 Jason Rumney <jasonr@gnu.org>
16232
16233 * xsmfns.c: Remove includes that are already included by config.h.
16234
162352008-05-23 Kenichi Handa <handa@m17n.org>
16236
16237 * charset.c (Qemacs, charset_emacs): New variables.
16238 (char_charset): Fix for non-Unicode characters.
16239 (syms_of_charset): Define charset_emacs.
16240
16241 * w32term.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 * xterm.c (x_draw_glyph_string): Be sure to update
16246 s->underline_thickness and s->underline_position. Be sure to draw
16247 underline within the current line area.
16248
16249 * fontset.c: Delete unused variables and add casting for char *
16250 throughout the file.
16251 (fontset_font): Try the fallback fonts of the current fontset
16252 before consulting the default fontset.
16253
16254 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
16255
16256 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
16257
162582008-05-22 Jason Rumney <jasonr@gnu.org>
16259
16260 * font.c: Don't include strings.h.
16261
16262 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
16263
16264 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
16265 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
16266 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
16267 to call xstrcasecmp.
16268
16269 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
16270
16271 * fontset.c (fs_query_fontset): Use xstrcasecmp.
16272
16273 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
16274
16275 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
16276
162772008-05-22 Kenichi Handa <handa@m17n.org>
16278
16279 * puresize.h (BASE_PURESIZE): Increase to 1220000.
16280
16281 * font.c (font_prop_validate_style): Adjust for the format
16282 change of font_style_table.
16283
16284 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
16285 two args.
16286
16287 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
16288 two args.
16289
162902008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
16291
16292 * minibuf.c (keys_of_minibuf): Delete.
16293 * lisp.h (keys_of_minibuf): Delete.
16294 * emacs.c (main): Don't call keys_of_minibuf.
16295
162962008-05-22 Kenichi Handa <handa@m17n.org>
16297
16298 * ftfont.c (ftfont_resolve_generic_family): Rename from
16299 ftfont_list_generic_family. Return a single family for each
16300 generic family.
16301 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
16302 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
16303 Call font_add_log.
16304 (ftfont_match): Call font_add_log.
16305
16306 * font.h (Ffont_xlfd_name): EXFUN adjusted.
16307 (FONT_DEBUG): Define it.
16308 (font_add_log): Extern it.
16309 (font_assert): Rename from xassert.
16310
16311 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
16312 (xfont_list_family): Call font_add_log.
16313 (xfont_match): Likewise.
16314 (memq_no_quit): Delete.
16315
16316 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
16317 call of Ffont_xlfd_name.
16318
16319 * xfaces.c (struct table_entry, slant_table, weight_table)
16320 (swidth_table): Move to font.c.
16321
16322 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
16323 xassert are changed to font_assert. Delete many unused variables.
16324 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
16325 New variables.
16326 (struct table_entry): Move from xfaces.c and modified.
16327 (weight_table, slant_table, width_table): Move from xfaces.c and
16328 contents adjusted for the change of struct table_entry.
16329 (font_style_to_value, font_style_symbolic): Adjust for the
16330 format change of font_style_table.
16331 (font_parse_family_registry): Don't overwrite existing foundry and
16332 family of font_spec.
16333 (font_score): Fix calculation of diff for sizes.
16334 (font_sort_entites): Call font_add_log.
16335 (font_delete_unmatched): Return a newly created list.
16336 (font_list_entities): Fix previous change. Call font_add_log.
16337 (font_matching_entity, font_open_entity, font_close_entity):
16338 Call font_add_log.
16339 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
16340 (Finternal_set_font_style_table): Delete.
16341 (BUILD_STYLE_TABLE): New macro.
16342 (build_style_table): New function.
16343 (Vfont_log, font_log_env_checked): New variables.
16344 (font_add_log): New function.
16345 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
16346 Declare Lisp variables "font-weight-table", "font-slant-table",
16347 "font-width-table", and "font-log". Initialize font_style_table.
16348
163492008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
16350
16351 * xterm.c (x_set_frame_alpha): Move declarations before statements.
16352
163532008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 16354 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
16355
16356 * frame.c (Qalpha): Add a new frame parameter `alpha'.
16357 (Vframe_alpha_lower_limit): New variable.
16358 (x_set_alpha): New function.
16359
16360 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
16361
16362 * xfns.c (x-create-frame, Qalpha):
16363 Initialize the frame parameter `alpha'.
16364 * xterm.c (OPAQUE, OPACITY): New.
16365 (x_set_frame_alpha): New function.
16366 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
16367
16368 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
16369 * w32fns.c (w32_frame_parm_handlers): Likewise.
16370
163712008-05-20 Jason Rumney <jasonr@gnu.org>
16372
16373 * w32font.c (add_font_entity_to_list): Don't add non-opentype
16374 truetype fonts to opentype list.
16375
163762008-05-20 Juanma Barranquero <lekktu@gmail.com>
16377
16378 * fontset.c (Ffontset_info): Doc fix.
16379 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
16380 <ignore-relative-composition>: Fix typos in docstrings.
16381
16382 * font.c (syms-of-font) <font-encoding-alist>:
16383 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
16384 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
16385 (Ffont_otf_alternates): Doc fixes.
16386
163872008-05-20 Kenichi Handa <handa@m17n.org>
16388
16389 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
16390 font.h through out the file.
16391 (FONT_DRIVERS): Rename from FONTOBJ.
16392 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
16393 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
16394
16395 * emacs.c (main): Call syms_of_font unconditionally.
16396
16397 * font.h (find_font_encoding): Extern it.
16398
16399 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
16400 fontset.c.
194d44e7 16401 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
16402 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
16403 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
16404 only when HAVE_WINDOW_SYSTEM is defined.
16405 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
16406 when HAVE_WINDOW_SYSTEM is defined.
16407
16408 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
16409 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
16410
16411 * xfaces.c: Include font.h unconditionally.
16412 (merge_face_ref, merge_face_vectors)
16413 (Finternal_set_lisp_face_attribute): Cancel the previous change.
16414
164152008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
16416
16417 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
16418 indirect_variable.
16419 * eval.c (lisp_indirect_variable): New fun.
16420 (Fuser_variable_p): Use it.
16421
164222008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
16423
16424 * lisp.h (indirect_variable):
16425 * data.c (indirect_variable, let_shadows_buffer_binding_p):
16426 Use Lisp_Symbol pointers rather than Lisp_Object.
16427 Adjust callers.
16428 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
16429 To this end, change calling-convention.
16430
16431 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
16432 if some non-hidden buffers are selected by string&pred.
16433
164342008-05-19 Chong Yidong <cyd@stupidchicken.com>
16435
16436 * process.c (wait_reading_process_output): Always check status
16437 when in batch mode.
16438
164392008-05-19 Kenichi Handa <handa@m17n.org>
16440
16441 * font.c (font_list_entities): Fix handling of cache.
16442 (font_matching_entity): Likewise.
16443
16444 * ftfont.c (cs_iso8859_1): Delete.
16445 (ft_face_cache): New variable.
16446 (struct ftfont_info): New member fc_charset_idx.
16447 (ftfont_build_basic_charsets): Delete.
16448 (fc_charset_table): New variable.
16449 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
16450 . FC_CHARSET_IDX) as :font-entity property in the font entity.
16451 Callers changed.
16452 (ftfont_lookup_cache, ftfont_get_charset): New functions.
16453 (ftfont_spec_pattern): New argument fc_charset_idx.
16454 Check registry more rigidly. Change callers.
16455 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
16456 change of :font-entity property of the font.
16457
16458 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
16459 property of the font.
16460
164612008-05-18 Juanma Barranquero <lekktu@gmail.com>
16462
16463 * coding.c (Fcoding_system_p): Rename argument to match docstring.
16464 (Funencodable_char_position, Fcheck_coding_systems_region)
16465 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
16466 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
16467 (Ffind_operation_coding_system, Fset_coding_system_priority)
16468 (Fcoding_system_eol_type): Doc fixes.
16469
164702008-05-17 Glenn Morris <rgm@gnu.org>
16471
16472 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
16473
164742008-05-16 Eli Zaretskii <eliz@gnu.org>
16475
16476 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
16477 and st_gid.
16478
16479 * frame.c (Fdelete_frame): Don't call font_update_drivers if
16480 HAVE_WINDOW_SYSTEM is not defined.
16481
16482 * xfaces.c (merge_face_ref, merge_face_vectors)
16483 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
16484 HAVE_WINDOW_SYSTEM is defined.
16485 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
16486
164872008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
16488
16489 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
16490
164912008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16492
16493 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
16494
164952008-05-15 Kenichi Handa <handa@m17n.org>
16496
16497 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
16498 preference.
16499
165002008-05-15 Glenn Morris <rgm@gnu.org>
16501
16502 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
16503
165042008-05-15 Chong Yidong <cyd@stupidchicken.com>
16505
16506 * fns.c (init_fns): Don't initialize weak_hash_tables here.
16507 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
16508
16509 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
16510
165112008-05-15 Kenichi Handa <handa@m17n.org>
16512
16513 * ftfont.c (ftfont_list): Downcase family name to check generic
16514 families.
16515
16516 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
16517 font-spec for QCfont value.
16518
16519 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
16520 buffer. Check the return value of it.
16521
165222008-05-14 Jason Rumney <jasonr@gnu.org>
16523
16524 * w32term.c (w32_get_glyph_overhangs): Remove.
16525 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
16526
165272008-05-14 Kenichi Handa <handa@m17n.org>
16528
16529 * font.c (font_prop_validate): Make nil a valid value.
16530 (font_clear_cache): Check if the cached vector of entities is nil
16531 or not.
16532
165332008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16534
16535 * emacs.c (main_thread): Conditionalize on
16536 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16537 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
16538
16539 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
16540 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
16541 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16542
165432008-05-14 Kenichi Handa <handa@m17n.org>
16544
16545 * coding.c (detect_coding_iso_2022): Ignore a coding category that
16546 has no corresponding coding system.
16547
165482008-05-14 Jason Rumney <jasonr@gnu.org>
16549
16550 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
16551
16552 * w32font.h (w32font_open_internal): Update declaration.
16553
16554 * w32font.c (w32font_open_internal): Change last argument from
16555 w32font_info struct to font object. Fill in font object from
16556 font_entity. Get Outline metrics if possible. Use them to
16557 calculate underline position and thickness. Use xlfd name as name
16558 property. Don't set codepage.
16559 (w32font_open): Pass font_object to w32font_open_internal. Don't
16560 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
16561 (w32font_draw): Use s->font.
16562 (clear_cached_metrics): Don't clear non-existent blocks.
16563
16564 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
16565 font was not found.
16566 (x_draw_glyph_string): Use underline position and thickness from font.
16567
16568 * w32uniscribe.c (uniscribe_open): Pass font_object to
16569 w32font_open_internal.
16570
165712008-05-14 Kenichi Handa <handa@m17n.org>
16572
16573 These changes are to delete all legacy font-handling codes, and
16574 make Emacs use only font-backends.
16575
16576 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
16577 (frame.o, image.o, print.o): Depend on $(FONTSRC).
16578
16579 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
16580
16581 * charset.h (Vcharset_non_preferred_head)
16582 (Vcurrent_iso639_language): Extern them.
16583
16584 * charset.c (Vcharset_non_preferred_head): New variable.
16585 (Vcurrent_iso639_language): New variable.
16586 (syms_of_charset): Declare it as a Lisp variable.
16587 (char_charset): Don't check non preferred charsets. As a last
16588 resort, return charset_unicode.
16589 (Fset_charset_priority): Update Vcharset_non_preferred_head.
16590
16591 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
16592 conditionals. Don't check enable_font_backend. Delete all codes
16593 used only when USE_FONT_BACKEND is not defined.
16594
16595 * dispextern.h (struct glyph_string): Change type of `font' to
16596 `struct font *'.
16597 (struct glyph_string): New member underline_position and
16598 underline_thickness.
16599 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
16600 (struct face): Change type of `font' to `struct font *'. Remove
16601 members `font_name', `font_info_id'.
16602 (per_char_metric, encode_char): Delete externs.
16603 (calc_pixel_width_or_height): Adjust the prototype.
16604
16605 * emacs.c (enable_font_backend): Delete extern.
16606 (main): Don't set enable_font_backend. Don't check the command
16607 line argument "-disable-font-backend".
16608
16609 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
16610 (enum font_property_index): New members FONT_DPI_INDEX,
16611 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
16612 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
16613 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
16614 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
16615 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
16616 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
16617 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
16618 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
16619 (struct font_spec, struct font_entity): New structs.
16620 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
16621 (struct font): Many members from old "struct font_info" moved to
16622 here. Members font and entity deleted.
16623 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
16624 the new font-related objects.
16625 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
16626 (CHECK_FONT_GET_OBJECT): Likewise.
16627 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
16628 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
16629 (struct font_driver): New members case_sensitive anc check. Type
16630 of the member list and open changed.
16631 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
16632 (font_symbolic_width, font_find_object, font_get_spec)
16633 (font_set_lface_from_name): Delete extern.
16634 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
16635
16636 * font.c: Include <strings.h>.
16637 (enable_font_backend): Delete it.
16638 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
16639 (CHECK_VALIDATE_FONT_SPEC): Delete it.
16640 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
16641 (null_string): Delete it.
16642 (null_vector): Make it static.
16643 (font_family_alist): Delete it.
16644 (Qnormal): Extern it.
16645 (QCextra, QClanguage): Delete it.
16646 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
16647 (font_make_spec, font_make_entity, font_make_object)
16648 (font_intern_prop): Renamed from intern_downcase. Don't downcase
16649 the string. Callers changed.
16650 (font_pixel_size): Adjusted for the format change of font-related
16651 objects.
16652 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
16653 (font_style_to_value, font_style_symbolic): New function.
16654 (build_font_family_alist): Delete it.
16655 (font_registry_charsets): Use Fassoc_string instead of
16656 assq_no_quit.
16657 (font_prop_validate_symbol): Don't return null_string.
16658 (font_prop_validate_style): Adjusted for the change of
16659 style-related values in a font vector.
16660 (font_property_table): Delete entries for QClanguage and
16661 QCantialias, add entries for QCavgwidth.
16662 (get_font_prop_index): Delete the 2nd argument FROM.
16663 (font_prop_validate): Arguments changed.
16664 (font_put_extra): Adjusted for the change of font-related objects.
16665 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
16666 (font_parse_fcname, font_unparse_fcname)
16667 (font_prepare_composition): Likewise.
16668 (font_parse_family_registry): Renamed from font_merge_old_spec.
16669 (otf_open): Delete the 1st arg entity.
16670 (font_otf_capability): Adjusted for the above change.
16671 (font_score): New arg alternate_families. Adjusted for the change
16672 of font-related objects.
16673 (font_sort_entites): New arg best_only.
16674 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
16675 Delete them.
16676 (font_match_p): Check alternate families.
16677 (font_find_object): Delete it.
16678 (font_check_object): New function.
16679 (font_clear_cache): Adjusted for the change of font-related objects.
16680 (font_delete_unmatched): New arg.
16681 (font_list_entities): Call font_driver->list with a spec that
16682 doesn't specify style-related properties.
16683 (font_matching_entity): Arguments changed. Caller changed.
16684 (font_open_entity): Adjusted for the change of font-related objects.
16685 (font_close_object, font_has_char, font_encode_char)
16686 (font_get_name, font_get_spec): Likewise.
16687 (font_spec_from_name, font_clear_prop, font_update_lface):
16688 New functions.
16689 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
16690 (font_prepare_for_face, font_done_for_face, font_open_by_name)
16691 (font_at): Adjusted for the change of font-related objects.
16692 (font_range): New function.
16693 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
16694 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
16695 (Fcopy_font_spec, Fmerge_font_spec): New function.
16696 (Ffont_family_list): Renamed from list-families.
16697 (Finternal_set_font_style_table): Arguments changed.
16698 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
16699 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
16700 change of font-related objects.
16701 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
16702
16703 * fontset.h (struct font_info): Delete it. Most members go to
16704 struct font.
16705 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
16706 (enum FONT_SPEC_INDEX): Delete it.
16707 (font_info, list_fonts_func, load_font_func, query_font_func)
16708 (set_frame_fontset_func, find_ccl_program_func)
16709 (get_font_repertory_func, new_fontset_from_font_name): Delete
16710 externs.
16711 (fontset_from_font_name): Extern it.
16712 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
16713 (FONT_INFO_FROM_FACE): Deleted.
16714 (face_for_font): Adjust prototype.
16715
16716 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
16717 conditionals. Don't check enable_font_backend. Delete all codes
16718 used only when USE_FONT_BACKEND is not defined.
16719 (get_font_info_func, list_font_func, load_font_func)
16720 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
16721 (get_font_repertory_func): Delete them.
16722 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
16723 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
16724 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
16725 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
16726 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
16727 (fontset_compare_rfontdef): New function.
16728 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
16729 rfont-defs by qsort. Adjusted for the change of font-group vector.
16730 (load_font_get_repertory): Deleted.
16731 (fontset_find_font): Use new macros to ref/set elements of
16732 font-def and rfont-def.
16733 (fontset_font): Fix the timing of remembering that no font for C.
16734 (free_face_fontset): Do nothing if the face has no fontset.
16735 (face_suitable_for_char_p): Use new macros to ref/set elements of
16736 rfont-def.
16737 (face_for_char): Likewise. Call face_for_char with font_object.
16738 (fs_load_font): Delete. Delete #pragma surrounding it.
16739 (fs_query_fontset): Use strcasecmp instead of strcmp.
16740 (generate_ascii_font_name): Adjusted for the format change of
16741 font-spec.
16742 (Fset_fontset_font): Likewise. Use new macros to set elements of
16743 font-def.
16744 (Fnew_fontset): Use font_unparse_xlfd to generate
16745 FONTSET_ASCII (fontset).
16746 (new_fontset_from_font_name): Deleted.
16747 (fontset_from_font): Renamed from new_fontset_from_font. Check if
16748 a fontset is already created for the font. FIx updating of
16749 Vfontset_alias_alist.
16750 (fontset_ascii_font): Deleted.
16751 (Ffont_info): Adjusted for the format change of font-spec.
16752 (Finternal_char_font): Likewise.
16753 (Ffontset_info): Likewise.
16754 (syms_of_fontset): Don't check load_font_func.
16755
16756 * fns.c (internal_equal): Handle PREV_FONT.
16757
16758 * frame.h: Delete USE_FONT_BACKEND conditional.
16759
16760 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
16761 conditionals. Don't check enable_font_backend. Delete all codes
16762 used only when USE_FONT_BACKEND is not defined.
16763 (x_set_font): Call x_new_font, not x_new_fontset2.
16764 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
16765 already set for the frame.
16766
16767 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
16768 a font-entity by font_make_entity. Use font_intern_prop instead
16769 of intern_downcase. Use FONT_SET_STYLE to set a style-related
16770 font property. If a font is scalable, set avgwidth property to 0.
16771 Set font-entity property by font_put_extra.
16772 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
16773 (ffont_driver): Adjusted for the change of struct font_driver.
16774 (ftfont_spec_pattern): New function.
16775 (ftfont_list): Return a list, not vector.
16776 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
16777 (ftfont_list_family): Don't downcase names.
16778 (ftfont_free_entity): Deleted.
16779 (ftfont_open): Return a font-object. Adjusted for the change of
16780 struct font. Get underline_thickness and underline_position from
16781 font property. Don't update dpyinfo->smallest_font_height and
16782 dpyinfo->smallest_char_width.
16783 (ftfont_close): Don't free `struct font'.
16784 (ftfont_has_char): Adjusted for the format change of font-entity.
16785 (ftfont_encode_char, ftfont_text_extents): Likewise.
16786
16787 * ftxfont.c (ftxfont_list): Return a list, not vector.
16788 (ftxfont_open): Return a font-object. Adjusted for the change of
16789 struct font. Get underline_thickness and underline_position from
16790 font property. Don't update dpyinfo->smallest_font_height and
16791 dpyinfo->smallest_char_width.
16792 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
16793 (ftxfont_draw): Adjusted for the change of struct font.
16794
16795 * image.c (image_ascent): Don't include "charset.h". Include
16796 "character.h" and "font.h".
16797
16798 * lisp.h (enum pvec_type): New member PREV_FONT.
16799 (Fassoc_string): EXFUN it.
16800
16801 * print.c: Include font.h.
16802 (print_object): Handle font-related objects.
16803
16804 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
16805 conditionals. Don't check enable_font_backend. Delete all codes
16806 used only when USE_FONT_BACKEND is not defined.
16807 (handle_auto_composed_prop): Do nothing if it->f is not on a
16808 window system. Check how many following characters can be
16809 displayed by the same font.
16810 (calc_pixel_width_or_height): Type of the 4th arg is changed to
16811 'struct font *'.
16812 (get_char_face_and_encoding): Assign the whole encoding task to
16813 the `encode-char' method of a font driver.
16814 (fill_composite_glyph_string): Adjusted for the change of `struct
16815 face' and `struct glyph_string'.
16816 (fill_glyph_string): Likewise.
16817 (get_per_char_metric): Arguments changed.
16818 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
16819 and `struct glyph_string'.
16820 (produce_stretch_glyph, calc_line_height_property)
16821 (x_produce_glyphs): Likewise.
16822
16823 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
16824 conditionals. Don't check enable_font_backend. Delete all codes
16825 used only when USE_FONT_BACKEND is not defined. Use
16826 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
16827 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
16828 (Qp): Extern them.
16829 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
16830 Deleted.
16831 (struct font_name): Deleted.
16832 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
16833 (compare_fonts_by_sort_order): New function.
16834 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
16835 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
16836 Deleted.
16837 (Fx_family_fonts): Use font_list_entities, and sort fonts by
16838 compare_fonts_by_sort_order.
16839 (Fx_font_family_list): Call Ffont_family_list.
16840 (face_numeric_value, face_numeric_weight, face_numeric_slant)
16841 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
16842 (face_symbolic_slant, face_symbolic_swidth)
16843 (split_font_name_into_vector, build_font_name_from_vector)
16844 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
16845 (font_rescale_ratio, split_font_name, build_font_name)
16846 (free_font_names, sort_fonts, x_face_list_fonts)
16847 (face_font_available_p, sorted_font_list, cmp_font_names)
16848 (font_list_1, concat_font_list, font_list, remove_duplicates):
16849 Deleted.
16850 (Fx_list_fonts): Use Ffont_list.
16851 (LFACE_AVGWIDTH): Deleted.
16852 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
16853 by FONTP.
16854 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
16855 (set_lface_from_font_name): Delete it.
16856 (set_lface_from_font): Renamed from
16857 set_lface_from_font_and_fontset. Caller changed. Don't set
16858 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
16859 for face.
16860 (merge_face_vectors): Copy font-spec if necessary.
16861 Clear properties of the font-spec if necessary.
16862 (merge_face_ref): Clear properties of the font-spec if necessary.
16863 (Finternal_set_lisp_face_attribute): Likewise.
16864 (set_font_frame_param): Use font_load_for_lface to load a
16865 font-object, and call Fmodify_frame_parameters with it.
16866 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
16867 font name by Ffont_xlfd_name.
16868 (Finternal_lisp_face_attribute_values): Don't check QCweight,
16869 QCslant, and QCwidth.
16870 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
16871 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
16872 Compare fonts by EQ.
16873 (lookup_non_ascii_face): Deleted.
16874 (face_for_font): The 2nd argument changed.
16875 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
16876 Check atomic font properties by case insensitive.
16877 (realize_non_ascii_face): Set face->overstrike correctly.
16878 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
16879 (dump_realized_face): Get font name from
16880 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
16881
16882 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
16883 conditionals. Don't check enable_font_backend. Delete all codes
16884 used only when USE_FONT_BACKEND is not defined.
16885 (xic_create_xfontset): Original code deleted and renamed from
16886 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
16887 (x_make_gc): Don't set GCFont in GCs.
16888 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
16889 opened by "fixed".
16890 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
16891 find_ccl_program_func, query_font_func, set_frame_fontset_func,
16892 get_font_repertory_func.
16893
16894 * xfont.c: Include <stdlib.h> and "ccl.h".
16895 (struct xfont_info): New structure.
16896 (xfont_query_font): Deleted.
16897 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
16898 moved from xterm.c.
16899 (xfont_driver): Adjusted for the change of struct font_driver.
16900 (compare_font_names): New function.
16901 (xfont_list_pattern): Sort font names case insensitively. Make
16902 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
16903 (xfont_list): Return a list, not vector.
16904 (xfont_match): If the font doesn't have QCname property, generate
16905 a name from the other font properties.
16906 (xfont_open): Return a font-object. Adjusted for the change of
16907 struct font. Get underline_thickness and underline_position from
16908 font property. Don't update dpyinfo->smallest_font_height and
16909 dpyinfo->smallest_char_width.
16910 (xfont_close): Don't free struct font.
16911 (xfont_prepare_face): Adjusted for the change of struct font.
16912 (xfont_done_face): Deleted.
16913 (xfont_has_char): Adjusted for the change of struct font.
16914 (xfont_encode_char, xfont_draw): Likewise.
16915 (xfont_check): New function.
16916
16917 * xftfont.c (xftfont_list): Adjusted for the change of `list'
16918 callback function.
16919 (xftfont_match): Adjusted for the format change of font-entity.
16920 (xftfont_open): Adjusted for the format change of font-entity and
16921 font-object. Adjusted for the change of struct font. Return a
16922 font-object. Don't update dpyinfo->smallest_font_height and
16923 dpyinfo->smallest_char_width.
16924 (xftfont_close): Block input while calling XftFontClose.
16925 (xftfont_prepare_face): Don't block input while calling
16926 xftfont_get_colors. Adjusted for the change of struct font.
16927 (xftfont_shape): Return value of error case fixed.
16928
16929 * xrdb.c (x_load_resources): Don't setup a fontset resource.
16930
16931 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
16932 conditionals.
16933 (FONT_WIDTH): Return (f)->max_width.
16934 (struct x_display_info): Delete member `font'.
16935 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
16936 (x_find_ccl_program, x_get_font_repertory): Delete externs.
16937 (struct x_output): Change type of `font' to `struct font *'.
16938
16939 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
16940 conditionals. Don't check enable_font_backend. Delete all codes
16941 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
16942 (x_per_char_metric, x_encode_char): Deleted.
16943 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
16944 (x_compute_glyph_string_overhangs): Adjusted for the change of
16945 `struct face'.
16946 (x_draw_glyph_string_foreground)
16947 (x_draw_composite_glyph_string_foreground): Likewise.
16948 (x_draw_glyph_string): Likewise. Use font->underline_position and
16949 font->underline_thickness.
16950 (x_new_font): Renamed from x_new_fontset2.
16951 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
16952 (x_check_font): Call `check' method of a font driver.
16953 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
16954 (x_query_font, x_get_font_repertory): Deleted.
16955 (x_find_ccl_program): Renamed and moved to xfont.c.
16956 (x_redisplay_interface): Adjusted for the change of `struct
16957 redisplay_interface'.
16958
16959 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
16960 conditionals. Don't check enable_font_backend. Delete all codes
16961 used only when USE_FONT_BACKEND is not defined. Surround non-used
16962 code by "#ifdef OLD_FONT" and "endif".
16963 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
16964
16965 * w32font.h (struct w32font_info): New member.
16966 (FONT_COMPAT): New macro.
16967 (w32font_open_internal): Prototype adjusted.
16968
16969 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
16970 OLD_FONT" and "endif".
16971
16972 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
16973 conditionals. Don't check enable_font_backend. Delete all codes
16974 used only when USE_FONT_BACKEND is not defined.
16975 (w32font_open): Return a font-object. Make a font-object by
16976 font_make_object. Adjusted for the change of struct w32font_info.
16977 (w32font_close): Don't free struct font. Adjusted for the change
16978 of struct w32font_info.
16979 (w32font_encode_char, w32font_text_extents, w32font_draw):
16980 Adjusted for the change of struct w32font_info.
16981 (w32font_draw): Likewise.
16982 (w32font_list_internal): Return a list, not vector.
16983 (w32font_open_internal): Change the 4th arg to font-object.
16984 Adjusted for the change of struct w32font_info and font-object format.
16985 (add_font_name_to_list): Don't downcase names.
16986 (w32_enumfont_pattern_entity): Make a font-entity by
16987 font_make_entity. Adjusted for the format change of font-entity.
16988 Use FONT_SET_STYLE to set a style-related font property. If a
16989 font is scalable, set avgwidth property to 0. Set font-entity
16990 property by font_put_extra.
16991 (font_matches_spec): Adjusted for the format change of font-entity.
16992 (w32_weight_table, w32_decode_weight): New variables.
16993 (w32_encode_weight): New function.
16994 (fill_in_logfont): Adjusted for the format change of font-spec.
16995 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
16996 weight value.
16997 (w32font_driver): Adjusted for the change of struct font_driver.
16998
16999 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
17000 conditionals. Don't check enable_font_backend. Surround non-used
17001 code by "#ifdef OLD_FONT" and "endif".
17002 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
17003 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
17004
17005 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
17006 conditionals. Don't check enable_font_backend. Delete all codes
17007 used only when USE_FONT_BACKEND is not defined. Surround non-used
17008 code by "#ifdef OLD_FONT" and "endif".
17009
17010 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
17011 (uniscribe_open): Return value changed to font-object.
17012 Adjusted for the format change of font-object.
17013 (uniscribe_otf_capability): Adjusted for the change of struct font.
17014 (add_opentype_font_name_to_list): Don't downcase names.
17015 (uniscribe_font_driver): Adjusted for the change of struct
17016 font_driver.
17017
170182008-05-13 Chong Yidong <cyd@stupidchicken.com>
17019
17020 * dispnew.c (update_frame_1): Check if tty output is still valid
17021 before flushing it.
17022
170232008-05-13 Jan Djärv <jan.h.d@swipnet.se>
17024
17025 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
17026 to Gtk+ menus.
17027
170282008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
17029
17030 * dired.c (file_name_completion): Tweak the code so as to always do it
17031 in a single pass. Tighten the scope of some variables.
17032
17033 * dired.c (Qdefault_directory): New var.
17034 (file_name_completion): Use it instead of Fexpand_file_name.
17035 (syms_of_dired): Initialize it.
17036
170372008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
17038
17039 * fileio.c (double_dollars): Remove dead code.
17040
170412008-05-10 Eli Zaretskii <eliz@gnu.org>
17042
17043 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
17044 Mention w32-get-true-file-attributes in doc string.
17045
17046 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
17047
170482008-05-09 Glenn Morris <rgm@gnu.org>
17049
17050 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
17051 2008-04-23.
17052
170532008-05-09 Eli Zaretskii <eliz@gnu.org>
17054
17055 Support for reporting owner and group of each file on MS-Windows:
17056 * dired.c (stat_uname, stat_gname): New functions, with special
17057 implementation for w32.
17058 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
17059
17060 * w32.c: Rename the_passwd_* to dflt_passwd_*.
17061 (dflt_group_name): New static variable.
17062 (dflt_group): Rename from the_group.
17063 (init_user_info): Init dflt_group fields. Get user's group name
17064 from LookupAccountSid.
17065 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
17066 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
17067 New initialization states.
17068 (globals_of_w32): Initialize them to zero. Initialize the default
17069 group name to "None".
17070 (GetFileSecurity_Name): New global var, the name of the function
17071 to call for GetFileSecurity.
17072 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
17073 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
17074 (get_file_security, get_security_descriptor_owner)
17075 (get_security_descriptor_group, is_valid_sid)
17076 (get_file_security_desc, get_rid, get_name_and_id)
17077 (get_file_owner_and_group): New functions.
17078 (stat): Use get_file_security_desc and get_file_owner_and_group to
17079 report the owner and primary group of each file. Don't ignore the
17080 high 32 bits of file's size, now that st_size is 64-bit wide.
17081 Fix test when to get true file attributes.
17082 (init_user_info): Use get_rid instead of equivalent inline code.
17083 (fstat): Don't ignore the high 32 bits of file's size.
17084
170852008-05-09 Chong Yidong <cyd@stupidchicken.com>
17086
17087 * image.c (png_load): Use correct bit-depth for setting background
17088 color.
17089
170902008-05-08 Eli Zaretskii <eliz@gnu.org>
17091
17092 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
17093 epa-hook.elc.
17094
170952008-05-08 Juanma Barranquero <lekktu@gmail.com>
17096
17097 * font.c (Ffont_match_p): Don't use `iff' in docstring.
17098
170992008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
17100
17101 * macfns.c (Fx_create_frame): Make a copy of frame parameters
17102 because the original parameters are in pure storage now.
17103 (mac_window): Remove unused params. Update callers.
17104
171052008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
17106
17107 * lread.c (substitute_object_recurse): Use lower-level primitives.
17108 Don't signal errors when traversing sub-char-tables.
17109 Don't loop over all the possible characters when traversing char-tables.
17110
17111 * print.c (print_preprocess): Add sub-char-tables to the print-table,
17112 just like we do in print.c.
17113
171142008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
17115
17116 * minibuf.c (Ftry_completion): Remove code left over from when we used
17117 scmp instead of Fcompare_strings.
17118
171192008-05-04 Juanma Barranquero <lekktu@gmail.com>
17120
17121 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
17122
171232008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17124
17125 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
17126 Create bitmap context in native byte order.
17127
17128 * macterm.c (XDrawLine)
17129 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
17130 context in native byte order.
17131
171322008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17133
17134 * config.in: Regenerate.
17135
17136 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
17137 New definitions for Image I/O support.
17138 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
17139 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
17140 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
17141 (mac_data_provider_release_data, image_load_image_io)
17142 [USE_MAC_IMAGE_IO]: New functions.
17143 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
17144 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
17145 (init_image_func_pointer) [MAC_OSX]: Remove function.
17146 (image_load_quartz2d) [MAC_OSX]: Check availability of
17147 CGImageCreateWithPNGDataProvider at compile time.
17148 Use lowercase `false' for boolean constant.
17149 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
17150 Use image_load_image_io.
17151 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
17152 Don't check MyCGImageCreateWithPNGDataProvider.
17153 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
17154 Don't call init_image_func_pointer.
17155
17156 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
17157
17158 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
17159 Make variable non-static.
17160 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
17161 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
17162
17163 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
17164 (RED_FROM_ULONG): Mask off higher bits.
17165 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
17166
17167 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
17168 Include AvailabilityMacros.h.
17169 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
17170 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
17171
171722008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
17173
17174 * chartab.c (Fset_char_table_range): If range is t, really set all
17175 chars to that value.
17176
171772008-05-03 Eli Zaretskii <eliz@gnu.org>
17178
17179 * dired.c (Ffile_attributes): Don't allow the device number become
17180 negative.
17181
171822008-05-02 Daiki Ueno <ueno@unixuser.org>
17183
17184 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
17185
171862008-05-02 Juri Linkov <juri@jurta.org>
17187
17188 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
17189 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
17190 DEFAULT argument as a list of default values in docstrings.
17191
171922008-05-01 Chong Yidong <cyd@stupidchicken.com>
17193
17194 * puresize.h (BASE_PURESIZE): Increase to 1210000.
17195
171962008-05-01 Martin Rudalics <rudalics@gmx.at>
17197
17198 * dispnew.c (change_frame_size_1): Preserve small windows when
17199 shrinking frames by calling set_window_height|width with third
17200 arg 2.
17201
17202 * window.h (struct window): Replace field too_small_ok by field
17203 resize_proportionally.
17204
17205 * window.c (make_window): Initialize resize_proportionally.
17206 (enlarge_window): Temporarily set resize_proportionally to make
17207 sure that shrink_windows does scale the window proportionally.
17208 (shrink_windows): When window has resize_proportionally set try
17209 to shrink it proportionally by stealing from other windows.
17210 (struct saved_window, Fset_window_configuration)
17211 (compare_window_configurations): Handle resize_proportionally.
17212 (WINDOW_TOTAL_SIZE): New macro.
17213 (window_min_size, shrink_windows, size_window): Use it.
17214 (check_min_window_sizes): Remove. Invalid values of
17215 window-min-height|width are handled by window_min_size_2 now.
17216 (size_window, Fsplit_window, enlarge_window)
17217 (adjust_window_trailing_edge, grow_mini_window): Don't call
17218 check_min_window_sizes.
17219 (window_min_size_2, window_min_size_1, window_min_size):
17220 New argument safe_p for retrieving "safe" minimum sizes.
17221 (Fdisplay_buffer, Fsplit_window, enlarge_window)
17222 (adjust_window_trailing_edge, grow_mini_window):
17223 Adjust arguments of window_min_size... functions.
17224 (shrink_windows): Argument min_size removed. New argument
17225 safe_p allows shrinking windows to their safe minimum sizes.
17226 Calculate minimum size and decide whether a window shall be
17227 deleted for each window individually.
17228 (size_window): When nodelete_p equals 2, tell shrink_windows to
17229 delete windows only if their new minimum size is no more safe.
17230 (shrink_window_lowest_first): Call window_min_size_1 to make
17231 sure to preserve modeline of bottom-most window when resizing
17232 the minibuffer.
17233 (Fset_window_configuration, Fcurrent_window_configuration)
17234 (compare_window_configurations): Do not handle
17235 window-min-height|width any more.
17236 (syms_of_window): Clarify window-min-height|width doc-strings.
17237
172382008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
17239
17240 * dired.c (file_name_completion): Fix up the encoding/decoding issue
17241 some more. Copy some of the code from Ftry_completions.
17242 Remove special case code that dates back to initial revision when the
17243 slash was only added when necessary and that can't trigger nowadays.
17244
172452008-04-27 Kenichi Handa <handa@m17n.org>
17246
17247 * font.c (font_prop_validate): Signal `error' instead of `font'.
17248
172492008-04-29 Jason Rumney <jasonr@gnu.org>
17250
17251 * w32fns.c (Fw32_battery_status): New defun.
17252 (syms_of_w32fns): Defsubr it.
17253
172542008-04-28 Andreas Schwab <schwab@suse.de>
17255
17256 * dired.c (file_name_completion): Fix another mixing of encoded
17257 and decoded names.
17258
172592008-04-28 Juanma Barranquero <lekktu@gmail.com>
17260
17261 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
17262
172632008-04-27 Juanma Barranquero <lekktu@gmail.com>
17264
17265 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
17266
172672008-04-27 Andreas Schwab <schwab@suse.de>
17268
17269 * dired.c (file_name_completion): Fix inappropriate mixing of
17270 encoded and decoded names.
17271
17272 * xterm.c (XTread_socket): Fix use of uninitialized variable.
17273
17274 * puresize.h (BASE_PURESIZE): Increase to 1200000.
17275
172762008-04-26 Eli Zaretskii <eliz@gnu.org>
17277
17278 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
17279 2008-03-31, it's not needed anymore with `struct stat' definition
17280 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
17281 for the same reasons.
17282
172832008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
17284
17285 * m/sparc.h: Additional redefinitions for GNU/Linux.
17286
172872008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17288
17289 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
17290 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
17291 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
17292 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
17293 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
17294 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
17295 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17296 Likewise.
17297
17298 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
17299 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
17300 (mac_ax_number_of_characters): Add externs.
17301 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
17302 [USE_MAC_TSM]: Likewise.
17303 (mac_handle_text_input_event) [MAC_OSX]:
17304 Handle kEventTextInputOffsetToPos for no active input area case.
17305 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
17306 (mac_handle_document_access_event)
17307 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
17308 (install_application_handler) [MAC_OSX]: Register handlers for
17309 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
17310 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17311 Register mac_handle_document_access_event.
17312
17313 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
17314 Make functions non-static.
17315
173162008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
17317
17318 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
17319 (read_file_name_completion_ignore_case, insert_default_directory)
17320 (Qdefault_directory): Move to minibuffer.el.
17321 (Fread_file_name): Call the new `read-file-name' instead.
17322
173232008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17324
17325 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
17326 Make function non-static.
17327 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
17328 Remove function.
17329 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
17330 Move to mactoolbox.c.
17331 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
17332
17333 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
17334 (mac_rect_make): New macro.
17335
17336 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
17337 instead of float.
17338 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
17339 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
17340 (XSetBackground) [USE_CG_DRAWING]: Likewise.
17341 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
17342 CGRectMake.
17343 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
17344 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
17345 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
17346 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
17347 instead of WindowRef in argument type.
17348 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
17349 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
17350 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
17351 instead of DISPLAY. All uses changed.
17352 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
17353 (x_calc_absolute_position): Simplify so as not to use
17354 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
17355
17356 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
17357 instead of WindowRef in argument type.
17358 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
17359 [TARGET_API_MAC_CARBON]: Remove externs.
17360 (create_apple_event, mac_event_parameters_to_lisp)
17361 [TARGET_API_MAC_CARBON]: Add externs.
17362
17363 * mactoolbox.c (Vmac_ts_script_language_on_focus)
17364 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
17365 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
17366 is clicked.
17367 (x_activate_menubar): Remove extern for saved_menu_event_location.
17368 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
17369 Move from mac.c.
17370
173712008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17372
17373 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
17374 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
17375
173762008-04-23 Jason Rumney <jasonr@gnu.org>
17377
17378 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
17379 attributes only for local files.
17380
17381 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
17382 default to Qlocal.
17383
173842008-04-22 Juri Linkov <juri@jurta.org>
17385
17386 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
17387 read-buffer-to-switch instead of using the letter "B".
17388
173892008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
17390
17391 * fileio.c (Qdefault_directory): New variable.
17392 (Fread_file_name): Use it to pass `dir' to the completion functions.
17393
173942008-04-20 Chong Yidong <cyd@stupidchicken.com>
17395
17396 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
17397
173982008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
17399
17400 * keyboard.c (Vpre_help_message): Remove.
17401 (show_help_echo): Remove default C code.
17402
17403 * dired.c (directory_files_internal, file_name_completion):
17404 Only call ENCODE_FILE if the string is indeed decoded.
17405
174062008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
17407
17408 * Makefile.in (TOOLKIT_DEFINES): Remove.
17409 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
17410
174112008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17412
17413 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
17414 (mactoolbox.o): New target.
17415
17416 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
17417 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
17418
17419 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
17420 Use mac_set_frame_window_background instead of XSetWindowBackground.
17421 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
17422 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
17423 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
17424 instead of SetWindowTitleWithCFString.
17425 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
17426 Move function to mactoolbox.c.
17427 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
17428 Use mac_set_window_modified instead of SetWindowModified.
17429 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
17430 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
17431 (Fx_focus_frame): Use mac_front_non_floating_window instead of
17432 FrontNonFloatingWindow. Use mac_activate_window instead of
17433 ActivateWindow. Use mac_active_non_floating_window instead of
17434 ActiveNonFloatingWindow.
17435 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
17436 Use mac_show_hourglass and mac_hide_hourglass.
17437 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
17438 instead of GetGlobalMouse.
17439 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
17440 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
17441 Use mac_bring_window_to_front instead of BringToFront.
17442 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
17443 mactoolbox.c.
17444 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
17445 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
17446 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
17447 mactoolbox.c.
17448
17449 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
17450 (XtPointer): Move typedef from macmenu.c.
17451 (enum button_type): Move enum from macmenu.c.
17452 (widget_value): Move typedef from macmenu.c.
17453 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
17454 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
17455 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
17456 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
17457 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
17458 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
17459 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
17460 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
17461 (Selection): Move typedef from macselect.c.
17462 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
17463 macterm.c.
17464 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
17465 (mac_is_window_collapsed, mac_bring_window_to_front)
17466 (mac_send_window_behind, mac_hide_window, mac_show_window)
17467 (mac_collapse_window, mac_front_non_floating_window)
17468 (mac_active_non_floating_window, mac_activate_window)
17469 (mac_move_window_structure, mac_move_window, mac_size_window)
17470 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
17471
17472 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
17473 (enum mac_menu_kind): Move enum to mactoolbox.c.
17474 (min_menu_id): Move variable to mactoolbox.c.
17475 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
17476 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
17477 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
17478 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
17479 [TARGET_API_MAC_CARBON]: Likewise.
17480 (XtPointer): Move typedef to macgui.h.
17481 (enum button_type): Move enum to macgui.h.
17482 (widget_value): Move typedef to macgui.h.
17483 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
17484 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
17485 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
17486 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
17487 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
17488 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
17489 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
17490 (popup_activated_flag): Make variable non-static.
17491 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
17492 (add_menu_item, fill_menu, dispose_menus):
17493 Move functions to mactoolbox.c.
17494 (restore_show_help_function, menu_target_item_handler)
17495 (install_menu_target_item_handler, mac_handle_dialog_event)
17496 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
17497 [TARGET_API_MAC_CARBON]: Likewise.
17498 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
17499 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17500 (find_and_call_menu_selection, name_is_separator): Make function
17501 non-static.
17502 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
17503 to mactoolbox.c.
17504 (set_frame_menubar): Don't call install_menu_quit_handler.
17505 (menu_item_selection): New variable.
17506 (mac_menu_show): Use create_and_show_popup_menu.
17507 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
17508 selection but set variable menu_item_selection. All uses changed.
17509 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
17510 Call install_menu_quit_handler. Move to mactoolbox.c.
17511
17512 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
17513 (Selection): Move typedef to macgui.h.
17514 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
17515 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
17516 Make variables non-static.
17517 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17518 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
17519 Make functions non-static.
17520 (Vmac_service_selection) [MAC_OSX]: Likewise.
17521 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
17522 (mac_valid_selection_target_p, mac_clear_selection)
17523 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17524 (mac_put_selection_value, mac_selection_has_target_p)
17525 (mac_get_selection_value, mac_get_selection_target_list)
17526 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
17527 Move functions to mactoolbox.c.
17528 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
17529 Likewise.
17530 (copy_scrap_flavor_data, mac_handle_service_event)
17531 (install_service_handler) [MAC_OSX]: Likewise.
17532 (syms_of_macselect) <Vmac_dnd_known_types>:
17533 Use mac_dnd_default_known_types.
17534
17535 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
17536 Move to mactoolbox.c.
17537 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
17538 (Fx_selection_owner_p): Add EXFUN.
17539 (install_window_handler, remove_window_handler, XSetWindowBackground):
17540 Remove externs.
17541 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
17542 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
17543 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
17544 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
17545 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
17546 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
17547 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
17548 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
17549 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
17550 (create_and_show_popup_menu, mac_get_selection_from_symbol)
17551 (mac_valid_selection_target_p, mac_clear_selection)
17552 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17553 (mac_put_selection_value, mac_selection_has_target_p)
17554 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
17555 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
17556 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
17557 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17558 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
17559 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17560 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
17561 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17562 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17563
17564 * mactoolbox.c: New file.
17565
175662008-04-18 Jason Rumney <jasonr@gnu.org>
17567
17568 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
17569
175702008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
17571
17572 * character.c (Fmultibyte_char_to_unibyte):
17573 Return latin1 chars unchanged.
17574
17575 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
17576 relocated if it points to `name'.
17577
175782008-04-17 Kenichi Handa <handa@m17n.org>
17579
17580 * data.c (Faset): Allow setting a multibyte character in an
17581 ASCII-only unibyte string.
17582
17583 * lisp.h (STRING_SET_MULTIBYTE): New macro.
17584
175852008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
17586
17587 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
17588 done in config.h.
17589
175902008-04-16 Juanma Barranquero <lekktu@gmail.com>
17591
17592 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
17593 (Fchar_direction): Add usage in the docstring.
17594
175952008-04-15 Chong Yidong <cyd@stupidchicken.com>
17596
17597 * keyboard.c (read_key_sequence): Remove always-true checks.
17598
175992008-04-14 Jason Rumney <jasonr@gnu.org>
17600
17601 * w32font.c (w32font_open_internal): Set max_bounds.descent in
17602 compatibility struct, for better underline positioning.
17603
176042008-04-13 David Hansen <david.hansen@gmx.net>
17605
17606 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
17607 string.
17608
176092008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
17610
17611 * m/hp800.h (XUINT, XSET): Remove.
17612
176132008-04-12 Juanma Barranquero <lekktu@gmail.com>
17614
17615 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
17616 previous change.
17617
176182008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
17619
17620 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
17621 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
17622
176232008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17624
17625 * keymap.h (map_keymap_canonical): Declare.
17626 * xmenu.c (single_keymap_panes): Use it.
17627
176282008-04-11 Glenn Morris <rgm@gnu.org>
17629
17630 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
17631 set the target's value to that of the alias.
17632
176332008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17634
17635 * term.c (set_tty_color_mode): Left over typo.
17636
176372008-04-10 Michael Albinus <michael.albinus@gmx.de>
17638
17639 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
17640 only after check for file name handler functions. Signal, when
17641 native functionality is not supported.
17642 (syms_of_fileio): Declare it unconditionally.
17643
176442008-04-10 Jason Rumney <jasonr@gnu.org>
17645
17646 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
17647 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
17648
17649 * w32.c (logon_network_drive): Also logon to remote drives that
17650 are mapped to drive letters.
17651
176522008-04-10 Glenn Morris <rgm@gnu.org>
17653
17654 * xdisp.c (truncate-partial-width-windows): Doc fix.
17655
176562008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
17657
17658 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
17659 Move functions to minibuffer.el.
17660 (syms_of_fileio): Don't declare them.
17661
176622008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17663
17664 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
17665 (syms_of_minibuf): Remove its initialization.
17666
17667 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
17668
176692008-04-09 Juanma Barranquero <lekktu@gmail.com>
17670
17671 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
17672
176732008-04-09 Jason Rumney <jasonr@gnu.org>
17674
17675 * makefile.w32-in (distclean): Delete makefile too.
17676 (maintainer-clean): New target.
17677
17678 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
17679
17680 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
17681 for new font backend and composite cases.
17682
176832008-04-09 Jan Djärv <jan.h.d@swipnet.se>
17684
17685 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
17686 Most of the code moved to run_timers.
17687 (do_pending_atimers): Call run_timers.
17688 (run_timers): New function.
17689
17690 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
17691 run atimers.
17692
17693 * process.c (wait_reading_process_output): The same as above.
17694
176952008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17696
17697 * minibuf.c (last_exact_completion): Remove variable.
17698 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
17699 (complete_and_exit_1, complete_and_exit_2)
17700 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
17701 (Fdisplay_completion_list, display_completion_list_1)
17702 (Fminibuffer_completion_help, Fself_insert_and_exit)
17703 (Fexit_minibuffer, Fminibuffer_message): Move functions to
17704 minibuffer.el.
17705 (syms_of_minibuf): Remove corresponding initializations.
17706
17707 * keyboard.c (Qdeactivate_mark): New var.
17708 (command_loop_1): Use it to call `deactivate-mark'.
17709 (syms_of_keyboard): Initialize it.
17710
17711 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
17712 to another frame.
17713 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
17714 Don't call set_tty_color_mode.
17715 (store_frame_param): Reset previous_frame rather than call
17716 set_tty_color_mode.
17717 * term.c (set_tty_color_mode): Rewrite.
17718 * dispextern.h (set_tty_color_mode): New type.
17719 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
17720
177212008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
17722
17723 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
17724 for generic chars, which do not exist any more in emacs-unicode.
17725
177262008-04-08 Michael Albinus <michael.albinus@gmx.de>
17727
17728 * coding.c (detect_coding_emacs_mule)
17729 (Ffind_operation_coding_system): Fix typo.
17730
177312008-04-08 Jason Rumney <jasonr@gnu.org>
17732
17733 * w32uniscribe.c (SNAME): Extract only symbol name.
17734
17735 * w32font.h (struct w32_metric_cache): New struct.
17736 (w32font_info): Use it.
17737 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
17738 (CACHE_BLOCKSIZE): New constants.
17739
17740 * w32font.c (Qja, Qko, Qzh): New symbols.
17741 (syms_of_w32font): Initialise them.
17742 (font_matches_spec): Use them to filter by language.
17743 (recompute_cached_metrics): Remove function.
17744 (compute_metrics, clear_cached_metrics): New functions.
17745 (w32font_encode_char): Use them to manage metric cache.
17746 (w32font_text_extents): Cache metrics for all glyphs on demand.
17747 Delay converting glyph indices to WORD until needed.
17748 (w32font_open_internal): Initialize metric cache to empty.
17749 (registry_to_w32_charset): Charset should always be a symbol.
17750 (fill_in_logfont, list_all_matching_fonts): Family should
17751 always be a symbol.
17752
177532008-04-06 Jason Rumney <jasonr@gnu.org>
17754
17755 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
17756 Give up if glyph indices not supported. Use uniscribe obtained
17757 ABC widths for individual metrics. Map glyph clusters back to
17758 characters using fClusterStart flag. Return number of glyphs
17759 produced, not chars processed.
17760 (uniscribe_shape): Map char at FROM to current glyph.
17761
177622008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17763
17764 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
17765 Use SetMenuItemHierarchicalMenu.
17766
177672008-04-05 Jason Rumney <jasonr@gnu.org>
17768
17769 * image.c (pbm_load): Allow color values up to 65535.
17770 Throw an error if max_color_idx is outside the supported range.
17771 Report an error when image size is invalid.
17772 Read two bytes at a time when raw images have max_color_idx above 255.
17773
aac0c6e3
MR
177742008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
17775
17776 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
17777 append "CCL: Quitted" when the CCL program is quitted.
17778 (setup_ccl_program): Initialize ccl->quit_silently to zero.
17779
17780 * ccl.h (struct ccl_program): New member quit_silently.
17781
177822008-04-05 Chong Yidong <cyd@stupidchicken.com>
17783
17784 * search.c (compile_pattern_1): Treat non-nil and non-string of
17785 search-spaces-regexp as nil.
17786
17787 * minibuf.c (Fassoc_string): Tweak docstring.
17788
177892008-04-05 Eli Zaretskii <eliz@gnu.org>
17790
17791 * dired.c (Ffile_attributes): Support inode numbers wider than 32
17792 bits. Remove ugly WINDOWSNT-specific kludge introduced on
17793 2008-03-14 to force inode be positive.
17794
17795 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
17796 _S_* ones, since we now use our own sys/stat.h.
17797 (stat, fstat): Don't mangle the inode number.
17798 (init_user_info): Don't restrict UID and GID to 0-60000 range.
17799
178002008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
17801
17802 * frame.h (struct frame): Give one more bit to `visible' since we use
17803 values larger than 1 to indicate obscured frames on ttys.
17804
17805 * keymap.c (Qkeymap_canonicalize): New var.
17806 (Fmap_keymap_internal): New fun.
17807 (describe_map): Use keymap-canonicalize.
17808
17809 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
17810 (Fundo_boundary): Set them.
17811 (syms_of_undo): Initialize them.
17812 (record_point): Use them instead of last_point_position*.
17813 (last_undo_buffer): Change type.
17814
178152008-04-04 Jason Rumney <jasonr@gnu.org>
17816
17817 * w32font.c (w32font_text_extents): Use font's ascent and descent.
17818 (recompute_cached_metrics): Don't set ascent and descent per char.
17819
17820 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
17821 (uniscribe_check_otf): Add GC protection before consing.
17822 Rearrange loop for counting features.
17823
178242008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
17825
17826 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
17827 buffer with byte-size of source buffer.
17828
178292008-04-03 Chong Yidong <cyd@stupidchicken.com>
17830
17831 * callint.c (Fcall_interactively): Handle temporary region even
17832 when shift-select-mode is off.
17833
178342008-04-03 Jason Rumney <jasonr@gnu.org>
17835
17836 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
17837
178382008-04-03 Kenichi Handa <handa@m17n.org>
17839
17840 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
17841 (CATEGORY_MASK_UTF_16): Likewise.
17842 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
17843 binary file.
17844 (detect_coding): Add null-byte detection for a binary file.
17845 (detect_coding_system): Likewise.
17846
178472008-04-03 Jason Rumney <jasonr@gnu.org>
17848
17849 * w32uniscribe.c: New file.
17850
17851 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
17852
17853 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
17854
17855 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
17856 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
17857 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
17858 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
17859 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
17860 (Qphonetic): New symbols.
17861 (syms_of_w32font): Initialize them.
17862 (font_supported_scripts): Use them.
17863 (w32font_list_family): List all charsets.
17864 (w32font_text_extents, recompute_cached_metrics): Fix metric
17865 calculations.
17866 (w32_enumfont_pattern_entity): Make full_type a DWORD.
17867 Give opentype fonts their own format.
17868 (font_matches_spec): New arguments backend and logfont.
17869 Handle :otf spec for uniscribe backend.
17870 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
17871 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
17872
17873 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
17874 font backend.
17875 (globals_of_w32fns): Initialize uniscribe font backend.
17876
17877 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
17878 dependencies.
17879 (w32uniscribe.$(O)): New file to build.
17880 (FONT_OBJ): Include w32uniscribe.$(O).
17881 (LIBS): Add uniscribe libraries.
17882
17883 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
17884
178852008-04-02 Chong Yidong <cyd@stupidchicken.com>
17886
17887 * callint.c (Vshift_select_mode): New var.
17888 (Finteractive): Document new ^ spec.
17889 (Fcall_interactively): Call handle-shift-selection if the ^ spec
17890 is present.
17891
17892 * keyboard.c (Vthis_command_keys_shift_translated): New var.
17893 (command_loop_1): Avoid running the direct display versions of
17894 forward-char and backward-char if shift-selection may occur.
17895 (read_key_sequence): Set Vthis_command_keys_shift_translated if
17896 shift-translation takes place.
17897
17898 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
17899 avoid clobbering by define-minor-mode.
17900
17901 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
17902 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
17903
17904 * syntax.c (Fforward_word): Add ^ interactive spec.
17905
17906 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
17907 (Fscroll_right): Add ^ interactive spec.
17908
179092008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
17910
17911 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
17912
17913 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
17914
17915 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
17916
179172008-03-31 Juri Linkov <juri@jurta.org>
17918
17919 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
17920
179212008-03-30 Jan Djärv <jan.h.d@swipnet.se>
17922
17923 * gtkutil.c (xg_set_geometry): Fix indentation.
17924 (xg_resize_outer_widget): Remove.
17925 (x_wm_size_hint_off): Fix indentation.
17926 (xg_frame_set_char_size): Call flush_and_sync after
17927 gtk_window_resize.
17928 (x_wm_set_size_hint): Pass NULL as geometry window to
17929 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
17930 Add menu bar and tool bar height to base height.
17931 (xg_update_frame_menubar, free_frame_menubar)
17932 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
17933 (update_frame_tool_bar, free_frame_tool_bar):
17934 Change xg_resize_outer_widget to xg_frame_set_char_size.
17935
179362008-03-30 Michael Albinus <michael.albinus@gmx.de>
17937
17938 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
17939 (Fdbus_call_method): New parameter TIMEOUT.
17940 (dbus-send-signal): Optimize UNGCPRO call.
17941
179422008-03-29 Juri Linkov <juri@jurta.org>
17943
17944 * window.c (Fdisplay_buffer): Move call to
17945 Vsplit_window_preferred_function out of conditions that check
17946 if window is eligible for vertical splitting.
17947 When Vsplit_window_preferred_function is non-nil, call it and use
17948 its non-nil return value as window. Otherwise, continue doing
17949 vertical splitting using Fsplit_window with arg horflag=nil.
17950 (syms_of_window) <Vsplit_window_preferred_function>: Change the
17951 default value from `split-window' to nil.
17952
179532008-03-29 Juri Linkov <juri@jurta.org>
17954
17955 * callint.c (Fcall_interactively): Revert 2008-03-16 change
17956 for interactive code letters 'b' and 'B'.
17957
179582008-03-29 Eli Zaretskii <eliz@gnu.org>
17959
17960 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
17961 multibyte string.
17962
179632008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
17964
17965 * keyboard.c (pending_funcalls): New var.
17966 (timer_check): Run it.
17967 (syms_of_keyboard): Initialize it.
17968 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
17969 (Vdelete_terminal_functions): New vars.
17970 (syms_of_terminal): Initialize them.
17971 (Fdelete_terminal): Run delete-terminal-functions.
17972 * xdisp.c (safe_eval): Rewrite.
17973 (safe_call2): New fun.
17974 * frame.c (Qdelete_frame_functions): New var.
17975 (syms_of_frame): Initialize it.
17976 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
17977 * lisp.h (safe_call2, pending_funcalls): Declare.
17978
179792008-03-28 Andreas Schwab <schwab@suse.de>
17980
17981 * indent.c (Fmove_to_column): Move declaration before statements.
17982
179832008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
17984
17985 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
17986 (struct frame): Use bit fields for boolean vars.
17987
17988 * process.c (server_accept_connection): Simplify naming.
17989 (emacs_get_tty_pgrp): Use SDATA.
17990
17991 * coding.c (decode_coding_object): Fix last change.
17992
179932008-03-27 Jason Rumney <jasonr@gnu.org>
17994
17995 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
17996
179972008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
17998
17999 * charset.c (Fdefine_charset_internal): Change the way of
18000 registering charsets in Vcharset_order_list.
18001 (syms_of_charset): Make the charset `eight-bit' supplementary.
18002
180032008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
18004
18005 * regex.c (EXTEND_BUFFER): Change order of pointer addition
18006 operations, to avoid having the difference between pointers
18007 overflow.
18008
180092008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
18010
18011 * indent.c (check_display_width): New fun.
18012 (scan_for_column): Use it.
18013
18014 * data.c (syms_of_data): Mark most-positive-fixnum and
18015 most-negative-fixnum as constants.
18016
18017 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
18018
18019 * indent.c (scan_for_column): Extract from current_column_1.
18020 Merge with the same code from Fmove_to_column.
18021 (current_column_1, Fmove_to_column): Use it.
18022
180232008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
18024
18025 * keymap.c (map_keymap_internal): New fun.
18026 (map_keymap): Use it.
18027 (Fmap_keymap_internal): New fun.
18028 (Fmap_keymap): Remove left-out test from before make_save_value.
18029
18030 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
18031
18032 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
18033 Use XCAR/XCDR.
18034
18035 * process.h (struct Lisp_Process): Remove filter_multibyte.
18036 * process.c (QCfilter_multibyte): Remove.
18037 (setup_process_coding_systems): Don't use filter_multibyte.
18038 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
18039 (read_process_output): Don't adjust multibyteness to filter_multibyte.
18040 (Fset_process_filter_multibyte): Change the coding-system to
18041 approximate the previous behavior.
18042 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
18043 coding-system.
18044
18045 * coding.c (decode_coding_object): When not decoding into a buffer,
18046 obey the coding system's preference of (uni|multi)byte.
18047
180482008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
18049
18050 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
18051 every char is changed and has a different byte-length.
18052 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
18053 Fix int -> EMACS_INT.
18054
180552008-03-23 David Hansen <david.hansen@gmx.net>
18056
18057 * dbusbind.c (xd_read_message): Remove extra copying of message
18058 strings. Check for NULL `interface' or `member'.
18059
180602008-03-22 Eli Zaretskii <eliz@gnu.org>
18061
18062 * w32.c (readdir): If FindFirstFile/FindNextFile return in
18063 cFileName a file name that includes `?' characters, use the 8+3
18064 alias in cAlternateFileName instead.
18065
180662008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
18067
18068 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
18069
180702008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
18071
18072 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
18073 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
18074 work on current_buffer only instead (that was already the case
18075 for some of the code anyway).
18076 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
18077 (temp_set_point, temp_set_point_both): Use EMACS_INT.
18078 (SET_PT, SET_PT_BOTH): Adjust.
18079 * intervals.h (set_point, temp_set_point, set_point_both)
18080 (temp_set_point_both): Remove redundant declarations.
18081
180822008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
18083
18084 * fileio.c (Finsert_file_contents):
18085 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
18086 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
18087 when buffer != current_buffer anyway.
18088
180892008-03-20 Andreas Schwab <schwab@suse.de>
18090
18091 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
18092 as default.
18093
180942008-03-19 Jason Rumney <jasonr@gnu.org>
18095
18096 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
18097 (syms_of_w32fns): Initialize them.
18098 (HOURGLASS_ID): New constant.
18099 (x_window_to_frame): Don't check hourglass_window.
18100 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
18101 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
18102 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
18103 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
18104 Only change the cursor if hourglass is not active.
18105 (Fx_create_frame): Initialize frame's current_cursor.
18106 (hourglass_atimer): Remove.
18107 (hourglass_started): New function.
18108 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
18109 (show_hourglass): Adapt to w32, changing argument to frame.
18110
18111 * w32term.h (struct w32_output): Remove hourglass_window.
18112 Add current_cursor.
18113
18114 * eval.c (call_debugger, Fsignal):
18115 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
18116 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
18117 (Fexecute_extended_command, cancel_hourglass_unwind):
18118 * minibuf.c (read_minibuf):
18119 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
18120
181212008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
18122
18123 * window.c (run_funs): New fun.
18124 (run_window_configuration_change_hook): Use it to run the buffer-local
18125 and the global part of the hook.
18126
18127 * xdisp.c (format_mode_line_unwind_data): Add window argument.
18128 (unwind_format_mode_line): Restore selected window.
18129 (x_consider_frame_title, Fformat_mode_line): Set selected window.
18130
181312008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
18132
18133 * editfns.c (Fchar_equal): Check they are valid characters.
18134
18135 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
18136
181372008-03-17 Andreas Schwab <schwab@suse.de>
18138
18139 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
18140 against a charset.
18141
18142 * lisp.h (Fbuffer_list): Declare.
18143
181442008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 18145
aac0c6e3
MR
18146 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
18147 handlebox_widget is != 0.
18148
181492008-03-16 Juri Linkov <juri@jurta.org>
18150
18151 * callint.c (Fcall_interactively): For interactive code letters
18152 'b' and 'B' put the buffer list into the list of default "future"
18153 values of the minibuffer.
18154
181552008-03-16 Andreas Schwab <schwab@suse.de>
18156
18157 * keyboard.c (read_key_sequence): Fix downcasing of letters with
18158 modifiers.
18159
18160 * regex.c (re_match_2_internal): Correct matching of a charset
18161 against latin-1 characters.
18162
181632008-03-16 Kenichi Handa <handa@m17n.org>
18164
18165 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
18166 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
18167 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
18168 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
18169 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
18170 CHAR_STRING_ADVANCE.
18171 (produce_chars): Fix for the case that the source and the
18172 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
18173 instead of CHAR_STRING_ADVANCE.
18174 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
18175 STRING_CHAR_ADVANCE.
18176
181772008-03-15 Andreas Schwab <schwab@suse.de>
18178
18179 * regex.c (re_match_2_internal): Correct matching of eight bit
18180 characters in unibyte strings.
18181
181822008-03-15 Martin Rudalics <rudalics@gmx.at>
18183
18184 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
18185 at end of range when it coincides with the end of the buffer.
18186
181872008-03-14 Eli Zaretskii <eliz@gnu.org>
18188
18189 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
18190
18191 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
18192
181932008-03-14 Jason Rumney <jasonr@gnu.org>
18194
18195 * editfns.c (initial_tz): New variable.
18196 (syms_of_editfns): Initialize it.
18197 (Fset_time_zone_rule): Set it when first called.
18198 Use it when TZSTRING is nil.
18199
18200 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
18201 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
18202 (monitor_from_point_fn, get_monitor_info_fn): New globals.
18203 (globals_of_w32fns): Initialize them.
18204 (compute_tip_xy): Use them to position tooltips.
18205
182062008-03-14 Glenn Morris <rgm@gnu.org>
18207
18208 * emacs.c (main): Revert previous change.
18209 (standard_args): Revert -internal-script back to -scriptload,
18210 and remove the long-option form.
18211
182122008-03-13 Glenn Morris <rgm@gnu.org>
18213
18214 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
18215 Remove option -enable-font-backend.
18216
182172008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
18218
18219 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
18220
182212008-03-11 Jan Djärv <jan.h.d@swipnet.se>
18222
18223 * xterm.c (x_connection_closed): For GTK: If this is the last
18224 terminal just exit without closing the display.
18225
182262008-03-11 Jason Rumney <jasonr@gnu.org>
18227
18228 * w32font.c (w32font_full_name): Use floor to round.
18229
f0131492 182302008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
18231
18232 * sound.c (alsa_configure): Declare vol at beginning of block.
18233
18234 * fontset.c (Ffontset_info): Remove extra semicolon.
18235
182362008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
18237
18238 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
18239 size of resulting string.
18240
182412008-03-10 Jason Rumney <jasonr@gnu.org>
18242
18243 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
18244
182452008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18246
18247 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
18248 Don't pretend as if characters with display property haven't been
18249 consumed for string-replacing-string case.
18250
182512008-03-08 Kim F. Storm <storm@cua.dk>
18252
18253 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
18254 (get_next_display_element, next_element_from_string)
18255 (next_element_from_ellipsis, next_element_from_buffer): Use it.
18256
182572008-03-08 Andreas Schwab <schwab@suse.de>
18258
18259 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
18260
182612008-03-06 Jason Rumney <jasonr@gnu.org>
18262
18263 * w32font.c (w32_registry): Take font_type argument. Use ANSI
18264 when charset not specified. Only translate ANSI to unicode when
18265 font_type is truetype.
18266 (w32font_coverage_ok): New function.
18267 (add_font_entity_to_list): Use it to filter unsuitable fonts.
18268
182692008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
18270
18271 * lread.c (Fread_char): Resolve modifiers.
18272 (Fread_char_exclusive): Likewise.
18273
18274 * character.c (char_resolve_modifier_mask): New function.
18275 (char_string): Use char_resolve_modifier_mask.
18276 (Fchar_resolve_modifiers): New function.
18277 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
18278 function.
18279
182802008-03-04 Jason Rumney <jasonr@gnu.org>
18281
18282 * makefile.w32-in: Always include w32font.c in the build.
18283 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
18284
182852008-03-04 Andreas Schwab <schwab@suse.de>
18286
18287 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
18288 (versionclean): Likewise.
18289
182902008-03-04 Juanma Barranquero <lekktu@gmail.com>
18291
18292 * .cvsignore: Add oo.
18293
182942008-03-03 Andreas Schwab <schwab@suse.de>
18295
18296 * coding.c (decode_coding_object): Inhibit gap shrinking while
18297 decoding in place.
18298
182992008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
18300
18301 * w32term.c: Remove unused include "gnu.h".
18302 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
18303
18304 * gnu.h: Rename to ...
18305 * emacs-icon.h: ... this.
18306 * xterm.c: Use emacs-icon.h instead of gnu.h.
18307 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
18308
183092008-03-03 Juanma Barranquero <lekktu@gmail.com>
18310
18311 * w32font.c: Include math.h.
18312
183132008-03-03 Jason Rumney <jasonr@gnu.org>
18314
18315 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
18316 Compute options separately.
18317 (w32font_open_internal): Set glyph_idx before caching metrics.
18318
18319 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
18320 Define if system headers don't.
18321 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
18322 (w32font_encode_char): Don't declare here.
18323
18324 * w32font.c (Quniscribe, QCformat): New symbols.
18325 (syms_of_w32font): Define them.
18326 (w32font_has_char): Indicate uncertainty.
18327 (w32font_encode_char): Encode as glyph point. Make static.
18328 (recompute_cached_metrics): New function.
18329 (w32font_open_internal): Use it. Set font to use glyph points
18330 initially. Set format based on type of font.
18331 (w32font_text_extents, w32font_draw): Optionally use glyph points.
18332 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
18333 on it. Set format based on information available here.
18334 (add_font_entity_to_list): Identify backend based on opentype_only.
18335
183362008-03-02 Andreas Schwab <schwab@suse.de>
18337
18338 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
18339
18340 * coding.c (decode_coding_big5, produce_chars):
18341 Fix typos in last change.
18342
183432008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
18344
18345 * gnu.h: New icon.
18346
183472008-03-02 Kenichi Handa <handa@m17n.org>
18348
18349 * coding.c (decode_coding_utf_8): When eol-type of CODING is
18350 `dos', don't decode '\r' if that is the last in the source.
18351 (decode_coding_utf_16, decode_coding_emacs_mule)
18352 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18353 (decode_coding_raw_text, decode_coding_charset): Likewise.
18354 (produce_chars): Don't decode EOL here. Use EMACS_INT.
18355
183562008-03-01 Jason Rumney <jasonr@gnu.org>
18357
18358 * w32font.c (w32font_full_name): Report point size for scalable fonts.
18359
183602008-03-01 Kim F. Storm <storm@cua.dk>
18361
18362 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
18363
183642008-03-01 Jason Rumney <jasonr@gnu.org>
18365
18366 * w32font.c (w32font_full_name): New function.
18367 (w32font_open_internal): Use it.
18368
183692008-03-01 Kim F. Storm <storm@cua.dk>
18370
18371 * dispnew.c (line_draw_cost): Fix invalid glyph check.
18372
183732008-03-01 Jason Rumney <jasonr@gnu.org>
18374
18375 * font.c (font_unparse_fcname): Increase len when style is a symbol.
18376
183772008-03-01 Jan Djärv <jan.h.d@swipnet.se>
18378
18379 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
18380 xg_frame_resized when the event is for the edit widget.
18381
18382 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
18383
18384 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
18385 set_char_size.
18386 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
18387 operations on widgets here. Just set frame size if needed.
18388 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
18389 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
18390 (x_wm_set_size_hint): Set size hints on the edit widget only, not
18391 the whole frame.
18392 (xg_create_tool_bar): Move attachment of the tool bar to
18393 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
18394 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
18395
183962008-03-01 Jason Rumney <jasonr@gnu.org>
18397
18398 * w32fns.c (w32_msg_pump): Disable debug code.
18399
184002008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18401
18402 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
18403
184042008-02-29 Chong Yidong <cyd@stupidchicken.com>
18405
18406 * xdisp.c (next_overlay_string): Don't set
18407 overlay_strings_at_end_processed_p if we're currently reading from
18408 a display string.
18409
184102008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
18411
18412 * xdisp.c (get_overlay_strings_1): Fix typo.
18413
184142008-02-29 Chong Yidong <cyd@stupidchicken.com>
18415
18416 * xdisp.c (get_overlay_strings_1): Add missing argument type.
18417
184182008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
18419
18420 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
18421
18422 * xdisp.c (display_mode_element): Cancel the previous change.
18423 (decode_mode_spec): Likewise.
18424 (handle_auto_composed_prop): Don't make composition if it->string
18425 is a string.
18426
184272008-02-27 Kim F. Storm <storm@cua.dk>
18428
18429 * lisp.h (GLYPH): Change type from int to struct with separate char
18430 and face_id members.
18431 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
18432 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
18433 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
18434 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
18435 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
18436 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
18437 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
18438 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
18439 handle new Lisp glyph code encoding, either an integer or a cons.
18440
18441 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
18442 (GLYPH_ALIAS): Delete.
18443 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
18444 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
18445 (GLYPH_FROM_CHAR): Replace macro by ...
18446 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
18447
18448 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
18449 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
18450 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
18451 (GLYPH_INVALID_P): New macro.
18452 (spec_glyph_lookup_face): Update prototype.
18453
18454 * dispnew.c (line_draw_cost): Adapt to new glyph type.
18455 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
18456 new glyph code encoding.
18457 (spec_glyph_lookup_face): No return value; update passed glyph instead.
18458 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
18459
18460 * xdisp.c (get_next_display_element, next_element_from_display_vector):
18461 Adapt to new glyph type and new glyph code encoding.
18462
18463 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
18464
18465 * indent.c (current_column, current_column_1, Fmove_to_column)
18466 (compute_motion): Adapt to new glyph code encoding.
18467
18468 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
18469
184702008-02-27 Chong Yidong <cyd@stupidchicken.com>
18471
18472 * process.c (wait_reading_process_output): Check for window
18473 changes caused by timers.
18474 Suggested by Johan Bockgård.
18475
184762008-02-27 Glenn Morris <rgm@gnu.org>
18477
18478 * emacs.c (USAGE1): Add `--disable-font-backend'.
18479
184802008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
18481
18482 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
18483 is made to the buffer.
18484
184852008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
18486
18487 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
18488 (face_at_string_position):
18489 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
18490 (face_at_string_position):
18491 * xdisp.c (display_string, next_overlay_change):
18492 * buffer.h (overlays_at):
18493 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
18494 Update callers.
18495
184962008-02-26 Chong Yidong <cyd@stupidchicken.com>
18497
18498 * editfns.c (Fformat): Doc fix.
18499
185002008-02-26 Juanma Barranquero <lekktu@gmail.com>
18501
18502 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
18503 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
18504 (Ffont_otf_alternates, Fquery_font): Doc fixes.
18505
185062008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18507
18508 * buffer.c (Fbuffer_swap_text): New function.
18509 (syms_of_buffer): Defsubr it.
18510
185112008-02-25 Chong Yidong <cyd@stupidchicken.com>
18512
18513 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
18514
185152008-02-25 Jason Rumney <jasonr@gnu.org>
18516
18517 * w32font.c (w32font_draw): Draw one character at a time when padding.
18518
185192008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18520
18521 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
18522 Handle a nil arg. Use run_window_configuration_change_hook.
18523 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
18524 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
18525 Use run_window_configuration_change_hook.
18526
185272008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18528
18529 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
18530 1-pixel width.
18531
185322008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18533
18534 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
18535 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
18536 if the glyph in the font is zero pixel with.
18537
18538 * dispextern.h (struct glyph_string): New member padding_p.
18539
18540 * w32font.c (w32font_draw): Pay attention to s->padding_p.
18541
18542 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
18543
18544 * xfont.c (xfont_draw): Pay attention to s->padding_p.
18545
18546 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
18547
18548 * font.c: If the font driver doesn't have `shape' function, return Qnil.
18549
185502008-02-25 Jason Rumney <jasonr@gnu.org>
18551
18552 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
18553
185542008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
18555
18556 Allow fine-grained image-cache flushing.
18557 * dispextern.h (struct image): Add `dependencies' field.
18558 (clear_image_caches): Change arg to Lisp_Object.
18559 * image.c (make_image): Initialize `dependencies' field.
18560 (clear_image_cache): Change arg to allow fine-grained flushing.
18561 Perform the flush even if image-cache-eviction-delay is nil.
18562 (clear_image_caches): Change arg to Lisp_Object.
18563 (Fclear_image_cache): Expand meaning of the argument.
18564 (mark_image): Mark `dependencies' field.
18565 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
18566 (lface_hash): Use XHASH rather than XFASTINT.
18567 (face_at_buffer_position): Fix int -> EMACS_INT position.
18568 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
18569 (select_frame_for_redisplay): Remove code duplication.
18570 (redisplay_internal): Adapt arg to call to clear_image_caches.
18571
185722008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
18573
18574 * s/vms4-0.h:
18575 * s/vms4-2.h:
18576 * s/vms4-4.h:
18577 * s/vms5-5.h: Remove, unused.
18578
18579 * s/irix5-2.h:
18580 * s/irix6-0.h:
18581 * s/riscos5.h:
18582 * s/mach-bsd4-3.h:
18583 * m/mips4.h: Remove files for obsolete systems.
18584
18585 * Makefile.in:
18586 * filelock.c:
18587 * unexmips.c:
18588 * m/hp9000s300.h:
18589 * m/iris4d.h:
18590 * s/aix3-1.h:
18591 * s/hpux.h:
18592 * s/msdos.h:
18593 * s/usg5-0.h:
18594 * s/usg5-2-2.h:
18595 * s/usg5-2.h:
18596 * s/usg5-3.h: Remove references to obsolete variables.
18597
18598 * s/irix5-0.h: Remove, move all the contents ...
18599 * s/irix6-5.h: ... here. Simplify.
18600 * config.in: Regenerate.
18601
186022008-02-24 Jason Rumney <jasonr@gnu.org>
18603
18604 * w32term.c (x_draw_glyph_string_background): Clear the background
18605 manually when cleartype is in use.
18606 (x_draw_glyph_string_foreground): Draw text transparently when
18607 cleartype is in use.
18608
18609 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
18610 a font into it unless we have to.
18611
186122008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18613
18614 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
18615 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 18616
aac0c6e3
MR
186172008-02-18 Jason Rumney <jasonr@gnu.org>
18618
18619 * w32fns.c (Fw32_shell_execute): Encode parameters.
18620
186212008-02-09 Eli Zaretskii <eliz@gnu.org>
18622
18623 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
18624
186252008-02-05 Juanma Barranquero <lekktu@gmail.com>
18626
18627 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
18628
186292008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
18630
18631 * xterm.c (x_set_offset): Don't change the gravity if
18632 CHANGE_GRAVITY is -1.
18633
186342008-02-23 Chong Yidong <cyd@stupidchicken.com>
18635
18636 * fileio.c (auto_save_error_occurred): New var.
18637 (auto_save_error): Set it.
18638 (Fdo_auto_save): Don't overwrite the error message if an auto-save
18639 error occurred.
18640
186412008-02-23 Eli Zaretskii <eliz@gnu.org>
18642
18643 * w32.c (globals_of_w32): Add initializations for
18644 g_b_init_get_sid_sub_authority and
18645 g_b_init_get_sid_sub_authority_count.
18646
186472008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
18648
18649 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
18650 (font_parse_xlfd): Use them for sanity check.
18651 (Finternal_set_font_style_table): Make sure the table is bijective.
18652
18653 Consolidate the image_cache to the terminal struct.
18654 * termhooks.h (P_): Remove redundant def.
18655 (struct terminal): New field `image_cache'.
18656 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
18657 of FRAME_X_IMAGE_CACHE.
18658 * xterm.h (struct x_display_info): Remove image_cache field.
18659 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18660 * w32term.h (struct w32_display_info): Remove image_cache field.
18661 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18662 * macterm.h (struct mac_display_info): Remove image_cache field.
18663 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18664 * xterm.c (x_term_init):
18665 * w32term.c (w32_term_init):
18666 * macterm.c (mac_term_init): Set the image_cache in the terminal.
18667 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
18668 Remove declarations.
18669 (clear_image_caches, mark_image_cache): New declarations.
18670 * xfaces.c (clear_face_cache):
18671 * xdisp.c (redisplay_internal): Use clear_image_caches.
18672 * image.c (clear_image_cache): Don't check that a frame is on
18673 a window-system before checking if it shares the same cache.
18674 (clear_image_caches): New function.
18675 (Fclear_image_cache): Use it.
18676 (mark_image): Move from allo.c.
18677 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
18678 * alloc.c (mark_image, mark_image_cache): Move to image.c.
18679 (mark_object): Don't call mark_image_cache for frames.
18680 (mark_terminals): Call mark_image_cache.
18681
18682 * lisp.h (Fdelete_terminal): Declare.
18683
18684 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
18685 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
18686 wrong_type_argument.
18687
186882008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
18689
18690 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
18691 malayalam.el, and tamil.el. Add sinhala.el.
18692
186932008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
18694
18695 * xterm.c (x_connection_closed): Consolidate identical tests.
18696 (x_delete_terminal): Don't crash if called via x_connection_closed.
18697
186982008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
18699
18700 * xdisp.c (decode_mode_spec): New arg string.
18701 (display_mode_element): Adjust for the above change.
18702
187032008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18704
18705 * callint.c (Fcall_interactively): Use AREF.
18706
187072008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
18708
18709 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
18710
187112008-02-18 Jan Djärv <jan.h.d@swipnet.se>
18712
18713 * xfns.c (Fx_show_tip): Set string to " " if empty.
18714
187152008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
18716
18717 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
18718 with Qt.
18719
187202008-02-17 Kenichi Handa <handa@m17n.org>
18721
18722 * ftfont.c (ftfont_shape): Return Lispy number.
18723
18724 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
18725 for GCs.
18726 (Finternal_set_font_selection_order): Call font_update_sort_order
18727 only when enable_font_backend is set.
18728 (realize_x_face): Set face->font_info to that of default face only
18729 when enable_font_backend is set.
18730
18731 * xdisp.c (handle_composition_prop): Set it->c to the fist
18732 character of the composed region.
18733 (fill_composite_glyph_string): Set base_face->font_info to
18734 s->font_info. Get a face for ascii from base_face->ascii_face.
18735 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
18736 with a face already decided.
18737 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
18738 non-negative.
18739 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
18740 call font_prepare_composition unconditionally.
18741
18742 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
18743
18744 * xterm.h (struct x_display_info): New member font.
18745
18746 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
18747 (x_set_mouse_face_gc, x_new_font): Likewise.
18748 (x_term_init): Setup display_info->font.
18749 (x_delete_terminal): Free display_info->font.
18750
18751 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
18752
18753 * ftxfont.c (ftxfont_default_fid): Delete it.
18754 (ftxfont_open): Set xfont->fid to 0.
18755 (ftxfont_end_for_frame): Clear data specific to the frame and the
18756 font-driver.
18757
18758 * xftfont.c (xftfont_default_fid): Delete it.
18759 (xftfont_open): Set xfont->fid to 0.
18760
18761 * fontset.c (FONTSET_OBJLIST): New macro.
18762 (fontset_find_font): Update font-object list of the fontset.
18763 (free_realized_fontset): New function.
18764 (free_face_fontset): Call free_realized_fontset.
18765 (Ffont_info): Call font_close_object only when enable_font_backend
18766 is set.
18767
18768 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
18769 [HAVE_NTGUI]: Include w32term.h.
18770 [MAC_OS]: Include macterm.ch.
18771 (font_otf_ValueRecord): Use make_number.
18772 (font_finish_cache): Fix handling of reference count.
18773 (font_clear_cache): Update num_fonts.
18774 (font_open_entity): Update smallest_char_width and
18775 smallest_font_height of the frame.
18776 (font_close_object): Update num_fonts.
18777 (Fclear_font_cache): Fix finding the target cache data.
18778
187792008-02-16 Glenn Morris <rgm@gnu.org>
18780
18781 * fontset.c (Finternal_char_font): Fix compilation warning.
18782
187832008-02-16 Eli Zaretskii <eliz@gnu.org>
18784
18785 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
18786 instead of char arrays. Enlarge the size of array passed to
18787 get_token_information.
18788
18789 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
18790 warnings.
18791
187922008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
18793
18794 * .gdbinit: Don't set `args', it breaks gdb --args.
18795
187962008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
18797
18798 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
18799 within a narrowed buffer.
18800
188012008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
18802
18803 * coding.c (decode_coding_object, encode_coding_object):
18804 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
18805
188062008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
18807
18808 * coding.c (coding_set_destination): Use BEG_BYTE rather than
18809 hardcoding 1.
18810 (detect_coding_system):
18811 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
18812 (string_char_to_byte, string_byte_to_char, insert_from_gap):
18813 * insdel.c (insert_from_gap):
18814 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
18815 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
18816 (string_to_multibyte):
18817 * character.c (chars_in_text, multibyte_chars_in_text):
18818 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
18819
18820 * character.h (FETCH_STRING_CHAR_ADVANCE)
18821 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
18822 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
18823 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
18824
18825 * casefiddle.c (casify_region): Only call after-change and composition
18826 functions on the part of the region that was changed.
18827
18828 * keyboard.c (read_avail_input):
18829 * frame.c (Fdelete_frame): Call Fdelete_terminal.
18830
188312008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18832
18833 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
18834 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
18835
188362008-02-11 Juanma Barranquero <lekktu@gmail.com>
18837
18838 * w32menu.c (push_submenu_start, push_submenu_end)
18839 (push_left_right_boundary, push_menu_pane, push_menu_item):
18840 * keyboard.c (read_key_sequence): Don't pass args with side effects
18841 to AREF, it fails when compiling with -DENABLE_CHECKING.
18842
188432008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
18844
18845 * Makefile.in (${lispsource}international/charprop.el):
18846 Delete this target.
18847
18848 * search.c (boyer_moore): Fix incorrect synching of the trunk and
18849 emacs-unicode-2.
18850
188512008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18852
18853 * terminal.c (Fdelete_terminal): Clean up the `force' path.
18854
188552008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18856
18857 * frame.c (Qnoelisp): New symbol.
18858 (syms_of_frame): Initialize it.
18859 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
18860 harmless Elisp code, from a strong `force' from x_connection_closed.
18861 * frame.h (Qnoelisp): Declare.
18862 * xterm.c (x_connection_closed): Pass `noelisp'.
18863
18864 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
18865 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
18866 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
18867 rather than `int' for the type of `type'.
18868
188692008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
18870
18871 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
18872
18873 * Makefile.in (GNUC): Remove support for gcc-1.x.
18874
188752008-02-10 Richard Stallman <rms@gnu.org>
18876
18877 * lisp.h (ASET): Use AREF, not ASLOT.
18878
188792008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18880
18881 * lisp.h (ASET): Check bounds.
18882
188832008-02-10 Glenn Morris <rgm@gnu.org>
18884
18885 * buffer.c (mode-name): Doc fix.
18886
188872008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18888
18889 * Makefile.in:
18890 * emacs.c:
18891 * gmalloc.c:
18892 * keyboard.c:
18893 * lisp.h:
18894 * m/ibm370aix.h:
18895 * process.c:
18896 * regex.c:
18897 * s/hpux.h:
18898 * sysdep.c:
18899 * sysselect.h:
18900 * systty.h:
18901 * unexec.c:
18902 * w32term.c:
18903 * xsmfns.c:
18904 * xterm.c: Remove code that deals with obsolete variables.
18905
18906 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
18907
18908 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
18909 nothing else needs it anymore.
18910
189112008-02-09 Eli Zaretskii <eliz@gnu.org>
18912
18913 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
18914 instead of unibyte_char_to_multibyte.
18915
189162008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18917
18918 * s/gnu-linux.h: Remove commented out code.
18919
18920 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
18921
18922 * Makefile.in: Update what RMS says about using autoconf.
18923 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
18924 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
18925 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
18926 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
18927
189282008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
18929
18930 * keymap.c (Fkey_description): Move side effect outside of macro call.
18931
18932 * xfaces.c (Finternal_make_lisp_face):
18933 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
18934
18935 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
18936 (syms_of_fontset): Use ASET.
18937
18938 * fns.c (concat): Move side effect outside of macro call.
18939 (hash_clear): Use ASET.
18940
189412008-02-08 Richard Stallman <rms@gnu.org>
18942
18943 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
18944 If FORCE, and frame has a surrogate minibuffer for another frame,
18945 delete the other frame first.
18946
189472008-02-07 Timo Savola <timo.savola@iki.fi>
18948
18949 * xterm.c (x_detect_focus_change): Handle embed client message.
18950 (handle_one_xevent): Ditto.
18951 (handle_one_xevent): If embedded and we get a button press/release,
18952 request focus.
18953 (xembed_set_info, xembed_send_message): New functions.
18954 (x_make_frame_visible): Call xembed_set_info if embedded.
18955 (x_make_frame_invisible): Call xembed_set_info if embedded.
18956 (x_term_init): Initialize Xatom_XEMBED.
18957 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
18958 (x_iconify_frame): Ditto.
18959
18960 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
18961 (enum xembed_info, enum xembed_message, enum xembed_focus)
18962 (enum xembed_modifier, enum xembed_accelerator): New.
18963 (xembed_set_info, xembed_send_message): Declare.
18964 (FRAME_X_EMBEDDED_P): New.
18965
18966 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
18967 gtk_plug_new.
18968
18969 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
18970 window ID of a frame.
18971 (x_window): Reparent frame if embedded.
18972 (Fx_create_frame): Don't set border width if embedded.
18973
18974 * emacs.c (USAGE3): Add --parent-id.
18975 (standard_args): Ditto.
18976
189772008-02-07 Jan Djärv <jan.h.d@swipnet.se>
18978
18979 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
18980
189812008-02-07 Jim Meyering <meyering@redhat.com>
18982
18983 Use "do...while (0)", not "if (1)...else" in macro definitions.
18984 The latter provokes a warning from gcc about the empty else, when
18985 followed by ";". Also, without that trailing semicolon, it would
18986 silently swallow up any following statement.
18987 * syntax.h (SETUP_SYNTAX_TABLE)
18988 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
18989 * buffer.h (DECODE_POSITION): Likewise.
18990 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
18991 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
18992 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
18993 (FETCH_CHAR_ADVANCE): Likewise.
18994 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
18995
189962008-02-07 Jim Meyering <meyering@redhat.com>
18997
18998 * lread.c [lint]: Don't include <sys/inode.h>.
18999
190002008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
19001
19002 * xselect.c (x_handle_dnd_message):
19003 * xmenu.c (digest_single_submenu, xmenu_show):
19004 * xdisp.c (with_echo_area_buffer_unwind_data)
19005 (format_mode_line_unwind_data, unwind_format_mode_line)
19006 (display_menu_bar):
19007 * eval.c (Ffetch_bytecode):
19008 * doc.c (store_function_docstring):
19009 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
19010 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
19011 * buffer.c (add_overlay_mod_hooklist): Use ASET.
19012
190132008-02-07 Kenichi Handa <handa@m17n.org>
19014
19015 * ftxfont.c (ftxfont_open): Don't set
19016 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
19017
19018 * ftfont.c (ftfont_open): Fix previous change.
19019
190202008-02-06 Jason Rumney <jasonr@gnu.org>
19021
19022 * w32font.c (w32font_text_extents): Fill in lbearing metric.
19023 Use cached metrics for ASCII characters.
19024 (w32font_open_internal): Don't set font's owning_frame.
19025 Cache metrics for ASCII characters.
19026
19027 * w32font.h (struct w32font_info): Add ascii_metrics.
19028 Remove owning_frame.
19029
190302008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
19031
19032 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
19033 to negative value.
19034
19035 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
19036
19037 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
19038
19039 * charset.c (syms_of_charset): Set QCtest and Qeq.
19040
190412008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
19042
19043 * process.c (Fstart_process):
19044 * callproc.c (Fcall_process): Handle the case where
19045 Funhandled_file_name_directory returns nil.
19046
19047 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
19048 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
19049 * font.c (check_gstring): Use them and AREF to access the vector before
19050 we know it's really a gstring.
19051 (Ffont_shape_text): Fix typo.
46e722a9 19052 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
19053
19054 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
19055 Declare.
19056
19057 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
19058
190592008-02-05 Jason Rumney <jasonr@gnu.org>
19060
19061 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
19062 Set smallest_font_height and smallest_char_width in display info.
19063
190642008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
19065
19066 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
19067
190682008-02-05 Miles Bader <miles@gnu.org>
19069
19070 * xfaces.c (get_lface_attributes, merge_named_face)
19071 (lookup_named_face, lookup_derived_face, realize_named_face):
19072 Revert 2008-02-01 change by cyd@stupidchicken.com.
19073
190742008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
19075
19076 * fontset.c (Ffontset_info): Handle the case of inhibitting the
19077 fallback fonts.
19078 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
19079
190802008-02-04 Jason Rumney <jasonr@gnu.org>
19081
19082 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
19083 set full_name.
19084 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
19085
190862008-02-03 Jason Rumney <jasonr@gnu.org>
19087
19088 * makefile.w32-in (OBJ1): Include font.o here.
19089 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
19090
190912008-02-02 Jason Rumney <jasonr@gnu.org>
19092
19093 * makefile.w32-in (temacs): Bump EMHEAP to 21.
19094
190952008-02-01 Jason Rumney <jasonr@gnu.org>
19096
19097 * s/cygwin.h: Define VIRT_ADDR_VARIES.
19098
19099 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
19100
191012008-02-01 Andreas Schwab <schwab@suse.de>
19102
19103 * Makefile.in (shortlisp, lisp): Update for rename of
19104 ../lisp/language/myanmar.el.
19105
191062008-02-01 Chong Yidong <cyd@stupidchicken.com>
19107
19108 * xfaces.c (get_lface_attributes): Delete function.
19109 (merge_named_face, lookup_named_face, lookup_derived_face)
19110 (realize_named_face): Call lface_from_face_name directly, and use
19111 the fact that merge_face_vectors does not alter its FROM argument.
19112
191132008-02-01 Jason Rumney <jasonr@gnu.org>
19114
19115 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
19116 input in the default locale. Handle non-Unicode multibyte input.
19117
191182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19119
19120 * fontset.c (reorder_font_vector): Exclude nil elements from the
19121 font group. Don't try multiple fonts.
19122 (fontset_font): Adjust for the above change.
19123 (Finternal_char_font): Return nil if the found font doesn't
19124 contain the character ch.
19125
19126 * Makefile.in (lisp, shortlisp): Add cham.el.
19127
191282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19129
19130 * font.h (FONTP): Make it return 1 also for a font-object.
19131
19132 * .gdbinit (xfontset): New function.
19133
19134 * font.c (font_find_for_lface): Check if the character C is
19135 supported or not only for the first font.
19136
19137 * fontset.c (reorder_font_vector): Fix typo.
19138 (fontset_find_font): Don't add a font-spec specifying a script.
19139 Use 0 (not Qt) for the indication of empty font-group. Change the
19140 format of RFONT-DEF. Return Qt if no font in the font-group
19141 support the character.
19142 (fontset_font): Adjust for the above change. If no font was
19143 found the character, remember that.
19144 (face_for_char): Adjust for the change of RFONT-DEF.
19145 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
19146 no font for the target.
19147 (Finternal_char_font): Adjust for the change of RFONT-DEF.
19148
191492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19150
19151 * font.c (font_load_for_face): Handle the case that the font in
19152 face->lface is a string.
19153
191542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19155
19156 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
19157
191582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19159
19160 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
19161 Fix previous change. If the frame is not on a window system,
19162 signal an error.
19163
191642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19165
19166 * coding.c (decode_coding_object, encode_coding_object): Adjust
19167 marker positions after conversion.
19168
19169 * lisp.h (struct Lisp_Marker): New member need_adjustment.
19170
191712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19172
19173 * font.c (font_find_for_lface): Fix the handling of the return
19174 value of font_has_char.
19175 (Ffont_shape_text): Fix previous change.
19176
19177 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
19178 (fontset_ref_and_range): Delete it.
19179 (fontset_find_font): Call char_table_ref_and_range instead of
19180 FONTSET_REF_AND_RANGE.
19181 (make_fontset): Don't setup font groups of Latin here.
19182 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
19183 (new_fontset_from_font): Make the specified font the default for
19184 all Latin characters.
19185
191862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19187
19188 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
19189 is on a window system before accessing the fontset of the frame.
19190
191912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19192
19193 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
19194
19195 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
19196 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
19197
19198 * font.c (Ffont_shape_text): If the font driver doesn't have a
19199 shaper function, make zero-width glyphs to have at least one-pixel
19200 width. Fix setting of `to' field of glyphs.
19201
192022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19203
19204 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
19205 glyphs.
19206
19207 * font.h (struct font_driver): Improve docstring of member `shape'.
19208
192092008-02-01 Kenichi Handa <handa@m17n.org>
19210
19211 * composite.c (syms_of_composite): Fix docstring of
19212 auto-composition-function.
19213
19214 * font.h (LGLYPH_SIZE): New macro.
19215
19216 * font.c (Ffont_fill_gstring): Stop filling when a character not
19217 supported by the font is found.
19218 (Ffont_shape_text): When a shape callback function returns nil,
19219 try at most two more times with larger gstring.
19220 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
19221
19222 * xdisp.c (handle_auto_composed_prop): Change the argument to
19223 auto-composition-function.
19224
19225 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
19226 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
19227 Lispy glyph and store it in the lgstring.
19228
19229 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
19230
19231 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
19232
192332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19234
19235 * font.c (Ffont_shape_text): Avoid unnecessary composition.
19236
19237 * fontset.c (Vfont_encoding_charset_alist): New variable.
19238 (syms_of_fontset): DEFVAR it.
19239 (reorder_font_vector, fontset_find_font): Optimize for the case of
19240 no need of reordering.
19241 (face_for_char): Map the charset property by
19242 Vfont_encoding_charset_alist.
19243
192442008-02-01 Jason Rumney <jasonr@gnu.org>
19245
19246 * w32font.c (logfonts_match): Don't check adstyle here.
19247 (font_matches_spec): Check here against physical font instead.
19248 (add_font_entity_to_list): Avoid some substitutions.
19249
19250 * font.c (font_parse_fcname): Default weight and slant to normal.
19251 (font_score): Prefer normal fonts if weight or slant unspecified.
19252 (font_score) [WINDOWSNT]: Scale weight difference down to closer
19253 match freetype scores.
19254
192552008-02-01 Jason Rumney <jasonr@gnu.org>
19256
19257 * w32font.c (w32font_text_extents): Don't use the frame stored in the
19258 font, as it may have been deleted.
19259 (w32_enumfont_pattern_entity): Map generic family to adstyle using
19260 most common hyphenless variation.
19261 (logfonts_match): Check generic family.
19262 (font_matches_spec): Don't check generic family here.
19263 (fill_in_logfont): Set generic family based on adstyle.
19264
19265 * w32font.h (w32font_get_cache): Update declaration.
19266
192672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19268
19269 * ftfont.c (ftfont_get_cache): Adjust the argument type.
19270
19271 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
19272 If none of the new drivers are available, call font_update_drivers
19273 with the old drivers.
19274
19275 * w32font.c (w32font_get_cache): Adjust the argument type.
19276
19277 * xfont.c (xfont_get_cache): Adjust the argument type.
19278
19279 * font.h (struct font_driver): Change argument type of get_cache.
19280
19281 * xftfont.c (xftfont_start_for_frame): Delete prototype.
19282
19283 * font.c (Ffont_get): Fix arguments to Fassoc.
19284 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
19285 (font_clear_cache): New function.
19286 (font_list_entities, font_matching_entity): Use font_get_cache.
19287 (font_update_drivers): Call font_clear_cache when finishing a driver.
19288
19289 * fontset.c (fontset_find_font): Fix previous change.
19290
192912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19292
19293 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
19294 dpyinfo->font_table.
19295 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
19296 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
19297
19298 * font.c (font_at): Handle the case that the arg C is negative.
19299 Handle the unibyte case.
19300 (Ffont_at): Call font_at with the arg C -1.
19301
19302 * xdisp.c (handle_auto_composed_prop): Don't get a character at
19303 the position here, and call font_at with the arg C -1.
19304 Don't check the range of the existing composition at the point.
19305
193062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19307
19308 * fontset.c (fontset_add): New args charset_id and family.
19309 Change caller.
19310 (load_font_get_repertory, fontset_find_font): Assume that
19311 font_spec is always a font-spec object.
19312 (Fset_fontset_font): Always store a font-spec object in a fontset.
19313
19314 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
19315 instead of get_property_and_range.
19316
193172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19318
19319 * xftfont.c (struct xftfont_info): Delete the member ft_face.
19320 (xftfont_open): Don't keep locking face.
19321 (xftfont_close): Don't unlock face.
19322 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
19323
19324 * fontset.c (fontset_find_font): Don't prefer a font of
19325 supplementary charset.
19326
193272008-02-01 Kenichi Handa <handa@m17n.org>
19328
19329 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
19330 script, langsys_tag to langsys, new member script.
19331 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 19332 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
19333 listing to the script specified in that property. Fix arg to
19334 OTF_check_features.
19335
193362008-02-01 Jason Rumney <jasonr@gnu.org>
19337
19338 * w32font.h: New file.
19339
19340 * w32font.c: Include it.
19341 (struct w32font_info): Add owning_frame field. Move to w32font.h.
19342 (w32font_open): Set owning_frame.
19343 (w32font_text_extents): Use owning_frame.
19344 (struct font_callback_data): Add opentype_only field.
19345 (add_font_entity_to_list): Use it to filter fonts.
19346 Don't check against full name.
19347 (w32font_list_internal): New function.
19348 (w32font_list): Use it.
19349 (w32font_match_internal): New function.
19350 (w32font_match): Use it.
19351 (w32font_open_internal): New function.
19352 (w32font_open): Use it.
19353 (w32font_get_cache, w32font_close, w32font_has_char)
19354 (w32font_encode_char, w32font_text_extents, w32font_draw):
19355 Make non-static.
19356
19357 * makefile.w32-in (w32font.o): Depend on w32font.h.
19358
193592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19360
19361 * charset.c (Fdefine_charset_internal): Record a supplementary
19362 charset at the tail of Vcharset_order_list.
19363
19364 * font.c (Ffont_shape_text): Fix the return value.
19365
19366 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
19367
19368 * xdisp.c (handle_auto_composed_prop): Fix previous change.
19369
193702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19371
19372 * ftfont.c (struct OpenTypeSpec): New struct.
19373 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
19374 (ftfont_get_open_type_spec): New function.
19375 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
19376
19377 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
19378
193792008-02-01 Jason Rumney <jasonr@gnu.org>
19380
19381 * w32font.c (add_font_entity_to_list): Compare only the beginning
19382 of full name.
19383
193842008-02-01 Kenichi Handa <handa@m17n.org>
19385
19386 * xdisp.c (handle_auto_composed_prop): Simplify the code.
19387 Never return HANDLED_RECOMPUTE_PROPS.
19388
193892008-02-01 Kenichi Handa <handa@m17n.org>
19390
19391 * font.c (font_gstring_produce): Delete it.
19392
19393 * composite.h (COMPOSITION_METHOD):
19394 Handle COMPOSITION_WITH_GLYPH_STRING.
19395
193962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19397
19398 * xfont.c (Qx): Delete.
19399 (syms_of_xfont): Don't initialize Qx.
19400
19401 * composite.h (enum composition_method):
19402 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
19403
194042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19405
19406 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
19407 (choose_face_font): Accept new form of font-spec.
19408
19409 * frame.h (font_driver_list): Declare it unconditionally.
19410 (struct frame): Define members font_driver_list and font_data_list
19411 unconditionally.
19412
19413 * fontset.c: Include "font.h" unconditionally.
19414 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
19415 (Fset_fontset_font): Accept a font-spec object.
19416
19417 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
19418 PIXEL_SIZE part a wild card.
19419
19420 * dispextern.h (struct glyph_string): Define members clip and
19421 num_clips unconditionally.
19422 (struct face): Define members font_info and extra unconditionally.
19423
19424 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
19425 ftfont_info only when HAVE_LIBOTF is defined.
19426
194272008-02-01 Andreas Schwab <schwab@suse.de>
19428
19429 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
19430 and end.
19431
194322008-02-01 Jason Rumney <jasonr@gnu.org>
19433
19434 * w32font.c (w32font_driver): Add new fields.
19435
194362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19437
19438 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
19439 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
19440 (LIBES): Add @M17N_FLT_CFLAGS@.
19441
19442 * composite.c (compose_text): Don't treat the new style
19443 composition specially.
19444
19445 * emacs.c (main): Call syms_of_font unconditionally.
19446
19447 * font.h (FONT_ENTITY_NOT_LOADABLE)
19448 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
19449 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
19450 (struct font_driver): New member shape.
19451 (font_registry_charsets): Extern it.
19452 (font_find_for_lface, font_prepare_composition): Adjust prototype.
19453 (font_otf_capability, font_drive_otf): Delete their externs.
19454
19455 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
19456 (font_charset_alist, font_registry_charsets): Move from xfont.c
19457 and rename.
19458 (font_prop_validate_otf): New function.
19459 (font_property_table): Register it for QCotf.
19460 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
19461 (font_drive_otf): Delete.
19462 (font_prepare_composition): New arg F. Adjust for the change of
19463 lispy gstring.
19464 (font_find_for_lface): New arg C.
19465 (font_load_for_face): Adjust for the change of font_find_for_lface.
19466 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
19467 lispy gstring.
19468 (Ffont_shape_text): New function.
19469 (Fopen_font): If the font size is not given, use 12-pixel.
19470 (Ffont_at): New arg STRING.
40b1a3a9 19471 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
19472 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
19473 conditionally.
19474
19475 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
19476 fonts of the same font-spec. Change the format of RFONT-DEF.
19477 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
19478 Adjust for the change of RFONT-DEF.
19479 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
19480
19481 * ftfont.h: New file.
19482
19483 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
19484 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19485 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19486 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
19487 font_otf_capability and font_drive_otf, set ftfont_shape.
19488 (ftfont_list): Adjust for the change of :otf property value.
19489 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
19490 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
19491 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
19492 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19493 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
19494 (otf_gstring, gstring, m17n_flt_initialized): New variables.
19495
19496 * w32term.c (x_draw_composite_glyph_string_foreground):
19497 Adjust for the change of lispy gstring.
19498
19499 * xdisp.c (handle_composition_prop): Adjust for the change of
19500 lispy gstring. Call a function for auto-composition with the
19501 third arg it->window.
19502 (fill_composite_glyph_string): Adjust for the change of lispy string.
19503 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
19504
19505 * xfaces.c (set_font_frame_param): Adjust for the change of
19506 font_find_for_lface.
19507
19508 * xfont.c (x_font_charset_alist): Move to font.c and rename.
19509 (xfont_registry_charsets): Likewise. Change caller.
19510 (syms_of_xfont): Don't handle x_font_charset_alist.
19511
19512 * xftfont.c: Include "ftfont.h".
19513 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19514 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19515 (xftfont_close) [HAVE_LIBOTF]: Close otf.
19516 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19517 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
19518 Set xftfont_driver.shape to xftfont_shape.
19519
19520 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19521 the change of lispy gstring.
19522
195232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19524
19525 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
19526
195272008-02-01 Jason Rumney <jasonr@gnu.org>
19528
19529 * w32font.c (w32font_draw): Fill background manually.
19530
195312008-02-01 Jason Rumney <jasonr@gnu.org>
19532
19533 * font.c (Qfontp): Remove unused symbol.
19534 (QCantialias): New symbol.
19535 (syms_of_font): Define it.
19536 (font_property_table): Set a validator for QCantialias.
19537
19538 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
19539 Define if not already.
19540 (QCfamily): Share with xfaces.c.
19541 (Qstandard, Qsubpixel, Qnatural): New symbols.
19542 (syms_of_w32font): Define them. Don't define QCfamily here.
19543 (w32_antialias_type, lispy_antialias_type): New functions.
19544 (w32_enumfont_pattern_entity): New arg requested_font.
19545 Set antialias parameter if non-default was requested.
19546 (fill_in_logfont): Fill in lfQuality if :antialias specified.
19547
195482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19549
19550 * lread.c (read1): Undo the previous change.
19551
195522008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
19553
19554 * frame.c (Fdelete_frame): Call font_update_drivers only when
19555 USE_FONT_BACKEND is defined.
19556
195572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19558
19559 * font.h (struct font_bitmap): New member bits_per_pixel.
19560 (struct font_driver): New members start_for_frame and end_for_frame.
19561 (struct font_data_list): New struct.
19562 (font_put_frame_data, font_get_frame_data): Extern them.
19563
19564 * frame.h (struct frame): New member font_data_list.
19565
19566 * font.c (font_update_drivers): Call driver->start_for_frame and
19567 driver->end_for_frame at proper timings.
19568 (font_put_frame_data, font_get_frame_data): New functions.
19569 (Ffont_spec): Add usage in the docstring.
19570
19571 * frame.c (make_frame): Initialize f->font_data_list to NULL.
19572 (Fdelete_frame): Call font_update_drivers.
19573
19574 * xftfont.c (struct xftface_info): Delete the member xft_draw.
19575 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
19576 (xftfont_get_xft_draw): New function.
19577 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
19578 (xftfont_end_for_frame): New function.
19579 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
19580
19581 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
19582 Change argument. Cache GCs in the per-frame data.
19583 (struct ftxfont_frame_data): New struct.
19584 (ftxfont_draw_bitmap): New arg gc_fore and flush.
19585 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
19586 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
19587 (ftxfont_end_for_frame): New function.
19588 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
19589
19590 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
19591
195922008-02-01 Kenichi Handa <handa@m17n.org>
19593
19594 * xselect.c (Vselection_coding_system)
19595 (Vnext_selection_coding_system): Delete them.
19596 (syms_of_xselect): Don't declare selection-coding-system and
19597 next-selection-coding-system. They are declared in select.el.
19598
195992008-02-01 Jason Rumney <jasonr@gnu.org>
19600
19601 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
19602
19603 * w32fns.c: Include imm.h.
19604 (get_composition_string_fn, get_ime_context_fn): New optional
19605 system functions.
19606 (globals_of_w32fns): Load them from imm32.dll.
19607 (ignore_ime_char): New flag.
19608 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
19609 WM_IME_ENDCOMPOSITION messages.
19610
19611 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
19612 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
19613
196142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19615
19616 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
19617 (READCHAR_REPORT_MULTIBYTE): New macro.
19618 (readchar): New 2nd arg MULTIBYTE.
19619 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
19620 Make symbol's name multibyte according to the multibyteness of the
19621 source.
19622
196232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19624
19625 * xfaces.c (face_for_overlay_string): Call lookup_face with
19626 correct arguments (fix of synching with the trunk).
19627
196282008-02-01 Kenichi Handa <handa@m17n.org>
19629
19630 * font.c (font_prop_validate_symbol, font_prop_validate_style)
19631 (font_prop_validate_non_neg, font_prop_validate_spacing):
19632 Delete argument prop_index.
19633 (font_property_table): Change arguments to validater. Change Callers.
19634 (font_lispy_object): Delete.
19635 (font_at): Use font_find_object instead fo font_lispy_object.
19636
196372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19638
19639 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
19640 and file names.
19641
196422008-02-01 Jason Rumney <jasonr@gnu.org>
19643
19644 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
19645 (font_matches_spec): Remove debug output.
19646 (add_font_entity_to_list): Avoid using substituted fonts.
19647
196482008-02-01 Jason Rumney <jasonr@gnu.org>
19649
19650 * doc.c (Fsnarf_documentation):
19651 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
19652
196532008-02-01 Miles Bader <miles@gnu.org>
19654
19655 * dispextern.h (struct glyph_row): Only define "clip" field if
19656 HAVE_WINDOW_SYSTEM is defined.
19657
196582008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19659
19660 Fix up multi-tty merge.
19661
19662 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
19663 and indentation.
19664
19665 * xfaces.c (free_realized_face, clear_face_gcs):
19666 Include font_done_for_face in the input_blocked section, just in case.
19667
19668 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
19669 (get_char_face_and_encoding): Undo last change and remove the *other*
19670 duplicate definition (i.e. keep the one that's better scoped and that
19671 includes code for the font-backend).
19672
19673 * terminal.c (create_terminal): Default keyboard_coding to
19674 `no-conversion' and terminal_coding to `undecided'.
19675
19676 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
19677
19678 * fontset.c (free_realized_fontsets): Check that the table entry does
19679 contain a fontset before trying to compare it to `base'.
19680
19681 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
19682 syms_of_charset, and syms_of_coding earlier because init_window_once
19683 now needs Vcoding_system_hash_table to be setup.
19684
19685 * coding.h (default_buffer_file_coding): Remove.
19686
19687 * coding.c (default_buffer_file_coding): Remove.
19688 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
19689 than ->symbol, and use the terminal-local coding system.
19690 (syms_of_coding): Don't setup the coding-systems that are not
19691 terminal-local.
19692 (Fdefine_coding_system_internal): Use XCAR/XCDR.
19693
19694 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
19695 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
19696
19697 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
19698 in chartab.c and were re-added here by mistake.
19699 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
19700
19701 * doc.c (Fsnarf_documentation):
19702 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
19703 src to etc.
19704
19705 * ChangeLog.10: Add mistakenly removed entry.
19706
197072008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
19708
19709 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
19710
197112008-02-01 Miles Bader <miles@gnu.org>
19712
19713 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
19714 Add extra args to FACE_FOR_CHAR.
19715
197162008-02-01 Kenichi Handa <handa@m17n.org>
19717
19718 * keymap.c (where_is_internal_1): If key is a cons, store the copy
19719 in sequence.
19720
19721 * chartab.c (map_sub_char_table, map_char_table): If the range
19722 contains just one character, call the function with that character
19723 even if the depth is not 3.
19724
197252008-02-01 Jason Rumney <jasonr@gnu.org>
19726
19727 * w32font.c (w32font_text_extents): Calculate metrics for the
19728 whole string.
19729
197302008-02-01 Jason Rumney <jasonr@gnu.org>
19731
19732 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
19733
197342008-02-01 Jason Rumney <jasonr@gnu.org>
19735
19736 * w32term.c (x_set_glyph_string_clipping): Use
19737 get_glyph_string_clip_rects.
19738 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19739 Adjust for the change of struct glyph_string.
19740
19741 * w32font.c (w32font_draw): Do clipping here.
19742
197432008-02-01 Kenichi Handa <handa@m17n.org>
19744
19745 * xftfont.c (xftfont_draw): Adjust for the change of struct
19746 glyph_string.
19747
19748 * xterm.c (x_set_glyph_string_clipping): Use
19749 get_glyph_string_clip_rects.
19750 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19751 Adjust for the change of struct glyph_string.
19752
19753 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
19754 the resulting clip(s}.
19755 (expose_overlaps): Add arg r. Change callers. Set it to
19756 row->clip temporarily.
19757 (expose_window): Redraw rows overlapping the exposed area.
19758
19759 * dispextern.h (struct glyph_row): New member clip.
19760 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
19761 clip_height, new member clip, and num_clips.
19762
197632008-02-01 Kenichi Handa <handa@m17n.org>
19764
19765 * data.c (Fchar_or_string_p): Fix docstring.
19766
197672008-02-01 Kenichi Handa <handa@m17n.org>
19768
19769 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
19770 create a temporary XftDraw object.
19771
197722008-02-01 Kenichi Handa <handa@m17n.org>
19773
19774 * font.c (Ffontp): Fix docstring.
19775
19776 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
19777 strong evidence of ISO-2022.
19778
197792008-02-01 Kenichi Handa <handa@m17n.org>
19780
19781 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
19782 SYNTAX_ENTRY_FOLLOW_PARENT.
19783
197842008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19785
19786 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
19787 its type.
19788 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
19789 Update to the new type of weak_hash_tables and next_weak.
19790
19791 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
19792 a plain C pointer to Lisp_Hash_Table.
19793
19794 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
19795 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
19796 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
19797 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
19798 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
19799 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
19800 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
19801 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
19802 (GC_EQ): Remove since they've been identical to their non-GC_
19803 alter-egos ever since the markbit was eradicated.
19804
19805 * alloc.c:
19806 * buffer.c:
19807 * buffer.h:
19808 * data.c:
19809 * fileio.c:
19810 * filelock.c:
19811 * fns.c:
19812 * frame.h:
19813 * lisp.h:
19814 * macterm.c:
19815 * print.c:
19816 * process.c:
19817 * w32fns.c:
19818 * w32menu.c:
19819 * w32term.c:
19820 * xfns.c:
19821 * xmenu.c:
19822 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
19823
198242008-02-01 Kenichi Handa <handa@m17n.org>
19825
19826 * chartab.c (map_sub_char_table): Make it work for the top-level
19827 char-table. Fix handling of parent char-table.
19828 (map_char_table): Adjust for the above change.
19829
198302008-02-01 Jason Rumney <jasonr@gnu.org>
19831
19832 * w32font.c (Qgdi): Rename from Qw32.
19833
198342008-02-01 Jason Rumney <jasonr@gnu.org>
19835
19836 * w32bdf.c (get_quoted_string): Make function static.
19837
198382008-02-01 Kenichi Handa <handa@m17n.org>
19839
19840 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
19841 bigger ascent and descent than those of the font, use them as
19842 font's ascent and descent.
19843
198442008-02-01 Kenichi Handa <handa@m17n.org>
19845
19846 * Makefile.in (${lispsource}international/charprop.el): Move this
19847 target within "#ifdef HAVE_UNIDATA" and "#endif".
19848
198492008-02-01 Kenichi Handa <handa@m17n.org>
19850
19851 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
19852 (shortlisp): Add ../lisp/language/tai-viet.el.
19853
198542008-02-01 Ulrich Mueller <ulm@gentoo.org>
19855
19856 * Makefile.in (${lispsource}international/charprop.el): Depend on
19857 temacs${EXEEXT}.
19858
198592008-02-01 Jason Rumney <jasonr@gnu.org>
19860
19861 * w32font.c (w32font_close): Delete the GDI font object.
19862
19863 * w32menu.c: Include character.h.
19864
19865 * w32proc.c: Likewise.
19866
19867 * w32select.c: Likewise.
19868
19869 * makefile.w32-in (w32proc.o): Depend on character.h.
19870
198712008-02-01 Jason Rumney <jasonr@gnu.org>
19872
19873 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
19874
19875 * w32menu.c (syms_of_w32menu): Likewise.
19876
19877 * w32proc.c (syms_of_ntproc): Likewise.
19878
19879 * w32select.c (syms_of_w32select): Likewise.
19880
19881 * w32term.c (syms_of_w32term): Likewise.
19882
198832008-02-01 Jason Rumney <jasonr@gnu.org>
19884
19885 * w32font.c (w32font_draw): Delete brush after using it.
19886
198872008-02-01 Jason Rumney <jasonr@gnu.org>
19888
19889 * w32font.c (w32font_open): Don't set font_idx.
19890 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
19891 to font settings.
19892 (w32font_draw): Fill background explicitly.
19893
198942008-02-01 Jason Rumney <jasonr@gnu.org>
19895
19896 * w32term.c (w32_initialize): Don't call w32font_initialize.
19897
19898 * w32font.c (w32font_info): Remove subranges.
19899 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
19900 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
19901 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
19902 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
19903 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
19904 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
19905 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
19906 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
19907 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
19908 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
19909 New symbols.
19910 (font_callback_data): New struct.
19911 (w32font_list, w32font_match): Use it.
19912 (w32font_open): Don't populate subranges.
19913 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
19914 (w32font_encode_char): Always return unicode code-point as-is.
19915 (w32font_text_extents): Supply a transformation matrix to
19916 GetGlyphOutline. Never look up by glyph index. Avoid looping
19917 twice. Use unicode version of GetTexExtentPoint32 instead of
19918 glyph index version.
19919 (set_fonts_frame): Remove.
19920 (w32_enumfont_pattern_entity): Add frame parameter, use it to
19921 set frame parameter. Use backward compatible fake foundries.
19922 Save generic family in extra slot under QCfamily. Make width slot
19923 constant. Save QCspacing value. Save list of scripts instead of
19924 binary subranges.
19925 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
19926 (add_font_entity_to_list): Use font_callback_data struct. Filter
19927 unwanted fonts.
19928 (add_one_font_entity_to_list): Use font_callback_data struct.
19929 (w32_registry): Default to iso10646_1.
19930 (fill_in_logfont): Use dpi from extra slot. Don't bother with
19931 string font registries. Don't fill in font name if it is a generic
19932 family name, fill family instead. Use spacing, family and script
19933 extra info to fill pitch, family and charset fields.
19934 (list_all_matching_fonts): Use font_callback_data struct.
19935 (unicode_range_for_char): Remove.
19936 (font_supported_scripts): New function.
19937 (w32font_initialize): Remove.
19938 (syms_of_w32font): Update which symbols are defined.
19939
199402008-02-01 Jason Rumney <jasonr@gnu.org>
19941
19942 * font.c (font_pixel_size): Reverse assq_no_quit args.
19943
19944 * w32term.h (FONT_WIDTH): Report max width, not average.
19945 (FONT_MAX_WIDTH): Remove.
19946 (FONT_AVG_WIDTH): New macro.
19947
19948 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
19949 redefinition of FONT_WIDTH.
19950
19951 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
19952 (w32_cache_char_metrics): Use FONT_WIDTH.
19953
19954 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
19955
199562008-02-01 Jason Rumney <jasonr@gnu.org>
19957
19958 * w32font.c (w32font_open): Make lfHeight negative.
19959
19960 * w32fns.c (x_default_font_parameter): Use new style font name.
19961 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
19962
199632008-02-01 Jason Rumney <jasonr@gnu.org>
19964
19965 * w32font.c (QCsubranges): New symbol.
19966 (w32font_open, w32font_has_char): Get subranges from subproperty
19967 of extra.
19968 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
19969 (syms_of_w32font): Define :subranges symbol.
19970
19971 * font.c (font_put_extra): Expose externally.
19972
19973 * font.h (font_put_extra): Move declaration from font.c.
19974
19975 * font.c (Ffont_get): Use font driver to determine otf capability.
19976 (adjust_anchor): Check if driver defines anchor_point before using.
19977
19978 * w32font.c (w32font_open): Handle size, height and pixel_size better.
19979 (w32font_draw): Use options.
19980 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
19981 Fix detection of truetype fonts.
19982 (registry_to_w32_charset): Handle charsets other than iso8859-1
19983 expressed as lisp symbols.
19984 (w32_registry): Express charset as lisp symbol.
19985 (fill_in_logfont): Reverse pixel and point height logic.
19986 Don't set width here. Set quality to default.
19987
19988 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
19989 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
19990
19991 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19992 Remove redundant loop and allocation.
19993
19994 * makefile.w32-in (font.o, w32font.o): New objects.
19995 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
19996 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
19997
19998 * xdisp.c (fill_composite_glyph_string): Make the first arg to
19999 STORE_XCHARB a valid l-value.
20000
20001 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
20002 calculations for non-Truetype fonts.
20003 (x_draw_glyph_string): Sync with xterm.c.
20004 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
20005 Remove redundant code.
20006 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
20007
20008 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
20009 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
20010
20011 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
20012 (x_to_w32_charset, w32_to_x_charset): Expose externally.
20013
20014 * w32font.c: New file for w32 font backend.
20015
200162008-02-01 Kenichi Handa <handa@m17n.org>
20017
20018 * term.c: Don't include "buffer.h" twice.
20019
200202008-02-01 Kenichi Handa <handa@m17n.org>
20021
20022 * character.c (Funibyte_string): New function.
20023 (syms_of_character): Defsubr it.
20024
200252008-02-01 Jason Rumney <jasonr@gnu.org>
20026
20027 * w32term.c [USE_FONT_BACKEND]:
20028 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
20029 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
20030 (x_draw_glyph_string, x_draw_glyph_string_foreground)
20031 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
20032 (x_free_frame_resources): Sync with xterm.c.
20033
200342008-02-01 Andreas Schwab <schwab@suse.de>
20035
20036 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
20037 char-table size.
20038
200392008-02-01 Kenichi Handa <handa@m17n.org>
20040
20041 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
20042
200432008-02-01 Kenichi Handa <handa@m17n.org>
20044
20045 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
20046 font_otf_gpos, add font_drive_otf.
20047
20048 * fontset.c (fontset_find_font): Pay attention to font size
20049 specified for a font.
20050 (reorder_font_vector): Check contents of font_def.
20051
20052 * font.c (struct otf_list): Delete it.
20053 (otf_list): Make it a lisp variable.
20054 (otf_open): Use lispy otf_list.
20055 (generate_otf_features): Rename from parse_gsub_gpos_spec.
20056 (check_otf_features): New function.
20057 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
20058 New functions.
20059 (font_drive_otf): New function merging font_otf_gsub and
20060 font_otf_gpos.
20061 (font_open_for_lface): New arg spec. Change argument order.
20062 (font_load_for_face): Adjust for the change of font_open_for_lface.
20063 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
20064 Ffont_otf_gpos.
20065 (syms_of_font): Staticpro otf_list. Delete defsubr of
20066 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
20067
20068 * xfaces.c (set_font_frame_param): Adjust for the change of
20069 font_open_for_lface.
20070
20071 * font.h (font_open_for_lface): Adjust prototype.
20072 (struct font_driver): Delete members otf_gsub and otf_gpos, add
20073 member otf_drive.
20074 (font_otf_gsub, font_otf_gpos): Delete externs.
20075 (font_drive_otf): Extern it.
20076
200772008-02-01 Kenichi Handa <handa@m17n.org>
20078
20079 * font.c (font_at): If the window W is not on a window system,
20080 return Qnil.
20081
20082 * coding.c (produce_chars, encode_coding): Don't call
20083 insert_from_gap if no characters to produce.
20084
200852008-02-01 Kenichi Handa <handa@m17n.org>
20086
20087 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
20088 Fclear_face_cache.
20089
20090 * xfaces.c (face_for_font): Check also face->font==font->font.font.
20091
200922008-02-01 Miles Bader <miles@gnu.org>
20093
20094 * emacs.c (main): Change default value of `enable_font_backend' to 1.
20095 Parse "--disable-font-backend" option.
20096 (standard_args): Add "--disable-font-backend" option.
20097
200982008-02-01 Kenichi Handa <handa@m17n.org>
20099
20100 * fontset.c (fontset_find_font): New function.
20101 (fontset_font): Use fontset_find_font.
20102 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
20103 Register the specified font for all Latin characters.
20104 (new_fontset_from_font): Register the specified font for all Latin
20105 characters.
20106 (dump_fontset): For a realized fontset, include the base fontset
20107 name in the returned vector.
20108
201092008-02-01 Kenichi Handa <handa@m17n.org>
20110
20111 * character.h (CHAR_STRING): Cast C to unsigned on calling
20112 char_string.
20113
20114 * character.c (char_string): Type of arg C changed to unsigned.
20115 Signal an error if C is an invalid character code.
20116
20117 * editfns.c (general_insert_function, Fchar_to_string):
20118 Use CHARACTERP, not INTEGERP.
20119
201202008-02-01 Kenichi Handa <handa@m17n.org>
20121
20122 * character.h (MIN_MULTIBYTE_LEADING_CODE)
20123 (MAX_MULTIBYTE_LEADING_CODE): New macros.
20124
20125 * regex.c (analyse_first): Fix for multibyte characters in "case
20126 charset:" and "case categoryspec:".
20127
201282008-02-01 Andreas Schwab <schwab@suse.de>
20129
20130 * Makefile.in (LIBES): Move standard libraries to the end.
20131
201322008-02-01 Kenichi Handa <handa@m17n.org>
20133
20134 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
20135 nonzero, don't shrink the buffer nextb.
20136
20137 * buffer.h (struct buffer_text): New member inhibit_shrinking.
20138
20139 * coding.c (coding_alloc_by_making_gap): New arg offset.
20140 (alloc_destination): Call coding_alloc_by_making_gap with the arg
20141 offset.
20142 (decode_coding_iso_2022): Update coding->safe_charsets.
20143 (decode_coding_gap): Temporarily set
20144 current_buffer->text->inhibit_shrinking to 1.
20145
201462008-02-01 Kenichi Handa <handa@m17n.org>
20147
20148 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
20149 indexing into elements of s->cmp and s->char2b.
20150
201512008-02-01 Juanma Barranquero <lekktu@gmail.com>
20152
20153 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
20154
201552008-02-01 Kenichi Handa <handa@m17n.org>
20156
20157 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
20158 target_multibyte instead of multibyte.
20159 (re_match_2_internal): Call bcmp_translate with target_multibyte.
20160 (bcmp_translate): Change the argument name from multibyte to
20161 target_multibyte.
20162
201632008-02-01 Kenichi Handa <handa@m17n.org>
20164
20165 These changes are to compile a regexp into a pattern that can be
20166 used both for multibyte and unibyte targets.
20167
20168 * Makefile.in (search.o): Depend on charset.h.
20169
20170 * character.c (multibyte_char_to_unibyte_safe): New function.
20171
20172 * search.c: Include "charset.h".
20173 (compile_pattern_1): Delete argument multibyte. Don't set
20174 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
20175 (compile_pattern): Don't compare cp->buf.target_multibyte.
20176 Compare cp->buf.charset_unibyte.
20177 (compile_pattern): Set cp->buf.target_multibyte.
20178
20179 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
20180
20181 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
20182
20183 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
20184 multibyte. Change callers.
20185 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
20186 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
20187 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
20188 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
20189 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
20190 (regex_compile): Make the compiled pattern usable both for
20191 multibyte and unibyte targets.
20192 (analyse_first): Make the fastmap usable both for multibyte and
20193 unibyte targets.
20194 (TRANSLATE_VIA_MULTIBYTE): Delete.
20195 (re_match_2_internal): Pay attention to the case that the
20196 multibyteness of bufp and target may be different.
20197
201982008-02-01 Kenichi Handa <handa@m17n.org>
20199
20200 * xdisp.c (x_produce_glyphs): When a font is not found, make the
20201 empty box occupy at least one column width.
20202
202032008-02-01 Miles Bader <miles@gnu.org>
20204
20205 * Makefile.in: Remove redundant HAVE_XFT clause.
20206
202072008-02-01 Kenichi Handa <handa@m17n.org>
20208
20209 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
20210
202112008-02-01 Kenichi Handa <handa@m17n.org>
20212
20213 * fontset.c (Finternal_char_font): Fix for the case of POSITION
20214 being nil.
20215
202162008-02-01 Kenichi Handa <handa@m17n.org>
20217
20218 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
20219
202202008-02-01 Kenichi Handa <handa@m17n.org>
20221
20222 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
20223
202242008-02-01 Kenichi Handa <handa@m17n.org>
20225
20226 * search.c (simple_search): Fix previous change.
20227
202282008-02-01 Kenichi Handa <handa@m17n.org>
20229
20230 * xftfont.c (ftfont_font_format): Extern declaration.
20231
20232 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
20233
20234 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
20235 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
20236
20237 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
20238 (ftfont_font_format): Fix previous change.
20239
20240 * font.h (Ffont_xlfd_name): EXFUN it.
20241
20242 * font.c (font_parse_xlfd): Fix the array size of `f'.
20243 (register_font_driver): Use EQ to compare driver->type.
20244
20245 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
20246 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
20247 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
20248
202492008-02-01 Kenichi Handa <handa@m17n.org>
20250
20251 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
20252 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
20253
202542008-02-01 Kenichi Handa <handa@m17n.org>
20255
20256 * xfont.c (xfont_open): Set font->format.
20257
20258 * xftfont.c (xftfont_open): Set font->format.
20259
20260 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
20261 (ftfont_list): Include FC_FONTFORMAT in FcObject.
20262 (ftfont_open): Set font->format.
20263 (ftfont_font_format): New function.
20264
20265 * font.h (struct font): New member format.
20266
20267 * font.c (Qopentype): New variable.
20268 (syms_of_font): Defsym it.
20269 (Fquery_font): Change the format of the last element of the return
20270 value.
20271
202722008-02-01 Kenichi Handa <handa@m17n.org>
20273
20274 * xfns.c (xic_create_xfontset): Try the default fontset name as a
20275 last resort.
20276
202772008-02-01 Kenichi Handa <handa@m17n.org>
20278
20279 * coding.c (detect_coding_charset): Fix detection of multi-byte
20280 charset.
20281
202822008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
20283
20284 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
20285
202862008-02-01 Kenichi Handa <handa@m17n.org>
20287
20288 * xdisp.c (get_next_display_element): Set it->face_id for the
20289 first component of a composition.
20290 (x_produce_glyphs): Check if the font is changed or not for composition.
20291
202922008-02-01 Kenichi Handa <handa@m17n.org>
20293
20294 * fontset.c (Qlatin): New variable.
20295 (syms_of_fontset): Define it as a lisp symbol.
20296 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
20297
202982008-02-01 Kenichi Handa <handa@m17n.org>
20299
20300 * font.c (font_unparse_fcname): Pay attention to the case that
20301 some of font property is a null string.
20302
203032008-02-01 Kenichi Handa <handa@m17n.org>
20304
20305 * term.c: Include "composite.h".
20306 (encode_terminal_code): Output all components of composition.
20307 Check the size of encode_terminal_src.
20308 (produce_glyphs): For composition, call produce_composite_glyph.
20309 (append_composite_glyph, produce_composite_glyph): New functions.
20310
20311 * xdisp.c (x_produce_glyphs): In handling composition, if a font
20312 is not found, get font_info from the current ascii face.
20313
203142008-02-01 Kenichi Handa <handa@m17n.org>
20315
20316 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
20317 buffer-file-name to Qnil before calling insert_from_buffer.
20318
20319 * font.c (font_unparse_fcname): Pay attention to the case that
20320 foundry is a null string.
20321
203222008-02-01 Kenichi Handa <handa@m17n.org>
20323
20324 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
20325
20326 * font.c (Qunicode_sip): New variable.
20327 (syms_of_font): Declare it as a Lisp symbol.
20328
20329 * font.h (Qunicode_sip): Extern it.
20330
203312008-02-01 Kenichi Handa <handa@m17n.org>
20332
20333 * composite.c (get_composition_id): Pay attention to TAB component.
20334
20335 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
20336 TAB. Adjust for the change of s->char2b which always points to
20337 the first element of allocated memory.
20338
20339 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
20340
20341 * xdisp.c (handle_composition_prop): Set it->c to the first
20342 non-TAB component.
20343 (fill_composite_glyph_string): Change argument.
20344 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
20345 (x_produce_glyphs): Fix handling of left/right padding.
20346
203472008-02-01 Kenichi Handa <handa@m17n.org>
20348
20349 * coding.c (detect_coding_system): Fix for handling off
20350 inhibit_iso_escape_detection. Fix for the case that no coding
20351 system is defined for a specific coding category.
20352
203532008-02-01 Kenichi Handa <handa@m17n.org>
20354
20355 * font.c (font_matching_entity): Delete unused local var.
20356
20357 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
20358 opening a font.
20359
20360 * fileio.c (Finsert_file_contents): On recovering a file, assume
20361 Unix-like eol.
20362 (choose_write_coding_system): On auto-saving a file, force
20363 Unix-like eol.
20364
20365 * coding.c (setup_coding_system): Fix setting of
20366 coding->common_flags based on eol_type.
20367 (coding_inherit_eol_type): If PARENT is not nil, be sure to
20368 inherit from it.
20369
203702008-02-01 Kenichi Handa <handa@m17n.org>
20371
20372 * alloc.c (NSTATICS): Increas to 0x600.
20373
203742008-02-01 Kenichi Handa <handa@m17n.org>
20375
20376 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
20377 (ftfont_list): Don't check :name property.
20378 (ftfont_match): New function.
20379 (ftfont_pattern_entity): If the pattern doesn't contain
20380 FC_SPACING, don't assume FC_MONO.
20381
20382 * font.h (struct font_driver): New member `match'.
20383 (font_update_drivers): Adjust prototype.
20384
20385 * font.c (font_parse_fcname, font_parse_name): Don't change :name
20386 property of FONT.
20387 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
20388 them unconditionally.
20389 (font_matching_entity): New function.
20390 (font_open_by_name): Try font_matching_entity if exact match is
20391 not found.
20392 (font_update_drivers): Delete the arg FONT. Return a list of
20393 actually used backends. Don't free faces, font caches here.
20394 Don't store data in frame parameters. Don't call x_set_font.
20395 (Ffont_spec): Store :name property as is.
20396 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
20397 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
20398 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
20399 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
20400 Call font->driver->otf_gsub instead of font_otf_gsub.
20401
20402 * frame.c (x_set_font_backend): Do more works that were done in
20403 font_update_drivers before.
20404
20405 * xfont.c (xfont_match): New function.
20406 (xfont_driver): Set xfont_driver.match to xfont_match.
20407 (xfont_draw): Set font in GC if necessary.
20408
20409 * ftxfont.c (ftxfont_match): New function.
20410 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
20411
20412 * xftfont.c (xftfont_match): New function.
20413 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
20414
204152008-02-01 Kenichi Handa <handa@m17n.org>
20416
20417 * font.h (struct font): New member scalable.
20418 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
20419 (font_otf_gsub): Adjust prototype.
20420
20421 * font.c (font_otf_capability): Fix handling of the default langsys.
20422 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
20423 Check the contents of SPEC.
20424 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
20425 (check_gstring): New function.
20426 (REPLACEMENT_CHARACTER): New macro.
20427 (font_otf_gsub): New arg alternate_subst. Be sure to set all
20428 glyph codes of GSTRING.
20429 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
20430 (font_prepare_composition): Set cmp->glyph_len.
20431 (font_open_entity): Set font->scalable.
20432 (Ffont_get): Handle :otf property.
20433 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
20434 functions.
20435 (Fquery_font): Use font->font.full_name.
20436 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
20437 Sfont_otf_alternates.
20438
20439 * ftfont.c (ftfont_open): Set font->font.full_name and
20440 font->font.name properly. Fix calculation of font->font.height
20441 and font->min_width.
20442
20443 * ftxfont.c (ftxfont_create_gcs): New function.
20444 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
20445 (ftxfont_draw_backgrond): Fix filling region.
20446 (ftxfont_default_fid): New function.
20447 (ftxfont_open): Set xfont->fid to the return value of
20448 ftxfont_default_fid.
20449 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
20450 (ftxfont_done_face): Free only GCs that are created by
20451 ftxfont_create_gcs.
20452 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
20453
20454 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
20455 Clip to src->width, etc (not src->clip_XXX).
20456
20457 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
20458 FontBackend frame parameter.
20459
204602008-02-01 Kenichi Handa <handa@m17n.org>
20461
20462 * font.h (struct font_driver_list): New member `on'.
20463 (Fclear_font_cache): EXFUN it.
20464 (font_update_drivers): Extern it.
20465
20466 * font.c (font_unparse_fcname): Fix typo (swidth->width).
20467 (font_list_entities): Check driver_list->on.
40b1a3a9 20468 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
20469 (font_update_drivers): New function.
20470 (Fclear_font_cache): Check driver_list->on.
20471
20472 * frame.h (Qfont_backend): Extern it.
20473 (x_set_font_backend): Extern it.
20474
20475 * frame.c (Qfont_backend): New variable.
20476 (frame_parms): New element for font-backend.
20477 (x_set_font_backend): New function.
20478
20479 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
20480 FontBackend frame parameter.
20481 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
20482 x_set_font_backend.
20483
20484 * xfont.c (xfont_list): Don't try listing by :name property if the
20485 name is not for XLFD.
20486
204872008-02-01 Kenichi Handa <handa@m17n.org>
20488
20489 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
20490 (LGLYPH_SET_TO): New macros.
20491 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
20492 element of G is vector or not.
20493 (font_at): Extern it.
20494
20495 * font.c: Include window.h.
20496 (font_lispy_object): New function.
20497 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
20498 end of valid glyph.
20499 (font_close_object): Fix getting (struct font *).
20500 (font_at): New function.
20501 (Ffont_get): If FONT is a font-object, get entity from it.
20502 (Ffont_make_gstring): Initialize elements of glyphs with nil.
20503 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
20504 range check.
20505 (Ffont_at): New function.
20506 (syms_of_font): Defsubr Sfont_at.
20507
20508 * xdisp.c (it_props): Move the entry for Qauto_composed to just
20509 before the entry for Qcomposition.
20510 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
20511 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
20512 the font in gstring.
20513 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
20514 LGLYPH_FORM (g) to detect the end of valid glyph.
20515 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
20516 we are composing with gstring.
20517
20518 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
20519 Check if adjustment is vector or not.
20520
20521 * Makefile.in (font.o): Make it depends on window.h.
20522
205232008-02-01 Kenichi Handa <handa@m17n.org>
20524
20525 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
20526 adjustment is vector or not.
20527
205282008-02-01 Miles Bader <miles@gnu.org>
20529
20530 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
20531
205322008-02-01 Kenichi Handa <handa@m17n.org>
20533
20534 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
20535 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
20536 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
20537
20538 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
20539 (DEVICE_DELTA): Fix typo.
20540 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
20541 LGLYPH format.
20542
20543 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
20544 the change of LGLYPH format.
20545
205462008-02-01 Kenichi Handa <handa@m17n.org>
20547
20548 * ftfont.c (ftfont_list): Fix typo.
20549 (ftfont_build_basic_charsets): Don't include letters with diacritics.
20550
205512008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20552
20553 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
20554
20555 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
20556 xftface_info is non-NULL.
20557
205582008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20559
20560 * ftfont.c (ftfont_list): Move misplaced #endif.
20561
205622008-02-01 Kenichi Handa <handa@m17n.org>
20563
20564 * ftfont.c (ftfont_list): Pay attention to the case that
20565 FC_CAPABILITY is not defined.
20566
205672008-02-01 Kenichi Handa <handa@m17n.org>
20568
20569 * xftfont.c (xftfont_open): Set charset related members to -1.
20570
20571 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
20572 QCname.
20573 (ftfont_open): Set charset related members to -1.
20574
20575 * fontset.c (Votf_script_alist): New variable.
20576 (syms_of_fontset): Initialize it.
20577 (fontset_font): Delete unused variable.
20578
20579 * fontset.h (Votf_script_alist): Extern it.
20580
20581 * font.c (font_find_for_lface): Optimize code.
20582
20583 * font.h (font_close_object, font_merge_old_spec): Extern them.
20584
205852008-02-01 Kenichi Handa <handa@m17n.org>
20586
20587 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
20588 (syms_of_font): Initialize them.
20589 (font_pixel_size): Allow float value in dpi.
20590 (font_prop_validate_type): Delete.
20591 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
20592 Change caller.
20593 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
20594 (font_prop_validate_extra): Delete.
20595 (font_prop_validate_spacing): New function.
20596 (font_property_table): Add elements for all known properties.
20597 (get_font_prop_index): Rename from check_font_prop_name. New
20598 argument FROM. Change caller.
20599 (font_prop_validate): Validate all known properties.
20600 (font_put_extra): Delete argument force. Change caller.
20601 (font_expand_wildcards): Make it static. Fix the way of shrinking
20602 the possible range.
20603 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
20604 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
20605 Change caller.
20606 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
20607 (font_parse_fcname): Delete argument merge. Fix parsing of point
20608 size. Don't validate properties values here. Change caller.
20609 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
20610 (font_open_by_name): Delete unused variable.
20611 (Ffont_spec): Likewise. Validate property values.
20612 (Ffont_match_p): New function.
20613
20614 * font.h (QCscalable): Extern it.
20615 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
20616
20617 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
20618
20619 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
20620 (xfont_list_pattern): New function.
20621 (xfont_list): Use xfont_list_pattern.
20622
206232008-02-01 Kenichi Handa <handa@m17n.org>
20624
20625 * font.h (Flist_fonts): EXFUN it.
20626
206272008-02-01 Jason Rumney <jasonr@gnu.org>
20628
20629 * w32term.c (w32_initialize): Add back smoothing_type and
20630 smoothing_enabled definitions.
20631
206322008-02-01 Kenichi Handa <handa@m17n.org>
20633
20634 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
20635 s->face->font on determining underline position.
20636
206372008-02-01 Kenichi Handa <handa@m17n.org>
20638
20639 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
20640 (font_has_char): Accept font-object too.
20641 (font_find_for_lface): Try at first with a size specified in face.
20642
206432008-02-01 Kenichi Handa <handa@m17n.org>
20644
20645 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
20646 font_open_by_name.
20647
206482008-02-01 Kenichi Handa <handa@m17n.org>
20649
20650 * font.h (QCspacing, QCdpi): Extern them.
20651 (enum font_spacing): New enum.
20652 (FONT_PIXEL_SIZE_QUANTUM): New macro.
20653
20654 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
20655 (QCspacing, QCdpi): New variables.
20656 (syms_of_font): Initialize them.
20657 (font_pixel_size): New function.
20658 (font_put_extra): New function.
20659 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
20660 in FONT_EXTRA.
20661 (font_parse_fcname): Handle enumerated values (e.g. bold).
20662 Fix handling font size. Add QCname property that contains only
20663 unknown properties.
20664 (font_score): Change argument. Change caller. Pay attention to
20665 FONT_PIXEL_SIZE_QUANTUM.
20666 (font_sort_entites, font_list_entities, font_find_for_lface)
20667 (font_open_for_lface, font_open_by_name): Fix handling of font size.
20668 (Ffont_spec): Add QCname property that contains only unknown properties.
20669
20670 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
20671 include weight in listing pattern, instead check weight of each
20672 listed font. Don't include scalable in pattern. Pay attention to
20673 FONT_PIXEL_SIZE_QUANTUM.
20674
206752008-02-01 Kenichi Handa <handa@m17n.org>
20676
20677 * font.c (font_parse_fcname): Fix parsing of point-size.
20678 (font_unparse_fcname): Produce symbolic names for style properties.
20679 (font_list_entities): Handle float size correctly.
20680 (font_open_by_name): Prefer `normal' property values if the name
20681 doesn't specify them.
20682
20683 * fontset.c (Finternal_char_font): Use font_get_name, not
20684 Ffont_xlfd_name.
20685
20686 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
20687 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
20688 pattern. Don't force scalable.
20689
20690 * xftfont.c (xftfont_open): For generating a name, start from
20691 96-byte buffer.
20692
206932008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20694
20695 * frame.h (x_new_fontset2): Fix prototype.
20696
206972008-02-01 Kenichi Handa <handa@m17n.org>
20698
20699 * font.h (struct font_driver): Delete member parse_name.
20700 (font_match_p, font_get_spec, font_parse_fcname)
20701 (font_unparse_fcname): Extern them.
20702 (font_get_name): Adjust prototype.
20703
20704 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
20705 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
20706 (font_expand_wildcards): Fix handling ENCODING field. Avoid
20707 unnecessary checks for weight, slant, and swidth.
20708 (font_parse_fcname): New function.
20709 (font_unparse_fcname): New function.
20710 (font_parse_name): New function.
20711 (font_match_p): New function.
20712 (font_get_name): Change return value to Lisp string.
20713 (font_get_spec): New function.
20714 (Qunspecified, Qignore_defface): Don't extern them.
20715 (font_find_for_lface): Assume that LFACE is fully specified.
20716 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
20717 object, use it for FACE.
20718 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
20719 driver->parse_name.
20720 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
20721
20722 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
20723 prototype.
20724
20725 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
20726 argument F. Don't call Fnew_fontset. Instead, directly call
20727 make_fontset.
20728
20729 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
20730
20731 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
20732 of x_new_fontset2.
20733
20734 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
20735 (Qsans__serif): New variables.
20736 (ftfont_generic_family_list): New variable.
20737 (syms_of_ftfont): Initialize the above variables.
20738 (ftfont_pattern_entity): Delete argument NAME.
20739 (ftfont_list_generic_family): New function.
20740 (ftfont_parse_name): Delete this function.
20741 (ftfont_list): Try generic family only when FcFontList found no font.
20742 (ftfont_list_family): Fix args to FcObjectSetBuild.
20743
20744 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
20745 object in attrs[LFACE_FONT_INDEX].
20746 (set_lface_from_font_name): Cancel all changes for font-backend.
20747 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
20748 function.
20749 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
20750 font object in QCfont attribute.
20751 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
20752 (realize_default_face) [USE_FONT_BACKEND]: Call
20753 set_lface_from_font_and_fontset.
20754
20755 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
20756 "fixed", and signal error here if no suitable font was found.
20757
20758 * xfont.c (xfont_parse_name): Delete this function.
20759
20760 * xftfont.c (xftfont_open): Change coding style of error
20761 handling. Generate fontconfig's fontname pattern.
20762
20763 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
20764 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
20765
20766 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
20767 Both args FONTSET and FONT_OBJECT must be existing ones.
20768
207692008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20770
20771 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
20772
207732008-02-01 Kenichi Handa <handa@m17n.org>
20774
20775 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
20776
20777 * font.h (struct font): Fix typo.
20778
20779 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
20780 XLFD_XXX_INDEX.
20781 (enum xlfd_field_mask): New enum.
20782 (intern_font_field): Changed argument. Change caller. If digits
20783 are followed by non-digits, return a symbol.
20784 (font_expand_wildcards): New function.
20785 (font_parse_xlfd): Fix wildcard handling.
20786 (Ffont_spec): If :name is specified, reflect the info in the other
20787 properties.
20788
20789 * ftfont.c (ftfont_pattern_entity): Fix typo.
20790 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
20791 locale.
20792
207932008-02-01 Kenichi Handa <handa@m17n.org>
20794
20795 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
20796
20797 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
20798 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
20799 registry doesn't specify encoding part.
20800 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
20801 (font_open_by_name): At first try parsing the name.
20802 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
20803 as Lisp symbols.
20804
20805 * fontset.c (reorder_font_vector): Pay attention to the case that
20806 the 3rd element of font_def is nil.
20807 (fontset_font): For the default fontset, append one more fontset
20808 elements for a script-based font specification. Don't add script
20809 attribute on finding a font.
20810 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
20811 font name.
20812 (fontset_ascii_font): If a font can't be opened, return nil.
20813
20814 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
20815 (ftfont_pattern_entity): New function.
20816 (ftfont_get_cache): Assume that freetype_font_cache is already
20817 initialized.
20818 (ftfont_list): Handle the case that a file is specified in font
20819 name. Use ftfont_pattern_entity to generate entities.
20820 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
20821 (syms_of_ftfont): Initialize freetype_font_cache.
20822
20823 * xftfont.c (xftfont_open): Make the font name fontconfig's
20824 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
20825 (xftfont_close): Free font->font.name if not NULL.
20826
20827 * xfont.c (xfont_list): If script is specified for a font, return
20828 null_vector.
20829 (xfont_list_family): Declare argument type.
20830
20831 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
20832 name, set LFACE_FONT (lface) to nil.
20833
20834 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
20835 return Qnil.
20836
208372008-02-01 Kenichi Handa <handa@m17n.org>
20838
20839 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
20840 (standard_args): Add "-enable-font-backend".
20841
208422008-02-01 Kenichi Handa <handa@m17n.org>
20843
20844 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
20845 (struct xftdraw_list, xftdraw_list): Delete them.
20846 (register_xftdraw, check_xftdraw): Delete them.
20847 (xftfont_prepare_face): Don't call register_xftdraw.
20848 (xftfont_done_face): Don't call check_xftdraw.
20849 (xftfont_draw): Get background color only when with_background is
20850 nonzero.
20851
20852 * xfont.c (xfont_encode_char): Fix calculation of char2b.
20853
208542008-02-01 Kenichi Handa <handa@m17n.org>
20855
20856 These changes are for the new font handling codes.
20857
20858 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
20859 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
20860 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
20861 (FONTSRC, FONTOBJ): New variables.
20862 (obj): Add $(FONTOBJ).
20863 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
20864 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
20865 @LIBOTF_LIBS@.
20866 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
20867 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
20868
20869 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
20870
20871 * character.h (Vscript_representative_chars): Extern it.
20872
20873 * character.c (Vscript_representative_chars): New variable.
20874 (syms_of_character): Declare it as a Lisp variable.
20875
20876 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
20877 enable_font_backend is nonzero, accept the composition method
20878 COMPOSITION_WITH_GLYPH_STRING.
20879
20880 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
20881 enumeration COMPOSITION_WITH_GLYPH_STRING.
20882
20883 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
20884 members clip_x, clip_y, clip_width, and clip_height.
20885 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
20886
20887 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
20888 --enable-font-backend. Call syms_of_font.
20889
20890 * fns.c (assoc_no_quit): New function.
20891
20892 * fontset.h (FONT_INFO_FROM_FACE): New macro.
20893 (face_for_font, new_fontset_from_font)
20894 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
20895
20896 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
20897 (fontset_font, fontset_ascii, face_for_char)
20898 (make_fontset_for_ascii_face, Ffont_info)
20899 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
20900 is nonzero, use font-backend mechanism.
20901 (find_font_encoding): Make it non-static.
20902 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
20903 New functions.
20904
20905 * frame.h (struct frame): New members resx and resy.
20906 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
20907 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
20908
20909 * frame.c [USE_FONT_BACKEND]: Include "font.h".
20910 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
20911
20912 * lisp.h (assoc_no_quit): Extern it.
20913
20914 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
20915 Through out the file, use FONT_INFO_FROM_FACE instead of
20916 FONT_INFO_FROM_ID, use get_per_char_metric instead of
20917 rif->per_char_metric.
20918 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
20919 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
20920 (get_glyph_face_and_encoding, fill_composite_glyph_string)
20921 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20922 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
20923 nonzero, use font-backend mechanism.
20924 (get_per_char_metric): New function.
20925
20926 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
20927 (set_lface_from_font_name)
20928 (set_font_frame_param, free_realized_face)
20929 (prepare_face_for_display, clear_face_gcs)
20930 (Finternal_set_font_selection_order, realize_x_face)
20931 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
20932 font-backend mechanism.
20933 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
20934 (load_face_font) [USE_FONT_BACKEND]: Abort.
20935 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
20936 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
20937
20938 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
20939 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
20940 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
20941 nonzero, register all available font drivers. Call
20942 x_default_font_parameter for deciding a font.
20943 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
20944
20945 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
20946 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
20947 (x_set_glyph_string_clipping_exactly)
20948 (x_compute_glyph_string_overhangs)
20949 (x_draw_glyph_string_foreground)
20950 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
20951 (x_free_frame_resources) [USE_FONT_BACKEND]: If
20952 enable_font_backend is nonzero, use font-backend mechanism.
20953 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
20954
209552008-02-01 Kenichi Handa <handa@m17n.org>
20956
20957 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
20958 system_eol_type.
20959 (syms_of_coding): Initialize system_eol_type.
20960
20961 * process.c (Fset_process_coding_system): Inherit system's eol
20962 format if necessary.
20963
209642008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20965
20966 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
20967
209682008-02-01 Kenichi Handa <handa@m17n.org>
20969
20970 * coding.c (decode_eol): Pay attention to buffer relocation in
20971 del_range_2.
20972 (decode_coding): Call decode_eol before restoring undo_list.
20973
209742008-02-01 Kenichi Handa <handa@m17n.org>
20975
20976 * charset.c (Fdefine_charset_internal): Fix setting of
20977 emacs_mule_bytes.
20978
209792008-02-01 Kenichi Handa <handa@m17n.org>
20980
20981 * keyboard.c (read_char): Check if C is a character or not before
20982 looking up Vkeyboard_translate_table.
20983
209842008-02-01 Kenichi Handa <handa@m17n.org>
20985
20986 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
20987 condition to terminate the loop.
20988
209892008-02-01 Kenichi Handa <handa@m17n.org>
20990
20991 * coding.c (produce_composition): Compare charbuf[i] instead of
20992 args[i] against 0.
20993 (Fterminal_coding_system): Use EQ to compare Lisp objects.
20994
209952008-02-01 Kenichi Handa <handa@m17n.org>
20996
20997 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
20998 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
20999 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
21000 detect_coding.
21001 (emacs_mule_char): Handle old style (Emacs 20) component character
21002 of a composition.
21003 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
21004 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
21005 composition rule.
21006 (decode_coding_emacs_mule): Handle invalid bytes correctly.
21007
210082008-02-01 Kenichi Handa <handa@m17n.org>
21009
21010 * coding.c (encode_coding_ccl): Allocate destination dynamically
21011 when necessary.
21012
210132008-02-01 Kenichi Handa <handa@m17n.org>
21014
21015 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
21016 the loop. When quitted, show a proper error message.
21017
210182008-02-01 Kenichi Handa <handa@m17n.org>
21019
21020 * xterm.c (x_set_glyph_string_clipping_exactly): Set
21021 src->clip_head and src->clip_tail temporarily instead of src->hl.
21022
21023 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
21024 character sequence.
21025 (Fccl_execute_on_string): Use ASET, not XSET.
21026
210272008-02-01 Kenichi Handa <handa@m17n.org>
21028
21029 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
21030
210312008-02-01 Kenichi Handa <handa@m17n.org>
21032
21033 * coding.c (decode_coding): Fix the condition of terminating the
21034 decoding loop.
21035
210362008-02-01 Kenichi Handa <handa@m17n.org>
21037
21038 * data.c (Faset): On setting a character bigger than 255 in a
21039 unibyte string, signal an error instead of make the string multibyte.
21040
210412008-02-01 Kenichi Handa <handa@m17n.org>
21042
21043 * charset.c (map_charset_chars): Fix for ascii-compatible charset
21044 made by a mapping table.
21045
210462008-02-01 Kenichi Handa <handa@m17n.org>
21047
21048 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
21049 not.
21050 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
21051 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
21052
21053 * xterm.c (x_draw_composite_glyph_string_foreground): Check
21054 s->face is NULL or not.
21055
210562008-02-01 Kenichi Handa <handa@m17n.org>
21057
21058 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
21059 (x_draw_glyph_string): Fix drawing of right_overhang and
21060 left_overhang around/on cursor.
21061
21062 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
21063
210642008-02-01 Kenichi Handa <handa@m17n.org>
21065
21066 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
21067
210682008-02-01 Kenichi Handa <handa@m17n.org>
21069
21070 * coding.c (Fdefine_coding_system_internal)
21071 (Fdefine_coding_system_alias): Avoid a duplicated element in
21072 Vcoding_system_alist.
21073
210742008-02-01 Kenichi Handa <handa@m17n.org>
21075
21076 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
21077
21078 * coding.c (Qcoding_system_define_form): New variable.
21079 (syms_of_coding): Intern and staticpro it.
21080 (Fcoding_system_p): Check Qcoding_system_define_form.
21081 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
21082
21083 * coding.h (CODING_SYSTEM_P): If ID is not available, call
21084 Fcoding_system_p.
21085 (CHECK_CODING_SYSTEM): If ID is not available, call
21086 Fcheck_coding_system.
21087 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
21088 Try also Fcheck_coding_system.
21089
210902008-02-01 Kenichi Handa <handa@m17n.org>
21091
21092 * coding.c (code_conversion_restore): GCPRO arg.
21093
210942008-02-01 Kenichi Handa <handa@m17n.org>
21095
21096 * character.c (lisp_string_width): Check multibyteness of STRING.
21097
210982008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21099
21100 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
21101 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
21102 (decode_mac_font_name): Use decode_coding_c_string instead of
21103 decode_coding.
21104 (x_load_font): Initialize fontp->fontset to -1. Set
21105 fontp->encoding_type.
21106
211072008-02-01 Kenichi Handa <handa@m17n.org>
21108
21109 * search.c (search_buffer): Give up BM search on case-fold-search
21110 if one of a target character has a case-equivalence of different
3b59c351 21111 byte length even if that target character is an ASCII.
aac0c6e3
MR
21112 (simple_search): Fix calculation of byte length of matched text.
21113 (boyer_moore): Fix handling of case-equivalent multibyte characters.
21114
211152008-02-01 Kenichi Handa <handa@m17n.org>
21116
21117 * coding.c (decode_coding): Fix handling of invalid bytes.
21118
211192008-02-01 Kenichi Handa <handa@m17n.org>
21120
21121 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
21122 Unicode characters.
21123
211242008-02-01 Kenichi Handa <handa@m17n.org>
21125
21126 * coding.c (encode_coding_object): If a pre-write-conversion
21127 function makes a new buffer, kill it.
21128
211292008-02-01 Kenichi Handa <handa@m17n.org>
21130
21131 * coding.c (QCascii_compatible_p): New variable.
21132 (syms_of_coding): Initialize it.
21133 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
21134 calling string_char.
21135 (record_conversion_result): Add `default:' case.
21136 (coding_charset_list): Delete unused variable `coding_type'.
21137 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
21138 property in the plist of the coding system.
21139 (Fcoding_system_put): Check QCascii_compatible_p.
21140
211412008-02-01 Miles Bader <miles@gnu.org>
21142
21143 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
21144 removed calculation of frame `f', as it's now used.
21145
211462008-02-01 Kenichi Handa <handa@m17n.org>
21147
21148 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
21149 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
21150 (UNIDATA): New variable.
21151 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
21152 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
21153 $(RUN_TEMACS) unconditionally.
21154
211552008-02-01 Kenichi Handa <handa@m17n.org>
21156
21157 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
21158 (admindir): New variable.
21159 ($(lispsource)international/charprop.el): New target.
21160
211612008-02-01 Miles Bader <miles@gnu.org>
21162
21163 * character.c (chars-in-region): Remove obsolete function.
21164 (syms_of_character): Remove its initialization.
21165
211662008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
21167
21168 * w32select.c (validate_coding_system)
21169 (setup_windows_coding_system): New functions.
21170 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
21171 setup_windows_coding_system.
21172 (setup_config, Fw32_get_clipboard_data): Use
21173 validate_coding_system.
21174 (Fx_selection_exists): Move call to setup_config to a place
21175 where signals are allowed.
21176
21177 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
21178 (Fcheck_coding_system): Add declarations.
21179
211802008-02-01 Kenichi Handa <handa@m17n.org>
21181
21182 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
21183
211842008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21185
21186 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
21187 string as the second argument for x_new_fontset.
21188
211892008-02-01 Kenichi Handa <handa@m17n.org>
21190
21191 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
21192 (encode_coding_object): Use safe_call instead of call2.
21193
211942008-02-01 Kenichi Handa <handa@m17n.org>
21195
21196 * fontset.c (Fset_fontset_font): Check family element of a given vector.
21197
21198 * Makefile.in (lisp): Include charprop.el.
21199
212002008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21201
21202 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
21203 Not sure if it's unnecessary.
21204
212052008-02-01 Steven Tamm <steventamm@mac.com>
21206
21207 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
21208 some possibly unnecessary fontset checking code that crashed
21209 when creating a new frame.
21210
212112008-02-01 Kenichi Handa <handa@m17n.org>
21212
21213 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
21214 lookup_face.
21215
21216 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
21217
21218 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
21219
212202008-02-01 Kenichi Handa <handa@m17n.org>
21221
21222 * coding.c: Cancel the change done in HEAD on 2008-02-01.
21223 (coding_charset_list): New function.
21224
21225 * coding.h (coding_charset_list): Extern it.
21226
212272008-02-01 Kenichi Handa <handa@m17n.org>
21228
21229 * fontset.c (Fset_fontset_font): Call find_font_encoding with
21230 concatenation of family and registry.
21231
212322008-02-01 Kenichi Handa <handa@m17n.org>
21233
21234 * character.h (BYTE8_STRING): Fix typo.
21235
21236 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
21237 string to multibyte (sync to HEAD).
21238
21239 * casefiddle.c (casify_region): Handle changes in byte-length
21240 using replace_range_2 (sync to HEAD).
21241
212422008-02-01 Andreas Schwab <schwab@suse.de>
21243
21244 * chartab.c (map_char_table): GCPRO table and arg.
21245
212462008-02-01 Kenichi Handa <handa@m17n.org>
21247
21248 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
21249 already at limit.
21250
212512008-02-01 Kenichi Handa <handa@m17n.org>
21252
21253 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
21254 instead of fast_c_string_match_ignore_case.
21255 (find_font_encoding): Change argument to Lisp_Object. Use
21256 fast_string_match_ignore_case instead of
21257 fast_c_string_match_ignore_case. Change caller.
21258
212592008-02-01 Kenichi Handa <handa@m17n.org>
21260
21261 * xdisp.c (get_next_display_element): In unibyte case, decide to
21262 display in octal form by checking a character by
21263 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
21264
21265 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
21266
21267 * character.c (unibyte_has_multibyte_table): New variable.
21268
21269 * character.h (unibyte_has_multibyte_table): Extern it.
21270 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
21271
212722008-02-01 Kenichi Handa <handa@m17n.org>
21273
21274 * coding.c (encode_coding_iso_2022): Fix handling of charset
21275 annotation.
21276
212772008-02-01 Kenichi Handa <handa@m17n.org>
21278
21279 * coding.c (setup_coding_system): If coding_system is nil, use
21280 Qundecided.
21281 (Fterminal_coding_system): Return nil if terminal coding system is
21282 `undecided'.
21283 (syms_of_coding): Define coding-system `undecided' here. Setup
21284 terminal_coding as `undecided'.
21285
212862008-02-01 Kenichi Handa <handa@m17n.org>
21287
21288 * xdisp.c (message_dolog, set_message_1): Call
21289 unibyte_char_to_multibyte with arg type int.
21290
21291 * lread.c (read1): Fix reading of a char-table.
21292
21293 * print.c (print_object): Include sub char-table in circularities
21294 detection.
21295
212962008-02-01 Kenichi Handa <handa@m17n.org>
21297
21298 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
21299 Append the found sequences in car of ARGS instead of prepending.
21300
213012008-02-01 Kenichi Handa <handa@m17n.org>
21302
21303 * fileio.c (report_file_error): Make a unibyte string from
21304 strerror (errorno).
21305 (Fsubstitute_in_file_name): Fix the arg to
21306 unibyte_char_to_multibyte. It is evaluated twice.
21307
213082008-02-01 Kenichi Handa <handa@m17n.org>
21309
21310 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
21311
213122008-02-01 Kenichi Handa <handa@m17n.org>
21313
21314 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
21315 BOM is not found.
21316 (detect_coding, detect_coding_system): Optimization for ISO-2022
21317 when no 8-bit data is found.
21318
213192008-02-01 Jason Rumney <jasonr@gnu.org>
21320
21321 * w32fns.c (x_to_w32_font): Update to use new coding struct.
21322
213232008-02-01 Kenichi Handa <handa@m17n.org>
21324
21325 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
21326 CHARS.
21327
213282008-02-01 Steven Tamm <steventamm@mac.com>
21329
21330 * macterm.c (mac_encode_char): Add charset argument and update
21331 to use encoding_type.
21332 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
21333 switch to pure fontset.
21334 (decode_mac_font_name): Temporarily remove decoding.
21335 (x_font_name_to_mac_font_name): Temporarily remove encoding.
21336 (x_load_font): Temporarily remove encoding.
21337
213382008-02-01 Kenichi Handa <handa@m17n.org>
21339
21340 * xfaces.c (Fface_font): If frame is not on a window system,
21341 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
21342 refer to face->font.
21343 (split_font_name_into_vector, build_font_name_from_vector)
21344 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
21345 when HAVE_WINDOW_SYSTEM is defined.
21346
213472008-02-01 Kenichi Handa <handa@m17n.org>
21348
21349 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
21350 (x_produce_glyphs): Fix setting of members of cmp in case
21351 cmp->glyph_len is zero.
21352
21353 * fontset.c (Fset_fontset_font): Fix docstring.
21354 (Ffontset_info): Make it backward compatible. New arg ALL.
21355
213562008-02-01 Kim F. Storm <storm@cua.dk>
21357
21358 * process.c (read_process_output): Grow decoding_buf when needed;
21359 this could cause a crash in allocate_string and compact_small_strings.
21360
213612008-02-01 Kenichi Handa <handa@m17n.org>
21362
21363 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
21364
213652008-02-01 Kenichi Handa <handa@m17n.org>
21366
21367 * coding.c (setup_coding_system): Set coding->common_flags
21368 correctly for raw-text.
21369 (consume_chars): On encoding unibyte text by raw-text, don't check
21370 multibyte form.
21371 (encode_coding): On encoding by raw-text, never use translation tables.
21372
21373 * fileio.c (e_write): Short cut for the case of no encoding.
21374
213752008-02-01 Kenichi Handa <handa@m17n.org>
21376
21377 * coding.c (detect_coding, detect_coding_system): Delete unused
21378 variables.
21379
213802008-02-01 Kenichi Handa <handa@m17n.org>
21381
21382 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
21383 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
21384
213852008-02-01 Kenichi Handa <handa@m17n.org>
21386
21387 * coding.c (Ffind_coding_systems_region_internal): Include
21388 raw-text and no-conversion in the result.
21389
213902008-02-01 Kenichi Handa <handa@m17n.org>
21391
21392 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
21393 (load_font_get_repertory): Delete unnecessary check of ENCODING of
21394 FONT_DEF.
21395 (font_def_arg, add_arg, from_arg, to_arg): New args.
21396 (set_fontset_font): Change argument.
21397 (Fset_fontset_font): Fix for the case that TARGET is a script
21398 name and charset name.
21399 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
21400
214012008-02-01 Kenichi Handa <handa@m17n.org>
21402
21403 * fontset.c (fontset_font): Rename from fontset_face. Change return
21404 value.
21405 (face_suitable_for_char_p, face_for_char): Adjust for the change
21406 of fontset_font.
21407 (make_fontset_for_ascii_face): Fix setting of the fontset element
21408 for ASCII.
21409 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
21410 to get a font name.
21411 (Ffontset_info): Adjust for the change of fontset_font.
21412
21413 * coding.c (emacs_mule_char): Check invalid code more rigidly.
21414
21415 * character.h (LEADING_CODE_LATIN_1_MIN)
21416 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
21417
214182008-02-01 Kenichi Handa <handa@m17n.org>
21419
21420 * editfns.c (check_translation): New function.
21421 (Ftranslate_region_internal): Handle M:N mapping.
21422
214232008-02-01 Kenichi Handa <handa@m17n.org>
21424
21425 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
21426
214272008-02-01 Kenichi Handa <handa@m17n.org>
21428
21429 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
21430 goto invalid_code.
21431 (decode_coding_iso_2022): Fix handling of invalid designation.
21432
21433 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
21434 after calling code_conversion_save.
21435
214362008-02-01 Kenichi Handa <handa@m17n.org>
21437
21438 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
21439
21440 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
21441
21442 * fontset.c: Include "intervals.h".
21443 (fontset_face): Fix comparing of Lisp_Objects.
21444 (free_face_fontset, new_fontset_from_font_name): Fix
21445 Lisp_Object/int mixup.
21446
21447 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
21448
21449 * coding.c: Add many prototypes for static functions.
21450 (get_translation_table): Allow max_lookup to be NULL.
21451 (decode_coding, Ffind_coding_systems_region_internal)
21452 (Funencodable_char_position, Fcheck_coding_systems_region): Call
21453 get_translation_table with max_lookup NULL.
21454
214552008-02-01 Kenichi Handa <handa@m17n.org>
21456
21457 * coding.c (get_translation_table): Declare it as Lisp_Object.
21458 (LOOKUP_TRANSLATION_TABLE): New macro.
21459 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
21460 instead of CHAR_TABLE_REF.
21461
214622008-02-01 Kenichi Handa <handa@m17n.org>
21463
21464 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
21465 annotation data format.
21466 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
21467 Change arguments FROM and TO to single argument NCHARS. Change caller.
21468 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
21469 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21470 (decode_coding_ccl, decode_coding_charset): Pay attention to
21471 coding->charbuf_used.
21472 (get_translation): New function.
21473 (produce_chars): New arguments translation_table and last_block.
21474 Translate characters here. Return number of carryover chars.
21475 Change caller.
21476 (produce_composition): New argument pos. Change caller.
21477 Adjust for the change of annotation data format.
21478 (produce_charset, produce_annotation): Likewise.
21479 (decode_coding, encode_coding): Don't call translate_chars.
21480 (consume_chars): New arg translation_table. Change caller.
21481 (translate_chars): Delete.
21482 (syms_of_coding): Make translation-table's number of extra slots 2.
21483
214842008-02-01 Kenichi Handa <handa@m17n.org>
21485
21486 * search.c (simple_search): Fix setting this_pos_byte in backward
21487 search.
21488
21489 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
21490 byte sequence.
21491 (detect_coding_ccl): Fix setting of the variable valids.
21492
214932008-02-01 Kenichi Handa <handa@m17n.org>
21494
21495 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
21496
21497 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
21498
21499 * editfns.c (Ftranslate_region_internal): Rename from
21500 Ftranslate_region. Accept a char-table in TABLE.
21501 (syms_of_editfns): Defsubr Stranslate_region_internal.
21502
21503 * xfaces.c (set_lface_from_font_name): If a font is specified for
21504 a frame, generate a fontset from the font.
21505 (build_scalable_font_name): If the scalable font is requested for
21506 a specific size, don't change that size.
21507 (try_font_list): Try a scalable font also in the case that a
21508 pattern string is specified.
21509
215102008-02-01 Kenichi Handa <handa@m17n.org>
21511
21512 * xfaces.c (Fface_font): New optional arg CHARACTER.
21513
215142008-02-01 Kenichi Handa <handa@m17n.org>
21515
21516 * charset.h (CHARSET_OFFSET): New macro.
21517
215182008-02-01 Kenichi Handa <handa@m17n.org>
21519
21520 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
21521
21522 * fontset.c (fontset_face): Handle the case that repertory is a
21523 char-table.
21524 (find_font_encoding): Return nil for unknown encoding.
21525 (Fset_fontset_font): Ignore a font of unknown encoding.
21526
215272008-02-01 Kenichi Handa <handa@m17n.org>
21528
21529 * keymap.c (describe_vector): Handle default value of a char table.
21530
21531 * fontset.c (fontset_face): Handle fallback fonts correctly.
21532 (Ffontset_info): Return infomation about fallback fonts.
21533
215342008-02-01 Kenichi Handa <handa@m17n.org>
21535
21536 * fontset.c (FONTSET_DEFAULT): New macro.
21537 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
21538 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
21539 the case that it is nil.
21540 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
21541 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
21542
21543 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
21544 subset or superset.
21545
215462008-02-01 Kenichi Handa <handa@m17n.org>
21547
21548 * emacs.c (main): Call init_charset after syms_of_XXX.
21549
21550 * charset.c (Vcharset_map_directory): Delete.
21551 (Vcharset_map_path): New variable.
21552 (load_charset_map_from_file): Use Vcharset_map_path instead.
21553 (init_charset): Initialize Vcharset_map_path.
21554 (syms_of_charset): Delete declaration of "charset-map-directory",
21555 add declaration of "charset-map-path".
21556
215572008-02-01 Kenichi Handa <handa@m17n.org>
21558
21559 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
21560 ASCII only string.
21561
21562 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
21563
21564 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
21565 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
21566
215672008-02-01 Kenichi Handa <handa@m17n.org>
21568
21569 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
21570
21571 * coding.c (QCmnemonic, QCdefalut_char)
21572 (QCdecode_translation_table, QCencode_translation_table)
21573 (QCpost_read_conversion, QCpre_write_conversion): New variables.
21574 (get_translation_table): Return a list of translation tables if
21575 necessary.
21576 (decode_coding): Call get_translation_table with ENCODEP 0.
21577 (char_encodable_p): If translation_table is non-nil, always call
21578 translate_char.
21579 (Fdefine_coding_system_internal): Accept list of translation
21580 tables as :encode-translation-table and :decode-translation-table.
21581 (Fcoding_system_put): New function.
21582 (syms_of_coding): Declare new symbols. Defsubr
21583 Scoding_system_put.
21584 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
21585 typically JISX0212.
21586
21587 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
21588 when the charset is superset type.
21589
21590 * character.c (translate_char): Accept list of translation tables.
21591
215922008-02-01 Kenichi Handa <handa@m17n.org>
21593
21594 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
21595 (CODING_ATTR_TRANS_TBL): New macro.
21596
21597 * coding.c (get_translation_table): New function.
21598 (translate_chars): Fix the bug of skipping annotation data.
21599 (decode_coding, encode_coding): Utilize get_translation_table.
21600 (char_encodable_p, Funencodable_char_position): Translate char if
21601 necessary.
21602 (Ffind_coding_systems_region_internal)
21603 (Fcheck_coding_systems_region): Setup translation table for encode
21604 in a coding system attribute vector in advance.
21605 (Fdefine_coding_system_internal): Allow a symbol as translation
21606 table. For shift-jis type coding system, allow 4th charset.
21607
216082008-02-01 Kenichi Handa <handa@m17n.org>
21609
21610 * coding.c (decode_coding_sjis): Check the first byte rigidly.
21611
21612 * xdisp.c (get_next_display_element): Pass -1 as POS to
21613 FACE_FOR_CHAR if displaying a C-string.
21614
216152008-02-01 Kenichi Handa <handa@m17n.org>
21616
21617 * composite.c (get_composition_id): Handle xoff and yoff in a
21618 composition rule.
21619
21620 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
21621 (struct composition): New member lbearing and rbearing.
21622
21623 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
21624 (x_get_glyph_overhangs): Handle a composition glyph.
21625 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
21626
21627 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
21628 composition glyph.
21629
216302008-02-01 Kenichi Handa <handa@m17n.org>
21631
21632 * print.c: Include charset.h.
21633 (Vprint_charset_text_property): New variable.
21634 (Qdefault): Extern it.
21635 (PRINT_STRING_NON_CHARSET_FOUND)
21636 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
21637 (print_check_string_result): New variable.
21638 (print_check_string_charset_prop): New function.
21639 (print_prune_charset_plist): New variable.
21640 (print_prune_string_charset): New function.
21641 (print_object): Call print_prune_string_charset if
21642 Vprint_charset_text_property is not t.
21643 (print_interval): Print nothing if interval->plist is nil.
21644 (syms_of_print): Declare Vprint_charset_text_property as a lisp
21645 variable. Init and staticpro print_prune_charset_plist.
21646
216472008-02-01 Kenichi Handa <handa@m17n.org>
21648
21649 * fontset.c (new_fontset_from_font_name): Use the specified font
21650 for all characters in the new fontset.
21651
21652 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21653 OBJECT args.
21654
21655 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
21656 OBJECT args for composition too.
21657
21658 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21659 OBJECT args.
21660
216612008-02-01 Kenichi Handa <handa@m17n.org>
21662
21663 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
21664
21665 * fontset.c (reorder_font_vector): Adjust for the change of
21666 FONT_DEF format.
21667 (fontset_face): New arg id. Change caller.
21668 (face_for_char): New args pos and object.
21669 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
21670 (fs_query_fontset): Check NAME by Fassoc too.
21671 (Fset_fontset_font): Allow non-XLFD font name.
21672 (Ffontset_info): Adjust for the change of FONT_DEF format.
21673
21674 * fontset.h (face_for_char): Adjust prototype.
21675
21676 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
21677 (append_space, extend_face_to_end_of_line)
21678 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
21679 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
21680
21681 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
21682 POS and OBJECT args.
21683
21684 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
21685 POS and OBJECT args.
21686
216872008-02-01 Jason Rumney <jasonr@gnu.org>
21688
21689 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
21690 of GlobalAlloc'ed memory.
21691
216922008-02-01 Kenichi Handa <handa@m17n.org>
21693
21694 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
21695
21696 * charset.h (charset_table_used): Delete extern.
21697
21698 * charset.c (charset_table_used): Make it static.
21699 (map_charset_chars): Fix args to c_function with.
21700
21701 * chartab.c (map_sub_char_table_for_charset): Fix args to
21702 c_function with.
21703
21704 * coding.h (enum coding_result_code): Delete
21705 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
21706
21707 * coding.c (Qinsufficient_source, Qinconsistent_eol)
21708 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
21709 (Vlast_code_conversion_error): New variables.
21710 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
21711 (ONE_MORE_BYTE): Record error if any instead of signaling an
21712 error. If non-ASCII multibyte char is found, return the negative
21713 value of the code. All callers changed to check it.
21714 (ONE_MORE_BYTE_NO_CHECK): Likewise.
21715 (record_conversion_result): New function. Change all codes setting
21716 coding->result to call this function.
21717 (detect_coding_utf_8, decode_coding_utf_8)
21718 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
21719 Don't use the local variable incomplete.
21720 (emacs_mule_char): Change the second arg to `const'.
21721 (decode_coding): Fix of flushing out unprocessed data.
21722 (make_conversion_work_buffer): Fix making of a work buffer.
21723 (decode_coding_object): Return coding->dst_object.
21724
21725 * fontset.c (set_fontset_font): Fix args.
21726
21727 * lisp.h (CHARACTERBITS): Define as 22.
21728
21729 * process.c (send_process): Be sure to set coding->src_multibyte.
21730
21731 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
21732
217332008-02-01 Kenichi Handa <handa@m17n.org>
21734
21735 * xdisp.c (handle_auto_composed_prop): Give limit to
21736 Fnext_single_char_property_change.
21737
217382008-02-01 Kenichi Handa <handa@m17n.org>
21739
21740 * composite.c (syms_of_composite): Don't make the composition hash
21741 table weak.
21742
21743 * fontset.c (Fset_fontset_font): Fix docstring.
21744
21745 * lisp.h (detect_coding_system): Adjust prototype.
21746
21747 * fileio.c (kill_workbuf_unwind): Delete this function.
21748 (Finsert_file_contents): Adjust the call of detect_coding_system.
21749 Get conversion_buffer by code_conversion_save. Use the macro
21750 CODING_MAY_REQUIRE_DECODING. After decoding, update
21751 coding_system.
21752
21753 * coding.h (make_conversion_work_buffer): Delete extern.
21754 (code_conversion_save): Extern it.
21755
21756 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
21757 (CODING_GET_INFO): Delete argument eol_type. Change callers.
21758 (decode_coding_utf_8): Don't do eol converion.
21759 (detect_coding_utf_16): Check coding->src_chars, not
21760 coding->src_bytes. Add heuristics for those that have no signature.
21761 (decode_coding_emacs_mule, decode_coding_iso_2022)
21762 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21763 Don't do eol converion.
21764 (adjust_coding_eol_type): Return a new coding system.
21765 (detect_coding): Don't detect eol. Fix for utf-16 detection.
21766 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
21767 each change.
21768 (decode_coding): Pay attention to undo_list. Do eol conversion for
21769 all types of coding-systems (if necessary).
21770 (Vcode_conversion_work_buf_list): Delete it.
21771 (Vcode_conversion_reused_workbuf): Rename from
21772 Vcode_conversion_reused_work_buf.
21773 (Vcode_conversion_workbuf_name): New variable.
21774 (reused_workbuf_in_use): New variable.
21775 (make_conversion_work_buffer): Delete the arg DEPTH.
21776 (code_conversion_restore): Change argument to cons.
21777 (code_conversion_save): Delete the argument BUFFER. Change callers.
21778 (detect_coding_system): New argument src_chars. Change callers.
21779 Fix for utf-16 detection.
21780 (init_coding_once): Don't use ISO_carriage_return.
21781 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
21782 reused_workbuf_in_use.
21783
217842008-02-01 Kenichi Handa <handa@m17n.org>
21785
21786 * keymap.c (store_in_keymap): Pay attention to the case that idx
21787 is a cons specifying a character range.
21788
217892008-02-01 Kenichi Handa <handa@m17n.org>
21790
21791 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
21792 HANDLED_RECOMPUTE_PROPS.
21793
21794 * coding.c (Fdefine_coding_system_internal): Fix checking of
21795 ascii compatibility.
21796
217972008-02-01 Kenichi Handa <handa@m17n.org>
21798
21799 * charset.c (find_charsets_in_text): Delete unused locale variable.
21800 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
21801
21802 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
21803 Resync charset_list to Vemacs_mule_charset_list.
21804
21805 * keymap.c (store_in_keymap): Pay attention to the case that idx
21806 is a cons specifying a character range.
21807
218082008-02-01 Kenichi Handa <handa@m17n.org>
21809
21810 * composite.c (update_compositions): Bind inhibit-read-only, etc
21811 to t before calling remove-list-of-text-properties.
21812
21813 * print.c (print_object): Always print ASCII chars as is.
21814
218152008-02-01 Kenichi Handa <handa@m17n.org>
21816
21817 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
21818
21819 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
21820 is a char table.
21821
218222008-02-01 Kenichi Handa <handa@m17n.org>
21823
21824 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
21825
218262008-02-01 Kenichi Handa <handa@m17n.org>
21827
21828 * xfaces.c (set_lface_from_font_name): Fix for the case that
21829 FONTNAME is not fontset name.
21830
218312008-02-01 Kenichi Handa <handa@m17n.org>
21832
21833 * fns.c (base64_encode_1): Fix previous change.
21834
218352008-02-01 Kenichi Handa <handa@m17n.org>
21836
21837 * fontset.c (set_fontset_font): New function.
21838 (Fset_fontset_font): If a font is specified for a charset, use
21839 map_charset_chars to store the font spec in a fontset.
21840
218412008-02-01 Kenichi Handa <handa@m17n.org>
21842
21843 * fontset.c (fontset_face): Create a fallback fontset on demand.
21844 (make_fontset): Don't create a fallback fontset here.
21845 (free_face_fontset): Free a fallback fontset (if any) too.
21846 (n_auto_fontsets): Delete this variable.
21847 (auto_fontset_alist): New variable.
21848 (new_fontset_from_font_name): Check auto_fontset_alist.
21849 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
21850 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
21851 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
21852 Defsubr Sfontset_list_all.
21853
218542008-02-01 Kenichi Handa <handa@m17n.org>
21855
21856 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
21857
218582008-02-01 Kenichi Handa <handa@m17n.org>
21859
21860 * fontset.c (Fnew_fontset): Check NAME more rigidly.
21861
218622008-02-01 Kenichi Handa <handa@m17n.org>
21863
21864 * editfns.c (Fgoto_char): Fix docstring.
21865
218662008-02-01 Kenichi Handa <handa@m17n.org>
21867
21868 * insdel.c (insert_from_gap): Adjust intervals correctly.
21869
218702008-02-01 Jason Rumney <jasonr@gnu.org>
21871
21872 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
21873 (pfnGetFontUnicodeRanges): New dynamically loaded function.
21874 (w32_initialize): Try to load it.
21875 (x_get_font_repertory): Use it if available.
21876 (w32_encode_char): Add shortcut for unicode output.
21877
21878 * w32fns.c (w32_load_system_font): Default charset to -1.
21879 (x_to_w32_charset): Match all fonts for unicode.
21880 (w32_to_x_charset): New parameter matching. Don't return partial
21881 or wildcard charsets.
21882 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
21883 (w32_codepage_for_font): Return CP_UNICODE for unicode.
21884 (w32_to_x_font): Match charset to real charset.
21885 (enum_font_cb2): Always list unicode versions.
21886
21887 * makefile.w32-in (temacs): Increase EMHEAP.
21888
218892008-02-01 Jason Rumney <jasonr@gnu.org>
21890
21891 * w32term.c (w32_encode_char): New charset parameter.
21892 font_info.encoding becomes encoding_type.
21893 (x_get_font_repertory): New function. Warning: stub only!
21894 (x_new_font): Return quickly if font already set.
21895 (x_new_fontset): fontsetname parameter is Lisp_Object.
21896 Use new fs_query_fontset. Try new_fontset_from_font_name.
21897 Use fontset_name for return value.
21898
21899 * w32term.h: Declare x_get_font_repertory.
21900
21901 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
21902 place of find_charset_in_text. Use encode_coding_object in place
21903 of encode_coding.
21904 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
21905 decode_coding.
21906
21907 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
21908 of x_new_fontset.
21909 (w32_load_system_font): Initialize charset as unicode.
21910 font_info.encoding becomes encoding_type.
21911 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
21912 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
21913 (syms_of_w32fns): Set get_font_repertory_func.
21914
21915 * w32console.c: Include character.h. Use terminal_encode_buffer
21916 from term.c.
21917 (write_glyphs): Use new version of encode_terminal_code. Use
21918 encode_coding_object in place of encode_coding.
21919
21920 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
21921 encoding becomes encoding_type.
21922
21923 * term.c (terminal_encode_buffer): Make externally visible.
21924
21925 * makefile.w32-in: Add character.h dependancies.
21926 (character.o, chartab.o): New targets.
21927
219282008-02-01 Kenichi Handa <handa@m17n.org>
21929
21930 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
21931 CODING_ID_EOL_TYPE.
21932
219332008-02-01 Andreas Schwab <schwab@suse.de>
21934
21935 * coding.c (produce_chars): Revert last change.
21936
219372008-02-01 Kenichi Handa <handa@m17n.org>
21938
21939 * charset.h (charset_unicode): Extern it.
21940
21941 * charset.c (string_xstring_p): Check by (C >= 0x100).
21942 (find_charsets_in_text): Change format of the arc CHARSETS. New
21943 arg MULTIBYTE.
21944 (Ffind_charset_region, Ffind_charset_string): Adjust for the
21945 change of find_charsets_in_text.
21946 (Fsplit_char): Fix doc. Never return unknown.
21947
21948 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
21949
21950 * coding.c (Fdefine_coding_system_alias): Update
21951 Vcoding_system_list.
21952
21953 * fontset.c (load_font_get_repertory): Pay attention to the case
21954 that ENCODING of a font is specified by a char-table.
21955
21956 * xterm.c (x_get_font_repertory): Handle the case that the
21957 encoding of font is other than Unicode.
21958
219592008-02-01 Kenichi Handa <handa@m17n.org>
21960
21961 * term.c (encode_terminal_code): Don't handle glyph-table. Check
21962 if a character is encodable by the terminal coding system. If
21963 not, produces proper number of `?'s. Update
21964 terminal_encode_buffer and terminal_encode_buf_size if necessary.
21965 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
21966
219672008-02-01 Kenichi Handa <handa@m17n.org>
21968
21969 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
21970 variables.
21971 (encode_terminal_code): Change argument. Encode multiple
21972 characters at once. Store the result of encoding in
21973 terminal_encode_buffer.
21974 (write_glyphs, insert_glyphs): Adjust for the change of
21975 encode_terminal_code.
21976 (term_init): Initialize terminal_encode_buffer and
21977 terminal_encode_buf_size.
21978
21979 * coding.c (consume_chars): If coding->src_object is nil, don't
21980 check annotation.
21981
219822008-02-01 Kenichi Handa <handa@m17n.org>
21983
21984 * character.c (char_string): Use ASCII_CHAR_P instead of
21985 SINGLE_BYTE_CHAR_P.
21986
219872008-02-01 Kenichi Handa <handa@m17n.org>
21988
21989 * xdisp.c (handle_auto_composed_prop): Check if the last
21990 characters of auto-composed region is newly composed with the
21991 following characters.
21992 (handle_composition_prop): Fix checking of point being inside
21993 composition.
21994
219952008-02-01 Kenichi Handa <handa@m17n.org>
21996
21997 * fns.c (concat): Don't change multibyteness of the result by
21998 concatenating an 8-bit character.
21999
22000 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
22001 multibyteness of the result when newelt is an 8-bit character.
22002
220032008-02-01 Dave Love <fx@gnu.org>
22004
22005 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
22006 EMACS_INT.
22007
22008 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
22009
22010 * xfaces.c (face_numeric_value): Declare dim size_t.
22011 (Finternal_lisp_face_equal_p): Remove unused f.
22012
22013 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
22014 (MATRIX_ROW): Remove unused vars.
22015 (draw_glyphs, x_insert_glyphs, fast_find_position)
22016 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
22017 byte/char counts.
22018
22019 * regex.c (regex_compile): Remove unused var.
22020
22021 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22022
22023 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
22024 (Faccessible_keymaps, where_is_internal): Remove unused vars.
22025
22026 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
22027
22028 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
22029
22030 * fileio.c (Fwrite_region): Remove unused var.
22031
22032 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
22033 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
22034
22035 * composite.c (Fremove_list_of_text_properties): Declare.
22036
22037 * coding.c (inhibit_pre_post_conversion): Remove (unused).
22038 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
22039 (coding_inherit_eol_type): Remove unused attrs.
22040 (detect_coding): Cast arg of detect_eol.
22041
22042 * charset.c (syms_of_charset): Remove unused var p.
22043 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
22044 byte/char counts.
22045
22046 * casetab.c (set_case_table): Remove unused var.
22047
22048 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
22049 unused vars.
22050
220512008-02-01 Dave Love <fx@gnu.org>
22052
22053 * xterm.c (x_bitmap_mask): Declare.
22054
220552008-02-01 Dave Love <fx@gnu.org>
22056
22057 * xterm.c (x_term_init): Fix type error.
22058
22059 * lisp.h: Add Funibyte_char_to_multibyte.
22060
22061 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
22062 (Fset_coding_system_priority): Doc fix.
22063
22064 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
22065
22066 * indent.c (check_composition): Make start and end EMACS_INT.
22067
22068 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
22069
22070 * xdisp.c (handle_composition_prop, check_point_in_composition):
22071 Make buffer positions EMACS_INT.
22072
22073 * composite.c (find_composition, run_composition_function)
22074 (update_compositions, Ffind_composition_internal): Make buffer
22075 positions EMACS_INT.
22076
22077 * composite.h (find_composition, update_compositions): Make
22078 position args EMACS_INT.
22079
22080 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
22081
22082 * intervals.c (get_property_and_range):
22083 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
22084
22085 * unexalpha.c: Don't include varargs.h.
22086
220872008-02-01 Dave Love <fx@gnu.org>
22088
22089 * coding.h (ENCODE_UTF_8): New.
22090
22091 * Makefile.in (gtkutil.o): Depend on coding.h.
22092
22093 * coding.c (Fset_coding_system_priority): Doc fix.
22094
220952008-02-01 Kenichi Handa <handa@m17n.org>
22096
22097 * fileio.c (Finsert_file_contents): Call setup_coding_system in
22098 the case of auto saving.
22099
221002008-02-01 Andreas Schwab <schwab@suse.de>
22101
22102 * chartab.c (map_char_table, map_char_table_for_charset): Protect
22103 `range' from GC.
22104
221052008-02-01 Kenichi Handa <handa@m17n.org>
22106
22107 * coding.c (decode_coding_sjis): Check bytes more rigidly.
22108
221092008-02-01 Kenichi Handa <handa@m17n.org>
22110
22111 * fileio.c (choose_write_coding_system): Return a decided coding system.
22112 (Fwrite_region): Set Vlast_coding_system_used to the return value
22113 of choose_write_coding_system.
22114
221152008-02-01 Kenichi Handa <handa@m17n.org>
22116
22117 * charset.c (Fset_charset_priority): Pay attention to duplicated
22118 arguments.
22119
22120 * coding.c (QCcategory): New variable.
22121 (syms_of_coding): Defsym it. Set all elements of
22122 Vcoding_category_table and their symbol values.
22123 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
22124 coding-category-XXX, and coding-category-list.
22125 (Fdefine_coding_system_internal): Add category in the plist.
22126
221272008-02-01 Kenichi Handa <handa@m17n.org>
22128
22129 * callproc.c (Fcall_process): Handle carryover correctly.
22130
22131 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
22132 (raw_text_coding_system): Check NILP (coding_system).
22133 (coding_inherit_eol_type): Check NILP (coding_system) and
22134 NILP (parent).
22135 (consume_chars): Fix for the case of raw-text.
22136
22137 * process.c (read_process_output): Handle carryover correctly.
22138
221392008-02-01 Dave Love <fx@gnu.org>
22140
22141 * regex.c (re_search_2): Fix last change.
22142
221432008-02-01 Kenichi Handa <handa@m17n.org>
22144
22145 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
22146 target_multibyte. Even in a unibyte case, return a converted
22147 multibyte char.
22148 (GET_CHAR_AFTER): New macro.
22149 (PATFETCH): Translate via multibyte char.
22150 (HANDLE_UNIBYTE_RANGE): Delete this macro.
22151 (SETUP_MULTIBYTE_RANGE): New macro.
22152 (regex_compile): Setup compiled code so that its multibyteness
22153 matches that of a target. Fix the handling of "[X-YZ]" using
22154 SETUP_MULTIBYTE_RANGE.
22155 (analyse_first) <charset>: For filling fastmap for all multibyte
22156 characters, don't check by BASE_LEADING_CODE_P.
22157 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
22158 the same as RE_MULTIBYTE_P (bufp) now.
22159 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
22160 (TARGET_CHAR_AND_LENGTH): Delete this macro.
22161 (TRANSLATE_VIA_MULTIBYTE): New macro.
22162 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
22163 It is the same as RE_MULTIBYTE_P (bufp) now.
22164 <exactn>: Translate via multibyte.
22165 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
22166 translate it.
22167 <charset, charset_not>: Fetch a character by
22168 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
22169 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
22170 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
22171 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
22172 by GET_CHAR_AFTER.
22173 (bcmp_translate): Likewise.
22174
22175 * search.c (compile_pattern): Check the member target_multibyte,
22176 not the member multibyte of buf.
22177
22178 * lread.c (read1): While reading a string, set force_singlebyte
22179 and force_multibyte correctly.
22180
22181 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
22182 up of unibyte_to_multibyte_table.
22183
221842008-02-01 Kenichi Handa <handa@m17n.org>
22185
22186 * coding.c (setup_coding_system): If coding has
22187 post-read-conversion or pre-write-conversion, set
22188 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
22189 respectively.
22190 (decode_coding_gap): Run post-read-conversion if any.
22191
22192 * fileio.c (Finsert_file_contents): Even if we read into a
22193 unibyte buffer, check if we must decode the result or not.
22194
221952008-02-01 Kenichi Handa <handa@m17n.org>
22196
22197 * coding.c (make_conversion_work_buffer): Change the work buffer
22198 name to the same one as that of Emacs 21.
22199
222002008-02-01 Kenichi Handa <handa@m17n.org>
22201
22202 * coding.h (make_conversion_work_buffer): Adjust prototype.
22203 (code_conversion_restore): Don't extern it.
22204
22205 * coding.c (detected_mask): Delete unused variable.
22206 (decode_coding_iso_2022): Pay attention to the byte sequence of
22207 CTEXT extended segment, and retain those bytes as is.
22208 (decode_coding_ccl): Delete unused variable `valids'.
22209 (setup_coding_system): Delete unused variable `category'.
22210 (consume_chars): Delete unused variable `category'. Make it work
22211 for non-multibyte case.
22212 (make_conversion_work_buffer): Change argument.
22213 (saved_coding): Delete unused variable.
22214 (code_conversion_restore): Don't check saved_coding->destination.
22215 (code_conversion_save): New function.
22216 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
22217 instead of record_unwind_protect.
22218 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
22219 (detect_coding_system): Delete unused variable `mask'.
22220 (Fdefine_coding_system_internal): Delete unused variable id.
22221
22222 * fileio.c (kill_workbuf_unwind): New function.
22223 (Finsert_file_contents): On replacing, call
22224 make_conversion_work_buffer with correct args, and call
22225 record_unwind_protect with the first arg kill_workbuf_unwind.
22226
22227 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
22228
222292008-02-01 Kenichi Handa <handa@m17n.org>
22230
22231 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
22232 (fontset_add): Fix for the case that TO is less than TO1.
22233 (Ffontset_info): Don't use fallback fontset on checking the
22234 default fontset.
22235 (dump_fontset): New function for debugging.
22236
22237 * coding.c (Fdefine_coding_system_internal): Fix for the case that
22238 coding_type is Qcharset.
22239
222402008-02-01 Kenichi Handa <handa@m17n.org>
22241
22242 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
22243 (map_char_table): Don't inherit the value from the parent on
22244 initializing VAL. Adjust for the above change.
22245
222462008-02-01 Kenichi Handa <handa@m17n.org>
22247
22248 * coding.c (Qsignature, Qendian): Delete these variables.
22249 (syms_of_coding): Don't initialize them.
22250 (CATEGORY_MASK_UTF_16_AUTO): New macro.
22251 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
22252 detect_info->found.
22253 (decode_coding_utf_16): Don't detect BOM here.
22254 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
22255 is NOT utf_16_without_bom.
22256 (setup_coding_system): For a coding system of type utf-16, check
22257 if the attribute :endian is Qbig or not (not nil or not), and set
22258 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
22259 (detect_coding): If coding type is utf-16 and BOM detection is
22260 required, detect it.
22261 (Fdefine_coding_system_internal): For a coding system of type
22262 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
22263
222642008-02-01 Kenichi Handa <handa@m17n.org>
22265
22266 * coding.c (coding_set_source): Fix for the case that the current
22267 buffer is different from coding->src_object.
22268 (decode_coding_object): Don't use the conversion work buffer if
22269 DST_OBJECT is a buffer.
22270
222712008-02-01 Dave Love <fx@gnu.org>
22272
22273 * lread.c (read_emacs_mule_char) [len==2]: Index
22274 emacs_mule_charset correctly.
22275
222762008-02-01 Dave Love <fx@gnu.org>
22277
22278 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
22279 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
22280 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
22281 treated specially.)
22282 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
22283 (detected_mask): Remove Big5 bits.
22284
222852008-02-01 Kenichi Handa <handa@m17n.org>
22286
22287 The following changes are to make the font rescaling facility
22288 compatible with Emacs 21.
22289
22290 * xfaces.c (Vface_font_rescale_alist): Rename from
22291 Vface_resizing_fonts.
22292 (struct font_name): Rename member resizing_ratio to rescale_ratio.
22293 (font_rescale_ratio): Rename from font_resizing_ratio.
22294 (split_font_name): Set font->rescale_ratio.
22295 (better_font_p): Pay attention to font->rescale_ratio.
22296 (build_scalable_font_name): Likewise. Change RESX, and RESY
22297 fields.
22298 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
22299
223002008-02-01 Kenichi Handa <handa@m17n.org>
22301
22302 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
22303 (Qutf_16_le): Remove these variables.
22304 (syms_of_coding): Don't DEFSYM them.
22305 (decode_coding_utf_16): Fix handling of BOM.
22306 (encode_coding_utf_16): Fix handling of BOM.
22307
223082008-02-01 Kenichi Handa <handa@m17n.org>
22309
22310 * fileio.c (Finsert_file_contents): On replacing, before decoding
22311 the file into the work buffer, set point of the work buffer to the end.
22312
223132008-02-01 Dave Love <fx@gnu.org>
22314
22315 * coding.c (Fcheck_coding_systems_region): Fix type errors.
22316
223172008-02-01 Dave Love <fx@gnu.org>
22318
22319 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22320 and fix C types.
22321
223222008-02-01 Kenichi Handa <handa@m17n.org>
22323
22324 * xdisp.c (SKIP_GLYPHS): New macro.
22325 (set_cursor_from_row): Pay attention to string display properties.
22326
22327 * category.c (copy_category_entry): Fix for the case that RANGE
22328 is an integer.
22329
22330 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
22331
22332 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
22333
223342008-02-01 Kenichi Handa <handa@m17n.org>
22335
22336 * charset.c (Fcharset_id_internal): New function.
22337 (syms_of_charset): Defsubr it.
22338
22339 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
22340 with the last arg charset_list acquired from coding.
22341 (Fdefine_coding_system_internal): For ccl-based coding system, fix
22342 the attribute coding_attr_ccl_valids.
22343
22344 * coding.h (enum define_coding_ccl_arg_index): Set the first
22345 member coding_arg_ccl_decoder to coding_arg_max.
22346
22347 * ccl.h (ccl_driver): Adjust prototype.
22348
22349 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
22350 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 22351 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
22352 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
22353 last arg Qnil.
22354
223552008-02-01 Kenichi Handa <handa@m17n.org>
22356
22357 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
22358 call encode_char.
22359
22360 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
22361
223622008-02-01 Dave Love <fx@gnu.org>
22363
22364 * composite.c (syms_of_composite): Make composition_hash_table weak.
22365
223662008-02-01 Kenichi Handa <handa@m17n.org>
22367
22368 * dispextern.h (check_face_attributes, generate_ascii_font_name)
22369 (font_name_registry): Don't extern them.
22370 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
22371
22372 * fontset.h (Qfontset): Don't extern it.
22373 (new_fontset_from_font_name): Extern it.
22374
22375 * fontset.c: Give 8 extra slots to fontset objects.
22376 (Qfontset_info): New variable.
22377 (syms_of_fontset): Defsym it.
22378 (FONTSET_FALLBACK): New macro.
22379 (fontset_face): Try also the default fontset.
22380 (make_fontset): Realize a fallback fontset from the default fontset.
22381 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
22382 using split_font_name_into_vector and build_font_name_from_vector.
22383 (Fset_fontset_font): Access the elements of font_spec by enum
22384 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
22385 name by using split_font_name_into_vector.
22386 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
22387 generate a proper font name from the fontset name. Update
22388 Vfontset_alias_alist.
22389 (n_auto_fontsets): New variable.
22390 (new_fontset_from_font_name): New function.
22391 (Ffont_info): Store the information about fonts generated from the
22392 default fontset in the first extra slot of the returned char-table.
22393
22394 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
22395 (font_name_registry): Delete function.
22396 (split_font_name_into_vector): New function.
22397 (build_font_name_from_vector): New function.
22398 (font_list): The argument REGISTRY is now a list of registry names.
22399 (choose_face_font): If we are choosing an ASCII font, and ATTRS
22400 specifies an explicit font name, return the name as is. Make a
22401 list of registy names.
22402
22403 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
22404 of x_new_fontset.
22405 (Fx_create_frame): Don't call x_new_fontset here. Just use
22406 x_list_fonts to check the existence of fonts.
22407
22408 * xterm.h (x_new_fontset): Adjust prototype.
22409
22410 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
22411 string. Use new_fontset_from_font_name to create a fontset from a
22412 font name.
22413
224142008-02-01 Kenichi Handa <handa@m17n.org>
22415
22416 * syntax.c (Vfind_word_boundary_function_table): New name for
22417 Vnext_word_boundary_function_table.
22418 (find-word-boundary-function-table): New name for
22419 next-word-boundary-function-table.
22420
224212008-02-01 Dave Love <fx@gnu.org>
22422
22423 * Makefile.in: Fix some dependencies.
22424
22425 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
22426 set it to nil before returning.
22427
22428 * composite.c (update_compositions): Fix type error.
22429
22430 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
22431
224322008-02-01 Kenichi Handa <handa@m17n.org>
22433
22434 * xterm.c (x_new_font): Optimize for the case that the font is
22435 already set for the frame.
22436
224372008-02-01 Kenichi Handa <handa@m17n.org>
22438
22439 * chartab.c (char_table_ascii): Check if the char table contents
22440 is sub-char-table or not.
22441 (char_table_set, char_table_set_range): Fix argument to
22442 char_table_ascii.
22443
22444 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
22445 (detect_coding_utf_8, detect_coding_utf_16)
22446 (detect_coding_emacs_mule, detect_coding_iso_2022)
22447 (detect_coding_sjis, detect_coding_big5)
22448 (detect_coding_ccl, detect_coding_charset): Change argument MASK
22449 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
22450 sequence is valid in this coding system. Change callers.
22451 (MAX_ANNOTATION_LENGTH): New macro.
22452 (ADD_ANNOTATION_DATA): New macro.
22453 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
22454 ADD_ANNOTATION_DATA. Change the format of annotation data.
22455 (ADD_CHARSET_DATA): New macro.
22456 (emacs_mule_char): New argument ID. Change callers.
22457 (decode_coding_emacs_mule, decode_coding_iso_2022)
22458 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
22459 Produce charset annotation data in coding->charbuf.
22460 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
22461 to charset annotation data in coding->charbuf.
22462 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
22463 coding->common_flags if the coding system is iso-2022 based and
22464 uses designation.
22465 (produce_composition): Adjust for the new annotation data format.
22466 (produce_charset): New function.
22467 (produce_annotation): Handle charset annotation.
22468 (handle_composition_annotation, handle_charset_annotation): New
22469 functions.
22470 (consume_chars): Handle charset annotation. Utilize the above two
22471 functions.
22472 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
22473 buffer, get the deleted text as a string and set
22474 coding->src_object to that string.
22475 (detect_coding, detect_coding_system): Use the new struct
22476 coding_detection_info.
22477
22478 * coding.h (struct coding_detection_info): New structure.
22479 (struct coding_system): Adjust prototype of the member `detector'.
22480 (CODING_ANNOTATE_CHARSET_MASK): New macro.
22481
224822008-02-01 Kenichi Handa <handa@m17n.org>
22483
22484 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
22485
224862008-02-01 Dave Love <fx@gnu.org>
22487
22488 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
22489 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
22490 to new local and nullify apropos_accumulate before returning.
22491 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
22492
224932008-02-01 Kenichi Handa <handa@m17n.org>
22494
22495 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
22496 correctly.
e3eea1fc 22497
aac0c6e3
MR
224982008-02-01 Dave Love <fx@gnu.org>
22499
22500 * fns.c (Flanginfo): Call synchronize_system_time_locale.
22501
225022008-02-01 Kenichi Handa <handa@m17n.org>
22503
22504 The following changes are to make character composition happen
22505 automatically on displaying.
22506
22507 * Makefile.in (lisp, shortlisp): Add composite.elc.
22508
22509 * composite.h (Qauto_composed, Vauto_composition_function)
22510 (Qauto_composition_function): Extern them.
22511
22512 * composite.c (Vcomposition_function_table)
22513 (Qcomposition_function_table): Delete variables.
22514 (Qauto_composed, Vauto_composition_function)
22515 (Qauto_composition_function): New variables.
22516 (run_composition_function): Don't call
22517 compose-chars-after-function.
22518 (update_compositions): Clear `auto-composed' text property.
22519 (compose_chars_in_text): Delete this function.
22520 (syms_of_composite): Staticpro Qauto_composed and
22521 Qauto_composition_function. Declare Vauto_composition_function as
22522 a Lisp variable.
22523
22524 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
22525
22526 * xdisp.c (it_props): Add an entry for Qauto_composed.
22527 (handle_auto_composed_prop): New function.
22528
22529 * xselect.c (selection_data_to_lisp_data): Don't call
22530 compose_chars_in_text.
22531
225322008-02-01 Dave Love <fx@gnu.org>
22533
22534 * keyboard.c (read_char): Modify checking around use of
22535 Vkeyboard_translate_table.
22536
22537 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22538 and fix C types.
22539
225402008-02-01 Kenichi Handa <handa@m17n.org>
22541
22542 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
22543 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22544 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
22545 the case that the last byte is '\r' correctly.
22546 (decode_coding): Flush out the unprocessed data correctly.
22547 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
22548
225492008-02-01 Dave Love <fx@gnu.org>
22550
22551 * xterm.c (XTread_socket): Fix changes for defined keysyms.
22552 Add XK_ISO... case.
22553 (xaw_scroll_callback): Revert last change.
22554
225552008-02-01 Kenichi Handa <handa@m17n.org>
22556
22557 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
22558
225592008-02-01 Kenichi Handa <handa@m17n.org>
22560
22561 * xfaces.c (Vface_resizing_fonts): New variable.
22562 (struct font_name): New member `resizing_ratio'.
22563 (font_resizing_ratio): New function.
22564 (split_font_name): Set font->resizing_ratio.
22565 (better_font_p): Pay attention to font->resizing_ratio.
22566 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
22567 RESX, and RESY fields.
22568 (try_alternative_families): Try scalable fonts if
22569 Vscalable_fonts_allowed is not Qt.
22570 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
22571
225722008-02-01 Dave Love <fx@gnu.org>
22573
22574 * xterm.c (xaw_scroll_callback): Cast correctly.
22575
225762008-02-01 Dave Love <fx@gnu.org>
22577
22578 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
22579 (lispy_kana_keys): Comment out.
22580 (make_lispy_event) [XK_kana_A]: Comment out.
22581
22582 * xterm.c (xaw_scroll_callback): Cast call_data.
22583 (XTread_socket): Deal with ASCII keysyms.
22584 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
22585
225862008-02-01 Dave Love <fx@gnu.org>
22587
22588 * xterm.c (Vx_keysym_table): New.
22589 (syms_of_xterm): Initialize it.
22590 (XTread_socket): Use it.
22591 From head: Eliminate incorrect optimization that tried to avoid
22592 decoding the output of X*LookupString.
22593 (x_get_font_repertory): Delete charset declaration.
22594
225952008-02-01 Kenichi Handa <handa@m17n.org>
22596
22597 * coding.c (detect_coding_charset): If only ASCII bytes are found,
22598 return 0.
22599 (Fdefine_coding_system_internal): Setup
22600 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
22601
226022008-02-01 Dave Love <fx@gnu.org>
22603
22604 * coding.c (Fcheck_coding_system): Doc fix.
22605
22606 * editfns.c (Finsert_byte): Return a proper value.
22607
226082008-02-01 Kenichi Handa <handa@m17n.org>
22609
22610 * coding.c (decode_coding): Fix args to translate_chars. Pay
22611 attention to Vstandard_translation_table_for_decode.
22612 (encode_coding): Fix args to translate_chars. Pay attention to
22613 Vstandard_translation_table_for_encode.
22614
22615 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
22616 SINGLE_BYTE_CHAR_P.
22617
22618 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
22619 not by SINGLE_BYTE_CHAR_P.
22620
22621 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
22622 SINGLE_BYTE_CHAR_P.
22623
22624 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
22625 SINGLE_BYTE_CHAR_P.
22626
22627 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
22628 by SINGLE_BYTE_CHAR_P.
22629
22630 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
22631 SINGLE_BYTE_CHAR_P.
22632
226332008-02-01 Dave Love <fx@gnu.org>
22634
22635 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
22636
226372008-02-01 Dave Love <fx@gnu.org>
22638
22639 * fns.c (Flanginfo): Fix typo.
22640
22641 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
22642
226432008-02-01 Kenichi Handa <handa@m17n.org>
22644
22645 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
22646 (detect_coding_emacs_mule, detect_coding_iso_2022)
22647 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
22648 incomplete byte sequence. Don't update *mask when correctly detected.
22649 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
22650 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
22651 (detect_coding, detect_coding_system): Adjust for the changes above.
22652
226532008-02-01 Kenichi Handa <handa@m17n.org>
22654
22655 * character.c (char_string): Rename from
22656 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
22657 (string_char): Rename from string_char.
22658
22659 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
22660 if C is greater than MAX_3_BYTE_CHAR.
22661 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
22662 string_char instead of string_char_with_unification.
22663
226642008-02-01 Dave Love <fx@gnu.org>
22665
22666 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
22667
226682008-02-01 Kenichi Handa <handa@m17n.org>
22669
22670 * keymap.c (push_key_description): Pay attention to force_multibyte.
22671
22672 * regex.c (re_search_2): Fix for the case of unibyte buffer.
22673
226742008-02-01 Dave Love <fx@gnu.org>
22675
22676 * charset.c (define_charset_internal): Rename `supprementary'.
22677
22678 * Makefile.in (lisp, shortlisp): Remove latin-N.
22679
226802008-02-01 Dave Love <fx@gnu.org>
22681
22682 * xfns.c (x_window, x_window): Use use_xim.
22683
22684 * xterm.c (use_xim): Initialize.
22685 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
22686 (x_term_init): Maybe set use_xim.
22687
22688 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
22689
226902008-02-01 Kenichi Handa <handa@m17n.org>
22691
22692 * search.c (search_buffer): Fix case-fold-search of multibyte
22693 characters.
22694 (boyer_moore): Rename the last argument to char_high_bits.
22695
226962008-02-01 Kenichi Handa <handa@m17n.org>
22697
22698 * xdisp.c (display_string): Fix for the case of zero width glyph.
22699
22700 * xfns.c (x_set_font): Change the error message of the case that
22701 x_new_fontset returns Qt.
22702
22703 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
22704 (Finternal_set_lisp_face_attribute): Use signal_error for the
22705 error of invalid fontset.
22706
22707 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
22708 fontset, return Qt.
22709
227102008-02-01 Dave Love <fx@gnu.org>
22711
22712 * unexelf.c (unexec): Make .got handling not SGI-specific.
22713
22714 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
22715
22716 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
22717
22718 * keyboard.c (read_key_sequence): Fix type error.
22719
22720 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
22721 type error.
22722
22723 * fontset.c (fontset_add): Return Lisp_Object.
22724
227252008-02-01 Dave Love <fx@gnu.org>
22726
22727 * charset.h (charset_ordered_list_tick): Declare extern.
22728
227292008-02-01 Kenichi Handa <handa@m17n.org>
22730
22731 The following changes (and some of 2008-02-01 changes of mine) are
22732 for handling syntax, category, and case conversion for unibyte
22733 characters by converting them to multibyte on the fly. With these
22734 changes, we don't have to setup syntax and case tables for unibyte
22735 characters in each language environment.
22736
22737 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
22738 multibyte if necessary.
22739
22740 * bytecode.c (Fbyte_code): Likewise.
22741
22742 * character.h (LEADING_CODE_LATIN_1_MIN)
22743 (LEADING_CODE_LATIN_1_MAX): New macros.
22744 (unibyte_to_multibyte_table): Extern it.
22745 (unibyte_char_to_multibyte): New macro.
22746 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
22747 (CHAR_LEADING_CODE): New macro.
22748 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
22749
22750 * character.c (unibyte_to_multibyte_table): New variable.
22751 (unibyte_char_to_multibyte): Move to character.h and define as macro.
22752 (multibyte_char_to_unibyte): If C is an eight-bit character,
22753 convert it to the corresponding byte value.
22754
22755 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
22756 not 1, signals an error. Update the elements of
22757 unibyte_to_multibyte_table.
22758 (init_charset_once): Initialize unibyte_to_multibyte_table.
22759 (syms_of_charset): Define the charset `iso-8859-1'.
22760
22761 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
22762 as is without converting it to unibyte. In a unibyte buffer,
22763 convert C to multibyte before checking the syntax.
22764
22765 * lisp.h (unibyte_char_to_multibyte): Delete extern.
22766
22767 * minibuf.c (Fminibuffer_complete_word): Use the macro
22768 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
22769
22770 * regex.h (struct re_pattern_buffer): New member target_multibyte.
22771
22772 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
22773 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
22774 that is zero, convert an eight-bit char to multibyte.
22775 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
22776 non-emacs case.
22777 (PATFETCH): Convert an eight-bit char to multibyte.
22778 (HANDLE_UNIBYTE_RANGE): New macro.
22779 (regex_compile): Setup the compiled pattern for multibyte chars
22780 even if the given regex string is unibyte. Use PATFETCH_RAW
22781 instead of PATFETCH in many places. To handle `charset'
22782 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
22783 only for ASCII chars.
22784 (analyse_first) <exactn>: Simplify because the compiled pattern
22785 is multibyte.
22786 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
22787 <charset>: Use CHAR_LEADING_CODE to get leading codes.
22788 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
22789 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
22790 multibyte always 1.
22791 (re_search_2): In emacs, set the locale variable multibyte to 1,
22792 otherwise to 0. New local variable target_multibyte. Check it
22793 to decide the multibyteness of STR1 and STR2. If
22794 target_multibyte is zero, convert unibyte chars to multibyte
22795 before translating and checking fastmap.
22796 (TARGET_CHAR_AND_LENGTH): New macro.
22797 (re_match_2_internal): In emacs, set the locale variable multibyte
22798 to 1, otherwise to 0. New local variable target_multibyte. Check
22799 it to decide the multibyteness of STR1 and STR2. Use
22800 TARGET_CHAR_AND_LENGTH to fetch a character from D.
22801 <charset, charset_not>: If multibyte is nonzero, check fastmap
22802 only for ASCII chars. Call bcmp_translate with
22803 target_multibyte, not with multibyte.
22804 <begline>: Declare the local variable C as `unsigned'.
22805 (bcmp_translate): Change the last arg name to target_multibyte.
22806
22807 * search.c (compile_pattern_1): Don't adjust the multibyteness of
22808 the regexp pattern and the matching target. Set cp->buf.multibyte
22809 to the multibyteness of the regexp pattern. Set
22810 cp->but.target_multibyte to the multibyteness of the matching target.
22811 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
22812 FETCH_STRING_CHAR_ADVANCE.
22813 (Freplace_match): Convert unibyte chars to multibyte.
22814
22815 * syntax.c (char_quoted, back_comment, scan_words)
22816 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
22817 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
22818 unibyte chars to multibyte.
22819 (skip_chars): Delete the arg syntaxp, and move the code for
22820 handling syntaxes to skip_syntaxes. Change callers.
22821 Fix the case that the multibyteness of STRING and the current
22822 buffer doesn't match.
22823 (skip_syntaxes): New function.
22824 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
22825 SINGLE_BYTE_CHAR_P.
22826
228272008-02-01 Kenichi Handa <handa@m17n.org>
22828
22829 * xfaces.c (QCfontset): New variable.
22830 (LFACE_FONTSET): New macro.
22831 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
22832 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
22833 (Finternal_set_lisp_face_attribute)
22834 (Finternal_get_lisp_face_attribute): Handle QCfontset.
22835 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
22836 check also LFACE_FONTSET_INDEX.
22837 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
22838 attrs[LFACE_FONT_INDEX].
22839 (syms_of_xfaces): Intern and staticpro QCfontset.
22840
22841 * dispextern.h (enum lface_attribute_index): New member
22842 LFACE_FONTSET_INDEX.
22843
22844 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
22845
228462008-02-01 Kenichi Handa <handa@m17n.org>
22847
22848 * coding.c (coding_set_destination): Fix coding->destination for
22849 the case converting a region.
22850 (encode_coding_utf_8): Encode eight-bit chars as single byte.
22851 (encode_coding_object): Fix coding->dst_pos and
22852 coding->dst_pos_byte for the case converting a region.
22853
22854 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
22855
22856 * character.h (BYTE8_STRING): New macro.
22857
22858 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
22859
228602008-02-01 Kenichi Handa <handa@m17n.org>
22861
22862 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
22863 characters by octal form.
22864
22865 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
22866
22867 * buffer.h (_fetch_multibyte_char_len): Delete extern.
22868 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
22869 _fetch_multibyte_char_len.
22870 (FETCH_CHAR_AS_MULTIBYTE): New macro.
22871
22872 * casetab.c (set_canon, set_identity, shuffle): Simplify.
22873
22874 * casefiddle.c (casify_object): Simplify. Handle the case that
22875 the case conversion change the byte length.
22876 (casify_region): Likewise.
22877
22878 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
22879
22880 * character.c (_fetch_multibyte_char_len): Delete this variable.
22881 (syms_of_character): Setup Vprintable_chars.
22882
22883 * editfns.c (Fchar_equal): Fix for the unibyte case.
22884 (Finsert_byte): New function.
22885 (syms_of_editfns): Defsubr it.
22886
22887 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
22888 of direct code 0x3ffff.
22889
22890 * search.c (Freplace_match): Fix for the unibyte case.
22891
228922008-02-01 Kenichi Handa <handa@m17n.org>
22893
22894 * lread.c (safe_to_load_p): Fix the logic.
22895
22896 * syntax.c (scan_words): Don't treat characters belonging to
22897 different scripts as constituting a word.
22898
22899 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22900
22901 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
22902
22903 * emacs.c (main): In the case of --unibyte, instead of aborting on
22904 finding non-empty buffer, make it unibyte.
22905
229062008-02-01 Kenichi Handa <handa@m17n.org>
22907
22908 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
22909 to create a fontset.
22910
229112008-02-01 Dave Love <fx@gnu.org>
22912
22913 * character.c (Funibyte_char_to_multibyte): Doc fix.
22914
22915 * xfns.c [HAVE_STDLIB_H]: Fix last change.
22916
229172008-02-01 Kenichi Handa <handa@m17n.org>
22918
22919 * fontset.c (fontset_add): Make the type `int'.
22920 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
22921
22922 * character.c (unibyte_char_to_multibyte)
22923 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
22924 charset_unibyte, not charset_primary.
22925
22926 * charset.h (charset_unibyte): Extern it instead of charset_primary.
22927
22928 * charset.c (charset_unibyte): Rename from charset_primary.
22929 (Funibyte_charset): Rename from Fprimary_charset.
22930 (Fset_unibyte_charset): Rename from Fset_primary_charset.
22931 (syms_of_charset): Adjust for the above changes.
22932
22933 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22934 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22935 it->multibyte_p is zero.
22936
22937 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
22938 Delete extern.
22939
229402008-02-01 Kenichi Handa <handa@m17n.org>
22941
22942 * coding.c (Fdefine_coding_system_internal): Fix category setting
22943 for a coding system of type iso-2022.
22944
229452008-02-01 Kenichi Handa <handa@m17n.org>
22946
22947 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
22948
229492008-02-01 Kenichi Handa <handa@m17n.org>
22950
22951 * syntax.c (Vnext_word_boundary_function_table): New variable.
22952 (next-word-boundary-function-table): Declare it as a Lisp variable
22953 in syms_of_syntax.
22954 (scan_words): Call functions in Vnext_word_boundary_function_table
22955 if any.
22956
22957 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
22958
22959 * fontset.c (fs_load_font): If fontp->charset is not negative,
22960 return fontp without setting its members.
22961
229622008-02-01 Dave Love <fx@gnu.org>
22963
22964 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
22965
22966 * m/sparc.h (HAVE_ALLOCA): Delete.
22967
22968 * s/irix6-5.h: Don't include strings.h.
22969 (bcopy, bzero, bcmp): Don't undef.
22970
22971 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
22972
22973 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
22974 (TIOCSIGSEND): Don't test IRIX6.
22975 (bcopy, bzero, bcmp): Define conditionally.
22976
229772008-02-01 Kenichi Handa <handa@m17n.org>
22978
22979 * buffer.c (Qas, Qmake, Qto): New variables.
22980 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
22981 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
22982
22983 * callproc.c (Fcall_process): Don't call insert_1_both directly if
22984 we are inserting a process output into a multibyte buffer.
22985
22986 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
22987 multibyte_char_to_unibyte.
22988
22989 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
22990 by the primary charset, make it eight-bit char.
22991 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
22992
22993 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
22994 (charset_8_bit__control, charset_8_bit_graphic)
22995 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
22996 (define_charset_internal): New function.
22997 (syms_of_charset): Call define_charset_internal for pre-defined
22998 charsets.
22999
23000 * charset.h (charset_8_bit): Extern it.
23001
23002 * coding.c (make_conversion_work_buffer): Adjust for the change
23003 of Fset_buffer_multibyte.
23004 (encode_coding_raw_text): Increment p0 in the loop.
23005
23006 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
23007
23008 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
23009 for the change of Fset_buffer_multibyte.
23010
23011 * fns.c (Fstring_to_multibyte): New function.
23012 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
23013
230142008-02-01 Dave Love <fx@gnu.org>
23015
23016 * xfns.c (x_put_x_image): Declare args.
23017
23018 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
23019 (try_font_list): Declare an arg.
23020
23021 * xdisp.c (message2_nolog, set_message): Declare an arg.
23022
23023 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
23024
23025 * syntax.c (scan_sexps_forward): Declare an arg.
23026
23027 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
23028 Declare an arg.
23029
23030 * lisp.h (Fnew_fontset): Declare.
23031
23032 * keymap.c (push_key_description): Call CHARACTERP correctly.
23033
23034 * fontset.c (fontset_add): Declare args. Call make_number correctly.
23035 (face_for_char): Delete unused vars.
23036 (Fset_fontset_font): Doc fix. Delete unused vars.
23037
23038 * doc.c (Fsubstitute_command_keys): Delete unused vars.
23039
23040 * composite.c (update_compositions): Declare arg.
23041
23042 * cm.c (calccost, cmgoto): Declare args.
23043
23044 * charset.c: Remove `emacs' conditional. Doc fixes.
23045 (map_char_table_for_charset): Declare.
23046
23047 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
23048
23049 * ccl.c: Remove `emacs' conditional.
23050
230512008-02-01 Kenichi Handa <handa@m17n.org>
23052
23053 The following changes are to allow specifying multiple font
23054 patterns for a character range (specified by script or charset).
23055
23056 * Makefile.in (abbrev.o): Depend on syntax.h.
23057 (xfaces.o): Depend on charset.h.
23058
23059 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
23060 SINGLE_BYTE_CHAR_P.
23061
23062 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
23063
23064 * character.h (Vchar_script_table): Extern it.
23065
23066 * character.c (Vscript_alist): Delete.
23067 (Vchar_script_table, Qchar_script_table): New variable.
23068 (syms_of_character): Declare Vchar_script_table as a lisp variable
23069 and initialize it.
23070
23071 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
23072 have property char-table-extra-slots, make no extra slot.
23073
23074 * dispextern.h (struct face): Delete member `charset'.
23075 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
23076 SINGLE_BYTE_CHAR_P.
23077 (choose_face_font, lookup_non_ascii_face, font_name_registry):
23078 Add prototypes.
23079 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
23080 (generate_ascii_font_name): Rename from generate_ascii_font.
23081
23082 * fontset.h (get_font_repertory_func): New prototype.
23083 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
23084 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
23085
23086 * fontset.c (Qprepend, Qappend): New variables.
23087 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
23088 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
23089 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
23090 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
23091 (fontset_ref_and_range, fontset_add, reorder_font_vector)
23092 (load_font_get_repertory): New functions.
23093 (fontset_set): Delete.
23094 (fontset_face): New arg FACE. Return face ID, not face.
23095 Complete re-write to handle new fontset structure. Change caller.
23096 (free_face_fontset): Use ASET istead of AREF (X) = Y.
23097 (face_for_char): Don't call lookup_face.
23098 (make_fontset_for_ascii_face): New arg FACE.
23099 (fs_load_font): New arg CHARSET_ID. Don't check
23100 Vfont_encoding_alist here.
23101 (find_font_encoding): New function.
23102 (list_fontsets): Use STRINGP, not ! NILP.
23103 (accumulate_script_ranges): New function.
23104 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
23105 re-written to handle new fontset structure.
23106 (Ffontset_font): Return a copy of element.
23107 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
23108 docstring of font-encoding-alist.
23109
23110 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
23111 (Fset_fotset_font): Fix arguments to 5.
23112
23113 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
23114
23115 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
23116 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23117 (highlight_trailing_whitespace): Adjust for the change of
23118 lookup_named_face.
23119
23120 * xfaces.c: Include charset.h.
23121 (load_face_font): Delete argument C. Change caller.
23122 (generate_ascii_font_name): Rename from generate_ascii_font.
23123 (font_name_registry): New function.
23124 (cache_face): Store ascii faces before non-ascii faces in buckets.
23125 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
23126 Lookup only ascii faces.
23127 (lookup_non_ascii_face): New function.
23128 (lookup_named_face): Delete argument C. Change caller.
23129 (lookup_derived_face): Delete argument C. Change caller.
23130 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
23131 a string, just call font_list with it.
23132 (choose_face_font): Delete arguments FACE and C. New arg
23133 FONT_SPEC. Change caller.
23134 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
23135 Change caller.
23136 (realize_non_ascii_face): New function.
23137 (realize_x_face): Call load_face_font here.
23138 (realize_tty_face): Delete argument C. Change caller.
23139 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
23140 get a face ID.
23141 (dump_realized_face): Don't print charset of FACE.
23142
23143 * xfns.c (x_set_font): Always call x_new_fontset and
23144 store_frame_parameter.
23145 (Fx_create_frame): Call x_new_fontset, not x_new_font.
23146 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
23147
23148 * xterm.h (x_get_font_repertory): Extern it.
23149
23150 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
23151 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
23152 it->multibyte_p is zero.
23153 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23154 (x_new_fontset): If FONTSETNAME doesn't match any existing
23155 fontsets, create a new one.
23156 (x_get_font_repertory): New function.
23157
231582008-02-01 Kenichi Handa <handa@m17n.org>
23159
23160 * coding.c (Ffind_coding_systems_region_internal): Detect an
23161 ASCII only string correctly.
23162
23163 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
23164 version is 0.
23165
231662008-02-01 Kenichi Handa <handa@m17n.org>
23167
23168 * lread.c: Include "coding.h".
23169 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
23170 (load_each_byte, unread_char): New variables.
23171 (readchar_backlog): Delete.
23172 (readchar): Return a character unless load_each_byte is nonzero.
23173 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
23174 cons. If unread_char is not -1, simply return it.
23175 (unreadchar): Handle the case that readcharfun is
23176 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
23177 (read_multibyte): Delete.
23178 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
23179 (read_emacs_mule_char): New functions.
23180 (Fload): Even if the file doesn't have the extension ".elc", if
23181 safe_to_load_p returns a positive version number, assume that the
23182 file contains bytecompiled code. If the version is less than 22,
23183 load the file while decoding multibyte sequences by emacs-mule.
23184 (readevalloop): Don't use readchar_backlog.
23185 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
23186 (Fread_from_string): Pay attention to the case that STREAM is a cons.
23187 (read_escape): Delete the arg BYTEREP.
23188 (read1): Set load_each_byte to 1 temporarily while handling
23189 #@NUMBER. Don't call read_multibyte.
23190 (read_vector): Call Fread with a cons. If readcharfun is
23191 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
23192 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
23193 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
23194 and Qload_force_doc_strings.
23195
231962008-02-01 Kenichi Handa <handa@m17n.org>
23197
23198 * xdisp.c (face_before_or_after_it_pos): Call
23199 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
23200
232012008-02-01 Kenichi Handa <handa@m17n.org>
23202
23203 * character.h (TRAILING_CODE_P): New macro.
23204 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
23205 (string_char_with_unification): Fix prototype.
23206 (Vscript_alist): Extern it.
23207
23208 * character.c (Vscript_alist): New variable.
23209 (string_char_with_unification, str_as_unibyte)
23210 (string_escape_byte8): Add `const' to local variables.
23211 (syms_of_character): Declare script-alist as a Lisp variable.
23212
23213 * charset.h (Vcharset_ordered_list): Extern it.
23214 (charset_ordered_list_tick): Extern it.
23215 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
23216 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
23217 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
23218 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
23219 (Funify_charset): Adjust for the change of Funify_charset.
23220
23221 * charset.c (charset_ordered_list_tick): New variable.
23222 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
23223 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 23224 deunify instead of unify a charset.
aac0c6e3
MR
23225 (string_xstring_p): Add `const' to local variables.
23226 (find_charsets_in_text): Add `const' to arguments and local variables.
23227 (encode_char): Adjust for the change of Funify_charset. Fix
23228 detecting of invalid code.
23229 (Fset_charset_priority): Increment charset_ordered_list_tick.
23230 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
23231 and TO_CODE.
23232
23233 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
23234 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
23235 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
23236 (decode_coding_ccl, consume_chars)
23237 (Ffind_coding_systems_region_internal)
23238 (Fcheck_coding_systems_region): Add `const' to local variables.
23239
23240 * print.c (print_object): Use octal form for printing the
23241 contents of a bool vector.
23242
232432008-02-01 Dave Love <fx@gnu.org>
23244
23245 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
23246 <version == 20>: Refuse to load.
23247
232482008-02-01 Dave Love <fx@gnu.org>
23249
23250 * fns.c: Move coding.h.
23251 (Qcodeset, Qdays, Qmonths): New.
23252 (concat): Use CHARACTERP instead of INTEGERP.
23253 (Flocale_codeset): Delete.
23254 (Flanginfo): New function.
23255 (syms_of_fns): Change accordingly.
23256
23257 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
23258
232592008-02-01 Dave Love <fx@gnu.org>
23260
23261 * casetab.c (init_casetab_once, init_casetab_once): Fix
23262 CHAR_TABLE_SET call.
23263
23264 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
23265
23266 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
23267
23268 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
23269 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
23270 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
23271
23272 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
23273
23274 * coding.c (ENCODE_DESIGNATION, decode_eol)
23275 (make_conversion_work_buffer, code_conversion_restore)
23276 (Fdefine_coding_system_internal): Convert Lisp types.
23277 (code_conversion_restore): Use EQ, not ==.
23278 (Fencode_coding_string): Fix code_convert_string call.
23279
23280 * coding.h (code_convert_region): Fix prototype.
23281
23282 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
23283
23284 * fontset.c (fontset_ref, fontset_set, fs_load_font)
23285 (Ffontset_info): Convert Lisp types.
23286
23287 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
23288
23289 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
23290
23291 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
23292
23293 * chartab.c: Include "...h", not <...h> in some cases.
23294
23295 * callproc.c (Fcall_process): Remove unused variables.
23296
232972008-02-01 Dave Love <fx@gnu.org>
23298
23299 * coding.c (Fset_coding_system_priority): Allow null arg list.
23300
233012008-02-01 Dave Love <fx@gnu.org>
23302
23303 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
23304 (Fself_insert_and_exit): Use CHARACTERP.
23305
23306 * callproc.c (Fcall_process): Remove unused vars.
23307
23308 * xterm.c (XTread_socket): Add extra dead keysyms.
23309
23310 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
23311
23312 * dispextern.h: Remove prototypes for redraw_frame,
23313 redraw_garbaged_frames.
23314
23315 * cmds.c (Fself_insert_command): Use CHARACTERP.
23316
23317 * chartab.c (make_sub_char_table): Remove unused var.
23318 (Fset_char_table_default, Fmap_char_table): Doc fix.
23319
23320 * keymap.c (access_keymap): Remove generic char code.
23321 (push_key_description): Use CHARACTERP.
23322
233232008-02-01 Dave Love <fx@gnu.org>
23324
23325 * charset.c: Doc fixes.
23326 (Funify_charset): Extra checking.
23327
233282008-02-01 Dave Love <fx@gnu.org>
23329
23330 * lread.c: Remove some unused variables.
23331 (safe_to_load_p): If safe, return the magic number version byte.
23332 (Fload): Maybe use load-with-code-conversion.
23333
233342008-02-01 Kenichi Handa <handa@m17n.org>
23335
23336 * category.c (Fmodify_category_entry): Don't modify the contents
23337 of category_set for characters out of the range. Avoid
23338 unnecessary modification.
23339
23340 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
23341 Vchar_unify_table. The default value of the table is now nil.
23342
23343 * character.c (syms_of_character): Setup Vchar_width_table for
23344 eight-bit-control and raw-byte chars.
23345
23346 * charset.h (enum define_charset_arg_index): Delete
23347 charset_arg_parents and add charset_arg_subset and
23348 charset_arg_superset.
23349 (enum charset_attr_index): Delete charset_parents and add
23350 charset_subset and charset_superset.
23351 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
23352 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
23353 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
23354 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
23355 (CHARSET_SUPERSET): New macros.
23356 (charset_work): Extern it.
23357 (ENCODE_CHAR): Use charset_work.
23358 (CHAR_CHARSET_P): Adjust for the change of encoder format.
23359 (map_charset_chars): Extern it.
23360
23361 * charset.c (load_charset_map): Set the default value of encoder
23362 and deunifier char-tables to nil.
23363 (map_charset_chars): Change argument. Change callers. Use
23364 map_char_table_for_charset instead of map_char_table.
23365 (Fmap_charset_chars): New optional args from_code and to_code.
23366 (Fdefine_charset_internal): Adjust for the change of
23367 `define-charset' (:parents -> :subset or :superset).
23368 (charset_work): New variable.
23369 (encode_char, syms_of_charset): Adjust for the change of
23370 Fdefine_charset_internal.
23371 (Ffind_charset_string): Setup the vector `charsets' correctly.
23372
23373 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
23374 the previous change.
23375 (char_table_ref_and_range): Adjust for the above change.
23376 (map_sub_char_table_for_charset): New function.
23377 (map_char_table_for_charset): New function.
23378
23379 * keymap.c (describe_vector): Handle a char-table directly here.
23380 (describe_char_table): Delete.
23381
23382 * lisp.h (map_charset_chars): Delete.
23383
233842008-02-01 Dave Love <fx@gnu.org>
23385
23386 * fns.c (count_combining): Comment out (unused).
23387 (Flocale_codeset): New.
23388 (syms_of_fns): Defsubr it.
23389
23390 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
23391 (size_t): Remove.
23392
233932008-02-01 Dave Love <fx@gnu.org>
23394
23395 * Makefile.in (chartab.o): Depend on charset.h.
23396
233972008-02-01 Kenichi Handa <handa@m17n.org>
23398
23399 * character.c (syms_of_character): Set the default value of
23400 Vprintable_chars to Qnil.
23401
234022008-02-01 Dave Love <fx@gnu.org>
23403
23404 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
23405
234062008-02-01 Kenichi Handa <handa@m17n.org>
23407
23408 * charset.c (load_charset_map): Handle the case that from < to
23409 correctly.
23410
23411 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
23412 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
23413 Pay attention to raw-8-bit chars.
23414
234152008-02-01 Kenichi Handa <handa@m17n.org>
23416
23417 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
23418 It is not bytecompiled now.
23419
23420 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
23421 (charset_jisx0208): New variables.
23422 (Fdefine_charset_internal): Setup them if appropriate.
23423 (init_charset_once): Initialize them to -1.
23424
23425 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
23426 (charset_jisx0208): Extern them.
23427
23428 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
23429 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
23430 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
23431 (setup_iso_safe_charsets): Fix arguments to Fassq.
23432 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
23433 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
23434 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
23435 (encode_coding_iso_2022): Change the 1st arg to
23436 ENCODE_ISO_CHARACTER to a variable.
23437
234382008-02-01 Kenichi Handa <handa@m17n.org>
23439
23440 * charset.h (enum define_charset_arg_index): New enums
23441 charset_arg_min_code and charset_arg_max_code.
23442 (struct charset): New member char_index_offset.
23443
23444 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
23445 Take charset->char_index_offset into account.
23446 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
23447 args[charset_arg_max_code]. Setup charset.char_index_offset.
23448 (syms_of_charset): Fix args to Fdefine_charset_internal.
23449
234502008-02-01 Dave Love <fx@gnu.org>
23451
23452 * coding.c (decode_coding_utf_8): Reject overlong sequences.
23453
234542008-02-01 Dave Love <fx@gnu.org>
23455
23456 * coding.c: Doc fixes.
23457 (Fcoding_system_aliases): Fix return value.
23458 (Qmac): Remove (duplicated) definition.
23459
234602008-02-01 Dave Love <fx@gnu.org>
23461
362654a6
JB
23462 * charset.c (Fcharset_priority_list, Fset_charset_priority):
23463 New functions.
aac0c6e3
MR
23464
23465 * character.c (Fstring): Doc fix.
23466
23467 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
23468
362654a6 23469 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
23470 (font-encoding-alist): Doc fix.
23471
234722008-02-01 Dave Love <fx@gnu.org>
23473
23474 * term.c (costs_set): Declare static, non-initialized for pcc.
23475 (encode_terminal_code): Remove unused var.
23476
23477 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
23478 for K&R.
23479
23480 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
23481
23482 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
23483 (suffixes): Move out of make_subsidiaries for K&R.
23484
23485 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
23486
23487 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
23488
234892008-02-01 Dave Love <fx@gnu.org>
23490
23491 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
23492
23493 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
23494
234952008-02-01 Yong Lu <lyongu@asia-infonet.com>
23496
23497 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
23498
23499 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
23500
235012008-02-01 Kenichi Handa <handa@m17n.org>
23502
23503 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
23504 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
23505
235062008-02-01 Kenichi Handa <handa@m17n.org>
23507
23508 * coding.c (decode_coding_charset): Adjust for the change of
23509 Fdefine_coding_system_internal.
23510 (Fdefine_coding_system_internal): For a coding system of
23511 `charset' type, store a list of charset IDs in
23512 `charset_attr_charset_valids' element of coding attributes.
23513
235142008-02-01 Kenichi Handa <handa@m17n.org>
23515
23516 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
23517 (emacs_mule_char): New arg src. Delete arg `composition'. Change
23518 caller. Handle 2-byte and 3-byte charsets correctly.
23519 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
23520 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
23521 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
23522 (DECODE_EMACS_MULE_21_COMPOSITION): Call
23523 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
23524 sequence.
23525 (decode_coding_emacs_mule): Handle composition correctly. Rewind
23526 `src' and `consumed_chars' correctly before calling emacs_mule_char.
23527 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
23528 and alt&rule composition.
23529 (decode_coding_iso_2022): Handle composition correctly.
23530 (init_coding_once): Setup emacs_mule_bytes for private charsets.
23531
23532 * charset.c (Fdefine_charset_internal): Fix bug for the case of
23533 re-defining a charset. If the charset has :emacs-mule-id, setup
23534 emacs_mule_bytes.
23535 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
23536
235372008-02-01 Kenichi Handa <handa@m17n.org>
23538
23539 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
23540 (encode_coding_big5, encode_coding_charset): If coding requires safe
23541 encoding, produce a character specified by
23542 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
23543
235442008-02-01 Dave Love <fx@gnu.org>
23545
23546 * xterm.c (XSetIMValues): Declare.
23547
23548 * process.c: Conditionally include sys/wait.h, pty.h.
23549
23550 * print.c (print_object): Fix print format for 64-bit systems.
23551
23552 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
23553
23554 * buffer.c (emacs_strerror): Declare.
23555
23556 * fontset.c (Fclear_face_cache): Declare.
23557 (accumulate_font_info): Comment-out (unused).
23558 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
23559 variables.
23560
23561 * character.h (string_escape_byte8): Declare.
23562
23563 * charset.c (load_charset_map, load_charset_map_from_file): Remove
23564 unused vars.
23565 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
23566 (Fmap_charset_chars): Doc fix.
23567
23568 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
23569 (Fset_coding_system_priority, Fset_coding_system_priority)
23570 (Fdefine_coding_system_internal): Doc fix.
23571
235722008-02-01 Dave Love <fx@gnu.org>
23573
23574 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
23575
235762008-02-01 Kenichi Handa <handa@m17n.org>
23577
23578 * character.c (string_escape_byte8): Make multibyte string with
23579 correct size.
23580
23581 * charset.c (Fmake_char): Delete unnecessary code.
23582
235832008-02-01 Kenichi Handa <handa@m17n.org>
23584
23585 * xfns.c (x_encode_text): Allocate coding.destination here, and
23586 call encode_coding_object with dst_object Qnil.
23587
23588 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
23589 multibyte form correctly.
23590
23591 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
23592 against Vfont_encoding_alist.
23593
23594 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
23595 handling of charset list.
23596 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
23597 (decode_coding_object): Move point to coding->dst_pos before
23598 calling post-read-conversion function.
23599 (encode_coding_object): Give correct arguments to
23600 pre-write-conversion. Ignore the return value of
23601 pre-write-conversion function. Pay attention to the case that
23602 pre-write-conversion changes the current buffer. If dst_object is
23603 Qt, even if coding->src_bytes is zero, allocate at least one byte
23604 to coding->destination.
23605
23606 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
23607
23608 * charset.c (Fmake_char): Make it more backward compatible.
23609 (Fmap_charset_chars): Fix docstring.
23610
236112008-02-01 Dave Love <fx@gnu.org>
23612
23613 * coding.c: Doc fixes.
23614 (Fdefine_coding_system_alias): Use names, not symbols, in
23615 coding-system-alist.
23616
236172008-02-01 Kenichi Handa <handa@m17n.org>
23618
23619 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
23620 of calling free_realized_face.
23621
236222008-02-01 Yong Lu <lyongu@asia-infonet.com>
23623
23624 * charset.c (read_hex): Don't treat SPC as a comment starter.
23625 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
23626 (Fdecode_char): Fix typo.
23627
236282008-02-01 Kenichi Handa <handa@m17n.org>
23629
23630 * charset.h (struct charset): New member `code_space_mask'.
23631
23632 * coding.c (coding_set_source): Delete the local variable beg_byte.
23633 (encode_coding_charset, Fdefine_coding_system_internal):
23634 Delete the local variable charset.
23635 (Fdefine_coding_system_internal): Setup
23636 attrs[coding_attr_charset_valids] correctly.
23637
23638 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
23639 member to check if CODE is valid or not.
23640 (Fdefine_charset_internal): Initialize `code_space_mask' member.
23641 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
23642 is within the range of charset->min_code and carset->max_code.
23643
236442008-02-01 Dave Love <fx@gnu.org>
23645
23646 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
23647
23648 * dispextern.h (generate_ascii_font): Fix return type.
23649
23650 * xfaces.c (generate_ascii_font): Fix arg declaration.
23651
23652 * coding.c (coding_inherit_eol_type)
23653 (Fset_terminal_coding_system_internal)
23654 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
23655
236562008-02-01 Kenichi Handa <handa@m17n.org>
23657
23658 * coding.c (decode_coding_charset, encode_coding_charset): Handle
23659 multiple charsets correctly.
23660
236612008-02-01 Kenichi Handa <handa@m17n.org>
23662
23663 * search.c (boyer_moore): Fix handling of multibyte character
23664 translation.
23665
23666 * xdisp.c (display_mode_element): When the variable `elt' is
23667 changed, update `this' and `lisp_string'.
23668
236692008-02-01 Kenichi Handa <handa@m17n.org>
23670
23671 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
23672
23673 * callproc.c (Fcall_process): Be sure to give the current buffer
23674 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
23675
23676 * charset.c (struct charset_map_entries): New struct.
23677 (load_charset_map): Rename from parse_charset_map. New args
23678 entries and n_entries. Change caller.
23679 (load_charset_map_from_file): Rename from load_charset_map.
23680 Change caller. New arg control_flag. Call load_charset_map at
23681 the tail.
23682 (load_charset_map_from_vector): New function.
23683 (Fdefine_charset_internal): Setup charset.compact_codes_p.
23684 (encode_char): If the charset is compact, change a character index
23685 to a code point.
23686
23687 * coding.c (coding_alloc_by_making_gap): Check the case that the
23688 source and destination are the same correctly.
23689 (decode_coding_raw_text): Set coding->consumed_char and
23690 coding->consumed to 0.
23691 (produce_chars): If coding->chars_at_source is nonzero, update
23692 coding->consumed_char and coding->consumed before calling
23693 alloc_destination.
23694 (Fdefine_coding_system_alias): Register ALIAS in
23695 Vcoding_system_alist.
23696 (syms_of_coding): Define `no-conversion' coding system at the tail.
23697
23698 * fileio.c (Finsert_file_contents): Set coding_system instead of
23699 val. If the current buffer is multibyte, always call
23700 decode_coding_gap.
23701
23702 * xfaces.c (try_font_list): Give higher priority to fontset's
23703 family than face's family.
23704
237052008-02-01 Kenichi Handa <handa@m17n.org>
23706
23707 * callproc.c (Fcall_process): Be sure to give the current buffer
23708 to decode_coding_c_string.
23709
23710 * xfaces.c (try_font_list): Give a family specified in a fontset
23711 higher priority than a family specified in a face.
23712
237132008-02-01 Kenichi Handa <handa@m17n.org>
23714
23715 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
23716 Fix arguments to insert_from_buffer.
23717
23718 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
23719
237202008-02-01 Kenichi Handa <handa@m17n.org>
23721
23722 * coding.c (produce_chars): Set the variable `multibytep' correctly.
23723 (decode_coding_gap): Set coding->dst_multibyte correctly.
23724
237252008-02-01 Kenichi Handa <handa@m17n.org>
23726
23727 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
23728 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
23729 (encode_coding_utf_16): Substitute coding->default_char for
23730 non-Unicode characters.
23731 (decode_coding): Don't call record_insert here.
23732 (setup_coding_system): Initialize `surrogate' of
23733 coding->spec.utf_16 to 0.
23734 (EMIT_ONE_BYTE): Fix for multibyte case.
23735
23736 * insdel.c (insert_from_gap): Call record_insert.
23737
237382008-02-01 Kenichi Handa <handa@m17n.org>
23739
23740 * casefiddle.c (casify_region): Fix multibyte case.
23741
23742 * character.c (c_string_width): Add return type `int'.
23743 (char_string_with_unification): Delete arg ADVANCED.
23744
23745 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
23746 (CHAR_STRING): Adjust for the change of char_string_with_unification.
23747 (CHAR_STRING_ADVANCE): Make it do-while statement.
23748
23749 * chartab.c (sub_char_table_set_range): Optimize for the case
23750 DEPTH == 3. Add workaround code for a GCC optimization bug.
23751
23752 * charset.c (parse_charset_map): Remove an unused variable.
23753
23754 * coding.c: Delete unused variables.
23755
23756 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
23757 earlier. If inserted is zero and the coding system doesn't
23758 require flushing, don't call decode_coding_gap.
23759
23760 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
23761
237622008-02-01 Kenichi Handa <handa@m17n.org>
23763
23764 The following changes are for using Unicode as an internal
23765 character model, and use UTF-8 format for buffer/string
23766 representation.
23767
23768 * .gdbinit (xchartable): Adjust for the change of char table structure.
23769 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
23770
23771 * Makefile.in (obj): Add character.o and chartab.o.
23772 (lisp, shortlisp): Remove utf-8.elc.
23773 (*.o): For many files, change dependency on charset.h to
23774 character.h, and add dependency on character.h.
23775 (character.o, chartab.o): New targets.
23776
23777 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
23778 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
23779 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
23780 of "charset.h".
23781
23782 * dired.c, filelock.c: Include "character.h".
23783
23784 * alloc.c: Include "character.h" instead of "charset.h".
23785 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
23786 (syms_of_alloc): Remove defsubr for Smake_char_table.
23787
23788 * buffer.c: Include "character.h" instead of "charset.h", don't
23789 include "coding.h".
23790 (Fset_buffer_multibyte): Adjust for UTF-8.
23791
23792 * buffer.h: EXFUN Fbuffer_live_p.
23793
23794 * callproc.c: Include "character.h" instead of "charset.h".
23795 (Fcall_process): Big change for the new code-conversion APIs.
23796
23797 * casetab.c: Include "character.h" instead of "charset.h".
23798 (set_canon, set_identity, shuffle): Adjust for the new
23799 map_char_table spec.
23800 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
23801 accessing the char table structure.
23802
23803 * chartab.c: New file that implements char table.
23804
23805 * category.c: Include "character.h".
23806 (copy_category_entry): New function.
23807 (copy_category_table): Call map_char_table and copy_category_entry.
23808 (Fmake_category_table): Initialize all top-level slots.
23809 (char_category_set): New function.
23810 (modify_lower_category_set): Delete.
23811 (Fmodify_category_entry): Call char_table_ref_and_range.
23812
23813 * category.h (CATEGORY_SET): Just call char_category_set.
23814
23815 * ccl.c: Include "character.h".
23816 (Qccl, Qcclp): New variables.
23817 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
23818 it's less than 256.
23819 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
23820 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
23821 and DST type.
23822 (ccl_driver): Change types of argument, adjust code accordingly.
23823 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
23824 ccl_driver.
23825 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
23826
23827 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
23828 New members src_multibyte, dst_multibyte, consumed, and produced.
23829 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
23830 (CODING_SPEC_CCL_PROGRAM): New macro.
23831 (ccl_driver): Update prototype.
23832 (Qccl, Qcclp, Fccl_program_p): Extern them.
23833 (CHECK_CCL_PROGRAM): New macro.
23834
23835 * character.c, character.h, chartab.c: New files.
23836
23837 * charset.c: Mostly re-written. Move character and multibyte sequence
23838 handling codes to character.c.
23839
23840 * charset.h: Mostly re-written. Move character and multibyte sequence
23841 handling codes to character.h.
23842
23843 * coding.c, coding.h: Mostly re-written.
23844
23845 * composite.c: Include "character.h" instead of "charset.h".
23846 (CHAR_WIDTH): Move to character.h.
23847 (HASH_KEY, HASH_VALUE): Delete.
23848
23849 * composite.h (enum composition_method): Change order of enumeration
23850 symbols.
23851
23852 * data.c: Include "character.h" instead of "charset.h".
23853 (Faref): Call CHAR_TABLE_REF for a char table.
23854 (Faset): Call CHAR_TABLE_SET for a char table.
23855
23856 * dispextern.h (free_realized_face, check_face_attribytes)
23857 (generate_ascii_font): Extern them.
23858 (free_realized_multibyte_face): Delete extern.
23859
23860 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
23861 table structure.
23862
23863 * editfns.c: Include "character.h" instead of "charset.h".
23864 (Fchar_to_string): Always call CHAR_STRING.
23865
23866 * emacs.c (main): Call init_charset_once, init_charset,
23867 syms_of_chartab, and syms_of_character.
23868
23869 * fileio.c: Include "character.h" instead of "charset.h".
23870 (Finsert_file_contents): Big change for the new code-conversion API.
23871 (choose_write_coding_system, Fwrite_region): Likewise.
23872 (build_annotations_2): Delete.
23873 (e_write): Big change for the new code-conversion API.
23874
23875 * fns.c: Include "character.h" instead of "charset.h".
23876 (copy_sub_char_table): Move to chartab.c.
23877 (Fcopy_sequence): Call copy_char_table for a char table.
23878 (concat): Delete codes calling count_multibyte.
23879 (string_char_to_byte, string_byte_to_char): Adjust for the new
23880 multibyte form.
23881 (internal_equal): Adjust for the change of char table structure.
23882 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
23883 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
23884 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
23885 (char_table_translate, optimize_sub_char_table)
23886 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
23887 chartab.c.
23888 (char_table_ref_and_index): Delete.
23889 (HASH_KEY, HASH_VALUE): Move to lisp.h.
23890 (Fmd5): Call preferred_coding_system instead of accessing
23891 Vcoding_category_list. Adjust for the new code-conversion API.
23892 (syms_of_fns): Move defsubr for char table related functions to
23893 chartab.c.
23894
23895 * fontset.c: Mostly re-written.
23896
23897 * fontset.h (struct font_info): Change type of the member encoding_type.
23898 (enum FONT_SPEC_INDEX): New enum.
23899 (fontset_font_pattern, fs_load_font): Update prototype.
23900 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
23901
23902 * indent.c: Include "character.h" instead of "charset.h".
23903 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
23904
23905 * insdel.c: Include "character.h" instead of "charset.h".
23906 (copy_text): Don't refer to Vnonascii_translation_table.
23907 (insert_from_gap): New function.
23908
23909 * keyboard.c: Include "character.h" instead of "charset.h".
23910 (command_loop_1): Never call direct_output_forward_char before
23911 a non-ASCII character.
23912 (read_char): If Vkeyboard_translate_table is a char table, always
23913 translate a character.
23914
23915 * keymap.c: Include "character.h".
23916 (store_in_keymap): Handle the case that IDX is a cons.
23917 (Fdefine_key): Handle the case that KEY is a cons and the car part
23918 is also a cons (range).
23919 (push_key_description): Adjust for the new character code.
23920 (describe_vector): Call describe_char_table for a char table.
23921 (describe_char_table): New function.
23922
23923 * keymap.h (describe_char_table): Extern it.
23924
23925 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
23926 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
23927 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
23928 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
23929 Delete.
23930 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
23931 structure.
23932 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
23933 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
23934 (CHARTAB_SIZE_BITS_3): New macros.
23935 (chartab_size): Extern it.
23936 (struct Lisp_Char_Table): Re-design.
23937 (struct Lisp_Sub_Char_Table): New structure.
23938 (HASH_KEY, HASH_VALUE): Move from fns.c.
23939 (CHARACTERBITS): Define as 22.
23940 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
23941 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
23942 (GC_SUB_CHAR_TABLE_P): New macro.
23943 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
23944 (code_convert_string_norecord): Deleted extern.
23945 (init_character_once, syms_of_character, init_charset)
23946 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
23947
23948 * lread.c: Include "character.h".
23949 (read_multibyte): New arg NBYTES.
23950 (read_escape): Change the meaning of returned *BYTEREP.
23951 (to_multibyte): Delete.
23952 (read1): Adjust the handling of char table and string.
23953
23954 * print.c: Include "character.h" instead of "charset.h".
23955 (print_string): Convert 8-bit raw bytes to octal form by
23956 string_escape_byte8.
23957 (print_object): Adjust for the new multibyte form. Print 8-bit
23958 raw bytes always in octal form. Handle sub char table correctly.
23959
23960 * process.c: Include "character.h" instead of "charset.h".
23961 (read_process_output, send_process): Adjust for the new
23962 code-conversion API.
23963
23964 * puresize.h (BASE_PURESIZE): Increase.
23965
23966 * regex.c: Include "character.h" instead of "charset.h".
23967 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
23968 (regex_compile): Accept a range whose starting and ending
23969 character have different leading bytes.
23970 (analyse_first): Adjust for the above change.
23971
23972 * search.c: Include "character.h" instead of "charset.h".
23973 (search_buffer, boyer_moore): Adjust for the new multibyte form.
23974 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
23975
23976 * syntax.c: Include "character.h" instead of "charset.h".
23977 (syntax_parent_lookup): Delete.
23978 (Fmodify_syntax_entry): Accept a cons as CHAR.
23979 (skip_chars): Adjust for the new multibyte form.
23980 (init_syntax_once): Call char_table_set_range instead of directly
23981 accessing the structure of a char table.
23982
23983 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
23984 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
23985 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
23986 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
23987
23988 * term.c: Include "buffer.h" and "character.h".
23989 (encode_terminal_code, write_glyphs): Adjust for the new
23990 code-conversion API.
23991 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
23992
23993 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
23994
23995 * xdisp.c: Include "character.h".
23996 (get_next_display_element): Adjust for the new multibyte form.
23997 (disp_char_vector): Adjust for the new char table structure.
23998 (decode_mode_spec_coding): Adjust for the new structure of
23999 coding system.
24000 (decode_mode_spec): Adjust for the new code-conversion API.
24001
24002 * xfaces.c: Include "character.h" instead of "charset.h".
24003 (load_face_font): Adjust for the change of choose_face_font and
24004 FS_LOAD_FONT.
24005 (generate_ascii_font): New function.
24006 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
24007 (set_font_frame_param): Adjust for the change of choose_face_font.
24008 (free_realized_face): Make it public.
24009 (free_realized_faces_for_fontset): Rename from
24010 free_realized_multibyte_face. Free also faces realized for ASCII.
24011 (choose_face_font): Change arguments. Adjust for the change of
24012 fontset_font_pattern and FS_LOAD_FONT.
24013
24014 * xfns.c: Include "character.h".
24015 (x_encode_text): Adjust for the new code-conversion API.
24016
24017 * xselect.c: Don't include "charset.h".
24018 (selection_data_to_lisp_data): Adjust for the new code conversion API.
24019
24020 * xterm.c: Include "character.h".
24021 (x_encode_char): New argument CHARSET. Change caller.
24022 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
24023 Call ENCODE_CHAR instead of SPLIT_CHAR.
24024 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
24025 CHAR_WIDTH instead of CHARSET_WIDTH.
24026 (XTread_socket): Adjust for the new code-conversion API.
24027 (x_new_font): Adjust for the change of FS_LOAD_FONT.
24028 (x_load_font): Adjust for the change of struct font.
24029
240302008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24031
24032 * xfaces.c (face_at_buffer_position): Remove unused vars.
24033
240342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24035
24036 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
24037 Fix overflow checking.
24038
240392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24040
24041 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
24042 Cancel previous change.
24043
240442008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
24045
24046 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
24047 ccl->eight_bit_control. Fix check for buffer overflow.
24048 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
24049 (ccl_driver): Initialize extra_bytes to 0.
24050
240512008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
24052
24053 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
24054 return it ORed with ctrl_modifier.
24055
240562008-01-29 Miles Bader <miles@gnu.org>
24057
24058 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
24059
240602008-01-28 Jason Rumney <jasonr@gnu.org>
24061
24062 * w32.c (stat): Don't double check for networked drive.
24063
240642008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
24065
24066 * window.c (run_window_configuration_change_hook): New function.
24067 Code extracted from set_window_buffer. Set the selected frame.
24068 (set_window_buffer): Use it.
24069 * window.h (run_window_configuration_change_hook): Declare.
24070 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
24071
24072 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
24073
240742008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
24075
24076 * Makefile.in: Remove references to unused macros.
24077
240782008-01-26 Eli Zaretskii <eliz@gnu.org>
24079
24080 * w32.c (g_b_init_get_sid_sub_authority)
24081 (g_b_init_get_sid_sub_authority_count): New static variables.
24082 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
24083 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
24084 (init_user_info): Use them to retrieve uid and gid.
24085 Use 500/513, the Windows defaults, as Administrator's uid/gid.
24086 (fstat): Use pw_uid and pw_gid from the_passwd structure for
24087 st_uid and st_gid of the file.
24088
240892008-01-26 Jason Rumney <jasonr@gnu.org>
24090
24091 * w32.c (logon_network_drive): New function.
24092 (stat): Use it.
24093
240942008-01-26 Chong Yidong <cyd@stupidchicken.com>
24095
24096 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
24097 invisible text covered with an ellipsis.
24098
240992008-01-25 Richard Stallman <rms@gnu.org>
24100
24101 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
24102 jump back to beginning. Move some other initializations after that.
24103 (Qwindow_text_change_functions, Vwindow_text_change_functions):
24104 New variables.
24105 (syms_of_xdisp): Init them.
24106
24107 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
24108
24109 * buffer.c (reset_buffer_local_variables):
24110 Implement `permanent-local-hook'.
24111 (Qpermanent_local_hook): New variable.
24112 (syms_of_buffer): Init and staticpro it.
24113
241142008-01-25 Michael Albinus <michael.albinus@gmx.de>
24115
24116 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
24117
241182008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
24119
24120 * fns.c (Fclrhash): Return TABLE.
24121
241222008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24123
24124 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
24125 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
24126 is set even without positional changes.
24127 (x_scroll_bar_clear): Set bar->redraw_needed_p.
24128
24129 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
24130
241312008-01-23 Jason Rumney <jasonr@gnu.org>
24132
24133 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
24134
24135 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
24136 the unicode range available in MULE by locale-coding-system.
24137 Improve dbcs lead byte detection. Set event timestamp and modifiers
24138 earlier.
24139
241402008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24141
24142 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
24143 [MAC_OSX] (init_mac_osx_environment): Initialize it.
24144 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
24145 when used on child processes.
24146
241472008-01-21 Michael Albinus <michael.albinus@gmx.de>
24148
24149 * dbusbind.c (Fdbus_method_return_internal): Rename from
24150 Fdbus_method_return.
24151 (Fdbus_unregister_object): Move to dbus.el.
24152 (Fdbus_call_method, Fdbus_method_return_internal)
24153 (Fdbus_send_signal): Improve debug messages.
24154
241552008-01-20 Martin Rudalics <rudalics@gmx.at>
24156
24157 * undo.c (undo_inhibit_record_point): New variable.
24158 (syms_of_undo): Initialize it.
24159 (record_point): Don't record point when undo_inhibit_record_point
24160 is set.
24161
241622008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
24163
24164 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
24165
24166 * xdisp.c (Qauto_hscroll_mode): New var.
24167 (syms_of_xdisp): Initialize it.
24168 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
24169 window's buffer.
24170 (hscroll_windows): Don't check automatic_hscrolling_p here.
24171
24172 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
24173 vscroll if we're setting window-buffer to the value it already has.
24174
241752008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
24176
24177 * m/intel386.h: Remove references to XENIX.
24178
241792008-01-17 Andreas Schwab <schwab@suse.de>
24180
24181 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
24182 instead of HAVE_X86_64_LIB64_DIR.
24183 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
24184
241852008-01-17 Glenn Morris <rgm@gnu.org>
24186
24187 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
24188 to HAVE_X86_64_LIB64_DIR.
24189
241902008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
24191
24192 * s/irix3-3.h:
24193 * s/irix4-0.h:
24194 * s/386-ix.h:
24195 * s/domain.h:
24196 * s/hpux9-x11r4.h:
24197 * s/hpux9shxr4.h: Remove files for systems no longer supported.
24198
24199 * sysdep.c: Remove code containing references to symbols defined
24200 by unsupported systems.
24201
242022008-01-16 Glenn Morris <rgm@gnu.org>
24203
24204 * coding.c (select-safe-coding-system-function): Doc fix.
24205
242062008-01-15 Glenn Morris <rgm@gnu.org>
24207
24208 * config.in: Revert 2008-01-13 change: this is a generated file.
24209
242102008-01-13 Tom Tromey <tromey@redhat.com>
24211
24212 * lisp.h: Fix typo.
24213
242142008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
24215
24216 * m/sequent-ptx.h:
24217 * m/sequent.h:
24218 * s/ptx.h:
24219 * s/ptx4-2.h:
24220 * s/ptx4.h: Remove files for systems no longer supported.
24221
24222 * callproc.c (Fcall_process): Fix previous change.
24223
242242008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
24225
24226 * unexsunos4.c: Remove file, system not supported anymore.
24227
24228 * m/mips.h:
24229 * m/intel386.h:
24230 * callproc.c:
24231 * config.in:
24232 * ecrt0.c:
24233 * emacs.c:
24234 * fileio.c:
24235 * frame.c:
24236 * getpagesize.h:
24237 * keyboard.c:
24238 * lread.c:
24239 * process.c:
24240 * puresize.h:
24241 * sysdep.c:
24242 * systty.h:
24243 * syswait.h:
24244 * unexec.c:
24245 * xdisp.c:
24246 * alloc.c: Remove code containing references to symbols defined by
24247 unsupported systems.
24248
242492008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
24250
24251 * coding.c (detect_coding_mask): Fix previous change.
24252
242532008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
24254
24255 * coding.c (detect_coding_iso2022): New arg
24256 latin_extra_code_state. Allow Latin extra codes only
24257 when *latin_extra_code_state is nonzero.
24258 (detect_coding_mask): If there is a NULL byte, detect the encoding
24259 as UTF-16 or binary. If Latin extra codes exist, detect the
24260 encoding as ISO-2022 only when there's no other proper encoding is
24261 found.
24262
242632008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24264
24265 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
24266 #ifdef MAC_OS.
24267
242682008-01-08 Richard Stallman <rms@gnu.org>
24269
24270 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
24271
242722008-01-06 Nick Roberts <nickrob@snap.net.nz>
24273
24274 * keyboard.c (parse_menu_item): Don't enclose key bindings on
24275 menu bar in parentheses.
24276
242772008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
24278
24279 * m/7300.h:
24280 * m/acorn.h:
24281 * m/alliant-2800.h:
24282 * m/alliant.h:
24283 * m/alliant1.h:
24284 * m/alliant4.h:
24285 * m/altos.h:
24286 * m/amdahl.h:
24287 * m/apollo.h:
24288 * m/att3b.h:
24289 * m/aviion-intel.h:
24290 * m/aviion.h:
24291 * m/celerity.h:
24292 * m/clipper.h:
24293 * m/cnvrgnt.h:
24294 * m/convex.h:
24295 * m/cydra5.h:
24296 * m/delta88k.h:
24297 * m/dpx2.h:
24298 * m/dual.h:
24299 * m/elxsi.h:
24300 * m/f301.h:
24301 * m/gould-np1.h:
24302 * m/gould.h:
24303 * m/i860.h:
24304 * m/ibmps2-aix.h:
24305 * m/ibmrt-aix.h:
24306 * m/ibmrt.h:
24307 * m/irist.h:
24308 * m/is386.h:
24309 * m/isi-ov.h:
24310 * m/mega68.h:
24311 * m/mg1.h:
24312 * m/news-r6.h:
24313 * m/news-risc.h:
24314 * m/news.h:
24315 * m/nh3000.h:
24316 * m/nh4000.h:
24317 * m/ns16000.h:
24318 * m/ns32000.h:
24319 * m/nu.h:
24320 * m/orion.h:
24321 * m/orion105.h:
24322 * m/paragon.h:
24323 * m/pfa50.h:
24324 * m/plexus.h:
24325 * m/pyramid.h:
24326 * m/pyrmips.h:
24327 * m/sh3el.h:
24328 * m/sps7.h:
24329 * m/sr2k.h:
24330 * m/stride.h:
24331 * m/sun1.h:
24332 * m/sun2.h:
24333 * m/sun3-68881.h:
24334 * m/sun3-fpa.h:
24335 * m/sun3-soft.h:
24336 * m/sun3.h:
24337 * m/sun386.h:
24338 * m/symmetry.h:
24339 * m/tad68k.h:
24340 * m/tahoe.h:
24341 * m/targon31.h:
24342 * m/tek4300.h:
24343 * m/tekxd88.h:
24344 * m/tower32.h:
24345 * m/tower32v3.h:
24346 * m/ustation.h:
24347 * m/wicat.h:
24348 * m/xps100.h:
24349 * s/cxux.h:
24350 * s/cxux7.h:
24351 * s/dgux.h:
24352 * s/dgux4.h:
24353 * s/dgux5-4-3.h:
24354 * s/dgux5-4r2.h:
24355 * s/esix.h:
24356 * s/esix5r4.h:
24357 * s/hiuxmpp.h:
24358 * s/hiuxwe2.h:
24359 * s/iris3-5.h:
24360 * s/iris3-6.h:
24361 * s/isc2-2.h:
24362 * s/isc3-0.h:
24363 * s/isc4-0.h:
24364 * s/isc4-1.h:
24365 * s/newsos5.h:
24366 * s/newsos6.h:
24367 * s/osf1.h:
24368 * s/osf5-0.h:
24369 * s/riscix1-1.h:
24370 * s/riscix12.h:
24371 * s/sco4.h:
24372 * s/sco5.h:
24373 * s/sunos4-0.h:
24374 * s/sunos4-1.h:
24375 * s/sunos413.h:
24376 * s/sunos4shr.h:
24377 * s/umax.h:
24378 * s/unipl5-2.h:
24379 * s/xenix.h:
24380 * cxux-crt0.s:
24381 * unexapollo.c:
24382 * unexconvex.c:
24383 * unexenix.c:
24384 * unexsni.c: Remove files for systems no longer supported.
24385
24386 * m/intel386.h: Remove references to unsupported systems.
24387
24388 * w32.c (get_emacs_configuration): Remove reference to i860.
24389
24390 * sysdep.c: Remove dead code.
24391
243922008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
24393
24394 * s/rtu.h:
24395 * m/masscomp.h: Remove files. Platform is obsolete.
24396
243972008-01-04 Michael Albinus <michael.albinus@gmx.de>
24398
24399 * dbusbind.c (Fdbus_method_return): New function.
24400 (xd_read_message): Add the serial number to the event.
24401 (Fdbus_register_method): Activate the function.
24402
244032008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
24404
24405 * keyboard.c (read_key_sequence): Fix typo.
24406
244072008-01-03 Michael Albinus <michael.albinus@gmx.de>
24408
24409 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
24410 (xd_signature, xd_append_arg): Handle element type detection for
24411 empty arrays.
24412 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
24413 SDATA () calls; this must be solved more general.
24414 (Fdbus_register_signal): Use SBYTES instead of strlen.
24415
244162008-01-03 Magnus Henoch <magnus@zemdatav>
24417
24418 * dbusbind.c (xd_append_arg): Use unsigned char instead of
24419 unsigned int for byte values (necessary for big-endian platform).
24420 (Fdbus_call_method): Handle the case of no returned arguments.
24421
244222007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
24423
24424 * dbusbind.c (xd_read_message): Use non-static input_event struct.
24425
244262007-12-31 Magnus Henoch <mange@freemail.hu>
24427
24428 * dbusbind.c (xd_signature): Signature of variant is just "v".
24429
244302007-12-30 Michael Albinus <michael.albinus@gmx.de>
24431
24432 * dbusbind.c: Fix several errors and compiler warnings.
24433 Reported by Tom Tromey <tromey@redhat.com>.
24434 (XD_ERROR, XD_DEBUG_MESSAGE)
24435 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
24436 (xd_append_arg): Part for basic D-Bus types rewritten.
24437 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
24438 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
24439 appropriate.
24440 (xd_read_message): Return Qnil. Don't signal an error; it is not
24441 useful during event reading.
24442 (Fdbus_register_signal): Signal an error if the check for
24443 FUNCTIONP fails.
24444 (Fdbus_register_method): New function. The implementation is not
24445 complete, the call of the function signals an error therefore.
24446 (Fdbus_unregister_object): New function, renamed from
24447 Fdbus_unregister_signal. The initial check signals an error, if
24448 the object is not well formed.
24449
244502007-12-30 Richard Stallman <rms@gnu.org>
24451
24452 * textprop.c (get_char_property_and_overlay):
24453 Signal error if POSITION is out of range in a buffer.
24454
244552007-12-29 Martin Rudalics <rudalics@gmx.at>
24456
24457 * w32fns.c (Fx_create_frame): Make copy of frame parameters
24458 because the original parameters are in pure storage now.
24459
244602007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24461
24462 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
24463
244642007-12-22 Eli Zaretskii <eliz@gnu.org>
24465
24466 * callint.c (syms_of_callint) <command-history>: Add reference to
24467 history-length in the doc string.
24468
244692007-12-17 Jason Rumney <jasonr@gnu.org>
24470
24471 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
24472 before passing as wParam.
24473
244742007-12-22 Michael Albinus <michael.albinus@gmx.de>
24475
24476 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
24477 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
24478 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
24479 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
24480 as number.
24481 (Fdbus_call_method): Fix docstring.
24482
244832007-12-21 Michael Albinus <michael.albinus@gmx.de>
24484
24485 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
24486 New macros.
24487 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
24488 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
24489 Simplify.
24490 (xd_signature): New function.
24491 (xd_append_arg): Compute also signatures. Major rewrite.
24492 (xd_retrieve_arg): Make debug messages friendly.
24493 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
24494 Check for signatures of arguments.
24495
244962007-12-19 Michael Albinus <michael.albinus@gmx.de>
24497
24498 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
24499 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
24500 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
24501 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
24502 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
24503 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
24504 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
24505 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
24506 (xd_retrieve_value): Remove. Functionality included in ...
24507 (xd_append_arg): New function.
24508 (Fdbus_call_method, Fdbus_send_signal): Apply it.
24509
245102007-12-16 Michael Albinus <michael.albinus@gmx.de>
24511
24512 * dbusbind.c (top): Include <stdio.h>.
24513 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
24514 dbus_message_new_method_call and dbus_message_new_signal.
24515 (Fdbus_register_signal): Rename unique_name to uname.
24516 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
24517 non-existing unique name. Fix typos in matching rule. Return an
24518 object which is useful in Fdbus_unregister_signal.
24519 (Fdbus_unregister_signal): Reimplementation, in order to remove
24520 only the corresponding entry.
24521 (Vdbus_registered_functions_table): Change the order of entries.
24522 Apply these changes in xd_read_message and Fdbus_register_signal.
24523
245242007-12-16 Andreas Schwab <schwab@suse.de>
24525
24526 * fileio.c (Finsert_file_contents): Fix overflow check to not
24527 depend on undefined integer overflow.
24528
245292007-12-14 Jason Rumney <jasonr@gnu.org>
24530
24531 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
24532 for characters above 127.
24533
245342007-12-13 Jason Rumney <jasonr@gnu.org>
24535
24536 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
24537 before dereferencing array.
24538 (lookup_vk_code): Remove zero comparison.
24539
245402007-12-14 Michael Albinus <michael.albinus@gmx.de>
24541
24542 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
24543 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
24544 Use `unsigned int' instead of `uint'.
24545 (xd_read_message, Fdbus_register_signal): Split expressions into
24546 multiple lines before operators "&&" and "||", according to the
24547 GNU Coding Standards.
24548
245492007-12-14 Eli Zaretskii <eliz@gnu.org>
24550
24551 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
24552
245532007-12-12 Juri Linkov <juri@jurta.org>
24554
24555 * buffer.c (Frename_buffer): In interactive spec replace
24556 `read-buffer' with `read-string' that uses `buffer-name-history'
24557 as history, and the current buffer's name as default.
24558
245592007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
24560
24561 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
24562 manipulating the backtrace manually.
24563 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
24564 (struct backtrace, backtrace_list): Remove.
24565 (command_loop_1): Remove dead var `no_direct'.
24566
24567 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
24568 preserve non-built-in buffer-local variables.
24569 (Fkill_all_local_variables): Don't re-create&re-set permanent
24570 buffer-local variables.
24571
245722007-12-09 Juri Linkov <juri@jurta.org>
24573
24574 * buffer.c (Frename_buffer): Change interactive spec from "s" to
24575 Lisp code that uses `read-buffer' with current buffer as default.
24576
245772007-12-08 Michael Albinus <michael.albinus@gmx.de>
24578
24579 * dbusbind.c (xd_read_message): Generate an event for every
24580 registered handler. There might be several handlers registered
24581 for the same signal.
24582 (Fdbus_register_signal): Don't overwrite a registration for the
24583 same signal. Add a new registration if handlers are different.
24584 (Vdbus_registered_functions_table): Rework doc string.
24585
245862007-12-07 Michael Albinus <michael.albinus@gmx.de>
24587
24588 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
24589 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
24590 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
24591 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
24592 Unify argument lists.
24593 (xd_read_message, Fdbus_register_signal): Reorder and extend event
24594 arguments and hash table keys. Use unique name for service.
24595 (Fdbus_unregister_signal): Remove checks.
24596 (Vdbus_registered_functions_table): Fix doc string.
24597
245982007-12-05 Magnus Henoch <mange@freemail.hu>
24599
24600 * process.c (make_process): Initialize pty_flag to 0.
24601
246022007-12-05 Jason Rumney <jasonr@gnu.org>
24603
24604 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
24605 specified XBMs.
24606
246072007-12-05 Richard Stallman <rms@gnu.org>
24608
24609 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
24610
246112007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24612
24613 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
24614 New variable.
24615 (mac_try_close_socket) [MAC_OSX]: New function.
24616 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
24617 Update cfsockets_for_select. Replace invalid CFRunLoop source.
24618
24619 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
24620 Use mac_try_close_socket.
24621
246222007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24623
24624 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
24625 reloc_base.
24626 (copy_dysymtab): Compute relocation base here.
24627 (rebase_reloc_address) [__ppc64__]: New function.
24628 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
24629 changed.
24630
246312007-12-05 Jason Rumney <jasonr@gnu.org>
24632
24633 * w32proc.c (sys_spawnve): Quote args with wildcards.
24634
246352007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24636
24637 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
24638 __objc_* sections.
24639 (unrelocate) [_LP64]: Set relocation base to address of data segment.
24640
246412007-12-05 Michael Albinus <michael.albinus@gmx.de>
24642
24643 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
24644 Move check for Vdbus_registered_functions_table to
24645 xd_read_queued_messages.
24646 (xd_read_queued_messages): Protect xd_read_message calls by
24647 internal_condition_case_1.
24648
246492007-12-04 Michael Albinus <michael.albinus@gmx.de>
24650
24651 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
24652 Qdbus_system_bus and Qdbus_session_bus, respectively.
24653 (Vdbus_intern_symbols): Remove.
24654 (Vdbus_registered_functions_table): New hash table.
24655 (XD_SYMBOL_INTERN_SYMBOL): Remove.
24656 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
24657 Rewrite in order to manage registered functions by hash table
24658 Vdbus_registered_functions_table.
24659
246602007-12-03 Jan Djärv <jan.h.d@swipnet.se>
24661
24662 * xterm.c: Update URL to Window Manager Specification in comment.
24663
246642007-12-02 Michael Albinus <michael.albinus@gmx.de>
24665
24666 * config.in (HAVE_DBUS): Add.
24667
24668 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
24669 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
24670 (obj): Add $(DBUS_OBJ).
24671 (LIBES): Add $(DBUS_LIBS).
24672 (dbusbind.o): New target.
24673
24674 * dbusbind.c: New file.
24675
24676 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
24677
24678 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
24679 (Qdbus_event): New Lisp symbol.
24680 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
24681 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 24682 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
24683
24684 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
24685
246862007-12-01 Richard Stallman <rms@gnu.org>
24687
24688 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
24689
246902007-11-30 Jason Rumney <jasonr@gnu.org>
24691
24692 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
24693 (w32con_reset_terminal_modes): Clear screen buffer.
24694 (w32_face_attributes): Don't use color indexes that are out of range.
24695 Only reverse the default colors.
24696
24697 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
24698 WINDOWSNT.
24699
24700 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
24701
247022007-11-29 Jason Rumney <jasonr@gnu.org>
24703
24704 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
24705 (w32_face_attributes): Use Vtty_defined_color_alist to determine
24706 if the terminal colors are initialized.
24707 (unspecified_fg, unspecified_bg): Remove unused declarations.
24708
247092007-11-29 Andreas Schwab <schwab@suse.de>
24710
24711 * keyboard.c (apply_modifiers): Fix typo.
24712
247132007-11-29 Richard Stallman <rms@gnu.org>
24714
24715 * keymap.c (Fcurrent_local_map): Doc fix.
24716
247172007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
24718
24719 * s/gnu-kfreebsd.h: New file.
24720
247212007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
24722
24723 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
24724 Don't cast redundantly.
24725
24726 * keyboard.c (KEY_TO_CHAR): New macro.
24727 (parse_modifiers, apply_modifiers): Accept integer arguments.
24728 (read_key_sequence): Use them to unify the "shift->unshift" mapping
24729 for chars and symbol keys.
24730 After doing such remapping, apply function-key-map again.
24731
247322007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
24733
24734 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
24735 compiled anymore.
24736
247372007-11-26 Andreas Schwab <schwab@suse.de>
24738
24739 * process.c (list_processes_1): Fix indentation level of the
24740 command column.
24741
247422007-11-23 Andreas Schwab <schwab@suse.de>
24743
24744 * editfns.c (Fformat): Handle %c specially since it requires the
24745 argument to be of type int.
24746
247472007-11-23 Markus Triska <markus.triska@gmx.at>
24748
24749 * emacs.c (main): Call init_editfns before init_process, since
24750 init_process sets Vprocess_connection_type depending on OS release.
24751
247522007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
24753
24754 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
24755 (find_symbol_value): Use do_symval_forwarding.
24756
24757 * data.c (set_internal): Set the value in the `cons-cell' (for
24758 Buffer_Local_values) not only for frame-local variables.
24759
247602007-11-22 Andreas Schwab <schwab@suse.de>
24761
24762 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
24763 values to sprintf.
24764 * keymap.c (Fsingle_key_description): Likewise.
24765 * print.c (print_object): Likewise.
24766
247672007-11-22 Jan Djärv <jan.h.d@swipnet.se>
24768
24769 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
24770 file for image is nil.
24771
247722007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
24773
24774 * term.c: Include stdarg.h.
24775 (fatal): Implement using varargs.
24776 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
24777
247782007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24779
24780 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
24781 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
24782 Update call to buffer_slot_type_mismatch.
24783 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
24784 (buffer_slot_type_mismatch): Update.
24785 * buffer.c (buffer_local_types): Remove.
24786 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
24787 (defvar_per_buffer): Set the type in the buffer_objfwd.
24788
247892007-11-21 Jason Rumney <jasonr@gnu.org>
24790
24791 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
24792 CreateFileMapping returns NULL on failure.
24793
247942007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24795
24796 * search.c (Fset_match_data): Remove the `evaporate' feature.
24797 (unwind_set_match_data): Don't use the `evaporate' feature.
24798
247992007-11-21 Jason Rumney <jasonr@gnu.org>
24800
24801 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
24802
24803 * w32console.c (w32con_write_glyphs): Remove unused variables.
24804
248052007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
24806
24807 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
24808
24809 * s/darwin.h (MULTI_KBOARD): Remove.
24810
24811 * macfns.c (x_create_tip_frame, Fx_create_frame)
24812 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
24813
248142007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
24815
24816 * buffer.c (Fbuffer_local_value): Remove redundant test.
24817 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
24818 than in `current-buffer' to match the comment.
24819 Do the swap using swap_in_global_binding.
24820
24821 * data.c (store_symval_forwarding, set_internal):
24822 * eval.c (specbind): Remove dead code.
24823
24824 * coding.c (detect_coding, Fupdate_coding_systems_internal):
24825 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
24826 Since we do not want to see internal Lisp_*fwd objects here.
24827
248282007-11-18 Jan Djärv <jan.h.d@swipnet.se>
24829
24830 * sysdep.c (init_system_name): Use getaddrinfo if available.
24831
24832 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
24833 (x_scroll_bar_note_movement): start, end, with, height in struct
24834 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
24835
248362007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
24837
24838 * puresize.h (BASE_PURESIZE): Increase to 1190000.
24839
248402007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
24841
24842 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
24843 This undoes Richard's change of 14-Oct-2002.
24844
24845 * alloc.c (allocate_other_vector):
24846 * lisp.h (allocate_other_vector): Remove.
24847
24848 * window.c (struct save_window_data): Move non-lisp data to the end
24849 and make it `int' rather than Lisp_Object.
24850 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
24851 Done wrap/unwrap integer values.
24852 (Fset_window_configuration, compare_window_configurations):
24853 Update use of fields to their new types.
24854
24855 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
24856 Turn integer fields into `int'. Merge x_window_low and x_window_high.
24857 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
24858 (SET_SCROLL_BAR_X_WINDOW): Remove.
24859 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
24860 Access the new x_window field directly.
24861 * xterm.c (x_scroll_bar_create): Use a pseudovector.
24862 Don't wrap/unwrap integers into Lisp_Objects.
24863 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
24864 (x_scroll_bar_report_motion):
24865 Don't wrap/unwrap integers into Lisp_Objects.
24866 (x_term_init): Use SDATA.
24867 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
24868 (x_scroll_bar_set_handle, x_scroll_bar_remove)
24869 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
24870 (x_scroll_bar_report_motion, x_scroll_bar_clear):
24871 * xfns.c (x_set_background_color):
24872 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
24873 Access the new x_window field directly.
24874
24875 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
24876 (allocate_pseudovector): Make non-static.
24877
24878 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
24879 (allocate_pseudovector): Declare.
24880 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
24881
248822007-11-15 Andreas Schwab <schwab@suse.de>
24883
24884 * editfns.c (Fformat): Correctly format EMACS_INT values.
24885 Also take precision into account when formatting an integer.
24886
24887 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
24888
248892007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
24890
24891 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
24892 (syms_of_keyboard): Defsubr it.
24893
24894 * data.c (swap_in_global_binding): Fix longstanding bug where
24895 store_symval_forwarding was not called with the right second argument,
24896 thus causing objfwd-ing from being dropped.
24897
248982007-11-14 Juanma Barranquero <lekktu@gmail.com>
24899
24900 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
24901 (Fx_display_pixel_height, Fx_display_planes)
24902 (Fx_display_color_cells, Fx_server_max_request_size)
24903 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24904 (Fx_display_visual_class, Fx_display_save_under):
24905 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
24906 (Fx_display_pixel_height, Fx_display_planes)
24907 (Fx_display_color_cells, Fx_server_max_request_size)
24908 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
24909 (Fx_display_mm_height, Fx_display_mm_width)
24910 (Fx_display_backing_store, Fx_display_visual_class)
24911 (Fw32_select_font, Fx_display_save_under):
24912 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
24913 (Fx_display_pixel_height, Fx_display_planes)
24914 (Fx_display_color_cells, Fx_server_max_request_size)
24915 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24916 (Fx_display_save_under): Fix typos in docstrings.
24917
249182007-11-14 Juanma Barranquero <lekktu@gmail.com>
24919
24920 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
24921 corresponding to deleted entries; they are an implementation detail.
24922 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
24923 Remove variables.
24924 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
24925 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
24926 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
24927 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
24928 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
24929 (Fw32_define_rgb_color, Fw32_load_color_file)
24930 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
24931 Fix typos in docstrings.
24932 (Fx_server_version): Reflow docstring.
24933 (Fw32_shell_execute): Doc fixes.
24934
249352007-11-13 Juanma Barranquero <lekktu@gmail.com>
24936
24937 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
24938 if w32_parse_hot_key returned nil.
24939
249402007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
24941
24942 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
24943
249442007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 24945
aac0c6e3
MR
24946 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
24947
24948 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
24949
24950 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
24951 Remove W32_SCROLL_BAR_CLICK_EVENT.
24952
24953 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
24954 Add MULTIMEDIA_KEY_EVENT.
24955
24956 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
24957 (lispy_multimedia_keys) [WINDOWSNT]: New array.
24958 (make_lispy_event) [WINDOWSNT]: Use it to translate
24959 MULTIMEDIA_KEY_EVENT.
24960
24961 * w32term.h (WM_APPCOMMAND): Define if not already.
24962 (GET_APPCOMMAND_LPARAM): Likewise.
24963
24964 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
24965 WM_APPCOMMAND.
24966
24967 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
24968 (syms_of_w32fns): Export and initialize it.
24969 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
24970
249712007-11-09 Chong Yidong <cyd@stupidchicken.com>
24972
24973 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
24974 twice.
24975
24976 * xdisp.c (handle_face_prop): Fix last change.
24977
249782007-11-09 Richard Stallman <rms@gnu.org>
24979
24980 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
24981 not just for after-strings and before-strings.
24982 Call face_for_overlay_string and pass the overlay to it.
24983 (handle_display_prop): Determine whether property came from an overlay.
24984 Pass OVERLAY arg to handle_single_display_spec.
24985 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
24986 (load_overlay_strings): Fill in it->string_overlays.
24987 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
24988
24989 * xfaces.c (face_for_overlay_string): Function renamed from
24990 face_at_buffer_position_no_overlays, and add arg OVERLAY.
24991
24992 * dispextern.h (struct it): New elt string_overlays.
24993 New elt from_overlay, also in stack.
24994 Rearrange a few elements.
24995 (face_for_overlay_string): Decl renamed from
24996 face_at_buffer_position_no_overlays, and add argument.
24997
249982007-11-09 Richard Stallman <rms@gnu.org>
24999
25000 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
25001 to get the base face for an overlay string.
25002
25003 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
25004
25005 * xfaces.c (face_at_buffer_position_no_overlays): New function.
25006
25007 * xdisp.c (handle_stop): Move some code out of loop.
25008
250092007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25010
25011 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
25012 Fix conversion from Lisp object to ATSUFontID.
25013
250142007-11-09 Jason Rumney <jasonr@gnu.org>
25015
25016 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
25017
250182007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25019
25020 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
25021 Don't assume regions are aligned to page boundary.
25022 (print_load_command_name): Add LC_UUID if defined.
25023
250242007-11-09 Richard Stallman <rms@gnu.org>
25025
25026 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
25027
250282007-11-07 Jason Rumney <jasonr@gnu.org>
25029
25030 * s/windows95.h: Remove.
25031
250322007-11-06 Jan Djärv <jan.h.d@swipnet.se>
25033
25034 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
25035 abort with a message on unhandled store_type values.
25036
250372007-11-01 Jan Djärv <jan.h.d@swipnet.se>
25038
25039 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
25040 Remove HAVE_X11R5 and HAVE_X11R4.
25041
250422007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
25043
25044 * Makefile.in: Remove references to sunfns.c and sunfns.o.
25045
250462007-11-01 Johan Bockgård <bojohan@gnu.org>
25047
25048 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
25049 Don't set s->stippled_p here, since it has already been set by
25050 x_set_glyph_string_gc from x_draw_glyph_string.
25051
250522007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
25053
25054 * sunfns.c: Remove file.
25055
25056 * m/sun386.h:
25057 * m/sun2.h:
25058 * m/sparc.h: Remove Sun windows code.
25059
250602007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
25061
25062 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
25063 (init_keyboard): Set current_kboard's window-system to nil.
25064 (tty_read_avail_input): Typo.
25065 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
25066
250672007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
25068
25069 * s/usg5-4.h:
25070 * s/usg5-3.h:
25071 * s/ptx.h:
25072 * m/is386.h:
25073 * m/ibmps2-aix.h:
25074 * Makefile.in: Remove all mentions of X10.
25075
25076 * dispnew.c (syms_of_display): Don't mention version 10.
25077
250782007-10-28 Juanma Barranquero <lekktu@gmail.com>
25079
25080 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
25081 ($(BLD)/abbrev.$(O)): Remove.
25082
250832007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
25084
25085 Rewrite abbrev.c in Elisp.
25086 * image.c (Qcount): Don't declare as extern.
25087 (syms_of_image): Initialize and staticpro `Qcount'.
25088 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
25089 * emacs.c (main): Don't call syms_of_abbrev.
25090 * Makefile.in (obj): Remove abbrev.o.
25091 (abbrev.o): Remove.
25092 * abbrev.c: Remove.
25093
250942007-10-26 Martin Rudalics <rudalics@gmx.at>
25095
25096 * window.c (window_min_size_2): Don't count header-line.
25097
250982007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
25099
25100 * frame.h (struct frame): Move all bit fields after the first bit
25101 field to take advantage of the available space. Group all the
25102 chars together to reduce wasted space due to padding.
25103
251042007-10-26 Juanma Barranquero <lekktu@gmail.com>
25105
25106 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
25107
25108 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
25109 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
25110 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
25111 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
25112 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
25113 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
25114 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
25115 (last_marked, mark_object_loop_halt): Make static.
25116
25117 * frame.c (syms_of_frame) <delete-frame-functions>:
25118 Fix typo in docstring.
25119
251202007-10-25 Juanma Barranquero <lekktu@gmail.com>
25121
25122 * w32.c (init_environment): Fix tiny memory leak.
25123 (w32_get_resource): Remove unused variable `ok'.
25124
251252007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
25126
25127 Make `window-system' into a keyboard-local variable (rather than
25128 frame-local as done originally by multi-tty).
25129
25130 * keyboard.h (struct kboard): Add Vwindow_system.
25131 * keyboard.c (init_kboard): Set a default for Vwindow_system.
25132 (mark_kboards): Mark Vwindow_system.
25133
25134 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
25135 (init_display): Don't set the obsolete `window-system' frame-param.
25136
25137 * xterm.c (x_term_init):
25138 * w32term.c (w32_create_terminal):
25139 * term.c (init_tty): Set Vwindow_system.
25140 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
25141 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
25142
25143 * xfns.c (Fx_create_frame, x_create_tip_frame):
25144 * w32fns.c (Fx_create_frame, x_create_tip_frame):
25145 * macfns.c (Fx_create_frame):
25146 Don't set the obsolete `window-system' frame-param.
25147
25148 * frame.h (Qwindow_system): Remove.
25149 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
25150 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
25151
251522007-10-24 Richard Stallman <rms@gnu.org>
25153
25154 * frame.c (x_figure_window_size): For fullscreen case,
25155 set USPosition | PPosition without clobbering rest of window_prompting.
25156
25157 * keyboard.c (Fcurrent_idle_time): Doc fix.
25158
25159 * print.c (Fwith_output_to_temp_buffer): Doc fix.
25160
251612007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
25162
25163 * process.c (unwind_request_sigio): Only define if __ultrix__.
25164
25165 * callproc.c (child_setup): Remove spurious *.
25166
25167 * lisp.h (Fget_text_property): Declare.
25168 (have_menus_p): Declare it here rather than in sys-dep header files.
25169 * macterm.h (have_menus_p):
25170 * msdos.h (have_menus_p):
25171 * xterm.h (have_menus_p): Remove.
25172
25173 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
25174 (Fmake_variable_frame_local): Just check the variable's const-ness
25175 rather than checking nil or t.
25176
251772007-10-22 Jason Rumney <jasonr@gnu.org>
25178
25179 * w32fns.c: Include math.h.
25180 (w32_abort): Declaration moved to nt/config.nt.
25181
25182 * s/ms-w32.h (HAVE_STDLIB_H): Define.
25183 (abort): Redefinition moved to nt/config.nt.
25184
25185 * m/windowsnt.h: Remove.
25186
251872007-10-22 Juanma Barranquero <lekktu@gmail.com>
25188
25189 * emacs.c (Fdump_emacs): Fix typo in message.
25190 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
25191 <installation-directory>: Reflow docstring.
25192
251932007-10-22 Juri Linkov <juri@jurta.org>
25194
25195 * minibuf.c: Allow minibuffer default to be a list of default values.
25196 With empty input use the first element of this list as returned default.
25197 (string_to_object)
25198 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
25199 (read_minibuf): If defalt is cons, set histstring to its car.
25200 (Fread_string): If default_value is cons, set val to its car.
25201 (Fread_buffer): If def is cons, use its car.
25202 (Fcompleting_read): If defalt is cons, set val to its car.
25203
252042007-10-21 Michael Albinus <michael.albinus@gmx.de>
25205
25206 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
25207
252082007-10-20 Juanma Barranquero <lekktu@gmail.com>
25209
25210 * doc.c (Fdocumentation): Check for advice in all cases.
25211
252122007-10-19 Chong Yidong <cyd@stupidchicken.com>
25213
25214 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
25215
252162007-10-19 Richard Stallman <rms@gnu.org>
25217
25218 * doc.c (Fdocumentation): Check for and handle an advised function.
25219
252202007-10-19 Juanma Barranquero <lekktu@gmail.com>
25221
25222 * process.c (Fset_process_filter): Doc fix.
25223
252242007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
25225
25226 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
25227 which caused key-translation-map to applied repeatedly (thus breaking
25228 double-mode).
25229
252302007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
25231
25232 * xselect.c (x_own_selection, x_handle_selection_clear)
25233 (x_clear_frame_selections):
25234 * w32menu.c (list_of_panes, list_of_items):
25235 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
25236 * textprop.c (validate_plist, interval_has_all_properties)
25237 (interval_has_some_properties, interval_has_some_properties_list)
25238 (add_properties, text_property_list):
25239 * process.c (Fget_buffer_process, list_processes_1, status_notify):
25240 * minibuf.c (Fassoc_string):
25241 * macselect.c (x_own_selection, x_clear_frame_selections)
25242 (Fx_disown_selection_internal):
25243 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
25244 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
25245
252462007-10-17 Chong Yidong <cyd@stupidchicken.com>
25247
25248 * process.c: Link to libs for calling res_init() if available.
25249 (Fmake_network_process): Call res_init() before getaddrinfo or
25250 gethostbyname, if possible.
25251
252522007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
25253
25254 * lread.c (read1): Set pvectype for char_tables.
25255
25256 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
25257 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
25258 Add type checks.
25259 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
25260
25261 * alloc.c (free_misc): Use XMISCTYPE.
25262 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
25263
252642007-10-17 Glenn Morris <rgm@gnu.org>
25265
25266 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
25267 (syms_of_minibuf): Add Qcompletion_ignore_case.
25268 * dired.c (Qcompletion_ignore_case): Change to external.
25269 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
25270 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
25271 (Fread_file_name): Use it rather than intern'ing.
25272
25273 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
25274 (Fread_coding_system): Ignore case of user input.
25275
252762007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25277
25278 * xdisp.c (handle_display_prop): Ignore display specs after
25279 replacing one when string text is being replaced.
25280 (handle_single_display_spec): Pretend as if characters with display
25281 property haven't been consumed only when buffer text is being replaced.
25282
252832007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
25284
25285 * xfns.c (Fx_create_frame, Fx_display_list):
25286 * window.c (window_fixed_size_p, enlarge_window)
25287 (shrink_window_lowest_first):
25288 * macterm.c (init_font_name_table):
25289 * macfns.c (Fx_create_frame, Fx_display_list):
25290 * lread.c (close_load_descs):
25291 * keyboard.c (read_char_x_menu_prompt):
25292 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
25293 * coding.c (code_convert_region_unwind): Test the type of an object
25294 rather than just !NILP before extracting data from it.
25295
25296 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
25297
25298 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
25299 (XMISCANY): New macro.
25300 (XMISCTYPE): Use it.
25301 (struct Lisp_Misc_Any): New type.
25302 (union Lisp_Misc): Use it.
25303 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
25304 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
25305 (find_symbol_value, set_internal, default_value, Fset_default)
25306 (Fmake_variable_buffer_local, Fmake_local_variable)
25307 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
25308 (Flocal_variable_if_set_p, Fvariable_binding_locus):
25309 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
25310 * alloc.c (allocate_buffer): Set the size and tag.
25311 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
25312 Use XMISCANY.
25313 (die): Follow the GNU convention for error messages.
25314 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
25315 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
25316 tag any more.
25317 (set_buffer_internal_1):
25318 * frame.c (store_frame_param):
25319 * eval.c (specbind):
25320 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
25321
25322 * doc.c (Fsnarf_documentation): Simplify.
25323
253242007-10-14 Juanma Barranquero <lekktu@gmail.com>
25325
25326 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
25327 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
25328
253292007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
25330
25331 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
25332
253332007-10-14 Juanma Barranquero <lekktu@gmail.com>
25334
25335 * eval.c (do_autoload): Don't save autoloads.
25336
25337 * data.c (Ffset): Save autoload of the function being set.
25338
253392007-10-07 John Paul Wallington <jpw@pobox.com>
25340
25341 * xfns.c (x_create_tip_frame): Set the `display-type' frame
25342 parameter before setting up faces.
25343
253442007-10-13 Eli Zaretskii <eliz@gnu.org>
25345
25346 * ccl.c (Fregister_code_conversion_map):
25347 * keyboard.c (append_tool_bar_item): Reformat last change.
25348
25349 * lisp.h (eabs): Rename from `abs'. All callers changed.
25350
253512007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
25352
25353 * buffer.c (add_overlay_mod_hooklist):
25354 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
25355 * fontset.c (make_fontset):
25356 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
25357 (append_tool_bar_item):
25358 * macmenu.c (grow_menu_items):
25359 * w32menu.c (grow_menu_items):
25360 * xmenu.c (grow_menu_items): Use larger_vector.
25361
253622007-10-13 Eli Zaretskii <eliz@gnu.org>
25363
25364 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
25365 selected frame'' on MSDOS).
25366
253672007-10-12 Martin Rudalics <rudalics@gmx.at>
25368
25369 * frame.c (Qexplicit_name): New variable.
25370 (x_report_frame_params): Report it in parameter alist.
25371 (syms_of_frame): Intern and staticpro it.
25372
253732007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
25374
25375 * macfns.c (x_create_tip_frame): Set terminal for frame.
25376
253772007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
25378
25379 * frame.c (Qenvironment): Remove.
25380 (syms_of_frame) <Qenvironment>: Don't initialize.
25381 (Fdelete_frame): Don't treat the `environment' param specially.
25382 * frame.h (Qenvironment): Don't declare.
25383 * callproc.c (set_initial_environment): Don't set unused frame param.
25384
25385 * frame.c (Fframe_with_environment): Remove.
25386 (syms_of_frame) <Sframe_with_environment>: Don't declare.
25387
25388 * lisp.h (Fframe_with_environment): Don't declare.
25389
253902007-10-10 Juanma Barranquero <lekktu@gmail.com>
25391
25392 * indent.c (indent_tabs_mode, last_known_column)
25393 (last_known_column_modified): Make static.
25394 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
25395
253962007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
25397
25398 * puresize.h (BASE_PURESIZE): Increase to 1170000.
25399
254002007-10-09 Jason Rumney <jasonr@gnu.org>
25401
25402 * w32term.c (x_set_window_size): Disable code that attempts to tell
25403 Lisp code about a size change before it actually happens.
25404
254052007-10-09 Richard Stallman <rms@gnu.org>
25406
25407 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
25408 return HANDLED_RETURN.
25409
254102007-10-08 Martin Rudalics <rudalics@gmx.at>
25411
25412 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
25413 when there's an unread command event.
25414
25415 * frame.c (focus_follows_mouse): Move here from frame.el to allow
25416 window autoselection act appropriately when leaving selected frame.
25417 (syms_of_frame): Initialize focus_follows_mouse.
25418 * frame.h (focus_follows_mouse): Extern it.
25419 * macterm.c (XTread_socket): When focus_follows_mouse is nil
25420 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
25421 * msdos.c (dos_rawgetc): Likewise.
25422 * w32term.c (w32_read_socket): Likewise.
25423 * xterm.c (handle_one_xevent): Likewise.
25424 * xdisp.c (syms_of_xdisp): In doc-string of
25425 mouse-autoselect-window mention focus-follows-mouse.
25426
254272007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25428
25429 * macterm.c (mac_load_query_font): Fix missing return value.
25430 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
25431 Add BLOCK_INPUT.
25432
254332007-10-08 Richard Stallman <rms@gnu.org>
25434
25435 * xdisp.c (get_window_cursor_type): Implement documented behavior
25436 for cursor-in-non-selected-windows = t.
25437
254382007-10-08 Jason Rumney <jasonr@gnu.org>
25439
25440 * w32.c (w32_get_resource): Always close registry keys.
25441
254422007-10-08 Jason Rumney <jasonr@gnu.org>
25443
25444 * makefile.w32-in (LIBS): Add COMCTL32.
25445
25446 * w32fns.c (globals_of_w32fns): Init common controls.
25447
254482007-10-08 Richard Stallman <rms@gnu.org>
25449
25450 * image.c (our_memory_buffer): Rename from omfib_buffer.
25451
254522007-10-08 Richard Stallman <rms@gnu.org>
25453
25454 * buffer.c (Foverlays_at): Doc fix.
25455
254562007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
25457
25458 * fns.c (Fplist_put): Preserve uneven tail data.
25459
254602007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
25461
25462 * termhooks.h (enum event_kind): Remove trailing comma.
25463
25464 * frame.h (enum): Remove trailing comma.
25465
254662007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
25467
25468 * w32proc.c (delete_child): Don't terminate threads of zombies.
25469
254702007-10-08 Martin Rudalics <rudalics@gmx.at>
25471
25472 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
25473
25474 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
25475 last-repeatable-command.
25476 (init_kboard): Initialize Vlast_repeatable_command.
25477 (command_loop_1): Set it to real_this_command unless that was
25478 bound to an input event.
25479 (mark_kboards): Mark it.
25480
254812007-10-08 Richard Stallman <rms@gnu.org>
25482
25483 * eval.c (condition-case): Doc fix.
25484
254852007-10-08 Masatake YAMATO <jet@gyve.org>
25486
25487 * xfaces.c (tty_supports_face_attributes_p): Fix code
25488 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
25489 was copied and not edited.
25490
254912007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
25492
25493 Add new `input-decode-map' keymap and use it for terminal
25494 escape sequences.
25495 * keyboard.h (struct kboard): Add Vinput_decode_map.
25496 Remove Vlocal_key_translation_map.
25497 * keyboard.c (read_key_sequence): Add support for input-decode-map.
25498 (init_kboard): Init input-decode-map.
25499 Replace local-key-translation-map back with key-translation-map.
25500 (syms_of_keyboard): Declare input-decode-map.
25501 Remove local-key-translation-map. Update docstrings.
25502 (mark_kboards): Mark Vinput_decode_map.
25503 Don't mark Vlocal_key_translation_map.
25504 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
25505 Replace local-key-translation-map back with key-translation-map.
25506 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
25507 Bind in input-decode-map rather than function-key-map.
25508
25509 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
25510 This was made redundant by the previous introduction of XSETPVECTYPE.
25511
255122007-10-09 Richard Stallman <rms@gnu.org>
25513
25514 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
25515
255162007-09-29 Richard Stallman <rms@gnu.org>
25517
25518 * eval.c (internal_condition_case_2, internal_condition_case_1)
25519 (internal_condition_case): Reenable abort if x_catching_errors ()
25520 to see if that really happens and why.
25521
255222007-10-06 Andreas Schwab <schwab@suse.de>
25523
25524 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
25525
255262007-10-04 Juanma Barranquero <lekktu@gmail.com>
25527
25528 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
25529
255302007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
25531
25532 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
25533
255342007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
25535
25536 * window.h (struct window):
25537 * window.c (struct save_window_data, struct saved_window):
25538 * termhooks.h (struct terminal):
25539 * process.h (struct Lisp_Process):
25540 * frame.h (struct frame):
25541 * buffer.h (struct buffer):
25542 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
25543 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
25544 The size field of (pseudo)vectors is now unsigned.
25545 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
25546
25547 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
25548 Turn `count' into an integer.
25549
25550 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
25551 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
25552 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
25553 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
25554 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
25555
25556 * alloc.c (allocate_pseudovector): New fun.
25557 (ALLOCATE_PSEUDOVECTOR): New macro.
25558 (allocate_window, allocate_terminal, allocate_frame)
25559 (allocate_process): Use it.
25560 (mark_vectorlike): New function.
25561 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
25562 (mark_terminals): Use it.
25563 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
25564 (Fmake_byte_code): Use XSETPVECTYPE.
25565
25566 * frame.c (Fframe_parameters): Minor simplification.
25567
25568 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
25569
25570 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
25571
25572 * buffer.c (Fget_buffer_create, init_buffer_once):
25573 * lread.c (defsubr):
25574 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
25575
25576 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
25577 defined differently in the m/*.h files.
25578 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
25579 (XSETPVECTYPE): New macro.
25580 (XSETPSEUDOVECTOR): Use it.
25581
25582 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
25583 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
25584
25585 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
25586 * lread.c (defvar_per_buffer):
25587 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
25588
25589 * window.c (candidate_window_p): Only consider as visible frames that
25590 are on the same terminal.
25591
25592 * m/ibms390x.h (MARKBIT): Remove unused macro.
25593
255942007-10-01 Juanma Barranquero <lekktu@gmail.com>
25595
25596 * lread.c (Fload): Fix typo in docstring.
25597
255982007-10-01 Michaël Cadilhac <michael@cadilhac.name>
25599
25600 * floatfns.c (Fexpt): Manually check for overflows, so that a power
25601 of a non-zero value can't yield zero.
25602
256032007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
25604
25605 * term.c (term_clear_mouse_face, term_mouse_highlight)
25606 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
25607
25608 * print.c (safe_debug_print): Use XHASH.
25609
25610 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
25611 Lisp elements such as tags.
25612 (XHASH): New macro.
25613 (EQ): Use it.
25614 (SREF, SSET, STRING_COPYIN): Use SDATA.
25615 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
25616
25617 * alloc.c (mark_terminal): Remove left-over declaration.
25618 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
25619 (allocate_vectorlike): Remove type argument. Adjust callers.
25620 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
25621 Only handle the one remaining MEM_TYPE_VECTORLIKE.
25622
25623 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
25624 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
25625 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
25626 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
25627 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
25628 Use them.
25629
25630 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
25631 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
25632 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
25633
256342007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
25635
25636 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
25637 loaded by default.
25638
256392007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
25640
25641 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
25642 on this tty.
25643 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
25644
25645 * term.c (mouse_face_window): Rename from Qmouse_face_window.
25646 Update all users.
25647 (handle_one_term_event): Use Gpm_DrawPointer.
25648 (Fgpm_mouse_start): Rename from Fterm_open_connection.
25649 Signal errors instead of returning nil. Always return nil.
25650 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
25651 Make it a noop if gpm-mouse was not activated.
25652 (syms_of_term): Update names.
25653
256542007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
25655
25656 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
25657 (init_sys_modes): Check that gpm_tty is the current tty.
25658
25659 * alloc.c (allocate_terminal): Set the vector size to only count the
25660 lisp fields. Initialize those to nil.
25661 (mark_object): Don't treat terminals specially.
25662 (mark_terminal): Remove.
25663 (mark_terminals): Use mark_object instead.
25664
25665 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
25666 the GC to the beginning.
25667
25668 * indent.h:
25669 * indent.c: Use EMACS_INT for ints coming from Elisp data.
25670
25671 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
25672
256732007-09-25 Jason Rumney <jasonr@gnu.org>
25674
25675 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
25676
25677 * w32console.c (create_w32cons_output): Remove.
25678
25679 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
25680
25681 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
25682 (reset_sys_modes): Use reset_terminal_modes_hook.
25683
256842007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
25685
25686 * eval.c (do_autoload): Don't output any message.
25687
256882007-09-24 Juri Linkov <juri@jurta.org>
25689
25690 * emacs.c (standard_args): Change priority of "--no-splash"
25691 from 40 to 3. Add "--no-desktop" with the same priority.
25692
256932007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
25694
25695 * alloc.c (gc_sweep): Check cons cell mark bits word by word
25696 and optimize the case where they are all 1.
25697
256982007-09-23 Johannes Weiner <hannes@saeurebad.de>
25699
25700 * lisp.h (abs): Define if not defined.
25701 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
25702 Don't define `abs', since it's defined in lisp.h.
25703
257042007-09-22 Eli Zaretskii <eliz@gnu.org>
25705
25706 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
25707 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
25708 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
25709 (init_tty): Use DEV_TTY instead of "/dev/tty".
25710 [WINDOWSNT]: No need to protect from NAME arg being null.
25711
257122007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
25713
25714 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
25715 up the tty state.
25716
257172007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25718
25719 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
25720 (gpm_tty): Change its type.
25721 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
25722 (gpm_tty): Change its type and initialize it.
25723 (Fterm_open_connection): Check the frame is indeed a tty.
25724 Use the new gpm_tty.
25725 (Fterm_close_connection): Use the new gpm_tty.
25726 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
25727 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
25728
257292007-09-21 Juanma Barranquero <lekktu@gmail.com>
25730
25731 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
25732 underline_color, to draw strike-through.
25733
257342007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25735
25736 * lisp.h (allocate_terminal): Declare.
25737
25738 * window.c (candidate_window_p): Consider frames that are being placed
25739 by the user as somewhere between visible and iconified.
25740 (window_loop): Prefer windows on the current frame.
25741 (Fselect_window): Move the use of select-frame to the beginning so we
25742 can just delegate all the work (it'll call us back anyway).
25743
25744 * frame.c (Qdisplay_environment_variable):
25745 * frame.h (Qdisplay_environment_variable): Delete.
25746
25747 * .gdbinit (xbacktrace): Print the arg's address rather than the value
25748 of the first arg, since that value may be a union.
25749
25750 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
25751 parameter rather than Qdisplay_environment_variable. If all else
25752 fails, look for DISPLAY in initial-environment.
25753
257542007-09-21 Glenn Morris <rgm@gnu.org>
25755
25756 * Makefile.in (emacstool): Remove target.
25757 (lisp, shortlisp): Remove termdev.elc.
25758
257592007-09-21 Markus Triska <markus.triska@gmx.at>
25760
25761 * xterm.c (x_delete_display): Compile session management conditionally.
25762
257632007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
25764
25765 * callproc.c (getenv_internal_1): New function.
25766 (getenv_internal): Use it.
25767 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
25768
25769 * terminal.c (get_terminal): Don't accept ints to represent terminals.
25770 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
25771 (Fset_terminal_parameter): Work with dead terminals as well.
25772 (Fmodify_terminal_parameters): Remove.
25773
25774 * terminal.c (get_terminal): Handle terminals.
25775 Make sure the terminal returned is live.
25776 (create_terminal): Use allocate_terminal.
25777 (mark_terminals): Move to alloc.c.
25778 (delete_terminal): Use terminal->name as liveness status.
25779 NULL out fields after freeing their contents.
25780 Don't deallocate the object.
25781 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
25782 rather than an int.
25783 (Fterminal_live_p): Accept non-integer arguments.
25784 (Fterminal_list): Return terminal objects rather than an ints.
25785
25786 * alloc.c (enum mem_type): New member for `terminal' objects.
25787 (allocate_terminal): New function.
25788 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
25789 Handle terminals.
25790 (mark_terminal): New fun.
25791 (mark_terminals): Move from terminal.c.
25792
25793 * term.c (get_tty_terminal): Don't treat output_initial specially.
25794 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
25795 (delete_tty): Use terminal->name as liveness status.
25796
25797 * termhooks.h (struct terminal): Make it into a pseudovector.
25798 Remove `deleted' replaced by checking `name's nullness.
25799
25800 * print.c (print_object): Handle terminals.
25801
25802 * lisp.h (enum pvec_type): New `terminal' pseudovector.
25803 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
25804
25805 * frame.c (make_terminal_frame):
25806 * keyboard.c (tty_read_avail_input):
25807 * w32term.c (x_delete_terminal):
25808 * xfns.c (Fx_create_frame, x_create_tip_frame):
25809 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
25810
258112007-09-20 Glenn Morris <rgm@gnu.org>
25812
25813 * process.c (Fmake_network_process): Doc fix.
25814
258152007-09-19 Jason Rumney <jasonr@gnu.org>
25816
25817 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
25818
258192007-09-19 Michaël Cadilhac <michael@cadilhac.name>
25820
25821 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
25822 Fix a C warning regarding variable constness.
25823
25824 * xterm.c (handle_one_xevent): Fix a C warning.
25825
258262007-09-18 Jason Rumney <jasonr@gnu.org>
25827
25828 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
25829
258302007-09-17 Jan Djärv <jan.h.d@swipnet.se>
25831
25832 * gtkutil.c (gdpy_def): New variable.
25833 (xg_initialize): Initialize gdpy_def.
25834 (xg_display_close): If no other display exists, set gdpy_def to a
25835 new connection.
25836
258372007-09-16 Jan Djärv <jan.h.d@swipnet.se>
25838
25839 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
25840 when we have no file name for the icon.
25841 (xg_tool_bar_expose_callback): Remove.
25842 (xg_create_tool_bar): Don't connect expose signal to
25843 xg_tool_bar_expose_callback.
25844 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
25845
258462007-09-16 Andreas Schwab <schwab@suse.de>
25847
25848 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
25849 values instead of zapping them.
25850
258512007-09-14 Glenn Morris <rgm@gnu.org>
25852
25853 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
25854 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
25855 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
25856 scope and rename to omfib_buffer for clarity.
25857 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
25858
258592007-09-14 Kenichi Handa <handa@m17n.org>
25860
25861 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
25862
258632007-09-13 Jason Rumney <jasonr@gnu.org>
25864
25865 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
25866
25867 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
25868
25869 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
25870 (mac_term_init): Call here instead, passing rif.
25871
258722007-09-13 Glenn Morris <rgm@gnu.org>
25873
25874 * s/hpux.h: No longer define `static' as nothing.
25875
258762007-09-13 Johan Bockgård <bojohan@gnu.org>
25877
25878 * callint.c (Fcall_interactively): Remove unused var `fun'.
25879
258802007-09-12 Romain Francoise <romain@orebokech.com>
25881
25882 * window.c (prefer_window_split_horizontally, display_buffer):
25883 Revert 2007-09-08 change.
25884
258852007-09-12 Glenn Morris <rgm@gnu.org>
25886
25887 * alloca.c: Remove file.
25888 * Makefile.in (alloca): Do not undef.
25889 (allocaobj, alloca.o): Remove.
25890 (otherobj): Remove allocaobj.
25891 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
25892 * regex.c (C_ALLOCA): Remove all references and code that was only
25893 used when this was defined.
25894 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
25895 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
25896 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
25897
25898 * Makefile.in (SOURCES, unlock, relock): Delete.
25899
25900 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
25901 (menu_grab_callback): All uses changed.
25902
25903 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
25904 (x_reply_selection_request): All uses changed.
25905
259062007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
25907
25908 * lread.c (load_warn_old_style_backquotes): Change message to look
25909 better when it appears in the middle of byte-compiler messages.
25910
259112007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
25912
25913 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
25914
25915 * xterm.c (x_create_terminal): Add comment.
25916
25917 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
25918
259192007-09-10 Richard Stallman <rms@gnu.org>
25920
25921 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
25922
259232007-09-10 Michaël Cadilhac <michael@cadilhac.name>
25924
25925 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
25926 (DEFUN): Document `intspec', use it instead of `prompt'.
25927
25928 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
25929
25930 * data.c (Finteractive_form): If the interactive specification starts
25931 with a `(', use it as a Lisp form.
25932
25933 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
25934 name and file modes.
25935
25936 * callint.c (Fcall_interactively): Comment fixes.
25937
259382007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
25939
25940 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
25941 and compiled functions.
25942
259432007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
25944
25945 * window.c (prefer_window_split_horizontally): New variable.
25946 (display_buffer): Consider splitting window horizontally depending
25947 on prefer_window_split_horizontally.
25948
259492007-09-08 Eli Zaretskii <eliz@gnu.org>
25950
25951 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
25952
259532007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25954
25955 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
25956
25957 * frame.c (x_set_frame_parameters): Check number is positive before
25958 using XFASTINT.
25959
25960 * window.c (freeze_window_start): Don't presume selected_window holds
25961 a window object.
25962 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
25963
259642007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
25965
25966 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
25967
259682007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25969
25970 * window.c (Vsplit_window_preferred_function): New var.
25971 (Fdisplay_buffer): Use it.
25972 (syms_of_window): Export, and initialize it.
25973
259742007-09-06 Pixel <pixel@mandriva.com> (tiny change)
25975
25976 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
25977
259782007-09-06 Glenn Morris <rgm@gnu.org>
25979
25980 * gtkutil.c (menu_grab_callback) <cnt>:
25981 * xselect.c (x_reply_selection_request) <cnt>: Move static
25982 variable to file scope.
25983
259842007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
25985
25986 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
25987 consistent values of selected_frame and selected_window.
25988
259892007-09-04 Jason Rumney <jasonr@gnu.org>
25990
25991 * w32console.c (initialize_w32_display): Zero unused hooks.
25992
259932007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25994
25995 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
25996 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
25997
259982007-09-04 Jason Rumney <jasonr@gnu.org>
25999
26000 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
26001 in w32console.c. Set up input. Remove XXX comments that have been
26002 confirmed as correct.
26003
26004 * s/ms-w32.h (MULTI_KBOARD): Define.
26005
26006 * w32console.c (one_and_only_w32cons): Remove.
26007 (initialize_w32_display): Take terminal argument.
26008
26009 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
26010 initialize_w32_display.
26011 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
26012
26013 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
26014
26015 * keyboard.c (discard_mouse_events): Discard it.
26016 (make_lispy_event): Translate it to a lisp event.
26017 (lispy_wheel_names): Add wheel-left and right events.
26018 (syms_of_keyboard): Enlarge wheel_syms.
26019
26020 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
26021 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
26022
26023 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
26024
26025 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
26026 from WM_MOUSEHWHEEL.
26027 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
26028
26029 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
26030 terminal.
26031
26032 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
26033 keyboard for the terminal.
26034
260352007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
26036
26037 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
26038 (Vresume_tty_hook): Rename from Vresume_tty_functions.
26039 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
26040 and resume-tty-function to resume-tty-hook.
26041 (Fsuspend_tty, Fresume_tty): Use new names.
26042
260432007-09-02 Jan Djärv <jan.h.d@swipnet.se>
26044
26045 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
26046 if it starts with "n:".
26047
260482007-08-31 Jan Djärv <jan.h.d@swipnet.se>
26049
26050 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
26051
260522007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
26053
26054 * frame.h:
26055 * frame.c (Qterm_environment_variable): Remove.
26056 (syms_of_frame): Don't init and staticpro it.
26057
26058 * callproc.c (getenv_internal): Remove special case for $TERM.
26059
26060 * callproc.c (Vinitial_environment): New variable.
26061 (set_initial_environment): Initialize it.
26062 (syms_of_callproc): Declare it.
26063 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
26064 TERM under which a process runs is never related to the TERM in which
26065 Emacs is running.
26066
260672007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
26068
26069 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
26070 * s/darwin.h: ... do it here.
26071
260722007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
26073
26074 * lisp.h (set_initial_environment): Rename from set_global_environment.
26075
26076 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
26077 removed by mistake on the multi-tty branch.
26078
26079 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
26080 (Fmodify_frame_parameters): Return a value.
26081
26082 * image.c (png_load): Comment-out var only used in commented-out code.
26083
26084 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
26085 before passing it to mark_object.
26086
26087 * xfaces.c (internal_resolve_face_name): Return a value.
26088 (internal_resolve_face_name, resolve_face_name_error): Comment out.
26089
26090 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
26091 (x_icon): Comment-out var only used in commented-out code.
26092
260932007-08-29 Romain Francoise <romain@orebokech.com>
26094
26095 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
26096 QUIT hasn't been provided.
26097
260982007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
26099
26100 * callproc.c (child_setup, getenv_internal): Use the
26101 display-environment-variable and term-environment-variable frame params.
26102 (set_initial_environment): Initialise Vprocess_environment.
26103
26104 * config.in: Disable multi-keyboard support on a mac.
26105
26106 * frame.c (Qterm_environment_variable)
26107 (Qdisplay_environment_variable): New variables.
26108 (syms_of_frame): Intern and staticpro them.
26109 (Fmake_terminal_frame): Disable output method test.
26110
26111 * frame.h: Declare them here.
26112
26113 * macfns.c (x_set_mouse_color): Get rif from the frame.
26114 (x_set_tool_bar_lines): Don't use updating_frame.
26115 (mac_window): Add 2 new parameters for consistency with other systems.
26116 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
26117 frame parameters following what is done in X11 and w32. Don't use
26118 FRAME_MAC_DISPLAY_INFO.
26119 (Fx_open_connection, start_hourglass): Remove window-system check.
26120 (x_create_tip_frame): Get the keyboard from the terminal.
26121
26122 * macmenu.c: Reorder includes.
26123 (Fx_popup_menu): Use terminal specific mouse_position_hook.
26124
26125 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
26126 terminal parameter.
26127 (x_clear_frame): Add a frame parameter.
26128 (note_mouse_movement): Get rif from the frame.
26129 (mac_term_init): Initialize the terminal.
26130 (mac_initialize): Make static and move terminal initialization ...
26131 (mac_create_terminal): ... to this new function.
26132
26133 * macterm.h (struct mac_display_info): Add terminal.
26134 (mac_initialize): Delete declaration.
26135
26136 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
26137
26138 * sysdep.c: Comment out text after #endif.
26139
26140 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
26141 is defined. Better initialize ttys in windows. Use terminal
26142 specific mouse_position_hook.
26143
26144 * termhooks.h (union display_info): Add mac_display_info.
26145
26146 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
26147 Set the default minibuffer frame, window_system and the rest of the
26148 frame parameters following what is done in X11.
26149
26150 * w32term.c (w32_initialize): Make static.
26151
26152 * xselect.c (x_handle_selection_clear): Only access
26153 terminal->kboard when MULTI_KBOARD is defined.
26154
26155 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
26156 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
26157
261582007-08-29 Jason Rumney <jasonr@gnu.org>
26159
26160 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
26161 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
26162
26163 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
26164 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
26165
26166 * keyboard.c (restore_kboard_configuration): Only define when
26167 MULTI_KBOARD defined.
26168
26169 * makefile.w32-in: Update dependancies from Makefile.in.
26170 (OBJ1): Add terminal.$(O)
26171
26172 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
26173 Don't define function body.
26174 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
26175
26176 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
26177
26178 * w32.c (request_sigio, unrequest_sigio): Remove.
26179
26180 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
26181 (w32con_clear_frame, w32con_clear_end_of_line)
26182 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
26183 (w32con_delete_glyphs, w32con_set_terminal_window)
26184 (scroll_line, w32_sys_ring_bell): Add frame arg.
26185 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
26186 Add terminal arg.
26187 (PICK_FRAME): Remove.
26188 (w32con_write_glyphs): Use frame specific terminal coding.
26189 (one_and_only_w32cons): New global variable.
26190 (initialize_w32_display): Use it for storing hooks.
26191 (create_w32cons_output): New function.
26192
26193 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
26194 arg a frame.
26195
26196 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
26197 Set window_system.
26198 (x_set_tool_bar_lines): Don't use updating_frame.
26199 (Fx_create_frame): Set terminal and ref count.
26200 (Fx_open_connection): Remove window-system check.
26201
26202 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
26203
26204 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
26205 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
26206 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
26207 Add frame arg.
26208 (x_delete_terminal, w32_create_terminal): New functions.
26209 (w32_term_init): Create a terminal.
26210 (w32_initialize): Move terminal specific initialization to
26211 w32_create_terminal.
26212
26213 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
26214 (w32_clear_rect, w32_clear_area): Use background from frame.
26215 (w32_display_info): Add terminal.
26216 (w32_sys_ring_bell, x_delete_display): Declare here.
26217
26218 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
26219
26220 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
26221
262222007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
26223
26224 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
26225 Fix get_named_tty calls for the controlling tty.
26226
262272007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
26228
194d44e7 26229 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
26230
262312007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
26232
26233 * term.c (tty_insert_glyphs): Add missing first parameter.
26234
262352007-08-29 Károly Lőrentey <karoly@lorentey.hu>
26236
26237 * buffer.c (Fbuffer_list, Fbury_buffer):
26238 Take frame->buried_buffer_list into account.
26239
26240 * cm.c (current_tty): New variable, for cmputc().
26241 (cmputc): Use it.
26242 (cmcheckmagic): Add tty parameter, look up terminal streams there.
26243 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
26244 (cmgoto): Add tty parameter. Pass it on to calccost().
26245 Use emacs_tputs() instead of tputs().
26246
26247 * cm.h (emacs_tputs): New macro to set current_tty, and then call
26248 tputs().
26249 (current_tty): New variable, for cmputc().
26250 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
26251
26252 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
26253 (internal_condition_case, internal_condition_case_1)
26254 (internal_condition_case_2): Don't abort when x_catching_errors.
26255
26256 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
26257 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
26258 prevent crashes caused by bogus longjmps in read_char.
26259
26260 * keymap.h (Fset_keymap_parent): Add EXFUN.
26261
26262 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
26263 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
26264 Remove redundant definition.
26265
26266 * macfns.c (x_set_mouse_color, x_make_gc):
26267 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26268
26269 * w32term.c (x_free_frame_resources):
26270 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26271 (w32_initialize): Use the accessor macros for terminal characteristics.
26272
26273 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
26274 Use the accessor macros for terminal characteristics.
26275 * msdos.c (internal_terminal_init): Use the accessor macros for
26276 terminal characteristics.
26277 (ScreenVisualBell, internal_terminal_init):
26278 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26279
26280 * termopts.h (no_redraw_on_reenter): Declare.
26281
26282 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
26283 (mark_terminals, mark_ttys): Declare.
26284 (Fgarbage_collect): Call them.
26285 (mark_object): Mark buried_buffer_list.
26286
26287 * prefix-args.c: Include stdlib.h for exit.
26288
26289 * syssignal.h: Add comment.
26290
26291 * indent.c: Include stdio.h.
26292
26293 * window.h (Vinitial_window_system): Declare.
26294 (Vwindow_system): Delete declaration.
26295
26296 * fontset.c (Finternal_char_font): Use FRAME_RIF.
26297
26298 * image.c (lookup_image): Don't initialize `c' until the xasserts
26299 have been run.
26300
26301 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
26302 FRAME_FOREGROUND_PIXEL.
26303
26304 * print.c (print_preprocess): Don't lose print_depth levels while
26305 iterating.
26306
26307 * widget.c (update_from_various_frame_slots):
26308 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26309
26310 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
26311 frames.
26312 (window_internal_height): Remove bogus make_number call.
26313 (init_window_once): Call make_terminal_frame with two zero parameters.
26314
26315 * fileio.c (Fread_file_name): Update comment.
26316
26317 * callint.c (Fcall_interactively):
26318 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
26319 Make sure it is correctly unwound.
26320
26321 * xsmfns.c (x_session_close): New function.
26322
26323 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
26324 Delete declarations.
26325
26326 * xterm.h: Remove declaration for x_fully_uncatch_errors.
26327 (x_output): Remove background_pixel and foreground_pixel fields.
26328 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
26329 (x_delete_device, x_session_close): Declare.
26330
26331 * lread.c: Include setjmp.h. Update declaration of `read_char'.
26332 (read_filtered_event): Call `read_char' with a local
26333 `wrong_kboard_jmpbuf'.
26334
26335 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
26336 Don't call single_kboard_state. Use FRAME_RIF.
26337
26338 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
26339 systems.
26340
26341 * lisp.h (set_process_environment): Rename to `set_global_environment'.
26342 (Fframe_with_environment, Fset_input_meta_mode)
26343 (Fset_quit_char): EXFUN.
26344 (x_create_device, tty_output, terminal, tty_display_info): Declare.
26345 (init_sys_modes, reset_sys_modes): Update prototypes.
26346 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
26347
26348 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
26349 Vlocal_key_translation_map, and Vkeyboard_translate_table.
26350 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
26351 Delete declarations.
26352 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
26353 (temporarily_switch_to_single_kboard, tty_read_avail_input):
26354 New declarations.
26355
26356 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
26357 already does that during init_display(). Call syms_of_keymap
26358 before syms_of_keyboard. Call `syms_of_terminal'.
26359 Call set_initial_environment, not set_process_environment.
26360 (shut_down_emacs): Call reset_all_sys_modes() instead of
26361 reset_sys_modes().
26362
26363 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
26364 (internal_resolve_face_name, resolve_face_name_error): New functions.
26365 (resolve_face_name): Protect against loops and errors thrown by Fget.
26366 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
26367 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
26368
26369 * scroll.c: Replace CURTTY() with local variables throughout the
26370 file (where applicable).
26371 (calculate_scrolling, calculate_direct_scrolling)
26372 (scrolling_1, scroll_cost): Use the accessor macros for terminal
26373 characteristics.
26374
26375 * keymap.c (Vfunction_key_map): Remove.
26376 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
26377 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
26378 (Vkey_translation_map): Remove.
26379 (syms_of_keymap): Remove DEFVAR for key-translation-map.
26380 (Fdescribe_buffer_bindings)
26381 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
26382 Update for terminal-local key-translation-map.
26383
26384 * Makefile.in (callproc.o): Update dependencies.
26385 (lisp, shortlisp): Add termdev.elc.
26386 (obj): Add terminal.o.
26387 (terminal.o): Add dependencies.
26388 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
26389 (data.o, fns.o): Add termhooks.h dependency.
26390 (SOME_MACHINE_LISP): Add dnd.elc.
26391 (minibuf.o): Fix typo.
26392 Update dependencies.
26393
26394 * data.c (do_symval_forwarding, store_symval_forwarding)
26395 (find_symbol_value): Use the selected frame's keyboard, not
26396 current_kboard.
26397
26398 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
26399 Vwindow_system.
26400
26401 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
26402 Fmenu_bar_open.
26403 (syms_of_xmenu): Update defsubr.
26404 (mouse_position_for_popup, Fx_popup_menu)
26405 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
26406 (set_frame_menubar, free_frame_menubar)
b97439ce 26407 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
26408 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
26409 an X frame.
26410
26411 * xselect.c (x_own_selection): Abort if not an X frame.
26412 (some_frame_on_display): Check if it is an X frame.
26413 (x_handle_selection_clear): Deal with MULTI_KBOARD.
26414
26415 * coding.c: Include frame.h and termhooks.h.
26416 (terminal_coding, keyboard_coding): Delete.
26417 (Fset_terminal_coding_system_internal)
26418 (Fset_keyboard_coding_system_internal)
26419 (Fkeyboard_coding_system)
26420 (Fterminal_coding_system): Add a terminal parameter.
26421 Get terminal_coding from the terminal.
26422 (init_coding_once): Don't call setup_coding_system here.
26423
26424 * dispextern.h (set_scroll_region, turn_off_insert)
26425 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
26426 (tty_clear_end_of_line, tty_setup_colors)
26427 (delete_tty, updating_frame)
26428 (produce_special_glyphs, produce_glyphs, write_glyphs)
26429 (insert_glyphs): Remove.
26430 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
26431 (tty_turn_off_highlight, get_tty_size): Add declaration.
26432 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
26433
26434 * frame.h (enum output_method): Add output_initial.
26435 (struct x_output): Delete.
26436 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
26437 Access foreground_pixel and background_pixel directly from the frame.
26438 (tty_display): Delete.
26439 (struct frame): Add buried_buffer_list, foreground_pixel,
26440 background_pixel and terminal. Delete kboard.
26441 (union output_data): Add tty.
26442 (FRAME_KBOARD): Get the kboard from the terminal.
26443 (FRAME_INITIAL_P): New macro.
26444 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
26445 (Qterm_environment_variable, Qdisplay_environment_variable)
26446 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
26447 New declarations.
26448
26449 * termchar.h (tty_output, tty_display_info): New structures.
26450 (tty_list): Declare.
26451 (FRAME_TTY, CURTTY): New macros.
26452 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
26453 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
26454 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
26455 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
26456
26457 * callproc.c: Include frame.h and termhooks.h, for terminal
26458 parameters.
26459 (add_env): New function.
26460 (child_setup): Use it.
26461 (child_setup, getenv_internal): Handle the new Vprocess_environment.
26462 (getenv_internal): Fix get_terminal_param call.
26463 (Fgetenv_internal, egetenv): Update doc.
26464 (syms_of_callproc): Initialize Vprocess_environment to nil.
26465 Register and initialize them. Remove obsolete defvars. Update doc
26466 strings.
26467 (child_setup): Handle Vlocal_environment_variables.
26468 (getenv_internal): Add terminal parameter.
26469 Handle Vlocal_environment_variables.
26470 (Fgetenv_internal): Add terminal parameter.
26471 (child_setup, getenv_internal, Fgetenv_internal): Store the local
26472 environment in a frame (not terminal) parameter. Update doc strings.
26473 (set_initial_environment): Rename from set_global_environment.
26474 Store Emacs environment in initial frame parameter.
26475
26476 * xdisp.c (redisplay_internal): Update references to
26477 `previous_terminal_frame'.
26478 (display_mode_line, Fformat_mode_line): Replace calls to
26479 `push_frame_kboard' with `push_kboard'.
26480 (get_glyph_string_clip_rects): Add extra parentheses and
26481 braces to prevent compiler warnings.
26482 (calc_pixel_width_or_height): Add xassert to check that the
26483 frame is alive. Don't call `lookup_image' on a termcap frame.
26484 (message2_nolog, message3_nolog, redisplay_internal)
26485 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
26486 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
26487 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
26488 (Fx_display_pixel_width, Fx_display_pixel_height)
26489 (Fx_display_planes, Fx_display_color_cells)
26490 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
26491 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
26492 (Fx_display_backing_store, Fx_display_visual_class)
26493 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
26494 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
26495
26496 * xfns.c (x_set_foreground_color x_set_background_color)
26497 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
26498 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26499 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
26500 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
26501 terminal that is being deleted.
26502 (Fx_create_frame): Use `store_frame_param' to set `window-system'
26503 frame parameter, and make sure it overrides any user-supplied setting.
26504 (Fx_close_connection, Fx_synchronize): Unify argument names with
26505 the rest of the DEFUNs.
26506
26507 * dispnew.c (Fsend_string_to_terminal): Update call to
26508 `get_tty_terminal'.
26509 (Fredraw_frame, Fsend_string_to_terminal)
26510 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
26511 FRAME_TERMCAP_P and FRAME_TTY.
26512 (window_change_signal): Don't believe width/height values that are
26513 impossibly small.
26514 (Vinitial_window_system): Rename from Vwindow_system.
26515 (termscript, Wcm, rif): Delete.
26516
26517 * termhooks.h (struct terminal): New struct containing the
26518 previously global text display hooks and new members NAME,
26519 DELETED and PARAM_ALIST.
26520 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
26521 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
26522 (FRAME_RIF): New macros.
26523 (get_terminal_param, get_device): New declarations.
26524 (termscript): Delete declaration.
26525
26526 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
26527 (XTflash, x_free_frame_resources, x_scroll_bar_create)
26528 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
26529 FRAME_FOREGROUND_PIXEL.
26530 (x_fully_uncatch_errors): Disable definition.
26531 (x_scroll_bar_expose): Fix reference to foreground pixel.
26532 (XTread_socket): Disable loop on all X displays.
26533 (x_delete_terminal): Don't set terminal->deleted and let
26534 delete_terminal delete the frames on the terminal.
26535 (x_delete_display): Doc update to reflect changes in
26536 delete_terminal.
26537 (x_display_info) <terminal>: Move member earlier in the struct.
26538 (deleting_tty): Remove old variable.
26539 (Fsuspend_tty): Call clear_tty_hooks.
26540 (Fresume_tty, init_tty): Call set_tty_hooks.
26541 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
26542 errors on X frames.
26543 (x_catch_errors_unwind): Abort if x_error_message is NULL.
26544 (handle_one_xevent): Initialize `f' to NULL.
26545 (x_delete_terminal, x_create_terminal): New functions.
26546 (XTset_terminal_modes, XTreset_terminal_modes)
26547 (XTread_socket, x_connection_closed, x_term_init)
26548 (x_term_init, x_delete_display): Add terminal parameter.
26549 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
26550 X connections.
26551
26552 * frame.c: Include termchar.h.
26553 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
26554 (Qwindow_system, Qenvironment, Qterm_environment_variable)
26555 (Qdisplay_environment_variable): New vars.
26556 (Fframep): Deal with output_initial.
26557 (Fframe-live-p): Doc fix.
26558 (Fwindow-system): New function.
26559 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
26560 (make_terminal_frame): Don't create frames on a terminal that is
26561 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26562 (store_frame_param): Check for found_for_frame before calling XFRAME.
26563 (Fmake_terminal_frame): Handle NULL tty names correctly.
26564 (syms_of_frame): Enhance doc string of `default-frame-alist'.
26565 (Fdelete_frame): Remove unused variable `count'. Don't allow other
26566 frames to refer to a deleted frame in their 'environment parameter.
26567 (Fframe_with_environment): New function.
26568 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
26569 (get_future_frame_param): New function.
26570 (Fmake_terminal_frame): Use it.
26571 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
26572
26573 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
26574 * sysdep.c (reset_sys_modes): Update for renames.
26575
26576 * keyboard.c (tty_read_avail_input): New function.
26577 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
26578 (syms_of_keyboard): Defsubr them.
26579 (Fset_input_meta_mode, Fset_quit_char): New functions.
26580 (Fset_input_mode): Split to above functions.
26581 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
26582 parameter. Use it in call to `read_char'.
26583 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
26584 Set wrong_kboard_jmpbuf correctly in recursive calls.
26585 Use current_kboard to access Vkeyboard_translate_table.
26586 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
26587 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
26588 Update longjmp invocations. Remember the original current_kboard,
26589 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
26590 changes it. Comment out unnecessary calls to
26591 `record_single_kboard_state' and `any_kboard_state'.
26592 Update recursive calls.
26593 (wrong_kboard_jmpbuf): Remove global variable.
26594 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
26595 Handle deleted interrupted_kboards correctly; that is a legal
26596 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
26597 and read_char calls. Abort if interrupted_kboard died in read_char.
26598 (any_kboard_state, single_kboard_state)
26599 (push_frame_kboard): Remove function.
26600 (pop_kboard): Switch out of single_kboard mode if the kboard has
26601 been deleted. Remove unused variable. Help debugging by not
26602 changing current_kboard unnecessarily. Set current_kboard to the
26603 kboard of the selected frame when the stored kboard object has
26604 been deleted before pop_kboard.
26605 (temporarily_switch_to_single_kboard): Change first parameter to a
26606 frame pointer. Throw an error when caller wants to change kboards
26607 while in single_kboard mode. Don't push_kboard if we weren't in
26608 single kboard state. Don't pop_kboard if we popped into any
26609 kboard state.
26610 (restore_kboard_configuration): Abort if pop_kboard changed the
26611 kboard in single_kboard mode. Call pop_kboard only after setting
26612 up single_kboard mode.
26613 (Frecursive_edit): Switch to single_kboard mode only in nested
26614 command loops.
26615 (cmd_error, command_loop, command_loop_1, timer_check):
26616 Comment out unnecessary call to `any_kboard_state' and
26617 `record_single_kboard_state'.
26618 (delete_kboard): Exit single_kboard mode if we have just deleted
26619 that kboard. Use FRAME_KBOARD.
26620 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
26621 `fatal_error_signal'.
26622 (record_single_kboard_state): Don't push_kboard if we weren't in
26623 single kboard state. Don't pop_kboard if we popped into any
26624 kboard state.
26625 (push_frame_kboard): Rename to push_kboard.
26626 (kbd_buffer_get_event): Use FRAME_TERMINAL.
26627 (read_avail_input): Read input from all terminals.
26628 (mark_kboards): Also mark Vkeyboard_translate_table.
26629 (kbd_buffer_store_event_hold): Simplify condition.
26630 (read_key_sequence): Reinitialize fkey and keytran at each replay.
26631 (Vkeyboard_translate_table): Move to struct kboard.
26632 (init_kboard): Initialize Vkeyboard_translate_table.
26633 (syms_of_keyboard): Use DEFVAR_KBOARD to define
26634 Vkeyboard_translate_table. Update doc strings. Update docs of
26635 local-function-key-map and function-key-map.
26636
26637 * terminal.c: New file.
26638
26639 * term.c: Include errno.h.
26640 (Vring_bell_function, device_list, initial_device)
26641 (next_device_id, ring_bell, update_begin, update_end)
26642 (set_terminal_window, cursor_to, raw_cursor_to)
26643 (clear_to_end, clear_frame, clear_end_of_line)
26644 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
26645 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
26646 (syms_of_term): Move their initialization to terminal.c.
26647 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
26648 (Ftty_display_color_cells)
26649 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
26650 (clear_tty_hooks, set_tty_hooks)
26651 (init_tty, maybe_fatal): New functions.
26652 (Ftty_type): Return nil if terminal is not on a tty instead of
26653 throwing an error. Doc update.
26654 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
26655 Doc update. Initialize new subrs and variables.
26656 (delete_tty): Use terminal->deleted.
26657 (tty_set_terminal_modes): Rename from set_terminal_modes.
26658 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
26659 (set_scroll_region): Rename to `tty_set_scroll_region'.
26660 (turn_on_insert): Rename to `tty_turn_on_insert'.
26661 (turn_off_insert): Rename to `tty_turn_off_insert'.
26662 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
26663 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
26664 (toggle_highligh): Rename to `tty_toggle_highlight'.
26665 (background_highlight): Rename to `tty_background_highlight'.
26666 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
26667 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
26668 (tty_set_scroll_region, tty_background_highlight)
26669 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
26670 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
26671 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
26672 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
26673 Add static modifier.
26674 (tty_reset_terminal_modes, tty_set_terminal_window)
26675 (tty_set_scroll_region, tty_background_highlight)
26676 (tty_highlight_if_desired, tty_cursor_to)
26677 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
26678 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
26679 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
26680 renames.
26681
266822007-08-28 Jan Djärv <jan.h.d@swipnet.se>
26683
26684 * keyboard.c: Qrtl is new.
26685 (parse_tool_bar_item): Handle :rtl keyword.
26686 (syms_of_keyboard): Intern :rtl keyword.
26687
26688 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
26689
26690 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
26691 so no Lisp code is executed.
26692 (file_for_image, find_rtl_image): New functions.
26693 (xg_get_image_for_pixmap): Use file_for_image.
26694 (update_frame_tool_bar): If direction is RTL, use RTL image if
26695 defined. Use Gtk stock images if defined.
26696
266972007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26698
26699 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
26700 for nonexistent or zero-width glyph in composition glyph.
26701
267022007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
26703
26704 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
26705
26706 * xdisp.c (Finvisible_p): New function.
26707 (syms_of_xdisp): defsubr it.
26708
267092007-08-24 Juanma Barranquero <lekktu@gmail.com>
26710
26711 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
26712 Doc fixes.
26713
267142007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26715
26716 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
26717
267182007-08-24 Martin Rudalics <rudalics@gmx.at>
26719
26720 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
26721 whether decoding has modified buffer contents.
26722
267232007-08-24 Jason Rumney <jasonr@gnu.org>
26724
26725 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
26726 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
26727 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
26728 (init_svg_functions) [HAVE_NTGUI]: New function.
26729 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
26730 (svg_load_image): Use them.
26731 (svg_load_image) [HAVE_NTGUI]: Implement background.
26732
267332007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26734
26735 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
26736 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
26737 (LIBX): Remove @RSVG_LIBS@.
26738 (LIBES): Add $(RSVG_LIBS).
26739
26740 * image.c (svg_load_image): Blend with specified background if exists.
26741 Use IMAGE_BACKGROUND. Add Mac OS Support.
26742
26743 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
26744 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
26745 Remove macros.
26746 [MAC_OSX] (socket_callback): Do nothing.
26747 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
26748 ReceiveNextEvent.
26749 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
26750 socket_callback.
26751 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
26752
267532007-08-22 Glenn Morris <rgm@gnu.org>
26754
26755 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
26756
267572007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
26758
26759 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
26760
26761 * image.c: Add support for SVG images. Some additional comments
26762 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
26763 (svg_image_p): New function to test for SVG image.
26764 (svg_load): New function to load SVG image.
26765 (svg_load_image): New function, helper for svg_load.
26766 (Qsvg): New Lisp_object.
26767 (svg_keyword_index): New enum.
26768 (svg_format): New static `image_keyword' struct.
26769 (svg_type): New static `image_type' struct.
26770 (librsvg/rsvg.h): Include it.
26771
267722007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
26773
26774 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
26775
267762007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
26777
26778 * lread.c (Qold_style_backquotes): New var.
26779 (syms_of_lread): Init and staticpro it.
26780 (load_warn_old_style_backquotes): New fun.
26781 (Fload): Use them to warn about old style backquotes.
26782 (end_of_file_error, Fload): Remove unused vars.
26783
26784 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
26785
26786 * lread.c (Vold_style_backquotes): New var.
26787 (syms_of_lread): Init and export it to Elisp.
26788 (read1): Set it when we find an old-style (back)quote.
26789
267902007-08-22 Jason Rumney <jasonr@gnu.org>
26791
26792 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
26793
267942007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
26795
26796 * puresize.h (BASE_PURESIZE): Increase to 1140000.
26797
267982007-08-19 Richard Stallman <rms@gnu.org>
26799
26800 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
26801
268022007-08-19 Andreas Schwab <schwab@suse.de>
26803
26804 * alloc.c (pure): Round PURESIZE up.
26805
268062007-08-17 Jan Djärv <jan.h.d@swipnet.se>
26807
26808 * xterm.c (handle_one_xevent): Remove check that mouse click is in
26809 active frame.
26810
268112007-08-16 Richard Stallman <rms@gnu.org>
26812
26813 * eval.c (Fcommandp): Add parens to clarify.
26814
26815 * minibuf.c (Fall_completions): Use enum for type of table.
26816
26817 * emacs.c (USAGE2): Improve text.
26818
268192007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
26820
26821 * term.c (tty_default_color_capabilities): Declare static
26822 variables in file scope, to avoid HPUX compiler problem.
26823
268242007-08-13 Jan Djärv <jan.h.d@swipnet.se>
26825
26826 * gtkutil.c (update_frame_tool_bar): Use -1 as index
26827 to gtk_toolbar_insert.
26828
268292007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
26830
26831 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
26832
26833 * insdel.c (reset_var_on_error): New fun.
26834 (signal_before_change, signal_after_change):
26835 Use it to reset (after|before)-change-functions to nil in case of error.
26836 Bind inhibit-modification-hooks to t.
26837 Don't bind (after|before)-change-functions to nil while they run.
26838
268392007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26840
26841 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
26842 filling pixmap with stippled background.
26843
268442007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26845
26846 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
26847 Don't use invisible frame as parent window for repositioning.
26848
268492007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
26850
26851 * print.c (new_backquote_output): Rename from old_backquote_output.
26852 (print): Inverse its logic (according to its name) so as to match the
26853 behavior of new_backquote_flag in lread.c.
26854
268552007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26856
26857 * gmalloc.c (posix_memalign): New function.
26858
26859 * macterm.c (frame_highlight, frame_unhighlight): Don't call
26860 ActivateControl/DeactivateControl here.
26861 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
26862 frame-notice-user-settings is non-nil.
26863 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
26864 for kEventParamFMFontStyle.
26865 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
26866 mac_pass_command_to_system and mac_pass_control_to_system here.
26867 (XTread_socket): Call ActivateControl/DeactivateControl here.
26868 (XTread_socket) [TARGET_API_MAC_CARBON]:
26869 Check mac_pass_command_to_system and mac_pass_control_to_system here.
26870 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
26871 for window repositioning.
26872
268732007-08-08 Glenn Morris <rgm@gnu.org>
26874
26875 * Replace `iff' in doc-strings and comments.
26876
268772007-08-07 Chong Yidong <cyd@stupidchicken.com>
26878
26879 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
26880
268812007-08-07 Martin Rudalics <rudalics@gmx.at>
26882
26883 * fileio.c (Finsert_file_contents): Run format-decode and
26884 after_insert_file_functions on entire buffer when REPLACE is
26885 non-nil and inhibit modification_hooks and point_motion_hooks.
26886 For consistency, run after_insert_file_functions iff something
26887 got inserted. Move signal_after_change and update_compositions
26888 after code running after_insert_file_functions. Make sure that
26889 undo_list doesn't record intermediate steps of the decoding process.
26890
268912007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26892
26893 * emacs.c (main)
26894 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
26895 Call malloc_enable_thread on interactive startup.
26896
26897 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
26898 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
26899 [USE_PTHREAD]: Conditionalize with it.
26900 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
26901 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
26902 New functions.
26903
269042007-08-06 Chong Yidong <cyd@stupidchicken.com>
26905
26906 * xdisp.c (redisplay_window): When restoring original buffer
26907 position, make sure it is still valid.
26908
26909 * image.c (png_load): Ignore png-supplied background color.
26910
269112007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26912
26913 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
26914 Use kCFAbsoluteTimeIntervalSince1970.
26915
26916 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
26917 New variable.
26918 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
26919 event loop should be quit.
26920 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
26921 Quit dialog event loop if quit_dialog_event_loop is set.
26922
26923 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
26924 (Selection): New typedef. Use instead of ScrapRef.
26925 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
26926 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
26927 (mac_clear_selection): Rename from clear_scrap.
26928 (get_flavor_type_from_symbol): New argument SEL and subsume function of
26929 scrap_has_target_type. All uses changed.
26930 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
26931 (mac_selection_has_target_p): New functions.
26932 (mac_put_selection_value): Rename from put_scrap_string.
26933 (mac_get_selection_value): Rename from get_scrap_string.
26934 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
26935 (put_scrap_private_timestamp, scrap_has_target_type)
26936 (get_scrap_private_timestamp): Remove functions.
26937 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
26938 (x_own_selection, x_get_local_selection):
26939 Use mac_valid_selection_value_p.
26940 (x_own_selection): Don't use put_scrap_private_timestamp.
26941 Record OWNERSHIP-INFO into Vselection_alist instead.
26942 (x_get_local_selection): Don't check type if request is local.
26943 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
26944 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
26945
269462007-08-04 Jan Djärv <jan.h.d@swipnet.se>
26947
26948 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
26949 add comment explaining why.
26950
269512007-08-03 Richard Stallman <rms@gnu.org>
26952
26953 * fileio.c (Fvisited_file_modtime): Use make_time.
26954
269552007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
26956
26957 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
26958 build.
26959
269602007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
26961
26962 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
26963
269642007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
26965
26966 * puresize.h (BASE_PURESIZE): Increase to 1130000.
26967
269682007-07-30 Richard Stallman <rms@gnu.org>
26969
26970 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
26971
269722007-07-29 Jan Djärv <jan.h.d@swipnet.se>
26973
26974 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
26975
269762007-07-28 Nick Roberts <nickrob@snap.net.nz>
26977
26978 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
26979 remote default-directory.
26980
26981 * buffer.c (mode-line-format): Update doc string.
26982
269832007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26984
26985 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
26986 scroll bar gap.
26987 (x_scroll_bar_create): Set bar->fringe_extended_p.
26988 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
26989 on frame edge. Check fringe background extension. Don't clear
26990 extended fringe background area.
26991
26992 * w32term.h (struct scroll_bar): New member fringe_extended_p.
26993 (w32_fill_area): Enclose multiple statements with do ... while (0).
26994
26995 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
26996 Extend fringe background to scroll bar gap.
26997 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
26998 Set bar->fringe_extended_p.
26999 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
27000 Put leftmost/rightmost scroll bars on frame edge. Check fringe
27001 background extension. Don't clear extended fringe background area.
27002
27003 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
27004 New member fringe_extended_p.
27005
270062007-07-25 Glenn Morris <rgm@gnu.org>
27007
27008 * Relicense all FSF files to GPLv3 or later.
27009
27010 * COPYING: Switch to GPLv3.
27011
270122007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
27013
27014 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
27015
27016 * data.c (Finteractive_form): Check for the presence of an
27017 `interactive-form' symbol property more thoroughly.
27018
27019 * data.c (Finteractive_form): Use an `interactive-form' property if
27020 present, analogous to the function-documentation property.
27021
270222007-07-24 Jason Rumney <jasonr@gnu.org>
27023
27024 * w32fns.c (x_real_positions): Get real position from OS instead of
27025 calculating it.
27026
270272007-07-23 Jason Rumney <jasonr@gnu.org>
27028
27029 * filelock.c (current_lock_owner): Allow for @ sign in username.
27030
270312007-07-22 Nick Roberts <nickrob@snap.net.nz>
27032
27033 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
27034 remote default-directory.
27035
27036 * buffer.c (mode-line-format): Describe above case in doc string.
27037
270382007-07-20 Eli Zaretskii <eliz@gnu.org>
27039
27040 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
27041 Define if not defined.
27042
270432007-07-18 Jason Rumney <jasonr@gnu.org>
27044
27045 * w32proc.c (w32_executable_type): Handle 64 bit executables.
27046
270472007-07-18 Richard Stallman <rms@gnu.org>
27048
27049 * data.c (Fsetq_default): Doc fix.
27050
27051 * eval.c (Fsetq): Doc fix.
27052
270532007-07-18 Juanma Barranquero <lekktu@gmail.com>
27054
27055 * coding.c (Ffind_operation_coding_system):
27056 * eval.c (For, Fand): Doc fixes.
27057 Reported by Johan Bockgård.
27058
270592007-07-18 Jan Djärv <jan.h.d@swipnet.se>
27060
27061 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
27062
27063 * xterm.h: Declare x_ewmh_activate_frame.
27064
27065 * xterm.c (x_ewmh_activate_frame): New function.
27066 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
27067
270682007-07-17 Martin Rudalics <rudalics@gmx.at>
27069
27070 * window.c (Fdisplay_buffer): If largest or LRU window is the
27071 only window, split it even if it is not eligible for splitting.
27072 This restores the original behavior broken by the 2007-07-15
27073 change.
27074
270752007-07-17 Glenn Morris <rgm@gnu.org>
27076
27077 * abbrev.c (abbrev_check_chars): New function.
27078 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
27079 Call abbrev_check_chars to check abbrev characters are word
27080 constituents. Doc fix.
27081
270822007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
27083
27084 * process.c (Fstart_process, Fmake_network_process)
27085 (read_process_output): Fix up last changes.
27086
270872007-07-16 Eli Zaretskii <eliz@gnu.org>
27088
27089 * makefile.w32-in (clean): Don't delete *~.
27090
270912007-07-16 Andreas Schwab <schwab@suse.de>
27092
27093 * window.c (Fdisplay_buffer): Use NILP.
27094 (Fset_window_scroll_bars): Likewise.
27095
270962007-07-15 Martin Rudalics <rudalics@gmx.at>
27097
27098 * window.c (window_min_size_2): New function.
27099 (window_min_size_1, size_window, Fdisplay_buffer)
27100 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
27101 windows without mode- or header-lines when window-min-height is
27102 too small.
27103 (size_window): Reset nodelete_p after testing it, following an
27104 earlier note by Kim F. Storm.
27105 (display_buffer): Do not set split_height_threshold to twice the
27106 value of window_min_height to avoid changing the value of a
27107 customizable variable. Rather explicitly check whether the
27108 height of the window that shall be splitted is at least as large
27109 as split_height_threshold.
27110 (Fwindow_full_width_p): New defun.
27111 (syms_of_window): Defsubr it.
27112
27113 * window.h: Add EXFUN for Fwindow_full_width_p.
27114
271152007-07-14 Jason Rumney <jasonr@gnu.org>
27116
27117 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
27118
271192007-07-14 Richard Stallman <rms@gnu.org>
27120
27121 * eval.c (maybe_call_debugger): New function.
27122 (find_handler_clause): Use maybe_call_debugger.
27123 Call it when the handler says `debug'.
27124 Eliminate DEBUGGER_VALUE_PTR.
27125 (Fsignal): Eliminate debugger_value.
27126 (Qdebug): New variable.
27127 (syms_of_eval): Initialize it.
27128
271292007-07-14 Juanma Barranquero <lekktu@gmail.com>
27130
27131 * eval.c (Fprogn):
27132 * keyboard.c (Ftrack_mouse):
27133 * print.c (Fwith_output_to_temp_buffer):
27134 * window.c (Fsave_window_excursion): Doc fix.
27135
271362007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
27137
27138 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
27139
271402007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
27141
27142 * process.h (struct Lisp_Process): Turn slots infd, outfd,
27143 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
27144 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
27145 read_output_delay, and read_output_skip from Lisp_Objects to ints.
27146 Remove unused encoding_carryover.
27147 * process.c: Adjust all functions accordingly.
27148
271492007-07-12 Richard Stallman <rms@gnu.org>
27150
27151 * term.c: Include unistd.h only if HAVE_UNISTD_H.
27152
271532007-07-11 Jason Rumney <jasonr@gnu.org>
27154
27155 * makefile.w32-in (LIBS): Include OLE32.
27156
27157 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
27158 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
27159
271602007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
27161
27162 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
27163 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
27164 from a Lisp_Object into a bare pointer.
27165 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
27166 Adjust the code correspondingly.
27167
27168 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
27169
27170 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
27171 (term_show_mouse_face): Remove unused var `j'.
27172 (handle_one_term_event): Remove unused vars `i' and `j'.
27173 Don't cast return value of ttyname since it's not necessary.
27174
271752007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
27176
27177 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
27178 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
27179
27180 * fns.c (map_char_table): Use an array of int for `indices' rather than
27181 an array of Lisp_Objects (which are only ever integers anyway).
27182 (Fmap_char_table): Update caller.
27183 * lisp.h: Update prototype.
27184 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
27185 * fontset.c (Ffontset_info):
27186 * casetab.c (set_case_table): Update callers.
27187
27188 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
27189
27190 * keymap.c (struct accessible_keymaps_data)
27191 (struct where_is_internal_data): New structures.
27192 (accessible_keymaps_1, where_is_internal_1): Use them to change
27193 interface to adhere to the one used by map_keymap.
27194 (Faccessible_keymaps, where_is_internal): Use map_keymap.
27195 (accessible_keymaps_char_table, where_is_internal_2): Remove.
27196
27197 * keymap.h (map_keymap_function_t): More informative prototype.
27198
271992007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
27200
27201 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
27202 (looking_at_1): Don't change search_regs and last_thing_searched
27203 if `inhibit-changing-match-data' is non-nil.
27204 (string_match_1, search_buffer, set_search_regs): Likewise.
27205 (syms_of_search): Add Lisp level definition for
27206 `inhibit-changing-match-data' and set it to nil.
27207 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
27208 start and end of the match, instead of using values in search_regs.
27209
272102007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
27211
27212 * minibuf.c (Fcompleting_read): New value `confirm-only'
27213 for `require-match'.
27214
272152007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
27216
27217 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
27218 part of the 2007-06-27 change to syms_of_fileio.
27219
272202007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27221
27222 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
27223 Check WINDOWP before using XWINDOW. Consolidate return statements.
27224
272252007-06-27 Richard Stallman <rms@gnu.org>
27226
27227 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
27228
272292007-06-27 Juanma Barranquero <lekktu@gmail.com>
27230
27231 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
27232
272332007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27234
27235 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
27236 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
27237 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
27238 (_free_internal, memalign): Use them.
27239 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
27240 Initialize to PTHREAD_MUTEX_INITIALIZER.
27241 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
27242 (morecore_nolock): Rename from morecore. All uses changed.
27243 Use only nolock versions of internal allocation functions.
27244 (_malloc_internal_nolock, _realloc_internal_nolock)
27245 (_free_internal_nolock): New functions created from
27246 _malloc_internal, _realloc_internal, and _free_internal.
27247 (_malloc_internal, _realloc_internal, _free_internal): Use them.
27248 Copy hook value to automatic variable before its use.
27249 (memalign): Copy hook value to automatic variable before its use.
27250
272512007-06-26 Kenichi Handa <handa@m17n.org>
27252
27253 * coding.c (Ffind_operation_coding_system): Docstring improved.
27254 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
27255
272562007-06-25 David Kastrup <dak@gnu.org>
27257
27258 * keymap.c (Fcurrent_active_maps): Add `position' argument.
27259 (Fwhere_is_internal): Adjust call to `current-active-maps' to
27260 cater for additional parameter.
27261
27262 * keymap.h: Adjust number of parameters to `current-active-maps'.
27263
27264 * doc.c (Fsubstitute_command_keys): Adjust call of
27265 `current-active-maps'.
27266
272672007-06-25 David Kastrup <dak@gnu.org>
27268
27269 * callint.c (Fcall_interactively): Make the parsing of interactive
27270 specs somewhat more readable.
27271
272722007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27273
27274 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
27275 to scroll bar gap also when bitmap fills fringe. Draw only foreground
27276 if extended background has already been filled.
27277
272782007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27279
27280 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
27281 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
27282
27283 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
27284 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
27285 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
27286 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
27287 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
27288 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
27289 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
27290 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
27291 Run timers during dialog popup.
27292 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
27293
272942007-06-21 Jason Rumney <jasonr@gnu.org>
27295
27296 * image.c (convert_mono_to_color_image): Swap fore and background.
27297
272982007-06-20 Jason Rumney <jasonr@gnu.org>
27299
27300 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
27301 (w32_free_bdf_font): Unmap memory not handle.
27302
273032007-06-20 Sam Steingold <sds@gnu.org>
27304
27305 * gmalloc.c (__morecore): Fix the declaration to comply with the
27306 definition.
27307
273082007-06-20 Juanma Barranquero <lekktu@gmail.com>
27309
27310 * w32term.c (w32_delete_display): Remove leftover declaration.
27311 (w32_define_cursor, w32_initialize): Make static.
27312
27313 * w32.c (_wsa_errlist): Fix typo in error message.
27314 (init_environment): Ignore any environment variable from the
27315 registry having a null value.
27316
273172007-06-20 Glenn Morris <rgm@gnu.org>
27318
27319 * Makefile.in (LIBGIF): Default to -lgif.
27320
273212007-06-17 Jason Rumney <jasonr@gnu.org>
27322
27323 * w32menu.c (add_menu_item): Don't use multibyte string functions on
27324 unicode strings.
27325
273262007-06-16 Juanma Barranquero <lekktu@gmail.com>
27327
27328 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
27329 Fix typo in docstring.
27330
273312007-06-16 Eli Zaretskii <eliz@gnu.org>
27332
27333 * w32menu.c (add_menu_item): Escape `&' characters in menu items
27334 and their keybindings.
27335
273362007-06-15 Chong Yidong <cyd@stupidchicken.com>
27337
27338 * composite.c (update_compositions): Fix last fix.
27339
273402007-06-14 Jason Rumney <jasonr@gnu.org>
27341
27342 * w32.c (get_process_times_fn): New function pointer.
27343 (globals_of_w32): Intialize it if present in kernel32.dll.
27344 (w32_get_internal_run_time): New function.
27345
27346 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
27347
273482007-06-14 Kenichi Handa <handa@etlken.m17n.org>
27349
27350 * composite.c (update_compositions): Check the validness of
27351 compositions.
27352
273532007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27354
27355 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
27356 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
27357
27358 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
27359 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
27360
27361 * macgui.h (USE_MAC_TOOLBAR): New define.
27362
27363 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
27364 Return immediately unless popup is activated.
27365
27366 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
27367 background to scroll bar gap.
27368 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
27369 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
27370 scroll bars on frame edge. Check fringe background extension.
27371 Don't clear extended fringe background area.
27372 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
27373 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
27374 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
27375 [USE_MAC_TOOLBAR]: New macros.
27376 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
27377 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
27378 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
27379 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
27380 [USE_MAC_TOOLBAR]: New functions.
27381 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
27382 manually if previous repositioning has failed.
27383 (mac_handle_keyboard_event): Use precomputed event kind.
27384 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
27385 as tool bar item click. Handle mouse movement over tool bar items.
27386
27387 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
27388 toolbar_win_gravity.
27389 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
27390 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
27391 Add externs.
27392
27393 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
27394 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
27395
273962007-06-14 Chong Yidong <cyd@stupidchicken.com>
27397
27398 * image.c (search_image_cache): Remove unused variable.
27399
274002007-06-13 Chong Yidong <cyd@stupidchicken.com>
27401
27402 * xfns.c, xmenu.c: Link to xaw3d if available.
27403
274042007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27405
27406 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
27407 frame_foreground and frame_background.
27408
27409 * image.c (lookup_image): Save frame foreground and background colors.
27410 (search_image_cache): Check if saved and current frame colors match.
27411
274122007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
27413
27414 * regex.c (regex_compile): Remove the `regnum' counter.
27415 Use bufp->re_nsub instead. Add support for \(?N:RE\).
27416
274172007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
27418
27419 * term.c: Include intervals.h to declare Fget_text_property.
27420
274212007-06-10 Jason Rumney <jasonr@gnu.org>
27422
27423 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
27424
274252007-06-08 Juanma Barranquero <lekktu@gmail.com>
27426
27427 * callint.c (Fcall_interactively):
27428 * editfns.c (Fdelete_and_extract_region):
27429 * fileio.c (Fread_file_name):
27430 * fns.c (Fmapconcat):
27431 * keyboard.c (cmd_error_internal):
27432 * keymap.c (Fkey_description):
27433 * lread.c (openp):
27434 * minibuf.c (read_minibuf):
27435 * search.c (wordify):
27436 * sunfns.c (sel_read):
27437 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
27438 * xfns.c (x_default_scroll_bar_color_parameter):
27439 * xmenu.c (menu_help_callback):
27440 * xselect.c (Fx_get_atom_name):
27441 * xterm.c (x_term_init): Use empty_unibyte_string.
27442
274432007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
27444
27445 * alloc.c (init_strings): Initialize canonical empty strings.
27446 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
27447 canonical empty string when the requested size is 0.
27448
27449 * emacs.c (empty_unibyte_string): Rename from empty_string.
27450 (empty_multibyte_string): New canonical empty string.
27451 (syms_of_emacs): Don't initialize empty_string.
27452
27453 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
27454 string, if appropriate.
27455 (empty_unibyte_string, empty_multibyte_string): New externs.
27456 (empty_string): Remove extern.
27457
27458 * lread.c (syms_of_lread): Use empty_unibyte_string.
27459
274602007-06-07 Jason Rumney <jasonr@gnu.org>
27461
27462 * s/ms-w32.h: Don't define HAVE_TZNAME.
27463
27464 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
27465
274662007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27467
27468 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
27469
27470 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
27471 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
27472
27473 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
27474 Don't call next handler.
27475 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
27476 Remove argument. Install handler to application.
27477 (set_frame_menubar): Don't change deep_p.
27478 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
27479 FRAME_OUTER_TO_INNER_DIFF_Y.
27480 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
27481 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
27482 [HAVE_DIALOGS]: New macros.
27483 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
27484 Use them.
27485 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
27486
27487 * macselect.c [MAC_OSX] (install_service_handler): Rename from
27488 init_service_handler. All callers changed. Return OSStatus value.
27489
27490 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
27491 All callers changed so as not to call SetPortWindowPort.
27492 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
27493 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
27494 mac_draw_string_common.
27495 (mac_draw_image_string_qd): Likewise.
27496 (mac_draw_string_common): Use them. Add INLINE.
27497 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
27498 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
27499 GetGlobalMouse.
27500 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
27501 and FRAME_OUTER_TO_INNER_DIFF_Y.
27502 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
27503 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
27504 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
27505 repositioning window to mac_handle_window_event.
27506 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
27507 saving window location to mac_handle_window_event
27508 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
27509 (install_menu_target_item_handler): Remove argument in extern.
27510 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
27511 Also accept command events.
27512 (do_keystroke): New function created from XTread_socket.
27513 (init_command_handler): Remove functions.
27514 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
27515 and save window location by kEventWindowShowing and kEventWindowHiding
27516 handlers here. Don't call next handler for window state change and
27517 focus events.
27518 (mac_handle_application_event, mac_handle_keyboard_event)
27519 [TARGET_API_MAC_CARBON]: New functions.
27520 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
27521 kEventWindowShowing and kEventWindowHiding events. Move installation
27522 of mouse, font, text input and menu target item handlers to
27523 install_application_handler.
27524 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
27525 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27526 New function.
27527 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27528 Register it.
27529 (XTread_socket) [TARGET_API_MAC_CARBON]:
27530 Consolidate SendEventToEventTarget calls.
27531 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
27532 Move application activation handler to mac_handle_application_event.
27533 Move keyboard handler to mac_handle_keyboard_event.
27534 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
27535 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
27536 init_command_handler. Call install_application_handler.
27537
27538 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
27539 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
27540
275412007-06-07 Glenn Morris <rgm@gnu.org>
27542
27543 * emacs.c (main): Use `emacs-copyright' in --version output.
27544
275452007-06-06 Chong Yidong <cyd@stupidchicken.com>
27546
27547 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
27548
275492007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27550
27551 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
27552
27553 * macgui.h: Replace WindowPtr with WindowRef.
27554
27555 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27556 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27557 Replace ControlHandle with ControlRef.
27558 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
27559
27560 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27561 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27562 Replace ControlHandle with ControlRef.
27563 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
27564 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
27565
27566 * macterm.h (struct scroll_bar): Rename member control_handle_low
27567 and control_handle_high to control_ref_low and control_ref_high.
27568 All uses changed.
27569 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
27570 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
27571 respectively. All uses changed.
27572 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
27573 (install_window_handler, remove_window_handler): Replace WindowPtr
27574 with WindowRef in externs.
27575
275762007-06-05 Juanma Barranquero <lekktu@gmail.com>
27577
27578 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
27579
275802007-06-03 Nick Roberts <nickrob@snap.net.nz>
27581
27582 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
27583
27584 * frame.c (Fmouse_position, Fmouse_pixel_position):
27585 Condition on HAVE_GPM too.
27586
27587 * term.c (term_mouse_highlight): Remove unused variables.
27588 (Fterm_open_connection): Set gpm_zerobased to 1.
27589 (term_mouse_movement, term_mouse_click, handle_one_term_event):
27590 Use zero based co-ordinates.
27591 (handle_one_term_event): Report a drag as mouse movement too.
27592
27593 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
27594
275952007-06-03 Chong Yidong <cyd@stupidchicken.com>
27596
27597 * image.c (search_image_cache): New function. Require background
27598 color match if background color is unspecified in the image spec.
27599 (uncache_image, lookup_image): Use it.
27600
276012007-06-01 Juanma Barranquero <lekktu@gmail.com>
27602
27603 * window.c (Fshrink_window): Reflow docstring.
27604
276052007-06-02 Chong Yidong <cyd@stupidchicken.com>
27606
27607 * Version 22.1 released.
27608
276092007-06-01 Richard Stallman <rms@gnu.org>
27610
27611 * xfns.c (x_encode_text): Add GCPRO.
27612
276132007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27614
27615 * xfns.c (x_set_name_internal): Save encoded name before
27616 x_encode_text in case string data is relocated.
27617
276182007-05-31 Richard Stallman <rms@gnu.org>
27619
27620 * buffer.c (syms_of_buffer): Doc fix.
27621
276222007-05-30 Nick Roberts <nickrob@snap.net.nz>
27623
27624 * sysdep.c (init_sys_modes): Add rather than replace with
27625 O_NONBLOCK.
27626
27627 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
27628 term_mouse_moveto.
27629
27630 * termhooks.h (term_mouse_moveto): New extern.
27631
27632 * term.c (mouse_face_window): Rename...
27633 (Qmouse_face_window): ...to this.
27634 (term_show_mouse_face, term_clear_mouse_face)
27635 (term_mouse_highlight): Use Qmouse_face_window.
27636 (term_mouse_moveto): New function.
27637 (term_mouse_position): Make it work.
27638 (syms_of_term): Uncomment assignment to mouse_position_hook.
27639 Staticpro Qmouse_face_window.
27640
276412007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27642
27643 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
27644 around current_column call.
27645
276462007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
27647
27648 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
27649 * xdisp.c (next_element_from_buffer):
27650 * window.c (delete_window):
27651 * term.c (term_mouse_highlight):
27652 * msdos.c (getdefdir):
27653 * macterm.c (mac_create_bitmap_from_bitmap_data)
27654 (init_font_name_table):
27655 * fns.c (Fsxhash):
27656 * data.c (Fmake_local_variable):
27657 * ccl.c (ccl_driver): Likewise.
27658
276592007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27660
27661 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
27662 Call mac_wakeup_from_rne on window size change.
27663
276642007-05-25 Chong Yidong <cyd@stupidchicken.com>
27665
27666 * image.c (uncache_image): Fix typo.
27667
276682007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
27669
27670 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
27671
276722007-05-22 Richard Stallman <rms@gnu.org>
27673
27674 * xterm.c (x_connection_closed): Remove NO_RETURN.
27675
276762007-05-22 Martin Rudalics <rudalics@gmx.at>
27677
27678 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
27679
276802007-05-21 Chong Yidong <cyd@stupidchicken.com>
27681
27682 * image.c (uncache_image): New function.
27683 (Fimage_refresh): New function.
27684
276852007-05-20 Jan Djärv <jan.h.d@swipnet.se>
27686
27687 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
27688
276892007-05-20 Nick Roberts <nickrob@snap.net.nz>
27690
27691 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
27692 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
27693
276942007-05-20 Nick Roberts <nickrob@snap.net.nz>
27695
27696 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
27697 conditional on [HAVE_GPM_H].
27698
276992007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
27700
27701 * syntax.c (skip_chars): Update syntax-table only after we checked that
27702 the new location is valid.
27703
277042007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27705
27706 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
27707 mac_get_window_bounds.
27708
277092007-05-20 Nick Roberts <nickrob@snap.net.nz>
27710
27711 * Makefile.in (LIBGPM): Allow it to be set from configure.
27712 If set then link Emacs with it.
27713
27714 * config.in: Regenerate.
27715
27716 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
27717 New externs.
27718
27719 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
27720 Include gpm.h.
27721 (handle_one_term_event, term_gpm): New externs.
27722
27723 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
27724 and allow it to be interrupted by SIGIO.
27725
27726 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
27727 (wait_reading_process_output): Wait on gpm_fd too.
27728 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
27729 (add_gpm_wait_descriptor_called_flag): New variable.
27730 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
27731
27732 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
27733 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
27734 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
27735 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
27736 (make_lispy_event): Add case GPM_CLICK_EVENT.
27737 (read_avail_input): Handle mouse input.
27738
27739 * term.c (write_glyphs_with_face): New function.
27740 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
27741 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
27742 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
27743 (mouse_face_face_id, term_gpm, pos_x, pos_y)
27744 (last_mouse_x, last_mouse_y): New variables.
27745 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
27746 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
27747 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
27748 (Fterm_close_connection): New functions.
27749 (term_init): Initialise mouse_face_window.
27750
277512007-05-19 Chong Yidong <cyd@stupidchicken.com>
27752
27753 * xdisp.c (redisplay_window): If first window line is a
27754 continuation line, recompute the new window start instead of
27755 recentering.
27756
277572007-05-18 Glenn Morris <rgm@gnu.org>
27758
27759 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
27760 Suggested by Alfred M. Szmidt <ams@gnu.org>.
27761
277622007-05-17 Glenn Morris <rgm@gnu.org>
27763
27764 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
27765
277662007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27767
27768 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
27769 dead key repeat and up events.
27770
277712007-05-14 Chong Yidong <cyd@stupidchicken.com>
27772
27773 * image.c (pbm_load): Check image size for monochrome pbm.
27774
277752007-05-13 Chong Yidong <cyd@stupidchicken.com>
27776
27777 * xterm.c (XTread_socket): Revert last change.
27778
277792007-05-12 Chong Yidong <cyd@stupidchicken.com>
27780
27781 * image.c (pbm_load): Correctly check image size for greyscale pbm.
27782
27783 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
27784
277852007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27786
27787 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
27788 mixup (YAILOM).
27789
277902007-05-07 Andreas Schwab <schwab@suse.de>
27791
27792 * keymap.c (Flookup_key): Fix typo in last change.
27793
277942007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27795
27796 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
27797 mapping for unibyte strings.
27798
277992007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27800
27801 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
27802 (Fx_popup_dialog) [MAC_OSX]: Likewise.
27803
278042007-04-29 Richard Stallman <rms@gnu.org>
27805
27806 * insdel.c (replace_range): For undo, record insertion first.
27807
278082007-04-29 Andreas Schwab <schwab@suse.de>
27809
27810 * lisp.h (VECSIZE): Use OFFSETOF.
27811
278122007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27813
27814 * xdisp.c (try_window_reusing_current_matrix): Fix number of
27815 disabled lines.
27816
278172007-04-28 Richard Stallman <rms@gnu.org>
27818
27819 * lread.c (read_escape): In a string, \s is always space.
27820
278212007-04-27 Jan Djärv <jan.h.d@swipnet.se>
27822
27823 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
27824
27825 * gtkutil.c (xg_update_menubar, create_menus): Create empty
27826 submenu for menu bar items.
27827
27828See ChangeLog.10 for earlier changes.
27829
27830;; Local Variables:
27831;; coding: utf-8
27832;; add-log-time-zone-rule: t
aac0c6e3
MR
27833;; End:
27834
e3eb1dae 27835 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
27836
27837 This file is part of GNU Emacs.
27838
27839 GNU Emacs is free software: you can redistribute it and/or modify
27840 it under the terms of the GNU General Public License as published by
27841 the Free Software Foundation, either version 3 of the License, or
27842 (at your option) any later version.
27843
27844 GNU Emacs is distributed in the hope that it will be useful,
27845 but WITHOUT ANY WARRANTY; without even the implied warranty of
27846 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27847 GNU General Public License for more details.
27848
27849 You should have received a copy of the GNU General Public License
27850 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
27851
27852;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40