* lisp/emacs-lisp/float-sup.el (e): Remove.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
8ed70bf3
LMI
12010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
2
3 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
4 prefix.
5 (Fgnutls_boot): Use changed process members. Use log level with a
6 function parameter to set it. Bring back Emacs-level debugging
7 messages at log level 1 and 2.
8
9 * process.c (make_process): Initialize gnutls_log_level.
10
11 * process.h: Add gnutls_log_level and rename x509_cred and
12 anon_cred to have the gnutls_ prefix for consistency.
13
14 * gnutls.h (GNUTLS_LOG): Add convenience macro.
15
bedf4aab
JB
162010-09-27 Juanma Barranquero <lekktu@gmail.com>
17
18 * w32.c (g_b_init_get_sid_identifier_authority)
19 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
20 Remove, not used.
21 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
22 (init_winsock): Remove useless assignment.
23 (open_process_token, get_token_information, lookup_account_sid)
24 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
25 (get_security_descriptor_owner, get_security_descriptor_group)
26 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
27 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
28 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
29 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
30 (unc_volume_file_attributes, convert_from_time_t)
31 (create_toolhelp32_snapshot, process32_first, process32_next)
32 (open_thread_token, impersonate_self, revert_to_self)
33 (get_process_memory_info, get_process_working_set_size)
34 (global_memory_status, global_memory_status_ex, socket_to_fd)
35 (shutdown_handler): Make static.
36
08609ffd
MA
372010-09-27 Michael Albinus <michael.albinus@gmx.de>
38
39 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
40 (xd_pending_messages): Functions removed.
41 (xd_read_queued_messages): Add parameters fd, *data, for_read in
42 order to be compatible with add_read_fd. Determine bus from data,
43 and call xd_read_message just for this bus.
44 (xd_add_watch): Use xd_read_queued_messages as callback function.
45 Add data.
46
47 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
48
d2e9d0bb
LMI
492010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
50
51 * gnutls.c (gnutls_log_function): Added more debugging.
ec9f09be 52 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 53
4be9765d
KH
542010-09-27 Kenichi Handa <handa@m17n.org>
55
56 These changes are to remove restriction on the number of glyphs in
57 one composition.
58
59 * dispextern.h (struct glyph): Change the member "slice" to union.
60 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
61 (GLYPH_SLICE_EQUAL_P): Adjusted for the above change.
62
63 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
64 instead of glyph->slice.
65 (marginal_area_string): Likewise.
66
67 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
68 glyph->u.cmp.
69 (append_composite_glyph): Likewise.
70
71 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
72 glyph->u.cmp.
73 (fill_gstring_glyph_string, x_get_glyph_overhangs)
74 (append_composite_glyph): Likewise.
75 (fill_image_glyph_string): Use glyph->slice.img instead of
76 glyph->slice.
77 (append_glyph, produce_image_glyph, append_stretch_glyph)
78 (note_mouse_highlight): Likewise.
79
3fad2ad2
J
802010-09-26 Jan Djärv <jan.h.d@swipnet.se>
81
bf05eed6
J
82 * process.c (add_keyboard_wait_descriptor)
83 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
84 (wait_reading_process_output): Don't pass write_mask to select
85 if SELECT_CANT_DO_WRITE_MASK is defined.
86 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 87
3fad2ad2
J
88 * process.h (add_read_fd, delete_read_fd, add_write_fd)
89 (delete_write_fd): Declare.
90
91 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
92 (write_mask): New variable.
93 (max_input_desc): Renamed from max_keyboard_desc.
94 (fd_callback_info): New variable.
70e31436
JB
95 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
96 New functions.
3fad2ad2
J
97 (Fmake_network_process): FD_SET write_mask.
98 (deactivate_process): FD_CLR write_mask.
99 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
100 check_connect removed. check_write is new. Remove references to gpm.
101 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
102 NON_BLOCKING_CONNECT) instead of Connecting.
103 Loop over file descriptors and call callbacks in fd_callback_info
104 if file descriptor is ready for I/O.
105 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
106 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
107 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
108 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
109 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
110 (init_process): Initialize write_mask and fd_callback_info.
111
112 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
113
114 * dbusbind.c: Include process.h.
115 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
116 (xd_read_message_1): New functions.
70e31436
JB
117 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
118 Handle watch for both read and write.
3fad2ad2
J
119 (Fdbus_init_bus): Also register xd_toggle_watch.
120 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
121 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
122 to dbus_connection_flush.
70e31436 123 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
124 Call xd_read_message_1 until status is COMPLETE.
125
dce4c2ac
DN
1262010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
127
128 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
129 (init_tty): Reorder code to reduce the number of #ifdefs.
130 No code changes.
dce4c2ac 131
8af55556
TZ
1322010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
133
134 * process.h: Set up GnuTLS support.
135
136 * process.c (make_process, Fstart_process)
137 (read_process_output, send_process): Set up GnuTLS support for
138 process input/output file descriptors.
139
140 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
141
142 * gnutls.c: The source code for GnuTLS support in Emacs.
143
144 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
145
146 * config.in: Set up GnuTLS support.
147
148 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
149 (obj, LIBES): Set up GnuTLS support.
150
83e245c4
JB
1512010-09-26 Juanma Barranquero <lekktu@gmail.com>
152
153 * w32.c (get_emacs_configuration_options): Fix previous change.
154
d24ec09a
CY
1552010-09-25 Chong Yidong <cyd@stupidchicken.com>
156
157 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
158 alive before using it (Bug#6977).
159
b7bdc47c
LMI
1602010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
161
a952d5f3
LMI
162 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
163
164 * dispextern.h: EMACS_INT/int fixup.
165
166 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
167 fixup.
168
b7bdc47c
LMI
169 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
170
41118bd3
EZ
1712010-09-25 Eli Zaretskii <eliz@gnu.org>
172
2452438f
EZ
173 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
174 (Fselect_window, window_scroll_pixel_based)
175 (window_scroll_line_based, Frecenter, Fset_window_configuration):
176 Use EMACS_INT for buffer positions.
177
178 * textprop.c (validate_interval_range, interval_of)
179 (property_change_between_p, Fadd_text_properties)
180 (set_text_properties_1, Fremove_text_properties)
181 (Fremove_list_of_text_properties, Ftext_property_any)
182 (Ftext_property_not_all, copy_text_properties)
183 (text_property_list, extend_property_ranges)
184 (verify_interval_modification): Use EMACS_INT for buffer
185 positions.
186
f877c546
EZ
187 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
188 for buffer positions.
189
190 * process.c (read_process_output, send_process)
191 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
192 and string positions and size.
193
da43f021
EZ
194 * print.c (print_object, print_string, strout): Use EMACS_INT for
195 string indices.
196
197 * minibuf.c (string_to_object): Use EMACS_INT for string position
198 and size.
199
200 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
201
202 * lread.c <read_from_string_index, read_from_string_index_byte>
203 <read_from_string_limit, readchar_count>: Define EMACS_INT.
204 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
205 buffer positions and string length.
206
41118bd3
EZ
207 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
208 EMACS_INT.
209 (echo_truncate, adjust_point_for_property, read_char)
210 (gen_help_event, make_lispy_event, modify_event_symbol)
211 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
212 for buffer positions and string length.
213
214 * keyboard.h (gen_help_event): Adjust prototype.
215
216 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
217
218 * commands.h <last_point_position>: Declare EMACS_INT.
219
220 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
221 (truncate_echo_area): Accept EMACS_INT argument.
222
223 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
224
225 * lisp.h (truncate_echo_area): Adjust prototype.
226
227 * composite.c (composition_adjust_point): Return EMACS_INT.
228
229 * composite.h (composition_adjust_point): Adjust prototype.
230
ba3033ee
JB
2312010-09-25 Juanma Barranquero <lekktu@gmail.com>
232
233 * process.c (Fmake_network_process): When arg :host is 'local,
234 use address 127.0.0.1, not name "localhost". (Bug#6781)
235
4f3a2f8d
EZ
2362010-09-24 Eli Zaretskii <eliz@gnu.org>
237
5816888b
EZ
238 * indent.c (Fcurrent_indentation, indented_beyond_p)
239 (compute_motion): Use EMACS_INT for buffer position variables.
240
241 * lisp.h (indented_beyond_p): Adjust prototype.
242
243 * buffer.c (overlay_strings): Return EMACS_INT.
244
245 * buffer.h (overlay_strings): Adjust prototype.
246
247 * region-cache.c (pp_cache): Adjust format to arguments.
248
249 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
250 (call_debugger): Use EMACS_INT for specpdl_size related variables.
251 (verror): Use EMACS_INT for size of allocated buffer.
252
ace1712c
EZ
253 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
254 positions.
255
256 * xdisp.c (redisplay_internal, try_window_id)
257 (set_cursor_from_row, find_first_unchanged_at_end_row): Use
258 EMACS_INT for buffer positions.
259
f5276b75 260 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
261
262 * dispnew.c (increment_matrix_positions)
263 (increment_row_positions, copy_glyph_row_contents)
264 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
265 positions.
266
267 * dispextern.h (mode_line_string, marginal_area_string)
268 (increment_matrix_positions, increment_row_positions): Adjust
269 prototypes.
270
271 * data.c (Faref, Faset): Use EMACS_INT for string length and
272 positions.
273
274 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
275 characters to insert.
276
277 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
278 position and size.
279
4f3a2f8d
EZ
280 * syntax.c (scan_words, update_syntax_table)
281 (prev_char_comend_first, back_comment, skip_chars)
282 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars): Use
283 EMACS_INT for buffer and string positions.
284
285 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
286
287 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
288 positions.
289
db063399
LMI
2902010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
291
f0812d35
LMI
292 * scroll.c (calculate_scrolling, line_ins_del)
293 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
294 conversion.
295
f5c7fc27
LMI
296 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
297 (region_cache_backward, region_cache_forward)
298 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
299 conversion.
300
db063399
LMI
301 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
302
303 * eval.c (verror): Fix EMACS_INT/int conversion.
304
07914cd0 305 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
306 (print_preprocess, print_check_string_charset_prop)
307 (print_object): Fix EMACS_INT/int conversion.
308
309 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
310
e6d4aefa
EZ
3112010-09-24 Eli Zaretskii <eliz@gnu.org>
312
69481da7
EZ
313 * callproc.c (Fcall_process): Use EMACS_INT for count of
314 characters read from the subprocess.
315
61bfec98
EZ
316 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
317 positions.
318 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
319 positions.
320
145582a0
EZ
321 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
322 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
323 length.
324 (advance_to_char_boundary, Fset_buffer_multibyte)
325 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
326 (overlay_touches_p, record_overlay_string, overlay_strings)
327 (recenter_overlay_lists, fix_start_end_in_overlays)
328 (modify_overlay, Fmove_overlay, report_overlay_modification)
329 (evaporate_overlays): Use EMACS_INT for buffer positions.
330
331 * lisp.h (fix_start_end_in_overlays, overlay_touches_p): Adjust
332 prototypes.
333
446470a9
EZ
334 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
335 positions.
336
e6d4aefa
EZ
337 * fns.c (Fcompare_strings, Fstring_lessp, concat)
338 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
339 (Fsubstring_no_properties, substring_both, Ffillarray)
340 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
341 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
342 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
343 (Fmd5): Use EMACS_INT for buffer and string positions and length
344 variables and arguments.
345
346 * lisp.h (substring_both): Adjust prototype.
347
eb652396
JB
3482010-09-24 Juanma Barranquero <lekktu@gmail.com>
349
350 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
351 * w32fns.c (clipboard_sequence_fn): Don't declare.
352 (globals_of_w32fns): Don't initialize it.
353
266a86bd 3542010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
355
356 * syntax.c (back_comment): Detect the case where a 1-char comment
357 starter is also the 2nd char of a 2-char comment ender.
358
266a86bd 3592010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
360
361 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
362
40283062
LMI
3632010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
364
db063399
LMI
365 * eval.c (verror): EMACS_INT/int cleanup.
366
faf8b5bc
LMI
367 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
368 unwind_protect more than 2GB worth of functions.
369
370 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
371
40283062
LMI
372 * lisp.h: Have oblookup take EMACS_INT to allow interning big
373 string and avoid compiler warnings.
374 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
375 all users.
376
377 * lread.c (oblookup): EMACS_INT/int cleanup.
378
379 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
380
fe3537c3
EZ
3812010-09-23 Eli Zaretskii <eliz@gnu.org>
382
383 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
384
385 * lisp.h (clip_to_bounds): Adjust prototype.
386
387 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
388
0350982f
LMI
3892010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
390
84c9ce05
LMI
391 * lisp.h: doprnt.c EMACS_INT/int cleanup.
392
393 * doprnt.c (doprnt): EMACS_INT/int cleanup.
394
395 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
396 cleanup.
397
0350982f
LMI
398 * lisp.h: Change the definition of all marker.c functions that
399 take and return buffer stuff to be EMACS_INT instead of int.
400
401 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
402 (buf_charpos_to_bytepos, bytepos_to_charpos)
403 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
404 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
405 for all buffer positions.
406
c50bd0d2
CY
4072010-09-23 Chong Yidong <cyd@stupidchicken.com>
408
409 * intervals.c (traverse_intervals, rotate_right, rotate_left)
410 (split_interval_right, find_interval, next_interval)
411 (delete_node, delete_interval, interval_deletion_adjustment)
412 (adjust_intervals_for_deletion, merge_interval_right)
413 (merge_interval_left, graft_intervals_into_buffer)
414 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
415
416 * intervals.h (traverse_intervals): Update prototype.
417
14162469
EZ
4182010-09-23 Eli Zaretskii <eliz@gnu.org>
419
c098fdb8
EZ
420 * indent.c (compute_motion): Use EMACS_INT for arguments to
421 region_cache_forward.
422
423 * region-cache.c (struct boundary, struct region_cache): Use
424 EMACS_INT for positions.
425 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
426 (delete_cache_boundaries, set_cache_region)
427 (invalidate_region_cache, know_region_cache)
428 (region_cache_forward, region_cache_backward, pp_cache): Use
429 EMACS_INT for buffer positions.
430
431 * region-cache.h (know_region_cache, invalidate_region_cache)
432 (region_cache_forward, region_cache_backward): Adjust prototypes.
433
434 * search.c (string_match_1, fast_c_string_match_ignore_case)
435 (looking_at_1, scan_buffer, scan_newline)
436 (find_next_newline_no_quit, find_before_next_newline)
437 (search_command, trivial_regexp_p, search_buffer, simple_search)
438 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
439 and string positions and length.
440
caefdbe7
EZ
441 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
442 (find_before_next_newline): Adjust prototypes.
c098fdb8 443
29cdc13e
EZ
444 * editfns.c (transpose_markers, update_buffer_properties)
445 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
446 (get_pos_property, Fconstrain_to_field)
447 (Fline_beginning_position, Fline_end_position, Fprevious_char)
448 (Fchar_after, Fchar_before, Finsert_char)
449 (Finsert_buffer_substring, Fcompare_buffer_substrings)
450 (Fsubst_char_in_region, Fformat, Ftranspose_regions): Use
451 EMACS_INT for buffer and string position variables.
c098fdb8 452 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
453
454 * lisp.h (clip_to_bounds): Adjust prototype.
455
e79123aa
EZ
456 * intervals.c (traverse_intervals, rotate_right, rotate_left)
457 (balance_an_interval, split_interval_right, split_interval_left)
458 (find_interval, next_interval, update_interval)
459 (adjust_intervals_for_insertion, delete_node, delete_interval)
460 (interval_deletion_adjustment, adjust_intervals_for_deletion)
461 (offset_intervals, merge_interval_right, merge_interval_left)
462 (graft_intervals_into_buffer, adjust_for_invis_intang)
463 (move_if_not_intangible, get_local_map, copy_intervals)
464 (copy_intervals_to_string, compare_string_intervals)
465 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 466 and for interval tree size.
e79123aa
EZ
467
468 * intervals.h (traverse_intervals, split_interval_right)
469 (split_interval_left, find_interval, offset_intervals)
470 (graft_intervals_into_buffer, copy_intervals)
471 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
472 (update_interval): Adjust prototypes.
473
579c18d0
EZ
474 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
475 Use EMACS_INT for buffer position variables and arguments.
476
477 * composite.c (get_composition_id, find_composition)
478 (run_composition_function, compose_text)
479 (composition_gstring_width, autocmp_chars)
480 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
481 for buffer positions and string length variables and arguments.
482
483 * composite.h (get_composition_id, find_composition, compose_text)
484 (composition_gstring_width): Adjust prototypes.
485
486 * editfns.c (Fformat): Use EMACS_INT for string size variables.
487
488 * xdisp.c (store_mode_line_noprop, display_mode_element): Use
489 EMACS_INT for string positions.
490
491 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
492 position arguments.
493
494 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
495
496 * character.c (parse_str_as_multibyte, str_as_multibyte)
497 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0
EZ
498 (string_count_byte8, string_escape_byte8, c_string_width)
499 (strwidth, lisp_string_width, multibyte_chars_in_text): Use
500 EMACS_INT for string length variables and arguments.
14162469
EZ
501
502 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0
EZ
503 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
504 (c_string_width, strwidth, lisp_string_width): Adjust
14162469
EZ
505 prototypes.
506
579c18d0
EZ
507 * font.c (font_intern_prop): Use EMACS_INT for string length
508 variables.
509
510 * font.c (font_intern_prop): Use EMACS_INT for string length
511 variables.
512
14162469
EZ
513 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
514 variables.
515
516 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
517 (Fmake_string): Protect against too large strings.
518 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
519 (live_misc_p): Use ptrdiff_t instead of int for pointer
520 differences.
521 (string_bytes, check_sblock, check_string_free_list)
522 (allocate_string_data, compact_small_strings, Fmake_string)
523 (Fmake_bool_vector, make_string, make_unibyte_string)
524 (make_multibyte_string, make_string_from_bytes)
525 (make_specified_string_string, Fmake_list, Fmake_vector): Use
526 EMACS_INT for string length variables and arguments.
527 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
528 (Fpurecopy): Use EMACS_INT for string size.
529 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
530 for vector size.
531
532 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
533 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
534 (make_pure_string, string_bytes, check_point_in_composition):
535 Adjust prototypes.
14162469 536
c8a66ab8
EZ
5372010-09-22 Eli Zaretskii <eliz@gnu.org>
538
539 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
540 (check_translation): Use EMACS_INT for buffer positions and
541 length.
542
543 * undo.c (record_marker_adjustment, record_delete)
544 (record_change, record_point, record_insert)
545 (record_property_change, Fprimitive_undo): Use EMACS_INT for
546 buffer positions.
547
548 * lisp.h (record_marker_adjustment, record_delete)
549 (record_change, record_point, record_insert)
550 (record_property_change, Fprimitive_undo): Adjust prototypes.
551
38c54d9d
JB
5522010-09-22 Juanma Barranquero <lekktu@gmail.com>
553 Eli Zaretskii <eliz@gnu.org>
554
555 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
556
413d18e7
EZ
5572010-09-22 Eli Zaretskii <eliz@gnu.org>
558
559 * minibuf.c (Fminibuffer_contents)
560 (Fminibuffer_contents_no_properties)
561 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
562 positions.
563
564 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
565 mark.
566
567 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
568 (allocate_string_data): Accept EMACS_INT for string length.
569
570 * editfns.c (Ffield_string, Ffield_string_no_properties)
571 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
572 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
573 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
574 (Ffield_end): Use EMACS_INT for buffer positions.
575
576 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
577 point with mark.
578
579 * lisp.h (allocate_string_data, make_uninit_string)
580 (make_uninit_multibyte_string, make_buffer_string)
581 (make_buffer_string_both): Adjust prototypes.
582
4b9832a6
CY
5832010-09-22 Chong Yidong <cyd@stupidchicken.com>
584
585 * xml.c: Switch to GNU indentation.
586 (make_dom): Change parse tree format to match xml.el.
587 (Fxml_parse_html_string_internal): Rename from html-parse-string.
588 (Fxml_parse_string_internal): Rename from xml-parse-string.
589
86282aab
KH
5902010-09-22 Kenichi Handa <handa@m17n.org>
591
592 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
593 only if we are not at a composition.
594 (set_iterator_to_next): Give it->end_charpos to
595 composition_compute_stop_pos.
596 (set_iterator_to_next, next_element_from_buffer): Likewise.
597
598 * dispnew.c (buffer_posn_from_coords): Fix position when the
599 current display element is a grapheme cluster in bidi-reordered
600 region.
601
840b985a
AR
6022010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
603
604 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
605 the regions may overlap.
606
5bc88f4b
JB
6072010-09-21 Juanma Barranquero <lekktu@gmail.com>
608
609 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
610
92bc9a36
DN
6112010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
612
d19e096e
DN
613 * emacs.c: Do not include sys/ioctl.h, not needed.
614
92bc9a36
DN
615 * doprnt.c: Do not include stdlib.h, config.h does it.
616 Move #include before macro definition.
617
15f844ac
DN
6182010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
619
48e24408
DN
620 * Makefile.in (temacs): Link using $(CC) not $(LD).
621 (LD_FIRSTFLAG): Define using autoconf.
622 (LD): Remove.
623
65539506
DN
624 Remove HAVE_TERMIOS definitions.
625 * s/usg5-4-common.h (HAVE_TERMIOS):
626 * s/template.h (HAVE_TERMIOS):
627 * s/gnu-linux.h (HAVE_TERMIOS):
628 * s/darwin.h (HAVE_TERMIOS):
629 * s/cygwin.h (HAVE_TERMIOS):
630 * s/bsd-common.h (HAVE_TERMIOS):
631 * s/aix4-2.h (HAVE_TERMIOS):
632 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
633 defined on all non-MS platforms.
634 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
635
15f844ac
DN
636 * xterm.c (xt_action_hook): Use const.
637
7d701334
JB
6382010-09-20 Juanma Barranquero <lekktu@gmail.com>
639
640 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
641 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
642 (gethostname) [!HAVE_SOCKETS]: Remove.
643 (SOCK_REPLACE_HANDLE): Remove macro.
644 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
645 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
646 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
647 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
648
f3ec267a
EZ
6492010-09-18 Eli Zaretskii <eliz@gnu.org>
650
651 * deps.mk (xml.o): Add dependencies.
652
93acd23d
JB
653 * xdisp.c (Fcurrent_bidi_paragraph_direction):
654 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
655
656 * bidi.c (bidi_paragraph_init): Accept an additional argument
657 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
658 search back until a paragraph with a strong directional character
659 is found, and use that to determine paragraph's base direction.
660
661 * dispextern.h (bidi_paragraph_init): Update prototype.
662
69e847be
EZ
6632010-09-17 Eli Zaretskii <eliz@gnu.org>
664
665 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
666 of w32api >= 3.15. (Bug#6989)
667
283357a7
LMI
6682010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
669
670 * process.c (wait_reading_process_output): Don't message about
671 accept-process-output unless the time limit really is zero.
672
4ddb20d6
SM
6732010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
674
675 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
676 int/Lisp_Object mixup).
677
e24ad6dd
J
6782010-09-17 Jan Djärv <jan.h.d@swipnet.se>
679
680 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
681 not HELP.
682
fb0cf781
J
6832010-09-17 Stephen Berman <stephen.berman@gmx.net>
684
685 * frame.c (Ftool_bar_pixel_width): New function to expose tool
686 bar's pixel width to Lisp (Bug#7048).
687
4ddb20d6
SM
6882010-09-14 Juanma Barranquero <lekktu@gmail.com>
689
690 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 691
318a04c6
J
6922010-09-17 Jan Djärv <jan.h.d@swipnet.se>
693
694 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
695 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
696
78a21772
KH
6972010-09-17 Kenichi Handa <handa@m17n.org>
698
699 * ftfont.c (ftfont_check_otf): Fix previous change.
700
fa3f6039
KH
7012010-09-14 Kenichi Handa <handa@m17n.org>
702
703 * ftfont.c (ftfont_check_otf): Fix the case of checking just
704 existence of GSUB or GPOS.
705
2b5491fa
JB
7062010-09-14 Juanma Barranquero <lekktu@gmail.com>
707
708 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
709
c97c655f
LMI
7102010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
711
2b5491fa 712 * xml.c (parse_buffer): Renamed to parse_string(), since that's
c97c655f
LMI
713 what it does.
714 (parse_string): Return nil when the document can't be parsed.
715
6664fc59 7162010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
717
718 * xterm.c (get_current_vm_state): New function.
719 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
720 want_fullscreen so set_wm_state calls are few (Bug#7013).
721 (x_handle_net_wm_state): Move code to get_current_vm_state and
722 call that function.
723
6664fc59 7242010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
725
726 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
727
6664fc59 7282010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
729
730 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
731 we may use designation or locking-shift.
732
6664fc59 7332010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
734
735 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
736 sequence when the source is multibyte.
737
1da70e99
AS
7382010-09-14 Andreas Schwab <schwab@linux-m68k.org>
739
6664fc59
JB
740 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
741 Don't make first argument optional. Doc fix.
1da70e99 742
26632d8d
LMI
7432010-09-14 Leo <sdl.web@gmail.com> (tiny change)
744
745 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
746 parameters for the doc string.
747
21fa8e37
LMI
7482010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
749
750 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
751
5616cc54
SM
7522010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
753
754 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
755 (syms_of_fns): Don't defsubr Sy_or_n_p.
756 * lisp.h: Don't declare Fy_or_n_p.
757 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
758
381408e2
LMI
7592010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
760
761 * xml.c (Fxml_parse_buffer): New function to parse XML files.
762
7632010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
764
765 * xml.c: New file.
766 (Fhtml_parse_buffer): New function to interface to the libxml2
767 html parsing function.
768
733946e7
JB
7692010-09-05 Juanma Barranquero <lekktu@gmail.com>
770
771 * biditype.h: Regenerate.
772
7574650a
AS
7732010-09-04 Andreas Schwab <schwab@linux-m68k.org>
774
775 * nsimage.m (ns_load_image): Check argument types.
776
777 * image.c: Remove all uses of gcpro.
778 (xpm_load): Check all lisp types.
779 (pbm_load): Likewise.
780 (png_load): Likewise.
781 (jpeg_load): Likewise.
782 (tiff_load): Likewise.
783 (gif_load): Likewise.
784 (imagemagick_load_image): Likewise.
785 (imagemagick_load): Likewise.
786 (svg_load): Likewise.
787 (gs_load): Likewise.
788
6e6b8e25
EZ
7892010-09-04 Eli Zaretskii <eliz@gnu.org>
790
791 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't
792 try to reorder grapheme clusters, since LGSTRING should always
793 hold them in the logical order.
794 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
795 return glyph codes in the logical order.
796
dbfe4532
AS
7972010-09-04 Andreas Schwab <schwab@linux-m68k.org>
798
799 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 800 (imagemagick_load_image): Fix type mismatch.
5e5992c2 801 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 802
6d7cc563
JD
8032010-09-02 Jan Djärv <jan.h.d@swipnet.se>
804
805 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
806
807 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
808
809 * xselect.c: Remove declaration of cut-buffer objects and functions.
810 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
811 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
812 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
813 (Fx_rotate_cut_buffers_internal): Remove.
814 (syms_of_xselect): Remove defsubr of above.
815 Remove intern of QCUT_BUFFERn.
816
8f4e9110
SM
8172010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
818
819 * cmds.c (Vblink_paren_function): Remove.
820 (internal_self_insert): Make it insert N chars at a time.
821 Don't call blink-paren-function.
822 (Fself_insert_command): Adjust accordingly.
823 (syms_of_cmds): Don't declare blink-paren-function.
824
d419e1d9
KH
8252010-08-31 Kenichi Handa <handa@m17n.org>
826
827 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
828 characters.
829
830 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
831 (produce_glyphs): Don't set it->char_to_display here.
832 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
833 (produce_special_glyphs): Set temp_it.char_to_display before
834 calling produce_glyphs.
835
836 * xdisp.c (get_next_display_element): Set it->char_to_display
837 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
838 characters.
839 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
840 calling PRODUCE_GLYPHS.
841 (append_space_for_newline): Save and store it->char_to_display.
842 Set it->char_to_display before calling PRODUCE_GLYPHS.
843 (extend_face_to_end_of_line): Set it->char_to_display before
844 calling PRODUCE_GLYPHS.
845 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
846 character to its byte value.
847 (get_char_glyph_code): New function.
848 (produce_stretch_glyph): Set it2.char_to_display too before
849 calling x_produce_glyphs.
850 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
851 non-ASCII characters. Don't set it->char_to_display here.
852 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 853 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 854
b819f760
SM
8552010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
856
857 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
858
07fa68a7
CY
8592010-08-31 Chong Yidong <cyd@stupidchicken.com>
860
861 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
862
cd196f12
SM
8632010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
864
865 * marker.c (Fcopy_marker): Make the first arg optional.
866
49a752bb
KH
8672010-08-30 Kenichi Handa <handa@m17n.org>
868
869 * composite.c (composition_update_it): Fix computing of
870 cmp_it->width.
871
769ae9e1
KH
8722010-08-29 Kenichi Handa <handa@m17n.org>
873
9e69cb05 874 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 875 corresponding bytes.
9e69cb05 876
4520b858
J
8772010-08-29 Jan Djärv <jan.h.d@swipnet.se>
878
879 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
880
fe50eb41
KH
8812010-08-26 Kenichi Handa <handa@m17n.org>
882
883 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
884 on calling composition_compute_stop_pos.
885
f6aa6ec6
KH
8862010-08-25 Kenichi Handa <handa@m17n.org>
887
9dfdbc0a
KH
888 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
889 :otf.
890
f6aa6ec6
KH
891 * composite.c (composition_compute_stop_pos): Don't break
892 composition at PT.
893 (composition_reseat_it): Likewise. Fix calculation of character
894 position starting a composition.
895 (Fcomposition_get_gstring): Don't limit the number of components
896 for automatic composition.
897
ff94e32c
KH
8982010-08-25 Kenichi Handa <handa@m17n.org>
899
900 * composite.c (composition_compute_stop_pos): In forward search,
901 pay attention to the possibility that some character after ENDPOS
902 will be composed with charactrs before ENDPOS.
903
1c409d0b
CY
9042010-08-24 Chong Yidong <cyd@stupidchicken.com>
905
906 * keyboard.c (command_loop_1): Don't clobber primary selection
907 during handle-switch-frame (Bug#6872).
908
0c372655
MA
9092010-08-23 Michael Albinus <michael.albinus@gmx.de>
910
911 * dbusbind.c: Accept UNIX domain sockets as bus address.
912 (Fdbus_close_bus): New function.
913 (Vdbus_registered_buses): New variable.
914 (xd_initialize): Implement string as bus address.
915 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
916 (Fdbus_get_unique_name, Fdbus_call_method)
917 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
918 (Fdbus_method_error_internal, Fdbus_send_signal)
919 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
920 check. This is done in xd_initialize_bus. Adapt doc string, if
921 necessary.
922 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
923 Vdbus_registered_buses.
924 (Vdbus_registered_objects_table): Create hash.
925
7133b7ee
JL
9262010-08-22 Juri Linkov <juri@jurta.org>
927
928 * keyboard.c (Fexecute_extended_command): Move reading a command name
929 with `completing-read' to a new Elisp function `read-extended-command'.
930 Call it to read a command to `function' (bug#5364, bug#5214).
931
198a7a97
CY
9322010-08-22 Chong Yidong <cyd@stupidchicken.com>
933
934 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
935
b0126eac 9362010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
937
938 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
939 instead of SAFE_ALLOCA.
940
b0126eac 9412010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
942
943 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
944 (Bug#6214).
945
b0126eac 9462010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
947
948 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
949
b0126eac
CY
9502010-08-22 Jan Djärv <jan.h.d@swipnet.se>
951
952 * doc.c (Fsnarf_documentation): Initialize skip_file before
953 build-files test.
954
692f3ddc 9552010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 956
692f3ddc
JB
957 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
958 New definitions.
b0126eac
CY
959 (HAVE_TERMIO): Remove.
960
5f2f0bc1
EZ
9612010-08-22 Eli Zaretskii <eliz@gnu.org>
962
b613941b
EZ
963 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
964
a583bbef
EZ
965 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
966 for w32.
967
968 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
969 it's done in nt/config.nt.
970
971 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
972
5f2f0bc1
EZ
973 * unexcoff.c (report_error, make_hdr, write_segment)
974 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
975 Convert argument lists and prototypes to ANSI C.
976 (make_hdr, write_segment): Remove unused variables.
977 (unexec): Remove commented-out line. Initialize `new' to shut up
978 compiler warnings.
979
a7ebc409
DN
9802010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
981
982 Simplify termio code.
983 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
984 HAVE_TERMIO code is obsolete.
985 Replace HAVE_TERMIOS conditionals with !DOS_NT.
986 * systty.h: Do not define HAVE_TCATTR.
987 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
988 Do not define EMACS_HAVE_TTY_PGRP. Only define
989 EMACS_GET_TTY_PGRP for !DOS_NT.
990 * sysdep.c: Include sysselect.h unconditionally. Do not include
991 sys/ioctl.h and termios.h, systty.h does it. Use
992 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
993 (init_baud_rate): Remove HAVE_TERMIO code.
994 (child_setup_tty): Remove HAVE_TERMIO code.
995 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
996 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
997 (new_ltchars, new_tchars): Remove, unused.
998 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
999 code. Remove special casing for __mips__, it was a no-op. Remove
1000 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
1001 (init_sys_modes): Remove HPUX special case.
1002 * process.c: Include stdlib.h unconditionally. Do not include
1003 fcntl.h, systty.h does it. Remove conditional code for
1004 HAVE_SERIAL, it is always true.
1005 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
1006 always true when SIGNALS_VIA_CHARACTERS is true.
1007 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
1008 !WINDOWSNT means HAVE_TERMIOS.
1009 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
1010 conditional, which is true for all HAVE_TERMIOS systems.
1011 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
1012 instead of HAVE_TERMIOS.
1013 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
1014 EMACS_HAVE_TTY_PGRP.
1015 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
1016 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
1017 anyway.
1018
40629f17
EZ
10192010-08-21 Eli Zaretskii <eliz@gnu.org>
1020
1021 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
1022 mirroring pixel positions.
1023
d931da8c
DN
10242010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
1025
b5c76d0c
DN
1026 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
1027 write only.
1028 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
1029 malloc_sbrk_used, nothing uses them.
1030
74815588
DN
1031 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
1032 defined, unconditionally defined in lisp.h.
1033
f5817d1c
DN
1034 * term.c: Do not include <termios.h>, systty.h does it.
1035
d931da8c
DN
1036 * s/unixware.h (HAVE_TCATTR):
1037 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
1038 systty.h defines it when HAVE_TERMIOS is defined.
1039
ff2de6d2 10402010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 1041
b43c883c 1042 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 1043 terminals: add one-character offset for R2L lines.
b43c883c 1044
491a1546
EZ
1045 * emacs.c <emacs_version>: Add a comment regarding
1046 msdos/mainmake.v2's dependency on the syntax of this declaration.
1047
2396cbba
EZ
10482010-08-20 Eli Zaretskii <eliz@gnu.org>
1049
1050 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
1051 position for R2L lines by mirroring the pixel position wrt the
1052 text are box. Improve commentary.
1053
7df6150a
AS
10542010-08-20 Andreas Schwab <schwab@linux-m68k.org>
1055
1056 * image.c (imagemagick_clear_image): Remove debugging output.
1057
a2e5caf7
SM
10582010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1059
1060 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
1061 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
1062 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
1063 self-insert-face.
1064 (syms_of_cmds): Initialize the new vars.
1065
20d60baf
JR
10662010-08-19 Jason Rumney <jasonr@gnu.org>
1067
cc477da7
JR
1068 * w32menu.c (set_frame_menubar): Remove call to undefined function.
1069
20d60baf
JR
1070 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
1071
2c0ac867
J
10722010-08-19 Jan Djärv <jan.h.d@swipnet.se>
1073
1074 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
1075
93352106
EZ
10762010-08-18 Eli Zaretskii <eliz@gnu.org>
1077
1078 * xterm.c (x_draw_bar_cursor):
1079 * w32term.c (x_draw_bar_cursor): If the character under cursor is
1080 R2L, draw the bar cursor on its right rather than on its left.
1081
c785836d
SM
10822010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
1083
0193499f
SM
1084 * eval.c (Fdefmacro): Only obey one declaration.
1085
c785836d
SM
1086 * casefiddle.c (casify_region): Setup gl_state.
1087
9cb728a5
J
10882010-08-18 Jan Djärv <jan.h.d@swipnet.se>
1089
1090 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
1091
e1e18511
J
10922010-08-18 Jan Djärv <jan.h.d@swipnet.se>
1093
1d77b63e 1094 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 1095
64cb6c78
J
10962010-08-18 David De La Harpe Golden <david@harpegolden.net>
1097
1098 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
1099 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
1100 QPRIMARY => NXPrimaryPboard.
1101 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
1102 NXPrimaryPboard => QPRIMARY.
1103 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
1104 NXSecondaryPboard = SecondarySelection.
1105 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
1106
0c9b8993
GM
11072010-08-18 Joakim Verona <joakim@verona.se>
1108
1109 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
1110 defined:
1111 (imagemagick_image_p): New function to test for ImageMagic image.
1112 (imagemagick_load): New function to load ImageMagick image.
1113 (imagemagick_load_image): New function, helper for imagemagick_load.
1114 (imagemagick-types): New function.
1115 (Qimagemagick): New Lisp_object.
1116 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 1117
c3554f68
SM
11182010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
1119
1120 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
1121 is a string.
1122
1ff2e434
J
11232010-08-17 Jan Djärv <jan.h.d@swipnet.se>
1124
1125 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
1126 x_set_tool_bar_position handler.
1127
0cc56427
EZ
11282010-08-17 Eli Zaretskii <eliz@gnu.org>
1129
1130 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
1131 x_set_tool_bar_position handler, needed to support changes from
1132 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
1133
e45a249b
JD
11342010-08-16 Jan Djärv <jan.h.d@swipnet.se>
1135
921242c6
J
1136 * nsselect.m: include keyboard.h for QPRIMARY, remove its
1137 declaration (Bug#6863).
573d150b 1138 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 1139
e45a249b
JD
1140 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
1141
1142 * keyboard.h (QPRIMARY): Declare (Bug#6864).
1143
7c23dd44
CY
11442010-08-16 Chong Yidong <cyd@stupidchicken.com>
1145
1146 * keyboard.c (command_loop_1): Avoid setting selection twice,
1147 since it's done in deactivate-mark as well.
1148 (Vselect_active_regions): Change default to t. Replace `lazy'
1149 with non-default value `only', meaning only set PRIMARY for
1150 temporarily active regions.
1151
1152 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
1153 select-active-regions.
1154
0005830c
J
11552010-08-15 Jan Djärv <jan.h.d@swipnet.se>
1156
1157 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
1158 isn't a string.
1159
603dfc72
AS
11602010-08-15 Andreas Schwab <schwab@linux-m68k.org>
1161
1162 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
1163
c25ce9d0
J
11642010-08-15 Jan Djärv <jan.h.d@swipnet.se>
1165
c3554f68
SM
1166 * keyboard.c (parse_tool_bar_item): malloc buf.
1167 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
1168 new_lbl (Bug#6855).
c25ce9d0 1169
5872c762
EZ
11702010-08-14 Eli Zaretskii <eliz@gnu.org>
1171
b236615c
EZ
1172 * xterm.c (x_draw_stretch_glyph_string):
1173 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
1174 the cursor on the right edge of the stretch glyph.
1175
c3554f68
SM
1176 * xdisp.c (window_box_right_offset, window_box_right):
1177 Fix commentary.
b236615c 1178
5872c762
EZ
1179 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
1180 direction when point is inside a run of whitespace characters.
1181
1182 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
1183
e66f9a1b
JR
11842010-08-14 Jason Rumney <jasonr@gnu.org>
1185
1186 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
1187
79d6f59e
CY
11882010-08-14 Chong Yidong <cyd@stupidchicken.com>
1189
1190 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
1191
1c9b4129
JR
11922010-08-13 Jason Rumney <jasonr@gnu.org>
1193
1194 * w32menu.c (simple_dialog_show): Use unicode message box if available.
1195 (MessageBoxW_Proc): New function typedef.
1196 (unicode-message-box): New function pointer.
1197 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
1198
2b4e6277
J
11992010-08-13 Jan Djärv <jan.h.d@swipnet.se>
1200
1201 * frame.h (Qtool_bar_position): Declare.
1202
1203 * xfns.c (Fx_create_frame): Call x_default_parameter for
1204 Qtool_bar_position.
1205
94c97d85
EZ
12062010-08-13 Eli Zaretskii <eliz@gnu.org>
1207
8ee81892
EZ
1208 * unexcoff.c: Remove the parts used when "emacs" is not defined.
1209 (report_error, report_error_1): Ditto.
1210 (write_segment): Remove "#if 0" unused code.
1211 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
1212 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
1213 (start_of_text): Remove unused function (was used only if NO_REMAP
1214 was NOT defined).
1215
891ef8f7
EZ
1216 * msdos.c (IT_set_face): Fix format string to match argument
1217 types.
1218 (IT_write_glyphs, IT_note_mode_line_highlight)
1219 (IT_set_frame_parameters): Remove unused variables.
1220 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
1221 (IT_set_terminal_modes): Disambiguate expression in if clause.
1222 (Fmsdos_remember_default_colors): Return Qnil.
1223 (IT_set_frame_parameters): Add parens to disambiguate boolean
1224 expression for logging the cursor type to termscript.
1225 (keyboard_layout_list, keypad_translate_map)
1226 (grey_key_translate_map): Add braces in inner initializers.
1227 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
1228 (dos_rawgetc): Remove unused label.
1229 (XMenuActivate): Add braces to remove ambiguous `else'.
1230 (dos_ttraw): Always return a value.
1231 (spawnve): Declare.
1232 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
1233
1234 * dosfns.h (x_set_title): Declare.
1235
1236 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
1237 Remove unused variables.
1238
1239 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
1240 variables.
1241 (init_dosfns): Declare get_lim_data.
1242 (system_process_attributes): Declare Fget_internal_run_time.
1243
38e41e0e
EZ
1244 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
1245 list to be consistent with menu.h.
1246
94c97d85
EZ
1247 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
1248 warnings due to mixing of "char *" and "const char *".
1249
c5683ceb
SM
12502010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1251
1252 Introduce a new comment style "c" flag.
1253 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
1254 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
1255 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
1256 (syntax_prefix_flag_p): New function.
1257 (Fstring_to_syntax): Understand new "c" flag.
1258 (Finternal_describe_syntax_value): Recognize new flag; use the
1259 SYNTAX_FLAGS_* macros.
1260 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
1261 comment style to accomodate the new styles.
1262 (back_comment, forw_comment, Fforward_comment, scan_lists)
1263 (scan_sexps_forward): Update code to obey the new comment style flag.
1264
1265 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
1266
1267 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
1268
7aee76f4
J
12692010-08-11 Jan Djärv <jan.h.d@swipnet.se>
1270
3a46642b
J
1271 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
1272 first.
94dff98f 1273 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
1274
1275 * gtkutil.h (xg_check_special_colors): Declare.
1276
1277 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
1278 (xg_create_frame_widgets): Connect theme name changes to
1279 style_changed_cb.
1280
42ca4633
J
1281 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
1282 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
1283 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 1284 string literal. file is const char*.
42ca4633
J
1285
1286 * xsmfns.c (NOSPLASH_OPT): Change to char[].
1287 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
1288 props. Free them at the end.
1289
1290 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
1291
c5683ceb
SM
1292 * xrdb.c (get_system_app): Make path const and use char *p for
1293 non-const char.
42ca4633
J
1294
1295 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 1296 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
1297 char *.
1298 (button_names): Is const char *.
1299 (xdialog_show): error_name and pane_string is const.
1300
1301 * process.h (synch_process_death): Is const char*.
1302
1303 * w32menu.c (w32_menu_show):
1304 * nsmenu.m (ns_menu_show): error parameter is const char **.
1305
1306 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
1307 is const char **.
1308
1309 * menu.c (Fx_popup_menu): error_name is const.
1310
1311 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
1312 with unsigned char and XtPointer with void *.
1313
1314 * gtkutil.h: Replace widget_value with struct _widget_value.
1315 (enum button_type, struct _widget_value): Remove and use the one from
1316 keyboard.h.
1317
1318 * gtkutil.c (get_utf8_string): Always return an allocated string.
1319 Parameter is const.
1320 (create_dialog, xg_create_one_menuitem, create_menus)
1321 (xg_item_label_same_p, xg_update_menu_item): Free result from
1322 get_utf8_string.
1323 (xg_separator_p, xg_item_label_same_p): label is const.
1324
1325 * font.h (font_open_by_name): Make name const.
1326
1327 * font.c (font_open_by_name): Make name const.
1328
1329 * floatfns.c (matherr): Use a const char* variable for x->name.
1330
1331 * emacs.c (main): Pass char[] to putenv instead of literal.
1332
1333 * callproc.c (synch_process_death): Make const.
1334 (Fcall_process): Make signame const.
1335
9c5bd55a
J
1336 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
1337 (addDisplayItemWithImage): Use const char*.
1338
1339 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
1340 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
1341
1342 * nsfont.m (ns_descriptor_to_entity): Use const char*.
1343
1344 * keyboard.h (_widget_value): name, value and key are const char*.
1345
7aee76f4
J
1346 * unexmacosx.c (unexec_error): Use const char *.
1347
09d93395
DN
13482010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
1349
1350 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 1351 (font_parse_name, font_open_by_name):
09d93395 1352 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 1353 (font_parse_name, font_open_by_name): Remove const.
09d93395 1354
671d409f
AS
13552010-08-09 Andreas Schwab <schwab@linux-m68k.org>
1356
1357 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
1358 definition.
1359
1360 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
1361 * m/amdx86-64.h: Likewise.
1362 * m/arm.h: Likewise.
1363 * m/hp800.h: Likewise.
1364 * m/ia64.h: Likewise.
1365 * m/ibmrs6000.h: Likewise.
1366 * m/ibms390.h: Likewise.
1367 * m/intel386.h: Likewise.
1368 * m/iris4d.h: Likewise.
1369 * m/m68k.h: Likewise.
1370 * m/macppc.h: Likewise.
1371 * m/mips.h: Likewise.
1372 * m/sh3.h: Likewise.
1373 * m/sparc.h: Likewise.
1374 * m/template.h: Likewise.
1375 * m/vax.h: Likewise.
1376 * m/xtensa.h: Likewise.
1377 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
1378 WORDS_BIG_ENDIAN.
1379 * lisp.h: Likewise.
1380 * md5.c: Likewise.
1381 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
1382
8ea90aa3
DN
13832010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
1384
1385 Use const char* instead of char*.
1386 Reduce the number of warnings with -Wwrite-strings.
1387 * xrdb.c (get_environ_db, get_system_name):
1388 * unexelf.c (find_section):
1389 * term.c (string_cost, string_cost_one_line, per_line_cost)
1390 (get_named_tty, init_tty):
1391 * sysdep.c (sys_subshell):
1392 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
1393 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
1394 * search.c (Freplace_match):
1395 * process.c (Fmake_network_process, send_process, init_process):
1396 * lread.c (Fload, init_lread):
1397 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
1398 * keyboard.c (parse_tool_bar_item, struct event_head):
1399 * gtkutil.h (xg_get_font_name):
1400 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
1401 (make_widget_for_menu_item, make_menu_item, create_menus)
1402 (xg_make_tool_item):
1403 * font.c (parse_matrix, font_parse_name):
1404 * floatfns.c (rounding_driver, float_error_fn_name):
1405 * filelock.c (get_boot_time_1, lock_file_1):
1406 * fileio.c (barf_or_query_if_file_exists, check_writable):
1407 * editfns.c (get_system_name, get_operating_system_release)
1408 (Fencode_time, Fset_time_zone_rule):
1409 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
1410 * buffer.c (defvar_per_buffer): Use const.
1411
7815fe19 14122010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 1413
692f3ddc 1414 * charset.c: Include <stdlib.h>.
7a84eee5
KH
1415 (struct charset_sort_data): New struct.
1416 (charset_compare): New function.
692f3ddc 1417 (Fsort_charsets): New function.
7a84eee5
KH
1418 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
1419
1420 * coding.c (decode_coding_iso_2022): Fix checking of dimension
1421 number in CTEXT extended segment.
1422
7815fe19 14232010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
1424
1425 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
1426 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
1427
7815fe19 14282010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
1429
1430 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
1431 (Fhash_table_size): Fix typos in docstrings.
1432 (Fmake_hash_table): Doc fix.
1433
7815fe19 14342010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
1435
1436 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
1437 Doc fix (bug#5625).
1438
7815fe19 14392010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
1440
1441 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
1442 the MSDOS definition.
1443
1b6d8cf0
DN
14442010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
1445
675e2c69
DN
1446 Use const char* instead of char*.
1447 * xterm.c (x_create_toolkit_scroll_bar):
1448 * xfont.c (xfont_list_pattern):
1449 * xfns.c (x_default_scroll_bar_color_parameter)
1450 (xic_create_fontsetname, x_default_font_parameter)
1451 (x_screen_planes):
1452 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
1453 (store_mode_line_string, decode_mode_spec, display_string):
1454 * menu.c (digest_single_submenu):
1455 * keymap.h (initial_define_key, initial_define_lispy_key):
1456 * keymap.c (initial_define_key, initial_define_lispy_key):
1457 * image.c (image_error, image_keyword):
1458 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
1459 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
1460 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
1461 (ftfont_list, ftfont_match):
1462 * frame.c (frame_parm_table):
1463 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1464 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1465 (font_add_log, font_deferred_log):
1466 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1467 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1468 (font_add_log, font_deferred_log):
1469 * emacs.c (argmatch):
1470 * dispextern.h (struct it):
1471 * coding.c (ENCODE_DESIGNATION):
1472 * charset.c (define_charset_internal): Use const.
1473
25717ca1
DN
1474 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
1475
c5683ceb
SM
1476 * xrdb.c: Remove include guard.
1477 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
1478 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
1479 realloc->xrealloc instead of using #defines.
1480
efb41e21
EZ
14812010-08-08 Eli Zaretskii <eliz@gnu.org>
1482
cd21226d 1483 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
1484 * editfns.c (Fline_beginning_position, Fline_end_position):
1485 State in the doc strings that start and end of line are in the
1486 logical order.
cd21226d 1487
efb41e21
EZ
1488 * xdisp.c (display_line): Move the handling of overlay arrow after
1489 the call to find_row_edges. (Bug#6699)
1490
746812d9
CY
14912010-08-07 Chong Yidong <cyd@stupidchicken.com>
1492
1493 * keyboard.c (command_loop_1):
1494 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
1495
9852377f
CY
14962010-08-07 Chong Yidong <cyd@stupidchicken.com>
1497
1498 * insdel.c (prepare_to_modify_buffer): Save active region text to
1499 Vsaved_region_selection.
1500
1501 * xselect.c (QPRIMARY): Move to keyboard.c.
1502
1503 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
1504 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
1505 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 1506
0e9c8657
JB
15072010-08-07 Juanma Barranquero <lekktu@gmail.com>
1508
1509 * alloc.c (lisp_malloc):
1510 * buffer.c (set_buffer_internal, set_buffer_internal_1):
1511 * charset.h (emacs_mule_charset):
1512 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
1513 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
1514 (bitch_at_user):
1515 * lisp.h (Fcheck_coding_system, Fget_text_property)
1516 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
1517 Remove duplicate declarations.
1518
648801d1
DN
15192010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1520
32bc6709
DN
1521 * process.c: Simplify include logic.
1522
3ef1d108
DN
1523 * keyboard.h (quit_char): Add declaration.
1524 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
1525 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
1526 Add declarations.
3ef1d108
DN
1527 * sysdep.c:
1528 * w32.c: Remove the above declarations.
1529
97ec208f
DN
1530 Remove extern declarations in .c files, .h files have them.
1531 * xterm.c:
1532 * xdisp.c:
97ec208f
DN
1533 * msdos.c:
1534 * image.c:
1535 * gtkutil.c:
1536 * fileio.c:
1537 * eval.c: Remove declarations.
1538
94eed851
DN
1539 * frame.c (frame_params): Make const.
1540
36e053eb
DN
1541 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
1542
0e843971
DN
1543 * emacs.c (emacs_copyright, emacs_version): Make static.
1544 (Vinitial_window_system, Vauto_save_list_file_name)
1545 (Vinhibit_redisplay): Remove declarations.
1546 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
1547 for AIX.
1548
648801d1
DN
1549 Use const for some arrays and functions.
1550 * xterm.h (xg_set_icon_from_xpm_data):
1551 * xfns.c (xg_set_icon_from_xpm_data):
1552 * term.c (fkeys):
1553 * keyboard.c (lispy_accent_keys, lispy_function_keys)
1554 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
1555 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
1556 (frame.c frame_parms):
1557 * emacs-icon.h (gnu_xpm_bits):
1558 * callint.c (callint_argfuns): Use const.
1559
8646d999
J
15602010-08-06 Jan Djärv <jan.h.d@swipnet.se>
1561
1562 * sysdep.c: Move include term.h last of includes (Bug#6812).
1563
cb4545ad
EZ
15642010-08-06 Eli Zaretskii <eliz@gnu.org>
1565
1566 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
1567
1568 * msdos.c (IT_display_cursor): Log cursor position on termscript.
1569
1570 * .gdbinit (pgx): Display the avoid_cursor_p flag.
1571
da7e2be6
JB
15722010-08-06 Juanma Barranquero <lekktu@gmail.com>
1573
1574 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
1575
3d608a86
J
15762010-08-06 Jan Djärv <jan.h.d@swipnet.se>
1577
7908fb60
J
1578 * xterm.h (x_get_focus_frame): Declare.
1579
1580 * keyboard.h (poll_for_input_1): Unconditionally declare.
1581
4094bf36
J
1582 * nsterm.h (x_set_menu_bar_lines): Declare.
1583
1584 * window.c: Don't include menu.h, it depends on lots of other .h-files.
1585
3d608a86
J
1586 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
1587
1588 * window.c: Include menu.h.
1589
1590 * unexmacosx.c (print_region_list, print_regions)
1591 (build_region_list, find_emacs_zone_regions)
1592 (unexec_regions_merge, read_load_commands, dump_it)
1593 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
1594
1595 * term.c: Check HAVE_SYS_IOCTL_H.
1596
686b968e 1597 * sysdep.c: Check HAVE_TERM_H.
3d608a86 1598
686b968e 1599 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
1600
1601 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
1602 (ns_ring_bell, ns_defined_color, hide_hourglass)
1603 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
1604 Convert to ANSI C prototypes.
1605 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
1606 before code.
1607
1608 * nsterm.h : Include sysselect.h.
1609 (x_sync, x_get_focus_frame, x_set_mouse_position)
1610 (x_set_mouse_pixel_position, x_make_frame_visible)
1611 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
1612 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
1613 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
1614 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 1615 Declare.
3d608a86
J
1616
1617 * nsmenu.m (popup_activated, name_is_separator)
1618 (syms_of_nsmenu): Convert to ANSI C prototypes.
1619 (runMenuAt): Prototypes and move declarations before code.
1620
1621 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
1622
1623 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
1624 prototypes.
1625
1626 * nsfns.m (have_menus_p, ns_display_info_for_name)
1627 (x_set_cursor_type, ns_appkit_version_str)
1628 (ns_appkit_version_int, ns_do_applescript)
1629 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
1630 (syms_of_nsfns): Convert to ANSI C prototypes.
1631
1632 * menu.h (x_set_menu_bar_line): Declare.
1633 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
1634
1635 * lisp.h (fmod_float): Declare.
1636
1637 * image.c (xpm_scan, xpm_make_color_table_v)
1638 (xpm_put_color_table_v, xpm_get_color_table_v)
1639 (xpm_make_color_table_h, xpm_put_color_table_h)
1640 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
1641 (xpm_load): Convert to ANSI C prototypes.
1642
1643 * emacs.c: Include nsterm.h if HAVE_NS.
1644
1645 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
1646
fce70521
DN
16472010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1648
1649 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
1650 subprocesses, only MSDOS does not define HAVE_SOCKETS.
1651 (socket_options): Use const char* for name.
1652
a11889ab
JB
16532010-08-06 Juanma Barranquero <lekktu@gmail.com>
1654
1655 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
1656
1657 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
1658 Don't declare xmalloc_widget_value and digest_single_submenu.
1659
1660 * w32font.c (Qlatin): Remove declaration.
1661
1662 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
1663
c95b508f 1664 * dired.c (compile_pattern): Restore declaration.
a11889ab 1665
6254cdda
DN
16662010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
1667
04bab72c
DN
1668 Remove extern declarations in .c files, .h files have them.
1669 * data.c:
1670 * dired.c:
1671 * editfns.c:
1672 * filelock.c:
1673 * fns.c:
1674 * font.c:
1675 * fontset.c:
1676 * frame.c:
1677 * fringe.c:
1678 * ftfont.c:
1679 * gtkutil.c:
1680 * indent.c:
1681 * keyboard.c:
1682 * keymap.c:
1683 * lread.c:
1684 * menu.c:
1685 * print.c:
1686 * search.c:
1687 * sound.c:
1688 * window.c:
1689 * xdisp.c:
1690 * xfaces.c:
1691 * xfns.c:
1692 * xfont.c:
1693 * xftfont.c:
1694 * xmenu.c:
1695 * xterm.c: Remove declarations.
1696
dff94ed5
DN
1697 Cleanup syssignal.h.
1698 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
1699 (main_thread): Move down to remove #ifdef.
1700 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
1701 Remove conditional definition following unconditional ones.
1702
99f3388e
DN
1703 * lisp.h: Remove HAVE_SHM code, unused.
1704 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
1705 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
1706 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
1707 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
1708 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
1709 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
1710 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
1711 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
1712 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
1713 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
1714 (Qwindow_scroll_functions, Vafter_load_alist)
1715 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
1716 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
1717 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
1718 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
1719 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
1720 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
1721 (initial_argv, last_nonmenu_event, load_in_progress)
1722 (noninteractive_need_newline, scroll_margin): Add declarations.
1723
1724 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
1725 declarations, menu.h has them.
1726 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
1727 (Vinput_method_function, Qinput_method_function)
1728 (Qevent_symbol_element_mask, last_event_timestamp):
1729 * dispextern.h (Voverflow_newline_into_fringe):
1730 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
1731 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
1732 (syms_of_w32font, syms_of_nsfont):
1733 * fontset.h (find_font_encoding, Qlatin):
1734 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
1735 (Vtool_bar_mode, set_frame_menubar):
1736 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
1737 * xterm.h (Qx_gtk_map_stock):
1738 * keymap.h (meta_prefix_char): Add declarations.
1739
9f5dd6f2
DN
1740 * term.c: Remove dead code.
1741
6254cdda
DN
1742 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
1743 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
1744 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
1745 which is what was there before BSD_PGRPS was removed.
1746
29cf3e20
EZ
17472010-08-05 Eli Zaretskii <eliz@gnu.org>
1748
1749 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
1750
1751 * unexcoff.c: Renamed from unexec.c.
1752
aaa0a19a
SM
17532010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
1754
1755 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
1756
8d1d9587
JB
17572010-08-03 Johan Bockgård <bojohan@gnu.org>
1758
1759 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 1760 (Bug#6744)
8d1d9587 1761
9a747ba6
JD
17622010-08-02 Jan Djärv <jan.h.d@swipnet.se>
1763
4d464ae4
JD
1764 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
1765 to TRUE if depth of screen is < 16.
1766
ac01763e
JD
1767 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
1768 USE_GTK_TOOLTIP.
e0d62a9b
JB
1769 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
1770 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 1771 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
1772 USE_GTK_TOOLTIP.
1773 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
1774
1775 * xterm.h (USE_GTK_TOOLTIP): New define.
1776 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
1777
9a747ba6
JD
1778 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
1779 to Control-D (Bug#6771).
1780
7b0815ba
JB
17812010-08-02 Juanma Barranquero <lekktu@gmail.com>
1782
1783 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
1784 Wording by Drew Adams <drew.adams@oracle.com>.
1785
aa1859f5
J
17862010-08-01 Jan Djärv <jan.h.d@swipnet.se>
1787
1788 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
1789 ttip_lbl.
1790
1791 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
1792 calling gtk_widget_queue_draw.
1793 (x_free_frame_resources): Call xg_free_frame_widgets.
1794
1795 * xfns.c (x_gtk_use_system_tooltips): New variable.
1796 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
1797 new gtkutil tooltip functions to show the tooltip.
1798 (Fx_hide_tip): Call xg_hide_tooltip.
1799 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
1800
1801 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
1802 (xg_show_tooltip, xg_hide_tooltip): Declare.
1803
1804 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
1805 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
1806 New functions.
aa1859f5
J
1807 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
1808 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
1809 Remove code that is commented out.
1810
76417ef4
SM
18112010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
1812
1813 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
1814
16041401
CY
18152010-07-31 Chong Yidong <cyd@stupidchicken.com>
1816
1817 * xselect.c (x_own_selection): Use list4.
1818
2c09a58f
DN
18192010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
1820
1821 * buffer.c (Qwindow): Do not define, already defined in data.c.
1822 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
1823
59df9fdd 18242010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 1825
59df9fdd
JB
1826 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
1827 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
1828 * config.in: Undef HAVE_DIRENT_H.
1c97e857 1829 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 1830 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 1831
1b231651
DN
18322010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1833
1834 Rename s/usg5-4.h -> s/usg5-4-common.h.
1835 * s/usg5-4.h: Rename file to ...
1836 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
1837 * s/unixware.h:
1838 * s/sol2-6.h:
1839 * s/irix6-5.h: Update includes accordingly.
1840
bfeabdc3
JD
18412010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1842
2ebf1083
J
1843 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
1844
bfeabdc3 1845 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
1846 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
1847 Remove toolbar_height.
1848 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
1849 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
1850 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
1851 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
1852
1853 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1854
1855 * xfns.c (x_set_tool_bar_position): New function.
1856 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
1857 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 1858 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
1859
1860 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
1861 and FRAME_TOOLBAR_LEFT_WIDTH.
1862
1863 * gtkutil.h (xg_change_toolbar_position): Declare.
1864
1865 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
1866 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1867 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
1868 (xg_create_frame_widgets): Create a hobox for placing widgets
1869 vertically. Use gtk_box_pack_start.
1870 (xg_height_or_width_changed): Renamed from xg_height_changed.
1871 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
1872 (xg_update_frame_menubar, free_frame_menubar): Change to
1873 xg_height_or_width_changed.
1874 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
1875 size correctly. Remove hardcoded 4, instead use handlebox size -
1876 toolbar size.
1877 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 1878 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
1879 (xg_pack_tool_bar): POS is a new parameter.
1880 Set orientation of tool bar based on pos.
1881 Only make handlebox_widget if NULL.
1882 Check if tool bar goes to vbox or hbox depending on pos.
1883 (xg_update_tool_bar_sizes): New function.
686b968e 1884 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
1885 height, call xg_update_tool_bar_sizes instead.
1886 (free_frame_tool_bar): Remove from hbox or vbox depending on
1887 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
1888 (xg_change_toolbar_position): New function.
1889
1890 * frame.h (struct frame): Add tool_bar_position.
1891 (Qbottom): Declare.
1892
1893 * frame.c (Qtool_bar_position): New variable.
1894 (make_frame): Set tool_bar_position to Qtop.
1895 (frame_parms): Add tool-bar-position.
1896 (x_report_frame_params): Store tool_bar_position.
1897 (x_set_fringe_width): Reset wm size hint after fringe changes.
1898
26469a38
DN
18992010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1900
1901 Make lisp_time_argument declaration work on all systems.
1902 * lisp.h (lisp_time_argument): Move declaration ...
1903 * systime.h (lisp_time_argument): ... here
1904 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
1905
8848b728
JD
19062010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1907
1908 * vm-limit.c (POINTER): Add typedef for it.
1909 (start_of_data): Change return type from POINTER to char *.
1910
1911 * frame.h (Qtty_color_mode): Move declaration out of ifdef
1912 HAVE_WINDOW_SYSTEM.
1913
76fd1ee9
DN
19142010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1915
0441987e
DN
1916 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
1917 Remove reference to __osf__, unused.
1918
56a000c7
DN
1919 * mem-limits.h: Remove duplicated includes.
1920 (NULL): Remove definition, unused.
1921 (POINTER): Remove definition.
1922 (start_of_data): Use char* in prototype, as the function
1923 definition does.
1924
e6cba650
DN
1925 Remove extern declarations from .c files, and them to .h files.
1926 * keyboard.h (Qhelp_echo, waiting_for_input)
1927 (input_available_clear_time, ignore_mouse_drag_p)
1928 (Vdouble_click_time, real_this_command, Vthis_original_command):
1929 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
1930 (Voverriding_local_map_menu_flag):
1931 * lisp.h (Qinteractive_form, use_file_dialog)
1932 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
1933 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
1934 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1935 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
1936 (Qfunction, debug_on_next_call, Qfield)
1937 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
1938 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
1939 (Qfile_directory_p, Qinsert_file_contents)
1940 (Qcompletion_ignore_case, Qcompletion_ignore_case)
1941 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
1942 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
1943 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
1944 (Qminibuffer_prompt)
1945 (Vtemporary_file_directory,char_ins_del_vector, Qface):
1946 * xterm.h (gray_bitmap_width, gray_bitmap_height)
1947 (gray_bitmap_bits, xic_create_fontsetname):
1948 * coding.h (Vtranslation_table_for_input): Add extern declarations.
1949
1950 * xsmfns.c (Vuser_login_name):
1951 * xrdb.c (Vdouble_click_time):
1952 * xfaces.c (xic_create_fontsetname):
1953 * w32select.c (waiting_for_input):
1954 * print.c (minibuffer_auto_raise):
1955 * msdos.c (Qhelp_echo):
1956 * macros.c (real_this_command):
1957 * keymap.c (Voverriding_local_map):
1958 * xterm.c (poll_for_input_1, gray_bitmap_width)
1959 (gray_bitmap_height, gray_bitmap_bits;
1960 * xmenu.c ( Voverriding_local_map)
1961 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
1962 (use_file_dialog, Xt_app_con):
1963 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
1964 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
1965 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
1966 (Qtool_bar_lines, ignore_mouse_drag_p):
1967 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
1968 (Qrear_nonsticky, nconc2):
1969 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
1970 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
1971 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
1972 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
1973 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
1974 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
1975 (gc_in_progress):
1976 * doc.c (Voverriding_local_map, Qremap):
1977 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
1978 (Vcompletion_regexp_list):
1979 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
1980 (Qcompletion_ignore_case):
1981 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
1982 (Vhistory_length, Vthis_original_command, real_this_command)
1983 (Qface, Qminibuffer_prompt, history_delete_duplicates):
1984 * image.c (Qrisky_local_variable):
1985 * fontset.c (QCname):
1986 * fns.c (minibuffer_auto_raise, QCname):
1987 * dispnew.c (char_ins_del_cost):
1988 * composite.c (font_fill_lglyph_metrics):
1989 * cmds.c (Qface, Vtranslation_table_for_input):
1990 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
1991 * ccl.c (charset_unicode):
1992 * callproc.c (Vtemporary_file_directory):
1993 * buffer.c (emacs_strerror): Remove extern declarations.
1994
1995 * data.c (Qwindow): Make non-static, used from other files too.
1996 * frame.c (validate_x_resource_name): Remove shadow definition for i.
1997
76fd1ee9
DN
1998 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
1999 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
2000 * s/usg5-4.h (COFF):
2001 * s/template.h:
2002 * s/msdos.h (COFF, NO_REMAP):
2003 * s/ms-w32.h (NO_REMAP):
2004 * s/hpux10-20.h (NO_REMAP):
2005 * m/sparc.h (SEGMENT_MASK):
2006 * m/m68k.h (NO_REMAP):
2007 * m/intel386.h (SEGMENT_MASK):
2008 * m/arm.h (NO_REMAP):
2009 * m/alpha.h (COFF):
2010 * m/template.h: Remove references to unused defines.
2011
8a52f00a
JD
20122010-07-28 Jan Djärv <jan.h.d@swipnet.se>
2013
2014 * xsettings.c (Ftool_bar_get_system_style): Also check for
2015 Qtext_image_horiz.
2016
2017 * xdisp.c (Qtext_image_horiz): Define.
2018 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 2019 to documentation of tool-bar-style.
8a52f00a
JD
2020
2021 * lisp.h (Qtext_image_horiz): Declare.
2022
2023 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
2024 style text_image_horiz.
2025
89dc303e
DN
20262010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2027
60799703
DN
2028 * emacs.c (Fkill_emacs): Remove return statement.
2029
37254dc1
DN
2030 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
2031 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
2032 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
2033 local extern declarations.
2034
71c7345a
DN
2035 * xmenu.c: Do not included lwlib.h, not needed.
2036
6ba577cb
DN
2037 * m/iris4d.h (XUINT, XSET): Remove, not needed.
2038
fdb183d6
DN
2039 * process.c: Move definitions earlier to minimize #ifdefs.
2040
2041 * xterm.h (x_get_customization_string, x_load_resources)
2042 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
2043 (x_check_errors, x_property_data_to_lisp, defined_color)
2044 (xic_set_xfontset, x_defined_color): Use const.
2045
2046 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
2047 (x_text_icon, x_check_errors, x_connection_closed): Use const.
2048
2049 * xselect.c (selection_data_to_lisp_data)
2050 (x_property_data_to_lisp):
2051 * xrdb.c (x_get_string_resource, file_p)
2052 (x_get_customization_string, magic_file_p, search_magic_path)
2053 (get_system_app, get_user_app, x_load_resources, x_get_resource)
2054 (x_get_string_resource): Use const.
2055
2056 * xfns.c: Include xlwmenu.h when USE_LUCID.
2057 (x_defined_color, xic_set_xfontset): Use const.
2058 (Fx_hide_tip): Remove local extern declaration.
2059
2060 * xfaces.c (Qmouse_face): Remove declaration.
2061 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 2062 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
2063
2064 * xdisp.c (do_mouse_tracking): Remove declaration.
2065 (add_to_log): Use const.
2066
2067 * minibuf.c (Qmouse_face): Remove declaration.
2068
2069 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
2070
2071 * keyboard.h (do_mouse_tracking): Add declaration.
2072
2073 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
2074 (QCdata, QCtype, Qcenter): Remove declarations.
2075
2076 * frame.c (x_get_resource_string, x_get_string_resource)
2077 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2078 (x_default_parameter): Use const.
2079
2080 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
2081 (QCheight, QCsize, QCname): Remove declarations.
2082
2083 * emacs.c (main): Remove local extern declaration.
2084
2085 * editfns.c (region_limit, syms_of_editfns): Remove local extern
2086 declarations.
2087
2088 * dispnew.c: Remove duplicate #include <unistd.h>.
2089 (update_window, update_frame_1, init_display): Remove local extern
2090 declarations.
2091
2092 * dispextern.h (add_to_log): Remove declaration.
2093 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2094 (x_frame_get_and_record_arg, x_default_parameter): Add const.
2095
2096 * dired.c (scmp): Add const.
2097 (directory_files_internal): Remove local extern declaration.
2098
2099 * data.c (Finteractive_form): Use const.
2100
2101 * composite.c (syms_of_composite): Remove local extern declarations.
2102
2103 * charset.c (add_to_log): Remove declaration.
2104
2105 * character.c (strwidth, parse_str_to_multibyte): Add const.
2106
2107 * character.h (strwidth, parse_str_to_multibyte): Likewise.
2108
2109 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
2110
89dc303e 2111 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
2112 (Lisp_Subr): Make doc and intspec constant.
2113 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
2114 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
2115 (QCheight, QCsize, QCname, QCwidth, QCforeground)
2116 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
2117 (display_arg): Add declarations.
89dc303e 2118
0ed082fe 21192010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
2120
2121 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
2122
0ed082fe
JB
2123 * window.c (Fwindow_height): Doc fix (bug#6518).
2124
21252010-07-27 Juanma Barranquero <lekktu@gmail.com>
2126
2127 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
2128
ccaf0336
DN
21292010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
2130
977105dc
DN
2131 * keyboard.c (Ftop_level, Fexit_recursive_edit)
2132 (Fabort_recursive_edit): Remove return statements in NO_RETURN
2133 functions.
2134
f5ada890
DN
2135 * frame.h (Qtty_color_mode): Add declaration.
2136
ccaf0336
DN
2137 * lisp.h (Ftop_level, Fexit_recursive_edit)
2138 (Fabort_recursive_edit): Mark as NO_RETURN.
2139
dfe3c90f
KH
21402010-07-26 Kenichi Handa <handa@m17n.org>
2141
2142 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 2143 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 2144
7d383292
JB
21452010-07-26 Juanma Barranquero <lekktu@gmail.com>
2146
2147 * lread.c (unreadpure, mapatoms_1): Make static.
2148
da31e629
JB
21492010-07-25 Juanma Barranquero <lekktu@gmail.com>
2150
2151 * terminfo.c (tparam): Fix prototype of tparm.
2152
7bfa6d77
AS
21532010-07-25 Andreas Schwab <schwab@linux-m68k.org>
2154
dcc19aac
AS
2155 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
2156 find start of text segment.
2157 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
2158 is defined.
2159
7bfa6d77
AS
2160 * callproc.c (set_initial_environment): Avoid unbalanced braces.
2161
63f9a672
KB
21622010-07-25 Ken Brown <kbrown@cornell.edu>
2163
2164 * vm-limit.c (check_memory_limits): Fix previous change;
2165 accidentally reverted an earlier change.
2166
24933075
KB
21672010-07-25 Ken Brown <kbrown@cornell.edu>
2168
2169 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
2170 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
2171
361358ea
JB
21722010-07-25 Juanma Barranquero <lekktu@gmail.com>
2173
2174 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
2175 * dired.c (opendir, readdir): Fix prototypes.
2176 * editfns.c (w32_get_internal_run_time): Fix prototypes.
2177 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
2178 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
2179 (telldir): Remove declaration.
2180 * ralloc.c (real_morecore, __morecore): Fix prototypes.
2181 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
2182 * syssignal.h (strsignal): Fix prototype.
2183 * term.c (tparam): Fix prototype.
2184 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
2185 (term_get_fkeys): Set inside "#ifndef DOS_NT".
2186 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
2187 and __morecore.
2188 * w32gui.h (XParseGeometry): Fix prototype.
2189 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
2190 * w32term.c (my_set_focus): Declare inside #if 0.
2191 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
2192 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
2193 (drain_message_queue, get_next_msg, post_msg, parse_button)
2194 (ClipboardSequence_Proc): Fix prototypes.
2195 (wait_for_sync): Remove declaration.
2196
630b9592
JB
21972010-07-24 Juanma Barranquero <lekktu@gmail.com>
2198
2199 * w32fns.c (w32_to_x_color): Remove, unused.
2200
6a0d6611
AS
22012010-07-24 Andreas Schwab <schwab@linux-m68k.org>
2202
2203 * lisp.h: Remove leftover P_.
2204
4e8608ff
DN
22052010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
2206
2207 * ecrt0.c, unexalpha.c: Remove files, unused.
2208
c8197983
AS
22092010-07-24 Andreas Schwab <schwab@linux-m68k.org>
2210
2211 * cmds.c (internal_self_insert): Make static.
2212 * lisp.h (internal_self_insert): Remove declaration.
2213
97b372d7
JB
22142010-07-23 Juanma Barranquero <lekktu@gmail.com>
2215
33ac0414
JB
2216 * alloc.c (free_float):
2217 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
2218 * frame.c (delete_frame_handler):
2219 * ralloc.c (reorder_bloc):
2220 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
2221 Remove unused static functions.
2222
94da8397
JB
2223 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
2224 it is called only from NS code.
2225
2e6c8532
JB
2226 * w32term.c (my_set_focus): #ifdef away; it is called only from
2227 "#ifdef 0" code.
2228
97b372d7
JB
2229 * w32fns.c (x_edge_detection):
2230 * xfaces.c (may_use_scalable_font_p):
2231 Remove obsolete static declarations.
2232
7c3320d8
JB
22332010-07-20 Juanma Barranquero <lekktu@gmail.com>
2234
2235 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
2236 (emacs_blocked_realloc, uninterrupt_malloc):
2237 * fringe.c (w32_reset_fringes):
2238 * image.c (convert_mono_to_color_image, lookup_rgb_color)
2239 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
2240 * sound.c (be2hs, do_play_sound):
2241 * vm-limit.c (get_lim_data, ret_lim_data):
2242 * w32term.c (x_free_frame_resources):
2243 * xfaces.c (x_create_gc, x_free_gc):
2244 Convert definitions to standard C.
2245
d5273788
SM
22462010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
2247
2248 * eval.c (Feval, Ffuncall): Use the new names.
2249
2250 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
2251 (DEFUN): Add braces around the union initialisation and use ## to
2252 specify the right union alternative and avoid a cast.
2253
8d16a259
JB
22542010-07-18 Juanma Barranquero <lekktu@gmail.com>
2255
2256 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
2257
3b8eff32
CY
22582010-07-17 Chong Yidong <cyd@stupidchicken.com>
2259
2260 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
2261
499322ce
J
22622010-07-17 Jan Djärv <jan.h.d@swipnet.se>
2263
2264 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
2265 is related to the menu bar (Bug#6499).
a628ad9d 2266 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 2267
f6003da5 22682010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
2269
2270 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
2271
2272 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
2273
2274 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
2275 i.e. don't put back ButtonRelease (Bug#6608).
2276
2277 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
2278 instead of Window. Call xg_event_is_for_menubar when
2279 USE_GTK (Bug#6499).
2280
2281 * gtkutil.h (xg_event_is_for_menubar): Declare.
2282
2283 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
2284
f6003da5 22852010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
2286
2287 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
2288 when it's the same as the old foreground. (Bug#6609)
2289
23243f29
J
22902010-07-16 Jan Djärv <jan.h.d@swipnet.se>
2291
2292 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
2293 widget is non-null (Bug#6645).
2294
2b23d2a6
AS
22952010-07-15 Andreas Schwab <schwab@linux-m68k.org>
2296
01b564ff
AS
2297 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
2298 Convert old-style definition.
2299
2b23d2a6
AS
2300 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
2301 timestamp argument.
2302
c4affd2c
EZ
23032010-07-15 Eli Zaretskii <eliz@gnu.org>
2304
2305 * fringe.c (update_window_fringes): Restore mistakenly reverted
2306 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
2307
cf28cebc
J
23082010-07-14 Jan Djärv <jan.h.d@swipnet.se>
2309
2310 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
2311 (SET_SAVED_KEY_EVENT): Remove (not used).
2312 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
2313 remove size parameter.
2314 (handle_one_xevent): Check popup_activated () for menu for Xt also.
2315 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
2316 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
2317 ButtonRelease.
6b2c4bd9
J
2318 (x_set_window_size_1): scroll_bar_actual_width is always
2319 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
2320
2321 * xdisp.c (pending_menu_activation): Remove extern declaration.
2322 (prepare_menu_bars): Remove setting of pending_menu_activation.
2323
2324 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
2325 (x_activate_menubar): Set popup_activated_flag for Xt also.
2326 Remove setting of pending_menu_activation.
cf28cebc
J
2327 (set_frame_menubar): Remove check of pending_menu_activation.
2328 Declare menubar_size before code. Correct spelling in comment.
2329
f6c1c771
KH
23302010-07-14 Kenichi Handa <handa@m17n.org>
2331
2332 * font.c (font_open_entity): Cancel previous change.
2333 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
2334
20477505
EZ
23352010-07-13 Eli Zaretskii <eliz@gnu.org>
2336
77defa9a
EZ
2337 Remove subprocesses #ifdefs.
2338 * process.c <inhibit_sentinels>: Move to the common part.
2339 (Fwaiting_for_user_input_p): Move to the common part; return nil
2340 if async subprocesses aren't supported.
2341 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
2342 MS-DOS. Remove "#ifdef subprocesses".
2343 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
2344 (gettimeofday): Remove "#ifdef subprocesses".
2345 (wait_without_blocking): Remove function.
2346 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
2347 Remove "#ifdef subprocesses".
2348 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
2349 compiled on MS-DOS.
2350 * callproc.c (Fcall_process) [!MSDOS]: Don't call
2351 wait_for_termination on MS-DOS.
2352 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
2353 initialization of inhibit_sentinels.
2354 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
2355 subprocesses" conditional.
2356 * callproc.c (Fcall_process) [!subprocesses]: Don't call
2357 wait_for_termination, since `buffer' cannot be an integer when
2358 async subprocesses are not supported
2359 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
2360 for ifdefing away the call to Fprocess_status.
2361
20477505
EZ
2362 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
2363 away the entire body of the function.
2364
b3ffc17c
DN
23652010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
2366
01faa934
DN
2367 Remove subprocesses #ifdefs from term.c.
2368 * process.c (add_keyboard_wait_descriptor)
2369 (delete_keyboard_wait_descriptor): Move to common section, do
2370 nothing when subprocesses is not defined.
a628ad9d
JB
2371 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
2372 Remove subprocesses #ifdefs.
01faa934 2373
b3ffc17c
DN
2374 Convert maybe_fatal to standard C.
2375 * lisp.h (verror): Declare.
2376 * eval.c (verror): New function containing the code from ...
2377 (error): ... this. Call verror.
2378 * term.c (vfatal): New function containing the code from ...
2379 (fatal): ... this. Call vfatal.
2380 (maybe_fatal): Convert to standard C, use variable number of
2381 arguments. Declare as non-return.
2382 (init_tty): Fix maybe_fatal call.
2383
0521f580
DN
23842010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2385
2386 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
2387 (_scroll_bar_note_movement): Convert definitions to standard C.
2388 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
2389 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
2390
ebd15611
DN
23912010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2392
2393 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
2394 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
2395 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
2396 (xaw_jump_callback, xaw_scroll_callback)
2397 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
2398 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
2399 definitions to standard C.
2400 * xmenu.c (menubar_id_to_frame, popup_get_selection)
2401 (popup_activate_callback, popup_deactivate_callback)
2402 (menu_highlight_callback, menubar_selection_callback)
2403 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
2404 (free_frame_menubar, popup_selection_callback, as)
2405 (create_and_show_popup_menu, dialog_selection_callback)
2406 (create_and_show_dialog):
2407 * xfns.c (hack_wm_protocols, x_window):
2408 * xfaces.c (x_update_menu_appearance):
2409 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
2410 (char_to_pixel_size, round_size_to_char, get_wm_shell)
2411 (set_frame_size, update_wm_hints, setup_frame_gcs)
2412 (update_various_frame_slots, update_from_various_frame_slots)
2413 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
2414 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
2415 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
2416
de06a2dd
AS
24172010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2418
a628ad9d 2419 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 2420
fc549af9
EZ
24212010-07-12 Eli Zaretskii <eliz@gnu.org>
2422
2423 * process.c (setup_process_coding_systems): Move to the part
2424 shared by non-subprocesses systems, and make its body empty when
2425 subprocesses is not defined.
2426 (close_process_descs): Move to the part shared by non-subprocesses
2427 systems.
1408902e
EZ
2428 (wait_reading_process_output) [!subprocesses]: Convert arg list to
2429 ANSI C.
fc549af9 2430
d5a3eaaf
AS
24312010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2432
2433 * editfns.c (transpose_markers): Convert old-style definition.
2434 * emacs.c (abort, shut_down_emacs, fixup_locale)
2435 (synchronize_system_time_locale)
2436 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
2437 * floatfns.c (extract_float, matherr, init_floatfns)
2438 (syms_of_floatfns): Likewise.
2439 * fns.c (make_hash_table): Likewise.
2440 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
2441 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
2442 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
2443 (ftfont_variation_glyphs): Likewise.
2444 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
2445 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
2446 * lread.c (read_filtered_event): Likewise.
2447 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
2448 * process.c (wait_reading_process_output): Likewise.
2449 * scroll.c (do_line_insertion_deletion_costs): Likewise.
2450 * search.c (search_buffer, boyer_moore): Likewise.
2451 * syntax.c (scan_sexps_forward): Likewise.
2452 * xdisp.c (try_scrolling): Likewise.
2453 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
2454 (face_at_string_position): Likewise.
2455 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
2456 * xselect.c (x_get_window_property, receive_incremental_selection)
2457 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
2458 Likewise.
2459 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
2460
6f704c76
DN
24612010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2462
ded80a25
DN
2463 * callproc.c (child_setup): Remove subprocesses conditional.
2464 Remove code dealing with SET_EMACS_PRIORITY, unused.
2465
49d937f4 2466 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
2467 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
2468
2469 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
2470 (__do_global_dtors, __main): Use void in definition.
2471 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
2472 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
2473 the only users from ...
2474 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
2475 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
2476 (HAVE_VOLATILE): Remove, unused.
2477
6f704c76
DN
2478 Convert more function definitions to standard C.
2479 * xdisp.c (window_box_edges, handle_single_display_spec)
2480 (display_string): Convert definition to standard C.
2481 * scroll.c (do_direct_scrolling, scrolling_1):
2482 * dispnew.c (allocate_matrices_for_frame_redisplay)
2483 (mirrored_line_dance):
2484 * coding.c (code_convert_string):
2485 * charset.c (map_charset_chars):
2486 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
2487 (Fregister_ccl_program, Fregister_code_conversion_map):
2488 * keyboard.c (kbd_buffer_nr_stored): Likewise.
2489 (head_table): Make static and const.
2490
e6cfa7c3
AS
24912010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2492
2493 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
2494 (PROFILING_LDFLAGS): Set from substitution.
2495 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
2496 CFLAGS last.
2497
892dd565
KH
24982010-07-12 Kenichi Handa <handa@m17n.org>
2499
6f2cdcd1
KH
2500 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
2501 (shortlisp): Likewise.
2502
892dd565
KH
2503 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
2504
2505 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
2506 of FONT_ENTITY_INDEX.
2507 (Ffont_get): If KEY is :otf and the font-object doesn't have the
2508 property, get the property value dynamically.
2509 (Ffont_put): Accept font-entity and font-object too.
2510 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
2511 return value changed.
2512 (syms_of_font): Adjusted for the above change.
2513
ae96d47a
AS
25142010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2515
c8fc18ee
AS
2516 * blockinput.h: Remove obsolete comment.
2517
89887d67
AS
2518 * lisp.h: Include <stddef.h>.
2519 (OFFSETOF): Don't define.
2520 (VECSIZE): Use offsetof instead of OFFSETOF.
2521 (PSEUDOVECSIZE): Likewise.
2522 * process.c (conv_sockaddr_to_lisp): Likewise.
2523 * alloc.c: Don't include <stddef.h>.
2524 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
2525
ae96d47a
AS
2526 * process.c: Remove obsolete comment.
2527
635c0aa1
CY
25282010-07-11 Chong Yidong <cyd@stupidchicken.com>
2529
2530 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
2531
a64df650
AS
25322010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2533
8966b757
AS
2534 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
2535 index, rindex.
2536 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
2537 * editfns.c (Fuser_full_name, Fformat): Likewise.
2538 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
2539 * fileio.c (Ffile_symlink_p): Likewise.
2540 * filelock.c (current_lock_owner): Likewise.
2541 * font.c (font_parse_name, font_parse_family_registry): Likewise.
2542 * fontset.c (fontset_pattern_regexp): Likewise.
2543 * lread.c (read1): Likewise.
2544 * sysdep.c (init_system_name): Likewise.
2545 * xfns.c (select_visual): Likewise.
2546 * s/hpux10-20.h (index, rindex): Don't define.
2547 * s/ms-w32.h (index): Likewise.
2548 * s/usg5-4.h: Likewise.
2549
cf237e27
AS
2550 * callproc.c (relocate_fd): Use F_DUPFD if defined.
2551
a8fe7202
AS
2552 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
2553 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
2554 (egetenv): Likewise.
2555 * doprnt.c (doprnt): Likewise.
2556 * editfns.c (set_time_zone_rule, format2): Likewise.
2557 * emacs.c (decode_env_path): Likewise.
2558 * eval.c (signal_error, error): Likewise.
2559 * insdel.c (replace_range_2): Likewise.
2560 * keyboard.c (cmd_error_internal): Likewise.
2561 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
2562 * print.c (write_string, write_string_1, print_error_message):
2563 Likewise.
2564 * vm-limit.c (warn_function, memory_warnings): Likewise.
2565 * xdisp.c (message1, message1_nolog, message_with_string)
2566 (vmessage, message, message_nolog): Likewise.
2567 * emacs.c: Remove duplicate declaration.
2568 * keyboard.h: Likewise.
2569 * lisp.h: Update prototypes.
2570
bb8e180f
AS
2571 * eval.c: Fix indentation problem.
2572
83380e65
AS
2573 * keyboard.c: Include "process.h"
2574
a64df650
AS
2575 * eval.c: Remove obsolete noinline declaration.
2576 * fns.c: Likewise.
2577
6a8033e1
KR
25782010-07-11 Ken Raeburn <raeburn@raeburn.org>
2579
2580 * doprnt.c (doprnt): Take a va_list argument instead of count and
2581 pointer.
2582 * eval.c (error): Change to a standard-C variadic function.
2583 * xdisp.c (vmessage): Renamed from message, made static, and
2584 changed to take a va_list argument.
2585 (message): New variadic wrapper.
2586 (message_nolog): Now a variadic function, calling vmessage.
2587 * lisp.h: Include stdarg.h for va_list.
2588 (doprnt, error, message, message_nolog): Decls updated.
2589
462aa963
EZ
25902010-07-11 Eli Zaretskii <eliz@gnu.org>
2591
2592 * process.c (syms_of_process) <delete-exited-processes>: Define
2593 even if !subprocesses.
2594 (delete_exited_processes): Ditto.
2595
2596 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
2597 (delete_exited_processes): Don't define.
2598
48104462
CY
25992010-07-10 Chong Yidong <cyd@stupidchicken.com>
2600
2601 * frame.c (make_frame): Initialize menu_bar_lines and
2602 tool_bar_lines members.
2603 (make_initial_frame, make_terminal_frame): Initialize
2604 menu_bar_lines using value of menu-bar-mode.
2605
2606 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
2607
f388c88a
EZ
26082010-07-10 Eli Zaretskii <eliz@gnu.org>
2609
2610 * process.c: Reshuffle #include's. Condition some of the global
2611 and static variables on `subprocesses'.
2612 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2613 Leave only one implementation.
2614 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
2615 (kill_buffer_processes, Flist_system_processes)
2616 (Fprocess_attributes, init_process, syms_of_process): Unify the
2617 implementations for with subprocesses and without them.
2618
723f5a07
J
26192010-07-09 Jan Djärv <jan.h.d@swipnet.se>
2620
2621 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
2622 correct size for Motif.
2623 (free_frame_menubar): Call x_set_window_size to update frame size.
2624
2625 * xfns.c (x_window): Set borderWidth to 0 for pane and
2626 EmacsFrame. Frame size calculation is wrong otherwise.
2627
2536a4b7
MA
26282010-07-09 Michael Albinus <michael.albinus@gmx.de>
2629
2630 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
2631 allows to suppress errors when polling in Emacs' main loop.
2632 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
2633 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2634 (Fdbus_method_error_internal, Fdbus_send_signal)
2635 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
2636 (Fdbus_register_method): Use it. (Bug#6579)
2637
5842a27b
DN
26382010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2639
2640 * alloc.c: Convert DEFUNs to standard C.
2641 * buffer.c:
2642 * bytecode.c:
2643 * callint.c:
2644 * callproc.c:
2645 * casefiddle.c:
2646 * casetab.c:
2647 * category.c:
2648 * character.c:
2649 * charset.c:
2650 * chartab.c:
2651 * cmds.c:
2652 * coding.c:
2653 * composite.c:
2654 * data.c:
2655 * dbusbind.c:
2656 * dired.c:
2657 * dispnew.c:
2658 * doc.c:
2659 * dosfns.c:
2660 * editfns.c:
2661 * emacs.c:
2662 * eval.c:
2663 * fileio.c:
2664 * filelock.c:
2665 * floatfns.c:
2666 * fns.c:
2667 * font.c:
2668 * fontset.c:
2669 * frame.c:
2670 * fringe.c:
2671 * image.c:
2672 * indent.c:
2673 * insdel.c:
2674 * keyboard.c:
2675 * keymap.c:
2676 * lread.c:
2677 * macros.c:
2678 * marker.c:
2679 * menu.c:
2680 * minibuf.c:
2681 * msdos.c:
2682 * nsfns.m:
2683 * nsmenu.m:
2684 * nsselect.m:
2685 * print.c:
2686 * process.c:
2687 * search.c:
2688 * sound.c:
2689 * syntax.c:
2690 * term.c:
2691 * terminal.c:
2692 * textprop.c:
2693 * undo.c:
2694 * w16select.c:
2695 * w32console.c:
2696 * w32fns.c:
2697 * w32font.c:
2698 * w32menu.c:
2699 * w32proc.c:
2700 * w32select.c:
2701 * window.c:
2702 * xdisp.c:
2703 * xfaces.c:
2704 * xfns.c:
2705 * xmenu.c:
2706 * xselect.c:
2707 * xsettings.c:
2708 * xsmfns.c: Likewise.
2709
d568829b
EZ
27102010-07-08 Eli Zaretskii <eliz@gnu.org>
2711
2712 * process.c (kbd_is_on_hold, hold_keyboard_input)
2713 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
2714
52214050
J
27152010-07-08 Jan Djärv <jan.h.d@swipnet.se>
2716
2717 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
2718 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
2719 unless USE_LUCID.
2720
313d9eb2
DN
27212010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2722
a628ad9d
JB
2723 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
2724 declaration.
d8825aa3 2725
295d0d8f
DN
2726 Clean up include guards.
2727 * tparam.c: Remove include guards for config.h, string.h and code
2728 that assumes #ifndef emacs.
2729 * termcap.c:
2730 * unexalpha.c:
2731 * sysdep.c:
2732 * filemode.c:
2733 * filelock.c:
2734 * bidi.c: Likewise.
2735
49d9e6b0
DN
2736 Remove prefix-args.c
2737 * prefix-args.c: Remove file.
2738 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
2739 * Makefile.in (temacs${EXEEXT}): Remove references to
2740 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
2741 (mostlyclean): Remove reference to prefix-args.
2742 (prefix-args): Remove.
2743
313d9eb2
DN
2744 Simplify cstart_of_data, start_of_code and related code.
2745 * mem-limits.h: Remove !emacs and _LIBC conditional code.
2746 (start_of_data): Merge into start_of_data function.
2747 * sysdep.c (start_of_text): Remove. Move simplified versions of
2748 it in the only users: unexaix.c and unexec.c.
2749 (read_input_waiting): Remove local declaration of quit_char.
2750 (start, etext): Remove declarations.
2751 (start_of_data): Merge with the version in mem-limits.h and move
2752 to vm-limits.c.
2753 * vm-limit.c (start_of_data): Merged and simplified version of the
2754 code formerly in mem-limits.h and sysdep.c.
2755 * unexec.c (start): New declaration, moved from sysdep.c.
2756 (start_of_text): Simplified version of the code formerly in sysdep.c.
2757 * unexaix.c (start_of_text): Simplified version of the code
2758 formerly in sysdep.c.
2759 * m/alpha.h (HAVE_TEXT_START): Remove.
2760 (TEXT_START): Move ...
2761 * unexalpha.c (TEXT_START): ... here.
2762 * s/hpux10-20.h (TEXT_START): Remove.
2763 * s/darwin.h (TEXT_START):
2764 * m/mips.h (TEXT_START):
2765 * m/macppc.h (HAVE_TEXT_START):
2766 * m/m68k.h (TEXT_START):
2767 * m/iris4d.h (TEXT_START):
2768 * m/intel386.h (TEXT_START):
2769 * m/ibmrs6000.h (TEXT_START):
2770 * m/ia64.h (HAVE_TEXT_START):
2771 * s/msdos.h (TEXT_START): Likewise.
2772
72af86bd
AS
27732010-07-07 Andreas Schwab <schwab@linux-m68k.org>
2774
2775 * alloc.c (overrun_check_malloc, overrun_check_realloc)
2776 (overrun_check_free, xstrdup, allocate_string)
2777 (allocate_string_data, compact_small_strings, Fmake_string)
2778 (make_unibyte_string, make_multibyte_string)
2779 (make_string_from_bytes, make_specified_string, make_float)
2780 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
2781 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
2782 memcpy, memmove, memset, memcmp.
2783 * atimer.c (start_atimer, set_alarm): Likewise.
2784 * buffer.c (clone_per_buffer_values, report_overlay_modification)
2785 (mmap_realloc, init_buffer_once): Likewise.
2786 * callint.c (Fcall_interactively): Likewise.
2787 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
2788 (getenv_internal_1): Likewise.
2789 * casefiddle.c (casify_object): Likewise.
2790 * ccl.c (ccl_driver): Likewise.
2791 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
2792 * charset.c (load_charset_map_from_file)
2793 (load_charset_map_from_file, load_charset_map_from_vector)
2794 (Fdefine_charset_internal): Likewise.
2795 * cm.c (Wcm_clear): Likewise.
2796 * coding.c (decode_eol, decode_coding_object)
2797 (Fset_coding_system_priority, make_subsidiaries): Likewise.
2798 * data.c (Faset): Likewise.
2799 * dired.c (directory_files_internal, file_name_completion_stat):
2800 Likewise.
2801 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
2802 (clear_glyph_row, copy_row_except_pointers)
2803 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
2804 (save_current_matrix, restore_current_matrix)
2805 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
2806 (mirror_line_dance, scrolling_window): Likewise.
2807 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
2808 Likewise.
2809 * doprnt.c (doprnt): Likewise.
2810 * editfns.c (Fuser_full_name, make_buffer_string_both)
2811 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
2812 * emacs.c (sort_args): Likewise.
2813 * eval.c (Fapply, Ffuncall): Likewise.
2814 * fileio.c (Ffile_name_directory, make_temp_name)
2815 (Fexpand_file_name, search_embedded_absfilename)
2816 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
2817 (auto_save_error): Likewise.
2818 * fns.c (Fstring_equal, Fcopy_sequence, concat)
2819 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
2820 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
2821 (Fmake_hash_table): Likewise.
2822 * fringe.c (Fdefine_fringe_bitmap): Likewise.
2823 * ftfont.c (ftfont_text_extents): Likewise.
2824 * getloadavg.c (getloadavg): Likewise.
2825 * image.c (define_image_type, make_image, make_image_cache)
2826 (x_create_x_image_and_pixmap, xbm_image_p)
2827 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
2828 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
2829 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
2830 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
2831 (tiff_image_p, tiff_read_from_memory, gif_image_p)
2832 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
2833 Likewise.
2834 * indent.c (scan_for_column, compute_motion): Likewise.
2835 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
2836 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
2837 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
2838 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
2839 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
2840 (store_user_signal_events, menu_bar_items, tool_bar_items)
2841 (process_tool_bar_item, append_tool_bar_item)
2842 (read_char_minibuf_menu_prompt, read_key_sequence)
2843 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
2844 Likewise.
2845 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
2846 Likewise.
2847 * lisp.h (STRING_COPYIN): Likewise.
2848 * lread.c (Fload, read1, oblookup): Likewise.
2849 * msdos.c (Frecent_doskeys): Likewise.
2850 * nsfns.m (Fx_create_frame): Likewise.
2851 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
2852 Likewise.
2853 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
2854 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
2855 Likewise.
2856 * nsmenu.m (ns_update_menubar): Likewise.
2857 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
2858 * print.c (print_unwind, printchar, strout, print_string)
2859 (print_error_message): Likewise.
2860 * process.c (conv_lisp_to_sockaddr, set_socket_option)
2861 (Fmake_network_process, Fnetwork_interface_list)
2862 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
2863 (init_process): Likewise.
2864 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
2865 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
2866 Likewise.
2867 * scroll.c (do_scrolling, do_direct_scrolling)
2868 (scrolling_max_lines_saved): Likewise.
2869 * search.c (search_buffer, wordify, Freplace_match): Likewise.
2870 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
2871 * syntax.c (skip_chars, skip_syntaxes): Likewise.
2872 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
2873 (emacs_set_tty): Likewise.
2874 * term.c (encode_terminal_code, calculate_costs)
2875 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
2876 Likewise.
2877 * termcap.c (tgetst1, gobble_line): Likewise.
2878 * termhooks.h (EVENT_INIT): Likewise.
2879 * tparam.c (tparam1): Likewise.
2880 * unexalpha.c (unexec): Likewise.
2881 * unexec.c (write_segment): Likewise.
2882 * unexmacosx.c (unexec_write_zero): Likewise.
2883 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
2884 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
2885 * w32font.c (w32font_list_family, w32font_text_extents)
2886 (w32font_list_internal, w32font_match_internal)
2887 (w32font_open_internal, compute_metrics, Fx_select_font):
2888 Likewise.
2889 * w32menu.c (set_frame_menubar, add_menu_item)
2890 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
2891 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
2892 * w32uniscribe.c (uniscribe_list_family): Likewise.
2893 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
2894 * window.c (make_window, replace_window, set_window_buffer)
2895 (Fsplit_window): Likewise.
2896 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
2897 (add_to_log, message3, x_consider_frame_title)
2898 (append_space_for_newline, extend_face_to_end_of_line)
2899 (decode_mode_spec_coding, init_glyph_string): Likewise.
2900 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
2901 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
2902 (face_attr_equal_p, make_realized_face, make_face_cache)
2903 (free_realized_faces, lookup_named_face, smaller_face)
2904 (face_with_height, lookup_derived_face)
2905 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
2906 (Finternal_set_font_selection_order, realize_default_face)
2907 (compute_char_face, face_at_buffer_position)
2908 (face_for_overlay_string, face_at_string_position, merge_faces):
2909 Likewise.
2910 * xfns.c (xic_create_fontsetname, Fx_create_frame)
2911 (Fx_window_property, x_create_tip_frame)
2912 (Fx_backspace_delete_keys_p): Likewise.
2913 * xfont.c (xfont_list, xfont_match, xfont_list_family)
2914 (xfont_text_extents): Likewise.
2915 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
2916 * xrdb.c (magic_file_p, x_get_resource): Likewise.
2917 * xselect.c (x_queue_event, x_get_window_property)
2918 (receive_incremental_selection): Likewise.
2919 * xsmfns.c (x_session_check_input): Likewise.
2920 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
2921 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
2922 Likewise.
2923 * character.h (BCOPY_SHORT): Removed.
2924 * config.in: Regenerate.
2925 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
2926 * emacs.c (main) [PROFILING]: Don't declare
2927 dump_opcode_frequencies.
2928 * lisp.h (safe_bcopy): Remove declaration.
2929 (memset) [!HAVE_MEMSET]: Declare.
2930 (memcpy) [!HAVE_MEMCPY]: Likewise.
2931 (memmove) [!HAVE_MEMMOVE]: Likewise.
2932 (memcmp) [!HAVE_MEMCMP]: Likewise.
2933 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
2934 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
2935 Don't define.
2936 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
2937 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
2938 (BCOPY_DOWNWARD_SAFE): Don't define.
2939 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
2940 (memcpy) [!HAVE_MEMCPY]: Define.
2941 (memmove) [!HAVE_MEMMOVE]: Define.
2942 (memcmp) [!HAVE_MEMCMP]: Define.
2943
cb768704
J
29442010-07-07 Jan Djärv <jan.h.d@swipnet.se>
2945
2946 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
2947 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2948 New functions.
cb768704
J
2949 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
2950 select on empty input mask.
2951 (init_process): Initialize kbd_is_on_hold to 0.
2952
2953 * process.h (hold_keyboard_input, unhold_keyboard_input)
2954 (kbd_on_hold_p): Declare.
2955
2956 * keyboard.c (input_available_signal): Declare.
2957 (kbd_buffer_nr_stored): New function.
2958 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
2959 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
2960 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
2961 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
2962 (tty_read_avail_input): If input is on hold, return.
2963 Don't read more that free slots in kbd_buffer (Bug#6571).
2964
3a8ce822
EZ
29652010-07-07 Eli Zaretskii <eliz@gnu.org>
2966
2967 * msdos.h:
2968 * msdos.c:
2969 * dosfns.c:
2970 * w16select.c: Convert function definitions to ANSI C.
2971
a628ad9d
JB
2972 * msdos.h (ctrl_break_func, install_ctrl_break_check):
2973 Remove unused prototypes.
3a8ce822 2974
cf84bb53
JB
29752010-07-07 Juanma Barranquero <lekktu@gmail.com>
2976
2977 * coding.c, sysdep.c: Convert some more functions to standard C.
2978
1a4990fb
JB
29792010-07-07 Juanma Barranquero <lekktu@gmail.com>
2980
2981 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
2982 (encode_coding_object): Use SPECPDL_INDEX.
2983 (syms_of_coding): Use DOS_NT.
2984
c0f2f16b
DN
29852010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
2986
48fb6855
DN
2987 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
2988
c0f2f16b
DN
2989 Make the function member of Lisp_Subr use standard C prototypes.
2990 * lisp.h (struct Lisp_Subr): Use a union for the function member.
2991 (DECL_ALIGN): Add a cast for the function.
2992 * eval.c (Feval, Ffuncall): Use the proper type for each type
2993 function call.
2994
67aecef9
CY
29952010-07-06 Chong Yidong <cyd@stupidchicken.com>
2996
2997 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
2998 fringe face id, so face-remapping-alist works (Bug#6091).
2999
b56ceb92
JB
30002010-07-06 Juanma Barranquero <lekktu@gmail.com>
3001
3002 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
3003 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
3004 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
3005
7af07b96
AS
30062010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3007
3008 * xterm.c (x_get_keysym_name): Change type of parameter to int.
3009 * lisp.h: Declare x_get_keysym_name.
3010 * keyboard.c (modify_event_symbol): Don't declare
3011 x_get_keysym_name here.
3012
69e24e34
DN
30132010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
3014
3015 * ecrt0.c: Revert conversion to standard C.
3016
d3da34e0 30172010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
3018
3019 * vm-limit.c (memory_warnings):
3020 * keyboard.c (modify_event_symbol):
3021 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
3022 (round2, emacs_rint):
3023 * process.c (send_process, old_sigpipe): Convert function
3024 definitions and declarations to standard C.
3025
30262010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
3027
3028 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
3029 * xdisp.c: Convert function definitions to standard C.
3030
3031 * cm.c (cmputc): Arg C is now int, not char.
3032 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
3033
00be444c
J
30342010-07-05 James Cloos <cloos@jhcloos.com>
3035
3036 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
3037
3038 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
3039 _NET_WM_ICON_NAME atoms.
3040
3041 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
3042 and _NET_WM_ICON_NAME properties, too, matching what is
3043 done in the Gtk+ case.
3044
e4c8d29a
J
30452010-07-05 Jan Djärv <jan.h.d@swipnet.se>
3046
ff919460
J
3047 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
3048
e4c8d29a
J
3049 * xsmfns.c (SSDATA): New macro.
3050 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
3051 passed to strlen/strcpy/strcat.
3052 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
70e31436 3053 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
3054
3055 * xsettings.c (something_changedCB, parse_settings)
3056 (apply_xft_settings): Reformat prototype.
3057 (something_changedCB, init_gconf): Remove unused variable i.
3058 (read_settings): Remove unused variable long_len.
3059
3060 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
3061 (xg_get_image_for_pixmap, create_dialog)
3062 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
3063 (menuitem_highlight_callback, make_menu_item)
3064 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
3065 (xg_create_scroll_bar, xg_update_scrollbar_pos)
3066 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
3067 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
3068 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
3069 (xg_tool_bar_item_expose_callback): Reformat prototype.
3070 (xg_update_menubar): GList *group => GSList *group.
3071 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
3072 before use.
3073 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
3074 to GTK_IMAGE (wimage).
3075
dd4c5104
DN
30762010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
3077
898b4c5c
DN
3078 * atimer.c: Use "" instead of <> for local includes for
3079 consistency with the rest of the code.
3080
dd4c5104
DN
3081 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
3082 * xrdb.c (get_system_name):
3083 * window.c (shrink_windows):
3084 * syntax.c (forw_comment):
3085 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
3086 (ins_del_costs):
3087 * mem-limits.h (start_of_data):
3088 * lread.c (readevalloop):
3089 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
3090 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
3091 * frame.c (x_get_focus_frame):
3092 * floatfns.c (fmod_float):
3093 * fileio.c (choose_write_coding_system):
3094 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
3095 (malloc_initialize_hook, sort_args, synchronize_locale):
3096 * doprnt.c (doprnt):
3097 * dired.c (compile_pattern):
3098 * data.c (fmod_float):
3099 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
3100 (map_char_table_for_charset):
3101 * charset.c (define_charset_internal):
3102 * alloc.c (Fgarbage_collect): Convert declarations or definitions
3103 to standard C.
3104
9a39b306 31052010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 3106 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
3107
3108 * lread.c (read1): Fix up last change to not mess up `c'.
3109
e6cb2cbb
JB
31102010-07-04 Juanma Barranquero <lekktu@gmail.com>
3111
3112 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
3113
438105ed
JB
31142010-07-04 Juanma Barranquero <lekktu@gmail.com>
3115
3116 Fix prototypes.
3117
e5447b22 3118 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 3119 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
3120 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
3121 arg, as required by internal_condition_case_1.
dcc7404b 3122 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
3123 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
3124 (analyse_first): Fix "const const".
e5447b22 3125 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 3126 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 3127 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 3128
971de7fb
DN
31292010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
3130
3131 * alloc.c: Convert function definitions to standard C.
3132 * atimer.c:
3133 * bidi.c:
3134 * bytecode.c:
3135 * callint.c:
3136 * callproc.c:
3137 * casefiddle.c:
3138 * casetab.c:
3139 * category.c:
3140 * ccl.c:
3141 * character.c:
3142 * charset.c:
3143 * chartab.c:
3144 * cmds.c:
3145 * coding.c:
3146 * composite.c:
3147 * data.c:
3148 * dbusbind.c:
3149 * dired.c:
3150 * dispnew.c:
3151 * doc.c:
3152 * doprnt.c:
3153 * ecrt0.c:
3154 * editfns.c:
3155 * fileio.c:
3156 * filelock.c:
3157 * filemode.c:
3158 * fns.c:
3159 * font.c:
3160 * fontset.c:
3161 * frame.c:
3162 * fringe.c:
3163 * ftfont.c:
3164 * ftxfont.c:
3165 * gtkutil.c:
3166 * indent.c:
3167 * insdel.c:
3168 * intervals.c:
3169 * keymap.c:
3170 * lread.c:
3171 * macros.c:
3172 * marker.c:
3173 * md5.c:
3174 * menu.c:
3175 * minibuf.c:
3176 * prefix-args.c:
3177 * print.c:
3178 * ralloc.c:
3179 * regex.c:
3180 * region-cache.c:
3181 * scroll.c:
3182 * search.c:
3183 * sound.c:
3184 * strftime.c:
3185 * syntax.c:
3186 * sysdep.c:
3187 * termcap.c:
3188 * terminal.c:
3189 * terminfo.c:
3190 * textprop.c:
3191 * tparam.c:
3192 * undo.c:
3193 * unexelf.c:
3194 * window.c:
3195 * xfaces.c:
3196 * xfns.c:
3197 * xfont.c:
3198 * xftfont.c:
3199 * xgselect.c:
3200 * xmenu.c:
3201 * xrdb.c:
3202 * xselect.c:
3203 * xsettings.c:
3204 * xsmfns.c:
3205 * xterm.c: Likewise.
3206
ae492bec
EZ
32072010-07-03 Eli Zaretskii <eliz@gnu.org>
3208
76ea4cc9
EZ
3209 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
3210 frames other than the initial one. Fix reversal of colors when
3211 `reverse' is specified in the frame parameters. Call
3212 update_face_from_frame_parameter instead of
3213 internal-set-lisp-face-attribute. Initialize screen colors from
3214 initial_screen_colors[] when f->default_face_done_p is zero,
3215 instead of depending on being called with default-frame-alist as
3216 the alist argument.
3217
3218 * xfaces.c (update_face_from_frame_parameter): Move out of
3219 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
3220 with HAVE_WINDOW_SYSTEM.
3221
1e6255ae
EZ
3222 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
3223 to menu-bar-mode, if not set in the frame parameters or in
3224 default-frame-alist.
3225
ae492bec
EZ
3226 * w32console.c (sys_tputs): Adjust argument list to prototype in
3227 term.c.
3228
3a35a84c
JB
32292010-07-03 Juanma Barranquero <lekktu@gmail.com>
3230
3231 * lisp.h (memory_warnings): Fix prototype.
3232
3233 * cm.h (evalcost): Fix prototype.
3234
3235 * cm.c (evalcost): Fix arg type.
3236
c532d349
DN
32372010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
3238
3239 * term.c (term_clear_mouse_face, Fidentity):
3240 * syssignal.h (signal_handler_t):
3241 * lisp.h (memory_warnings):
3242 * coding.h (preferred_coding_system):
3243 * cm.h (evalcost):
3244 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
3245
c0b36d46
EZ
32462010-07-02 Eli Zaretskii <eliz@gnu.org>
3247
3248 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
3249 from prototypes.
3250
3251 * msdos.h (load_pixmap): Don't define away.
3252
383e0970
J
32532010-07-02 Jan Djärv <jan.h.d@swipnet.se>
3254
f57e2426
J
3255 * lisp.h:
3256 * atimer.h: Remove define for P_.
3257
3258 * alloc.c: Remove __P and P_ from .c and .m files.
3259 * atimer.c:
3260 * buffer.c:
3261 * callint.c:
3262 * category.c:
3263 * charset.c:
3264 * chartab.c:
3265 * cm.c:
3266 * coding.c:
3267 * composite.c:
3268 * data.c:
3269 * dired.c:
3270 * dispnew.c:
3271 * doc.c:
3272 * editfns.c:
3273 * emacs.c:
3274 * eval.c:
3275 * fileio.c:
3276 * filelock.c:
3277 * fns.c:
3278 * font.c:
3279 * fontset.c:
3280 * frame.c:
3281 * ftfont.c:
3282 * ftxfont.c:
3283 * gmalloc.c:
3284 * gtkutil.c:
3285 * image.c:
3286 * indent.c:
3287 * intervals.c:
3288 * keyboard.c:
3289 * keymap.c:
3290 * lread.c:
3291 * marker.c:
3292 * menu.c:
3293 * minibuf.c:
3294 * print.c:
3295 * process.c:
3296 * scroll.c:
3297 * search.c:
3298 * sound.c:
3299 * strftime.c:
3300 * syntax.c:
3301 * sysdep.c:
3302 * term.c:
3303 * terminal.c:
3304 * textprop.c:
3305 * unexalpha.c:
3306 * w32console.c:
3307 * w32fns.c:
3308 * w32font.c:
3309 * w32menu.c:
3310 * w32term.c:
3311 * w32uniscribe.c:
3312 * window.c:
3313 * xdisp.c:
3314 * xfaces.c:
3315 * xfns.c:
3316 * xfont.c:
3317 * xftfont.c:
3318 * xmenu.c:
3319 * xselect.c:
3320 * xterm.c: Likewise.
3321
383e0970 3322 Remove P_ and __P macros.
f57e2426
J
3323 * atimer.h: Remove P_ and __P macros.
3324 * buffer.h:
383e0970
J
3325 * category.h:
3326 * ccl.h:
3327 * character.h:
3328 * charset.h:
3329 * cm.h:
3330 * coding.h:
3331 * composite.h:
3332 * dispextern.h:
3333 * disptab.h:
9e892c8d 3334 * dosfns.h:
383e0970
J
3335 * font.h:
3336 * fontset.h:
3337 * frame.h:
3338 * gtkutil.h:
3339 * indent.h:
3340 * intervals.h:
3341 * keyboard.h:
3342 * keymap.h:
3343 * lisp.h:
3344 * macros.h:
3345 * md5.h:
3346 * menu.h:
3347 * msdos.h:
3348 * nsterm.h:
3349 * puresize.h:
3350 * region-cache.h:
3351 * syntax.h:
3352 * syssignal.h:
3353 * systime.h:
3354 * termhooks.h:
9e892c8d 3355 * w32font.h:
383e0970
J
3356 * w32term.h:
3357 * widget.h:
3358 * window.h:
3359 * xgselect.h:
3360 * xsettings.h:
3361 * xterm.h: Likewise.
3362
98601119
DN
33632010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
3364
d9170db5
DN
3365 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
3366
98601119
DN
3367 Cleanup old code.
3368 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
3369 * syssignal.h: Remove code for Lynx, not supported anymore.
3370 * vm-limit.c: Remove unused code the depends on emacs not being
3371 defined and NO_LIM_DATA being defined.
3372 * mem-limits.h: Remove dead code.
3373
1f984e12
J
33742010-07-01 Jan Djärv <jan.h.d@swipnet.se>
3375
c49d071a
J
3376 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
3377
9d5405ec
J
3378 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
3379 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
3380
7a18115b
J
3381 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
3382 parameters, they are already absolute.
3383
a628ad9d
JB
3384 * nsterm.m (x_set_window_size, initFrameFromEmacs):
3385 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 3386
a628ad9d 3387 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 3388
a628ad9d
JB
3389 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
3390 Update FRAME_TOOLBAR_HEIGHT.
581a8100 3391
a628ad9d
JB
3392 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
3393 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 3394
c1ef4455
CY
33952010-06-30 Chong Yidong <cyd@stupidchicken.com>
3396
3397 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
3398 check default-frame-alist.
3399
ce8f5a9a
AS
34002010-06-30 Andreas Schwab <schwab@linux-m68k.org>
3401
3402 * process.c (create_process): Avoid using invalid file descriptors.
3403
3404 * callproc.c (child_setup): Avoid closing a file descriptor twice.
3405
bf935339
J
34062010-06-30 Jan Djärv <jan.h.d@swipnet.se>
3407
3408 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
3409 Improve documentation. Return font regardless of use_system_font.
3410 (syms_of_xsettings): Improve documentation for font-use-system-font.
3411
7c33a057
CY
34122010-07-10 Chong Yidong <cyd@stupidchicken.com>
3413
2ec1b5ee
CY
3414 * xfaces.c (realize_face): Garbage the frame if a face is removed
3415 (Bug#6593).
3416
34172010-07-05 Andreas Schwab <schwab@linux-m68k.org>
3418
3419 * keyboard.c: Remove duplicate <setjmp.h>.
3420 (read_key_sequence): Remove volatile qualifiers.
3421
34222010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3423
3424 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
3425 (struct glyph_row): New members left_fringe_offset and
3426 right_fringe_offset.
3427
3428 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
3429 specially.
3430 * w32term.c (w32_draw_fringe_bitmap): Likewise.
3431 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
3432
3433 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 3434 Take account of bitmap offset.
2ec1b5ee
CY
3435 (draw_window_fringes): Take account of window vscroll.
3436 (update_window_fringes): Likewise. Extend top-aligned top indicator
3437 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
3438 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
3439 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
3440
34412010-07-04 Juanma Barranquero <lekktu@gmail.com>
3442
3443 * w32fns.c (Qtooltip): Declare.
3444 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
3445
34462010-07-03 Jan Djärv <jan.h.d@swipnet.se>
3447
3448 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
3449 grab on just Press (Bug#6499).
3450
34512010-07-02 Chong Yidong <cyd@stupidchicken.com>
3452
3453 * frame.c (Qtooltip): New var.
3454 (delete_frame): Use it. Fix faulty if statement. Don't update
3455 mode line for tooltip frames. Suggested by Martin Rudalics.
3456
3457 * xfns.c (x_create_tip_frame):
3458 * w32fns.c (x_create_tip_frame): Use it.
3459
34602010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
3461
3462 * xftfont.c (xftfont_open): Check font width one by one also when
3463 spacing is dual.
3464
3465 * ftfont.c (ftfont_open): Ditto.
3466
6259c2ec
GM
34672010-06-30 Glenn Morris <rgm@gnu.org>
3468
a46007e9
GM
3469 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
3470
6259c2ec
GM
3471 * Makefile.in (CANNOT_DUMP): Update for configure name change.
3472
3473 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
3474 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
3475 * s/darwin.h (SYSTEM_MALLOC):
3476 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
3477
5d1d3d04
J
34782010-06-29 Jan Djärv <jan.h.d@swipnet.se>
3479
3480 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
3481 (ns_get_screen): Don't assign integer to f.
3482 (Fx_display_color_cells): Declarations before statements.
3483
e547b051
J
34842010-06-28 Jan Djärv <jan.h.d@swipnet.se>
3485
5fc8e5bc
J
3486 * xfns.c (x_default_font_parameter): Remove got_from_system
3487 (Bug#6526).
3488
e547b051
J
3489 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
3490 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
3491 defines based on what configure finds.
3492
3493 * xterm.c (XTflash): Use gtk_widget_get_window.
3494 (xg_scroll_callback): Use gtk_adjustment_get_upper and
3495 gtk_adjustment_get_page_size.
3496 (handle_one_xevent): Use gtk_widget_get_mapped.
3497 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
3498 messages.
3499
3500 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
3501
3502 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
3503 HAVE_GTK_FILE_SELECTION_NEW.
3504
3505 * gtkutil.c (xg_display_open, xg_display_close): Remove
3506 HAVE_GTK_MULTIDISPLAY, it is always defined.
3507 (xg_display_open): Return type is void.
3508 (gtk_widget_set_has_window)
3509 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
3510 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
3511 (gtk_adjustment_set_page_increment)
3512 (gtk_adjustment_get_step_increment): #define these if not found
3513 by configure.
3514 (remove_submenu): New define based on Gtk+ version.
3515 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
3516 gtk_widget_get_window.
3517 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
3518 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
3519 (create_dialog): Use gtk_dialog_get_action_area and
3520 gtk_dialog_get_content_area.
3521 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
3522 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
3523 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
3524 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
3525 g_object_ref and g_object_unref.
3526 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
3527 gtk_widget_get_sensitive.
3528 (xg_update_submenu): Use remove_submenu.
3529 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
3530 properties instead to get old x and y position.
3531 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
3532 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 3533 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
3534 (xg_get_tool_bar_widgets): New function.
3535 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
3536 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
3537 (toolbar_set_orientation): New #define based on if configure
3538 finds gtk_orientable_set_orientation.
3539 (xg_create_tool_bar): Call toolbar_set_orientation.
3540 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
3541 instead of gtk_box_pack_start_defaults.
3542
b9229673
CY
35432010-06-28 Chong Yidong <cyd@stupidchicken.com>
3544
3545 * cmds.c (Fdelete_backward_char): Move into Lisp.
3546
bbc803b0
DN
35472010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
3548
3549 * s/freebsd.h (BSD4_2): Remove redundant definition.
3550 bsd-common.h defines it already.
3551
6431f2e6
CY
35522010-06-27 Chong Yidong <cyd@stupidchicken.com>
3553
3554 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
3555 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
3556 tool-bar-mode, which are now set using these X resources at
3557 startup, to determine the defaults (Bug#2249).
3558
3559 * w32fns.c (Fx_create_frame):
3560 * nsfns.m (Fx_create_frame): Likewise.
3561
3562 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
3563
8c079ebb
JB
35642010-06-24 Juanma Barranquero <lekktu@gmail.com>
3565
3566 * gtkutil.c (xg_update_scrollbar_pos):
3567 Avoid C99 mid-block variable declaration.
3568
e9b7ab96
JD
35692010-06-22 Jan Djärv <jan.h.d@swipnet.se>
3570
bc869eca
JD
3571 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
3572
2b7e356a 3573 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
3574
3575 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
3576 if height is less than scroll bar min size.
3577 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
3578
e9b7ab96
JD
3579 * xfns.c (x_default_font_parameter): Try to open font from system
3580 before using it (bug#6478). Rename got_from_gconf to got_from_system.
3581
a628ad9d 35822010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
3583
3584 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
3585
70c4cfbb
EZ
35862010-06-20 Eli Zaretskii <eliz@gnu.org>
3587
3588 * xdisp.c (try_scrolling): When scroll-conservatively is set to
3589 most-positive-fixnum, be extra accurate when scrolling window
3590 start, to avoid missing the cursor line.
3591
ad5a12b5
EZ
35922010-06-19 Eli Zaretskii <eliz@gnu.org>
3593
3594 * xdisp.c (try_scrolling): Compute the limit for searching point
3595 in forward scroll from scroll_max, instead of an arbitrary limit
3596 of 10 screen lines. See
3597 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
3598 and
3599 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
3600 for details.
3601
2a64315a 36022010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
3603
3604 * editfns.c (Fbyte_to_string): Pacify compiler.
3605
288cf4e9
SM
36062010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
3607
3608 * lread.c (read1): Phase out old-style backquotes a bit more.
3609
6e6e5760
EZ
36102010-06-12 Eli Zaretskii <eliz@gnu.org>
3611
cbc4fd20
EZ
3612 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
3613 bidimirror.h.
3614
3615 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
3616
317fbf33
EZ
3617 * bidi.c (bidi_initialize): Remove explicit initialization of
3618 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 3619 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 3620 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
3621
3622 * biditype.h: New file.
3623
cbc4fd20
EZ
3624 * bidimirror.h: New file.
3625
6e6e5760
EZ
3626 * window.c (syms_of_window): Doc fix (bug#6409).
3627
4176cba2
RF
36282010-06-12 Romain Francoise <romain@orebokech.com>
3629
3630 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
3631 ediff-hook.
3632
cb4bfcb5
GM
36332010-06-10 Glenn Morris <rgm@gnu.org>
3634
64c60c2f
GM
3635 * editfns.c (Fbyte_to_string): Pacify compiler.
3636
cb4bfcb5
GM
3637 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
3638
2ec1b5ee
CY
36392010-06-26 Andreas Schwab <schwab@linux-m68k.org>
3640
3641 * alloc.c (Fmake_byte_code): Don't access undefined argument
3642 (Bug#6517).
3643
36442010-06-25 Chong Yidong <cyd@stupidchicken.com>
3645
3646 * xdisp.c (next_element_from_image): Ensure that after-strings are
3647 read the next time we hit handle_stop (Bug#1336).
3648
36492010-06-23 Andreas Schwab <schwab@linux-m68k.org>
3650
3651 * lread.c (read1): Signal error if #s is not followed by paren.
3652
36532010-06-19 Chong Yidong <cyd@stupidchicken.com>
3654
3655 * image.c (free_image): Mark frame as garbaged (Bug#6426).
3656
3657 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
3658
36592010-06-15 Glenn Morris <rgm@gnu.org>
3660
3661 * editfns.c (Fbyte_to_string): Pacify compiler.
3662
e454a4a3
SM
36632010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
3664
3665 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
3666 Check `object's type before accessing its guts.
3667
c1b1acc2
DN
36682010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
3669
3670 * s/usg5-4.h: Fix previous change.
3671 Suggested by Lawrence Mitchell <wence@gmx.li>
3672
657d4c0b
AS
36732010-06-08 Andreas Schwab <schwab@linux-m68k.org>
3674
3675 * minibuf.c (Fall_completions): Add more checks.
3676
9b27fd9f
JB
36772010-06-08 Juanma Barranquero <lekktu@gmail.com>
3678
3679 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
3680
a99ebb40
DN
36812010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
3682
d7c5d87d
DN
3683 * lread.c (X_OK): Remove, unused.
3684
0263a941
DN
3685 * dispnew.c: Remove obsolete comment.
3686
a99ebb40
DN
3687 Remove INCLUDED_FCNTL.
3688 * xterm.c (INCLUDED_FCNTL):
3689 * callproc.c (INCLUDED_FCNTL):
3690 * alloc.c (INCLUDED_FCNTL):
3691 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
3692 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
3693
13b5221f
MR
36942010-06-07 Martin Rudalics <rudalics@gmx.at>
3695
3696 * window.c (Fselect_window): Move `record_buffer' up to the
3697 beginning of this function, so the buffer gets recorded
3698 even if the selected window does not change.
3699 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
3700
5220357f
JB
37012010-06-07 Juanma Barranquero <lekktu@gmail.com>
3702
3703 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
3704 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
3705
3085237c
DN
37062010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
3707
3708 Remove BSTRING related code, all platforms define it.
3709 * s/usg5-4.h (BSTRING): Remove definition.
3710 * s/template.h (BSTRING):
3711 * s/msdos.h (BSTRING):
3712 * s/ms-w32.h (BSTRING):
3713 * s/hpux10-20.h (BSTRING):
3714 * s/gnu-linux.h (BSTRING):
3715 * s/darwin.h (BSTRING):
3716 * s/cygwin.h (BSTRING):
3717 * s/bsd-common.h (BSTRING):
3718 * s/aix4-2.h (BSTRING): Likewise.
3719 * sysdep.c: Remove code depending on BSTRING not being defined.
3720
409f2919
JB
37212010-06-05 Juanma Barranquero <lekktu@gmail.com>
3722
3723 Remove obsolete macro BASE_LEADING_CODE_P.
3724 * character.h (BASE_LEADING_CODE_P): Remove.
3725 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
3726 * buffer.c (Fset_buffer_multibyte):
3727 * indent.c (scan_for_column, compute_motion):
3728 * insdel.c (count_combining_before, count_combining_after):
3729 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
3730
087fc47a
JB
37312010-06-04 Juanma Barranquero <lekktu@gmail.com>
3732
3733 Turn `directory-sep-char' into a noop.
3734
3735 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
3736 (DIRECTORY_SEP): Define unconditionally.
3737
3738 * s/ms-w32.h (DIRECTORY_SEP): Remove.
3739
3740 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
3741 call dostounix_filename directly.
3742
3743 * fileio.c (CORRECT_DIR_SEPS): Remove.
3744 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
3745 (Fsubstitute_in_file_name): Use dostounix_filename instead.
3746 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
3747 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
3748
3749 * w32proc.c (CORRECT_DIR_SEPS): Remove.
3750 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
3751
0eb7675e
AS
37522010-06-03 Andreas Schwab <schwab@linux-m68k.org>
3753
a628ad9d
JB
3754 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
3755 (Bug#6346)
0eb7675e 3756
78edd3b7
JB
37572010-06-03 Juanma Barranquero <lekktu@gmail.com>
3758
3759 * ccl.c (Fccl_program_p): Fix typo in docstring.
3760
eb697db5
DN
37612010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
3762
3763 Move UNEXEC definition to autoconf.
3764 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
3765 * s/sol2-10.h (UNEXEC):
3766 * s/irix6-5.h (UNEXEC):
3767 * s/hpux10-20.h (UNEXEC):
3768 * s/gnu-linux.h (UNEXEC):
3769 * s/darwin.h (UNEXEC):
3770 * s/cygwin.h (UNEXEC):
3771 * s/bsd-common.h (UNEXEC):
3772 * s/aix4-2.h (UNEXEC):
3773 * m/alpha.h (UNEXEC): Likewise.
3774 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
3775
aa3830c4
JB
37762010-06-03 Juanma Barranquero <lekktu@gmail.com>
3777
3778 Remove obsolete pre-unicode2 macros.
3779 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
3780 * composite.c (composition_reseat_it):
3781 * data.c (Faset):
3782 * fns.c (Ffillarray):
3783 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
3784 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
3785
d234d13e
JL
37862010-06-03 Juri Linkov <juri@jurta.org>
3787
3788 * buffer.c (Fother_buffer): Add CHECK_FRAME.
3789 (Fswitch_to_buffer): Remove unused variable `err'.
3790
0d4bcf4d
GM
37912010-06-03 Glenn Morris <rgm@gnu.org>
3792
e23dc1e2
GM
3793 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
3794
05b09564
GM
3795 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
3796 now that AH_BOTTOM does it.
3797
824e2978
GM
3798 * m/hp800.h (HAVE_ALLOCA):
3799 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
3800
0d4bcf4d
GM
3801 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
3802 Remove NOT_C_CODE tests, it is always true now.
3803
c55d2abf
DN
38042010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
3805
08a494a3
DN
3806 Fix config.h includes.
3807 * xsettings.c:
3808 * xgselect.c:
3809 * nsterm.m:
3810 * nsselect.m:
3811 * nsimage.m:
3812 * nsfont.m:
3813 * nsfns.m:
3814 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
3815 other files do.
3816
75934b1d
DN
3817 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
3818
9f32a766
DN
3819 * s/sol2-6.h: Remove obsolete comments.
3820
c55d2abf
DN
3821 Remove unnecessary alloca.h includes.
3822 * keymap.c: Do not include alloca.h, config.h does that.
3823 * sysdep.c: Likewise. Do not define fwrite, not used.
3824
06ac62b4
SM
38252010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
3826
3827 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
3828 the HAVE_TERMIO where it belongs (bug#6149).
3829
1ab8293c
SM
38302010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
3831
3832 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
3833 of bug#6305).
3834
6dcfd253
EZ
38352010-05-30 Eli Zaretskii <eliz@gnu.org>
3836
3837 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
3838 state is always cached (bug#6306).
3839
6d26bbb2
EZ
38402010-05-29 Eli Zaretskii <eliz@gnu.org>
3841
06fa4a23
EZ
3842 Fix cursor motion in bidi-reordered continued lines.
3843 * xdisp.c (try_cursor_movement): Backup to non-continuation line
3844 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
3845 over continuation lines in bidi-reordered buffers. Return
3846 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
3847 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
3848
f5783df3
MA
38492010-05-28 Michael Albinus <michael.albinus@gmx.de>
3850
3851 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
3852
7d56b2dd
KH
38532010-05-28 Kenichi Handa <handa@m17n.org>
3854
3855 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
3856 Don't sheck SPEC if it is nil.
3857 (font_list_entities): Call font_delete_unmatched if
b925d231 3858 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 3859
e58d4ff7
GM
38602010-05-28 Glenn Morris <rgm@gnu.org>
3861
3862 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
3863
f1a5d776
CY
38642010-05-27 Chong Yidong <cyd@stupidchicken.com>
3865
3866 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
3867 whether to trash.
3868 (internal_delete_file, Frename_file): Callers changed.
3869 (delete_by_moving_to_trash): Doc fix.
3870 (Fdelete_directory_internal): Don't move to trash.
3871
3872 * callproc.c (delete_temp_file):
3873 * buffer.c (Fkill_buffer): Callers changed.
3874
3875 * lisp.h: Update prototype.
3876
f44a59e6
CY
38772010-05-27 Chong Yidong <cyd@stupidchicken.com>
3878
3879 * xdisp.c (redisplay_window): After redisplay, check if point is
3880 still valid before setting it (Bug#6177).
3881
81ac4f35
GM
38822010-05-27 Glenn Morris <rgm@gnu.org>
3883
3884 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
3885 Convert comments to Makefile format.
3886
3887 * Makefile.in (bootstrap-clean): No more Makefile.c.
3888
ccd89fb3
GM
38892010-05-26 Glenn Morris <rgm@gnu.org>
3890
90278cb6
GM
3891 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
3892 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
3893
ccd89fb3
GM
3894 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3895 Remove.
3896 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3897
b7050583
KH
38982010-05-26 Kenichi Handa <handa@m17n.org>
3899
3900 * composite.c (composition_compute_stop_pos): Fix condition for
3901 backward scanning.
3902
e5458003
GM
39032010-05-25 Glenn Morris <rgm@gnu.org>
3904
c345fe90
GM
3905 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3906 Move before TEMACS_LDFLAGS.
3907 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3908 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3909
2e0689ab
GM
3910 * Makefile.in (NOT_C_CODE): No longer define.
3911 (config.h): No longer include.
3912
8009a5e8
GM
3913 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
3914 variables it may reference.
3915
e5458003
GM
3916 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
3917 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
3918
10f72a37
KH
39192010-05-25 Kenichi Handa <handa@m17n.org>
3920
3921 * dispextern.h (struct composition_it): New members rule_idx and
3922 charpos.
3923
3924 * xdisp.c (set_iterator_to_next): While scanning backward, assume
3925 that the character positions of IT point the last character of the
3926 current grapheme cluster.
3927 (next_element_from_composition): Don't change character positions
3928 of IT.
3929 (append_composite_glyph): Set glyph->charpos to
3930 it->cmp_it.charpos.
3931
3932 * composite.c (autocmp_chars): Change the first argument to RULE,
3933 and try composition with RULE only.
3934 (composition_compute_stop_pos): Record the index number of the
3935 composition rule in CMP_IT->rule_idx.
3936 (composition_reseat_it): Call autocmp_chars repeatedly until the
3937 correct rule of the composition is found.
3938 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
3939 is at the last character of the current grapheme cluster when
3940 CMP_IT->reversed_p is nonzero.
3941
171eda53 39422010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 3943
171eda53
SM
3944 * editfns.c (Fbyte_to_string): New function.
3945
66a9f7f4
SM
39462010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
3947
3948 * process.c (Fmake_network_process): Set :host to nil if it's not used.
3949 Suggested by Masatake YAMATO <yamato@redhat.com>.
3950
d8c315d1
EZ
39512010-05-23 Eli Zaretskii <eliz@gnu.org>
3952
171eda53 3953 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 3954
f5b416d2 39552010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
3956
3957 * s/netbsd.h: If terminfo is found, use it in preference to
3958 termcap. (Bug#6190) [Backport from trunk]
3959
0416466c
EZ
39602010-05-19 Eli Zaretskii <eliz@gnu.org>
3961
11117830 3962 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
3963
3964 * dispextern.h (struct glyph_row): New members minpos and maxpos.
3965 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
3966 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
3967 and maxpos members instead of start.pos and end.pos, respectively.
3968
3969 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
3970 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
3971 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
3972 (try_window_reusing_current_matrix, try_window_id):
3973 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
3974 (init_from_display_pos, init_iterator): Use EMACS_INT for
3975 character and byte positions.
66a9f7f4 3976 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
3977 arguments for minimum and maximum buffer positions seen by
3978 display_line for this row. Don't use iterator to find the
3979 position following the maximum one; instead, increment the
11117830
EZ
3980 position found by display_line directly. Fix logic; eol_pos
3981 should be tested before the rest. Handle the case of characters
3982 delivered from display vector (bug#6036). Fix tests related to
3983 it->method. Handle the truncated_on_right_p rows.
3984 (RECORD_MAX_MIN_POS): New macro.
3985 (display_line): Use it to record the minimum and maximum buffer
3986 positions for glyphs in the row being assembled. Record the
3987 position of the newline that terminates the line. If word wrap is
3988 in effect, restore minimum and maximum positions seen up to the
3989 wrap point, when iterator returns to it.
3990 (try_window_reusing_current_matrix): Give up if in bidi-reordered
3991 row and cursor not already at point. Restore original pre-bidi
3992 code for unidirectional buffers.
d36fe237
EZ
3993
3994 * dispnew.c (increment_row_positions, check_matrix_invariants):
3995 Increment and check row->start.pos and row->end.pos, in addition
3996 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
3997
11117830
EZ
3998 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
3999 Display truncated_on_left_p and truncated_on_right_p flags.
4000 Formatting fixes.
4001 (pmtxrows): Display the ordinal number of each row. Don't display
4002 rows beyond the last one.
4003
4004 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
4005 it is not copied by bidi_copy_it.
4006
6e83d800
EZ
40072010-05-22 Eli Zaretskii <eliz@gnu.org>
4008
4009 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
4010 (Bug#6237)
4011
110683ad
CY
40122010-05-22 Chong Yidong <cyd@stupidchicken.com>
4013
4014 * image.c (Fimage_flush): Rename from image-refresh.
4015
98fe5161
CY
40162010-05-21 Chong Yidong <cyd@stupidchicken.com>
4017
4018 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
4019 just one window.
4020
4021 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
4022 (clear_image_cache): If the number of cached images is unusually
4023 large, decrease the cache eviction delay (Bug#6230).
4024
e8752c66
GM
40252010-05-21 Glenn Morris <rgm@gnu.org>
4026
66dbf213
GM
4027 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
4028 Move these rules to ns.mk.
4029 * ns.mk: New file.
4030
04384b2d
GM
4031 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
4032
e8752c66
GM
4033 * Makefile.in (CANNOT_DUMP): New, set by configure.
4034 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
4035
2e2bbddb
JL
40362010-05-20 Juri Linkov <juri@jurta.org>
4037
4038 * fileio.c (Fdelete_file): Change interative spec to use
4039 `read-file-name' like in `find-file-read-args' where the default
4040 value is `default-directory' instead of `buffer-file-name'.
4041 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
4042
31c4aaf6
KR
40432010-05-20 Kevin Ryde <user42@zip.com.au>
4044
4045 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
4046 (Voverriding_terminal_local_map, Vsystem_key_alist)
4047 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
4048
9d5cf9b6
GM
40492010-05-20 Glenn Morris <rgm@gnu.org>
4050
4051 * Makefile.in (DEPDIR): New constant.
4052 (DEPFLAGS): Set with configure, not cpp.
4053 (MKDEPDIR): New, set by configure.
4054 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
4055 (clean): Use $DEPDIR.
4056 (deps_frag): Include from configure.
4057 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
4058 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
4059
ead6f8f5
EZ
4060 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
4061 reallocation of the cache. (Bug#6210)
4062
7f34aec3
GM
40632010-05-19 Glenn Morris <rgm@gnu.org>
4064
d494e8f2
GM
4065 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
4066
c1d0dcfd
GM
4067 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
4068 (GNULIB_VAR): Remove.
4069 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
4070
4071 * m/ibms390x.h (LINKER):
4072 * m/macppc.h (LINKER) [GNU_LINUX]:
4073 * s/aix4-2.h (ORDINARY_LINK):
4074 * s/cygwin.h (LINKER):
4075 * s/darwin.h (ORDINARY_LINK):
4076 * s/gnu.h (ORDINARY_LINK):
4077 * s/netbsd.h (LINKER):
4078 * s/usg5-4.h (ORDINARY_LINK):
4079 Move to configure.
4080
7f34aec3
GM
4081 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
4082
754790b6
CY
40832010-05-18 Chong Yidong <cyd@stupidchicken.com>
4084
4085 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
4086 prevent stack overflow if number of arguments is too large
4087 (Bug#6214).
4088
161e44d1
JB
40892010-05-18 Juanma Barranquero <lekktu@gmail.com>
4090
4091 * charset.c (load_charset_map_from_file): Don't call close after fclose.
4092
be4ff9da
GM
40932010-05-18 Glenn Morris <rgm@gnu.org>
4094
9539dc5d
GM
4095 * s/gnu-linux.h: Combine two conditionals.
4096
4097 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
4098 $(POST_ALLOC_OBJ).
4099
40dc6bf4
GM
4100 * Makefile.in (RALLOC_OBJ): New, set by configure.
4101 (rallocobj): Replace with the previous variable.
4102 (otherobj): Use $RALLOC_OBJ.
4103
4104 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
4105 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
4106
be4ff9da
GM
4107 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
4108 (gmallocobj, vmlimitobj): Replace with previous two variables.
4109 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
4110
16455a85
GM
41112010-05-17 Glenn Morris <rgm@gnu.org>
4112
4113 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
4114 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
4115
5fdb7468
GM
41162010-05-16 Glenn Morris <rgm@gnu.org>
4117
7ca1f3f9
GM
4118 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
4119
7541dad5
GM
4120 * Makefile.in (clean): Get rid of HAVE_NS conditional.
4121
da53fab9
GM
4122 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
4123 trailing "/".
4124
b02a6645
GM
4125 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
4126 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
4127
8877ca0f
GM
4128 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
4129 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
4130 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
4131 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
4132 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
4133
5fdb7468
GM
4134 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
4135 Remove ${STARTFLAGS}, nothing ever sets it.
4136
95adb4b1
DN
41372010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
4138
4139 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
4140
676b6304
GM
41412010-05-16 Glenn Morris <rgm@gnu.org>
4142
9beab9ce
GM
4143 * Makefile.in (LIBX_BASE): Always define.
4144
8a95f0e7
GM
4145 * Makefile.in (LIBX_OTHER): Move out of cpp section.
4146
676b6304
GM
4147 * Makefile.in (LIBXT): Always define.
4148
6e546d18
GM
41492010-05-15 Glenn Morris <rgm@gnu.org>
4150
4235ca47 4151 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 4152
6e546d18
GM
4153 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
4154 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
4155
8c5ff6dd
KR
41562010-05-15 Ken Raeburn <raeburn@raeburn.org>
4157
560bb7ae 4158 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
4159 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
4160
8b4eb796
KR
4161 * emacs.c (main): Initialize initial-environment and
4162 process-environment before generating from env, not after.
4163
8c5ff6dd
KR
4164 Handle --version reasonably in CANNOT_DUMP configuration.
4165 * emacs.c (emacs_version, emacs_copyright): New string variables.
4166 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
4167 (syms_of_emacs): Defvar them, and initialize them from the C
4168 string variables.
4169 (main): If initialization hasn't been done, print initial version
4170 info from the C strings, instead of starting an interactive session.
4171
dbd3f723
EZ
41722010-05-15 Eli Zaretskii <eliz@gnu.org>
4173
d20e1419
EZ
4174 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
4175 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
4176 (bidi_paragraph_init): Remove redundant assertion that we are at
4177 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
4178
4179 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
4180 (syms_of_xdisp): Defsubr it.
4181
d36fe237
EZ
4182 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
4183
dbd3f723
EZ
4184 * Makefile.in: Fix MSDOS-related comments.
4185
02be533b
GM
41862010-05-15 Glenn Morris <rgm@gnu.org>
4187
1a82cca9
GM
4188 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
4189 (really-lwlib, really-oldXMenu): Always define.
4190 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
4191
3df7b338
GM
4192 * Makefile.in: Simplify cpp conditional.
4193
2b5f541b
GM
4194 * Makefile.in (${ns_appdir}): Simplify using umask.
4195
02be533b
GM
4196 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
4197
4e2db1fe
SM
41982010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
4199
4200 * eval.c (specbind): Remove left-over duplicate test.
4201 Disallow let-binding frame-local vars. Add comment.
4202
4b292a22
EZ
42032010-05-14 Eli Zaretskii <eliz@gnu.org>
4204
2fe72643 4205 Make the cache of bidi iterator states dynamically allocated.
1edbd309 4206 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
4207 (bidi_init_it): Call it.
4208 (bidi_cache_iterator_state): Enlarge the cache if needed.
4209
4e2db1fe 4210 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
4211 bidi_get_next_char_visually. All callers changed.
4212
82ebc97b
KH
42132010-05-14 Kenichi Handa <handa@m17n.org>
4214
4215 * dispextern.h (struct composition_it): New member reversed_p.
4216
4217 * composite.c (composition_compute_stop_pos): Search backward if
4218 ENDPOS < CHARPOS.
4219 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
4220 Set CMP_IT->reversed_p.
b4b6e17e 4221 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 4222
4e2db1fe
SM
4223 * xdisp.c (set_iterator_to_next):
4224 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
4225 scanning backward. Call composition_compute_stop_pos if scan
4226 direction is changed.
4227 (next_element_from_buffer): Call composition_compute_stop_pos with
4228 negative ENDPOS if we are scanning backward.
4229 (next_element_from_composition): Pay attention to
4230 IT->cmp_it.reversed_p.
4231
0e5d7800
KH
42322010-05-14 Kenichi Handa <handa@m17n.org>
4233
560bb7ae 4234 * font.c (font_range): Return the range for the font found at first.
0e5d7800 4235
cb027b32
GM
42362010-05-14 Glenn Morris <rgm@gnu.org>
4237
177b0288
GM
4238 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
4239
fbc00890
GM
4240 * Makefile.in (mktime, X11, register): Move undefs to configure.
4241
f14d1dfd
GM
4242 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
4243 (MSDOS_X_OBJ): New variable.
4244 (MSDOS_SUPPORT_REAL): New constant.
4245 (MSDOS_SUPPORT): Set as a variable, not with cpp.
4246 (obj): Use MSDOS_X_OBJ.
4247 (lisp): Use MSDOS_SUPPORT as a variable.
4248
11842bd8
GM
4249 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
4250 (GPM_MOUSE_SUPPORT): Now it's a constant.
4251 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
4252 not cpp.
4253
489d31a4 4254 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 4255 (ns_appresdir): Remove, unused.
e20f1f07 4256
489d31a4
GM
4257 * Makefile.in (SHELL): Move outside cpp section.
4258
cb027b32
GM
4259 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
4260
5a903aa9
GM
42612010-05-13 Glenn Morris <rgm@gnu.org>
4262
3369c79f
GM
4263 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
4264 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
4265
d5e982a6
GM
4266 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
4267 HAVE_WINDOW_SYSTEM must be too.
4268
6192e163
GM
4269 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
4270 (lisp): Remove WINNT_SUPPORT.
4271
472c5d6b
GM
4272 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
4273 Let configure set these variables (to empty) in this case as well.
4274
0116466b
GM
4275 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
4276 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
4277
5a903aa9
GM
4278 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
4279 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
4280 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
4281 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
4282 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 4283 the values output by configure.
5a903aa9
GM
4284 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
4285
1a0d7c06
GM
42862010-05-12 Glenn Morris <rgm@gnu.org>
4287
b5457f14
GM
4288 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
4289 (LINKER_WAS_SPECIFIED): Remove.
4290
1a0d7c06
GM
4291 * Makefile.in (LIB_GCC): Set using configure, not cpp.
4292 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
4293 * m/arm.h (LIB_GCC) [GNU_LINUX]:
4294 * s/cygwin.h (LIB_GCC):
4295 * s/freebsd.h (LIB_GCC):
4296 * s/gnu-linux.h (LIB_GCC):
4297 * s/msdos.h (LIB_GCC):
4298 * s/netbsd.h (LIB_GCC):
4299 Move to configure.
4300
3ffd4615 43012010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
4302
4303 * ftfont.c: Fix incorrect parentheses of #if condition for
4304 definining M17N_FLT_USE_NEW_FEATURE.
4305
acddf8ae
GM
43062010-05-11 Glenn Morris <rgm@gnu.org>
4307
4308 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
4309 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
4310
ae5e04fa
EZ
43112010-05-10 Eli Zaretskii <eliz@gnu.org>
4312
4313 * xdisp.c (init_iterator): Don't turn on bidi reordering in
4314 unibyte buffers. See
4315 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
4316
7490175b
GM
43172010-05-10 Glenn Morris <rgm@gnu.org>
4318
97efb629
GM
4319 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
4320 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
4321 (LIBES): Use LIBS_SYSTEM as a variable.
4322 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
4323 * s/aix4-2.h (LIBS_SYSTEM):
4324 * s/freebsd.h (LIBS_SYSTEM):
4325 * s/hpux10-20.h (LIBS_SYSTEM):
4326 * s/sol2-6.h (LIBS_SYSTEM):
4327 * s/unixware.h (LIBS_SYSTEM):
4328 Move to configure.
4329
7490175b
GM
4330 * s/aix4-2.h (MAIL_USE_LOCKF):
4331 * s/bsd-common.h (MAIL_USE_FLOCK):
4332 * s/darwin.h (MAIL_USE_FLOCK):
4333 * s/gnu-linux.h (MAIL_USE_FLOCK):
4334 * s/irix6-5.h (MAIL_USE_FLOCK):
4335 * s/template.h (MAIL_USE_FLOCK):
4336 Move to configure.
4337
0235128c 43382010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
4339
4340 * Version 23.2 released.
4341
0235128c 43422010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
4343
4344 * composite.c (autocmp_chars): Save point as marker before calling
4345 auto-composition-function (Bug#5984).
4346
4347 * lisp.h (restore_point_unwind): Add prototype.
4348
4349 * fileio.c (restore_point_unwind): Remove static attribute.
4350
0235128c 43512010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
4352
4353 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
4354 new feature of libotf and m17n-flt.
0235128c
SM
4355 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
4356 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
4357 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
4358 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
4359 that OUT is NULL. Use OTF_drive_gsub_with_log and
4360 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
4361 OTF_drive_gpos.
4362 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
4363 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
4364 Setup mflt_enable_new_feature and mflt_try_otf.
4365
4721152c
J
43662010-05-08 Jan Djärv <jan.h.d@swipnet.se>
4367
4368 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
4369
4370 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
4371 box and toolbar (Bug #6139).
4372 (xg_create_tool_bar): Remove comment (Bug #6139).
4373 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
4374 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
4375
ee0a16cf
JB
43762010-05-08 Juanma Barranquero <lekktu@gmail.com>
4377
4378 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
4379 Update dependencies.
4380
96d79611
EZ
43812010-05-08 Eli Zaretskii <eliz@gnu.org>
4382
4383 * fringe.c (update_window_fringes): Set up truncation bitmaps for
4384 R2L lines.
4385
40c17879
GM
43862010-05-08 Glenn Morris <rgm@gnu.org>
4387
7b42b29f
GM
4388 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
4389
40c17879
GM
4390 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
4391 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
4392 (termcapobj): Replace with TERMCAP_OBJ.
4393 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
4394 (LIBES): Use LIBS_TERMCAP as a variable.
4395
4396 * s/freebsd.h (osreldate.h): No longer include, since this file
4397 does not use __FreeBSD_version any more.
4398
4399 * s/aix4-2.h (TERMINFO):
4400 * s/cygwin.h (TERMINFO):
4401 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4402 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
4403 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4404 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4405 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
4406 * s/irix6-5.h (TERMINFO):
4407 * s/netbsd.h (LIBS_TERMCAP):
4408 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
4409 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
4410 * s/usg5-4.h (TERMINFO):
4411 Move to configure.
4412
94b612ad
SM
44132010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
4414
4415 * eval.c (unbind_to): Don't unbind a local binding into the global
4416 binding when the local binding disappeared. Inversely, don't unbind
4417 a global binding into a newly created local binding.
4418 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
4419 can specify the frame to use, when applicable. Adjust callers.
4420
15e12598 44212010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 4422 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
4423
4424 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
4425
f724825e
EZ
44262010-05-07 Eli Zaretskii <eliz@gnu.org>
4427
5cba3209
EZ
4428 * w32fns.c: Include w32.h.
4429 (Fw32_shell_execute): Decode the error message before passing it
4430 to `error'. (Bug#6126)
4431
d16bdfc3
EZ
4432 * msdos.c (dos_set_window_size):
4433 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
4434 instead of `XSYMBOL (foo)->value'.
4435
59d93e87
EZ
44362010-05-07 Eli Zaretskii <eliz@gnu.org>
4437
9fdec8bc
EZ
4438 Fix the MS-DOS build, broken by autoconfiscation.
4439
4440 * Makefile.in: Don't use Make-style comments past the "start of
4441 cpp stuff" line.
4442 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
4443
4444 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
4445 edited directly by msdos/sed1v2.inp).
f724825e 4446
2f86b22b
GM
44472010-05-07 Glenn Morris <rgm@gnu.org>
4448
4449 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
4450 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
4451 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
4452 move out of cpp section.
4453 * s/freebsd.h (LD_SWITCH_SYSTEM):
4454 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
4455 * s/netbsd.h (LD_SWITCH_SYSTEM):
4456 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
4457
49ebbd65
DN
44582010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
4459
4460 Define LIB_STANDARD and START_FILES using autoconf.
4461 * s/usg5-4.h (LIB_STANDARD):
4462 * s/netbsd.h (START_FILES):
4463 * s/irix6-5.h (LIB_STANDARD):
4464 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
4465 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4466 * s/freebsd.h (START_FILES):
4467 * s/darwin.h (START_FILES):
4468 * s/cygwin.h (START_FILES):
4469 * s/aix4-2.h (LIB_STANDARD):
4470 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
4471 * Makefile.in (STARTFILES): Rename to START_FILES, define using
4472 autoconf, not cpp.
4473
d43c06d6
DN
44742010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
4475
28823648
DN
4476 Remove NEED_BSDTTY and NEED_UNISTD_H.
4477 * s/hpux10-20.h (NEED_BSDTTY): Remove.
4478 * s/aix4-2.h (NEED_UNISTD_H): Remove.
4479 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
4480 <sys/ptyio.h> and <unistd.h>.
4481
aca00430
DN
4482 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
4483
d43c06d6
DN
4484 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
4485 * s/gnu.h (START_FILES): Remove empty definition.
4486
3e56b11d
JD
44872010-05-06 Jan Djärv <jan.h.d@swipnet.se>
4488
4489 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
4490
e3cf0cde
GM
44912010-05-06 Glenn Morris <rgm@gnu.org>
4492
4493 * Makefile.in (CPP, LN_S): Remove unused variables.
4494
774b9a60
SM
44952010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
4496
4497 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
4498
4ab92842
LM
44992010-05-05 Lawrence Mitchell <wence@gmx.li>
4500
4501 * m/sparc.h: Fix typo in earlier change.
4502
178f2507
SM
45032010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4504
4505 Misc tweaks.
4506 * eval.c (Fdefvaralias): Remove unintended nested if.
4507 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
4508
80f00217 45092010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
4510
4511 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
4512
ef03a4e6
DN
45132010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4514
58eb6cf0
DN
4515 Remove BSD_PGRPS.
4516 * s/bsd-common.h (BSD_PGRPS): Remove undef.
4517 * s/gnu-linux.h (BSD_PGRPS): Remove.
4518 * term.c (dissociate_if_controlling_tty):
4519 * sysdep.c (narrow_foreground_group, widen_foreground_group)
4520 (init_sys_modes, reset_sys_modes):
4521 * emacs.c (main):
4522 * callproc.c (Fcall_process, child_setup): Remove code depending
4523 on BSD_PGRPS.
4524
ef03a4e6
DN
4525 Remove POSIX_SIGNALS.
4526 * s/usg5-4.h (POSIX_SIGNALS):
4527 * s/netbsd.h (POSIX_SIGNALS):
4528 * s/msdos.h (POSIX_SIGNALS):
4529 * s/ms-w32.h (POSIX_SIGNALS):
4530 * s/hpux11.h (POSIX_SIGNALS):
4531 * s/gnu.h (POSIX_SIGNALS):
4532 * s/gnu-linux.h (POSIX_SIGNALS):
4533 * s/freebsd.h (POSIX_SIGNALS):
4534 * s/darwin.h (POSIX_SIGNALS):
4535 * s/cygwin.h (POSIX_SIGNALS):
4536 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
4537 * s/unixware.h:
4538 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
4539 * process.c (create_process):
4540 * syssignal.h:
4541 * sysdep.c (wait_for_termination, init_signals):
4542 * process.c (create_process):
4543 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
4544 remove all code that assumes the contrary.
4545
49628785
GM
45462010-05-04 Glenn Morris <rgm@gnu.org>
4547
27a2cdfc
GM
4548 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
4549 variable.
4550 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4551 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
4552 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4553 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
4554 LD_SWITCH_SYSTEM_tmp.
4555 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
4556 New variables, set by configure.
4557
eb21eab5
GM
4558 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4559 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
4560 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4561 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
4562 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
4563
49628785
GM
4564 * s/aix4-2.h (C_SWITCH_SYSTEM):
4565 * m/alpha.h (C_SWITCH_MACHINE):
4566 Move to configure.in.
4567 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
4568 New variables, set by configure.
4569 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
4570 $c_switch_machine and $c_switch_system.
4571
7dff330b
DN
45722010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4573
4574 * s/hpux10-20.h (LIB_STANDARD): New definition.
4575 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
4576 on it, not used anymore.
4577
53967e09
CY
45782010-05-03 Chong Yidong <cyd@stupidchicken.com>
4579
4580 * eval.c (internal_condition_case_n): Rename from
4581 internal_condition_case_2.
4582 (internal_condition_case_2): New function.
4583
4584 * xdisp.c (safe_call): Use internal_condition_case_n.
4585
4586 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
4587 (internal_delete_file, Frename_file): Callers changed.
4588
4589 * buffer.c (Fkill_buffer):
4590 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
4591
4592 * lisp.h: Update prototypes.
4593
3dee6fdb
GM
45942010-05-03 Glenn Morris <rgm@gnu.org>
4595
4596 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
4597 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
4598 (LIBXT): Set with configure, not cpp.
4599 (LIBX): Remove.
4600 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
4601
a101e0fb
DN
46022010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4603
4604 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
4605 The FreeBSD is not needed, the default works, Solaris version is
4606 not needed, and the remaining case is not supported by configure.
4607
f63d0028
JD
46082010-05-02 Jan Djärv <jan.h.d@swipnet.se>
4609
4610 * xsmfns.c (CHDIR_OPT): New define.
4611 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
4612 restarting emacs.
4613
4614 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
4615 shut_down_emacs.
4616
4617 * emacs.c (USAGE1): Mention --chdir.
4618 (main): Handle --chdir.
4619 (standard_args): Add --chdir.
4620 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
4621 #5552).
4622
e4814a9f
DN
46232010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
4624
cd03c74a
DN
4625 Remove LD_SWITCH_MACHINE.
4626 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
4627 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
4628
c3a398a1
DN
4629 Clean up IRIX code.
4630 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
4631 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
4632
87e7285c
DN
4633 Clean up AIX code.
4634 * m/ibmrs6000.inp: Remove file, unused.
4635 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
4636 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
4637 definition ...
4638 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
4639
80f00217
JB
4640 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
4641 unused.
e4814a9f 4642
59ca28de
EZ
46432010-05-01 Eli Zaretskii <eliz@gnu.org>
4644
197daef4
EZ
4645 Emulate POSIX_SIGNALS on MS-Windows.
4646
4647 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
4648 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
4649
4650 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
4651 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
4652 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
4653
80f00217
JB
4654 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
4655 New stubs.
197daef4 4656
af7c7572
EZ
4657 Miscellaneous fixes of bidi display.
4658
59ca28de
EZ
4659 * xdisp.c (find_row_end): New function, refactored from display_line.
4660 (display_line): Use it.
017ea819
EZ
4661 (extend_face_to_end_of_line): In almost-filled rows, extend only
4662 if the row is R2L and not continued.
166e930d 4663 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 4664 Preserve overlay and string info in row->end.
166e930d
EZ
4665 (insert_left_trunc_glyphs): Support addition of left truncation
4666 glyphs to R2L rows.
b47e0dcf 4667 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
4668 glyph between adjacent windows. Fix a crash when a display string
4669 is continued to the next line. Don't return zero if cursor was
4670 found by `cursor' property of a display string.
b47e0dcf
EZ
4671 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
4672 test for that explicitly.
59ca28de 4673
7acac9f4
GM
46742010-05-01 Glenn Morris <rgm@gnu.org>
4675
4676 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
4677 for clarity.
4678 (OTHER_OBJ): Remove.
4679 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
4680 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
4681
45841e65
KK
46822010-05-01 Karel Klíč <kklic@redhat.com>
4683
4684 * fileio.c (Ffile_selinux_context): Context functions may return null.
4685
afc61943
DN
46862010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
4687
80f00217 4688 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 4689
5a1bb006
GM
46902010-04-30 Glenn Morris <rgm@gnu.org>
4691
4692 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
4693 (OTHER_OBJ): Define as a separate variable, for clarity.
4694
210af043
J
46952010-04-30 Jan Djärv <jan.h.d@swipnet.se>
4696
4697 * xsettings.c: include limits.h and update file comment.
4698
0a7df391
GM
46992010-04-30 Glenn Morris <rgm@gnu.org>
4700
d5096f16
GM
4701 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
4702 Set with configure, not cpp.
4703 (LIBW): Remove, replace with $TOOLKIT_LIBW.
4704
7eb1ac33
GM
4705 * Makefile.in (mallocobj): Remove.
4706 (otherobj): Simplify using @OTHER_OBJ@.
4707
517d086b
GM
4708 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
4709 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
4710 Don't bother making nsgui.h dependency platform-specific.
4711
0a7df391
GM
4712 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
4713
d6d23852
SM
47142010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
4715
d2630aef
SM
4716 * process.c (read_process_output, exec_sentinel): Don't burp if the
4717 sentinel/filter kills the current buffer (bug#6060).
4718
f9dddf52 4719 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
4720 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
4721 Remove unused var `args'.
4722 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
4723 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
4724 * doc.c (store_function_docstring): Use XSETCAR.
4725
f1e3642a
GM
47262010-04-28 Glenn Morris <rgm@gnu.org>
4727
faf535f8
GM
4728 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
4729 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
4730
c40f9449
GM
4731 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
4732
658f86ca
GM
4733 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
4734 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
4735
bc0b5f61
GM
4736 * Makefile.in (FONT_OBJ): New, set by configure.
4737 (FONT_DRIVERS): Use $FONT_OBJ.
4738
294c50a0
GM
4739 * Makefile.in (LIBXMU): Set with configure, not cpp.
4740 * s/aix4-2.h (LIBXMU):
4741 * s/hpux10-20.h (LIBXMU):
4742 Remove definition, now set in configure.
4743
e6ec4e99
GM
4744 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
4745
f1e3642a
GM
4746 * m/amdx86-64.h [i386]: Move this test to configure.in.
4747
c6ea2936
GM
47482010-04-27 Glenn Morris <rgm@gnu.org>
4749
8fdac2c3
GM
4750 * Makefile.in (LIBXTR6): Set with configure, not cpp.
4751 * s/unixware.h (NEED_LIBW): Remove definition.
4752
986fb647
GM
4753 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
4754 (TOOLKIT_LIBW): New, set by configure.
4755 (@X_TOOLKIT_TYPE@): No longer define it.
4756
c6ea2936
GM
4757 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
4758 (MOTIF_LIBW): Set with configure, not cpp.
4759 * s/aix4-2.h (LIB_MOTIF):
4760 * s/gnu-linux.h (LIB_MOTIF):
4761 * s/unixware.h (LIB_MOTIF): Move to configure.in.
4762
aaa36002
DN
47632010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
4764
4765 Reduce CPP usage.
4766 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
4767 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
4768 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
4769 definitions and undefs. Inline definitions in the only user.
4770 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 4771
b678dd8b
GM
47722010-04-27 Glenn Morris <rgm@gnu.org>
4773
76cda504
GM
4774 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
4775 since the defaults (set by the system file) are fine in most cases.
4776 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
4777 * m/ibms390x.h (START_FILES, LIB_STANDARD):
4778 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
4779 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
4780 Remove definitions, since they are set correctly in s/gnu-linux.h.
4781 * s/freebsd.h (START_FILES, LIB_STANDARD):
4782 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4783 * s/hpux10-20.h (START_FILES):
4784 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
4785 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
4786
b678dd8b
GM
4787 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
4788 (MOTIF_LIBW): Use $LIBXP.
4789 (otherobj): Use $WIDGET_OBJ.
4790
9452ded1
DN
47912010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
4792
7e10844c
DN
4793 * Makefile.in (LIBS_MACHINE): Remove, unused.
4794
9452ded1
DN
4795 Use autoconf instead of cpp for LIB_MATH.
4796 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
4797 * s/cygwin.h (LIB_MATH): Likewise.
4798 * Makefile.in (LIB_MATH): Do not define with cpp.
4799 (LIBES): Use autoconf for LIB_MATH.
4800
fcebfc6a
KH
48012010-04-26 Kenichi Handa <handa@m17n.org>
4802
4803 * composite.c (Ffind_composition_internal): Fix the return value
4804 for an automatic composition.
4805
39e2ad1b
DN
48062010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
4807
4808 Remove all NO_ARG_ARRAY uses.
4809 * fns.c (concat2, concat3, nconc2):
4810 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
4811 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
4812 * m/xtensa.h (NO_ARG_ARRAY):
4813 * m/template.h (NO_ARG_ARRAY):
4814 * m/sparc.h (NO_ARG_ARRAY):
4815 * m/sh3.h (NO_ARG_ARRAY):
4816 * m/mips.h (NO_ARG_ARRAY):
4817 * m/macppc.h (NO_ARG_ARRAY):
4818 * m/iris4d.h (NO_ARG_ARRAY):
4819 * m/intel386.h (NO_ARG_ARRAY):
4820 * m/ibms390x.h (NO_ARG_ARRAY):
4821 * m/ibms390.h (NO_ARG_ARRAY):
4822 * m/ibmrs6000.h (NO_ARG_ARRAY):
4823 * m/ia64.h (NO_ARG_ARRAY):
4824 * m/hp800.h (NO_ARG_ARRAY):
4825 * m/arm.h (NO_ARG_ARRAY):
4826 * m/amdx86-64.h (NO_ARG_ARRAY):
4827 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
4828
adf4f59c
EZ
48292010-04-25 Eli Zaretskii <eliz@gnu.org>
4830
6bdf5d65
EZ
4831 * xdisp.c (display_line): Don't assume 2nd call to
4832 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
4833 (iterate_out_of_display_property): New function, body from pop_it.
4834 (pop_it): Use it.
adf4f59c 4835
dfbbda83
GM
48362010-04-24 Glenn Morris <rgm@gnu.org>
4837
4838 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
4839 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
4840 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
4841 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
4842
2d4018aa
EZ
48432010-04-24 Eli Zaretskii <eliz@gnu.org>
4844
a49884a6
EZ
4845 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
4846 use `get_next_display_element' and `set_iterator_to_next' to
4847 advance to the next character, when looking for the character that
4848 begins the next row.
4849
76db6fcc 4850 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
4851 definition of "struct Lisp_Symbol".
4852
70eab5c1
GM
48532010-04-24 Glenn Morris <rgm@gnu.org>
4854
4855 * Makefile.in (CRT_DIR): New variable, set by configure.
4856 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
4857 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
4858
1ad4cc3d
DN
48592010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4860
e769f484
DN
4861 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
4862
4196ff33
DN
4863 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
4864
879b0ee4
DN
4865 Remove redundant flags.
4866 * s/freebsd.h (C_SWITCH_SYSTEM):
4867 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
4868 * s/netbsd.h (C_SWITCH_SYSTEM):
4869 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
4870 of these.
4871
03cbbcb8
DN
4872 Simplify m/intel386.h.
4873 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
4874 user: ecrt0.c.
4875 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
4876 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
4877 the only user: s/unixware.h.
4878 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
4879 from m/intel386.h.
4880 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
4881 moved here from m/intel386.h.
4882
1ad4cc3d
DN
4883 * m/mips.h: Remove #if 0 code.
4884
8785b888
EZ
48852010-04-23 Eli Zaretskii <eliz@gnu.org>
4886
728588cc
EZ
4887 Fix display of composed characters from L2R scripts in bidi buffers.
4888 * xdisp.c (set_iterator_to_next, next_element_from_composition):
4889 After advancing IT past the composition, resync the bidi iterator
4890 with IT's position. (Bug#5977)
4891
a63f80b4
DN
48922010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4893
4894 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
4895 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
4896
ff5dec5c
SM
48972010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
4898
4899 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
4900
8785b888
EZ
49012010-04-23 Eli Zaretskii <eliz@gnu.org>
4902
58ccf243 4903 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
4904 * xdisp.c (pop_it): When the stack is popped after displaying
4905 from a string, bidi-iterate to exit from the text portion covered
4906 by the `display' property or overlay. (Bug#5988, bug#5920)
4907
feeb1604
DN
49082010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4909
8e324eb6
DN
4910 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
4911 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
4912
809fcaba
DN
4913 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
4914 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
4915
ed710380
DN
4916 Simplify STARTFILES definition.
4917 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
4918 relying on Makefile.in to define it.
4919 * s/cygwin.h (START_FILES): Likewise.
4920 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
4921
feeb1604
DN
4922 Clean up Solaris code.
4923 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
4924 (LIB_MOTIF): Remove, configure takes care of this.
4925 (NOT_USING_MOTIF): Remove, unused.
4926 * xrdb.c: Remove #if 0-ed #include.
4927 (SYSV): Remove conditional for old SysV.
4928 * sysdep.c (closedir): Remove conditional code for Solaris,
4929 Solaris has closedir.
4930
a0d0b563
JD
49312010-04-22 Jan Djärv <jan.h.d@swipnet.se>
4932
4933 * xsettings.c (read_and_apply_settings): Check if current_font is
4934 NULL before strcmp (Bug#6001).
4935
56bae7c7
DN
49362010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
4937
4938 Clean up HP-UX files.
4939 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
4940 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
4941 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
4942 * s/hpux10-20.h: ... to the only user, here.
4943
372b7a95
EZ
49442010-04-21 Eli Zaretskii <eliz@gnu.org>
4945
4946 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
4947 use buffer-local values of paragraph-start and paragraph-separate.
4948 <paragraph_start_re, paragraph_separate_re>: Rename from
4949 fallback_paragraph_start_re and fallback_paragraph_separate_re.
4950 (Bug#5992)
4951
f904c0f9
JD
49522010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4953
4954 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
4955 current_tool_bar_style are new.
4956 (store_config_changed_event): Rename from store_font_changed_event.
4957 (XSETTINGS_TOOL_BAR_STYLE): New define.
4958 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
4959 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
4960 HAVE_XFT.
4961 (something_changedCB): store_font_changed_event is now
c4cc8b9a 4962 store_config_changed_event.
f904c0f9
JD
4963 (parse_settings): Rename from parse_xft_settings. Read
4964 non-xft xsettings outside #ifdef HAVE_XFT.
4965 (read_settings): Renamed from read_xft_settings.
4966 (apply_xft_settings): Take current settings as parameter. Do not
4967 call read_(xft)_settings.
4968 (read_and_apply_settings): New function.
4969 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
4970 read_and_apply_settings if there are settings to be read.
4971 (init_xsettings): Renamed from init_xfd_settings.
4972 Call read_and_apply_settings unconditionally.
4973 (xsettings_initialize): Call init_xsettings.
4974 (Ftool_bar_get_system_style): New function.
4975 (syms_of_xsettings): Define Qmonospace_font_name and
4976 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 4977 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 4978 dynamic-setting.
31a01b90 4979 Move misplaced HAVE_GCONF
f904c0f9
JD
4980
4981 * xsettings.h (Ftool_bar_get_system_style): Declare.
4982
4983 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
4984 Qtext, Qboth, Qboth_horiz are new.
4985 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
4986 Vtool_bar_style, tool_bar_max_label_size.
4987
4988 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
4989
4990 * keyboard.c: QClabel is new.
4991 (parse_tool_bar_item): Take out QClabel from tool bar items.
4992 Try to construct a label if ther is no QClabel.
4993 (syms_of_keyboard): Intern :label as QClabel.
4994
4995 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
4996 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
4997 New.
4998
4999 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
5000 dynamic-setting.el.
5001
5002 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
5003 (xg_make_tool_item, xg_show_toolbar_item): New function.
5004 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
5005 Call xg_make_tool_item to make a tool bar item.
5006 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
5007
5008 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
5009 into account for toolbars.
5010
c632dfda
JD
50112010-04-21 Jan Djärv <jan.h.d@swipnet.se>
5012
5013 * data.c (make_blv): Declarations before code (Bug#5993).
5014
10efe302
GM
50152010-04-21 Glenn Morris <rgm@gnu.org>
5016
5017 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
5018 Define using autoconf, not cpp.
5019 (LIBXSM): New variable, set by autoconf.
5020 (LIBXT): Use $LIBXSM.
5021
4285ac5a
DN
50222010-04-21 Dan Nicolaescu <local_user@dannlt>
5023
3ec759e7
DN
5024 Remove NOMULTIPLEJOBS, unused.
5025 * s/template.h (NOMULTIPLEJOBS):
5026 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
5027
4285ac5a
DN
5028 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
5029 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
5030 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
5031 detects -znocombreloc and passes it to the linker
5032 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
5033
2807228d
GM
50342010-04-21 Glenn Morris <rgm@gnu.org>
5035
5036 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
5037
574c05e2
KK
50382010-04-21 Karel Klíč <kklic@redhat.com>
5039
5040 * Makefile.in (LIBSELINUX_LIBS): New.
5041 (LIBES): Add $LIBSELINUX_LIBS.
5042 * eval.c, lisp.h (call7): New function.
5043 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
5044 (Ffile_selinux_context, Fset_file_selinux_context):
5045 New functions.
5046 (Fcopy_file): New parameter preserve-selinux-context.
5047 (Frename_file): Preserve selinux context when renaming by copy-file.
5048
91eac4bb 50492010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 5050 Eli Zaretskii <eliz@gnu.org>
91eac4bb 5051
50426a04
JB
5052 Don't depend on cm.c or termcap.c on Windows, use stubs.
5053 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
5054 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
5055 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
5056 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
5057 (sys_tputs, sys_tgetstr): New stubs.
5058 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
5059 (tputs, tgetstr): New; define to sys_*.
91eac4bb 5060
938efb77
JB
50612010-04-20 Juanma Barranquero <lekktu@gmail.com>
5062
5063 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
5064
b4bf28b7
SM
50652010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5066
8b1e1112
SM
5067 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
5068 Just signal a warning rather than an error when inside a let.
5069 (Fmake_variable_frame_local): Add the same test.
5070
933ac235
SM
5071 * font.c (syms_of_font): Make the style table vars read-only.
5072
b4bf28b7
SM
5073 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
5074 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
5075
5076 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
5077
93d68d0c
EZ
50782010-04-20 Eli Zaretskii <eliz@gnu.org>
5079
5080 Fix R2L paragraph display on TTY.
5081
5082 * xdisp.c (unproduce_glyphs): New function.
5083 (display_line): Use it when produced glyphs are discarded from R2L
5084 glyph rows.
5085 (append_composite_glyph): In R2L rows, prepend the glyph rather
5086 than appending it.
5087
5088 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
5089 rather than append it. Set up the resolved_level and bidi_type
5090 attributes of the appended glyph.
283ccc18
EZ
5091 (produce_special_glyphs): Mirror the backslash continuation
5092 character in R2L lines.
93d68d0c 5093
283ccc18 5094 Implement display of R2L paragraphs in GUI sessions.
26cdf528 5095
283ccc18
EZ
5096 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
5097 append_stretch_glyph.
5098 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
5099 off-by-one error in computing x at end of text in the row.
5100 (append_stretch_glyph): In reversed row, prepend the glyph rather
5101 than append it. Set resolved_level and bidi_type of the glyph.
5102 (extend_face_to_end_of_line): If the row is reversed, prepend a
5103 stretch glyph whose width is such that the rightmost glyph will be
5104 drawn at the right margin of the window. Fix off-by-one error on
5105 TTY frames in testing whether a line needs face extension. Fix
5106 face extension at ZV. If this is the last glyph row, use
5107 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
5108 region face.
5109 (set_cursor_from_row, display_line): Use
26cdf528
EZ
5110 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
5111 row->continuation_lines_width.
283ccc18
EZ
5112 (next_element_from_buffer): Don't call bidi_paragraph_init if we
5113 are at ZV. Fixes a crash when reseated to ZV by
5114 try_window_reusing_current_matrix.
45903529
EZ
5115 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
5116 which happens with R2L glyph rows. Fixes a crash when inserting a
5117 character at end of an R2L line.
283ccc18
EZ
5118 (set_cursor_from_row): Don't be fooled by truncated rows: don't
5119 treat them as having zero-width characters. Improve comments.
5120 Don't reverse pos_before and pos_after for reversed glyph rows.
5121 Set cursor.x to negative value when the cursor might be on the
5122 left fringe.
5123 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
5124 left fringe, not the right one.
f951a506
EZ
5125 (notice_overwritten_cursor, draw_phys_cursor_glyph)
5126 (erase_phys_cursor): For reversed cursor_row, support cursor on
5127 the left fringe.
5128
283ccc18
EZ
5129 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
5130 of continuation indicators on the fringes.
5131 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
5132 left fringe.
5133
f951a506
EZ
5134 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
5135 draw cursor on the left fringe.
5136
5137 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
5138 cursor on the left fringe.
5139
f951a506
EZ
5140 * dispnew.c (update_text_area): Handle reversed desired rows when
5141 the cursor is on the left fringe.
5142 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
5143 below, not by 0, for when the cursor is on the left fringe.
5144
3bb49aaf
JD
51452010-04-20 Jan Djärv <jan.h.d@swipnet.se>
5146
5147 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
5148 widget is a scrollbar.
5149
c0be27fd
KH
51502010-04-20 Kenichi Handa <handa@m17n.org>
5151
5152 * charset.c (char_charset): Consider Vcharset_non_preferred_head
5153 only when the arg CHARSET_LIST is nil.
5154
ce5b453a
SM
51552010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5156
5157 Make variable forwarding explicit rather the using special values.
5158 Basically, this makes the structure of buffer-local values and object
5159 forwarding explicit in the type of Lisp_Symbols rather than use
5160 special Lisp_Objects for that. This tends to lead to slightly more
5161 verbose code, but is more C-like, simpler, and makes it easier to make
5162 sure we handled all cases, among other things by letting the compiler
5163 help us check it.
5164 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
5165 Removing forwarding objects.
5166 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
5167 (struct Lisp_Symbol): Make the various forms of variable-forwarding
5168 explicit rather than hiding them inside Lisp_Object "values".
5169 (XFWDTYPE): New macro.
5170 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
5171 (XBUFFER_LOCAL_VALUE): Remove.
5172 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
5173 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
5174 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
5175 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
5176 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
5177 Remove the Lisp_Misc_* header.
5178 (struct Lisp_Buffer_Local_Value): Redefine.
5179 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
5180 (struct Lisp_Misc_Any): Add filler to get the right size.
5181 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
5182 Lisp_Intfwd.
5183 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
5184 (DEFVAR_KBOARD): Allocate a forwarding object.
5185 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
5186 (let_shadows_global_binding_p): New function.
5187 (union Lisp_Val_Fwd): New type.
5188 (make_blv): New function.
5189 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
5190 (store_symval_forwarding, swap_in_global_binding, Fboundp)
5191 (swap_in_symval_forwarding, find_symbol_value, Fset)
5192 (let_shadows_buffer_binding_p, set_internal, default_value)
5193 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
5194 (Fkill_local_variable, Fmake_variable_frame_local)
5195 (Flocal_variable_p, Flocal_variable_if_set_p)
5196 (Fvariable_binding_locus):
5197 * xdisp.c (select_frame_for_redisplay):
5198 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
5199 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
5200 * frame.c (store_frame_param):
5201 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
5202 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
5203 value structure.
5204 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
5205 (clone_per_buffer_values): Only adjust markers into the current buffer.
5206 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
5207 (Fbuffer_local_value, set_buffer_internal_1)
5208 (swap_out_buffer_local_variables):
5209 Adapt to the new symbol value structure.
5210 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
5211 (defvar_per_buffer): Take a new arg for the fwd object.
5212 (buffer_lisp_local_variables): Return a proper alist (different fix
5213 for bug#4138).
5214 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
5215 (Fgarbage_collect): Don't handle buffer_defaults specially.
5216 (mark_object): Handle new symbol value structure rather than the old
5217 special Lisp_Misc_* objects.
5218 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
5219 * term.c (set_tty_color_mode):
5220 * bidi.c (bidi_initialize): Don't access the ->value field directly.
5221 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
5222 a buffer_local_flags.
5223 * print.c (print_object): Get rid of impossible forwarding objects.
5224
fd3998ff
EZ
52252010-04-19 Eli Zaretskii <eliz@gnu.org>
5226
5227 * bidi.c (bidi_get_type, bidi_get_category)
5228 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
5229 (bidi_type_of_next_char, bidi_level_of_next_char):
5230 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 5231
e42cd1a7
JB
52322010-04-19 Juanma Barranquero <lekktu@gmail.com>
5233
5234 * dired.c (Ffile_attributes): Fix typo in docstring.
5235
6e104790 52362010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
5237
5238 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
5239 NSInteger (Bug#5811).
5240
6e104790 52412010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
5242
5243 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
5244 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
5245
6e104790 52462010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
5247
5248 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
5249
6e104790
SM
52502010-04-19 Chong Yidong <cyd@stupidchicken.com>
5251
5252 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
5253 terminal frames (Bug#5837).
5254
37dcfea0
EZ
52552010-04-19 Eli Zaretskii <eliz@gnu.org>
5256
d1da276f
EZ
5257 * .gdbinit (xsubchartable): New command.
5258
37dcfea0
EZ
52592010-04-19 Eli Zaretskii <eliz@gnu.org>
5260
5261 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 5262 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
5263 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
5264 and
5265 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
5266
e9515805
SM
52672010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
5268
5269 * alloc.c (Fpurecopy): Hash-cons if requested.
5270 (syms_of_alloc): Update purify-flag docstring.
5271
22aa44a8
JD
52722010-04-18 Jan Djärv <jan.h.d@swipnet.se>
5273
5274 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
5275 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
5276
ebb5722e
EZ
52772010-04-17 Eli Zaretskii <eliz@gnu.org>
5278
5279 Fix a crash when an NSM character is inserted at BEGV.
5280
5281 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
5282 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
5283 NEUTRAL_B or UNKNOWN_BT.
5284
0f4442ef
EZ
52852010-04-16 Eli Zaretskii <eliz@gnu.org>
5286
5287 * xdisp.c (set_cursor_from_row): Don't consider possibility of
5288 other rows with cursor unless they are different from this row and
5289 this row is part of a continued line. (Bug#5943)
5290
7d4e45f8
DN
52912010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
5292
5293 * s/freebsd.h: Restore osreldate.h include.
5294 Suggested by Naohiro Aota.
5295
5ba5ec85
J
52962010-04-16 Jan Djärv <jan.h.d@swipnet.se>
5297
5298 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
5299
20af301d
CY
53002010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
5301
5302 * s/cygwin.h: Avoid linking against static libgcc.
5303
a4b000fb
JL
53042010-04-15 Juri Linkov <juri@jurta.org>
5305
5306 * window.c: Add Qscroll_command.
5307 Remove Vscroll_preserve_screen_position_commands.
5308 (window_scroll_pixel_based, window_scroll_line_based): Check the
5309 `scroll-command' property on the last command instead of searching
5310 the last command in Vscroll_preserve_screen_position_commands.
5311 (syms_of_window): Initialize and staticpro `Qscroll_command'.
5312 Put Qscroll_command property on Qscroll_up and Qscroll_down.
5313 (scroll-preserve-screen-position): Doc fix.
5314 (Vscroll_preserve_screen_position_commands): Remove variable.
5315
bc319ba4
DN
53162010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5317
6bb24457
DN
5318 * xdisp.c (message): Do not use NO_ARG_ARRAY.
5319
19d4c244
DN
53202010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
5321
5322 Reduce cpp use in Makefile.in.
5323 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
5324 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
5325 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
5326 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
5327 (CRT0_COMPILE): Remove, inline it in the only user.
5328
32129746
JL
53292010-04-14 Juri Linkov <juri@jurta.org>
5330
5331 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
5332 `scroll-up-command' and `M-v' from `scroll-down' to
5333 `scroll-down-command'.
5334
9013a7f8
JL
53352010-04-14 Juri Linkov <juri@jurta.org>
5336
5337 * window.c (Vscroll_preserve_screen_position_commands): New variable
5338 with the default value as the list of Qscroll_down and Qscroll_up.
5339 (window_scroll_pixel_based, window_scroll_line_based): Search the
5340 last command in the list Vscroll_preserve_screen_position_commands
5341 instead of comparing with Qscroll_up and Qscroll_down.
5342
4bef8d26
JD
53432010-04-13 Jan Djärv <jan.h.d@swipnet.se>
5344
92848133
JD
5345 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
5346 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
5347 does that.
5348
4bef8d26
JD
5349 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
5350 to zero.
5351
58b963f7
SM
53522010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5353
84164a0d
SM
5354 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
5355
2b0a91e7
SM
5356 Try to solve the problem of spurious EOF chars in long lines of text
5357 sent to interactive subprocesses.
5358 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
5359 (system_process_attributes): Remove unused var `ttotal'.
5360 * process.c (send_process): Don't bother breaking long line with EOF
5361 chars when talking to ttys any more.
5362 (wait_reading_process_output): Output a warning when called in such
5363 a way that it could block without being interruptible.
5364
58b963f7
SM
5365 Try to detect file modification within the same second.
5366 * buffer.h (struct buffer): New field modtime_size.
5367 * buffer.c (reset_buffer): Initialize it.
5368 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
5369 (Fverify_visited_file_modtime): Check it.
5370 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
5371 (Fset_visited_file_modtime): Set (or clear) it.
5372
01f5787b
SM
53732010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
5374
5375 * process.c (status_notify): Remove unused var `ro'.
5376
83725342
JD
53772010-04-12 Jan Djärv <jan.h.d@swipnet.se>
5378
5379 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
5380 more than one visual (Bug#5938).
5381
b9465836
DN
53822010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
5383
50426a04
JB
5384 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
5385 Undefine.
b9465836 5386
8d9c8ece
DN
53872010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
5388
b1f52161
DN
5389 Remove C_SWITCH_SYSTEM_TEMACS.
5390 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
5391 (malloc, realloc, free): Use emacs, not temacs for conditional
5392 definition.
5393
5394 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
5395 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
5396
8d9c8ece
DN
5397 Use autoconf, not cpp for some variables.
5398 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
5399 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
5400 (ALL_CFLAGS): Use them as make variables.
5401 (really-lwlib, really-oldXMenu): Do not pass them.
5402
1ecb2d3f
JD
54032010-04-11 Jan Djärv <jan.h.d@swipnet.se>
5404
5405 * xmenu.c (apply_systemfont_to_dialog): New.
5406 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
5407
3a4fa2f2
SM
54082010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
5409
97e53006
SM
5410 * process.c (exec_sentinel): Preserve current-buffer.
5411
3a4fa2f2
SM
5412 * process.c (read_process_output): Move the save-current-buffer to
5413 apply to both the filter and the non-filter branches.
5414
88df7221
DN
54152010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
5416
5417 * s/msdos.h (UNEXEC): New definition.
5418
5634ff85
YM
54192010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5420
6eff5c3d
YM
5421 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
5422 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
5423
5424 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
5425 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
5426 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
5427 TRY_WINDOW_CHECK_MARGINS.
5428
5429 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
5430 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
5431 width only when it is for padding.
5634ff85 5432
b13aef54
J
54332010-04-09 Jan Djärv <jan.h.d@swipnet.se>
5434
5435 * xfns.c (Fx_show_tip): Call try_window in a loop until
5436 fonts_changed_p is zero (Bug#2423).
5437
21d28484
EZ
54382010-04-08 Eli Zaretskii <eliz@gnu.org>
5439
5440 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
5441 the end of TEXT_AREA. (Bug#5856)
5442
0269ef77
JD
54432010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5444
5445 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
5446 HAVE_GCONF.
5447
5930fe97
EZ
54482010-04-08 Eli Zaretskii <eliz@gnu.org>
5449
5450 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
5451 prev.orig_type, for resolving type of NSM. (Bug#5858)
5452
99852628
JD
54532010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5454
5455 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
5456 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
5457 in current_font.
5458 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
5459 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
5460 New functions.
5461 (syms_of_xsettings): Initialize current_font.
5462 defsubr Sfont_get_system_normal_font.
99852628 5463
686b968e
JB
5464 * xsettings.h (Ffont_get_system_normal_font)
5465 (xsettings_get_system_normal_font): Declare.
99852628
JD
5466
5467 * xfns.c (extern xlwmenu_default_font): Remove.
5468 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
5469 to xlwmenu.c.
5470
5471 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
5472 menu items in UTF-8.
5473
5474 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
5475 (apply_systemfont_to_menu): New function.
5476 (set_frame_menubar, create_and_show_popup_menu): Call
5477 apply_systemfont_to_menu.
5478
7fc874c4
J
54792010-04-07 Jan Djärv <jan.h.d@swipnet.se>
5480
5481 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
5482 FRAME_LINE_TO_PIXEL_Y.
5483
5484 * xterm.c (x_set_window_size_1): Don't add border_width/height to
5485 pixelwidth/height.
5486
863bf481
DN
54872010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
5488
5e5a3b92
DN
5489 Simplify code for HP machines.
5490 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
5491 for GNU_LINUX, not needed.
5492 (UNEXEC, NEED_BSDTTY): Move definitions...
5493 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
5494
863bf481
DN
5495 * m/iris4d.h (UNEXEC): Move definition ...
5496 * s/irix6-5.h (UNEXEC): ... here.
5497
3e6bec3b
JD
54982010-04-04 Jan Djärv <jan.h.d@swipnet.se>
5499
5500 * xfns.c (set_machine_and_pid_properties): New function.
5501 (Fx_create_frame): Call set_machine_and_pid_properties.
5502
2912322b
SM
55032010-04-03 Eli Zaretskii <eliz@gnu.org>
5504
1502b819
EZ
5505 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
5506 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
5507 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
5508
2912322b
SM
5509 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
5510 in this function. (Bug#5703)
5511
55122010-04-03 Chong Yidong <cyd@stupidchicken.com>
5513
5514 * nsterm.h: Fix last change.
5515
c435b432
DN
55162010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
5517
a568f507
DN
5518 * m/intel386.h (NO_REMAP): Move definition ...
5519 * s/msdos.h (NO_REMAP): ... here.
5520
4cd9f6c2
DN
5521 * m/vax.h (CRT0_DUMMIES): Remove, unused.
5522
c435b432
DN
5523 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
5524 used on those platforms.
5525
42a2c622
DN
55262010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
5527
5528 Remove extern errno declarations.
5529 * xterm.c:
5530 * xrdb.c:
5531 * w32term.c:
5532 * unexec.c:
5533 * unexaix.c:
5534 * sysdep.c:
5535 * process.c:
5536 * lread.c:
5537 * keyboard.c:
5538 * floatfns.c:
5539 * filelock.c:
5540 * fileio.c:
5541 * emacs.c (main):
5542 * ecrt0.c:
5543 * dispnew.c:
5544 * callproc.c:
5545 * buffer.c: Remove errno extern declarations.
5546 * s/netbsd.h (NEED_ERRNO): Remove.
5547
8224f93d
DN
55482010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
5549
5550 Remove all uses of LIBX11_SYSTEM.
5551 * Makefile.in (LIBX11_SYSTEM): Remove.
5552 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
5553 instead.
5554
814062c7
EZ
55552010-04-01 Eli Zaretskii <eliz@gnu.org>
5556
ed68db4d
EZ
5557 Remove support for DJGPP v1.x (bug#5813).
5558
5559 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
5560 * s/msdos.h:
5561 * unexec.c (make_hdr, copy_text_and_data):
5562 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 5563 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
5564 (IT_set_terminal_modes, __write, _rename, gethostname)
5565 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
5566 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
5567 the value of __DJGPP__.
ed68db4d
EZ
5568 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
5569 compatibility code.
8224f93d
DN
5570 * lread.c:
5571 * gmalloc.c (memalign):
5572 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
5573 * emacs.c (main):
5574 * dosfns.c (init_dosfns):
ed68db4d
EZ
5575 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
5576
52f4d8d5
EZ
55772010-04-01 Eli Zaretskii <eliz@gnu.org>
5578
814062c7
EZ
5579 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
5580 string with `cursor' property comes from an `after-string'
5581 overlay. (Bug#5816)
5582
0dc2e11d
GM
55832010-04-01 Glenn Morris <rgm@gnu.org>
5584
5585 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
5586 Define as Makefile variables.
5587 (LIBX): Use above variables rather than directly using autoconf.
5588
1d29df59
DN
55892010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
5590
5591 Clean up BSD_SYSTEM use.
5592 * xterm.c:
5593 * process.c:
5594 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
5595 for including <sys/ioctl.h>.
5596 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
5597 code is only used for MSDOS.
5598
1546c559
JL
55992010-03-31 Juri Linkov <juri@jurta.org>
5600
5601 * image.c: Add `Qextension_data'.
5602 (syms_of_image): Initialize and staticpro `Qextension_data'.
5603 (Fimage_metadata): Rename from `Fimage_extension_data'.
5604 (gif_load): Put GIF extension data to the property
5605 `Qextension_data'.
5606
6521c534
CY
56072010-03-31 Chong Yidong <cyd@stupidchicken.com>
5608
5609 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
5610 * nsterm.h: Fix prototype.
5611
52c30783
EZ
56122010-03-31 Eli Zaretskii <eliz@gnu.org>
5613
5614 * xdisp.c (highlight_trailing_whitespace): Support highlight of
5615 trailing whitespace in right-to-left rows.
5616
855a0da7
SM
56172010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5618
5619 Get rid of the direct_output optimizations.
5620 * keyboard.c (nonundocount): Remove extern declaration.
5621 (command_loop_1): Remove brittle optimisation for cheap and
5622 common operations.
5623 * xdisp.c (redisplay_internal): Don't bother checking
5624 redisplay_performed_directly_p any more.
5625 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
5626 any more.
5627 * dispnew.c (redisplay_performed_directly_p)
5628 (direct_output_for_insert, direct_output_forward_char):
5629 * dispextern.h (redisplay_performed_directly_p)
5630 (direct_output_for_insert, direct_output_forward_char): Remove.
5631 * cmds.c (nonundocount): Make it static.
5632
85738751 56332010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
5634
5635 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
5636
85738751 56372010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
5638
5639 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
5640 invisible (Bug#5766).
5641
85738751 56422010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 5643
855a0da7
SM
5644 * xdisp.c (x_consider_frame_title, update_window_cursor):
5645 Remove HAVE_NS conditionals.
194d44e7 5646 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
5647
5648 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
5649 filename for the title.
5650 (ns_set_doc_edited): Do nothing if the selected window is a
5651 minibuffer window.
5652
5653 * nsterm.h: Add prototypes for ns_set_name_as_filename and
5654 ns_set_doc_edited.
5655
5656 * nsterm.m: Remove unneeded prototype.
5657
85738751 56582010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
5659
5660 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
5661 in the DOC file. (Bug#5336)
5662
85738751 56632010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
5664
5665 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
5666
75d1428c
SM
56672010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5668
5669 * window.c (keys_of_window): Remove redundant/overridden bindings.
5670
82043cfb
EZ
56712010-03-30 Eli Zaretskii <eliz@gnu.org>
5672
5673 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
5674 Restore original behavior when the iterator is not bidi_p.
5675
b5dd0ae7
DN
56762010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5677
5678 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
5679
bd924a5d
EZ
56802010-03-30 Eli Zaretskii <eliz@gnu.org>
5681
5682 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
5683 are outside the range of cached character positions.
5684
3580374b
JB
56852010-03-30 Juanma Barranquero <lekktu@gmail.com>
5686
5687 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
5688
a7b02820
EZ
56892010-03-30 Eli Zaretskii <eliz@gnu.org>
5690
5691 Initial support for bidirectional editing.
5692
5693 * Makefile.in (obj): Include bidi.o.
5694 (bidi.o): New target.
5695
5696 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
5697 ($(BLD)/bidi.$(O)): New target.
5698
5699 * bidi.c: New file.
5700
5701 * buffer.h (struct buffer): New members bidi_display_reordering
5702 and bidi_paragraph_direction.
5703
5704 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
5705 and bidi_paragraph_direction.
5706 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
5707 and bidi-paragraph-direction.
5708 (Fbuffer_swap_text): Swap the values of
5709 bidi_display_reordering and bidi_paragraph_direction.
5710
5711 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
5712 (bidi_type_t, bidi_dir_t): New types.
5713 (bidi_saved_info, bidi_stack, bidi_it): New structures.
5714 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
5715 prev_stop, base_level_stop, and eol_pos.
5716 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
5717 (IT_STACK_SIZE): Enlarge to 5.
5718 (struct glyph_row): New member reversed_p.
5719 <string_buffer_position>: Update prototype.
5720 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
5721 glyph_row if bidi_it.paragraph_dir == R2L.
5722 (struct glyph): New members resolved_level and bidi_type.
5723
5724 * dispnew.c (direct_output_forward_char): Give up if we need bidi
5725 processing or buffer's direction is right-to-left.
5726 (prepare_desired_row): Preserve the reversed_p flag.
5727 (row_equal_p): Compare the reversed_p attributes as well.
5728
5729 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
5730 bidi_init_it and set it->paragraph_embedding from the current
5731 buffer's value of bidi_paragraph_direction.
5732 (reseat_1): Initialize bidi_it.first_elt.
5733 (set_iterator_to_next, next_element_from_buffer): Use the value of
5734 paragraph_embedding to determine the paragraph direction.
5735 (set_iterator_to_next): Under bidi reordering, call
5736 bidi_get_next_char_visually. Call bidi_paragraph_init if the
5737 new_paragraph flag is set in the bidi iterator.
5738 (next_element_from_buffer): If bidi_it.first_elt is set,
5739 initialize paragraph direction and find the first character to
5740 display in the visual order. If reseated to a middle of a line,
5741 prime the bidi iterator starting at the line's beginning. Handle
5742 the situation where we overstepped stop_charpos due to
5743 non-linearity of the bidi iteration. Likewise for when we back up
5744 beyond the previous stop_charpos. When moving across stop_charpos,
5745 record it in prev_stop.
5746 (display_line): Set row->end and it->start for the next row to the
5747 next character in logical order. Always extend reversed_p rows to
5748 the end of line, even if they end at ZV. Copy the reversed_p flag
5749 to the next glyph row. Keep calling set_cursor_from_row for
5750 bidi-reordered rows even if we already have a possible candidate
5751 for cursor position. Set row_end after all the row's glyphs have
5752 been produced, by looping over the glyphs. Record the position
5753 after EOL in it->eol_pos, and use it to set end_pos of the last
5754 row produced for a continued line.
5755 <Qright_to_left, Qleft_to_right>: New variables.
5756 (syms_of_xdisp): Initialize and staticpro them.
5757 (string_buffer_position_lim): New function.
5758 (string_buffer_position): Most of code moved to
5759 string_buffer_position_lim. Last argument and return value are
5760 now EMACS_INT; all callers changed.
5761 (set_cursor_from_row): Rewritten to support bidirectional text and
5762 reversed glyph rows.
5763 (text_outside_line_unchanged_p, try_window_id): Disable
5764 optimizations if we are reordering bidirectional text and the
5765 paragraph direction can be affected by the change.
5766 (append_glyph, append_composite_glyph)
5767 (produce_image_glyph, append_stretch_glyph): Set the
5768 resolved_level and bidi_type members of each glyph.
5769 (append_glyph): If the glyph row is reversed, prepend the glyph
5770 rather than appending it.
5771 (handle_stop_backwards): New function.
5772 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
5773 (reseat): call handle_stop_backwards to recompute prev_stop and
5774 base_level_stop for the new position.
5775 (handle_invisible_prop): Under bidi iteration, skip invisible text
5776 using bidi_get_next_char_visually. If we are `reseat'ed, init the
5777 paragraph direction. Update IT->prev_stop after skipping
5778 invisible text.
5779 (move_it_in_display_line_to): New variables prev_method
5780 and prev_pos. Compare for strict equality in
5781 BUFFER_POS_REACHED_P.
5782 (try_cursor_movement): Examine all the candidate rows that occlude
5783 point, to return the best match. If rows are bidi-reordered
5784 and point moved backwards, back up to the row that is not a
5785 continuation line, and start looking for a suitable row from
5786 there.
5787
5788 * term.c (append_glyph): Reverse glyphs by pre-pending them,
5789 rather than appending, if the glyph_row's reversed_p flag is set.
5790 Set the resolved_level and bidi_type members of each glyph.
5791
5792 * .gdbinit (pbiditype): New command.
5793 (pgx): Use it to display bidi level and type of the glyph.
5794 (pitx): Display some bidi information about the iterator.
5795 (prowlims, pmtxrows): New commands.
5796
32a8894e
DN
57972010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5798
5799 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
5800 * s/usg5-4.h (LIBS_DEBUG):
5801 * s/irix6-5.h (C_DEBUG_SWITCH):
5802 * s/gnu-linux.h (LIBS_DEBUG):
5803 * s/darwin.h (LIBS_DEBUG):
5804 * s/bsd-common.h (LIBS_DEBUG):
5805 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
5806 * m/iris4d.h (LIBS_DEBUG):
5807 * m/hp800.h (LIBS_DEBUG): Remove definitions.
5808
5809 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
5810 (LIBS_DEBUG): Remove definition.
5811
649dbf36
CY
58122010-03-27 Chong Yidong <cyd@stupidchicken.com>
5813
5814 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
5815 Windows.
5816
cad4261f
YM
58172010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5818
5819 * process.c (Fmake_network_process): Don't call turn_on_atimers around
5820 `connect' (Bug#5723).
5821
cd591dbc
HE
58222010-03-25 Helmut Eller <eller.helmut@gmail.com>
5823
5824 * process.c (Fmake_network_process): Call `select' for interrupted
5825 `connect' rather than creating new socket (Bug#5173).
5826
e867cb5d 58272010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
5828
5829 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
5830
5831 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
5832
5833 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
5834
e867cb5d 58352010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
5836
5837 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
5838 XLoadQueryFont.
5839
e867cb5d 58402010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
5841
5842 * coding.c (decode_coding_ccl): Fix previous change for the
5843 multibyte case.
fb608df3
KH
5844 (encode_coding_ccl): Don't setup ccl program here. Fix for the
5845 case that the output buffer is fullfilled.
5846 (encode_coding): Setup ccl program here.
fbdc1721 5847
5845f0ed
DN
58482010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
5849
814fb708
DN
5850 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
5851
5845f0ed
DN
5852 Simplify LIBS_MACHINE definitions.
5853 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
5854 * m/iris4d.h (LIBS_MACHINE): Likewise.
5855 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
5856 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 5857 * s/netbsd.h: Remove commented out code.
5845f0ed 5858
b7064064
DN
58592010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
5860
df7734b2
DN
5861 Remove dead code dealing with POSIX_SIGNALS.
5862 * atimer.c (set_alarm): Remove dead code, all USG systems define
5863 POSIX_SIGNALS.
5864 * data.c (arith_error): Likewise.
5865 * keyboard.c (input_available_signal, handle_user_signal)
5866 (interrupt_signal): Likewise.
5867 * process.c (sigchld_handler): Likewise.
5868 (create_process): Remove if 0 code. Remove HPUX conditional when
5869 !defined (POSIX_SIGNALS), it cannot be true.
5870 * syssignal.h: Remove USG5_4 and USG conditionals when
5871 !POSIX_SIGNALS, they cannot be true.
5872
b7064064
DN
5873 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
5874 NO_SOCK_SIGIO, not used anymore.
5875
55da5ee3
DN
58762010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
5877
0be96e3a
DN
5878 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
5879 support vax on BSDs.
5880
55da5ee3
DN
5881 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
5882 * s/aix4-2.h (ORDINARY_LINK): ... here.
5883
c0282183
AS
58842010-03-21 Andreas Schwab <schwab@linux-m68k.org>
5885
82c3d67a
AS
5886 * Makefile.in (abs_builddir): Define.
5887 (bootstrap_exe): Use it.
5888 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 5889
3613edce
SM
58902010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
5891
5892 * Makefile.in (bootstrap_exe): Use an absolute name.
5893
7f110ddc
DN
58942010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5895
22e87574
DN
5896 Remove support for old GNU/Linux using libc version 5.
5897 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
5898 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
5899
05a670e6
DN
5900 Consolidate redundant definitions in s/bsd-common.h.
5901 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5902 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5903 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
5904 doing it in all files that include this one.
5905 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5906 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5907 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5908 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5909 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5910 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5911 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5912 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5913 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5914
2968f561
DN
5915 Consolidate redundant definitions.
5916 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
5917 it's undefined in all files that include this one.
5918 (POSIX_SIGNALS): Define here instead of doing it in all files that
5919 include this one.
5920 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5921 (POSIX_SIGNALS): Do not define.
5922 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5923 (POSIX_SIGNALS): Do not define.
5924 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5925 (POSIX_SIGNALS): Do not define.
5926
15d25dc0
DN
5927 Remove support for old UNIX System V systems.
5928 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
5929 * s/usg-5-4-2.h: Remove.
5930
07e339e4
DN
5931 Remove support for Solaris on PPC and for old versions.
5932 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
5933 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
5934 that cancel each other.
5935 * s/sol2-3.h:
5936 * s/sol2-4.h:
5937 * s/sol2-5.h: Remove.
5938 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
5939 (NO_REMAP): Remove, unused.
5940 (UNEXEC): Move definition ...
5941 * s/aix4-2.h (UNEXEC): ... here.
5942
7f110ddc
DN
5943 * s/openbsd.h: Remove support for non-ELF and for systems that do
5944 not support shared libraries.
5945 * s/netbsd.h:
5946 * s/freebsd.h: Likewise.
5947
605f35cd
DN
59482010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5949
5950 Remove non-working support for lynxos 3.0.
5951 * s/lynxos.h: Remove file.
5952
5953 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
5954 COFF_BSD_SYMBOLS, nothing defines it anymore.
5955
aed71cf4
DN
59562010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5957
5958 Remove obsolete uses of HAVE_SHM.
5959 * emacs.c (standard_args):
5960 (Fdump_emacs):
5961 (syms_of_emacs): Remove code depending on HAVE_SHM.
5962
5963 * alloc.c: Remove HAVE_SHM dependent definition.
5964
5965 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
5966
aded53ff
GM
59672010-03-18 Glenn Morris <rgm@gnu.org>
5968
17284745
GM
5969 * emacs.c (USAGE4): Hard-code bug address.
5970 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
5971 (bug_reporting_address): Remove.
5972 (main): Don't call bug_reporting_address.
5973
aded53ff
GM
5974 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
5975 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
5976
303500aa
CY
59772010-03-15 Chong Yidong <cyd@stupidchicken.com>
5978
5979 * xfns.c (Fx_create_frame):
5980 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
5981 on left.
5982
cef3058f
CY
59832010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
5984
5985 * editfns.c (Fformat): Account for string precision when computing
5986 field width (Bug#5710).
5987
a647d59d
CY
59882010-03-12 Chong Yidong <cyd@stupidchicken.com>
5989
4fa42018
CY
5990 * xfns.c (Fx_create_frame): Set default to Qright.
5991
a647d59d
CY
5992 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
5993 all window systems.
5994
6da23aaa
EZ
59952010-03-12 Eli Zaretskii <eliz@gnu.org>
5996
a96f6398 5997 These changes remove termcap.c from the build on Posix platforms.
83d02def 5998 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
5999 (MSDOS_OBJ): ...to here.
6000 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
6001 now identical to when LIBS_TERMCAP is defined.
6002
6003 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
6004
6005 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
6006
a96f6398 6007 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 6008
288f9fc0
CY
60092010-03-10 Chong Yidong <cyd@stupidchicken.com>
6010
6011 * Branch for 23.2.
6012
d48cd3f4
SM
60132010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6014
6015 Cleanup setup of gl_state in various parts of the code.
6016 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
6017 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
6018 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
6019 (skip_chars):
6020 * regex.c (regex_compile): Use it.
6021 (re_compile_pattern): Don't set gl_state.current_syntax_table since
6022 it's now set in regex_compile when/if we need it.
6023
618db430
SM
60242010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
6025
c0335e02
SM
6026 Make it possible to C-g in a tight bytecode loop again (bug#5680).
6027 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
6028 (QUIT): Use it to consolidate code and remove redundancy.
6029 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
6030
254c06a8
SM
6031 * regex.c (regex_compile): Setup gl_state as well.
6032
618db430
SM
6033 * syntax.c (skip_chars): Setup gl_state (bug#3823).
6034 (in_classes): Use CONSP before XCAR/XCDR.
6035
233f0c9f
CY
60362010-03-03 Chong Yidong <cyd@stupidchicken.com>
6037
6038 * keymap.c (Fwhere_is_internal): Use Fequal to compare
6039 definitions, so that keyboard macros are correctly handled
6040 (Bug#5481).
6041
75f80e63
EZ
60422010-03-02 Eli Zaretskii <eliz@gnu.org>
6043
6044 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
6045 text that could be relocated inside the call to emacs_mule_char.
6046 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
6047 (CODING_DECODE_CHAR): Add a comment describing its purpose.
6048
dcfb9bc4
KH
60492010-03-02 Kenichi Handa <handa@m17n.org>
6050
fc9a17bc
KH
6051 * character.c (parse_str_as_multibyte): Fix handling of the
6052 multibyte form of raw-bytes.
6053 (str_as_multibyte): Likewise.
6054
dcfb9bc4
KH
6055 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
6056 form of raw-bytes.
6057
412c01b6
CY
60582010-02-28 Chong Yidong <cyd@stupidchicken.com>
6059
6060 * charset.c (load_charset_map_from_file)
6061 (load_charset_map_from_vector): Zero out allocated
6062 charset_map_entries before using them.
6063
df7e1ea0
AS
60642010-02-27 Andreas Schwab <schwab@linux-m68k.org>
6065
6066 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
6067
fe69a722
CY
60682010-02-27 Chong Yidong <cyd@stupidchicken.com>
6069
4ed28cf4
CY
6070 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
6071 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 6072
7379cfce
KH
60732010-02-26 Kenichi Handa <handa@m17n.org>
6074
f88cc4d6
KH
6075 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
6076
7379cfce
KH
6077 * xdisp.c (reseat_to_string): Fix previous change.
6078
cf2fdcfb
CY
60792010-02-26 David Reitter <david.reitter@gmail.com>
6080
6081 * nsfont.m (nsfont_draw): ns_antialias_text should be a
6082 Lisp_Object (Bug#4736).
6083
cc6c7c75
KH
60842010-02-25 Kenichi Handa <handa@m17n.org>
6085
6086 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
6087
32e737d7
JD
60882010-02-24 Jan Djärv <jan.h.d@swipnet.se>
6089
6090 * xterm.c (XTflash): Move declarations before statements.
6091
6092 * gtkutil.c (xg_get_gdk_display): Remove (unused).
6093 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
6094 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
6095 (xg_create_tool_bar): Remove unused variables.
6096 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 6097 (xg_create_frame_widgets): Remove variable grav.
32e737d7 6098
676cae9f
CY
60992010-02-21 Chong Yidong <cyd@stupidchicken.com>
6100
6101 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
6102
886cc2b8
SM
61032010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
6104
6105 * term.c (fatal): Add a final \n if needed (bug#5596).
6106
ddb2d8e2
CY
61072010-02-18 Chong Yidong <cyd@stupidchicken.com>
6108
6109 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
6110
2a4f8d3d
GM
61112010-02-18 Glenn Morris <rgm@gnu.org>
6112
6113 * callint.c (Finteractive): Doc fix.
6114
ebaf11b6
KH
61152010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
6116
886cc2b8
SM
6117 * coding.c (record_conversion_result):
6118 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
6119 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
6120 memory allocation error.
6121
d0396581
KH
61222010-02-17 Kenichi Handa <handa@m17n.org>
6123
886cc2b8
SM
6124 * coding.c (decode_coding_ccl): Don't setup ccl program here.
6125 Fix for the case that the output buffer is fullfilled.
d0396581
KH
6126 (decode_coding): Setup ccl program here. Keep looping when the
6127 decoder stopped because the output buffer is
6128 fullfilled (bug#5534).
6129
6130 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
6131
98599f74
JD
61322010-02-13 Jan Djärv <jan.h.d@swipnet.se>
6133
471e4f04 6134 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 6135 bug #5571.
886cc2b8 6136 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 6137 overdrawn.
98599f74 6138
182659ae
JD
61392010-02-10 Jan Djärv <jan.h.d@swipnet.se>
6140
6141 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
6142 doing_interact here.
6143 (ice_connection_closed): New function.
6144 (x_session_check_input, smc_die_CB, ice_io_error_handler)
6145 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
6146 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
6147 returns I/O error.
6148 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
6149 bug #5512.
6150
9be32c4e 61512010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
6152
6153 * nsfont.m (nsfont_open): The system's value for the font descent
6154 is negative, so round it down to avoid clipping.
6155
a2f3eb19
CY
61562010-02-06 Chong Yidong <cyd@stupidchicken.com>
6157
6158 * charset.c (load_charset_map_from_file)
6159 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 6160 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 6161
3088147c
CY
61622010-02-05 Chong Yidong <cyd@stupidchicken.com>
6163
6164 * charset.c (load_charset_map_from_file): Allocate large
6165 charset_map_entries structure on the heap rather than the stack.
6166 (Bug#5526).
6167
b57d9029
KH
61682010-01-31 Kenichi Handa <handa@m17n.org>
6169
6170 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 6171 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 6172
c67d885b
CY
61732010-01-31 Chong Yidong <cyd@stupidchicken.com>
6174
6175 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
6176 <deactivated@gmail.com> (Bug#3605).
6177
8fab2362
CY
61782010-01-31 David De La Harpe Golden <david@harpegolden.net>
6179
6180 * fileio.c (Frename_file): Correctly rename symlinks to
6181 directories (Bug#5496).
6182
cb2a62f2
CY
61832010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
6184
6185 * nsterm.m (ns_ring_bell): Handle visible bell like X.
6186
944c7a26
AS
61872010-01-30 Andreas Schwab <schwab@linux-m68k.org>
6188
6189 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
6190
c024ac08
CY
61912010-01-29 Chong Yidong <cyd@stupidchicken.com>
6192
6193 * frame.c (DEFAULT_ROWS): Change default to 35.
6194
6195 * xfns.c (x_default_font_parameter): Change default XFT font to
6196 monospace-10 (Bug#3643).
6197
af93af83
EZ
61982010-01-29 Eli Zaretskii <eliz@gnu.org>
6199
6200 * w32inevt.c (key_event): Remove unnecessary comparison of
6201 event->uChar.AsciiChar with 128.
6202
ca0eb708
CY
62032010-01-28 Chong Yidong <cyd@stupidchicken.com>
6204
b242dbfc
CY
6205 * fileio.c (Frename_file): Fix last change (Bug#5487).
6206
ca0eb708
CY
6207 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
6208
6209 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
6210
45d45af5
JD
62112010-01-28 Jan Djärv <jan.h.d@swipnet.se>
6212
6213 * xfns.c (Fx_create_frame): Remove window size matching code from
6214 2010-01-15.
a73f9c9d 6215 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 6216
7e233730
JR
62172010-01-27 Jason Rumney <jasonr@gnu.org>
6218
6219 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 6220 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 6221
86e893e3
KH
62222010-01-27 Kenichi Handa <handa@m17n.org>
6223
6224 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 6225 pattern string (Bug#4209).
86e893e3 6226
8719abec
CY
62272010-01-27 David De La Harpe Golden <david@harpegolden.net>
6228
6229 * fileio.c (Frename_file): Call copy-directory and
6230 delete-directory for directories, in order to handle cross-device
6231 renaming (Bug#3353).
6232
844794c8
JD
62332010-01-25 Jan Djärv <jan.h.d@swipnet.se>
6234
aa3e13b5 6235 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 6236 sizes 24 and 10. Bug #3643.
844794c8 6237
bd4b5750
SM
62382010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
6239
8dc1adf6 6240 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
6241 * keymap.c (shadow_lookup): Add `remap' arg.
6242 (describe_map, describe_vector): Update calls to shadow_lookup.
6243 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
6244 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
6245 perform remapping during shadow_lookup check of remapped_sequences.
6246
285d07e2
CY
62472010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
6248
6249 * image.c (png_load): Use png_sig_cmp instead of the obsolete
6250 png_check_sig, which has been removed in libpng 1.4.
6251
c6d09b8d
CY
62522010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
6253
6254 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
6255 lacks this header file).
6256
3d782998
YM
62572010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6258
6259 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
6260 as in Emacs 22.
6261
2aff7c53
YM
62622010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6263
6264 * lisp.h (make_pure_string): String pointer arg now points to const.
6265
6266 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
6267 args now point to const.
6268
74327f7a
EZ
62692010-01-22 Eli Zaretskii <eliz@gnu.org>
6270
6271 * lread.c (Fload): Don't treat files without .elc extension as
6272 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
6273 them. (bug#5303)
6274
4d1e6632
KH
62752010-01-20 Kenichi Handa <handa@m17n.org>
6276
6277 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
6278 treat the source as actual byte sequence.
6279
1fdede8f
AM
62802010-01-19 Alan Mackenzie <acm@muc.de>
6281
6282 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 6283 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
6284 `signal_after_change_p' to `coherent_change_p', and make the
6285 invocation of `modify_region' conditional on it.
6286
67477f30
JD
62872010-01-19 Jan Djärv <jan.h.d@swipnet.se>
6288
6289 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
6290 for debug purpose.
6291 (syms_of_xsettings): Declare xft-settings.
6292
244b023e
CY
62932010-01-18 Chong Yidong <cyd@stupidchicken.com>
6294
6295 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
6296
617364fe
CY
62972010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
6298
6299 * xterm.c (event_handler_gdk): Block input (Bug#5037).
6300
4fe22cdf
CY
63012010-01-16 Chong Yidong <cyd@stupidchicken.com>
6302
6303 * emacs.c (standard_args): Adjust arg priorities to reflect how
6304 they are processed in startup.el.
6305
e118d2be
AS
63062010-01-16 Andreas Schwab <schwab@linux-m68k.org>
6307
6308 * Makefile.in (lisp, shortlisp): Update.
6309
523ae620
SM
63102010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
6311
6312 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
6313 code, link the new kboard into all_kboard before running Lisp code,
6314 and protect the new terminal with GCPRO (Bug#5365).
6315 (x_term_init): Remove unused var `atom'.
6316 (x_delete_display, x_delete_terminal): Remove unused var `i'.
6317
f0d13888
JD
63182010-01-15 Jan Djärv <jan.h.d@swipnet.se>
6319
6320 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
6321 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
6322 to find out usable size of the desktop. Don't make frames larger than
ac146f82 6323 this. Bug #3643.
f0d13888 6324
cc320f07
KH
63252010-01-15 Kenichi Handa <handa@m17n.org>
6326
6327 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
6328
7ffdf101
CY
63292010-01-15 Chong Yidong <cyd@stupidchicken.com>
6330
6331 * nsterm.m (Qnone): Define.
6332
6333 * nsfns.m (Qnone): Move definition to nsterm.m.
6334
d12bd917
KH
63352010-01-14 Kenichi Handa <handa@m17n.org>
6336
6337 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
6338 systems.
6339
d9a7c140
KH
63402010-01-14 Kenichi Handa <handa@m17n.org>
6341
6342 Make auto-composition work on all buffers even if they are
6343 fundamental mode.
6344
6345 * composite.c (Vauto_composition_mode): New variable.
6346 (composition_compute_stop_pos): Check Vauto_composition_mode
6347 instead of Vauto_composition_function.
6348 (composition_adjust_point, Ffind_composition_internal): Likewise.
6349 (syms_of_composite): Declare Lisp variable
6350 "auto-composition-mode" here.
6351
63286bb2
CY
63522010-01-13 Chong Yidong <cyd@stupidchicken.com>
6353
6354 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
6355 during call to vendor-specific-keysyms (Bug#5365).
6356
c2623ee7
YM
63572010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6358
6359 * keyboard.c (input_available_signal) [SYNC_INPUT]:
6360 Call SIGNAL_THREAD_CHECK (Bug#5333).
6361
6362 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
6363 Call SIGNAL_THREAD_CHECK.
6364
0b5397c2
SM
63652010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
6366
6367 Try to fix bug#5314. This is probably not the final word, tho.
6368 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
6369 recent-auto-save-p as a side-effect.
6370 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
6371 * buffer.c (Fkill_buffer, reset_buffer):
6372 * editfns.c (Fsubst_char_in_region):
6373 * fileio.c (Finsert_file_contents, Fdo_auto_save)
6374 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
6375
dc954cb2
KH
63762010-01-13 Kenichi Handa <handa@m17n.org>
6377
6378 Display buffer name, etc. in mode line by composing correctly.
6379
6380 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
6381 STRING is not nil.
0b5397c2 6382 (display_mode_element): Adjust for the change of
dc954cb2
KH
6383 decode_mode_spec and display_line.
6384 (decode_mode_spec): Change arg MULTIBYTE to STRING.
6385 (display_string): Handle the case that STRING is non-null and
6386 LISP_STRING is not nil.
6387
0b5397c2
SM
6388 * xterm.c (x_draw_composite_glyph_string_foreground):
6389 Pay attention to s->face->overstrike.
dc954cb2
KH
6390
6391 * composite.c (composition_reseat_it): Don't check PT if STRING is
6392 non nil.
6393
4a00eaca
YM
63942010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6395
6396 * keyboard.c (read_char): Don't apply previous change when current
6397 buffer is unchanged by command execution.
6398
60abb287
JD
63992010-01-12 Jan Djärv <jan.h.d@swipnet.se>
6400
6401 * keyboard.c (read_char): Return after executing from special map.
6402
893db5bc
GM
64032010-01-12 Glenn Morris <rgm@gnu.org>
6404
6405 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
6406 bug-gnu-emacs rather than emacs-pretest-bug.
6407
4d03ece0
CY
64082010-01-11 Chong Yidong <cyd@stupidchicken.com>
6409
6410 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
6411 initializing the Lisp variables that depend on them.
6412
1df47e38
YM
64132010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6414
6415 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
6416 Clear areas that will not be updated after change of menu bar lines.
6417 Clear the menu bar window's current matrix when the window gets empty.
6418
2f1c6384
CY
64192010-01-09 Chong Yidong <cyd@stupidchicken.com>
6420
e398c61c
CY
6421 * intervals.h, textprop.c (extend_property_ranges): Return value
6422 and args changed. Discard properties that begin at or after the
6423 new end (Bug#5306).
6424
6425 * editfns.c (Fformat): Caller changed.
6426
e5a29a10
CY
6427 * nsterm.m (ns_set_default_prefs): Delete function.
6428 (syms_of_nsterm): Initialize ns_command_modifier,
6429 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
6430 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
6431
2f1c6384
CY
6432 * xdisp.c (pos_visible_p): Check for invisible text at the correct
6433 position (Bug#4040).
6434
d427a9fa
EZ
64352010-01-09 Eli Zaretskii <eliz@gnu.org>
6436
6437 * editfns.c (Ffloat_time): Doc fix.
6438
21b9df2f
JD
64392010-01-09 Jan Djärv <jan.h.d@swipnet.se>
6440
6441 * xfns.c (Fx_create_frame): Don't create frame larger than display
6442 by default bug#3643.
6443
4b00d3b1
YM
64442010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6445
6446 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
6447 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
6448 windows above internal border.
6449
6450 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
6451 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
6452 windows above internal border.
6453
6454 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
6455 tool bar windows specially.
6456
6457 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
6458
6459 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
6460 specially.
6461 (XTflash): Take account of menu bar height.
6462
6463 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
6464 specially.
6465
5075d853
JD
64662010-01-08 Jan Djärv <jan.h.d@swipnet.se>
6467
ac146f82 6468 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
6469 also be true before we can return early (bug #5339).
6470
474217c8
CY
64712010-01-06 David Reitter <david.reitter@gmail.com>
6472
6473 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
6474 (Fns_display_usable_bounds): Rewrite, computing bounds properly
6475 (Bug#3233).
6476
c0e6d47d
JD
64772010-01-06 Jan Djärv <jan.h.d@swipnet.se>
6478
d0cf45b7
JD
6479 * font.c (font_open_entity): Enable chache and call cached_font_ok
6480 for the driver if defined.
6481 (QCuser_spec): New symbol.
6482 (font_spec_from_name): Save name as user-spec.
6483 (font_load_for_lface): Keep user-spec instead of name.
6484 (font_open_by_name): Save name as user-spec.
6485 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 6486 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
6487
6488 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
6489 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
6490 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
6491
6492 * font.h (struct font_driver): Add cached_font_ok.
6493
c0e6d47d
JD
6494 * xterm.c (x_clear_frame): Queue draw for scroll bars.
6495
7c583cd8
JD
64962010-01-05 Jan Djärv <jan.h.d@swipnet.se>
6497
6498 * xterm.c (x_new_font): Move code for setting rows/cols before
6499 resizing ...
ac146f82 6500 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
6501
6502 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
6503 (xg_frame_resized, xg_frame_set_char_size):
6504 Call xg_clear_under_internal_border.
7c583cd8 6505 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 6506
03f77f0a
CY
65072010-01-05 Chong Yidong <cyd@stupidchicken.com>
6508
6509 * keyboard.c (read_key_sequence): Catch keyboard switch after
6510 making a new tty frame (Bug#5095).
6511
2a1ef5be
KH
65122010-01-05 Kenichi Handa <handa@m17n.org>
6513
6514 * fontset.c (fontset_find_font): Fix getting the frame pointer.
6515
e3eb1dae
SM
65162010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
6517
6518 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
6519 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
6520 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
6521
777013f2
MA
65222010-01-03 Michael Albinus <michael.albinus@gmx.de>
6523
6524 * dbusbind.c (xd_add_watch): Improve debug message.
6525 (xd_remove_watch): Improve debug message. If DATA is the session
6526 bus, unset D-Bus session environment.
6527 (Fdbus_init_bus): Pass the bus as argument to
6528 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 6529
8932b1c2
CY
65302010-01-01 Chong Yidong <cyd@stupidchicken.com>
6531
87231e2c
CY
6532 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
6533
4801c5fa
CY
6534 * lread.c (syms_of_lread): Make it clearer that these are the
6535 names of loaded files (Bug#5068).
6536
8932b1c2
CY
6537 * eval.c (run_hook_with_args): Handle the case where the global
6538 value has the obsolete single-function form (Bug#5026).
6539
11e3c684
CY
65402009-12-27 Chong Yidong <cyd@stupidchicken.com>
6541
6542 * minibuf.c (Fall_completions): Minor optimization.
6543
5b28ce35
EZ
65442009-12-26 Eli Zaretskii <eliz@gnu.org>
6545
5ce6e4f4
JB
6546 * .gdbinit (pgx): Fix display of composite glyphs.
6547 Display cmp.from and cmp.to as well.
6548 (pitx): Fix last change.
5b28ce35 6549
bcffff46
KH
65502009-12-25 Kenichi Handa <handa@m17n.org>
6551
6552 * composite.h (composition_adjust_point): Update prototype.
6553
6554 * composite.c (composition_reseat_it): Don't make a composition
6555 spanning over point.
6556 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
6557 composable characters.
6558 (composition_adjust_point): New arg NEW_PT. Callers changed.
6559
6560 * keyboard.c (command_loop_1): Force redisplay if the last point
6561 was within a composition.
6562 (adjust_point_for_property): Don't adjust point for automatic
6563 composition when called after buffer modification.
6564
3f670e9a
EZ
65652009-12-19 Eli Zaretskii <eliz@gnu.org>
6566
5ce6e4f4
JB
6567 * .gdbinit (pitx): Don't use enum names, use their values.
6568 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
6569 (pgx): Don't use enum names, use their values.
6570 (pitmethod): New helper command.
6571 (pitx): Use it to display iteration method.
6572 (pgrowit): New command.
6573
ad903955
EZ
6574 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
6575
3f670e9a
EZ
6576 Update dependencies in Makefile.in.
6577
6578 * Makefile.in (alloc.o): Depend on termhooks.h.
6579 (atimer.o): Depend on blockinput.h.
6580 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
6581 and frame.h.
6582 (callint.o): Depend on systime.h, coding.h, and composite.h.
6583 (callproc.o): Depend on buffer.h.
6584 (casefiddle.o): Don't depend on charset.h.
6585 (casetab.o): Depend on character.h.
6586 (ccl.o): Depend on composite.h.
6587 (chartab.o): Depend on ccl.h.
6588 (cm.o): Depend on dispextern.h.
6589 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
6590 (coding.o): Don't depend on $(INTERVALS_H).
6591 (composite.o): Don't depend on dispextern.h explicitly (it's in
6592 $(INTERVALS_H)). Depend on ccl.h.
6593 (data.o): Depend on systime.h, coding.h, composite.h,
6594 dispextern.h, font.h, and ccl.h.
6595 (dired.o): Depend on composite.h.
6596 (dispnew.o): Depend on coding.h. Don't depend explicitly on
6597 composite.h (it's in $(INTERVALS_H)).
6598 (doc.o): Depend on systime.h, coding.h, and composite.h.
6599 (editfns.o): Don't depend explicitly on dispextern.h.
6600 (emacs.o): Depend on frame.h and coding.h.
6601 (eval.o): Depend on coding.h, composite.h, and xterm.h.
6602 (fileio.o): Depend on frame.h and commands.h. Don't depend
6603 explicitly on dispextern.h.
6604 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
6605 composite.h.
6606 (fns.o): Don't depend on termhooks.h.
6607 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
6608 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
6609 coding.h, $(INTERVALS_H), window.h, xterm.h.
6610 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
6611 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
6612 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
6613 fontset.h, ccl.h, and ftfont.h.
6614 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6615 (gtkutil.o): Depend on dispextern.h and composite.h.
6616 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
6617 termhooks.h, and ccl.h.
6618 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
6619 (intervals.o): Depend on systime.h and coding.h.
6620 (keyboard.o): Depend on composite.h and coding.h.
6621 (keymap.o): Depend on coding.h and frame.h.
6622 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
6623 (macros.o): Depend on systime.h, coding.h, and composite.h.
6624 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
6625 and atimer.h.
6626 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
6627 dispextern.h explicitly.
0b5397c2
SM
6628 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
6629 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
6630 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
6631 (regex.o): Don't depend on charset.h.
6632 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
6633 (search.o): Don't depend explicitly on composite.h.
6634 (sound.o): Depend on atimer.h and systime.h.
6635 (syntax.o): Don't depend explicitly on composite.h.
6636 (sysdep.o): Depend on coding.h and composite.h.
6637 (term.o): Depend on xterm.h and buffer.h.
6638 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
6639 (textprop.o): Don't depend on dispextern.h explicitly.
6640 (undo.o): Depend on dispextern.h.
6641 (window.o): Depend on coding.h and termhooks.h. Don't depend on
6642 dispextern.h and composite.h explicitly.
6643 (xdisp.o): Depend on ccl.h.
6644 (xfaces.o): Depend on coding.h and ccl.h.
6645 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
6646 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6647 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
6648 ftfont.h.
6649 (xgselect.o): New dependency.
6650 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
6651 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
6652 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
6653 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
6654 (xsmfns.o): Depend on frame.h and dispextern.h.
6655 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
6656 sysselect.h.
6657
7a6f7fea
AS
66582009-12-19 Andreas Schwab <schwab@linux-m68k.org>
6659
6660 * font.c (Fclear_font_cache): Pass correct cache argument to
6661 font_clear_cache.
6662
f4c21026
AS
66632009-12-16 Andreas Schwab <schwab@linux-m68k.org>
6664
6665 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
6666 twice.
6667
f7ab0997
CY
66682009-12-15 Chong Yidong <cyd@stupidchicken.com>
6669
6670 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
6671 calling file-remote-p. Reported by Jim Meyering.
6672
fa8e045a
MA
66732009-12-15 Michael Albinus <michael.albinus@gmx.de>
6674
6675 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 6676 avoid compiler warnings. (Bug #5217)
fa8e045a 6677
a63dba42
KH
66782009-12-14 Kenichi Handa <handa@m17n.org>
6679
6680 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
6681 in 8-bit encoding.
6682
5ce6e4f4 66832009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
6684
6685 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
6686 tooltip windows.
6687
223e5fc6
JD
66882009-12-13 Jan Djärv <jan.h.d@swipnet.se>
6689
36acb2a7
JD
6690 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
6691 Xatom_net_window_type.
6692
6693 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
6694 Xatom_net_window_type.
6695
b8f00677
JD
6696 * xterm.c (my_log_handler): New function.
6697 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 6698 so we can filter out buggy messages. (Bug #5120).
b8f00677 6699
e5f0bc9a
JD
6700 * xterm.c (xg_scroll_callback): Parameter list changed,
6701 use parameter GtkScrollType to determine scroll/line/page.
6702 Only allow dragging if a button < 4 is grabbed (bug #5177).
6703 (xg_end_scroll_callback): New function.
6704 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
6705 xg_create_scroll_bar.
6706
6707 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
6708 (scroll_end_callback): Remove.
6709 (xg_create_scroll_bar): Add parameter end_callback, bind it to
6710 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 6711 bug #5177.
e5f0bc9a
JD
6712 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
6713 bug #5177.
6714
6715 * gtkutil.h (XG_LAST_SB_DATA): Remove.
6716 (xg_create_scroll_bar): Add GCallback end_callback.
6717
223e5fc6
JD
6718 * xftfont.c (QClcdfilter): New variable.
6719 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
6720 (syms_of_xftfont): Initialize QClcdfilter.
6721
3c055b77
JD
67222009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6723
6724 * xsettings.c (struct xsettings): Add member seen.
6725 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 6726 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
6727 (apply_xft_settings): Only update Xft settings with what member seen
6728 indicates as new.
6729
05fe33ff
EZ
67302009-12-12 Eli Zaretskii <eliz@gnu.org>
6731
c4cc8b9a 6732 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
6733 (struct glyph): Use EMACS_INT for charpos.
6734 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
6735 region_beg_charpos, region_end_charpos,
6736 redisplay_end_trigger_charpos, and also for
6737 iterator_stack_entry.end_charpos and
6738 iterator_stack_entry.stop_charpos.
6739
e8d7886a
JD
67402009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6741
5ce6e4f4 6742 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
6743 (xg_create_scroll_bar): Call scroll_end_callback on button release
6744 event (bug #5177).
6745 (xg_event_is_for_scrollbar): != replaced with ==.
6746
d0db2ec8
KH
67472009-12-12 Kenichi Handa <handa@m17n.org>
6748
6749 * ftfont.c (struct ftfont_info): New member matrix.
6750 (ftfont_open): Setup xftfont_info->matrix.
6751 (MFLTFontFT): New member matrix.
6752 (FLOOR, CEIL, ROUND): New macros.
6753 (ftfont_get_metrics): Handle matrix transformation.
6754 (ftfont_shape_by_flt): New arg matrix. Callers changed.
6755
6756 * xftfont.c (struct xftfont_info): New member matrix.
6757 (xftfont_open): Setup xftfont_info->matrix.
6758
67592009-12-10 Kenichi Handa <handa@m17n.org>
6760
6761 * xdisp.c (append_space_for_newline): Consider face-remapping.
6762
2cc7b62f
AS
67632009-12-09 Andreas Schwab <schwab@linux-m68k.org>
6764
b87dd913
AS
6765 * xsettings.c: Include "keyboard.h".
6766
eba5eb94
AS
6767 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
6768
2cc7b62f
AS
6769 Fix implicit function declarations.
6770 * cmds.c: Include "frame.h".
6771 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
6772 * frame.h: Move declaration of delete_frame outside of
6773 HAVE_WINDOW_SYSTEM.
6774
a4ef73c8
CY
67752009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
6776
6777 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
6778
6779 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
6780 GTK builds.
6781
944a300c
AS
67822009-12-07 Andreas Schwab <schwab@linux-m68k.org>
6783
6784 * unexelf.c (unexec): Don't search for .data twice.
6785
022eef62
CY
67862009-12-05 Chong Yidong <cyd@stupidchicken.com>
6787
426ac949
CY
6788 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
6789 if push failed.
6790 (handle_line_prefix): Set avoid_cursor_p here. Check return value
6791 of push_display_prop (Bug#5000).
6792
022eef62
CY
6793 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
6794 value of font_list_entities (Bug#5085).
6795
be95bee9
JB
67962009-12-04 Juanma Barranquero <lekktu@gmail.com>
6797
6798 Fix `string-to-number' to deal consistently with integers and floats.
6799 * lread.c (isfloat_string): New argument ignore_trailing to accept all
6800 trailing characters, not just whitespace.
6801 (read1): Pass new arg 0 to keep old behavior.
6802 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
6803 trailing chars, as it is already done for integers. Doc fixes.
6804 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
6805
24c2d7ce
EZ
68062009-12-04 Eli Zaretskii <eliz@gnu.org>
6807
0b5397c2
SM
6808 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
6809 Delete unused enumeration value.
24c2d7ce 6810
7e694795
EZ
68112009-12-03 Eli Zaretskii <eliz@gnu.org>
6812
6813 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
6814
84b31826
SM
68152009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
6816
6817 * process.c (Fmake_network_process): Fix up the tests for
6818 "connectionless socket", so they DTRT for seqpacket sockets as well.
6819
f00c449b
SM
68202009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
6821
6822 * process.c (Qseqpacket): New symbol.
6823 (HAVE_SEQPACKET): New macro.
6824 (Fmake_network_process): Accept new :type `seqpacket'.
6825 (init_process): Add `seqpacket' feature when applicable.
6826 (syms_of_process): Initialize Qseqpacket.
6827
8096a0ff
YM
68282009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6829
6830 * font.c (font_load_for_lface, font_open_by_name): Don't store name
6831 if entity is Qnil.
6832
3e0de07f
SM
68332009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
6834
6835 * print.c (print_preprocess): Preprocess the key_and_value table of
6836 hashtables, even tho they're "hidden" (bug#5082).
6837
abeafb2a
JD
68382009-11-29 Jan Djärv <jan.h.d@swipnet.se>
6839
6840 * frame.c (frame_make_pointer_invisible)
6841 (frame_make_pointer_visible): Declare f before statements.
6842
4bf47195
EZ
68432009-11-28 Eli Zaretskii <eliz@gnu.org>
6844
6845 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
6846 omitted dependencies on lisp.h.
6847
c525b3f2
JD
68482009-11-27 Jan Djärv <jan.h.d@swipnet.se>
6849
ece2d4ed
JD
6850 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
6851 is NULL.
6852
6853 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
6854
6855 * frame.c (frame_make_pointer_invisible)
3e0de07f 6856 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
6857 frame.
6858
c525b3f2
JD
6859 * search.c (simple_search): Remove warning by making *p const.
6860
2f00e299
DN
68612009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
6862
6863 * xdisp.c (power_letter): Remove duplicate const.
6864
084b049b
JD
68652009-11-25 Jan Djärv <jan.h.d@swipnet.se>
6866
a1fadc6f
JD
6867 * term.c (delete_tty): Remove check for last terminal (bug#4970).
6868
5ce6e4f4 6869 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
6870 defaults (bug #5025).
6871
28259cac
SM
68722009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
6873
6874 * insdel.c (adjust_markers_for_delete): Move it in the
6875 right direction! (bug#4803)
6876
e8e14166
YM
68772009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6878
6879 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
6880
6881 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
6882
86677b58
GM
68832009-11-24 Glenn Morris <rgm@gnu.org>
6884
6885 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
6886
581e51e8
JD
68872009-11-23 Jan Djärv <jan.h.d@swipnet.se>
6888
cfc86c7a
JD
6889 * Makefile.in: Must create deps for ecrt0.o in its rule.
6890
581e51e8
JD
6891 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
6892 because that is what Gtk+ font dialog understands.
6893
6894 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
6895 of Fcopy_sequence.
6896 (font_open_by_name): Put name given into QCname for font-object returned.
6897
6898 * frame.c (x_set_font): Save original font name as frame parameter
6899 font-parameter.
6900
6901 * xsettings.c (set_default_xft_settings): New function.
6902 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
6903 is found.
6904
8b264ecb
AS
69052009-11-22 Andreas Schwab <schwab@linux-m68k.org>
6906
6907 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
6908 searching backwards through multibyte buffer.
6909
872870b2
JD
69102009-11-21 Jan Djärv <jan.h.d@swipnet.se>
6911
6912 * xterm.c: #include xgselect.h.
6913 (x_initialize): Call xgselect_initialize.
6914
6915 * xsettings.c (something_changedCB): C++ comments => C comments.
6916 (init_gconf): Do not deal with any GLib file descriptors, xg_select
6917 does that now.
6918
6919 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
6920 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
6921 (scroll_bar_button_cb): Remove.
5ce6e4f4 6922 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
6923 event.
6924 (xg_create_scroll_bar): Don't bind button-press-event and
6925 button-release-event.
6926
6927 * process.c: Include xgselect.h if defined (USE_GTK) ||
6928 defined (HAVE_GCONF).
6929 (wait_reading_process_output): Call xg_select for the same condition.
6930
6931 * xgselect.c (xg_select): New function to better integrate with
6932 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
6933
6934 * xgselect.h: New file, declare xg_select, xgselect_initialize.
6935
6936 * Makefile.in (XOBJ): Add xgselect.o.
6937
62a6e103
AS
69382009-11-21 Andreas Schwab <schwab@linux-m68k.org>
6939
0b5397c2
SM
6940 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
6941 Remove ignored second argument. All callers changed.
62a6e103
AS
6942 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
6943 (RE_STRING_CHAR_AND_LENGTH): Likewise.
6944 * xdisp.c (string_char_and_length): Likewise.
6945
b0ca0f33
DN
69462009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
6947
6948 * xterm.c (x_new_font):
6949 * print.c (print_object):
6950 * cmds.c (Fself_insert_command): Move declarations before statements.
6951
dd5a6279
CY
69522009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
6953
6954 * s/cygwin.h: Remove unneeded linker flags.
6955
4a8e097d
JD
69562009-11-20 Jan Djärv <jan.h.d@swipnet.se>
6957
0d1d0d26
JD
6958 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
6959
6960 * xsettings.h: Declare xsettings_get_system_font.
6961
6962 * xsettings.c (xsettings_get_system_font): New function.
6963 (init_gconf): No use initiating gconf unless we have Xft also.
6964 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
6965 HAVE_GCONF.
6966
4a8e097d
JD
6967 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
6968 add a blank entry so it doesn't collapse into nothing.
6969
8ab1650e
SM
69702009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6971
6972 * lread.c (Funintern): Comment out last change.
6973
82c602f0
RS
69742009-11-19 Richard Stallman <rms@gnu.org>
6975
6976 * lread.c (Funintern): Error if symbol is t or nil.
6977
87e32266
SM
69782009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6979
6980 * insdel.c (make_gap_larger): Don't make as many assumptions about the
6981 representation of Lisp integers.
6982 Reported by MJ Chan <mjchan.inbox@gmail.com>.
6983
1b9ac145
AS
69842009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6985
6986 * lisp.h: Remove declaration of Ffont_get_system_font.
6987 * xfns.c: Move include of "xsettings.h".
6988 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
6989
dfb3c4c6
JD
69902009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6991
87e32266
SM
6992 * xsettings.c (something_changedCB, Ffont_get_system_font):
6993 Check use_system_font.
dfb3c4c6
JD
6994 (syms_of_xsettings): DEFVAR font-use-system-font.
6995
9370c1d8
AS
69962009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6997
25fe851a
AS
6998 * xfns.c (x_default_font_parameter): Remove dead assignment.
6999
9370c1d8
AS
7000 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
7001
637fa988
JD
70022009-11-17 Jan Djärv <jan.h.d@swipnet.se>
7003
87e32266 7004 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 7005 not have FC_LCD_*. #define them if not there.
a6eb20d8 7006
87e32266 7007 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 7008
637fa988
JD
7009 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
7010
7011 * xterm.c (handle_one_xevent): Call xft_settings_event for
7012 ClientMessage, PropertyNotify and DestroyNotify.
7013 (x_term_init): If we have XFT, get DPI from Xft.dpi.
7014 Call xsettings_initialize.
7015
7016 * xftfont.c (xftfont_fix_match): New function.
7017 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
7018 Call xftfont_fix_match after XftFontMatch.
7019
7020 * xfont.c (xfont_driver): Initialize all members.
7021
87e32266
SM
7022 * xfns.c (x_default_font_parameter):
7023 Try font from Ffont_get_system_font.
637fa988
JD
7024 Do not get font from x_default_parameter if we got one from
7025 Ffont_get_system_font.
87e32266 7026 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
7027
7028 * w32font.c (w32font_driver): Initialize all members.
7029
7030 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
7031
7032 * lisp.h: Declare syms_of_xsettings.
7033
87e32266
SM
7034 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
7035 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
7036
7037 * ftfont.c (ftfont_filter_properties): New function.
7038
7039 * frame.c (x_set_font): Remove unused variable lval.
7040
87e32266 7041 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
7042
7043 * font.c (font_put_extra): Don't return if val is nil, it means
7044 boolean option is off.
7045 (font_parse_fcname): Collect all extra properties in extra_props
7046 and call filter_properties for all drivers with extra_props and
7047 font as parameter.
87e32266
SM
7048 (font_open_entity): Do not use cache, it does not pick up new
7049 fontconfig settings like hinting.
637fa988
JD
7050 (font_load_for_lface): If spec had a name in it, store it in entity.
7051
a73f9c9d 7052 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
7053
7054 * config.in: HAVE_GCONF is new.
7055
7056 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
7057 xsettings.o is new.
7058
5a942932
KH
70592009-11-17 Kenichi Handa <handa@m17n.org>
7060
7061 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
7062 back to the default font in case that no suitable font is found.
7063
b7c7a4d1
SM
70642009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
7065
7066 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
7067 Suggested by Chad Brown <yandros@mit.edu>.
7068 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
7069
072f1e39
JD
70702009-11-16 Jan Djärv <jan.h.d@swipnet.se>
7071
7072 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
7073
5d1e70a2
AS
70742009-11-14 Andreas Schwab <schwab@linux-m68k.org>
7075
87e32266 7076 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 7077
a53cfbe5
JD
70782009-11-14 Jan Djärv <jan.h.d@swipnet.se>
7079
473a99b7
JD
7080 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
7081 has a parent.
7082
a53cfbe5 7083 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 7084 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
7085
7086 * config.in: Generated (AUTO_DEPEND).
7087
f04bb9b2
MA
70882009-11-13 Michael Albinus <michael.albinus@gmx.de>
7089
b7c7a4d1 7090 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
7091 Vdbus_registered_functions_table, because it contains also
7092 properties. Fix docstring.
b7c7a4d1 7093 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 7094
8f11f7ec
SM
70952009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
7096
7097 * alloc.c (mark_object): Don't reprocess marked strings.
7098 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
7099 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
7100
8a605fe8
KH
71012009-11-13 Kenichi Handa <handa@m17n.org>
7102
8f11f7ec 7103 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
7104 semantics of Vword_combining_categories.
7105 (Vword_combining_categories): Describe the slight change of the
7106 semantics.
7107
241c4680
EZ
71082009-11-13 Eli Zaretskii <eliz@gnu.org>
7109
7110 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
7111
7112 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
7113
5d58e44c
SM
71142009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
7115
7116 * xdisp.c (syms_of_xdisp): Fix typo in last change.
7117
5e13f9d3
JB
71182009-11-12 Juanma Barranquero <lekktu@gmail.com>
7119
7120 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
7121
cf54c754
DR
71222009-11-11 David Reitter <david.reitter@gmail.com>
7123
7124 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
7125 variables to fix 2009-11-09 change.
7126
a4ada374
DN
71272009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
7128
91433552
DN
7129 * process.c (ifflag_def): Make flag_sym constant.
7130 (Fnetwork_interface_info): Use a constant pointer.
7131 (ifflag_table):
7132 * xfns.c (cursor_bits):
7133 * xdisp.c (power_letter):
7134 * termcap.c (speeds, esctab):
7135 * sysdep.c (baud_convert):
7136 * keyboard.c (lispy_accent_codes, modifier_names):
7137 * image.c (xbm_format, xpm_format, pbm_format, png_format)
7138 (jpeg_format, tiff_format, gif_format, svg_format)
7139 (interlace_start, interlace_increment, gs_format):
7140 * gtkutil.c (separator_names):
7141 * fringe.c (swap_nibble):
7142 * fns.c (base64_value_to_char, base64_char_to_value):
7143 * fileio.c (make_temp_name_tbl):
7144 * coding.c (suffixes): Make constant.
7145
f4265f6c
DN
7146 * frame.c (make_initial_frame):
7147 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
7148 build_string.
7149 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
7150
04420943
DN
7151 * s/freebsd.h:
7152 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
7153
0a5d24ae
DN
7154 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
7155 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
7156
a4ada374
DN
7157 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
7158 * xterm.c (syms_of_xterm):
7159 * xfaces.c (syms_of_xfaces):
7160 * xdisp.c (syms_of_xdisp):
7161 * lread.c (syms_of_lread):
7162 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
7163 build_string.
91433552 7164
a4ada374
DN
7165 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
7166
af98fc7f
SM
71672009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
7168
8ab1650e 7169 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 7170
e90292a9
JD
71712009-11-10 Jan Djärv <jan.h.d@swipnet.se>
7172
7173 * keyboard.h: Declare timer_check.
7174
7175 * keyboard.c (timer_check_2): New function that does what the old
7176 timer_check did.
7177 (timer_check): Call timer_check_2 until -1 or a non-zero time is
7178 returned, i.e. don't return -1 with timers pending.
7179
7180 * process.c: Remove extern declaration of timer_check.
7181
7182 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
7183 even if timer_check returned -1.
7184
af98fc7f
SM
7185 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
7186 xg_dialog_data.
e90292a9
JD
7187 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
7188 the event loop.
7189 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
7190 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
7191 Destroy the dialog after xg_dialog_run.
7192
045b83c0
SM
71932009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
7194
7195 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
7196
1fb99a3a
JD
71972009-11-10 Jan Djärv <jan.h.d@swipnet.se>
7198
7199 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
7200
04e452cb
JB
72012009-11-09 Juanma Barranquero <lekktu@gmail.com>
7202
7203 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
7204
ef7417fd
SM
72052009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
7206
7207 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
7208 w32menu.c, and nsmenu.m.
7209 Simplify the obsolete case where position is nil.
7210 (cleanup_popup_menu): New function, moved from nsmenu.m.
7211 (struct skp): Remove slot `notreal'.
7212 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
7213 adjust callers.
7214 (single_menu_item): Adjust call to parse_menu_item.
7215 (syms_of_menu): Defsubr x-popup-menu.
7216 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
7217 (keymap_panes): Don't export any more.
7218 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
7219 (xmenu_show): Declare.
7220 * keyboard.c (parse_menu_item): Remove arg `notreal'.
7221 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
7222 * keyboard.h (parse_menu_item): Update declaration.
7223 * xmenu.c (Fx_popup_menu): Remove.
7224 (syms_of_xmenu): Don't defsubr x-popup-menu.
7225 * w32menu.c (Fx_popup_menu): Remove.
7226 (syms_of_w32menu): Don't defsubr x-popup-menu.
7227 * nsmenu.m (cleanup_popup_menu): Remove.
7228 (ns_menu_show): Rename from ns_popup_menu and remove all the code
7229 moved to menu.c's Fx_popup_menu.
7230 (Fx_popup_menu): Remove.
7231 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
7232 menu_items (it's done in menu.c already).
7233
424d6179
SM
72342009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
7235
7236 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
7237 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
7238
c0df13a6 72392009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
7240
7241 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 7242 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
7243 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
7244 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
7245
2de9f71c
SM
72462009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
7247
7248 Let integers use up 2 tags to give them one extra bit and thus double
7249 their range.
7250 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
7251 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
7252 New macros.
7253 (enum Lisp_Type): Use them. Give explicit values.
7254 (Lisp_Type_Limit): Remove.
7255 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
7256 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
7257 Pay attention to USE_2_TAGS_FOR_INTS.
7258 (INTEGERP): Use LISP_INT_TAG_P.
7259 * fns.c (internal_equal): Simplify the default case.
7260 (sxhash): Use case_Lisp_Int.
7261 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
7262 any more.
7263 (Ftype_of): Use case_Lisp_Int.
7264 (store_symval_forwarding): Take into account the fact that Ints can
7265 now have more than one tag.
7266 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 7267 (buffer_slot_type_mismatch):
2de9f71c
SM
7268 * xfaces.c (face_attr_equal_p):
7269 * print.c (print_object):
7270 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
7271 Use case_Lisp_Int.
7272
323637a2
EZ
72732009-11-06 Eli Zaretskii <eliz@gnu.org>
7274
7ac65b38
EZ
7275 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
7276
323637a2
EZ
7277 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
7278 warning.
7279
e511451f
JD
72802009-11-06 Jan Djärv <jan.h.d@swipnet.se>
7281
7282 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
7283
7284 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
7285
7286 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
7287 ButtonPressRelease and MotionNotify (bug#4870).
7288
5e2327cf
DN
72892009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
7290
5adc433e
DN
7291 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
7292
d67b4f80
DN
7293 * xterm.c (syms_of_xterm):
7294 * xselect.c (syms_of_xselect):
7295 * xmenu.c (syms_of_xmenu):
7296 * xfns.c (syms_of_xfns):
7297 * xfaces.c (syms_of_xfaces):
7298 * xdisp.c (syms_of_xdisp):
7299 * window.c (syms_of_window):
7300 * w32fns.c (syms_of_w32fns):
7301 * undo.c (syms_of_undo):
7302 * textprop.c (syms_of_textprop):
7303 * terminal.c (syms_of_terminal):
7304 * syntax.c (syms_of_syntax):
7305 * sound.c (syms_of_sound):
7306 * search.c (syms_of_search):
7307 * print.c (syms_of_print):
7308 * minibuf.c (syms_of_minibuf):
7309 * macros.c (syms_of_macros):
7310 * keymap.c (syms_of_keymap, initial_define_key)
7311 (initial_define_lispy_key):
7312 * keyboard.c (syms_of_keyboard):
7313 * insdel.c (syms_of_insdel):
7314 * image.c (syms_of_image):
7315 * fringe.c (syms_of_fringe):
7316 * frame.c (syms_of_frame):
7317 * fontset.c (syms_of_fontset):
7318 * fns.c (syms_of_fns):
7319 * fns.c (syms_of_fns):
7320 * fileio.c (syms_of_fileio):
7321 * fileio.c (syms_of_fileio):
7322 * eval.c (syms_of_eval):
7323 * doc.c (syms_of_doc):
7324 * dispnew.c (syms_of_display):
7325 * dired.c (syms_of_dired):
7326 * dbusbind.c (syms_of_dbusbind):
7327 * data.c (syms_of_data):
7328 * composite.c (syms_of_composite):
7329 * coding.c (syms_of_coding):
7330 * cmds.c (syms_of_cmds):
7331 * charset.c (define_charset_internal, syms_of_character):
7332 * ccl.c (syms_of_ccl):
7333 * category.c (syms_of_category, init_category_once):
7334 * casetab.c (syms_of_casetab):
7335 * casefiddle.c (syms_of_casefiddle):
7336 * callint.c (syms_of_callint):
7337 * bytecode.c (syms_of_bytecode):
7338 * buffer.c (keys_of_buffer, syms_of_buffer):
7339 * alloc.c (syms_of_alloc):
7340 * process.c (syms_of_process, init_process):
7341 * lread.c (syms_of_lread, init_obarray):
7342 * font.c (build_style_table):
7343 * emacs.c (syms_of_emacs, main): Replace calls to intern with
7344 intern_c_string, calls to make_pure_string with
7345 make_pure_c_string. Use pure_cons instead of Fcons.
7346
5e2327cf
DN
7347 * process.c (socket_options): Make it const.
7348 (set_socket_option, init_process): Use a const pointer.
7349
7350 * lread.c (intern_c_string): New function.
7351 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
7352 (defvar_int): Uset it. Make the name const char*.
7353
7354 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
7355 (defvar_int): Update prototypes.
7356 (DEFUN, EXFUN): Support for prototypes is now required.
7357 (intern_c_string): New prototype.
7358 (struct Lisp_Subr): Make symbol_name constant.
7359
7360 * font.c (struct table_entry): Remove unused member. Make NAMES
7361 constant.
7362 (weight_table, slant_table, width_table): Make constant.
7363
7364 * emacs.c (struct standard_args): Make name and longname constant.
7365
7366 * character.h (DEFSYM): Use intern_c_string.
7367
a56eaaef
DN
73682009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
7369
7370 * alloc.c (make_pure_c_string): New function.
7371
7372 * eval.c (Fautoload): Purecopy all arguments.
7373
f6a07420
KH
73742009-11-05 Kenichi Handa <handa@m17n.org>
7375
7376 * fileio.c (Finsert_file_contents): Be sure set coding-system of
7377 the buffer in case of replace.
7378
5d28d4b1
DN
73792009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
7380
7381 * puresize.h (BASE_PURESIZE): Increase to 1620000.
7382
b349d111
SM
73832009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
7384
d528b1ce
SM
7385 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
7386 when applicable (bug#4851).
7387
b349d111
SM
7388 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
7389 (P_): Support for prototypes is now required.
7390
c38eb027
CY
73912009-10-31 Chong Yidong <cyd@stupidchicken.com>
7392
7393 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
7394 (Bug#4827).
7395
0405f8d9
EZ
73962009-10-30 Eli Zaretskii <eliz@gnu.org>
7397
d528b1ce 7398 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 7399
ca0a881a
DN
74002009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
7401
7402 * puresize.h (BASE_PURESIZE): Increase to 1470000.
7403
d528b1ce
SM
7404 * lread.c (Fload): Purecopy the file name when building
7405 Vpreloaded_file_list.
ca0a881a 7406
47e0e0e4
JR
74072009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
7408
7409 * w32fns.c (syms_of_w32fns): Change default value of
7410 w32-scroll-lock-modifier to nil. (Bug#2827)
7411
057bce6f
JB
74122009-10-26 Juanma Barranquero <lekktu@gmail.com>
7413
782a943e 7414 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 7415
242bc74c
AS
74162009-10-26 Andreas Schwab <schwab@redhat.com>
7417
7418 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
7419
522d013a
JB
74202009-10-26 Juanma Barranquero <lekktu@gmail.com>
7421
7422 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
7423 For delta < 0, skip check that only makes sense when the mini-window
7424 is going to be enlarged. (Bug#4534)
7425
18060980
CY
74262009-10-25 Chong Yidong <cyd@stupidchicken.com>
7427
7428 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
7429 string in menu maps (Bug#4471).
7430
fec8f0fe
CY
74312009-10-24 Chong Yidong <cyd@stupidchicken.com>
7432
7433 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
7434 FRAME_NS_VIEW on terminal frames (Bug#4765).
7435
10d66ec0
AS
74362009-10-24 Andreas Schwab <schwab@linux-m68k.org>
7437
1cae01f7
AS
7438 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
7439 DBUS_TYPE_UINTnn separately to get proper sign extension.
7440
58a12889
AS
7441 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
7442 can properly handle unsigned types.
d528b1ce 7443 (make_uid, make_gid): Remove.
58a12889 7444
987c9327
AS
7445 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
7446 types again.
7447
522d013a 7448 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
7449 (system_process_attributes): Likewise.
7450
905a9ed3
DN
74512009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
7452
7453 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
7454
7455 * eval.c (Fautoload): Purecopy the filename. Simplify.
7456
7457 * category.c (Fdefine_category): Purecopy docstring.
7458
a599b3e8
AS
74592009-10-23 Andreas Schwab <schwab@linux-m68k.org>
7460
7b792fc9
AS
7461 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
7462
a599b3e8
AS
7463 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
7464
b35ac83e
CY
74652009-10-23 Chong Yidong <cyd@stupidchicken.com>
7466
7467 * window.c (Fwindow_edges, Fwindow_pixel_edges)
7468 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
7469 (Bug#4775).
7470
e8903e00
SM
74712009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
7472
7473 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
7474 (init_fileio_once):
7475 * lisp.h (init_fileio_once): Remove.
7476 * emacs.c (main): Don't call init_fileio_once.
7477
8f43cbf3
DN
74782009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
7479
7480 * puresize.h (BASE_PURESIZE): Increase to 1430000.
7481
26898943
AS
74822009-10-21 Andreas Schwab <schwab@linux-m68k.org>
7483
7484 * doprnt.c (doprnt): Fix overflow check.
7485
5c646d5a
JD
74862009-10-21 Jan Djärv <jan.h.d@swipnet.se>
7487
3132a7ea
JD
7488 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
7489
5c646d5a
JD
7490 * xterm.h (x_wait_for_event): Declare it.
7491
7492 * xterm.c (pending_event_wait): New variable.
7493 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
7494 see pending_event_wait.eventtype.
7495 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
7496 (x_new_font): Call change_frame_size with new rows/columns before we
7497 try to resize the frame.
5c646d5a 7498 (x_wait_for_event): New function.
d528b1ce
SM
7499 (x_set_window_size_1): Don't change gravity unless change_gravity
7500 is set.
5c646d5a
JD
7501 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
7502 don't change frame size, instead wait for the ConfigureNotify.
7503 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
7504 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
7505 (x_initialize): Initialize pending_event_wait.
7506
7507 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
7508 size.
7509
7510 * widget.c (EmacsFrameSetValues): Add comment.
7511 (EmacsFrameSetCharSize): Just call x_set_window_size.
7512
7513 * gtkutil.c (xg_frame_set_char_size): Flush events and call
7514 x_wait_for_event.
d528b1ce 7515 (flush_and_sync): Remove again.
5c646d5a
JD
7516 (xg_get_font_name): Suggest monospace if no previous font is known.
7517
e9c1637d
SM
75182009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
7519
7520 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 7521 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 7522
5a72cccb
YM
75232009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7524
7525 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
7526 processing pending events when event is filtered for input method.
ab04798f 7527 (Bug#3681)
5a72cccb 7528
2629aa37
JB
75292009-10-20 Juanma Barranquero <lekktu@gmail.com>
7530
7531 * fns.c: Add #endif accidentally removed in previous change.
7532
c3417a74
DN
75332009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7534
7535 * fns.c: Remove code for unsupported system: MAC_OS.
7536 * image.c: Likewise. Include setjmp.h.
7537
9685cef2
JD
75382009-10-19 Jan Djärv <jan.h.d@swipnet.se>
7539
7540 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
7541 pixel -1 (bug #4742).
7542
d7306fe6
DN
75432009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7544
019d2c4c
DN
7545 * process.c (create_pty): Remove conditionals for no longer
7546 supported systems: UNIPLUS and RTU.
7547
ee6bacd4
DN
7548 * xterm.c:
7549 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
7550
d7306fe6
DN
7551 * alloc.c: Do not define struct catchtag.
7552 * eval.c: Move struct catchtag definition ...
7553 * lisp.h: ... here.
7554
7555 * image.c: Move png.h #include earlier to avoid warnings.
7556
7557 * xterm.c:
7558 * xsmfns.c:
7559 * xselect.c:
7560 * xrdb.c:
7561 * xmenu.c:
7562 * xftfont.c:
7563 * xfont.c:
7564 * xfns.c:
7565 * xfaces.c:
7566 * xdisp.c:
7567 * window.c:
7568 * widget.c:
7569 * w32xfns.c:
7570 * w32uniscribe.c:
7571 * w32term.c:
7572 * w32select.c:
7573 * w32reg.c:
7574 * w32proc.c:
7575 * w32menu.c:
7576 * w32inevt.c:
7577 * w32heap.c:
7578 * w32font.c:
7579 * w32fns.c:
7580 * w32console.c:
7581 * w32.c:
7582 * w16select.c:
7583 * vm-limit.c:
7584 * unexsol.c:
7585 * unexec.c:
7586 * unexcw.c:
7587 * unexaix.c:
7588 * undo.c:
7589 * tparam.c:
7590 * textprop.c:
7591 * terminfo.c:
7592 * terminal.c:
7593 * termcap.c:
7594 * term.c:
7595 * syntax.c:
7596 * sound.c:
7597 * sheap.c:
7598 * search.c:
7599 * scroll.c:
7600 * region-cache.c:
7601 * regex.c:
7602 * ralloc.c:
7603 * process.c:
7604 * print.c:
b024548b
DN
7605 * nsterm.m:
7606 * nsselect.m:
7607 * nsmenu.m:
7608 * nsimage.m:
7609 * nsfont.m:
7610 * nsfns.m:
d7306fe6
DN
7611 * msdos.c:
7612 * minibuf.c:
7613 * menu.c:
7614 * marker.c:
7615 * macros.c:
7616 * keymap.c:
7617 * keyboard.c:
7618 * intervals.c:
7619 * insdel.c:
7620 * indent.c:
7621 * gtkutil.c:
7622 * ftxfont.c:
7623 * ftfont.c:
7624 * fringe.c:
7625 * frame.c:
7626 * fontset.c:
7627 * font.c:
7628 * fns.c:
7629 * floatfns.c:
7630 * filelock.c:
7631 * fileio.c:
7632 * emacs.c:
7633 * editfns.c:
7634 * dosfns.c:
7635 * doprnt.c:
7636 * doc.c:
7637 * dispnew.c:
7638 * dired.c:
7639 * dbusbind.c:
7640 * data.c:
7641 * composite.c:
7642 * coding.c:
7643 * cmds.c:
7644 * cm.c:
7645 * chartab.c:
7646 * charset.c:
7647 * character.c:
7648 * ccl.c:
7649 * category.c:
7650 * casetab.c:
7651 * casefiddle.c:
7652 * callproc.c:
7653 * callint.c:
7654 * bytecode.c:
7655 * buffer.c:
7656 * atimer.c: Include setjmp.h. (Bug#4643)
7657
fd5f21e6
SM
76582009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
7659
4c0354d7
SM
7660 Remove leftover table unibyte_to_multibyte_table.
7661 * character.c (unibyte_to_multibyte_table): Remove.
7662 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
7663 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
7664 * character.h (UNIBYTE_TO_CHAR): New macro.
7665 (MAKE_CHAR_MULTIBYTE): Use it.
7666 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
7667 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
7668 (message_dolog, set_message_1):
7669 * search.c (Freplace_match):
7670 * editfns.c (Fcompare_buffer_substrings):
7671 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
7672 (concat):
7673 * insdel.c (copy_text, count_size_as_multibyte):
7674 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
7675 * term.c (produce_glyphs):
7676 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
7677 * regex.c (RE_CHAR_TO_MULTIBYTE):
7678 * cmds.c (internal_self_insert):
7679 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
7680
fd5f21e6
SM
7681 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
7682
4418646e
DN
76832009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
7684
7685 * puresize.h (BASE_PURESIZE): Increase to 1310000.
7686
35f5c1d2
JB
76872009-10-16 Juanma Barranquero <lekktu@gmail.com>
7688
7689 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
7690
a0cd8f6b
AR
76912009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7692
7693 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
7694 still needed under Tiger.
7695
7696 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
7697
7698 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
7699 __Apple__.
7700
7701 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
7702
01a8d3fa
KH
77032009-10-15 Kenichi Handa <handa@m17n.org>
7704
7705 * print.c (print_object): Escape a symbol like "2E10" too.
7706
bf6c75c9 77072009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
7708
7709 Cleanups and changes for 64-bit compile under Snow Leopard.
7710 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
7711
7712 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
7713
c5959062 7714 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
7715 (ns_findfonts, nsfont_list_family): Use long format in printf, and
7716 cast argument.
7717 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 7718 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
7719
7720 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
7721
7722 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
7723 where appropriate.
7724
7725 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
7726 where appropriate.
6e4780c5
JB
7727 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
7728 Use stringWithUTF8String.
bf6c75c9
AR
7729 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
7730
6e4780c5
JB
7731 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
7732 Add formal protocol mention to inheritance.
bf6c75c9
AR
7733 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
7734
6e4780c5
JB
7735 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
7736 Fix printf format.
bf6c75c9
AR
7737 (ns_query_color): Use CGFloat where appropriate.
7738 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 7739 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
7740 argument.
7741
3d87f118
AR
7742 * config.in (NS_HAVE_NSINTEGER): Drop.
7743
a95c8102
AR
7744 * dbusbind.c (dbus-method-return-internal)
7745 (dbus-method-error-internal): Use long format in printf, and cast
7746 argument.
7747
7748 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
7749 in printf, and cast argument.
7750
6873acca 7751 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
7752 cast argument.
7753
9ec6f100
GM
77542009-10-11 Glenn Morris <rgm@gnu.org>
7755
7756 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
7757
5be883cd
JD
77582009-10-08 Jan Djärv <jan.h.d@swipnet.se>
7759
7760 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
7761 menu bar with a small width so it doesn't enlarge the frame.
7762
d7a39b51
JB
77632009-10-08 Juanma Barranquero <lekktu@gmail.com>
7764
7765 * fontset.c (Fset_fontset_font): Fix typos in error messages.
7766
0c2b6f8e
GM
77672009-10-06 Glenn Morris <rgm@gnu.org>
7768
7769 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
7770 SOME_MACHINE_LISP (this enters indirectly via DOC).
7771
e02131a2
EZ
77722009-10-05 Eli Zaretskii <eliz@gnu.org>
7773
7774 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
7775
b4744254
EZ
77762009-10-04 Eli Zaretskii <eliz@gnu.org>
7777
7778 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
7779 Doc fix.
7780
dbf64827
JB
77812009-10-03 Martin Rudalics <rudalics@gmx.at>
7782
7783 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
7784
e9a0aef8
MA
77852009-10-02 Michael Albinus <michael.albinus@gmx.de>
7786
d528b1ce 7787 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
7788 used anymore outside fileio.c.
7789
7790 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
7791
64eb2b56
JB
77922009-10-01 Juanma Barranquero <lekktu@gmail.com>
7793
7794 * lisp.h (Qdelete_directory_internal):
7795 Declare, instead of Qdelete_directory.
7796
7797 * w32fns.c (Fsystem_move_file_to_trash): Use it.
7798
9d28c33e
SM
77992009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
7800
7801 * eval.c (Fcalled_interactively_p): Add `kind' argument.
7802
9d8f3bd9
MA
78032009-10-01 Michael Albinus <michael.albinus@gmx.de>
7804
9d28c33e 7805 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
7806 Fdelete_directory. It is not a command anymore. It has no file
7807 name handler.
7808
9694740b
SM
78092009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
7810
7811 * xdisp.c (get_next_display_element): Use an enum in last change.
7812
748e162f
KH
78132009-09-28 Kenichi Handa <handa@m17n.org>
7814
9694740b 7815 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
7816 unibyte_display_via_language_environment in handling
7817 Vnobreak_char_display.
7818
17efd58d
AR
78192009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7820
7821 * nsterm.h (ns_app_name): New extern variable.
7822
7823 * nsterm.m (ns_app_name): New variable.
7824 (ns_term_init): Set and use it.
7825 (ns_term_shutdown): Use it.
7826
7827 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
7828 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
7829
7830 * nsfns.m (ns_set_name_iconic, ns_set_name)
7831 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
7832 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
7833
9694740b
SM
7834 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
7835 Remove double-casting in client_data comparison.
31c2d412 7836
3208cb35
YM
78372009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7838
7839 * keyboard.c (make_lispy_event): Remember last wheel direction.
7840 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
7841
b7d552d6
GM
78422009-09-26 Glenn Morris <rgm@gnu.org>
7843
7844 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
7845 internal.elc. Add term/pc-win.elc.
7846 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
7847 term/x-win.elc.
7848 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
7849 term/w32-win.elc.
7850 (NS_SUPPORT): New.
7851 (lisp): Add NS_SUPPORT.
7852 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
7853
4ff670a8
DR
78542009-09-25 David Reitter <david.reitter@gmail.com>
7855
7856 * nsmenu.m (EmacsMenu-clear): Recognize application menu
7857 on Mac OS X 10.6+ (bug#4513).
7858
feabfb6c
JB
78592009-09-24 Juanma Barranquero <lekktu@gmail.com>
7860
7861 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
7862 some parts of Emacs code (like font selection) don't grok them.
7863 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 7864
de59072a
AS
78652009-09-24 Andreas Schwab <schwab@redhat.com>
7866
7867 * coding.c (decode_coding_iso_2022): Fix operator precedence.
7868
a489517b
JB
78692009-09-24 Juanma Barranquero <lekktu@gmail.com>
7870
7871 * dired.c (Fdirectory_files): Fix typo in docstring.
7872
0592970c
AR
78732009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7874
7875 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
7876 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
7877 (EmacsScroller-setPosition:portion:whole:): Remove -display call
7878 under GNUstep.
7879 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
7880
7881 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
7882 glyph advancement.
7883
48e8a88b
AR
78842009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7885
7886 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 7887 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
7888
7889 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
7890 deleted (bug #4492).
7891
e14f0a78
AR
7892 * nsfont.m (Vns_reg_to_script): New lisp variable.
7893 (syms_of_nsfont): Declare it.
7894 (ns_registry_to_script): New function.
7895 (ns_get_req_script): Call it.
7896 (ns_findfonts): Don't give up on non-unicode registry.
7897
7898 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
7899
5b650faa
SM
79002009-09-20 Tom Tromey <tromey@redhat.com>
7901
7902 * eval.c (find_handler_clause): Make stack-trace-on-error work in
7903 batch mode (bug#4228).
7904
a489517b 79052009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
7906
7907 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 7908 carefully. (Bug #4339)
0bae4e09 7909
fcfe06f3
CY
79102009-09-18 Chong Yidong <cyd@stupidchicken.com>
7911
d798ba87 7912 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 7913
31642728
AR
79142009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7915
7916 * emacs.c (inhibit_x_resources): Update doc string for NS.
7917 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 7918 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
7919
7920 * nsterm.h (ns_no_defaults): Remove.
7921
7922 * nsterm.m (ns_no_defaults): Remove.
7923 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
7924 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
7925 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
7926 don't update the NSWindow itself.
7927 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 7928 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
7929
7930 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
7931 ns_use_qd_smoothing.
7932
7933 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
7934 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 7935 (x-close-connection): Drop PSFlush() under OS X.
a489517b 7936 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 7937
8686ac71
JB
79382009-09-17 Juanma Barranquero <lekktu@gmail.com>
7939
7940 * emacs.c (inhibit_x_resources): New variable.
7941 (main) [HAVE_NS]: Don't process --quick command line option.
7942 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
7943
7944 * lisp.h (inhibit_x_resources): Declare it extern.
7945
7946 * w32reg.c (x_get_string_resource):
7947 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
7948
e227ba05
EZ
79492009-09-17 Eli Zaretskii <eliz@gnu.org>
7950
362654a6
JB
7951 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
7952 Add lisp/term/internal.elc.
e227ba05 7953
742d40e8
SM
79542009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7955
7956 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
7957 (bug#4461).
7958
005bd5a2
DN
79592009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
7960
7961 * puresize.h (BASE_PURESIZE): Increase to 1290000.
7962
7963 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
7964 (OBJECTS_MACHINE): Remove, unused.
7965
f9af9719
SM
79662009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
7967
7968 * frame.c (x_get_resource_string): Remove unused.
7969
0307c7d2
JD
79702009-09-15 Jan Djärv <jan.h.d@swipnet.se>
7971
7972 * xterm.c (x_new_font): Call change_frame_size before calling
7973 x_set_window_size, in case frame size won't change.
7974
7975 * frame.c (x_set_font): Remove dead code.
7976
428b13d6
SM
79772009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
7978
7979 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
7980
5766c380
SM
79812009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7982
7983 * lread.c (Fload): Don't output a message after loading an obsolete
7984 package any more (done in Lisp now).
7985
2fd0161b
CY
79862009-09-12 Chong Yidong <cyd@stupidchicken.com>
7987
7988 * fns.c (syms_of_fns): Doc fix (Bug#4227).
7989
bc5e75b6
SM
79902009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7991
7992 * keymap.c (Fwhere_is_internal): Use nconc2.
7993
c31c985e
AM
79942009-09-11 Alan Mackenzie <acm@muc.de>
7995
7996 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
7997 batch mode.
7998
78012bd2
AS
79992009-09-11 Andreas Schwab <schwab@linux-m68k.org>
8000
8001 * xdisp.c (display_mode_element): Detect cycles.
8002
9d889332
SM
80032009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8004
8005 * keymap.c (where_is_internal): Don't erroneously return nil right after
8006 filling the cache.
8007 (where_is_internal_1): Fix up typo.
8008
7ab5d780
GM
80092009-09-11 Glenn Morris <rgm@gnu.org>
8010
8011 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
8012 share a common doc-string.
8013
5238a749
SM
80142009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8015
66d77eda
SM
8016 * keymap.c (get_keymap): Return the actual keymap symbol rather than
8017 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
8018
5238a749
SM
8019 * keymap.c (QCadvertised_binding): New constant.
8020 (syms_of_keymap): Initialize it.
8021 (Fwhere_is_internal): Try and use bindings from :advertised-binding
8022 if applicable.
8023
19f48442
SM
80242009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
8025
50d4ba39
SM
8026 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
8027 (parse_menu_item): Streamline since bindings are recomputed all the
8028 time anyway. Don't bother checking Vdefine_key_rebound_commands any
8029 more and don't support lmenu's menu-alias any more either.
8030
a88a5372
SM
8031 * keymap.c (where_is_internal_data): Make noindirect a boolean.
8032 (where_is_internal): Strip it down to only traverse the keymaps.
8033 Move the cache handling from Fwhere_is_internal to here.
8034 (Fwhere_is_internal): Move the handling of remapping and the choice of
8035 the best binding from where_is_internal to here.
8036 Unify the cached/noncached paths, so remapping is also handled
8037 correctly when the cache is used, and so the cache can be used to
8038 speed up remap-handling when applicable.
8039 Give preference to non-remapped bindings.
8040 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
8041 non-remapped bindings.
8042 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
8043 command remapping.
8044
19f48442
SM
8045 * xdisp.c (display_mode_element): Move list length limit from 50 to
8046 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
8047
599498c3 80482009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
8049
8050 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
8051
f9b7b5ac
SM
80522009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
8053
a53af587
JB
8054 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
8055 (Bug#4334)
8056
f9b7b5ac
SM
8057 * keymap.c (where_is_internal): Filter out shadowed remappings.
8058 Assume that where_is_internal returns unshadowed bindings to simplify
8059 the code and get rid of the gotos. Use ASIZE.
8060
04f4b72d
JD
80612009-09-04 Jan Djärv <jan.h.d@swipnet.se>
8062
4da146f2
JD
8063 * xterm.c (x_focus_changed): If we get a focusout and pointer
8064 is invisible, make it visible.
8065
04f4b72d
JD
8066 * xterm.h: Remove condition for declaration of
8067 x_*_window_to_frame.
8068
7cef7ce3
SM
80692009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
8070
8071 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
8072 initial terminal as well.
8073
a54fa5b7
JD
80742009-09-02 Jan Djärv <jan.h.d@swipnet.se>
8075
8076 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 8077 x_menubar_window_to_frame.
a54fa5b7 8078
50426a04 8079 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
8080 (XTmouse_position): Do not return valid positions
8081 for clicks in the menubar and the toolbar for Gtk+.
8082
8083 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
8084 if the widget for the event has the same top level as a frame,
8085 return the frame.
8086 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
8087 internal windows, bug #4122.
8088 (x_non_menubar_window_to_frame): Remove.
8089
5a021dd0
GM
80902009-09-02 Glenn Morris <rgm@gnu.org>
8091
8092 * buffer.c (default-major-mode): Move most of the doc from here...
8093 (major-mode): ... to here.
8094
548fe2f3
NR
80952009-08-30 Nick Roberts <nickrob@snap.net.nz>
8096
8097 * process.c (wait_reading_process_output): Keep the descriptor
8098 when pty is used by a non-child process, e.g., in I/O buffer of
8099 GDB this allows inferior to be restarted.
8100
e0840eef
EZ
81012009-08-29 Eli Zaretskii <eliz@gnu.org>
8102
8103 * xdisp.c (redisplay_internal): Remove redundant test and collapse
8104 both branches into one.
8105
82e98df4
SM
81062009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
8107
8108 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
8109 (main): Use enable-multibyte-characters rather than
8110 default-enable-multibyte-characters. Output a warning message when
8111 running a unibyte session.
8112
890617cb
YM
81132009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8114
8115 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
8116 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
8117 (copy_data_segment): Also copy __program_vars section.
8118 (copy_dyld_info) [LC_DYLD_INFO]: New function.
8119 (dump_it) [LC_DYLD_INFO]: Use it.
8120
8121 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
8122
e7adeadc
EZ
81232009-08-28 Eli Zaretskii <eliz@gnu.org>
8124
8125 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
8126 $(SRC)/buildobj.h.
8127 (buildobj.h): Renamed from $(SRC)/buildobj.h.
8128 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
8129 $(SRC)/buildobj.h.
8130 (clean): Add buildobj.h.
8131
3ed8bbdc
TZ
81322009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
8133
8134 * print.c (print_object): Set escapeflag to 1 when printing
8135 hashtable keys and values.
8136
155a6764
SM
81372009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
8138
8139 * lread.c (read_integer): Use doubles (and potentially return a float
8140 number) as we do in string-to-number.
8141 (read1): Use strtol to read integers, signal errors on strtol's
8142 overflow and use floats if strtol's output is too large for
8143 Elisp integers.
8144
877610de
EZ
81452009-08-27 Eli Zaretskii <eliz@gnu.org>
8146
8147 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
8148 (make-buildobj-SH): Fix last change.
8149 (SRC): Move to before where it's first used.
8150
ef73e7be
KH
81512009-08-27 Kenichi Handa <handa@m17n.org>
8152
550c8289
KH
8153 * process.c (send_process): Use encode_coding_object instead of
8154 encode_coding_string to perform eol-conversion even if the string
8155 is unibyte.
8156
60afa08d
KH
8157 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
8158 character.
8159
ef73e7be 8160 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 8161 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 8162
7b3a82d7
DN
81632009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
8164
5654bf63
DN
8165 * callproc.c (Fcall_process): Remove always true #if.
8166
7b3a82d7
DN
8167 * lisp.h: Replace #if 0 code for checking with text pointing to
8168 the --enable-checking configure flag.
8169
8170 * emacs.c (main): Mention the --enable-profiling configure flag
8171 instead of using CFLAGS.
8172
878bde49
KR
81732009-08-26 Ken Raeburn <raeburn@raeburn.org>
8174
8175 * Makefile.in (buildobj.h): New target.
8176 (doc.o): Depend on it.
8177 (temacs${EXEEXT}): Don't generate buildobj.lst.
8178 (mostlyclean): Delete buildobj.h, not buildobj.lst.
8179 * makefile.w32-in ($(SRC)/buildobj.h): New target.
8180 ($(BLD)/doc.$(O)): Depend on it.
8181 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
8182 provided by Eli Zaretskii.)
8183 ($(TEMACS)): Don't generate buildobj.lst.
8184 * doc.c: Include buildobj.h.
8185 (buildobj): New static variable.
8186 (Fsnarf_documentation): Use it, instead of opening and reading
8187 buildobj.lst.
8188
1574224c
MA
81892009-08-25 Michael Albinus <michael.albinus@gmx.de>
8190
8191 * dbusbind.c (Fdbus_call_method)
8192 (Fdbus_call_method_asynchronously): Use English numeric format for
8193 timeout values in doc string.
8194
d9da2f45
KH
81952009-08-25 Kenichi Handa <handa@m17n.org>
8196
ef73e7be
KH
8197 * alloc.c (mark_char_table): New function.
8198 (mark_object): Use mark_char_table for a char-table.
8199
d9da2f45
KH
8200 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
8201 (CHAR_TABLE_REF): Use it.
8202
c8edcc01
KR
82032009-08-23 Ken Raeburn <raeburn@raeburn.org>
8204
8205 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
8206 before invoking the newly build emacs to check for load-path
8207 shadowing.
8208
7763401b
GM
82092009-08-22 Glenn Morris <rgm@gnu.org>
8210
8211 * Makefile.in (bootstrap_exe): New variable.
8212 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
8213 Use ${bootstrap_exe}.
8214
729eadda
EZ
82152009-08-22 Eli Zaretskii <eliz@gnu.org>
8216
8217 * coding.h (encode_coding_string): Don't encode unibyte strings.
8218 (Bug#4047)
8219
eb4c6ace
MA
82202009-08-22 Michael Albinus <michael.albinus@gmx.de>
8221
8222 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
8223
8224 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
8225 intended as hotfix only.
8226 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
8227
36e34d1b
AR
82282009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8229
8230 * nsterm.m (ns_get_color): Update documentation properly for last
8231 change, and clean up loose ends in the code left by it. Fix
8232 longstanding bug with 16-bit hex parsing, and add support for
8233 yet another X11 format (rgb:r/g/b) for compatibility.
8234 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
8235 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
8236
f983eb8a
SM
82372009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
8238
8239 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
8240
3f56d3c6
MA
82412009-08-20 Michael Albinus <michael.albinus@gmx.de>
8242
8243 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
8244 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
8245 (xd_initialize, xd_pending_messages): Check, whether
8246 $DBUS_SESSION_BUS_ADDRESS is set.
8247
fb641d68
YM
82482009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8249
8250 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
8251
8252 * nsterm.m (ns_get_color): Remove incompatible color formats again.
8253
cf59a374
GM
82542009-08-20 Glenn Morris <rgm@gnu.org>
8255
8256 * emacs.c (system-type): Doc fix.
8257
1373f3be
SM
82582009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
8259
8260 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
8261 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
8262
058ed861
MA
82632009-08-18 Michael Albinus <michael.albinus@gmx.de>
8264
1373f3be
SM
8265 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
8266 New functions.
058ed861
MA
8267 (xd_initialize): Revert change from 2009-08-16.
8268
563a866e 82692009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
8270
8271 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 8272 font-group vector, return nil.
5fc05db0 8273
e42bdf01
CY
82742009-08-17 Chong Yidong <cyd@stupidchicken.com>
8275
8276 * process.c (status_notify): Don't perform redisplay.
8277 (Fdelete_process, list_processes_1, process_send_signal):
8278 Expliticly perform redisplay.
8279 (wait_reading_process_output): Always check process status, but
8280 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
8281
4230ab74
KR
82822009-08-17 Ken Raeburn <raeburn@raeburn.org>
8283
1373f3be 8284 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
8285 (XFLOAT_INIT): New macro for storing a float value.
8286 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
8287 * fns.c (sxhash): Copy out the value of a float in order to
8288 examine its bytes.
8289 * dbusbind.c (xd_append_arg): Likewise.
8290
4230ab74
KR
8291 * emacs.c (main): Don't call syms_of_data twice.
8292
a0645cdd
MA
82932009-08-16 Michael Albinus <michael.albinus@gmx.de>
8294
8295 * dbusbind.c (xd_initialize): Add connection file descriptor to
8296 input_wait_mask, in order to let select() detect, whether a new
8297 message has been arrived.
ca4f31ea 8298 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 8299
485db0ba
MA
83002009-08-15 Michael Albinus <michael.albinus@gmx.de>
8301
1373f3be
SM
8302 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
8303 New functions.
485db0ba
MA
8304
8305 * lisp.h (xd_pending_messages): Declare.
8306
8307 * keyboard.c (readable_events): Call xd_pending_messages.
8308
b5b98ff4
CY
83092009-08-15 Chong Yidong <cyd@stupidchicken.com>
8310
1373f3be 8311 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 8312
f8354c6e
CY
8313 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
8314
b5b98ff4
CY
8315 * buffer.c (set_buffer_internal_1)
8316 (swap_out_buffer_local_variables): Check for unbound local
8317 variables (Bug#4138).
8318
8b9fc636
EZ
83192009-08-14 Eli Zaretskii <eliz@gnu.org>
8320
8321 * process.c (create_pty): Fix last change.
8322
ce959360
CY
83232009-08-13 Chong Yidong <cyd@stupidchicken.com>
8324
8325 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
8326 (xbm_load_image): Caller changed.
64b807c9 8327 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 8328
c7baf7e9
NR
83292009-08-13 Nick Roberts <nickrob@snap.net.nz>
8330
8331 * process.c (create_pty): New function.
8332 (Fstart_process): Use it to allow Emacs to just associate a pty
8333 with the buffer. See associated change in gdb-mi.el.
8334 (list_processes_1): Deal with no program name.
8335 (start_process_unwind): Use pid == -2 to mean no process.
8336
1ac9108a
SM
83372009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
8338
8339 * cmds.c (nonundocount): New global variable.
8340 (keys_of_cmds): Initialize it.
8341 (Fself_insert_command): Use it to combine upto 20 sequential chars
8342 into a single undo entry, just like the Qself_insert_command code in
8343 keyboard.c does.
8344 Call frame_make_pointer_invisible, also like the Qself_insert_command
8345 code in keyboard.c does.
8346 * keyboard.c (command_loop_1): Use the new global nonundocount rather
8347 than its own local replacement for it.
8348
e267324c
KR
83492009-08-10 Ken Raeburn <raeburn@raeburn.org>
8350
1ac9108a 8351 * fns.c (concat): Don't re-set string length to its current value.
77437343 8352
1ac9108a
SM
8353 * coding.h (decode_coding_string, encode_coding_string):
8354 Use SBYTES macro.
f0bed503 8355
1ac9108a 8356 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
8357 (doprnt): Merge with doprnt1, discarding lispstrings code.
8358 * lisp.h (doprnt_lisp): Don't declare.
8359
416e006d
JL
83602009-08-07 Juri Linkov <juri@jurta.org>
8361
8362 * puresize.h (BASE_PURESIZE): Increase to 1270000.
8363
6f7d5780
DN
83642009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8365
8366 * print.c (syms_of_print): Undo previous change.
8367
f19a0f5b
TZ
83682009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
8369
8370 * lread.c (read1, syms_of_lread): Read hashtables back from the
8371 readable format.
8372
8373 * print.c (print_preprocess, print_object): Print hashtables fully
8374 and readably.
8375 (syms_of_print): Provide 'hashtable-print-readable.
8376
b9173dc2
AR
83772009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8378
8379 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
8380 no family set.
8381 (nsfont_open): Handle case when entity has no family.
8382
1586503c
AR
83832009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8384
8385 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
8386 element, not a list, for match case.
8387
087048cd
KH
83882009-07-28 Kenichi Handa <handa@m17n.org>
8389
8390 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
8391 rigidly.
8392
8393 * xfont.c (xfont_list_pattern): Don't ignore the return value of
8394 font_parse_xlfd. Check font properties more rigidly.
8395
780c2506
DN
83962009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8397
31fd7c5c
JB
8398 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
8399 bsd-common.h.
780c2506 8400
a8c0cc18
KH
84012009-07-27 Kenichi Handa <handa@m17n.org>
8402
8403 * xfaces.c (face_with_height): Call font_clear_prop.
8404
4fbe2306
CY
84052009-07-26 Chong Yidong <cyd@stupidchicken.com>
8406
111d9af3
CY
8407 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
8408
8409 * xterm.c (x_term_init): Use Qx.
8410
4fbe2306
CY
8411 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
8412
1ac9108a 8413 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
8414 (ns_get_color): Revert 2009-07-16 change.
8415
beb0b7f9
EZ
84162009-07-25 Eli Zaretskii <eliz@gnu.org>
8417
8418 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 8419 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 8420
2baf5e76
KR
84212009-07-25 Ken Raeburn <raeburn@raeburn.org>
8422
1ac9108a
SM
8423 * coding.h (decode_coding_string, encode_coding_string):
8424 Use SCHARS macro.
8890e5f5 8425
2baf5e76 8426 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 8427 (load_depth): Delete.
2baf5e76
KR
8428 (Qload_in_progress): New variable.
8429 (load_unwind): Don't reference load_depth or load_in_progress.
8430 (Fload): Likewise; specbind Qload_in_progress instead.
8431 (init_lread): Don't initialize load_depth.
8432 (syms_of_lread): Initialize and protect Qload_in_progress.
8433
1395c6f5
AR
84342009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8435
8436 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
8437
4e2f36cf
AR
84382009-07-23 Yavor Doganov <yavor@gnu.org>
8439
8440 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
8441
5dd9a6f7
AR
84422009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8443
8444 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
8445 Bugs 3792, 3720, 2402.
8446 (ns_lookup_indexed_color): Check for bad index.
8447 (ns_index_color): Init unused slot to 0.
8448 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
8449 Bug 3714, possibly 3082.
5dd9a6f7 8450
c902b920
JR
84512009-07-22 Jason Rumney <jasonr@gnu.org>
8452
1ac9108a
SM
8453 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
8454 Position IME window at cursor (Bug#2570).
c902b920
JR
8455 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
8456 (globals_of_w32fns): Dynamically load functions required above.
8457
8458 * w32term.c (w32_draw_window_cursor): Send message to reposition
8459 any IME window.
8460
090101cf
CY
84612009-07-21 Chong Yidong <cyd@stupidchicken.com>
8462
8463 * fileio.c: Revert 2009-07-16 changes.
8464 (Vauto_save_include_big_deletions): New variable.
8465 (Fdo_auto_save): Disable auto-save only if
8466 auto-save-include-big-deletions is nil.
8467
e6583e3d
CY
84682009-07-21 Chong Yidong <cyd@stupidchicken.com>
8469
8470 * xdisp.c (move_it_to): For continued lines ending in a tab, take
8471 the overflowed pixels into account (Bug#3879).
8472
ece435a5
KR
84732009-07-21 Ken Raeburn <raeburn@raeburn.org>
8474
8475 * lread.c (load_depth): New variable.
8476 (Fload, load_unwind, init_lread): Set it to the load recursion
8477 depth; set load_in_progress as a simple boolean based on the
8478 current load_depth. (Bug#3892)
8479
40b2d973
AR
84802009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8481
8482 * nsfont.m (ns_has_attribute): Remove.
8483 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
8484
10be7e0d
JL
84852009-07-18 Juri Linkov <juri@jurta.org>
8486
8487 * process.c (Fset_process_query_on_exit_flag): Mention killing
8488 a buffer in docstring.
8489
fa055055
KH
84902009-07-17 Kenichi Handa <handa@m17n.org>
8491
8492 * casetab.c (shuffle): Fix the logic of setting up the cycle.
8493
042f7b69
YM
84942009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8495
8496 * nsfns.m (Fns_set_alpha): Remove function.
8497 (syms_of_nsfns): Don't defsubr it.
8498
8499 * nsterm.m (ns_get_color): Remove incompatible color formats.
8500 (ns_color_to_lisp): Generate #rrggbb color format string.
8501
4be941e3
RS
85022009-07-16 Richard Stallman <rms@gnu.org>
8503
8504 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
8505 (Fset_buffer_auto_saved): Handle save_length = -2.
8506
4e6b227d
CY
85072009-07-16 Chong Yidong <cyd@stupidchicken.com>
8508
8509 * xterm.c (Qx_gtk_map_stock): New var.
8510
8511 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
8512 of calling intern each time.
8513
a1856973
YM
85142009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8515
8516 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
8517 does tiling.
8518
8519 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
8520
497e54d8
KH
85212009-07-14 Kenichi Handa <handa@m17n.org>
8522
72d36834
KH
8523 * font.c (font_vconcat_entity_vectors): New function.
8524 (struct font_sort_data): New member font_driver_preference.
8525 (font_compare): Check font_driver_preference.
8526 (font_sort_entities): The format of the first argument changed.
8527 (font_delete_unmatched): Likewise.
8528 (font_list_entities): The return type changed.
8529 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
8530 (font_find_for_lface): Adjuste for the above changes.
8531 Don't suppress the checking of C even if the repertory supports it.
8532 (Flist_fonts): Adjust for the above changes.
72d36834 8533
1ac9108a
SM
8534 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
8535 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
8536 Reject a font who has adstyle property that is different from a
8537 langname derived from registry property.
1ac9108a 8538 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 8539
b6046155
EZ
85402009-07-13 Eli Zaretskii <eliz@gnu.org>
8541
8542 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
8543 local copy of dirfilename.
8544
fb6b6049
KH
85452009-07-13 Kenichi Handa <handa@m17n.org>
8546
e2402a5e
KH
8547 * chartab.c (sub_char_table_ref_and_range): Fix the range check
8548 against max_char.
8549
fb6b6049
KH
8550 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
8551 calling XSYMBOL (sym).
8552
65156807
EZ
85532009-07-11 Eli Zaretskii <eliz@gnu.org>
8554
1ac9108a
SM
8555 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
8556 New function.
8557 (directory_files_internal) [WINDOWSNT]:
8558 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
8559 the filesystem of the directory is fast or slow.
8560
8561 * w32.c (logon_network_drive): Don't assume PATH is an absolute
8562 file name.
8563 (is_slow_fs): New function.
8564 (stat): Use it to determine whether to issue more system calls to
8565 get accurate file attributes, when w32-get-true-file-attributes is
8566 `local'.
8567
e0ab5fcf
JD
85682009-07-10 Jan Djärv <jan.h.d@swipnet.se>
8569
8570 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 8571 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
8572 parameter font-parameter as default to the font dialog.
8573
784ceded
KH
85742009-07-10 Kenichi Handa <handa@m17n.org>
8575
8576 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
8577
fb8edc0b
EZ
85782009-07-09 Eli Zaretskii <eliz@gnu.org>
8579
1ac9108a 8580 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 8581
fb8edc0b
EZ
8582 * w32.c (stat): Treat UNC file names as residing on remote
8583 drives. (Bug#3542)
8584
635c75b1
KH
85852009-07-09 Kenichi Handa <handa@m17n.org>
8586
8587 * fontset.c (fontset_find_font): Fix previous change.
8588
c1d5ce94
MA
85892009-07-08 Michael Albinus <michael.albinus@gmx.de>
8590
8591 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
8592 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
8593 error flag.
8594
edb61b39
KH
85952009-07-08 Kenichi Handa <handa@m17n.org>
8596
374bf7e4
KH
8597 * fontset.c (fontset_find_font): Fix the logic of handling
8598 charset_matched.
8599 (font_for_char): Delete unused var.
8600 (generate_ascii_font_name): Delete it.
8601
edb61b39
KH
8602 * coding.h (JIS_TO_SJIS2): Fix the code range check.
8603
8604 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
8605 (encode_coding_sjis): Fix the code range check.
8606
0f3f018c
CY
86072009-07-07 Chong Yidong <cyd@stupidchicken.com>
8608
8609 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
8610 (Fexpand_file_name): Copy string data properly (Bug#3772).
8611
fcaf6f3a
JD
86122009-07-07 Jan Djärv <jan.h.d@swipnet.se>
8613
8614 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
8615 first MapNotify.
8616
6809ca75
KH
86172009-07-07 Kenichi Handa <handa@m17n.org>
8618
8619 * character.h (unibyte_has_multibyte_table): Delete extern.
8620 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
8621
8622 * charset.c (Fset_charset_priority): Update charset_unibyte.
8623 (syms_of_charset): Initialize charset_unibyte.
8624
8625 * character.c (unibyte_has_multibyte_table): Delete it.
8626 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
8627 charset_unibyte.
8628 (multibyte_char_to_unibyte_safe): Likewise.
8629 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
8630
1ac9108a 8631 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
8632 (x_produce_glyphs): Likewise.
8633
8634 * .gdbinit (xcharset): Fix the treating $arg0.
8635
ad9e2d54
EZ
86362009-07-04 Eli Zaretskii <eliz@gnu.org>
8637
8638 Emulation of `getloadavg' on MS-Windows.
50426a04 8639 * w32.c: Include float.h.
ad9e2d54
EZ
8640 (g_b_init_get_native_system_info, g_b_init_get_system_times)
8641 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
8642 (get_native_system_info, get_system_times): New functions.
8643 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
8644 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
8645 (globals_of_w32): Initialize g_b_init_get_native_system_info,
8646 g_b_init_get_system_times, and num_of_processors.
8647
0a3472c7
JR
86482009-07-03 Jason Rumney <jasonr@gnu.org>
8649
8650 * w32term.c (w32_initialize): Use standard types.
8651
80904120
EZ
86522009-07-03 Eli Zaretskii <eliz@gnu.org>
8653
8654 * dired.c (Ffile_attributes): Decode user and group names by the
8655 locale's encoding. (Bug#3443)
8656
6978862d
DN
86572009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
8658
f8d23104
DN
8659 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
8660 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
8661
8662 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
8663
8664 * term.c (init_tty): Remove spurious #ifdef.
8665
6978862d
DN
8666 * m/mips.h: Mention this file is also used for netbsd.
8667 * m/pmax.h: Remove file.
8668
e044e4fc
JD
86692009-07-03 Jan Djärv <jan.h.d@swipnet.se>
8670
8671 * xterm.h (struct x_display_info): Add invisible_cursor.
8672 (struct x_output): Add current_cursor.
8673
8674 * xterm.c (XTtoggle_invisible_pointer): New function.
8675 (x_define_frame_cursor): Don't define cursor if invisible or the
8676 same as before. Set current_cursor.
8677 (x_create_terminal): Set toggle_invisible_pointer_hook.
8678
8679 * xfns.c (make_invisible_cursor): New function.
8680 (x_set_mouse_color): Call make_invisible_cursor.
8681 Set current_cursor.
8682 (x_window): Set current_cursor.
8683
8684 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
8685
8686 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
8687 inserting a character.
8688 (read_avail_input): Call frame_make_pointer_visible.
8689
8690 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
8691 (frame_make_pointer_invisible, frame_make_pointer_visible):
8692 New functions.
e044e4fc
JD
8693 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
8694
8695 * frame.h: Declare frame_make_pointer_invisible and
8696 frame_make_pointer_visible.
8697 (struct frame): Add pointer_invisible.
8698
574c8efa
JD
86992009-07-02 Jan Djärv <jan.h.d@swipnet.se>
8700
7b507248
JD
8701 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
8702 frame isn't visible.
8703 (xg_frame_resized): If width/height is -1, get size of window
8704 from X server.
8705
8706 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
8707 for MapNotify.
8708
835bdaa7 8709 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 8710 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 8711 (flush_and_sync): Reintroduce.
574c8efa 8712
3f1c6666 87132009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 8714
31fd7c5c 8715 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
8716
8717 * xterm.c (x_handle_net_wm_state): Also look for sticky.
8718 (x_term_init): Initialize Xatom_net_wm_state_sticky.
8719
8720 * frame.h: Declare Qsticky.
8721
cad9ef74
JD
8722 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
8723
8724 * nsfns.m (ns_frame_parm_handlers): Ditto.
8725
8726 * frame.c: Declare Qsticky.
8727 (frame_parms): Add sticky.
8728
8729 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
8730
8731 * xterm.h: Declare x_set_sticky.
8732
8733 * xterm.c (x_set_sticky): New function.
8734
69b16610
JD
8735 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
8736 (xg_tool_bar_menu_proxy): Attach enter/leave events to
8737 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
8738
8739 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
8740
8741 * frame.c: Qmaximized is new.
8742 (x_set_frame_parameters): Do not handle fullscreen specially.
8743 Only set width and height if explicitly set.
8744 (x_set_fullscreen): Handle Qmaximized.
8745 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
8746 (syms_of_frame): Initialize Qmaximized.
8747
1ac9108a
SM
8748 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
8749 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
8750
8751 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
8752 for Expose event. Add call to x_check_fullscreen for MapNotify event.
8753 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
8754 set gravity to NorthWestGravity when USE_GTK.
8755 (set_wm_state): New function.
31fd7c5c 8756 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
8757 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
8758 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 8759 or the case when no window manager is running. That means remove calls
3f1c6666
JD
8760 to x_real_positions and x_fullscreen_adjust.
8761
8762 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
8763 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
8764 flush_and_sync.
8765 (xg_height_changed): New function.
8766 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
8767 and gtk_window_set_policy. Set frame gravity after parsing the
8768 geometry string.
3f1c6666
JD
8769 (xg_update_frame_menubar, free_frame_menubar)
8770 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
8771 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
8772 Remove calls to xg_frame_set_char_size.
8773
fd503d99
KH
87742009-07-01 Kenichi Handa <handa@m17n.org>
8775
8776 * keyboard.c (decode_keyboard_code): New function.
8777 (tty_read_avail_input): Decode the input bytes if necessary.
8778
1ac9108a
SM
8779 * coding.c (setup_coding_system):
8780 Initialize coding->carryover_bytes to 0.
fd503d99
KH
8781 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
8782 use Qno_conversion.
8783
24ed93fb
YM
87842009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8785
8786 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
8787
99061dfc
CY
87882009-06-30 Chong Yidong <cyd@stupidchicken.com>
8789
1ac9108a 8790 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 8791
ff90fbde
JR
87922009-06-30 Jason Rumney <jasonr@gnu.org>
8793
8794 * w32term.c (w32_initialize): Use GetModuleHandle for library that
8795 is already loaded.
8796 Set user model ID if supported (bug#1849).
8797
5f445726
JM
87982009-06-29 Jim Meyering <meyering@redhat.com>
8799
8800 Remove useless if-before-xfree test.
8801 * nsfont.m (nsfont_close): Remove useless test.
8802 * term.c (delete_tty): Likewise.
8803 * w32.c (system_process_attributes): Likewise.
8804 * w32font.c (w32font_close): Likewise.
8805 * xfaces.c (x_free_gc): Likewise.
8806 * xselect.c (buffer): Likewise.
8807
b9607587
AS
88082009-06-28 Andreas Schwab <schwab@linux-m68k.org>
8809
8810 * process.c (send_process): Keep decoded string in a local
8811 variable and protect it from GC. (Bug#3521)
8812
89ba96f4
EZ
88132009-06-28 Eli Zaretskii <eliz@gnu.org>
8814
8815 * term.c (create_tty_output) [MSDOS]: #ifdef away.
8816 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
8817
098a1589
CY
88182009-06-28 Chong Yidong <cyd@stupidchicken.com>
8819
485422be
CY
8820 * xdisp.c (start_display, handle_face_prop)
8821 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
8822 (redisplay_window, try_window_id, produce_image_glyph):
8823 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 8824
098a1589
CY
8825 * xterm.c (x_update_window_begin, x_new_focus_frame)
8826 (x_scroll_bar_handle_click, handle_one_xevent)
8827 (handle_one_xevent, XTread_socket, x_focus_on_frame)
8828 (x_make_frame_visible, x_make_frame_invisible)
8829 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
8830 code chunks that are now obsolete.
8831
78c38319
MA
88322009-06-28 Michael Albinus <michael.albinus@gmx.de>
8833
8834 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
8835 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
8836 for hours, when optimzation is enabled.
8837 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
8838 (xd_read_message): Make them static.
8839
4189ed40
CY
88402009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
8841
8842 * term.c (turn_on_face): Allow simultaneously bold and dim
8843 terminal faces (Bug#3530).
8844
cd9b5e16
CY
88452009-06-27 Chong Yidong <cyd@stupidchicken.com>
8846
4e23bedb
CY
8847 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
8848
cd9b5e16
CY
8849 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
8850 truncation glyphs (Bug#3686).
8851
07cc3c35
GM
88522009-06-27 Glenn Morris <rgm@gnu.org>
8853
8854 * m/pmax.h: Restore file, with only netbsd portions.
8855
31fd7c5c 88562009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 8857
cd9b5e16 8858 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 8859
42d4a64f
KH
88602009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
8861
8862 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
8863 the arg FORCE_SYMBOL.
8864
930fe55b 88652009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
8866
8867 * fontset.c (fontset_find_font): When a usable rfont_def is found
8868 in a fallback font-group, make it the first element of the group.
8869
57ebc3fd
CY
88702009-06-24 Chong Yidong <cyd@stupidchicken.com>
8871
8872 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
8873
f084f942
KH
88742009-06-24 Kenichi Handa <handa@m17n.org>
8875
8876 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
8877 set for C.
8878 (fontset_font): Record the availability of a font for C both in
8879 the realized fontsets of the current one and the default one.
8880
2f686c87
DN
88812009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
8882
8883 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
8884 conditional, it is always defined on AIX.
8885
666e158e
MB
88862009-06-23 Miles Bader <miles@gnu.org>
8887
8888 * window.c (Vrecenter_redisplay): New variable.
8889 (syms_of_window): Initialize it.
8890 (Qtty): New extern declaration.
8891 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
8892
c6da7cd2
JM
88932009-06-23 Jim Meyering <meyering@redhat.com>
8894
1ac9108a
SM
8895 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
8896 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 8897 pointer dereferences are guaranteed to be valid.
c6da7cd2 8898
678dca3d
KH
88992009-06-23 Kenichi Handa <handa@m17n.org>
8900
74d75424
KH
8901 * emacs.c (main): Call init_font ().
8902
8903 * font.h (Vfont_log): Extern it.
8904 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
8905
8906 * font.c (font_sort_entities, font_list_entities)
8907 (font_matching_entity, font_open_entity)
8908 (font_close_object): Change font_add_log to FONT_ADD_LOG.
8909 (Vfont_log): Delete static.
8910 (font_log_env_checked): Delete this variable.
8911 (font_add_log): Don't check font_log_env_checked.
8912 (font_deferred_log): Check Vfont_log.
8913 (init_font): New function.
8914
678dca3d
KH
8915 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
8916
8917 * w32font.c: Change font_add_log to FONT_ADD_LOG.
8918
8919 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
8920
8921 * xfont.c: Change font_add_log to FONT_ADD_LOG.
8922
8923 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
8924 (face_for_char): Don't call font_deferred_log here.
8925 (font_for_char): Likewise.
8926
8a668709
CY
89272009-06-22 Chong Yidong <cyd@stupidchicken.com>
8928
9a01ee33
CY
8929 * w32term.c (x_draw_glyph_string): Use the glyph string's width
8930 rather than its background_width for drawing the overline and
8931 underline (Bug#489).
8932
8933 * xterm.c (x_draw_glyph_string): Use the glyph string's width
8934 rather than its background_width for drawing the overline and
8935 underline (Bug#489).
ec7c9926
CY
8936 (xg_default_icon_file): New variable.
8937 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
8938 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 8939
8a668709
CY
8940 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
8941 (load_overlay_strings): Remove externs.
8942 (fast_find_position): Function deleted.
8943 (mouse_face_from_buffer_pos): New function, based on
8944 fast_find_position. Correctly handle before-strings,
8945 display-strings, and after-strings (Bug#1220).
8946 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
8947
4d4c02d8
CY
89482009-06-21 Chong Yidong <cyd@stupidchicken.com>
8949
1ac9108a 8950 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
8951 (move_it_in_display_line_to, move_it_in_display_line_to)
8952 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
8953
70243478
CY
89542009-06-21 Chong Yidong <cyd@stupidchicken.com>
8955
8956 * Branch for 23.1.
8957
13087e59
JR
89582009-06-21 Jason Rumney <jasonr@gnu.org>
8959
8960 * w32term.c (keyboard_codepage): New static variable.
8961 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
8962 (w32_read_socket) [WM_CHAR]: Use it to decode character
8963 input (bug#3237).
8964 (w32_initialize): Initialize it.
8965 (codepage_for_locale): New function.
8966
4735b74e
KR
89672009-06-20 Ken Raeburn <raeburn@raeburn.org>
8968
8969 * process.c (status_message): Pass Faset index argument as a lisp
8970 object, so as to work with USE_LISP_UNION_TYPE.
8971
0e727afa
YM
89722009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8973
8974 * coding.c (Ffind_coding_systems_region_internal):
8975 Cache checked characters.
8976
cf299835
KH
89772009-06-18 Kenichi Handa <handa@m17n.org>
8978
1ac9108a 8979 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 8980
90f20d94
AS
89812009-06-18 Andreas Schwab <aschwab@redhat.com>
8982
8983 * xdisp.c (redisplay_internal): Check that the frame is still
8984 live after redisplay of its windows.
8985 (redisplay_windows): Check that the window is still live.
8986
7f1faf1c
KH
89872009-06-17 Andreas Schwab <schwab@linux-m68k.org>
8988
8989 * coding.c (detect_coding_utf_16): Fix previous change.
8990
cc13543e
KH
89912009-06-16 Kenichi Handa <handa@m17n.org>
8992
8993 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
8994 UTF-16 by checking the dispersion of Eth and Oth bytes.
8995
977b85f4
AS
89962009-06-15 Andreas Schwab <schwab@linux-m68k.org>
8997
8998 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
8999
66bd43d1
KH
90002009-06-15 Kenichi Handa <handa@m17n.org>
9001
9002 * process.c (status_message): Fix previous change. Be sure to
9003 decode a localized string.
9004
cb5ca9c5
YM
90052009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9006
9007 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
9008 add comment explaining why.
9009
ec7709ba 90102009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 9011
ec7709ba 9012 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 9013
4b7f335c
AR
90142009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
9015
9016 * nsfont.m (ns_attribute_value): Remove.
9017 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
9018 (ns_has_attribute): Shrink the normal range.
9019 (ns_findfonts): Don't worry about requested spec in determining
9020 need for synthItal.
e41820ee 9021 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 9022
73b26103
SZ
90232009-06-14 Seiji Zenitani <zenitani@mac.com>
9024
9025 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
9026
5753e4da
KH
90272009-06-11 Kenichi Handa <handa@m17n.org>
9028
9029 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
9030 overhang for the static composition case.
9031
3561b671
KH
90322009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9033
5753e4da
KH
9034 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
9035 overhang for the automatic composition case.
9036
3561b671
KH
9037 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
9038 composition case.
9039
852bbd41
CY
90402009-06-10 Chong Yidong <cyd@stupidchicken.com>
9041
9042 * xdisp.c (get_next_display_element): When handling wrap-prefix
9043 and line-prefix, treat \n as a control character (bug#3502).
9044
9903d1e6
KH
90452009-06-10 Kenichi Handa <handa@m17n.org>
9046
9047 * font.c (font_parse_family_registry): Fix for one-char foundry.
9048 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
9049
0bcbaaaa
CY
90502009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
9051
9052 * process.c (status_message): Fix handling of multibyte signal
9053 string (Bug#3499).
9054
40aa3f13
JM
90552009-06-09 Jim Meyering <meyering@redhat.com>
9056
1f80c7e2
CY
9057 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
9058 color name is missing.
40aa3f13 9059
72d51285
KH
90602009-06-09 Kenichi Handa <handa@m17n.org>
9061
9062 * charset.c (Fmap_charset_chars): In docstring, state clearly that
9063 FROM-CODE and TO-CODE are codepoints of CHARSET.
9064
c1d04d84
AR
90652009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
9066
9067 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
9068
90692009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
9070
9071 Changes to support :script/:lang/:otf in NS font driver.
9072 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
9073 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
9074 indicate not part of font driver interface, and change callers.
9075 (ns_get_family): Remove pointless null check.
9076 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
9077 ns_spec_to_descriptor, ns_descriptor_to_entity.
9078 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
9079 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
9080 (ns_spec_to_descriptor, ns_descriptor_to_entity)
9081 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
9082 (ns_get_req_script, ns_accumulate_script_ranges)
9083 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
9084 New functions.
9085 (nsfont_list, nsfont_match): Use ns_findfonts.
9086 (nsfont_open): Use font descriptor instead of traits.
9087 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
9088 (dump_glyphstring): Rename to ns_dump_glyphstring.
9089
c7eb9816
AR
9090 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
9091
c1d04d84
AR
9092 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
9093
9094 * fontset.c (fontset_from_font): Remove NS-specific code.
9095
ec7709ba 90962009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
9097
9098 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
9099 nonactive windows.
9100
31fd7c5c 91012009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 9102
1ac9108a 9103 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 9104
68852c13 91052009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
9106
9107 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
9108
6756cd1d
CY
91092009-06-07 Chong Yidong <cyd@stupidchicken.com>
9110
9111 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
9112 account for the overflowing of newlines into the last glyph on the
9113 display line (Bug#3482).
9114
28bf482a
DR
91152009-06-05 David Reitter <david.reitter@gmail.com>
9116
ec7709ba
JB
9117 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
9118 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
9119 Fns_selection_exists_p, Fns_selection_owner_p.
9120
fdb55376
JR
91212009-06-03 Jason Rumney <jasonr@gnu.org>
9122
9123 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
9124 available. (Bug#3379)
9125
05129fbe
KH
91262009-05-29 Kenichi Handa <handa@m17n.org>
9127
1ac9108a
SM
9128 * coding.c (get_translation_table):
9129 Check Venable_character_translation.
05129fbe 9130
ec7709ba 91312009-05-26 David Reitter <david.reitter@gmail.com>
15891144 9132
ec7709ba
JB
9133 * nsterm.m (ns_raise_frame): Only raise frame if visible.
9134 (x_make_frame_visible): Move frame to front rather than calling
15891144 9135 ns_raise_frame().
ec7709ba 9136 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 9137 isn't key window.
ec7709ba 9138 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
9139 drawRect may be called by NSView even if the frame is hidden.
9140
ec7709ba
JB
9141 * nsfns.m (Fx_create_frame): Follow other ports in
9142 determining visibility; default to t. Ensure async_visible is set.
15891144 9143
21f73755
EZ
91442009-05-23 Eli Zaretskii <eliz@gnu.org>
9145
9146 * dired.c (Ffile_attributes): Doc fix.
9147
34001e41
CY
91482009-05-22 Chong Yidong <cyd@stupidchicken.com>
9149
9150 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
9151
46306a17
SM
91522009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
9153
9154 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
9155 and xfont_scratch_props.
9156 (syms_of_xfont): Do it here instead.
9157 (xfont_find_ccl_program): Delete, unused.
9158 (xfont_open): Delete unused var `i'.
9159
ef6e0694
KH
91602009-05-21 Kenichi Handa <handa@m17n.org>
9161
9162 * fontset.c (Qlatin): Don't make it static.
9163
46306a17
SM
9164 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
9165 New functions.
ef6e0694
KH
9166 (xfont_scripts_cache, xfont_scratch_props): New variables.
9167 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
9168 (xfont_list_pattern): Argument changed. Callers changed.
9169 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
9170 (xfont_list): Don't reject a font spec with :script property.
9171 (xfont_has_char): Fix setting of encoding.
9172 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
9173 xfont_scratch_props.
9174
91752009-05-19 Kenichi Handa <handa@m17n.org>
9176
46306a17 9177 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
9178 Callers changed.
9179
91802009-05-18 Kenichi Handa <handa@m17n.org>
9181
9182 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
9183
ac71ced7
SM
91842009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9185
9186 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
9187 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
9188
1c6d1051
YM
91892009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9190
9191 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
9192 (x_delete_terminal): Dissociate resource database from display and
9193 then call XrmDestroyDatabase before closing display.
9194
9b9b779c
AR
91952009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
9196
9197 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
9198 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
9199 whether selected frame is viable before raising it (based on patch
9200 by David Reitter), and improve commentary.
9201 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 9202
cccd42d5
KH
92032009-05-15 Kenichi Handa <handa@m17n.org>
9204
9205 * font.c (Ffont_spec): Check arguments.
9206
337fbd17
CY
92072009-05-14 Chong Yidong <cyd@stupidchicken.com>
9208
9209 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
9210 weight when testing attributes (Bug#3282).
9211
47a6002f
JD
92122009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9213
9214 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
9215 what we expect to get in the next ConfigureNotify event.
9216
9cb363db
YM
9217 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
9218 before Xft one (Bug#1696).
9219
b9126609
CY
92202009-05-07 David Reitter <david.reitter@gmail.com>
9221
9222 * nsfns.m (Fx_display_planes): Compute bitplanes using
9223 NSBitsPerPixelFromDepth (Bug#3207).
9224
27a69fd9
CY
92252009-05-10 Chong Yidong <cyd@stupidchicken.com>
9226
9227 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
9228
00f37552
TTN
92292009-05-10 Ulrich Mueller <ulm@gentoo.org>
9230
9231 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
9232
2d82a920
DR
92332009-05-07 David Reitter <david.reitter@gmail.com>
9234
ec7709ba
JB
9235 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
9236 Respect mouse face background.
2d82a920 9237
46b0d52d
DR
92382009-05-07 David Reitter <david.reitter@gmail.com>
9239
ec7709ba
JB
9240 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
9241 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
9242 in ns_update_begin and ns_update_end.
9243
ce1b23bb
SM
92442009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9245
5996e1b7
SM
9246 * nsfns.m (ns_get_screen): Rewrite.
9247 Don't presume selected-frame is of type `ns'.
9248
ba98e3a0
SM
9249 * font.c (font_update_drivers): Sanity fallback to avoid disabling
9250 all drivers.
9251
ce1b23bb
SM
9252 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
9253
bcda200f
YM
92542009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9255
9256 * keyboard.h (add_user_signal): Fix typo in extern.
9257
9258 * lisp.h (add_user_signal): Remove extern.
9259
9260 * unexelf.c (unexec): Consider a section to precede the .bss section
9261 if its addresses overlap that of .bss.
9262 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
9263 instead of dumping process.
9264
864660a2
SM
92652009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9266
9267 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
9268
50da4e56
SM
92692009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
9270
9271 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
9272
51520a1a
DN
92732009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
9274
9275 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
9276 any statements.
9277
409ea3a1
AS
92782009-05-02 Andreas Schwab <schwab@linux-m68k.org>
9279
59c4c60f
AS
9280 * process.c (read_process_output): Make sure the current buffer is
9281 always restored.
9282
409ea3a1
AS
9283 * coding.c (record_conversion_result): Don't modify
9284 Vlast_code_conversion_error for successful result.
9285 (alloc_destination): Don't clobber conversion result. (Bug#1650)
9286
56f00ed2
KH
92872009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9288
9289 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 9290 (load_charset_map): Remove unnecessary code.
56f00ed2 9291
4491c9d2
DR
92922009-04-30 David Reitter <david.reitter@gmail.com>
9293
35f5b128 9294 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
9295 through f24.
9296
6970f632
CY
92972009-04-30 Chong Yidong <cyd@stupidchicken.com>
9298
9299 * xfaces.c (face_at_buffer_position): New arg base_face_id.
9300
9301 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
9302 face_at_buffer_position.
9303 (face_before_or_after_it_pos, get_next_display_element)
9304 (note_mouse_highlight): Update face_at_buffer_position call.
9305
9306 * term.c (term_mouse_highlight):
9307 * msdos.c (IT_note_mouse_highlight):
9308 * fontset.c (Finternal_char_font):
35f5b128 9309 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
9310
9311 * dispextern.h (face_at_buffer_position): Update prototype.
9312
0c616f63
KH
93132009-04-30 Kenichi Handa <handa@m17n.org>
9314
35f5b128 9315 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 9316
ad3aaf33
AS
93172009-04-29 Andreas Schwab <schwab@linux-m68k.org>
9318
9319 * callproc.c (Fcall_process): Fix GC protection. Make sure
9320 current buffer is always restored.
9321
c3c963a0
YM
93222009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9323
9324 * atimer.c (init_atimer): Also clear stopped_atimers.
9325
9326 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
9327
7e3386cb
YM
9328 * process.c (create_process): Clean up merger residues of
9329 2008-07-17 change.
9330
91f68422
CY
93312009-04-29 Ulrich Mueller <ulm@gentoo.org>
9332
9333 * lread.c (Vread_circle): New variable.
9334 (read1): Disable recursive read if Vread_circle is nil.
9335
24b34550
KH
93362009-04-29 Kenichi Handa <handa@m17n.org>
9337
9338 * fontset.h (set_default_ascii_font): Delete extern.
9339
9340 * fontset.c (set_default_ascii_font): Delete this unused function.
9341
9342 * frame.c (x_set_font): When ARG is a font-object, check if the
9343 font-object matches with the ASCII font-spec of the frame's
9c358bda 9344 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 9345
77bf07e1
AS
93462009-04-28 Andreas Schwab <schwab@linux-m68k.org>
9347
9348 * fns.c (Flocale_info): Protect vector from GC during decoding.
9349
9350 * process.c (Fstart_process): Protect argv strings from GC during
9351 encoding.
9352
2c55aacf
AS
93532009-04-27 Andreas Schwab <schwab@linux-m68k.org>
9354
9355 * sysdep.c: Include <ctype.h>.
9356
b892d3c9
DR
93572009-04-27 David Reitter <david.reitter@gmail.com>
9358
35f5b128 9359 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
9360 Remove commented-out code.
9361
9d0644c4
JB
93622009-04-26 Johan Bockgård <bojohan@gnu.org>
9363
9364 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9365
b7053016
JR
93662009-04-25 Jason Rumney <jasonr@gnu.org>
9367
9368 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
9369
4e8231f3
YM
93702009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9371
9372 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
9373 Swap bytes in short integer if fringe bitmap width > 8.
9374
493dcf2c
KH
93752009-04-23 Kenichi Handa <handa@m17n.org>
9376
9377 * xfaces.c (Fx_list_fonts): If a font size is specified in
9378 PATTERN, set it in returned scalable fonts.
9379
401e9e57
CY
93802009-04-22 Chong Yidong <cyd@stupidchicken.com>
9381
708e05dc
CY
9382 * keyboard.c (Fset_input_meta_mode): Doc fix.
9383
9384 * dispnew.c (Fsend_string_to_terminal): Doc fix.
9385
1ac9108a 9386 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
9387
9388 * coding.c (Fterminal_coding_system): Doc fix.
9389
9390 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
9391 (Fx_display_pixel_height, Fx_display_planes)
9392 (Fx_display_color_cells, Fx_server_max_request_size)
9393 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9394 (Fx_display_mm_height, Fx_display_mm_width)
9395 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
9396 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
9397 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
9398 (check_x_display_info): Handle terminal objects instead of
9399 terminal ids.
9400
401e9e57
CY
9401 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
9402 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
9403 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
9404 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 9405
df80c7f0
KH
94062009-04-21 Kenichi Handa <handa@m17n.org>
9407
5a8f12af 9408 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 9409 (font_score): Check AVGWIDTH too.
908567ef 9410
df80c7f0
KH
9411 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
9412 worst case.
1ac9108a
SM
9413 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
9414 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 9415
705af33f
JR
94162009-04-19 Jason Rumney <jasonr@gnu.org>
9417
9418 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 9419 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
9420
9421 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
9422 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
9423 get_phys_cursor_geometry.
9424
b71ac3dd 9425 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
9426 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
9427 using get_phys_cursor_geometry.
9428
9429 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
9430 correctly calculated.
9431
dc2933eb
JD
94322009-04-19 Jan Djärv <jan.h.d@swipnet.se>
9433
1ac9108a
SM
9434 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
9435 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
9436 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
9437 is deprecated.
9438
973e7849
AS
94392009-04-18 Andreas Schwab <schwab@linux-m68k.org>
9440
9441 * font.c (font_put_frame_data): Use xfree instead of free.
9442
314d66f4
JB
94432009-04-17 Juanma Barranquero <lekktu@gmail.com>
9444
9445 * w32font.c (Qja, Qko): Remove declarations.
9446 (syms_of_w32font): Don't DEFSYM them.
9447
cf702558
CY
94482009-04-17 Chong Yidong <cyd@stupidchicken.com>
9449
9450 * font.c (Qja, Qko): Move definitions here from ftfont.c.
9451
9452 * font.h (Qja, Qko): Extern them.
9453
9454 * ftfont.c (Qja, Qko): Remove declarations.
9455
9456 * xfont.c (Qja, Qko): Remove declarations.
9457
b50504f5
KH
94582009-04-17 Kenichi Handa <handa@m17n.org>
9459
bde25748
KH
9460 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
9461 string from a vector to handle Latin-1 characters correctly.
9462
b50504f5
KH
9463 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
9464 entity even if the cache hits.
9465
f4646fff
AS
94662009-04-16 Andreas Schwab <schwab@linux-m68k.org>
9467
9468 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 9469 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 9470
e7deaab0
AS
9471 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
9472 * lisp.h: Adjust prototypes.
9473
0a0e7d49
CY
94742009-04-16 Chong Yidong <cyd@stupidchicken.com>
9475
9476 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
9477 change (Bug#3003).
9478
3c908a57
KH
94792009-04-16 Kenichi Handa <handa@m17n.org>
9480
1ac9108a 9481 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
9482
9483 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
9484 adstyle.
9485
9486 * ftfont.c (Qja, Qko): Don't make them static.
9487 (enum ftfont_cache_for): New enum.
9488 (fc_charset_table): Undo the previous change.
9489 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
9490 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
9491 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
9492 non-scarable font, try to get AVERAGE_WIDTH.
9493 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
9494 Change ft_face_cache from a list of a hash-table. Don't check
9495 `ja' and `ko' adstyle here.
9496 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
9497 FTFONT_CACHE_FOR_CHARET.
9498 (ftfont_get_charset): Undo the previous change.
1ac9108a 9499 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
9500 (ftfont_close): Likewise.
9501 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
9502
9503 * font.c (font_sort_entites): Change the meaning of the arg
9504 BEST-ONLY. Don't optimize for VEC of lenght 1.
9505 (font_select_entity): Just return the value of font_sort_entites.
9506
9507 * xfaces.c (merge_face_vectors): Reflect font properties in
9508 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
9509 font_clear_prop if a face attribute doesn't change.
9510
3c908a57
KH
9511 * charset.h (charset_ksc5601): Extern it.
9512
9513 * charset.c (charset_ksc5601): New variable.
9514 (Fdefine_charset_internal): Set charset_ksc5601.
9515 (init_charset_once): Initialize charset_ksc5601 to -1.
9516
d65859c3
DN
95172009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
9518
9519 * fileio.c (history_delete_duplicates): Remove unused declaration.
9520
9521 * callint.c (history_delete_duplicates): New declaration.
9522 (Fcall_interactively): Remove command history duplicates when
9523 history_delete_duplicates is true.
9524
3ba010e5
EZ
95252009-04-14 Eli Zaretskii <eliz@gnu.org>
9526
9527 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
9528
06f19b91
KH
95292009-04-14 Kenichi Handa <handa@m17n.org>
9530
9531 * font.c (Ffont_info): Fix docstring. Fix the second element of
9532 the returned value (bug#2949).
9533
2cce8bfc
CY
95342009-04-14 Chong Yidong <cyd@stupidchicken.com>
9535
9536 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
9537
d156542d
KH
95382009-04-14 Kenichi Handa <handa@m17n.org>
9539
9540 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
9541 encoding charset is ascii_compatible.
9542
9543 * charset.c (Fdefine_charset_internal): Make charset
9544 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
9545 code_offset is 0, and covers all ASCII characters.
9546
86fa089e
SM
95472009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
9548
9549 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
9550 (ns_string_to_pasteboard_internal):
9551 * nsmenu.m (process_dialog):
9552 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
9553 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
9554 * lisp.h (Fx_load_color_file): Declare.
9555
a8a3728b
KH
95562009-04-13 Kenichi Handa <handa@m17n.org>
9557
1ac9108a 9558 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
9559 (font_select_entity): Suppress the code to optimize for the same
9560 kind of fonts.
9561 (font_load_for_lface): Get a font that supports at least ASCII
9562 characters.
9563
9564 * ftfont.c (Qja, Qko): New variables.
9565 (fc_charset_table): Delete uniquifier data for iso8859-1.
9566 (ftfont_get_latin1_charset): New function.
9567 (get_adstyle_property): New function.
9568 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
9569 bitmap fonts.
9570 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
9571 Delete iso-8859-1 range from the charset of fonts whose adstyle is
9572 `ko' or `ja'.
9573 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 9574 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
9575 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
9576 property.
9577 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
9578 (syms_of_ftfont): DEFSYM Qja and Qko.
9579
483670b5
KH
95802009-04-09 Kenichi Handa <handa@m17n.org>
9581
12b55765
KH
9582 * charset.c (map_charset_chars): For a charset of `superset'
9583 method, fix calculation of code range.
9584
483670b5
KH
9585 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
9586 from the list of extra properties.
9587 (font_clear_prop): Be sure to delete `:name' font property.
9588
57d3b93b
KH
95892009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9590
b4b2c2ca
YM
9591 * dispnew.c (redraw_overlapping_rows): Fix detection of
9592 overlapping for topmost and bottommost rows.
9593
1ac9108a 9594 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 9595
472c3609
JR
95962009-04-06 Jason Rumney <jasonr@gnu.org>
9597
9598 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
9599
ab193662
KH
96002009-04-06 Kenichi Handa <handa@m17n.org>
9601
9602 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
9603
9604 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
9605
0c26f026
KH
96062009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9607
9608 * ftfont.c (ftfont_open): Fix checking of the return value of
9609 FT_Load_Char. Fix setting font->underline_thickness.
9610
e173bbce
CY
96112009-04-04 Chong Yidong <cyd@stupidchicken.com>
9612
9613 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
9614 (Fterminal_parameters, Fterminal_parameter)
9615 (Fset_terminal_parameter): In doc string, refer to terminal
9616 objects rather than terminal ids.
9617
693a2698
EZ
96182009-04-04 Eli Zaretskii <eliz@gnu.org>
9619
9620 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
9621 ret_lim_data. (Bug#2867)
9622
d5221487
CY
96232009-04-03 Chong Yidong <cyd@stupidchicken.com>
9624
9625 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
9626 so they don't get wider than the window, matching 2006-01-23
9627 change to the partner function in xdisp.c (Bug#2800).
9628
223509a3
KH
96292009-04-03 Kenichi Handa <handa@m17n.org>
9630
9631 * print.c (print_object): Make each lowest sub_char_table start a
9632 new line (Bug#2866).
9633
74fcd0b1
KH
96342009-04-02 Kenichi Handa <handa@m17n.org>
9635
9636 * fontset.c (fontset_font): Record no-font when a fontset
9637 explicitly tells not to try another font-specs.
9638
c542407d
SM
96392009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
9640
9641 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
9642
e3869731
KH
96432009-03-30 Kenichi Handa <handa@m17n.org>
9644
d8d2f142
KH
9645 * fontset.c (fontset_from_font): Specify only registry in a
9646 font-spec for all characters supported by that registry.
9647
e3869731
KH
9648 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
9649 even if HAVE_M17N_FLT is not defined.
9650
5da5f805
CY
96512009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
9652
9653 * ftfont.c: Conditionalize prototyping and use of
9654 ftfont_variation_glyphs.
9655
ab226c50
SM
96562009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
9657
9628fed7
SM
9658 * frame.c (delete_frame): Work around compiler bug.
9659
9660 * editfns.c (general_insert_function): Adjust to insdel.c changes.
9661 * insdel.c (prepare_to_modify_buffer, signal_before_change):
9662 Some more EMACS_INT.
9663 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
9664
9665 * xdisp.c (dump_glyph): Fix typo.
9666
ae19ba7c
SM
9667 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
9668 (adjust_markers_gap_motion, adjust_markers_for_delete)
9669 (adjust_markers_for_insert, adjust_point)
9670 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
9671 (make_gap, copy_text, count_size_as_multibyte, insert)
9672 (insert_and_inherit, insert_before_markers)
9673 (insert_before_markers_and_inherit, insert_1)
9674 (count_combining_before, count_combining_after, insert_1_both)
9675 (insert_from_string, insert_from_string_before_markers)
9676 (insert_from_string_1, insert_from_gap, insert_from_buffer)
9677 (insert_from_buffer_1, adjust_after_replace)
9678 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
9679 (replace_range_2, del_range, del_range_1, del_range_byte)
9680 (del_range_both, del_range_2, modify_region)
9681 (prepare_to_modify_buffer, signal_before_change)
9682 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
9683 for buffer positions and sizes.
9684 * lisp.h: Adjust prototypes accordingly.
9685
9686 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
9687 (non_regular_inserted, non_regular_nbytes, read_non_regular)
9688 (Finsert_file_contents): Use EMACS_INT for buffer positions.
9689
ab226c50
SM
9690 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
9691
46dfb8fb
JD
96922009-03-27 Jan Djärv <jan.h.d@swipnet.se>
9693
9694 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
9695 lines and columns so we keep the same pixel height and width.
9696
9697 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
9698 the property _NET_WM_STATE has changed.
46dfb8fb
JD
9699 (x_handle_net_wm_state): New function to update frame parameter
9700 fullscreen.
9701 (x_term_init): Initialize atoms for _NET_WM_STATE.
9702
9703 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
9704
d347e494
SM
97052009-03-27 Kevin Ryde <user42@zip.com.au>
9706
9707 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
9708 Gpm_GetEvent as an error that justifies closing the filedescriptor.
9709 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
9710 (Fgpm_mouse_stop): Pass that new parameter.
9711 * termhooks.h (close_gpm): Adjust prototype.
9712
84db11d6
SM
97132009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
9714
c95a5008
SM
9715 * lisp.h (Fx_focus_frame): Declare.
9716
84db11d6
SM
9717 * callint.c (Fcall_interactively): For '^' just delegate the work to
9718 handle-shift-selection.
9719 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
9720
0a1958d6
CY
97212009-03-24 Chong Yidong <cyd@stupidchicken.com>
9722
0bfdff23
CY
9723 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
9724
0a1958d6
CY
9725 * data.c (Qinteractive_form): New variable.
9726 (Finteractive_form): Use it.
9727
9728 * eval.c (Fcommandp): Use Qinteractive_form.
9729
58aec0d6
JR
97302009-03-24 Jason Rumney <jasonr@gnu.org>
9731
9732 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
9733 Calculate total size precisely. Decode environment variables
9734 before substituting. (Bug#38)
9735
553dd618
KH
97362009-03-24 Kenichi Handa <handa@m17n.org>
9737
9738 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 9739 encoding (Bug#2722).
553dd618 9740
c39ea606
JD
97412009-03-23 Jan Djärv <jan.h.d@swipnet.se>
9742
9743 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
9744 that gdpy is set.
9745
bc9b2b5e
AM
97462009-03-22 Alan Mackenzie <acm@muc.de>
9747
9748 * callint.c (Finteractive): Clarify the doc string - even
9749 promptless elements need \n separators.
9750
9f995a76
JR
97512009-03-22 Jason Rumney <jasonr@gnu.org>
9752
9753 * w32term.c (syms_of_w32term): Doc fix for
9754 x-use-underline-position-properties.
9755
22749e9a
EZ
97562009-03-21 Eli Zaretskii <eliz@gnu.org>
9757
9758 * w32.c (getpwuid): Change argument type to unsigned.
9759 (struct w32_id): Change type of `rid' member to unsigned.
9760 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
9761 argument ID to unsigned. All callers changed.
9762 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
9763
e00553bf
EZ
97642009-03-20 Eli Zaretskii <eliz@gnu.org>
9765
9766 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
9767 negative, produce a float value.
9768
9769 * dired.c (make_uid, make_gid): New functions.
9770 (Ffile_attributes): Use them to avoid negative UID and GID.
9771
f761d6b6
JB
97722009-03-20 Juanma Barranquero <lekktu@gmail.com>
9773
9774 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
9775 (syms_of_keyboard) <command-hook-internal, input-method-function>:
9776 Fix typos in docstrings.
9777
d507f8d7
KH
97782009-03-19 Kenichi Handa <handa@m17n.org>
9779
9780 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
9781 changed, use font_load_for_lface to get a new font object.
9782 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
9783
9784 * frame.c (x_set_font): Handle the case that ARG is a cons.
9785
c68845e0
GM
97862009-03-19 Glenn Morris <rgm@gnu.org>
9787
9788 * fileio.c (Fsubstitute_in_file_name): Doc fix.
9789
bfa49dd1
CY
97902009-03-19 Chong Yidong <cyd@stupidchicken.com>
9791
9792 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
9793
8458d4c1
KH
97942009-03-19 Kenichi Handa <handa@m17n.org>
9795
9796 * charset.c (load_charset_map_from_file): When a mapfile can't be
9797 loaded, signal an error.
9798
78e7d1fe
EZ
97992009-03-18 Eli Zaretskii <eliz@gnu.org>
9800
9801 * dired.c (Ffile_attributes): Make sure UID and GID are always
9802 positive, even if the value is too large for a positive EMACS_INT.
9803 Doc fix.
9804
9805 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
9806
5da9fdfa
YM
98072009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9808
9809 * xmenu.c (xdialog_show): Move Fredisplay call ...
9810 (Fx_popup_dialog): ... here.
9811
7519c40d
SM
98122009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
9813
9814 * dired.c (file_name_completion): Disable the first optimization just
9815 installed, since it is not implemented correctly.
9816
2cd298e2
SM
98172009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9818
9819 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 9820 only if the entry can affect bestmatch.
2cd298e2
SM
9821 Stop the search early, as Ftry_completion already does.
9822
48d37adf
CY
98232009-03-17 Chong Yidong <cyd@stupidchicken.com>
9824
e10c9c93 9825 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 9826
9286b16a
CY
98272009-03-15 Chong Yidong <cyd@stupidchicken.com>
9828
9829 * keyboard.c (parse_menu_item): Don't display remappings as menu
9830 equivalent bindings (Bug#788).
9831
f7b146dc
JR
98322009-03-15 Jason Rumney <jasonr@gnu.org>
9833
9834 * w32term.h (WM_EMACS_PAINT): New message.
9835 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
9836 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
9837 before passing to lisp thread. (Bug#950)
9838
f761d6b6 98392009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 9840
d93f9575
CY
9841 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
9842 variable as it was never reset.
9843 (ns_term_init): Remove initialization of Lisp-settable defaults
9844 and ns_expand_space.
9845 (-setPanelFromDefaultValues): Remove ns_expand_space.
9846 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
9847 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
9848 i.e. no additional spacing, similar to Carbon port.
9849
d93f9575
CY
9850 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
9851 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 9852
305018ec
JD
98532009-03-14 Jan Djärv <jan.h.d@swipnet.se>
9854
9855 * sound.c (alsa_configure): Remove call to deprecated
9856 snd_pcm_sw_params_set_xfer_align.
9857
f761d6b6 98582009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
9859
9860 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
9861 after clicking in a detached tool bar.
9862 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
9863
46e722a9
SM
98642009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
9865
348db3dd
SM
9866 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
9867 int/Lisp_Object mixup).
46e722a9 9868
a3d16f39
KH
98692009-03-13 Kenichi Handa <handa@m17n.org>
9870
9871 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 9872 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
9873 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
9874 (set_fontset_font): Change ARG to a vector. Handle range_list in
9875 ARG correctly.
9876 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 9877 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
9878 the above change.
9879 (fontset_from_font): Fix previous change.
fe24f56a 9880 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
9881 entry. If FONTSET is the default fontset, don't set the extra
9882 slot of the returning char-table.
9883
b066e6b6
JB
98842009-03-12 Juanma Barranquero <lekktu@gmail.com>
9885
9886 * nsfns.m (Fx_close_connection): Doc fix.
9887 (Fns_do_applescript): Reflow docstring.
9888 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
9889 (Fx_display_pixel_width, Fx_display_pixel_height)
9890 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
9891 Fix typos in docstrings.
9892 (Fns_set_alpha): Fix typos in error messages.
9893
d472514e 98942009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 9895
d472514e 9896 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
9897 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
9898 were used for such events.
9899
d472514e
JB
9900 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
9901 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 9902
d472514e 9903 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
9904 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
9905
fb930676
KH
99062009-03-11 Kenichi Handa <handa@m17n.org>
9907
ff85581a
KH
9908 * font.h (font_open_by_spec): Extern it.
9909
c50b7e98
KH
9910 * font.c (font_open_by_spec): New function.
9911 (font_open_by_name): Use font_open_by_spec.
9912
fb930676
KH
9913 * frame.c (x_set_font): When ARG is a font-object, don't alter the
9914 fontset of the frame.
9915
9916 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
9917 modify the default font of frames that use this fontset.
9918 (num_auto_fontsets): New variable.
9919 (fontset_from_font): Use num_auto_fontsets to decide a fontset
9920 name. Be sure to set FONTSET_ASCII to the correct font name.
9921 (update_auto_fontset_alist): New function.
9922
df4e8455
JB
99232009-03-11 Juanma Barranquero <lekktu@gmail.com>
9924
9925 * makefile.w32-in: Update dependencies.
9926
0a375797
AR
99272009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9928
9929 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
9930
61313fa3
SM
99312009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9932
9933 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
9934
b55103fb
CY
99352009-03-10 Chong Yidong <cyd@stupidchicken.com>
9936
9937 * lread.c (Feval_buffer): Doc fix.
9938
dde2559c
KH
99392009-03-09 Kenichi Handa <handa@m17n.org>
9940
9941 * charset.c (Qfile_name_handler_alist): Extern it.
9942 (load_charset_map_from_file): Temporarily bind
9943 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
9944
df4e8455 99452009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 9946
47f588bb
GM
9947 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
9948 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 9949
4ddf94bd
AR
99502009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9951
4c9bdfc2
AR
9952 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
9953 (x_set_window_size): Change back to calculated method of setting
9954 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
9955 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
9956 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
9957
fe41ae9e
AR
9958 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
9959
4c9bdfc2
AR
9960 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
9961 accelerator in parens under GNUstep.
9962
825d0875
KH
99632009-03-06 Kenichi Handa <handa@m17n.org>
9964
9965 These changes are to detect incorrect composition sequence without
f3b3be74 9966 looking ahead the source. (Bug#2370)
825d0875
KH
9967
9968 * coding.h: Include "composite.h".
9969 (enum compisition_state): New enum.
9970 (struct compisition_status): New struct.
9971 (struct iso_2022_spec): New member cmp_status.
9972 (struct emacs_mule_spec): New struct.
9973 (struct coding_system): New members ctext_extended_segment_len and
9974 embedded_utf_8. Change the union member
9975 spec.emacs_mule_full_support to spec.emacs_mule.
9976
9977 * coding.c (CODING_ISO_CMP_STATUS): New macro.
9978 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 9979 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
9980 (ADD_COMPOSITION_DATA): New arg nbytes.
9981 (emacs_mule_char): New arg cmp_status.
9982 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
9983 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
9984 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
9985 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
9986 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
9987 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
9988 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
9989 (EMACS_MULE_COMPOSITION_END): New macro.
9990 (emacs_mule_finish_composition): New function.
9991 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
9992 (decode_coding_emacs_mule): Avoid long looking ahead while
9993 handling composition.
9994 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
9995 (ENCODE_COMPOSITION_RULE): New macro.
9996 (finish_composition): New function.
9997 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
9998 (DECODE_COMPOSITION_START): New implementation.
9999 (DECODE_COMPOSITION_END): Likewise.
10000 (STORE_COMPOSITION_RULE): New macro.
10001 (decode_coding_iso_2022): Avoid long looking ahead while handling
10002 composition, CTEXT extended segment, and embedded UTF-8.
10003 (setup_coding_system): For a coding of type iso-2022, reset
10004 CODING_ISO_EXTSEGMENT_LEN (coding) and
10005 CODING_ISO_EMBEDDED_UTF_8 (coding).
10006 (get_translation): Delete arguments last_block, from_nchars,
10007 to_nchars. Callers changed.
10008 (produce_chars): Don't modify charbuf. Adjusted for the change of
10009 get_translation.
98a326f7 10010 (produce_composition): Adjust for the new annotation sequence.
825d0875 10011 (handle_composition_annotation): Likewise.
98a326f7 10012 (consume_chars): Adjust for the change of get_translation.
825d0875 10013
ccbc4452
AR
100142009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
10015
4ddf94bd 10016 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 10017
988a7ddb
KH
100182009-03-05 Kenichi Handa <handa@m17n.org>
10019
10020 * font.c (font_select_entity): New function.
10021 (font_find_for_lface): Use font_select_entity to select a font.
10022
10023 * fontset.c (fontset_find_font): If a font found without
a8a3728b 10024 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
10025 font with C restriction.
10026
98a326f7 100272009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 10028
be1bce46 10029 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 10030
10ea2b82
JR
100312009-03-04 Jason Rumney <jasonr@gnu.org>
10032
2c93b248 10033 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 10034 characters that have already been read. (Bug#2569)
2c93b248 10035
10ea2b82
JR
10036 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
10037 Log an error message if check_image_size failed.
10038 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 10039 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 10040
71a0c011
EZ
100412009-03-02 Eli Zaretskii <eliz@gnu.org>
10042
10043 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
10044 when decoding process output.
10045
2f63bba8
RS
100462009-03-01 Richard M Stallman <rms@gnu.org>
10047
10048 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
10049
10050 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
10051
0a9564cb
EZ
100522009-02-28 Eli Zaretskii <eliz@gnu.org>
10053
10054 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
10055 (decode_coding_emacs_mule, decode_coding_iso_2022)
10056 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10057 (decode_coding_raw_text, decode_coding_charset)
10058 (setup_coding_system, decode_eol, decode_coding, consume_chars):
10059 Honor inhibit-eol-conversion. (Bug #2186)
10060
449148b3
JR
100612009-02-28 Jason Rumney <jasonr@gnu.org>
10062
10063 * coding.c (detect_coding_charset): If not checking latin extra,
10064 fail on characters between 0x80 and 0xA0. (Bug#2354)
10065
a4aee864
EZ
100662009-02-28 Eli Zaretskii <eliz@gnu.org>
10067
10068 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 10069 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 10070
d88bee5a
GM
100712009-02-27 Glenn Morris <rgm@gnu.org>
10072
10073 * callint.c (Finteractive): Doc fix.
10074
a808f22d
KH
100752009-02-27 Kenichi Handa <handa@m17n.org>
10076
10077 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
10078
caf8d60c
CY
100792009-02-27 Chong Yidong <cyd@stupidchicken.com>
10080
10081 * font.c (font_style_to_value): Set value for unknown symbols to
10082 100 instead of 255.
b61137ea
CY
10083 (weight_table, slant_table, width_table): Treat "unspecified" as
10084 the default value.
caf8d60c 10085
1a0de25c
JB
100862009-02-26 Juanma Barranquero <lekktu@gmail.com>
10087
10088 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
10089
8fc45744
JB
100902009-02-25 Juanma Barranquero <lekktu@gmail.com>
10091
107bd7d1
JB
10092 * lread.c (Fload): Stop checking Vloads_in_progress and signal
10093 error as soon as a recursive load is detected.
8fc45744 10094
f097e223
AR
100952009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10096
10097 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
10098 before caching.
10099
8810a12f
KH
101002009-02-24 Kenichi Handa <handa@m17n.org>
10101
10102 * fontset.c (fontset_find_font): Fix the condition for checking
10103 unavailable font.
10104
2c7d1565
GM
101052009-02-24 Glenn Morris <rgm@gnu.org>
10106
10107 * xfaces.c (Finternal_set_font_selection_order): Remove leading
10108 whitespace that confuses documentation.
10109
a20878b6
MB
101102009-02-23 Miles Bader <miles@gnu.org>
10111
10112 * process.c (Flist_system_processes, Fprocess_attributes)
10113 (syms_of_process): Rename `system-process-attributes' to
10114 `process-attributes'.
10115
b3b58c01
AS
101162009-02-22 Andreas Schwab <schwab@linux-m68k.org>
10117
1b3b981b
AS
10118 * coding.h (struct coding_system): Make safe_charsets a pointer to
10119 unsigned char.
10120 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
10121 being 255.
10122 (SAFE_CHARSET_P): Likewise.
10123 (setup_iso_safe_charsets): Properly setup safe_charsets.
10124 (Fdefine_coding_system_internal): Likewise.
10125 (setup_coding_system): Likewise. Remove unneeded casts.
10126 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
10127 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
10128 unneeded casts.
10129
b3b58c01
AS
10130 * insdel.c (del_range_2): Don't modify gap contents when called
10131 from decode_coding_object. (Bug#1809)
10132
0b6f228c
CY
101332009-02-21 Chong Yidong <cyd@stupidchicken.com>
10134
10135 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
10136 Qfont_object.
10137 (Ftype_of): Recognize font objects.
10138
10139 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
10140
10141 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
10142 moved to data.c.
10143
52f8870b
AR
101442009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10145
10146 * nsterm.m (x_make_frame_invisible): Unset async_visible,
10147 async_iconified. Based on a patch by Christian Lynbech
10148 <christian.lynbech@tieto.com>.
10149 (EmacsView-windowDidMiniaturize:): Unset async_visible.
10150
7087d5e9
GM
101512009-02-20 Glenn Morris <rgm@gnu.org>
10152
10153 * syntax.c (Fskip_chars_forward): Fix doc typo.
10154
41d2ceef
CY
101552009-02-20 Chong Yidong <cyd@stupidchicken.com>
10156
10157 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
10158
1a3b7ca6
CY
101592009-02-19 Chong Yidong <cyd@stupidchicken.com>
10160
10161 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
10162
73cce38d
KH
101632009-02-19 Kenichi Handa <handa@m17n.org>
10164
10165 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 10166 Don't overflow coding->carryover. (Bug#2370)
73cce38d 10167
a51092ee
DN
101682009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
10169
10170 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
10171
c423ecca
KH
101722009-02-18 Kenichi Handa <handa@m17n.org>
10173
10174 * font.c (font_check_otf_features): Fix handling of `nil' element.
10175 (Ffont_spec): Describe :lang and :otf in the docstring.
10176
4c1958f4
AS
101772009-02-16 Andreas Schwab <schwab@suse.de>
10178
10179 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
10180 string.
10181
5704f39a
KH
101822009-02-16 Kenichi Handa <handa@m17n.org>
10183
10184 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 10185 (Bug#1723)
5704f39a 10186
8f0085aa
CY
101872009-02-14 Chong Yidong <cyd@stupidchicken.com>
10188
a057d86a 10189 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
10190
10191 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
10192 (handle_line_prefix): Suppress wrapping of wrap prefixes.
10193
aff01dd9
EZ
101942009-02-14 Eli Zaretskii <eliz@gnu.org>
10195
10196 * msdos.c (MAX_SCREEN_BUF): New macro.
10197 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
10198 Encode the entire run of glyphs sharing the same face, instead of
10199 doing that one glyph at a time (fixes a bug with displaying
10200 double-size characters).
10201
ba301db3
AR
102022009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
10203
10204 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
10205
10206 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
10207 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 10208 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
10209
10210 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 10211 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 10212
51d861de
SM
102132009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
10214
ac146f82 10215 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
10216 invisible areas.
10217
7fed8996
JR
102182009-02-12 Jason Rumney <jasonr@gnu.org>
10219
631ea4fb
JR
10220 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
10221 (add_font_entity_to_list): Call check_face_name even when family
10222 is unspecified.
10223
cb4a3e42
JR
10224 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10225 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 10226 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 10227
7fed8996 10228 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 10229 raster fonts. (Bug#2219)
7fed8996 10230
895416e3
KH
102312009-02-12 Kenichi Handa <handa@m17n.org>
10232
10233 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
10234 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
10235 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 10236 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
10237 (find_automatic_composition): While looking forward and backward,
10238 check static composition. Fix where to stop looking forward.
10239 (composition_adjust_point): Fix checking of static composition.
10240 (Fcomposition_get_gstring): Pay attention to
1dacf998 10241 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
10242
10243 * lisp.h (fast_looking_at): Extern it.
10244
10245 * search.c (fast_looking_at): New function.
10246
51d861de 10247 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
10248 <struct glyph>.u.cmp.to.
10249 (append_composite_glyph): Likewise.
10250
51d861de 10251 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
10252 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
10253 composition.
51d861de 10254 (append_composite_glyph): Adjust for the change of
895416e3
KH
10255 <strcut glyph>.u.cmp.to.
10256
8510724d
JB
102572009-02-11 Juanma Barranquero <lekktu@gmail.com>
10258
10259 * casetab.c (init_casetab_once):
10260 * coding.c (ALLOC_CONVERSION_WORK_AREA):
10261 * font.c (font_update_lface):
10262 * fontset.c (Fnew_fontset):
10263 * ftfont.c (ftfont_drive_otf):
10264 * xfont.c (xfont_open):
10265 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
10266
294fa707
SM
102672009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
10268
10269 * fileio.c (Fwrite_region): !NILP -> CONSP.
10270
b5bfebec
AS
102712009-02-10 Andreas Schwab <schwab@suse.de>
10272
10273 * process.c (send_process): Properly relocate pointer into data
adab88bd 10274 when using encoded data. (Bug#2272)
b5bfebec 10275
cb84a2be
KH
102762009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
10277
10278 * coding.c (detect_coding_charset): Fix previous change.
10279
89e09428
JR
102802009-02-08 Jason Rumney <jasonr@gnu.org>
10281
10282 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 10283 disappeared while hourglass was displayed. (Bug #2193)
89e09428 10284
4470a277
AS
102852009-02-07 Andreas Schwab <schwab@suse.de>
10286
10287 * unexelf.c (unexec): Fix error message.
10288
3175b12a
AR
102892009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
10290
10291 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 10292 when modal window is active. (Bug #2152)
3175b12a
AR
10293 (applicationShouldTerminate:): Remove now-unneeded while loop
10294 around NSRunAlertPanel.
10295
10296 * nsmenu.m (popupSession): New file-global variable.
10297 (pop_down_menu): End the popupSession before closing dialog.
10298 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
10299 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
10300 don't query NSApp for events (just sleep instead).
10301
8434d0b8
EZ
103022009-02-07 Eli Zaretskii <eliz@gnu.org>
10303
51d861de
SM
10304 * coding.c (syms_of_coding) <translation-table-for-input>:
10305 Modify doc string to discourage use for character code unification.
8434d0b8 10306
aa82edfd
CY
103072009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10308
10309 * atimer.c (run_timers): Update pending_atimers.
10310
2d283c7c
CY
103112009-02-06 Chong Yidong <cyd@stupidchicken.com>
10312
eb306cab
CY
10313 * image.c (svg_load_image): Fix last change.
10314
2d283c7c
CY
10315 * xfns.c (Fx_create_frame): Signal an error if no font is
10316 found (Bug#2147).
10317
4d8e170e
JB
103182009-02-05 Juanma Barranquero <lekktu@gmail.com>
10319
10320 * character.c (syms_of_character) <script-representative-chars>:
10321 Fix typo in docstring.
10322
c96169a0
AR
103232009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10324
10325 * nsmenu.m (pop_down_menu): New function.
10326 (ns_popup_dialog): Call it on unwind.
10327 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
10328 call timer_check() (Bug#2154).
10329 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
10330 handling_signal is set.
10331 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
10332
31fd7c5c 10333 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
10334
10335 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
10336
10337 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
10338
51d861de
SM
10339 * keyboard.c (poll_for_input_1, handle_async_input):
10340 Set handling_signal under HAVE_NS.
c96169a0 10341
aacd8ba1
GM
103422009-02-04 Glenn Morris <rgm@gnu.org>
10343
10344 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
10345
4cb75c4b
KH
103462009-02-04 Kenichi Handa <handa@m17n.org>
10347
10348 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
10349
10350 * charset.c (Fchar_charset): New optional arg restriction.
10351
10352 * coding.h (coding_system_charset_list): Extern it.
10353
10354 * coding.c (coding_system_charset_list): New function.
10355
10356 * composite.c: Include coding.h and termhooks.h.
10357 (composition_gstring_p): Fix for the terminal case.
10358 (composition_gstring_width): Likewise.
10359 (fill_gstring_body): Likewise.
10360 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
10361 the frame.
10362 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
10363 is within a composition.
867d4bb3 10364 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
10365
10366 * term.c (encode_terminal_code): Fix handling of composition.
10367 (produce_composite_glyph): For static composition, get pixel_width
10368 from struct composition.
10369
826ba17e
AS
103702009-02-02 Andreas Schwab <schwab@suse.de>
10371
10372 * unexelf.c (unexec): Handle unaligned bss offset.
10373
8ad093db
AR
103742009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10375
10376 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
10377 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 10378
8ad093db
AR
10379 * keyboard.c (handle_interrupt): Don't call
10380 quit_throw_to_read_char() under NS.
d0a76a6e 10381
8ad093db
AR
10382 * blockinput.h: Remove NS-specific code.
10383
4d18a7a2
DN
103842009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
10385
db878925
DN
10386 * dispnew.c (window_change_signal): Don't try to get the size of a
10387 suspended tty frame.
10388 * term.c (Fresume_tty): Resize if the size has changed while the
10389 tty was suspended.
10390
4d18a7a2
DN
10391 * alloc.c (mark_stack): Properly conditionalize previous change.
10392
8984df7c
JB
103932009-01-30 Juanma Barranquero <lekktu@gmail.com>
10394
10395 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
10396 * w32term.c (w32_read_socket) [SYNC_INPUT]:
10397 Remove; this code is not used on Windows.
10398
75f4f1ac
EZ
103992009-01-30 Eli Zaretskii <eliz@gnu.org>
10400
10401 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
10402 EOLs that also has stray ^M characters.
10403
07a1e794
JB
104042009-01-30 Juanma Barranquero <lekktu@gmail.com>
10405
10406 * atimer.c (run_timers, alarm_signal_handler):
10407 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
10408 * w32inevt.c (w32_console_read_socket):
10409 * w32term.c (w32_read_socket):
10410 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
10411
a8b11cc9
CY
104122009-01-30 Chong Yidong <cyd@stupidchicken.com>
10413
10414 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
10415 Initialize it as a relative filename pattern.
10416 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
10417 (Fcall_process_region): Simplify temp file creation using
10418 temporary-file-directory.
10419
c279587b
EZ
104202009-01-29 Eli Zaretskii <eliz@gnu.org>
10421
10422 * msdos.c: Rename pending_signals to msdos_pending_signals.
10423 (sig_suspender, sigprocmask): Adjust.
10424
a8fe3242
CY
104252009-01-29 Chong Yidong <cyd@stupidchicken.com>
10426
10427 * keyboard.c (pending_signals): New var.
10428 (poll_for_input, input_available_signal, init_keyboard): Set it.
10429 (process_pending_signals): New function.
10430
10431 * lisp.h (QUIT): Check pending_signals instead of
10432 interrupt_input_pending. Use process_pending_signals.
10433
51d861de 10434 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 10435
51d861de 10436 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
10437
10438 * sysdep.c (emacs_write): Use process_pending_signals.
10439
10440 * xterm.c (XTread_socket): Update pending_signals.
10441
10442 * w32term.c (w32_read_socket): Update pending_signals.
10443
10444 * w32inevt.c (w32_console_read_socket): Update pending_signals.
10445
6570a1c4
KH
104462009-01-29 Kenichi Handa <handa@m17n.org>
10447
10448 * xftfont.c (xftfont_has_char): New function.
10449 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
10450
d72a4afa
AR
104512009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10452
10453 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
10454 under GNUstep.
10455 (ns_query_color): New declaration.
10456
10457 * nsterm.m (ns_confirm_quit): New variable.
10458 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
10459 (EmacsApp-applicationShouldTerminate:): Use it.
10460 (EmacsPrefsController): Let user set it.
10461 (ns_query_color): New function.
10462 (ns_defined_color): Use it.
10463 (ns_initialize): Drop.
10464 (ns_term_init): Add two lines from ns_initialize(), and set
10465 input_interrupt_mode to nil.
10466
10467 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 10468 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 10469
9fe78804
KH
104702009-01-28 Kenichi Handa <handa@m17n.org>
10471
10472 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
10473 (fontset_get_font_group): Remember that no font-group is specified
10474 for C.
9fe78804 10475
fa57de36
CY
104762009-01-27 Chong Yidong <cyd@stupidchicken.com>
10477
930600e9
CY
10478 * fns.c (concat): Check for string overflow (bug#1787).
10479
fa57de36
CY
10480 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
10481 Quadruple undo limits (bug#1501).
10482
7179ce7b
KH
104832009-01-27 Kenichi Handa <handa@m17n.org>
10484
10485 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
10486 directly use GT_Get_Char_index.
10487
10488 * xftfont.c (struct xftfont_info): New member `index'.
10489
10490 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 10491 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 10492
5be8fcc0
CY
104932009-01-26 Kenichi Handa <handa@m17n.org>
10494
10495 * fontset.c (fontset_find_font): Fix handling of non-cons return
10496 value of fontset_get_font_group.
10497 (fontset_font): Revert last change.
10498
19ae3e61
JR
104992009-01-26 Jason Rumney <jasonr@gnu.org>
10500
10501 * w32font.c (w32font_list_internal): Return quickly if registry is
10502 unknown. Simplify final return.
10503 (add_font_entity_to_list): Break complex logic down into more
10504 manageable chunks. Move unknown registry check to
10505 w32font_list_internal.
10506
8612b71a
AR
105072009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
10508
10509 Changes to remove Feval calls from GUI under NS.
10510
d8038940
JB
10511 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
10512 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
10513 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
10514
10515 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
10516 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
10517 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
10518 instead of NON_ASCII_KEYSTROKE_EVENT.
10519 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
10520 (EmacsApp-applicationShouldTerminate:): Query user.
10521 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
10522 instead of Feval.
10523
10524 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
10525
10526 * keyboard.c (kbd_buffer_get_event): Check for it.
10527 (keys_of_keyboard): Define lispy keys for
10528 ns-put/unput-working-text.
10529
10530 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
10531 versions.
10532 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
10533
6288ae55
CY
105342009-01-25 Chong Yidong <cyd@stupidchicken.com>
10535
10536 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 10537 setting current_buffer directly. (Bug#2044)
6288ae55 10538
289e7f8f
CY
105392009-01-24 Chong Yidong <cyd@stupidchicken.com>
10540
5ce87308 10541 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 10542 any work. (Bug#1952, bug#1990).
5ce87308 10543
64cc3cf6 10544 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 10545
b3243e6f
AR
105462009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10547
10548 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
10549 (ns_no_defaults): New declaration.
10550 (main): Use it.
e0d2e69a 10551
d900b2af 10552 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 10553
d900b2af 10554 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 10555
d900b2af
AR
10556 * nsterm.m (ns_no_defaults): New variable.
10557 (ns_initialize): Don't read defaults when ns_no_defaults.
10558 (EmacsView-readSelectionFromPasteboard:)
10559 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 10560 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
10561 (ns_dumpglyphs_stretch): New function.
10562 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 10563 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 10564
e0d2e69a
AR
10565 * nsimage.m (setPixmapData:): Set to ignore image DPI.
10566
3ac71f5d
CY
105672009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
10568
10569 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
10570 call for Sparc64.
10571
3fe53a83
AR
105722009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10573
10574 * nsfns.m:
10575 * nsgui.h:
10576 * nsmenu.m:
10577 * nsselect.m:
10578 * nsterm.h:
10579 * nsterm.m: Remove '23' comments that indicated code added during
10580 update from emacs-20 -> emacs-23.
10581
10f87c6f 105822009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
10583
10584 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 10585 ns_alternate_modifier. (Bug#1217)
a3b53a85 10586
c7cef62d
AR
10587 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
10588 Display all shortcuts, including those w/o super modifier.
10589
575fb8bd
AR
10590 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
10591
918b848b
CY
105922009-01-22 Chong Yidong <cyd@stupidchicken.com>
10593
10594 * fileio.c (Vwrite_region_post_annotation_function)
10595 (Vwrite_region_annotation_buffers): New vars.
10596 (build_annotations_unwind): Just reset
10597 Vwrite_region_annotation_buffers.
10598 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
10599 Call write-region-post-annotation-function.
10600 (build_annotations): Add to Vwrite_region_annotation_buffers if
10601 buffer changes.
10602
a39e2539
AR
106032009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10604
10605 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
10606 Tiger.
51d861de
SM
10607 * nsfns.m (ns_do_applescript):
10608 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 10609
35ed44db
AR
106102009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
10611
10612 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
10613
cbe0b5bf
AR
106142009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10615
10616 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 10617
6049d3a0
AR
10618 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
10619
10620 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
10621 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
10622 handle Ctrl-tab. (Bug#1841)
10623 (ns_get_color): Use unsigned long long for scanned hex string value.
10624 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 10625 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 10626 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 10627 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 10628 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 10629 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 10630 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 10631
d3810c21 10632 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 10633 DPI. (Bug#1316)
d3810c21
AR
10634 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
10635 values in onTiger section.
4c7077c3 10636
e301e634
CY
106372009-01-19 Chong Yidong <cyd@stupidchicken.com>
10638
7f82490b
CY
10639 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
10640 Check return value of font_spec_from_name.
64cc3cf6 10641 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
10642
10643 * font.c (font_spec_from_name): Return Qnil if font name could not
10644 be parsed.
10645 (font_parse_name): Treat a `?' character as part of an XLFD.
10646
e301e634
CY
10647 * fns.c (Fsubstring): Doc fix.
10648
1c0db158
KH
106492009-01-19 Kenichi Handa <handa@m17n.org>
10650
51d861de 10651 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
10652 (ftfont_list): Likewise.
10653
acf20901
JB
106542009-01-18 Juanma Barranquero <lekktu@gmail.com>
10655
fff4e459
JB
10656 * dbusbind.c (Fdbus_register_signal):
10657 * process.c (conv_sockaddr_to_lisp):
10658 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
10659
acf20901
JB
10660 * callproc.c (Fgetenv_internal): Doc fix.
10661
e7abcdfb
CY
106622009-01-16 Chong Yidong <cyd@stupidchicken.com>
10663
10664 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
10665 it is not even used.
10666
b60861e6
GM
106672009-01-16 Glenn Morris <rgm@gnu.org>
10668
10669 * font.c (Ffont_variation_glyphs): Silence compiler.
10670
8db52afe
JB
106712009-01-15 Juanma Barranquero <lekktu@gmail.com>
10672
10673 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
10674 Reported by David Robinow <drobinow@gmail.com>.
10675
4cddb209
KH
106762009-01-15 Kenichi Handa <handa@m17n.org>
10677
51d861de 10678 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 10679
f247f67b
JR
106802009-01-14 Jason Rumney <jasonr@gnu.org>
10681
10682 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 10683 never a fontset. (Bug#1562)
f247f67b 10684
f56a4450
KH
106852009-01-14 Kenichi Handa <handa@m17n.org>
10686
10687 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 10688 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 10689
4e99855e
CY
106902009-01-13 Chong Yidong <cyd@stupidchicken.com>
10691
10692 * font.c (font_clear_prop): If clearing the family, clear the font
10693 width index too.
10694
fff4e459 10695 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 10696
24f01470
JB
106972009-01-12 Juanma Barranquero <lekktu@gmail.com>
10698
10699 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
10700 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
10701 functions, use sizeof.
10702
a41240a3
MR
107032009-01-12 Martin Rudalics <rudalics@gmx.at>
10704
10705 * keyboard.c (read_char): Fix case where last_nonmenu_event
10706 returned a bad value with submenus. (Bug#447)
10707
944636b8
CY
107082009-01-12 Chong Yidong <cyd@stupidchicken.com>
10709
10710 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
10711 family, clear the font width index too.
10712
0dad7c6f
JR
107132009-01-11 Jason Rumney <jasonr@gnu.org>
10714
10715 * keyboard.c (cmd_error_internal): Exit when errors occur before
10716 frame creation and not in daemon mode. (Bug#1836)
10717
7c2363af
CY
107182009-01-10 Chong Yidong <cyd@stupidchicken.com>
10719
10720 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
10721 of a display vector, backtrack.
10722 (try_window_reusing_current_matrix): Check glyph type before
10723 referencing charpos member.
10724
97b1b294
EZ
107252009-01-10 Eli Zaretskii <eliz@gnu.org>
10726
10727 Fix Bug #876:
10728
10729 * coding.c (inhibit_null_byte_detection): New variable.
10730 (detect_coding, detect_coding_system): Don't pay attention to null
10731 bytes if inhibit_null_byte_detection is non-zero.
51d861de 10732 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
10733 <inhibit-iso-escape-detection>: Doc fix.
10734
4624b6e3
JR
107352009-01-09 Jason Rumney <jasonr@gnu.org>
10736
10737 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 10738 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
10739 Only report Unicode Plane 2 fonts as unicode-sip.
10740
323b840c
CY
107412009-01-09 Chong Yidong <cyd@stupidchicken.com>
10742
51d861de
SM
10743 * xfaces.c (Fx_font_family_list): Delete function.
10744 Move compatibility version to faces.el.
323b840c 10745
51d861de 10746 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 10747
eba7400d
MR
107482009-01-09 Martin Rudalics <rudalics@gmx.at>
10749
10750 * frame.c (x_set_frame_parameters): Remember requested value for
10751 fullscreen before it's reset by the parameter handler.
10752
4b09796d
GM
107532009-01-09 Glenn Morris <rgm@gnu.org>
10754
10755 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 10756 (last_command_event): ... and update all users.
4b09796d
GM
10757 (last_input_char): For clarity, rename to...
10758 (last_input_event): ... and update all users.
10759 (last-command-char, last-input-char): Move to subr.el as aliases.
10760 * cmds.c, commands.h: Update for last_command_char rename.
10761
14ccea62
CY
107622009-01-08 Chong Yidong <cyd@stupidchicken.com>
10763
51d861de 10764 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 10765
5f004711
JR
107662009-01-08 Jason Rumney <jasonr@gnu.org>
10767
10768 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
10769 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
10770 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
10771 Don't declare.
fff4e459 10772 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
10773 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
10774
b71f6f73
KH
107752009-01-07 Kenichi Handa <handa@m17n.org>
10776
50b06221 10777 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 10778 remember the coding system used for decoding in
50b06221
KH
10779 coding_system (Bug#1039).
10780
b71f6f73 10781 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 10782 breaking the loop. (Bug#870)
b71f6f73
KH
10783 (decode_coding_utf_16, decode_coding_emacs_mule)
10784 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10785 (decode_coding_charset): Likewise.
10786
56f668f7
MR
107872009-01-05 Martin Rudalics <rudalics@gmx.at>
10788
10789 * frame.c (x_set_frame_parameters): Make sure height (width) get
10790 applied when fullwidth (fullheight) is set. (Bug#1522)
10791
5da9424d
JB
107922009-01-04 Juanma Barranquero <lekktu@gmail.com>
10793
10794 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
10795 (utc_base): Declare as ULONGLONG, not long double.
10796 (convert_time_raw): Delete.
10797 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
10798 (initialize_utc_base): New function.
10799 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
10800 (convert_from_time_t): Use initialize_utc_base; compute result with
10801 64-bit arithmetic.
10802 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
10803
c4605e09
EZ
108042009-01-03 Eli Zaretskii <eliz@gnu.org>
10805
9acef61c 10806 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
10807 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
10808 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
10809 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
10810 [!subprocesses]: Define.
10811 (syms_of_process) [!subprocesses]: Intern and staticpro them.
10812 (Flist_system_processes, Fsystem_process_attributes)
10813 [!subprocesses]: Call list_system_processes and
10814 system_process_attributes instead of returning Qnil.
10815
9acef61c
JB
10816 * dosfns.c (system_process_attributes, list_system_processes):
10817 New functions.
c4605e09
EZ
10818
10819 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
10820
10821 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
10822 Don't use the default (no-op) implementation.
10823
8b7d0a16
JR
108242009-01-03 Jason Rumney <jasonr@gnu.org>
10825
a6d46bc1
JR
10826 * keyboard.c (parse_modifiers_uncached): Wheel events are
10827 clicks (bug#687).
10828
8b7d0a16
JR
10829 * w32term.c (x_query_colors, x_query_color): New functions.
10830
10831 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
10832 (svg_load_image): Cast returned pointers from dynamically loaded
10833 functions. Eliminate W32 specific code.
10834
bfe11752
DN
108352009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
10836
89e2438a
DN
10837 * nsfns.m (x_set_foreground_color, x_set_background_color)
10838 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
10839 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
10840 x_ prefix instead of ns_. Update references.
10841 (syms_of_nsfns): Add a FIXME comment.
10842
10843 * nsterm.m (x_set_cursor_type): New prototype.
10844 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
10845
bfe11752
DN
10846 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
10847 for Solaris instead of incorrectly providing Qutime and Qcutime.
10848
031da700
EZ
108492009-01-02 Eli Zaretskii <eliz@gnu.org>
10850
10851 * w32.c (process_times): Compute sum of utime and stime.
10852 (system_process_attributes): Add Qtime to the alist.
10853
10854 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
10855 and add them to the alist.
10856
10857 * process.c (top level) <Qtime, Qctime>: New variables.
10858 (syms_of_process): staticpro them.
10859 (Fsystem_process_attributes): Add their documentation to the doc
10860 string.
10861
10862 * process.h: Declare Qtime and Qctime.
10863
df23bf08
JR
108642009-01-02 Jason Rumney <jasonr@gnu.org>
10865
9acef61c 10866 * image.c (Qgobject): New symbol.
df23bf08
JR
10867 (syms_of_image): Initialize it.
10868 (init_svg_functions): Load some functions from gobject library.
10869
5bbdf7aa
DN
108702009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
10871
10872 * frame.c (make_terminal_frame): Remove redundant code and useless
10873 block.
10874
63136da6
AS
108752009-01-01 Andreas Schwab <schwab@suse.de>
10876
10877 * process.c (conv_sockaddr_to_lisp): Add workaround for
10878 getsockname bug on BSD.
10879
9ef69046
CY
108802009-01-01 Chong Yidong <cyd@stupidchicken.com>
10881
d6fafbe0
CY
10882 * xfns.c (x_create_tip_frame): Set border width of the X window.
10883
51d861de 10884 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 10885
f9c34147
JR
108862009-01-01 Jason Rumney <jasonr@gnu.org>
10887
9acef61c 10888 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
10889 Don't block input, as per earlier xterm.c changes.
10890
f5497e45
AR
108912008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
10892
10893 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
10894 (ns_appkit_version_int): New function.
10895 (x-server-version): Use ns_appkit_version_int and follow 21+
10896 convention of returning 3 integers.
10897
c19cab20
KH
108982008-12-30 Kenichi Handa <handa@m17n.org>
10899
10900 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
10901 (CHAR_SURROGATE_PAIR_P): New macro.
10902
10903 * font.h (struct font_driver): New member get_variation_glyphs.
10904
9acef61c 10905 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
10906 (Ffont_variation_glyphs): New function.
10907 (syms_of_font): Defsubr it.
10908
10909 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
10910 ftfont_variation_glyphs.
10911 (setup_otf_gstring): New function.
10912 (ftfont_drive_otf): Use it.
10913 (ftfont_shape_by_flt): Handle variation selector.
10914 (ftfont_variation_glyphs): New function.
10915
28cd591f
MR
109162008-12-30 Martin Rudalics <rudalics@gmx.at>
10917
10918 * frame.c (Vemacs_iconified): Remove.
10919
7f714baf
JR
109202008-12-30 Jason Rumney <jasonr@gnu.org>
10921
10922 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 10923 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 10924
9d2d22ab
CY
109252008-12-30 Chong Yidong <cyd@stupidchicken.com>
10926
10927 * indent.c (Fvertical_motion): Don't advance iterator if we have
10928 reseated to the desired position.
10929
10930 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
10931 checking for pos match.
10932
545312c2
KH
109332008-12-30 Kenichi Handa <handa@m17n.org>
10934
1ede3eb6
KH
10935 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
10936 just get the low 8-bit of the code.
10937
545312c2
KH
10938 * font.c (font_intern_prop): Validate str as multibyte.
10939
bd7bbf29
DN
109402008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10941
31e0750e
DN
10942 * dispextern.h (struct face): Move lface and hash from the middle
10943 of bitfields.
10944
bd7bbf29
DN
10945 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
10946
b5672e7c
DN
109472008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10948
10949 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
10950 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
10951 instead of intervals.h.
10952
d704470f
AS
109532008-12-26 Andreas Schwab <schwab@suse.de>
10954
10955 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
10956 cons.
10957
54b33868
MR
109582008-12-26 Martin Rudalics <rudalics@gmx.at>
10959
10960 * textprop.c (Qminibuffer_prompt): New variable.
10961 (syms_of_textprop): Initialize it.
10962 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
10963 in minibuffer-prompt face. (Bug#1662)
10964
40b615d6
JR
109652008-12-25 Jason Rumney <jasonr@gnu.org>
10966
10967 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
10968
baae5c2d
JR
109692008-12-24 Jason Rumney <jasonr@gnu.org>
10970
10971 * ralloc.c (r_alloc_reset_variable): New function.
10972
10973 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 10974 record of what points where. (Bug#716)
baae5c2d 10975
a9051c88
DN
109762008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
10977
10978 * minibuf.c (read_minibuf): Follow the non-interactive case when
10979 running as a daemon, before detaching.
10980
8b146312
AS
109812008-12-22 Andreas Schwab <schwab@suse.de>
10982
10983 * buffer.c (init_buffer): Use realloc instead of xrealloc.
10984 * gtkutil.c (free_widget_value): Use xfree instead of free.
10985
56f2de10
MR
109862008-12-22 Martin Rudalics <rudalics@gmx.at>
10987
10988 * frame.c (delete_frame): New function derived from
10989 Fdelete_frame to handle Qnoelisp value for FORCE argument.
10990 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
10991 (Fdelete_frame): Call delete_frame. Remove line from doc-string
10992 saying that FORCE non-nil doesn't run `delete-frame-functions'.
10993 * frame.h: Extern delete_frame.
10994 * window.c (window_loop):
10995 * terminal.c (delete_terminal):
10996 * xterm.c (x_connection_closed):
10997 * xfns.c (Fx_hide_tip):
9acef61c 10998 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 10999
1fc200d6
JR
110002008-12-21 Jason Rumney <jasonr@gnu.org>
11001
11002 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
11003 when character maps to .notdef character.
11004
5e252df2
SM
110052008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
11006
11007 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
11008
99b72cc4
JR
110092008-12-20 Jason Rumney <jasonr@gnu.org>
11010
11011 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 11012 a graphical frame on Windows. (Bug#1325)
99b72cc4 11013
acc49a52
JD
110142008-12-20 Jan Djärv <jan.h.d@swipnet.se>
11015
11016 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
11017
6ea15123
CY
110182008-12-20 Chong Yidong <cyd@stupidchicken.com>
11019
11020 * minibuf.c (Fread_buffer): Doc fix.
11021
b2dab6c8
JR
110222008-12-20 Jason Rumney <jasonr@gnu.org>
11023
54ea0c87 11024 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 11025 server name in UNC paths. (Bug#719)
54ea0c87 11026
b2dab6c8 11027 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 11028 charbuf. (Bug#1035)
b2dab6c8 11029
6d1921be
DN
110302008-12-19 Daniel Engeler <engeler@gmail.com>
11031
11032 * sysdep.c (serial_configure): Fix typo.
11033
53934c98
DN
110342008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
11035
11036 * sysdep.c: Include alloca.h.
f4f634e8
DN
11037 (system_process_attributes): Add implementation for Solaris.
11038
11039 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 11040
06e111a6
DN
110412008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
11042
11043 Reorganize implementation of Flist_system_processes and
11044 Fsystem_process_attributes. No functional changes.
11045 * process.c: Don't #include pwd.h, grp.h and limits.h.
11046 (Flist_system_processes): Just call list_system_processes.
11047 (Fsystem_process_attributes): Just call system_process_attributes.
11048 (procfs_list_system_processes, time_from_jiffies)
11049 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
11050 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
11051
11052 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
11053 (list_system_processes): Rename from
11054 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
11055 Provide a do nothing implementation.
11056 (system_process_attributes): Rename from
11057 procfs_list_system_processes.
11058 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 11059 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
11060
11061 * w32.c (list_system_processes): Rename from
11062 w32_list_system_processes.
11063 (system_process_attributes): Rename from
11064 w32_system_process_attributes.
11065
11066 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
11067
11068 * process.h (w32_list_system_processes)
11069 (w32_system_process_attributes): Remove.
362654a6
JB
11070 (list_system_processes, system_process_attributes):
11071 New prototypes.
06e111a6 11072
6a705b23
KH
110732008-12-19 Kenichi Handa <handa@m17n.org>
11074
11075 * xfont.c (xfont_decode_coding_xlfd): New function.
11076 (xfont_encode_coding_xlfd): New function.
11077 (xfont_list_pattern): Decode XLFD by iso-8859-1.
11078 (xfont_list): Decode and encode XLFD by iso-8859-1.
11079 (xfont_match): Likewise.
11080 (xfont_list_family): Likewise.
11081 (xfont_open): Likewise.
11082
d66c0241 11083 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
11084 names are utf-8.
11085
d66c0241 11086 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
11087 names are utf-8.
11088
5a130941
JD
110892008-12-18 Jan Djärv <jan.h.d@swipnet.se>
11090
11091 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
11092 changed.
bfd20325
JD
11093 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
11094 clicked on a detached tool bar button.
5a130941 11095
fd95644b
DN
110962008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
11097
11098 * emacs.c (main): Print and error and exit when no data is read
11099 from the pipe.
11100
e6eee6ae
JR
111012008-12-17 Jason Rumney <jasonr@gnu.org>
11102
11103 * w32font.c (w32font_has_char): Always return -1.
11104
a35dd56b
KH
111052008-12-16 Kenichi Handa <handa@m17n.org>
11106
11107 * font.c (font_open_entity): Fix previous change.
11108
0e3635c2
DN
111092008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
11110
11111 * process.c: Include <limits.h>.
11112
d4835507 111132008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
11114
11115 * font.c (font_update_drivers): Fix mistake in reconstructing the
11116 driver list.
11117
111182008-12-16 Chong Yidong <cyd@stupidchicken.com>
11119
11120 * font.c (font_clear_cache): Fix format of font cache data.
11121
e2cbc401
CY
111222008-12-15 Chong Yidong <cyd@stupidchicken.com>
11123
11124 * xftfont.c (xftfont_open): Free Xft font pattern if
11125 XftFontOpenPattern fails.
11126
11127 * xterm.c (x_free_frame_resources): Remove extraneous call to
11128 free_frame_faces.
11129
b131d535
CY
111302008-12-13 Chong Yidong <cyd@stupidchicken.com>
11131
11132 * xterm.c (x_delete_display): Move xim_close_dpy call to
11133 x_delete_terminal.
11134 (x_delete_terminal): Call xim_close_dpy.
11135
e6df5336
JR
111362008-12-13 Jason Rumney <jasonr@gnu.org>
11137
11138 * w32font.c (intern_font_name): New function.
11139 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
11140 (w32font_open_internal, Fx_select_font): Decode font name.
11141 (fill_in_logfont, list_all_matching_fonts): Encode font name.
11142
11143 * w32font.h (intern_font_name): Declare new function.
11144
11145 * w32uniscribe.c (add_opentype_font_name_to_list):
11146 Use intern_font_name.
11147
20d68145
CY
111482008-12-13 Chong Yidong <cyd@stupidchicken.com>
11149
9f2554de
CY
11150 * frame.c (Fdelete_frame): Call free_font_driver_list.
11151
3d9bec9a
CY
11152 * font.c (free_font_driver_list): Implement missing function.
11153
20d68145
CY
11154 * w32term.c (w32_term_init): Don't initialize the image cache
11155 here; it will be done in init_frame_faces.
11156
11157 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
11158 (struct x_display_info): Remove unused member null_pixel. New
11159 member xim_callback_data.
11160
11161 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
11162 (xim_initialize): Save pointer to callback function data.
11163 (xim_close_dpy): Free callback function data. Call XCloseIM,
11164 reverting 2008-11-04 change by David Smith.
11165 (x_term_init): Don't initialize the image cache here; it will be
11166 done in init_frame_faces. Remove ancient "null_pixel" cruft.
11167 (x_delete_display): Free x_dnd_atoms member.
11168
96f9306b
KH
111692008-12-13 Kenichi Handa <handa@m17n.org>
11170
6dec9044
JB
11171 * font.c (font_rescale_ratio): Moved from xfaces.c.
11172 Argument type changed. Handle a font-spec too.
96f9306b 11173 (font_score): Check Vface_font_rescale_alist.
6dec9044 11174 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
11175
11176 * xfaces.c (font_rescale_ratio): Moved to font.c.
11177
8d5b4964
CY
111782008-12-13 Chong Yidong <cyd@stupidchicken.com>
11179
11180 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
11181
e6df5336
JR
111822008-12-12 Jason Rumney <jasonr@gnu.org>
11183
11184 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
11185 Vwindow_system_version to the real w32 major version.
11186
97c6058a
DN
111872008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
11188
11189 * term.c (init_tty): Move setting the terminal name before the
11190 potential user: maybe_fatal.
11191
ec4e88d7
CY
111922008-12-11 Chong Yidong <cyd@stupidchicken.com>
11193
d4835507
JB
11194 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
11195 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 11196
b4233ec9
JR
111972008-12-11 Jason Rumney <jasonr@gnu.org>
11198
8ec71e23 11199 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 11200 SYMBOL_CHARSET. (Bug#547)
8ec71e23 11201
b4233ec9 11202 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 11203 size for surrogates. (Bug#1096, bug#872)
b4233ec9 11204
011a0143
JB
112052008-12-11 Juanma Barranquero <lekktu@gmail.com>
11206
11207 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
11208
3c309f34
JB
112092008-12-11 Juanma Barranquero <lekktu@gmail.com>
11210
11211 * process.c (Fsystem_process_attributes, syms_of_process):
11212 Fix typo in name of Ssystem_process_attributes.
11213 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
11214
fedc6ab5
JB
112152008-12-11 Juanma Barranquero <lekktu@gmail.com>
11216
11217 * syntax.c (Fmodify_syntax_entry): Doc fix.
11218
ba3de0e8
JB
112192008-12-10 Juanma Barranquero <lekktu@gmail.com>
11220
11221 * font.c (Ffont_spec): Move usage to end of docstring.
11222
174f1c74
JR
112232008-12-10 Jason Rumney <jasonr@gnu.org>
11224
11225 * w32font.c (Qcham): New symbol.
11226 (font_supported_scripts): Add cham, and comments for other new
11227 scripts in bitfield from OpenType spec.
9d32f818
JR
11228 (add_font_entity_to_list): Limit unicode-sip fonts to those that
11229 contain characters beyond the bmp.
174f1c74 11230
7b649478
KH
112312008-12-10 Kenichi Handa <handa@m17n.org>
11232
11233 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 11234 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
11235 Qunicode_sip.
11236
2133e2d1
JB
112372008-12-10 Juanma Barranquero <lekktu@gmail.com>
11238
11239 * coding.c (QCdefault_char): Rename from QCdefalut_char.
11240 (Fcoding_system_put): Use QCdefault_char.
11241 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
11242
9af886ee
CY
112432008-12-09 Chong Yidong <cyd@stupidchicken.com>
11244
74d819eb
CY
11245 * xftfont.c (syms_of_xftfont): Fix typo.
11246
4ccfa1c0 11247 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 11248
7c19d3ae
DN
112492008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
11250
11251 * emacs.c (main): Close daemon_pipe on exec.
11252
567826bb
CY
112532008-12-08 Chong Yidong <cyd@stupidchicken.com>
11254
11255 * termchar.h (struct tty): New members termcap_term_buffer and
11256 termcap_strings_buffer.
11257
11258 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 11259 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
11260 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
11261 All callers changed.
11262 (init_tty): Store termcap data and string buffers in new struct
11263 tty members termcap_term_buffer and termcap_strings_buffer.
11264 (delete_tty): Free them.
4ccfa1c0 11265 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 11266
aa96c42b
SZ
112672008-12-07 Seiji Zenitani <zenitani@mac.com>
11268
11269 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 11270 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 11271
b7e1d896
CY
112722008-12-06 Chong Yidong <cyd@stupidchicken.com>
11273
11274 * coding.c (make_conversion_work_buffer): Disable buffer
11275 modification hooks in the work buffer.
11276
b5ec91a5
EZ
112772008-12-05 Eli Zaretskii <eliz@gnu.org>
11278
11279 * process.c (procfs_system_process_attributes): If `nread' has a
11280 negative value, assign zero to it.
11281
a5d2a52b
CY
112822008-12-05 Chong Yidong <cyd@stupidchicken.com>
11283
68c5540b 11284 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 11285
7bf1bb21
KH
112862008-12-05 Kenichi Handa <handa@m17n.org>
11287
11288 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
11289 second character is a combining character.
11290
2fdc7d00
EZ
112912008-12-05 Eli Zaretskii <eliz@gnu.org>
11292
11293 * process.c (procfs_system_process_attributes): Don't use cmd,
11294 cmdsize, and q without initializing them first.
11295
bf6bfba8
JR
112962008-12-04 Jason Rumney <jasonr@gnu.org>
11297
11298 * w32font.c (w32font_draw): Initialize orig_clip before getting
11299 it, and delete it when finished.
11300
a3b1a468
DN
113012008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
11302
11303 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
11304 case when running as a daemon before detaching.
11305
8b8be8eb
JB
113062008-12-03 Juanma Barranquero <lekktu@gmail.com>
11307
805f2638 11308 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 11309
b1bde622
KH
113102008-12-03 Kenichi Handa <handa@m17n.org>
11311
e500c47d
KH
11312 * font.c (font_at): Set `multibyte' at first.
11313
ca516334
KH
11314 * coding.c (decode_coding_charset): Check type of an element of
11315 vector VALIDS.
7bf1bb21 11316 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 11317
4ccfa1c0 11318 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
11319 (font_for_char): Likewise.
11320
1e5ecd37
CY
113212008-12-03 Chong Yidong <cyd@stupidchicken.com>
11322
d5b01609 11323 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
11324 (font_update_lface): Handle fonts with corrupted size specs,
11325 i.e. non-int and non-float.
d5b01609 11326
11e3a6e4 11327 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 11328 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 11329 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 11330
ab06788b
CY
11331 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
11332
1e5ecd37 11333 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 11334 underline_minimum_offset for underline position.
1e5ecd37 11335
63c125ab
DN
113362008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
11337
11338 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
11339
11340 * character.c (c_string_width): Specify the type for LEN.
11341
3a8406e1
KH
113422008-12-03 Kenichi Handa <handa@m17n.org>
11343
4ccfa1c0 11344 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 11345 (decode_coding_utf_8): Likewise.
4ccfa1c0 11346 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 11347 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 11348
651df7d9
CY
113492008-12-02 Chong Yidong <cyd@stupidchicken.com>
11350
11351 * keyboard.c (make_lispy_position): Only use PT if the selected
11352 window is current.
11353
1f625c6c
AS
113542008-12-02 Andreas Schwab <schwab@suse.de>
11355
f7741ce9
AS
11356 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
11357
1f625c6c
AS
11358 * doprnt.c (doprnt1): Fix size of charbuf.
11359
92bc2678
CY
113602008-12-02 Chong Yidong <cyd@stupidchicken.com>
11361
11362 * keyboard.c (timer_check): Revert last change.
11363
93b9e8cc
JB
113642008-12-02 Juanma Barranquero <lekktu@gmail.com>
11365
11366 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
11367
fd7a37d5
JB
113682008-12-01 Juanma Barranquero <lekktu@gmail.com>
11369
11370 * makefile.w32-in: Update dependencies.
11371 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
11372
c115043b
AS
113732008-12-01 Andreas Schwab <schwab@suse.de>
11374
11375 * font.c (register_font_driver): Use xmalloc.
11376 (font_put_frame_data): Likewise.
11377
f5668d2a
CY
113782008-12-01 Chong Yidong <cyd@stupidchicken.com>
11379
860d96be
CY
11380 * xfaces.c (realize_x_face): Make abort condition clearer.
11381
f5668d2a
CY
11382 * gtkutil.c (update_frame_tool_bar): Initialize variable.
11383
379c17e7
CY
113842008-11-30 Chong Yidong <cyd@stupidchicken.com>
11385
11386 * keyboard.c (timer_check): After a timer runs, ensure that the
11387 selected window's buffer is current.
11388
35f36d65
JB
113892008-11-30 Juanma Barranquero <lekktu@gmail.com>
11390
f952c61c
JB
11391 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
11392 It was accidentally restored by the Unicode merge.
11393
35f36d65
JB
11394 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
11395
b23077df
JB
113962008-11-29 Juanma Barranquero <lekktu@gmail.com>
11397
11398 * w32proc.c: Include "coding.h".
11399 (Fw32_short_file_name): Encode filename passed to Windows API.
11400 (Fw32_long_file_name): Encode filename passed to Windows API and
11401 decode back the result. (Bug#1433)
11402
b8ebe9dd
KH
114032008-11-29 Kenichi Handa <handa@m17n.org>
11404
8cc53f96
KH
11405 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
11406 not before accessing it.
11407
b8ebe9dd
KH
11408 * charset.c (Fdefine_charset_internal): After calculating
11409 min_char, max_char, and fastmap, copy the charset structure again.
11410 (encode_char): Fix the previous change.
11411
59bc82c0
SZ
114122008-11-28 Seiji Zenitani <zenitani@mac.com>
11413
11414 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
11415
11416 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
11417
11418 * nsterm.m (x_set_frame_alpha): New function.
11419
32247e3d
EZ
114202008-11-27 Eli Zaretskii <eliz@gnu.org>
11421
11422 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
11423
b003e5ff
JB
114242008-11-27 Juanma Barranquero <lekktu@gmail.com>
11425
11426 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
11427 pointer to check_face_name.
11428
708550f5
KH
114292008-11-27 Kenichi Handa <handa@m17n.org>
11430
11431 * category.h (SET_CATEGORY_SET): Call set_category_set.
11432 (set_category_set): Extern it.
11433
11434 * category.c (hash_get_category_set): New function.
11435 (Fmodify_category_entry): Adjusted for the change of
11436 char_table_ref_and_range. Call hash_get_category_set to get a
11437 category set to store in the table.
11438
11439 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
11440 Funify_charset.
11441
2ae37cf0 11442 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
11443 (DECODE_CHAR): Check if the decoder vector is ready.
11444 (ENCODE_CHAR): Check if the encoder char-table is ready.
11445 (maybe_unify_char): Extern it.
11446
11447 * charset.c (Vchar_unified_charset_table): Delete it.
11448 (inhibit_load_charset_map): New variable.
11449 (temp_charset_work): New variable.
11450 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
11451 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
11452 New macros.
11453 (load_charset_map): Meaning of control_flag changed. If
11454 inhibit_load_charset_map is nonzero, setup a table in
11455 temp_charset_work.
11456 (load_charset): New argument control_flag.
11457 (map_charset_for_dump): New function.
11458 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
11459 map_charset_for_dump.
11460 (Fdefine_charset_internal): If the charset method is MAP, load
11461 mapping tables by calling load_charset.
11462 (Funify_charset): Don't load a mapping table but directly set
11463 Vchar_unify_table.
11464 (maybe_unify_char): New function.
11465 (decode_char): Don't handle the deleted method MAP_DEFERRED.
11466 Handle the case of inhibit_load_charset_map being nonzero.
11467 (encode_char): Don't handle the deleted method MAP_DEFERRED.
11468 Handle the case of inhibit_load_charset_map being nonzero.
11469 (Fclear_charset_maps): Just free temp_charset_work.
11470 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
11471 variable.
11472
11473 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
11474 change of char_table_ref_and_range.
11475 (char_table_ref_and_range): Change the meaning of argument FROM
11476 and TO. Now the caller must provide initial values for *FROM
11477 and *TO.
11478
11479 * fontset.c (fontset_add): Adjusted for the change of
11480 char_table_ref_and_range.
11481 (fontset_get_font_group): Likewise.
11482 (Ffontset_info): Likewise.
11483
11484 * keymap.c (describe_vector): Adjusted for the change of
11485 char_table_ref_and_range. For char-table, put boundary between
11486 non-ASCII and 8-bit characters.
11487
11488 * print.c (print_object): For bool-vector, delete unnecessary
11489 check of ASCII_BYTE_P.
11490
9196133b
JR
114912008-11-26 Jason Rumney <jasonr@gnu.org>
11492
11493 * w32font.c (w32font_open_internal): Don't include external
9acef61c 11494 leading in font height. (Bug#879)
9196133b 11495
9f688acf
GM
114962008-11-26 Glenn Morris <rgm@gnu.org>
11497
11498 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
11499 redefinition with ifdef. (Bug#1383)
11500
90d19aff
AR
115012008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11502
11503 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
11504
4ccfa1c0 115052008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
11506
11507 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
11508 New EmacsView methods.
11509 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
11510 Fixes bug #1048,1357,1414.
11511
115122008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11513
11514 Fix bug #1362.
11515 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
11516 is not an indexed color.
11517 * nsterm.m (free_indexed_color): Add argument checking.
11518 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
11519
e7d5ecb3
CY
115202008-11-24 Chong Yidong <cyd@stupidchicken.com>
11521
11522 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
11523 Document confirm-after-completion value for
11524 minibuffer-completion-confirm.
11525
c285743c
JR
115262008-11-24 Jason Rumney <jasonr@gnu.org>
11527
11528 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
11529 warning.
11530
b0857706
JR
115312008-11-23 Jason Rumney <jasonr@gnu.org>
11532
11533 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
11534 restored before returning.
11535
11536 * w32font.c (check_face_name): New function.
11537 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 11538 fonts. (Bug#642)
b0857706 11539
ee50ff07
MR
115402008-11-22 Martin Rudalics <rudalics@gmx.at>
11541
11542 * buffer.c (Fswitch_to_buffer): Reword and mention new option
11543 confirm-nonexistent-file-or-buffer in doc-string.
11544
b8ff72fa
SM
115452008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
11546
11547 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
11548 Fix copy/paste typo. Add checks.
11549
cee53ed4
KH
115502008-11-21 Kenichi Handa <handa@m17n.org>
11551
11552 * coding.c (detect_coding_iso_2022): Reject invalid composition
11553 sequence.
11554 (DECODE_COMPOSITION_START): If the current source is the last
11555 block, and the current composition doesn't end, regard this
11556 sequence as invalid.
11557 (decode_coding_iso_2022): Handle invalid composition sequence.
11558
f6ef1e65
MR
115592008-11-20 Martin Rudalics <rudalics@gmx.at>
11560
11561 * window.c (coordinates_in_window): Don't return
11562 ON_VERTICAL_BORDER for the rightmost position of a mode/header
11563 line when the window is not the rightmost one. (Bug#1372)
11564
e08b1705
MR
115652008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
11566
11567 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
11568
ad98e89f
EZ
115692008-11-15 Eli Zaretskii <eliz@gnu.org>
11570
11571 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
11572 and bright_bg if noninteractive is non-zero.
11573
fb098a4b
CY
115742008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11575
11576 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
11577 x_draw_glyph_string_background.
11578
11579 * w32term.c (x_draw_glyph_string): Likewise.
11580
ce952b6e
CY
115812008-11-15 Chong Yidong <cyd@stupidchicken.com>
11582
11583 * xterm.c (x_draw_glyph_string): Stop drawing the background of
11584 the next glyph string once past the overhang width.
11585
11586 * nsterm.m (ns_draw_glyph_string): Likewise.
11587
11588 * w32term.c (x_draw_glyph_string): Likewise.
11589
26ea7079
CY
115902008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
11591
11592 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
11593 double file close.
11594
1c33c906
MR
115952008-11-14 Martin Rudalics <rudalics@gmx.at>
11596
11597 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
11598 dedicated status of window before attempting to display another
11599 buffer in it.
11600
8fc29035
JB
116012008-11-14 Juanma Barranquero <lekktu@gmail.com>
11602
11603 * msdos.c (Fmsdos_long_file_names):
11604 (syms_of_msdos) <dos-unsupported-char-glyph>:
11605 * dosfns.c (Fint86): Fix typos in docstrings.
11606
55fb4286
EZ
116072008-11-14 Eli Zaretskii <eliz@gnu.org>
11608
11609 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
11610
3fda0315
KY
116112008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
11612
11613 * puresize.h (BASE_PURESIZE): Increase to 1260000.
11614
7e849c17
CY
116152008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
11616
11617 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
11618
11619 * frame.h: Negative alpha means "don't touch".
11620
11621 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
11622
11623 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
11624
b9fd67bd
DN
116252008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
11626
11627 * hftctl.c:
11628 * chpdef.h:
11629 * acldef.h: Remove files used only for systems no longer supported.
11630
11631 * Makefile.in: Fix .o alphabetical ordering.
11632 (hftctl.o): Remove dependency, file removed.
11633 (keymap.o, print.o): Depend on charset.h.
11634
d5998e03
KH
116352008-11-10 Kenichi Handa <handa@m17n.org>
11636
2ae37cf0 11637 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 11638
be70e183
CY
116392008-11-08 Chong Yidong <cyd@stupidchicken.com>
11640
11641 * dired.c (file_name_completion): If completion_ignore_case is
11642 enabled, ignore case when checking completion-regexp-list.
11643
7cf94eac
EZ
116442008-11-08 Eli Zaretskii <eliz@gnu.org>
11645
11646 * vm-limit.c (get_lim_data): Fix last change.
11647
ee107a89
KH
116482008-11-08 Kenichi Handa <handa@m17n.org>
11649
11650 * character.c (Fget_byte): New function.
11651 (syms_of_character): Defsubr Fget_byte.
11652
5fd15622
CY
116532008-11-07 Chong Yidong <cyd@stupidchicken.com>
11654
11655 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
11656 cursor position is valid after scrolling.
11657
13d62fad
JB
116582008-11-06 Juanma Barranquero <lekktu@gmail.com>
11659
11660 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
11661
a1dd2936
GM
116622008-11-06 Glenn Morris <rgm@gnu.org>
11663
11664 * xterm.c (handle_one_xevent): Don't let popup menus cause
11665 mouse-autoselect-window related window switching. (Bug#1261)
11666
860cd236
CY
116672008-11-04 David Smith <davidsmith@acm.org> (tiny change)
11668
11669 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
11670
653a3150
AS
116712008-11-04 Andreas Schwab <schwab@suse.de>
11672
11673 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
11674
870f5cac
CY
116752008-11-03 Chong Yidong <cyd@stupidchicken.com>
11676
11677 * xfns.c (Fx_wm_set_size_hint): New function.
11678
1e02f3cb
MR
116792008-11-03 Martin Rudalics <rudalics@gmx.at>
11680
11681 * textprop.c (Fprevious_single_char_property_change): Return 0
11682 when there's no change in a string. (Bug#1301)
11683
e630dfc6
MR
116842008-11-02 Martin Rudalics <rudalics@gmx.at>
11685
11686 * frame.c (do_switch_frame): New argument NORECORD passed to
11687 Fselect_window.
11688 (Fselect_frame): New argument NORECORD passed to
11689 do_switch_frame.
11690 (Fset_frame_selected_window): New argument NORECORD passed to
11691 Fselect_frame.
11692 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
11693 in call of do_switch_frame.
11694 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
11695 Handle NORECORD argument in call of Fselect_frame.
11696 * lisp.h (do_switch_frame, Fselect_frame)
11697 (Fset_frame_selected_window): Adjust declarations.
11698 * window.c (select_frame_norecord): New function.
11699 (run_window_configuration_change_hook): Use it and call
11700 Fselect_frame with NORECORD set.
11701 (Fselect_window): Pass NORECORD to Fselect_frame.
11702 (Fset_window_configuration): Handle NORECORD argument in call of
11703 do_switch_frame.
11704 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
11705 Fset_frame_selected_window.
11706 * keyboard.c (command_loop_1): Handle NORECORD in call of
11707 Fselect_frame (currently ifdefd).
11708
9020b223
GM
117092008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
11710
11711 * emacs.c (USAGE2): Untabify.
11712
793ffee8
SM
117132008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
11714
11715 * composite.c (fill_gstring_header): Fix copy/paste typo.
11716
ab6d1131
MR
117172008-10-31 Martin Rudalics <rudalics@gmx.at>
11718
11719 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
11720 (Fother_window): Rename argument and rewrite doc-string.
11721 (select_window_norecord): Fix return value. (Bug#1276)
11722
601a9cf1
JB
117232008-10-30 Juanma Barranquero <lekktu@gmail.com>
11724
11725 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
11726 new frames overriding foreground for tooltips. Based on similar patch
11727 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
11728
813b0652
CY
117292008-10-29 Chong Yidong <cyd@stupidchicken.com>
11730
11731 * emacs.c (Fdaemon_initialized): Initialize nfd.
11732
4414f58f
MR
117332008-10-29 Martin Rudalics <rudalics@gmx.at>
11734
11735 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
11736 (Fwindow_text_height): Clarify doc-strings.
11737 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
11738 doc-string of window-scroll-functions.
11739
ecdcaa09
RS
117402008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
11741
11742 * category.c (syms_of_category): Fix typo in docstring.
11743
23fe745a
JB
117442008-10-28 Juanma Barranquero <lekktu@gmail.com>
11745
11746 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
11747 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
11748 Fix typos in docstrings.
11749
ff808935
DN
117502008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
11751
11752 * emacs.c (daemon_pipe): Make non-static.
11753 (IS_DAEMON): Move definition ...
11754 * lisp.h (IS_DAEMON): ... here.
11755 (daemon_pipe): Declare.
11756 (is_daemon): Remove.
11757 * dispnew.c (init_display): Use IS_DAEMON.
11758
fc012771
SM
117592008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
11760
11761 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
11762 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
11763
11764 * emacs.c (is_daemon): Remove.
11765 (main): Don't set is_daemon.
11766 (IS_DAEMON): New macro.
11767 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 11768 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
11769 parent exits.
11770 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
11771
d8bdbe6f
CY
117722008-10-27 Chong Yidong <cyd@stupidchicken.com>
11773
d1a072bf
CY
11774 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
11775 over-sized glyph, draw it with the default glyph width.
11776
e2e325aa
CY
11777 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11778 glyph, draw it with the default glyph width.
11779
11780 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11781 glyph, draw it with the default glyph width.
11782
d8bdbe6f
CY
11783 * xdisp.c (try_scrolling): When computing the distance from the
11784 scroll margin to PT, try moving some distance past the window
11785 bottom before giving up.
11786
7bfac547
MR
117872008-10-27 Martin Rudalics <rudalics@gmx.at>
11788
11789 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
11790 (Fset_window_buffer): Explain in doc-string that a window can be
11791 "strongly" dedicated to its buffer.
11792
4ff029f6
DN
117932008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
11794
11795 * emacs.c (daemon_name): New variable.
11796 (main): Deal with --daemon=SERVER_NAME.
11797 (Fdaemonp): Return a name if one was passed to --daemon.
11798
5790ef40
DN
117992008-10-26 Romain Francoise <romain@orebokech.com>
11800
f9bd0df9 11801 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
11802 (main): Create a pipe before forking, make the parent exit only after
11803 the child has closed its end of the pipe. Move closing the
11804 descriptors ...
11805 (Fdaemon_initialized): ... here. New function.
11806
f5385255
SM
118072008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
11808
4d632321
SM
11809 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
11810 the previous unoptimized table.
11811
f5385255
SM
11812 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
11813 the distinction between non-nil and non-t value of `dedicated'.
11814
6c56a0f3
CY
118152008-10-25 Chong Yidong <cyd@stupidchicken.com>
11816
11817 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 11818 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 11819
fec89261
MR
118202008-10-25 Martin Rudalics <rudalics@gmx.at>
11821
11822 * window.c (Fget_buffer_window, Fdelete_windows_on)
11823 (Freplace_buffer_in_windows): Make buffer argument optional and
11824 rename to buffer_or_name.
11825
34fcddd0
CY
118262008-10-24 Chong Yidong <cyd@stupidchicken.com>
11827
f5385255
SM
11828 * xdisp.c (handle_single_display_spec, handle_display_prop):
11829 Undo 2005-05-16 change.
34fcddd0
CY
11830 (handle_stop): Pop iterator if it's loaded with an empty string.
11831 (get_overlay_strings_1): Don't save iterator if it's loaded with
11832 an empty string (bug#1201).
11833
064766f2
KH
118342008-10-24 Kenichi Handa <handa@m17n.org>
11835
11836 * ftfont.c (ftfont_otf_features): Fix previous change.
11837 (ftfont_otf_capability): Check FeatureList.FeatureCount before
11838 calling ftfont_otf_features.
11839
f9bd0df9 118402008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
11841
11842 * font.c (font_match_p): Fix for the case that a vector of
11843 characters is in script-representative-chars.
11844
1dae9197
MA
118452008-10-24 Michael Albinus <michael.albinus@gmx.de>
11846
11847 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 11848 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
11849 (xd_read_queued_messages): Catch Qdbus_error from the macros.
11850 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 11851 macro. (Bug#1186)
1dae9197 11852
f9bd0df9 118532008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
11854
11855 * s/sol2-10.h: New file.
11856
878a4584
JB
118572008-10-23 Juanma Barranquero <lekktu@gmail.com>
11858
11859 * xdisp.c (fill_glyph_string): Fix typo in source (though the
11860 poor beast has survived 9+ years and the jump from xterm.c!).
11861
cd265ca6
MR
118622008-10-23 Martin Rudalics <rudalics@gmx.at>
11863
11864 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
11865 Reword doc-string.
f5385255 11866 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 11867
472a4dc9
JB
118682008-10-23 Juanma Barranquero <lekktu@gmail.com>
11869
11870 * character.c (syms_of_character) <script-representative-chars>:
11871 <unicode-category-table>: Doc fixes.
11872
159bd5a2
NF
118732008-10-23 Noah Friedman <friedman@splode.com>
11874
11875 * coding.c (make_conversion_work_buffer): Check that
11876 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
11877 Fget_buffer_create.
11878
49f9c344
KH
118792008-10-23 Kenichi Handa <handa@m17n.org>
11880
11881 * font.c (font_add_log): Check the values of extra properties.
11882
12bb3111
MR
118832008-10-22 Martin Rudalics <rudalics@gmx.at>
11884
11885 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11886 Reword doc-string.
11887 (Fset_window_parameter): Use NILP.
11888 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 11889 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 11890
bbeb4e99
JB
118912008-10-22 Juanma Barranquero <lekktu@gmail.com>
11892
11893 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
11894
118952008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
11896
11897 * nsfns.m (ns_appkit_version): New function.
11898 (x-server-version): Use it.
11899 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
11900 (x-server-vendor): Don't check_ns().
11901
11902 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
11903
a9b555d3
JB
119042008-10-22 Juanma Barranquero <lekktu@gmail.com>
11905
11906 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
11907 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
11908
4626499f
KH
119092008-10-22 Kenichi Handa <handa@m17n.org>
11910
e3681952
KH
11911 * syntax.c (scan_words): Call word_boundary_p instead of comparing
11912 scripts.
11913
4626499f
KH
11914 * category.c (word_boundary_p): Check scripts instead of charset.
11915 Handle nil value in word-separating-categories and
11916 word-combining-categories.
11917 (syms_of_category): Fix docstrings of word-separating-categories
11918 and word-combining-categories.
11919
1560f91a
EZ
119202008-10-21 Eli Zaretskii <eliz@gnu.org>
11921
11922 * coding.c (Fencode_coding_region, Fdecode_coding_region)
11923 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
11924
f4668441
MR
119252008-10-21 Martin Rudalics <rudalics@gmx.at>
11926
11927 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
11928 Rename arg "buffer" to "buffer_or_name".
11929 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
11930 it optional.
11931 (no_switch_window): Remove since the return value is not used.
a9b555d3 11932 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
11933 Consider window as dedicated when Fwindow_dedicated_p returns a
11934 non-nil value.
11935 * lisp.h: Remove prototype for no_switch_window.
11936
fd75ddb2
JD
119372008-10-21 Jan Djärv <jan.h.d@swipnet.se>
11938
11939 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 11940 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 11941
07295713
KH
119422008-10-21 Kenichi Handa <handa@m17n.org>
11943
11944 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
11945 check Vlatin_extra_code_table.
11946
712adc82
EZ
119472008-10-20 Eli Zaretskii <eliz@gnu.org>
11948
11949 * fileio.c (Fset_file_modes): Doc fix.
11950
f549eb0b
MA
119512008-10-19 Michael Albinus <michael.albinus@gmx.de>
11952
11953 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
11954 in arrays.
11955
aac0c6e3
MR
119562008-10-19 Martin Rudalics <rudalics@gmx.at>
11957
11958 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11959 Mention kill-buffer in doc-string.
11960 (Fset_window_buffer): Reinsert tem check removed in last commit.
11961 (Fenlarge_window, Fshrink_window): Have argument names and
11962 doc-string follow Elisp manual more closely.
11963
119642008-10-18 Eli Zaretskii <eliz@gnu.org>
11965
11966 * fileio.c (Fset_file_modes): Doc fix.
11967
119682008-10-18 Martin Rudalics <rudalics@gmx.at>
11969
11970 * window.c (Fwindow_width, Fset_window_start)
11971 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
11972 (Fdelete_windows_on, Freplace_buffer_in_windows):
11973 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
11974 (Fwindow_dedicated_p): Make window argument optional.
11975 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
11976 (Fset_window_buffer): Respect any non-nil dedicated value for
11977 window. Rename "buffer" argument to "buffer_or_name".
11978
119792008-10-18 Ulrich Mueller <ulm@gentoo.org>
11980
11981 * m/sh3.h: New file, machine description for SuperH.
11982
119832008-10-17 Martin Rudalics <rudalics@gmx.at>
11984
11985 * window.c (Fsplit_window): Rename arg horflag to horizontal.
11986
119872008-10-17 Kenichi Handa <handa@m17n.org>
11988
11989 * ftfont.c (ftfont_otf_features): Fix indexing
11990 gsub_gpos->FeatureList.Feature. Check the validity of indices.
11991
119922008-10-16 Magnus Henoch <mange@freemail.hu>
11993
11994 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
11995 (Fdbus_call_method_asynchronously): Ditto.
11996 This change makes C-h f display the argument list.
11997
119982008-10-16 Chong Yidong <cyd@stupidchicken.com>
11999
12000 * fileio.c (Fexpand_file_name): Doc fix.
12001
12002 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
12003 of :foreground and :background equivalent to unspecified (20.x
12004 compatibility).
12005
120062008-10-15 Eli Zaretskii <eliz@gnu.org>
12007
12008 * buffer.c (syms_of_buffer): Doc fix.
12009
120102008-10-14 Kenichi Handa <handa@m17n.org>
12011
12012 * font.c (font_clear_prop): When clearing font width, clear the
12013 average width field too.
12014
120152008-10-12 Andreas Schwab <schwab@suse.de>
12016
12017 * ftfont.c (ftfont_shape_by_flt): Make static.
12018 * ftfont.h (ftfont_shape_by_flt): Don't declare.
12019
12020 * font.c: Don't include <m17n-flt.h>.
12021
120222008-10-10 Eli Zaretskii <eliz@gnu.org>
12023
12024 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
12025
120262008-10-09 Eli Zaretskii <eliz@gnu.org>
12027
12028 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
12029 away code.
12030
120312008-10-09 Chong Yidong <cyd@stupidchicken.com>
12032
12033 * dispnew.c (update_text_area): Avoid looping due to large glyph
12034 overhangs (bug#1070).
12035
120362008-10-09 Kenichi Handa <handa@m17n.org>
12037
12038 * fontset.c (face_for_char): If face->fontset is negative, just
12039 return ascii_face.
12040
f5385255
SM
12041 * font.c (font_delete_unmatched): Fix previous change.
12042 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
12043
120442008-10-09 Martin Rudalics <rudalics@gmx.at>
12045
12046 * frame.c (Fraise_frame): On text-only terminals select frame in
12047 order to make it visible. (Bug#1061)
12048
120492008-10-08 Chong Yidong <cyd@stupidchicken.com>
12050
12051 * fontset.c (fontset_find_font): Check frame validity.
12052
120532008-10-07 Chong Yidong <cyd@stupidchicken.com>
12054
a9b555d3 12055 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
12056 (xg_display_close): Allow Emacs to close all displays (bug#985).
12057
120582008-10-06 Andreas Schwab <schwab@suse.de>
12059
f5385255 12060 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
12061
120622008-10-06 Chong Yidong <cyd@stupidchicken.com>
12063
f5385255 12064 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 12065
a9b555d3 12066 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
12067
12068 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
12069 during initialization.
12070
120712008-10-04 Eli Zaretskii <eliz@gnu.org>
12072
12073 * xdisp.c (redisplay_internal): If frame switched, redisplay the
12074 whole thing on MSDOS frames as well as on a TTY.
12075
12076 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
12077 well as for TTY.
12078 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
12079 well as on a TTY.
12080
12081 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
12082 as well as for TTY.
12083
12084 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
12085
12086 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
12087 MSDOS frames as well.
12088
120892008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12090
12091 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
12092 correct arguments.
b71ac3dd 12093 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
12094
120952008-10-03 Glenn Morris <rgm@gnu.org>
12096
12097 * emacs.c (USAGE1): Add --daemon.
12098
120992008-10-02 Eli Zaretskii <eliz@gnu.org>
12100
12101 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
12102 100, so it's in percents as advertised.
12103
121042008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12105
12106 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
12107 (ns_output.current_cursor, ns_output.desired_cursor)
12108 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
12109 (FRAME_NEW_CURSOR_COLOR): Remove.
12110
12111 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 12112 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
12113 enumeration (HOLLOW_BOX_CURSOR, etc.).
12114
12115 * nsterm.m (ns_frame_rehighlight): Remove commented code.
12116 (draw_window_cursor): Simplify code.
f5385255
SM
12117 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
12118 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 12119 updates manually.
a9b555d3
JB
12120 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
12121 Use core Emacs cursor types.
aac0c6e3 12122
b8ff72fa 12123 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
12124
121252008-10-02 Martin Rudalics <rudalics@gmx.at>
12126
12127 * process.c (Faccept_process_output): Fix doc-string.
12128
121292008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
12130
12131 * gmalloc.c (__sbrk): Also define for uClibc.
12132
12133 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
12134 for uClibc.
12135
121362008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12137
12138 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
12139 styles.
12140 (nsfont_open): Reenable the cache.
12141
121422008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12143
12144 * font.c (font_matching_entity): Reflect ATTRS in font selection.
12145 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
12146
121472008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
12148
12149 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
12150 a suspended terminal.
12151
121522008-09-30 Michael Albinus <michael.albinus@gmx.de>
12153
12154 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
12155
121562008-09-30 Eli Zaretskii <eliz@gnu.org>
12157
12158 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
12159
121602008-09-30 Chong Yidong <cyd@stupidchicken.com>
12161
12162 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
12163 in a continued line coincides with a line beginning.
12164
121652008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
12166
12167 * nsfont.m (nsfont_trait_distance): Fix bug.
12168 (nsfont_list): Return a list rather than a vector (syncs with Handa
12169 changes of 2008-05-14).
12170 (nsfont_open): Improve logging.
12171
121722008-09-29 Andreas Schwab <schwab@suse.de>
12173
12174 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
12175
121762008-09-28 Martin Rudalics <rudalics@gmx.at>
12177
12178 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
12179 name as char-resolve-modifiers.
12180 Reported by: Markus Triska <markus.triska@gmx.at>
12181
121822008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
12183
12184 * dispnew.c (init_display): Return earlier when running as a daemon.
12185
121862008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12187
12188 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
12189
121902008-09-27 Eli Zaretskii <eliz@gnu.org>
12191
12192 * composite.c (Fcomposition_get_gstring)
12193 (Fcompose_region_internal, Fcompose_string_internal)
12194 (Ffind_composition_internal): Doc fix.
12195 (syms_of_composite) <compose-chars-after-function>: Doc fix.
12196 (syms_of_composite) <auto-composition-function>: Doc fix.
12197 (syms_of_composite) <composition-function-table>: Doc fix.
12198
121992008-09-25 Chong Yidong <cyd@stupidchicken.com>
12200
12201 * search.c (wordify): New argument for lax word-ends.
12202 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
12203
122042008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
12205
12206 * lisp.h (is_daemon): Declare.
12207 * dispnew.c (init_display): Do not try to initialize the terminal
12208 when running as a daemon.
12209
122102008-09-22 Chong Yidong <cyd@stupidchicken.com>
12211
12212 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
12213 x_display_pixel_height.
12214
122152008-09-22 Martin Rudalics <rudalics@gmx.at>
12216
12217 * undo.c (record_point): Don't call Fundo_boundary for first
12218 change. (Bug#731)
12219
122202008-09-22 Juanma Barranquero <lekktu@gmail.com>
12221
12222 * emacs.c (Fdaemonp): Doc fix.
12223
122242008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
12225
12226 * emacs.c (main): Place #ifdef in the proper place.
12227
122282008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
12229
12230 * emacs.c (standard_args): Add --daemon.
12231 (main): Disconnect from the terminal when --daemon is passed.
12232 (is_daemon): New variable.
12233 (Fdaemonp): New function.
12234 (syms_of_emacs): Defsubr it.
12235
122362008-09-20 Chong Yidong <cyd@stupidchicken.com>
12237
12238 * xdisp.c (get_next_display_element): Handle string display
12239 correctly when checking for the end of a box run.
12240
122412008-09-20 Glenn Morris <rgm@gnu.org>
12242
12243 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
12244 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
12245 (Frename_file): Avoid copying to trash if a rename involves
12246 a delete. (Bug#964).
12247
122482008-09-20 Eli Zaretskii <eliz@gnu.org>
12249
12250 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
12251 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
12252 frames as well as termcap frames.
12253 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
12254 get_named_tty.
12255
122562008-09-19 Eli Zaretskii <eliz@gnu.org>
12257
12258 * process.c (procfs_system_process_attributes): Fix cmdline in
12259 case /proc/PID/cmdline is empty.
12260
12261 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
12262 x_display_pixel_height.
12263
122642008-09-19 Juanma Barranquero <lekktu@gmail.com>
12265
12266 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
12267
12268 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
12269 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
12270
122712008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
12272
12273 * dispextern.h (struct it): Move line_wrap away from the middle of
12274 bitfields. Move voffset in struct iterator_stack_entry after the
12275 bitfields. Move tab_width near after another short.
12276
122772008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
12278
12279 * frame.h (struct frame): Move alpha from the middle of bitfields.
12280
12281 * window.h (struct window): Move frozen_window_start_p after the
12282 rest of the bitfields to reduce padding.
12283
122842008-09-18 Chong Yidong <cyd@stupidchicken.com>
12285
12286 * xterm.h (x_display_info): Remove `height' and `width' members.
12287
12288 * nsterm.h (ns_display_info): Remove `height' and `width' members.
12289
12290 * w32term.h (w32_display_info): Remove `height', `width',
12291 `height_in', and `width_in' members.
12292
b8ff72fa
SM
12293 * xterm.c (x_display_pixel_height, x_display_pixel_width):
12294 New functions.
aac0c6e3
MR
12295 (x_calc_absolute_position): Use them.
12296 (x_term_init): Omit removed `height' and `width' members.
12297
b8ff72fa
SM
12298 * w32term.c (x_display_pixel_height, x_display_pixel_width):
12299 New functions.
aac0c6e3
MR
12300 (w32_read_socket, x_calc_absolute_position): Use them.
12301 (w32_initialize_display_info, w32_term_init): Omit removed members
12302 of w32_display_info.
12303
b8ff72fa
SM
12304 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
12305 New functions.
12306 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 12307
b8ff72fa
SM
12308 * xterm.c (x_display_pixel_height, x_display_pixel_width):
12309 New functions.
aac0c6e3
MR
12310 (x_calc_absolute_position): Use them.
12311 (x_term_init): Omit removed `height' and `width' members.
12312
12313 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
12314 (compute_tip_xy):
12315 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
12316 * xmenu.c (menu_position_func): Use x_display_pixel_height and
12317 x_display_pixel_width.
12318
123192008-09-18 Kenichi Handa <handa@m17n.org>
12320
12321 * composite.c (fill_gstring_header): Don't check FROM and TO here.
12322 (composition_compute_stop_pos): Fix handling of static composition.
12323 (Fcomposition_get_gstring): Check FROM and TO at first.
12324
123252008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
12326
46e722a9 12327 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
12328 mixup (YAILOM).
12329
123302008-09-17 Chong Yidong <cyd@stupidchicken.com>
12331
12332 * indent.c (Fvertical_motion): Use position reported by iterator
12333 instead of PT for determining screen motion (bug#943).
12334
123352008-09-17 Romain Francoise <romain@orebokech.com>
12336
12337 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
12338
123392008-09-17 Kenichi Handa <handa@m17n.org>
12340
12341 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
12342
12343 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
12344 if necessary.
12345
123462008-09-16 Kenichi Handa <handa@m17n.org>
12347
12348 * coding.c (make_conversion_work_buffer): Avoid calling
12349 Fget_buffer_create if it is not necessary.
12350
123512008-09-15 Martin Rudalics <rudalics@gmx.at>
12352
12353 * window.c (Fselect_window): Don't update window_select_count and
12354 use_time when norecord is not nil.
12355
123562008-09-14 Kenichi Handa <handa@m17n.org>
12357
12358 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
12359 specpdl_ptr.
12360
123612008-09-12 Kenichi Handa <handa@m17n.org>
12362
12363 * indent.c (scan_for_column): Don't handle automatic composition
12364 if the current buffer is not associated with a window.
12365
12366 * composite.c (composition_reseat_it): If the current buffer is
12367 not associated with a window, ignore the automatic composition.
12368 (find_automatic_composition): Likewise.
12369
123702008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12371
12372 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
12373 (Fgpm_mouse_stop): Use it.
12374 * termhooks.h (close_gpm): Declare.
12375 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
12376 connection if Gpm_GetEvent fails.
12377
12378 * window.c (set_window_buffer): Always preserve current-buffer.
12379
123802008-09-12 Glenn Morris <rgm@gnu.org>
12381
12382 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
12383
123842008-09-11 Glenn Morris <rgm@gnu.org>
12385
12386 * charset.c (charset-map-path): Doc fix.
12387
123882008-09-10 Kenichi Handa <handa@m17n.org>
12389
12390 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
12391
12392 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
12393 compose a grapheme cluster with the preceding base glyph.
12394
12395 * composite.c (composition_compute_stop_pos): Fix previous change.
12396 Reset cmp_it->id to -1 at first.
12397
123982008-09-10 Glenn Morris <rgm@gnu.org>
12399
12400 * Makefile.in (character.o, chartab.o): Fix config.h typo.
12401
124022008-09-09 Chong Yidong <cyd@stupidchicken.com>
12403
12404 * keyboard.c (read_key_sequence): Reapply translation maps when
12405 switching keyboards.
12406
124072008-09-09 Kenichi Handa <handa@m17n.org>
12408
12409 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
12410 characters.
12411
12412 * composite.c (FORWARD_CHAR): Fix calculation
12413 of (POSITION).pos_byte.
12414 (composition_compute_stop_pos): Limit the search of composition to
12415 at most 500 characters ahead. If we reach the limit or find a
12416 newline, set cmp_it->ch to -2 and return 0.
12417 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
12418
124192008-09-08 Kenichi Handa <handa@m17n.org>
12420
12421 * indent.c (Fvertical_motion): Be sure to set
12422 it_overshoot_expected if it.cmp_it.id is non-negative.
12423
124242008-09-07 Andreas Schwab <schwab@suse.de>
12425
12426 * callproc.c (Fcall_process): Don't hold references to string data
12427 across garbage collection. Move initialisation of new_argv down
12428 to avoid compiler bug.
12429
124302008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12431
12432 * process.c (Fsystem_process_attributes): Doc fix.
12433
124342008-09-07 Chong Yidong <cyd@stupidchicken.com>
12435
12436 * callproc.c (Fcall_process): Canonicalize current directory name.
12437
12438 * xdisp.c (move_it_to): When moving by vpos, ensure that the
12439 iterator advances to the next line if the current line ends in a
12440 continued tab.
12441
124422008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
12443
12444 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
12445 member to point to cmp_from.
12446
12447 * xdisp.c: Doc fix for references to gidx data member.
12448
124492008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
12450
12451 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
12452
124532008-09-07 Kenichi Handa <handa@m17n.org>
12454
12455 * composite.c (FORWARD_CHAR): Check STOP after
12456 incrementing (POSITION).pos.
12457
124582008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12459
12460 * process.c (Fsystem_process_attributes): Doc fix.
12461
124622008-09-06 Chong Yidong <cyd@stupidchicken.com>
12463
12464 * keyboard.c (Ftop_level): Doc fix.
12465
124662008-09-06 Eli Zaretskii <eliz@gnu.org>
12467
12468 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
12469 minibuffer, don't let lower part of menu invade the echo area.
12470
12471 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
12472 "char *q" to access menu text and advance through it. Revert the
12473 change that displayed ">" instead of ASCII character 0x10.
12474
124752008-09-05 Eli Zaretskii <eliz@gnu.org>
12476
12477 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
12478 toggle boxes and radio buttons on MS-DOS as well.
12479
124802008-09-05 Kenichi Handa <handa@m17n.org>
12481
12482 * composite.c (autocmp_chars): Check lookback count.
12483 (composition_compute_stop_pos): Set cmp_it->lookback.
12484 (composition_reseat_it): Check lookback count.
12485 (struct position_record): New struct.
12486 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
12487 (find_automatic_composition): New function.
12488 (composition_adjust_point): Use find_automatic_composition.
12489
12490 * dispextern.h (struct composition_it): New member lookback.
12491
124922008-09-02 Chong Yidong <cyd@stupidchicken.com>
12493
12494 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
12495 if moving by a single line.
12496
124972008-09-02 Andreas Schwab <schwab@suse.de>
12498
12499 * xterm.c (x_delete_display): Fix merge error.
12500
12501 * fileio.c (Fexpand_file_name): Remove unused variables.
12502
125032008-09-02 Eli Zaretskii <eliz@gnu.org>
12504
12505 * fileio.c (Fexpand_file_name): Copy argument `name' into local
12506 storage on all platforms, not just on DOS_NT.
12507
125082008-09-02 Jason Rumney <jasonr@gnu.org>
12509
b8ff72fa
SM
12510 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
12511 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
12512
125132008-09-01 Chong Yidong <cyd@stupidchicken.com>
12514
12515 * xfaces.c (Finternal_set_alternative_font_family_alist)
12516 (Finternal_set_alternative_font_registry_alist): Properly copy
12517 entire alist structure.
12518
125192008-09-01 Kenichi Handa <handa@m17n.org>
12520
d66c0241 12521 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 12522 representative chars of the script is a vector.
d66c0241
JB
12523 (ftfont_list): Handle the case where the representative chars of
12524 the script is a vector.
aac0c6e3
MR
12525
12526 * character.c (syms_of_character): Docstring of
12527 script-representative-chars fixed.
12528
125292008-08-31 Eli Zaretskii <eliz@gnu.org>
12530
12531 * msdos.c (BUILD_CHAR_GLYPH): New macro.
12532 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
12533 the menu. Allocate larger buffer for `text', to account for
12534 possible ^C characters.
12535
125362008-08-31 Martin Rudalics <rudalics@gmx.at>
12537
12538 * xdisp.c (prepare_menu_bars): Don't call
12539 Vwindow_size_change_functions with arg Qt.
12540
125412008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
12542
12543 * font.h (font_range):
12544 * fileio.c (report_file_error):
46e722a9
SM
12545 * composite.c (composition_update_it): Yet another int/Lisp_Object
12546 mixup (YAILOM).
aac0c6e3
MR
12547
125482008-08-30 Glenn Morris <rgm@gnu.org>
12549
12550 * data.c (Fmake_variable_frame_local): Doc fix.
12551
12552 * frame.c (Fmodify_frame_parameters): Doc fix.
12553
125542008-08-30 Eli Zaretskii <eliz@gnu.org>
12555
12556 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
12557 needed by GetTokenInformation.
12558 (w32_system_process_attributes): Check return values of all system
12559 APIs.
12560
12561 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
12562 only when the state changes.
12563 (IT_update_begin, IT_update_end): Add termscript trace.
12564
12565 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
12566 clipboard is unavailable. Set dst to NULL if it doesn't point to
12567 malloc'ed data.
12568 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
12569 passing random values to xfree.
12570
12571 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 12572 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
12573
125742008-08-29 Jason Rumney <jasonr@gnu.org>
12575
12576 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
12577
125782008-08-29 Eli Zaretskii <eliz@gnu.org>
12579
12580 * composite.c (fill_gstring_body): Avoid compiler warnings.
12581
12582 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
12583 LGLYPH_SET_CODE to avoid compiler warnings.
12584
2ae37cf0 12585 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
12586
12587 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
12588
12589 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
12590 LGLYPH_SET_CODE.
12591
125922008-08-29 Kenichi Handa <handa@m17n.org>
12593
12594 * fileio.c (report_file_error): Don't downcase the first character
12595 of errstring if it is still unibyte.
12596
125972008-08-29 Kenichi Handa <handa@m17n.org>
12598
12599 These changes are to re-implement the automatic composition so
12600 that it doesn't use text properties.
12601
12602 * Makefile.in (ftfont.o): Depend on composite.h.
12603 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
12604
12605 * character.h (Vunicode_category_table): Extern it.
12606
12607 * character.c (Vunicode_category_table): New variable.
12608 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
12609
12610 * chartab.c (optimize_sub_char_table): Perform more greedy
12611 optimization.
12612
b8ff72fa
SM
12613 * composite.h (enum composition_method):
12614 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
12615 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
12616 (Vcomposition_function_table): Extern it.
12617 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
12618 (composition_gstring_put_cache, composition_gstring_from_id)
12619 (composition_gstring_p, composition_gstring_width)
12620 (composition_compute_stop_pos, composition_reseat_it)
12621 (composition_update_it, composition_adjust_point): Extern them.
12622 (Fcomposition_get_gstring): EXFUN it.
12623
d66c0241 12624 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
12625 (Vcomposition_function_table)
12626 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
12627 (gstring_hash_table, gstring_work, gstring_work_headers):
12628 New variables.
aac0c6e3
MR
12629 (gstring_lookup_cache, composition_gstring_put_cache)
12630 (composition_gstring_from_id, composition_gstring_p)
12631 (composition_gstring_width, fill_gstring_header)
12632 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
12633 (composition_reseat_it, composition_update_it)
b8ff72fa 12634 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
12635 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
12636 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 12637 Defsubr composition_get_gstring.
aac0c6e3
MR
12638
12639 * dispextern.h (struct glyph): New union u.cmp. Delete the member
12640 cmp_id.
12641 (struct glyph_string): Delete the member gidx. New members
12642 cmp_id, cmp_from, and cmp_to.
12643 (enum it_method): Delete GET_FROM_COMPOSITION.
12644 (struct composition_it): New struct.
12645 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
12646 Delete c, len, cmp_id, cmp_len in u.comp.
12647
12648 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 12649 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 12650 (enum lglyph_indices): Likewise.
b8ff72fa 12651 (font_range): Adjust extern.
aac0c6e3
MR
12652 (font_fill_lglyph_metrics): Extern it.
12653
12654 * font.c (QCf): New variable.
12655 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12656 (font_prepare_composition): Delete this function.
12657 (font_range): Type and arguments changed.
12658 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
12659 (font_fill_lglyph_metrics): New function.
b8ff72fa 12660 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 12661 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
12662 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
12663 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
12664
12665 * fontset.h (font_for_char): Extern it.
12666
12667 * fontset.c (font_for_char): New function.
12668
12669 * ftfont.c: Include composite.h.
12670 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 12671 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
12672
12673 * indent.c: Include composite.h and dispextern.h.
12674 (check_composition): Delete this function.
12675 (scan_for_column): Handle composition by
12676 composition_compute_stop_pos, composition_reseat_it, and
12677 composition_update_it.
12678 (compute_motion): Likewise.
12679 (Fvertical_motion): Fix checking of composition.
12680
12681 * keyboard.c (adjust_point_for_property): Check composition by
12682 composition_adjust_point.
12683
b8ff72fa 12684 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
12685 struct glyph_string.
12686
b8ff72fa
SM
12687 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
12688 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
12689 struct glyph.
12690 (produce_composite_glyph): Likewise.
12691
b8ff72fa
SM
12692 * w32term.c (x_draw_composite_glyph_string_foreground):
12693 Adjust for the change of struct glyph_string.
aac0c6e3
MR
12694 (x_draw_glyph_string): Likewise.
12695
12696 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
12697 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12698
12699 * xdisp.c: Include font.h.
12700 (it_props): Delete the entry for Qauto_composed.
12701 (init_iterator): Initialize it->cmp_it.id to -1.
12702 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 12703 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
12704 (handle_auto_composed_prop): Delete it.
12705 (handle_composition_prop): Handle only static composition.
12706 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
12707 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 12708 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
12709 (pop_it): Likewise.
12710 (get_next_element): Delete next_element_from_composition.
12711 (CHAR_COMPOSED_P): New macro.
12712 (get_next_display_element): For automatic composition, get a face
12713 from the font in the glyph-string.
12714 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 12715 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
12716 (next_element_from_string): Check if the character at the current
12717 position is composed by CHAR_COMPOSED_P.
12718 (next_element_from_buffer): Likewise.
d66c0241
JB
12719 (next_element_from_composition): Adjust for the change of struct it.
12720 Update it->cmp_it.
b8ff72fa
SM
12721 (dump_glyph): Adjust for the change of struct glyph.
12722 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
12723 it and struct glyph. Don't handle automatic composition here.
12724 (fill_gstring_glyph_string): New function.
12725 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 12726 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
12727 (BUILD_GSTRING_GLYPH_STRING): New macro.
12728 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
12729 automatic composition.
b8ff72fa 12730 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 12731 struct glyph.
b8ff72fa 12732 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 12733
b8ff72fa 12734 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
12735 the change of struct glyph_string.
12736 (x_draw_glyph_string): Likewise.
12737
127382008-08-29 Glenn Morris <rgm@gnu.org>
12739
12740 * buffer.c (word-wrap): Doc fix.
12741 * xdisp.c (truncate-partial-width-windows): Doc fix.
12742 Increase default to 50.
12743
127442008-08-29 Chong Yidong <cyd@stupidchicken.com>
12745
12746 * xdisp.c (update_tool_bar_unwind): New function.
12747 (update_tool_bar): Temporarily set selected frame before building
12748 tool-bar items.
12749
127502008-08-28 Michael Albinus <michael.albinus@gmx.de>
12751
12752 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
12753 snprintf, respectively.
12754 (xd_append_arg): Convert strings with Fstring_make_unibyte.
12755
127562008-08-28 Chong Yidong <cyd@stupidchicken.com>
12757
12758 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
12759 LDFLAGS to GNUstep CC invocation.
12760
127612008-08-27 Chong Yidong <cyd@stupidchicken.com>
12762
12763 * indent.c (Fvertical_motion): Revert last change. Handle the
12764 general case where we are moving forward, and PT spans multiple
12765 screen lines.
12766
12767 * eval.c (find_handler_clause): Temporarily increase
12768 max-lisp-eval-depth while printing the backtrace buffer, to
12769 guarantee that help-mode code can run.
12770
127712008-08-27 Eli Zaretskii <eliz@gnu.org>
12772
12773 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
12774 colors under -rv.
12775 (IT_set_frame_parameters): Don't swap foreground and background
12776 colors if `(reverse . t)' is present in the frame properties.
12777 (internal_terminal_init): Call init_frame_faces only for the
12778 initial frame.
12779
127802008-08-27 Andreas Schwab <schwab@suse.de>
12781
12782 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
12783
127842008-08-27 Andreas Schwab <schwab@suse.de>
12785
12786 * search.c (search_buffer): Set char_base to zero only at the end.
12787
127882008-08-27 Kenichi Handa <handa@m17n.org>
12789
b8ff72fa 12790 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
12791
127922008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
12793
12794 * xterm.c (x_term_init): Temporarily hide the partially
12795 initialized terminal while calling vendor-specific-keysyms.
12796
127972008-08-26 Eli Zaretskii <eliz@gnu.org>
12798
12799 * msdos.c (internal_terminal_init): Most initializations done only
12800 once, especially initial_screen_colors[] and termscript open.
12801
128022008-08-26 Chong Yidong <cyd@stupidchicken.com>
12803
12804 * eval.c (Fcondition_case): Doc fix.
12805
12806 * widgetprv.h (EmacsFramePart): Change font member to the new font
12807 struct.
12808
12809 * widget.c: Include character.h and font.h for XSETFONT.
12810 (setup_frame_gcs): Compute X font id from font struct, just once.
12811
128122008-08-26 Eli Zaretskii <eliz@gnu.org>
12813
12814 * term.c (get_named_tty): Fix last change.
12815
128162008-08-26 Chong Yidong <cyd@stupidchicken.com>
12817
12818 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 12819 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
12820
128212008-08-25 Eli Zaretskii <eliz@gnu.org>
12822
12823 * frame.c (do_switch_frame): Mark previously displayed frame as
12824 obscured for FRAME_MSDOS_P frames as well.
12825
128262008-08-24 Eli Zaretskii <eliz@gnu.org>
12827
12828 * frame.c (make_terminal_frame): Initialize f->terminal,
12829 f->terminal->reference_count, and scroll bars on MS-DOS as well.
12830 Set the top frame to newly created frame.
12831 (Fmake_terminal_frame): Reuse the_only_display_info.
12832
12833 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
12834 estimating available memory.
12835
b97439ce 128362008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
12837
12838 * nsterm.m (ns_draw_window_cursor): Don't call
12839 NSDisableScreenUpdates and NSEnableScreenUpdates on
12840 non-NS_IMPL_COCOA systems.
12841
128422008-08-23 Andreas Schwab <schwab@suse.de>
12843
12844 * process.c (procfs_system_process_attributes): Fix use of
12845 uninitialized variables.
12846
128472008-08-23 Eli Zaretskii <eliz@gnu.org>
12848
12849 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
12850
12851 * dispnew.c (init_display): Remove MS-DOS specific conditions for
12852 calling tty-set-up-initial-frame-faces.
12853
b8ff72fa
SM
12854 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
12855 Allow MSDOS frames along with X frames.
aac0c6e3
MR
12856
12857 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
12858 addition to output_termcap.
12859
12860 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
12861
12862 * termchar.h (FRAME_TTY): Support output_msdos_raw.
12863 (struct tty_display_info) [MSDOS]: Add fields related to mouse
12864 highlight.
12865
12866 * process.c [!subprocesses]: Define QCname.
12867 (syms_of_process): Intern and staticpro it.
12868
12869 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
12870 Adjust for changes in encoding/decoding routines.
12871 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
12872 encode_coding and decode_coding.
12873
b8ff72fa 12874 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
12875
12876 * dosfns.c: Include frame.h before termhooks.h.
12877 (dos_cleanup): Use CURTTY ()->termscript instead of a global
12878 variable termscript.
12879
12880 * s/msdos.h (USER_FULL_NAME): Define.
12881 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
12882
12883 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
12884 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
12885 pw->pw_gecos.
12886
12887 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
12888 SELECTED_FRAME as additional (1st) argument.
12889 (tty_read_avail_input): Handle output_msdos_raw in
12890 addition to output_termcap.
12891
12892 * msdos.c: Include frame.h before termhooks.h.
12893 (mouse_on, mouse_off, mouse_moveto, mouse_init)
12894 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
12895 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
12896 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
12897 (IT_set_terminal_modes, IT_reset_terminal_modes)
12898 (IT_set_frame_parameters): Use tty->termscript instead of a global
12899 variable termscript.
12900 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
12901 global variable terminal_coding. Don't refer to
12902 Vnonascii_translation_table.
12903 (internal_terminal_init): Set Vwindow_system in current_kboard.
12904 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
12905 Announce date and time of session start, if termscript is open.
12906 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
12907 term.c:init_tty). Open termscript only of not already open.
12908 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
12909 here instead of dos_ttraw. Don't initialize display if this is an
12910 initial tty. Don't set FRAME_FONT.
12911 (Vwindow_system_version): Bump to 23.
12912 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
12913 is available, set up mouse_position_hook.
12914 (dos_ttraw, IT_set_terminal_modes): If called with initial
12915 terminal, do nothing.
12916 (IT_set_frame_parameters): Handle the Qtty_type frame
12917 parameter by calling internal_terminal_init.
12918 (dos_set_window_size, show_mouse_face)
12919 (clear_mouse_face, IT_note_mode_line_highlight)
12920 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
12921 (dos_rawgetc): Use tty_display_info instead of x_display_info.
12922 (initialize_msdos_display): New function.
12923 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
12924 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
12925 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
12926 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 12927 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
12928 (request_sigio, unrequest_sigio): Don't define, now defined on
12929 sysdep.c.
12930 (IT_write_glyphs): Rewrite to use encode_terminal_code.
12931
12932 * term.c [MSDOS]: Include msdos.h.
12933 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
12934 conditional to DOS_NT. Allow only one call to this function in a
12935 session. Don't allocate a new struct tty_display_info; instead,
12936 reuse the_only_display_info. Call get_tty_size to get screen
12937 dimensions. Call init_baud_rate to set bad_rate.
12938 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
12939 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 12940 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
12941 (get_tty_terminal, get_named_tty, Ftty_type)
12942 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
12943 output_termcap.
b8ff72fa
SM
12944 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
12945 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 12946 only when subprocesses are supported.
aac0c6e3
MR
12947
12948 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
12949 f->output_data.x.
12950 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
12951 terminal devices.
12952
5582fbc7 12953 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
12954 x_output.
12955 (FRAME_FONT): Use output_data.tty.
12956 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
12957 (struct x_display_info): Rename from display_info. Update all users in
12958 msdos.c.
aac0c6e3 12959 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 12960 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
12961 (dos_ttraw): Update prototype.
12962
12963 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
12964 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
12965
129662008-08-23 Jason Rumney <jasonr@gnu.org>
12967
12968 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
12969 (fn_TIFFSetDirectory): New library function used.
12970 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
12971 (tiff_load): Use :index to select among multiple images. Set count
12972 property when multiple images exist.
12973 (gif_format): Use :index, not :image.
12974
129752008-08-23 Chong Yidong <cyd@stupidchicken.com>
12976
12977 * xdisp.c (try_scrolling): Check INT_MAX instead of
12978 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
12979 to obtain INT_MAX.
12980
129812008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
12982
12983 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
12984
129852008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
12986
12987 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
12988 GNUstep library location.
12989
129902008-08-21 Chong Yidong <cyd@stupidchicken.com>
12991
12992 * xfaces.c (x_update_menu_appearance): Check validity of menu font
12993 before using it.
12994
12995 * puresize.h (BASE_PURESIZE): Increase to 1250000.
12996
129972008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12998
12999 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
13000 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
13001 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
13002 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
13003 (EmacsApp-cursor_blink_handler): Remove declaration.
13004 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
13005 match 01 Feb 2008 changes in xterm.c.
13006 (ns_read_socket): Add cast to avoid warning.
13007 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
13008 GNUstep.
13009
130102008-08-20 Chong Yidong <cyd@stupidchicken.com>
13011
13012 * xselect.c (x_get_foreign_selection): Return nil if desired
13013 selection could not be obtained, instead of signalling an error.
13014
130152008-08-20 David Reitter <david.reitter@gmail.com>
13016
13017 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
13018 * nsterm.m: Remove ns-specific code for cursor blinking.
13019 (ns_draw_window_cursor): Clear cursor properly rather than
13020 redrawing the area. Respect width of bar cursors.
13021 These changes enable the use of generic blink-cursor-mode and
13022 generic cursor types in NS and support smooth cursor movements (do
13023 not blink off after command).
13024 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
13025 Nextstep, too.
13026
130272008-08-19 Kenichi Handa <handa@m17n.org>
13028
13029 * font.c (Vfont_log_deferred): New variable.
13030 (font_add_log): Check Vfont_log_deferred.
13031 (font_deferred_log): New function.
13032
13033 * font.h (font_deferred_log): Extern it.
13034
13035 * fontset.c (reorder_font_vector): Use encoding charset of fonts
13036 for sorting.
13037 (face_for_char): Use deferred log.
13038
130392008-08-18 Kenichi Handa <handa@m17n.org>
13040
13041 * fontset.c (face_for_char): Add font log.
13042
13043 * font.c (font_add_log): Add the font properties :script, :lang,
13044 and :otf in the log.
13045
130462008-08-17 Chong Yidong <cyd@stupidchicken.com>
13047
13048 * xdisp.c: Remove dead code.
13049 (handle_invisible_prop, next_overlay_string): Defer call to
13050 setup_for_ellipsis.
13051 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
13052
130532008-08-15 Chong Yidong <cyd@stupidchicken.com>
13054
13055 * xfaces.c (lookup_derived_face): Properly handle possible zero
13056 return value of get_lface_attributes.
13057 (merge_faces): Don't tell lookup_derived_face to signal an error
13058 if face is not found.
13059
13060 * dired.c (Fdirectory_files): Doc fix.
13061
13062 * process.c (make_process): Initialize kill_without_query struct
13063 member.
13064
130652008-08-15 Eli Zaretskii <eliz@gnu.org>
13066
13067 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
13068 Alternative calculation of totphys for Visual Studio 6.
13069
13070 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
13071
13072 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
13073 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
13074 All users changed.
13075 (stat): Only root directory passed to GetDriveType. Allow RAM
13076 disk as well as local fixed disk when w32-get-true-file-attributes
13077 is set to `local'.
13078 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
13079 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
13080 (w32_cached_id, w32_add_to_cache): New functions.
13081 (get_name_and_id): Look account names in the cache before calling
13082 lookup_account_sid.
13083 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
13084 New initialization flags.
13085 (globals_of_w32): Initialize them to zero.
13086 (w32_system_process_attributes): Use w32_cached_id and
13087 w32_add_to_cache.
13088
130892008-08-14 Lawrence Mitchell <wence@gmx.li>
13090
13091 * lread.c (Fread_char, Fread_char_exclusive): If no character
13092 event is read before timeout is reached, return nil, rather than
13093 converting to a number.
13094
130952008-08-14 Chong Yidong <cyd@stupidchicken.com>
13096
13097 * fns.c (use_dialog_box): Doc fix.
13098
13099 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
13100 on OS X.
13101
131022008-08-13 Chong Yidong <cyd@stupidchicken.com>
13103
13104 * frame.c (Qns_parse_geometry): New var.
13105 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
13106
131072008-08-11 Chong Yidong <cyd@stupidchicken.com>
13108
13109 * xdisp.c (x_produce_glyphs): Handle the case when font has no
13110 space character in calculating tabs.
13111
131122008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
13113
13114 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
13115
131162008-08-10 Glenn Morris <rgm@gnu.org>
13117
13118 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
13119 silence gcc "limited range of data type" warnings in some
13120 make_fixnum_or_float calls.
13121
131222008-08-09 Eli Zaretskii <eliz@gnu.org>
13123
13124 * w32.c (w32_system_process_attributes): If the process does not
13125 exist, return nil.
13126
13127 * w32.c: Include thelp32.h, psapi.h and coding.h.
13128 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
13129 declarations.
13130 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
13131 (Process32Next_Proc): New typedefs.
13132 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
13133 (g_b_init_process32_next, g_b_init_open_thread_token)
13134 (g_b_init_impersonate_self, g_b_init_revert_to_self)
13135 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
13136 (g_b_init_get_process_working_set_size)
13137 (g_b_init_global_memory_status_ex): New static variables.
13138 (globals_of_w32): Initialize them.
13139 (create_toolhelp32_snapshot, process32_first, process32_next)
13140 (open_thread_token, impersonate_self, revert_to_self)
13141 (get_process_memory_info, get_process_working_set_size)
13142 (global_memory_status, global_memory_status_ex): New wrapper
13143 functions.
13144 (w32_list_system_processes, w32_system_process_attributes)
13145 (enable_privilege, restore_privilege, ltime, process_times):
13146 New functions.
13147 (convert_time_raw): New function.
13148 (convert_time): Remove conversion of FILETIME into time in 100
13149 nsec units, call convert_time_raw instead.
13150
13151 * process.h (w32_list_system_processes, w32_system_process_attributes):
13152 Add prototypes.
13153 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
13154 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
13155 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
13156 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
13157
13158 * process.c (Fsystem_process_attributes): Doc fix.
13159
131602008-08-08 Chong Yidong <cyd@stupidchicken.com>
13161
13162 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
13163 a continued multi-char glyph; if so, advance to the actual glyph.
13164
131652008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
13166
13167 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
13168
13169 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
13170 (.m.o): Use it.
13171 * config.in: Regenerate.
13172
131732008-08-07 Chong Yidong <cyd@stupidchicken.com>
13174
13175 * xdisp.c (redisplay_window): Revert last change.
13176 (try_window): Check bottom scroll margin too.
13177
131782008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13179
13180 * config.in: Regenerate.
13181
13182 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
13183 -list-load-path-shadows'.
13184 (nsgui.h): Reduce number of things depending on it.
13185
131862008-08-06 Chong Yidong <cyd@stupidchicken.com>
13187
13188 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
13189 instead of window-end which does the wrong thing at eob.
13190 (try_cursor_movement): Minor optimization.
13191 (redisplay_window): If scroll margin is defined, don't assume
13192 window doesn't need scrolling.
13193
131942008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13195
13196 * config.in: Regenerate.
13197
13198 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
13199 (mostlyclean): Don't delete *.d under NS.
13200
13201 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
13202
132032008-08-06 Kenichi Handa <handa@m17n.org>
13204
13205 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
13206
132072008-08-06 Andreas Schwab <schwab@suse.de>
13208
13209 * config.in: Regenerate.
13210
132112008-08-05 Chong Yidong <cyd@stupidchicken.com>
13212
13213 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
13214 forcing a window start.
13215
13216 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
13217 (auto_save_1): Update modtime when auto-save-list-file-name is on.
13218
132192008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13220
13221 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
13222 argument.
13223
132242008-08-05 Juanma Barranquero <lekktu@gmail.com>
13225
13226 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
13227 <scroll-down-aggressively, before-change-functions>:
13228 <after-change-functions>: Reflow docstrings.
13229
132302008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 13231 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
13232
13233 Dock menu customization, based on a patch by Ken Raeburn, plus some
13234 other fixes.
13235 * nsmenu.m (dockMenu): New variable.
13236 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
13237
13238 * nsterm.h (dockMenu): Declare.
13239
13240 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
13241 (ns_term_init): Initialize dockMenu.
13242 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
13243 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
13244 left.
13245
13246 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
13247
132482008-08-04 Chong Yidong <cyd@stupidchicken.com>
13249
13250 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
13251
13252 * config.in: Regenerate.
13253
132542008-08-04 Seiji Zenitani <zenitani@mac.com>
13255
13256 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
13257
132582008-08-04 Chong Yidong <cyd@stupidchicken.com>
13259
13260 * nsterm.h (find_and_call_menu_selection): Fix prototype.
13261
132622008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13263
13264 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
13265
13266 * keyboard.h: Comment an #endif.
13267
13268 * lisp.h (have_menus_p): Adjust comment.
13269
13270 * menu.c (find_and_return_menu_selection): Fix comparison with
13271 client_data.
13272
13273 * nsmenu.m (popup_activated_flag): New variable.
13274 (popup_activated): New function.
13275 (menu-or-popup-active-p): New exported lisp definition.
13276 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
13277 when popup done.
13278 (ns_popup_dialog): Set popup_activated_flag.
13279
13280 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
13281 version for GNUstep (handled by conditional typedef in nsterm.m).
13282 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
13283 in rgb.txt).
13284
13285 * process.c (init_process): Use DARWIN_OS, not DARWIN.
13286
13287 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
13288
13289 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
13290
13291 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
13292 shortcircuit if popup_activated like GTK and X toolkit.
13293
13294 * m/inter386.h: Change DARWIN to DARWIN_OS.
13295
13296 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
13297 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
13298 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
13299 comment on NO_SOCK_SIGIO.
13300
133012008-08-03 Chong Yidong <cyd@stupidchicken.com>
13302
13303 * nsterm.m (windowDidResize): Remove stopModal call.
13304
133052008-08-03 Andreas Schwab <schwab@suse.de>
13306
13307 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
13308 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
13309
133102008-08-02 Chong Yidong <cyd@stupidchicken.com>
13311
13312 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
13313 Don't use uninitialized pointer variable when using getrlimit.
13314
133152008-08-02 Jason Rumney <jasonr@gnu.org>
13316
13317 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
13318
133192008-08-02 Eli Zaretskii <eliz@gnu.org>
13320
13321 * alloc.c (NSTATICS): Bump to 0x640.
13322
13323 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
13324
13325 * lisp.h: Add prototype for directory_files_internal.
13326
13327 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
13328 New functions.
13329 (syms_of_process): Defsubr them. Add initializations for various
13330 Q* symbols used in procfs_system_process_attributes.
13331 (procfs_list_system_processes, procfs_system_process_attributes)
13332 [HAVE_PROCFS]: New functions.
13333 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
13334 (procfs_get_total_memory): New functions.
13335
133362008-08-01 Juanma Barranquero <lekktu@gmail.com>
13337
13338 * xfaces.c (Fx_load_color_file): Fix previous change;
13339 it is #ifdef WINDOWSNT, not WINDOWS_NT.
13340
133412008-08-01 Michael Albinus <michael.albinus@gmx.de>
13342
13343 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
13344
133452008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13346
13347 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
13348
133492008-08-01 Chong Yidong <cyd@stupidchicken.com>
13350
13351 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
13352
13353 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
13354 define NSApplicationDelegateReplySuccess.
13355 (EmacsView -converstationIdentifier): Use long instead of
13356 NSInteger for GNUstep, since it doesn't have NSInteger.
13357
13358 * xmenu.c: Revert last change.
13359
13360 * keyboard.h: Fix last change.
13361
133622008-08-01 Juanma Barranquero <lekktu@gmail.com>
13363
13364 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
13365 on Windows.
13366
133672008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13368
13369 Warning clearing and clean-up in NS port.
13370 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
13371 Add prototypes.
13372 * nsgui.h (FACE_DEFAULT): Remove, unused.
13373 (XGCValues): Change colors to unsigned long.
13374 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
13375 nsterm.m.
13376 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
13377 (ns_list_fonts): Remove, unused.
13378 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
13379 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
13380 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
13381 (nsfont_draw): Compare face colors to 0, not nil.
13382 * nsmenu.m (struct widget_value): Drop unneeded declaration.
13383 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
13384 (-addSubmenuWithTitle:): Use NSMenuItem class.
13385 (ns_popup_menu): Use NO, not NULL, for enabled setting.
13386 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
13387 (ns_clip_to_row): Make gc arg a BOOL.
13388 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
13389 ns_clip_to_row() call.
13390 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
13391 used). Cast FRAME_FONT assignments.
13392 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
13393 (ns_string_to_lispmod): Change arg to const char.
13394 (ns_term_init): Use NSMenuItem class.
13395 (EmacsApp -openFile:): Move to different section of file.
13396 (EmacsApp -application:openFiles:): Don't return a value, call
13397 -replyToOpenOrPrint:.
13398 (EmacsView -keyDown:): Fix up cast.
13399 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
13400 (EmacsView -menuDown:): Cast tag in call to
13401 find_and_call_menu_selection().
13402 (ns_list_fonts): Remove, unused.
13403 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
13404 (ns_fontname_to_xlfd): Make static.
13405 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
13406 Remove prototypes (now in keyboard.h).
13407 (next_menubar_widget_id): Remove, unused.
13408 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
13409 Remove prototypes (now in keyboard.h).
13410 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
13411
134122008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
13413
13414 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
13415 (floatfns.o): Depend on syssignal.h.
13416 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
13417
13418 * systty.h: Fix previous change that removed BSD_TERMIOS.
13419 Add comments to #ifdefs.
13420
134212008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13422
13423 * w32fns.c (w32-load-color-file): Remove.
13424 (x-open-connection): Use renamed Fx_load_color_file.
13425 * xfaces.c (x-load-color-file): Add.
13426 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
13427 Emacs.clr.
13428 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
13429
134302008-07-31 Michael Albinus <michael.albinus@gmx.de>
13431
13432 * dbusbind.c (Fdbus_call_method_asynchronously)
13433 (Fdbus_method_error_internal): New defuns.
13434 (xd_read_message): Handle also reply messages.
13435 (Vdbus_registered_functions_table): Extend docstring.
13436
134372008-07-31 Juanma Barranquero <lekktu@gmail.com>
13438
13439 * keyboard.c (gobble_input): Fix previous change.
13440
134412008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13442
13443 * bitmaps/README:
13444 * xfns.c:
13445 * termcap.c:
13446 * term.c:
13447 * syswait.h:
13448 * systty.h:
13449 * systime.h:
13450 * syssignal.h:
13451 * sysdep.c:
13452 * process.h:
13453 * process.c:
13454 * print.c:
13455 * ndir.h:
13456 * lread.c:
13457 * keyboard.c:
13458 * getpagesize.h:
13459 * floatfns.c:
13460 * fileio.c:
13461 * emacs.c:
13462 * doc.c:
13463 * dispnew.c:
13464 * dired.c:
13465 * data.c:
13466 * callproc.c:
13467 * buffer.c:
13468 * README:
13469 * Makefile.in:
13470 * s/template.h:
13471 * s/msdos.h:
13472 * m/vax.h: Remove VMS support.
13473 * s/vms.h:
13474 * vlimit.h:
13475 * uaf.h:
13476 * temacs.opt:
13477 * param.h:
13478 * ioctl.h: Remove file.
13479
134802008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13481
13482 * s/ms-w32.h (MULTI_KBOARD): Remove.
13483 * xterm.c:
13484 * xselect.c:
13485 * xfns.c:
13486 * window.c:
13487 * w32term.c:
13488 * w32fns.c:
13489 * terminal.c:
13490 * termhooks.h:
13491 * term.c:
13492 * sysdep.c:
13493 * keyboard.h:
13494 * keyboard.c:
13495 * frame.h:
13496 * frame.c:
13497 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
13498 * config.in: Regenerate.
13499
135002008-07-30 Jason Rumney <jasonr@gnu.org>
13501
13502 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
13503
13504 * w32font.c (w32font_encode_char): Leave as unicode if in range.
13505 (w32font_open_internal): Get unicode version of textmetrics.
13506 Don't enable or disable glyph indices here.
13507 (w32font_open): Disable use of glyph indices.
13508
13509 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
13510
135112008-07-30 Chong Yidong <cyd@stupidchicken.com>
13512
13513 * minibuf.c (Vread_buffer_function): Doc fix.
13514
135152008-07-30 John Paul Wallington <jpw@pobox.com>
13516
13517 * minibuf.c (read_buffer_completion_ignore_case): New var.
13518 (Fread_buffer): Use it.
13519
135202008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
13521
13522 * systty.h (sensemode): Remove empty #if. Remove reference to
13523 BSD_TERMIOS, unused.
13524
13525 * sysdep.c: Remove reference to DGUX.
13526 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
13527
13528 * config.in: Regenerate.
13529
135302008-07-30 Jason Rumney <jasonr@gnu.org>
13531
13532 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
13533
135342008-07-29 Jason Rumney <jasonr@gnu.org>
13535
13536 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
13537 is populated.
13538 (uniscribe_encode_char): Always use uniscribe.
13539 Avoid using context if cache is populated.
13540
135412008-07-29 Jan Djärv <jan.h.d@swipnet.se>
13542
13543 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
13544 open menu.
13545
13546 * gtkutil.c (menu_nav_ended): Remove.
13547 (create_menus): Remove signal connect for menu_nav_ended.
13548
135492008-07-28 Chong Yidong <cyd@stupidchicken.com>
13550
13551 * xdisp.c (redisplay_window): Check return value of
13552 compute_window_start_on_continuation_line before forcing a window
13553 start.
13554
135552008-07-28 Jason Rumney <jasonr@gnu.org>
13556
13557 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
13558
13559 * w32term.c (w32_enable_unicode_output, cleartype_active):
13560 Remove obsolete display options.
13561 (x_draw_glyph_string_background): Don't use old cleartype_active
13562 workaround.
13563 (w32_initialize): Remove cleartype_active initialization.
13564 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
13565
135662008-07-28 Andreas Schwab <schwab@suse.de>
13567
13568 * lisp.h (init_weak_hash_tables, syms_of_font)
13569 (xd_read_queued_messages, syms_of_dbusbind): Declare.
13570 (remove_hash_entry): Don't declare.
13571 * eval.c (maybe_call_debugger): Make static and move before use.
13572 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
13573 * xdisp.c: Include "gtkutil.h" if USE_GTK.
13574 * xterm.h (x_set_frame_alpha): Declare.
13575
135762008-07-28 Jan Djärv <jan.h.d@swipnet.se>
13577
13578 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
13579 (create_menus): Connect selection-done to menu_nav_ended.
13580
135812008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13582
13583 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
13584 Set Vx_resource_name to a fallback. Replace read of 'buffered'
13585 parameter with read of 'alpha' one.
13586 (Qns_frame_parameter): Remove.
5582fbc7 13587 * nsselect.m (selection-coding-system)
aac0c6e3
MR
13588 (next-selection-coding-system, Vselection_coding_system)
13589 (Vnext_selection_coding_system): Drop.
13590
135912008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13592
13593 * nsfns.m (do-applescript, do_applescript): Rename to
13594 ns-do-applescript, ns_do_applescript, and move within file.
13595
135962008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
13597
13598 Remove support for Mac Carbon.
13599 * mactoolbox.c:
13600 * macterm.h:
13601 * macterm.c:
13602 * macselect.c:
13603 * macmenu.c:
13604 * macgui.h:
13605 * macfns.c:
13606 * mac.c: Remove file.
13607 * s/darwin.h:
13608 * m/intel386.h:
13609 * xfaces.c:
13610 * xdisp.c:
13611 * window.c:
13612 * tparam.c:
13613 * termhooks.h:
13614 * termcap.c:
13615 * term.c:
13616 * syssignal.h:
13617 * sysselect.h:
13618 * sysdep.c:
13619 * process.c:
13620 * lread.c:
13621 * lisp.h:
13622 * keyboard.c:
13623 * image.c:
13624 * fringe.c:
13625 * frame.h:
13626 * frame.c:
13627 * fontset.c:
13628 * font.h:
13629 * font.c:
13630 * fns.c:
13631 * fileio.c:
13632 * emacs.c:
13633 * dispnew.c:
13634 * dispextern.h:
13635 * config.in:
13636 * atimer.c:
2ae37cf0 13637 * Makefile.in: Remove code for Carbon.
aac0c6e3 13638
f0131492 136392008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
13640
13641 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
13642
136432008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13644
13645 * macterm.h (kCGBitmapByteOrder32Host): New define for
13646 non-universal SDKs.
13647
13648 * image.c (mac_create_cg_image_from_image, image_load_image_io)
13649 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13650
13651 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
13652 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13653
136542008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
13655
13656 * w32inevt.c: Include dispextern.h.
13657
136582008-07-26 Andreas Schwab <schwab@suse.de>
13659
13660 * print.c (print_object): Fix off-by-one in last change.
13661
136622008-07-25 Juanma Barranquero <lekktu@gmail.com>
13663
13664 * term.c (syms_of_term): Don't initialize default_orig_pair,
13665 default_set_foreground and default_set_background on Windows.
13666
136672008-07-25 Jason Rumney <jasonr@gnu.org>
13668
13669 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
13670 ScriptItemize. Clean up return value checking. Remove unused
13671 variables.
13672 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
13673 shaping engine.
13674
13675 * w32font.c (w32font_has_char): Handle the case where we can't
13676 determine the script for a character.
13677
136782008-07-25 Chong Yidong <cyd@stupidchicken.com>
13679
13680 * term.c (syms_of_term): Initialize default_orig_pair,
13681 default_set_foreground, and default_set_background.
13682
13683 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
13684 clash (bug#86).
13685 (getloadavg): Callers changed.
13686
13687 * image.c (svg_load_image): Fix last change.
13688 (svg_load_image): Use rsvg_handle_get_dimensions to check that
13689 image size is valid. Use g_object_unref instead of deprecated
13690 rsvg_handle_free to free rsvg handle.
13691 (x_from_xcolors): Don't initialize pixmap (silence compiler).
13692
136932008-07-25 Jason Rumney <jasonr@gnu.org>
13694
13695 * w32font.c (w32font_encode_char): Encode characters outside BMP as
13696 surrogates before looking up glyph index.
13697 (w32font_text_extents): Encode as surrogates if falling back to
13698 functions that need UTF-16 wide chars.
13699
13700 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
13701 BMP as surrogates before looking up glyph index.
13702
137032008-07-25 Chong Yidong <cyd@stupidchicken.com>
13704
13705 * image.c (svg_load_image): Check for failure in return value of
13706 rsvg_handle_get_pixbuf. Free rsvg handle when done.
13707
137082008-07-25 Jason Rumney <jasonr@gnu.org>
13709
13710 * w32font.c (Fx_select_font): Reverse sense of second arg.
13711
137122008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
13713
13714 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
13715 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
13716
13717 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
13718 (PURESIZE): Use it.
13719
137202008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
13721
13722 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
13723 * m/alpha.h (TEXT_END):
13724 * m/ibmrs6000.h (TEXT_END):
13725 * m/macppc.h (TEXT_END):
13726 * s/darwin.h (TEXT_END):
13727 * s/msdos.h (TEXT_END): Remove, unused.
13728 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
13729 * s/cygwin.h: Remove comment.
13730
13731 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
13732 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
13733 * m/intel386.h (DOT_GLOBAL_START):
13734 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
13735 (USG): Remove, file not used on USG platforms.
13736
13737 * Makefile.in (HAVE_X11): Remove empty #else.
13738
137392008-07-24 Andreas Schwab <schwab@suse.de>
13740
13741 * fileio.c (Finsert_file_contents): Properly adjust undo list
13742 after format conversion.
13743
137442008-07-24 Jan Djärv <jan.h.d@swipnet.se>
13745
13746 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
13747 (menu_nav_ended): Remove.
13748 (create_menus): Remove signal connect for menu_nav_ended.
13749 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
13750 create_menus.
13751 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
13752
137532008-07-23 Jason Rumney <jasonr@gnu.org>
13754
13755 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
13756 with opened font.
13757 (w32font_open): Set font type to gdi.
13758
13759 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
13760
137612008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
13762
13763 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
13764 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
13765 defines it.
13766 * unexec.c (ADDR_CORRECT): Define unconditionally.
13767
13768 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
13769
13770 * unexec.c: Remove code depending on !COFF and USG, the file is
13771 not used for such systems.
13772
13773 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
13774 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
13775 (LD_SWITCH_SYSTEM_1): Remove, update users.
13776
13777 * s/darwin.h (DATA_END):
13778 * m/intel386.h (DATA_END):
13779 * m/ibmrs6000.h (DATA_END):
13780 * m/alpha.h (DATA_END): Remove, unused.
13781
13782 * config.in: Regenerate.
13783 * s/ms-w32.h (subprocesses): Define unconditionally.
13784 * s/template.h (subprocesses): Update comment.
13785 * s/vms.h (subprocesses):
13786 * s/usg5-4.h (subprocesses):
13787 * s/hpux10-20.h (subprocesses):
13788 * s/gnu-linux.h (subprocesses):
13789 * s/cygwin.h (subprocesses):
13790 * s/bsd-common.h (subprocesses):
13791 * s/aix4-2.h (subprocesses):
13792 * s/darwin.h (subprocesses): Do not define, defined by default now.
13793
13794 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
13795 Remove all references.
13796 (temacs): Add GNUstep specific ld flags.
13797
13798 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
13799 similarly to what X does.
13800
138012008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13802
13803 * nsfns.m (x-list-fonts): Remove.
13804 (syms_of_nsfns): Drop the x-list-fonts declaration.
13805 * nsterm.m: Get rid of remaining "//" comments.
13806
138072008-07-22 Chong Yidong <cyd@stupidchicken.com>
13808
13809 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
13810
13811 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
13812 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
13813 (Fns_own_selection_internal, Fx_disown_selection_internal)
13814 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
13815
13816 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
13817 ... */' style of docstrings. Doc fixes.
13818
138192008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13820
13821 * terminfo.c (UP, BC, PC): Undo previous change.
13822
13823 * nsfns.m: Rename ns prefixed functions/variables to the
13824 corresponding x versions. Update references.
13825
138262008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
13827
13828 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
13829
138302008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13831
13832 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
13833 Remove forwarding functions.
13834 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
13835 non-static.
13836 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
13837 non-static.
13838 (ns_frame_parm_handlers): Use the new names.
13839 (syms_of_nsfns): Move to the end of file.
13840
13841 * nsterm.m (syms_of_nsterm): Move to the end of file.
13842
13843 * dispnew.c (init_display): Remove code for X10.
13844
138452008-07-22 Jason Rumney <jasonr@gnu.org>
13846
13847 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
13848 bare drive.
13849
138502008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13851
13852 * nsterm.m (syms_of_nsterm): Remove debugging println.
13853
138542008-07-22 David Reitter <david.reitter@gmail.com>
13855
13856 * nsfns.m (do_applescript, F_do_applescript): NS version of the
13857 Carbon implementation of the same functionality: execute arbitrary
13858 AppleScript code.
13859
138602008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13861
13862 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
13863 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
13864 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
13865 (Fx_display_mm_height, Fx_display_mm_width)
13866 (Fx_display_backing_store, Fx_display_visual_class)
13867 (Fx_display_save_under, Fx_open_connection)
13868 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
13869 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
13870 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13871 (Fx_display_pixel_width, Fx_display_pixel_height)
13872 (Fx_display_usable_bounds, Fx_display_planes)
13873 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
13874 ... */' style of docstrings.
13875
138762008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
13877
13878 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
13879 on this platform.
13880 (mips):
13881 * m/iris4d.h (mips): Do not define.
13882 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
13883
13884 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
13885
13886 * image.c:
13887 * nsfns.m:
13888 * nsselect.m:
13889 * nsterm.h:
13890 * nsterm.m: Rename ns prefixed functions/variables to the
13891 corresponding x versions. Update references.
13892
13893 * m/ibms390x.h (NO_REMAP): Do not undefine.
13894
13895 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
13896
138972008-07-21 Chong Yidong <cyd@stupidchicken.com>
13898
13899 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
13900 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
13901 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
13902 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
13903 (Fns_display_mm_height, Fns_display_mm_width)
13904 (Fns_display_backing_store, Fns_display_visual_class)
13905 (Fns_display_save_under, Fns_open_connection)
13906 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
13907 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
13908 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13909 (Fns_display_pixel_width, Fns_display_pixel_height)
13910 (Fns_display_usable_bounds, Fx_display_planes)
13911 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
13912
139132008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
13914
13915 * print.c (print_object): Check print_depth before searching for
13916 circularities.
13917
139182008-07-21 Michael Albinus <michael.albinus@gmx.de>
13919
13920 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
13921 only sprintf.
13922
139232008-07-21 Kenichi Handa <handa@m17n.org>
13924
13925 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
13926
139272008-07-20 Andreas Schwab <schwab@suse.de>
13928
13929 * syntax.c (find_start_pos, find_start_value)
13930 (find_start_value_byte, find_start_begv, find_defun_start)
13931 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
13932
139332008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13934
13935 * s/sol2-3.h: Insert contents of s/sol2.h.
13936 (LD_SWITCH_SYSTEM): Remove redundant definition.
13937 * s/sol2.h: Remove, unused.
13938
139392008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13940
13941 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
13942
139432008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13944
13945 * Makefile.in (ns_appdir): Fix typo in find command.
13946
139472008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13948
13949 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
13950
13951 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
13952 added not supported anymore.
13953
13954 * s/usg5-4-2.h (LIBS_SYSTEM):
13955 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
13956
13957 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13958 * s/lynxos.h (GETPGRP_NO_ARG):
13959 * s/hpux10-20.h (NO_SIOCTL_H):
13960 * s/gnu.h (GETPGRP_NO_ARG):
13961 * s/gnu-linux.h (NO_SIOCTL_H):
13962 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13963 * s/cygwin.h (GETPGRP_NO_ARG):
13964 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
13965 (C_DEBUG_SWITCH): Remove duplicate definition.
13966
13967 * m/ibms390.h: Remove boilerplate comments.
13968
13969 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
13970
13971 * process.c (HAVE_SERIAL): Consolidate ifdefs.
13972 (wait_reading_process_output): Remove code for SunOS, platform not
13973 supported anymore. Use SOLARIS2 instead of sun.
13974
139752008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13976
13977 * font.c (font_open_by_name): Under NS, default lface height to zero.
13978 (font_open_for_lface): Under NS, set size based on frame fontsize.
13979 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
13980 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
13981
139822008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13983
13984 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
13985 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
13986 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
13987 YES/NO.
13988 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
13989 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
13990 * Makefile.in (clean): Clear out build destination dir.
13991
139922008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13993
13994 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
13995 xterm, xselect.
13996 * lisp.h: Remove declaration of hash_remove.
13997 * nsgui.h: Remove redefinitions of hash_remove.
13998 * fns.c (hash_remove): Rename to hash_remove_from_table.
13999
140002008-07-19 Seiji Zenitani <zenitani@mac.com>
14001
14002 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
14003 strdup() the family UTF8String before modifying it.
14004
140052008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14006
14007 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
14008 NS_FACE_BACKGROUND with 0 instead of nil.
14009 * nsfont.m (nsfont_draw): Same.
14010
140112008-07-19 Chong Yidong <cyd@stupidchicken.com>
14012
14013 * nsfns.m (ns_set_background_color): Fix crash.
14014
140152008-07-18 Chong Yidong <cyd@stupidchicken.com>
14016
14017 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
14018
140192008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
14020
14021 * puresize.h (BASE_PURESIZE): Increase to 1240000.
14022
140232008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14024
14025 * gtkutil.c: Include <config.h> instead of "config.h".
14026
14027 * lisp.h (Foverlay_buffer): Add EXFUN.
14028
14029 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
14030 child process to complete child_setup. Undo 2005-09-21 change.
14031
14032 * s/darwin.h: Mention setsid after vfork.
14033
140342008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14035
14036 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
14037 Depend on macgui.h.
14038
14039 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
14040 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
14041
14042 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
14043 and f19.
14044 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
14045
14046 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
14047 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
14048 Remove enumerators.
14049
14050 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
14051 Check if FACE_FROM_ID returns NULL.
14052
140532008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
14054
14055 * w32inevt.c (change_frame_size): Remove extern declaration.
14056 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
14057 change_frame_size.
14058
140592008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
14060
14061 * getloadavg.c: Revert last change (2008-07-15).
14062
140632008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
14064
14065 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 14066 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
14067 from configure.
14068
140692008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
14070
14071 * s/sol2.h:
14072 * s/sol2-4.h: Reorganize conditionals.
14073
14074 * ecrt0.c: Remove code depending on m68000, not used anymore.
14075
14076 * fns.c (hash_remove): Make static.
14077 * lisp.h (hash_remove): Don't prototype.
14078
14079 * m/ibmrs6000.h:
14080 * m/ibms390x.h:
14081 * m/macppc.h: Remove boilerplate comments.
14082
14083 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
14084 Solaris, which does not need them.
14085
14086 * m/vax.h: Remove comments about unsupported systems.
14087
14088 * s/darwin.h: Reorganize ifdefs.
14089
140902008-07-17 Andreas Schwab <schwab@suse.de>
14091
14092 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
14093
140942008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
14095
14096 Use SDATA. Follow coding convention of placing operators at
14097 beginning of next line rather than end of previous line, and placing
14098 spaces around infix operators.
14099
14100 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
14101 in case it was defined already.
14102 USE @GNUSTEP_MAKEFILES@ rather than envvars.
14103 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
14104 ns_default.
14105 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
14106 Lisp_Objects.
14107 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
14108 (ns_defined_color, ns_color_to_lisp): Declare.
14109 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
14110 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
14111 it's accepted even with USE_LISP_UNION_TYPE.
14112 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
14113 (update_frame_tool_bar): Remove apparently obsolete tests for
14114 non-integerness of f->tool_bar_lines.
14115 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
14116 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
14117 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
14118 (nsfont_open): Don't confuse NULL for Qnil.
14119 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
14120 * menu.h (find_and_call_menu_selection):
14121 * menu.c (find_and_call_menu_selection): Use just int for vector size.
14122 (find_and_return_menu_selection): Always return something.
14123 * frame.h: Include dispextern.h for Display_Info.
14124 (display_x_get_resource): Declare.
14125
141262008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
14127
14128 * syntax.c: Remove stdio.h include accidentally introduced in
14129 Emacs.app commit.
14130 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
14131 NS_IMPL_COCOA.
14132 * keyboard.c (handle_async_input, input_available_signal): Remove
14133 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
14134
141352008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
14136
14137 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
14138 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
14139 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
14140 Use SDATA.
14141
14142 * keymap.c: Remove all NS-specific code.
14143 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
14144 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
14145 where_is_preferred_modifier, return a different value depending on how
14146 preferred is the binding.
14147 (where_is_internal): Adjust accordingly.
14148 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
14149 Adjust to new preferred_sequence_p.
14150 (syms_of_keymap): Declare `where-is-preferred-modifier'.
14151 * keyboard.c (parse_solitary_modifier): Not static any more.
14152 * keyboard.h (parse_solitary_modifier): Declare.
14153
141542008-07-16 Andreas Schwab <schwab@suse.de>
14155
14156 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
14157 of easymenu.
14158
141592008-07-16 Chong Yidong <cyd@stupidchicken.com>
14160
14161 * xdisp.c (move_it_in_display_line): Account for word wrap, so
14162 that we don't move off the line.
14163
141642008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
14165
14166 * keyboard.c (Qsuper): Remove.
14167 (parse_menu_item): Don't call where_is_internal specially for NS.
14168
141692008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
14170
14171 * s/gnu-linux.h: Remove boilerplate comments.
14172
14173 * m/alpha.h (__ELF__): Consolidate conditions.
14174
14175 * m/m68k.h (linux): Use GNU_LINUX instead.
14176 Remove boilerplate comments.
14177
14178 * m/intel386.h: Undo refactoring from previous change.
14179 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
14180 too, remove dead code.
14181 (linux): Use GNU_LINUX instead.
14182
141832008-07-16 Jason Rumney <jasonr@gnu.org>
14184
14185 * w32gui.h: Repeat 26 June changes lost by last change.
14186
141872008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
14188
14189 * systty.h: Remove code for Aix on 386, unsupported platform.
14190
14191 * s/ms-w32.h: Remove boilerplate comments.
14192 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
14193
14194 * s/gnu-linux.h (TERM): Remove support.
14195 (HAVE_SYSVIPC): Remove, unused.
14196 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
14197 for this system.
14198
14199 * process.c: Remove support for IRIS, unused.
14200 Remove support for TERM, not relevant anymore.
14201
14202 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
14203 used with the definition.
14204
14205 * s/aix4-2.h (static): Do not undef.
14206
14207 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
14208 only used on Aix.
14209 (HAVE_SYSVIPC): Remove, unused.
14210
14211 * m/hp800.h (CANNOT_DUMP): Do not undef.
14212
14213 * m/alpha.h: Fix comment.
14214
14215 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
14216 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
14217 used by this configuration.
14218 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
14219 * unexec.c: Remove code depending on HPUX and
14220 USG_SHARED_LIBRARIES, not used with this file. Remove code
14221 depending on IRIS, unused. Remove if 0-ed code.
14222
14223 * s/template.h: Remove comments about static.
14224
14225 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
14226 Remove if 0-ed code.
14227 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
14228 were the same as the default.
14229 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
14230 Remove boilerplate comments.
14231 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
14232 (HAVE_SYSVIPC): Remove, unused.
14233 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
14234
14235 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14236 Remove boilerplate comments.
14237 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14238 Remove boilerplate comments.
14239 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14240 Remove boilerplate comments.
14241 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
14242
14243 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
14244 USG systems which do not use DATA_SEG_BITS.
14245 Refactor code. Remove boilerplate comments.
14246
14247 * m/ibms390.h:
14248 * m/m68k.h:
14249 * s/bsd-common.h:
14250 * s/cygwin.h:
14251 * s/darwin.h:
14252 * s/freebsd.h:
14253 * s/gnu.h:
14254 * s/msdos.h: Remove boilerplate comments.
14255
14256 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 14257 do not use this file.
aac0c6e3
MR
14258 (IRIS_4D): Remove, unused.
14259
14260 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 14261 do not use this file.
aac0c6e3
MR
14262 (SIGN_EXTEND_CHAR):
14263 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
14264 * unexmips.c: Remove file, unused.
14265
14266 * editfns.c (Fuser_full_name): Replace the only use of
14267 USER_FULL_NAME with its value.
14268 * config.in: Regenerate.
14269
142702008-07-16 David Reitter <david.reitter@gmail.com>
14271
14272 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
14273 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
14274
142752008-07-16 Glenn Morris <rgm@gnu.org>
14276
14277 * emacs.c (system-type): Doc fix.
14278
142792008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
14280
14281 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
14282 If the cache doesn't work, let's fix it, rather than work around it.
14283
142842008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14285
14286 * Makefile.in: Correct additions for nsfont.o in last commit.
14287 * nsfont.m: New file (forgot last commit).
14288
142892008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
14290
14291 * callproc.c (set_initial_environment): Initialize
14292 Vprocess_environment under CANNOT_DUMP (fixes crash when
14293 batch-compiling for bootstrap).
14294
142952008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 14296 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 14297
c4cc8b9a
JB
14298 * frame.c (make_initial_frame): Call init_frame_faces(f) in
14299 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
14300
143012008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14302
14303 Changes and additions for NeXTstep windowing system (Cocoa and
14304 GNUstep) support.
14305
14306 * Makefile.in:
14307 * config.in: Support defines and build commands for NS port.
14308 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
14309 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
14310 * dispextern.h: Include nsgui.h and add needed typedefs under NS
14311 windowing.
14312 (struct face): Add synth_ital field.
14313 * dispnew.c: Include nsterm.h when compiling under NS windowing.
14314 (init_display): Initialize Vinitial_window_system to "ns" when so
14315 compiled.
14316 * emacs.c: Include GSConfig.h when compiling under GNUstep.
14317 (display_arg): Use under NS.
14318 (main): Under NS, allocate autorelease pool and handle command line
14319 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
14320 (standard_args): Add NS-specific args.
14321 (shut_down_emacs): Shut down NS terminal if compiled under NS.
14322 * font.c (DEFAULT_ENCODING): New variable.
14323 (font_find_for_lface): Use it.
14324 (syms_of_font): Load syms_of_nsfont under NS.
14325 * font.h: Declare nsfont_driver when compiled under NS.
14326 * fontset.c: When compiling under NS, include nsterm.h.
14327 (fontset_from_font): Autoconstruct fontset under NS.
14328 * frame.c (various): Under NS, include nsterm.h, add Qns window system
14329 symbol, document and use it.
14330 (do_switch_frame): When for_deletion under Cocoa, add
14331 Fraise_frame(Qnil).
14332 (x_set_frame_parameters): Ensure font attribute changes are picked up.
14333 (x_get_arg): Allow "yes" and "no" as boolean values.
14334 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
14335 Qright under Cocoa.
14336 (focus-follows-mouse): Default to 0 under NS.
14337 * frame.h (enum output_method): Add output_ns.
14338 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
14339 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
14340 (FRAME_WINDOW_P): NS-specific definition.
14341 * fringe.c (max_used_fringe_bitmap): Make public.
14342 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
14343 (getloadavg): Use NeXT code under descendant OS's.
14344 * image.c (includes and header section, x_create_bitmap_from_data)
14345 (x_create_bitmap_from_file, free_bitmap_record, image_background)
14346 (image_background_transparent, x_clear_image_1)
14347 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
14348 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
14349 (x_to_xcolors, x_from_xcolors, x_disable_image)
14350 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
14351 other GUIs, including XPM support using code originally written for
14352 Carbon GUI.
14353 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
14354 using NS API.
14355 (image_ascent): Use font metrics macros instead of direct struct field
14356 access.
14357 * keyboard.c (includes): Add nsterm.h when compiling under NS.
14358 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
14359 Also, handle NS as GTK for menu bar purposes.
14360 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
14361 toolkit where they differ.
14362 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
14363 use cachelist, still needed under NS.
14364 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
14365 (struct widget_value): Define it here for menu.c.
14366 * keymap.c (includes): Include modifier internals.
14367 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
14368 NS.
14369 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
14370 support for preferring sequences using certain modifiers, specified by
14371 the FIRSTONLY argument.
14372 * lisp.h (hash_remove): Rename to avoid name clash when compiling
14373 under NS GNUstep implementation.
14374 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
14375 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
14376 * menu.c: Include nsterm.h under NS.
14377 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
14378 (free_menubar_widget_tree_value, update_submenu_strings)
14379 (find_and_call_menu_selection): Treat NS as X and NT.
14380 (find_and_return_menu_selection): New function, used for popup menus.
14381 * nsgui.h:
14382 * nsterm.h:
14383 * nsfns.m:
14384 * nsimage.m:
14385 * nsmenu.m:
14386 * nsselect.m:
14387 * nsterm.m: New files.
14388 * process.c (wait_reading_process_output): Under NS, call ns_select()
14389 instead of plain select().
14390 * syntax.c (char_quoted): Under NS, avoid a crash when called near
14391 beginning of buffer.
14392 * sysselect.h (init_process): Rename when compiling under Cocoa to
14393 avoid name conflict.
14394 * termhooks.h (display_info): Add ns_display_info to union.
14395 * terminal.c (Fterminal_live_p): Add ns to terminal types.
14396 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
14397 COCOA environment.
14398 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
14399 unexec() signature. (Note, this will dump, but the resulting file
14400 crashes; unexosx is used instead; keeping around for reference and
14401 possible aid in getting dump working under GNUstep.)
14402 * w32gui.h (button_type, widget_value): Remove definitions (now in
14403 keyboard.h).
14404 * window.c: Include nsterm.h when compiling under NS.
14405 * xdisp.c (includes): Include nsterm.h when compiling under NS.
14406 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
14407 other GUI windowing systems.
14408 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
14409 GTK.
14410 (x_consider_frame_title): Under NS, set icon type and frame
14411 modified-state indicator; use ns_set_name_as_filename() when using
14412 formatted title.
14413 (update_window_cursor): Make public when compiling under NS.
14414 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
14415 (hourglass_atimer, Vhourglass_delay
14416 * xfaces.c (header section, init_frame_faces, clear_font_table)
14417 (defined_color, unload_color, x_face_list_fonts)
14418 (prepare_face_for_display): Add NS support parallel to other GUIs.
14419 Emulate GCs like other non-X GUIs.
14420 (split_font_name): Don't lowercase font name under NS.
14421 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
14422 under NS.
14423 * s/darwin.h: Add support for compilation under NS.
14424
144252008-07-15 Jason Rumney <jasonr@gnu.org>
14426
14427 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
14428 (w32_show_hourglass): Rename from show_hourglass.
14429 (w32_hide_hourglass): Rename from hide_hourglass.
14430 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
14431 (Vhourglass_delay): Declare extern.
14432 (hourglass_started): Remove.
14433
14434 * xdisp.c (Vhourglass_delay): Remove static.
14435 (hourglass_started, start_hourglass, cancel_hourglass):
14436 Don't include these versions on WINDOWSNT.
14437
144382008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14439
14440 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
14441 variables (formerly in xfns.c).
14442 (show_hourglass, hide_hourglass): New prototypes (same).
14443 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
14444 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
14445 in xfns.c).
14446 (syms_of_xdisp): Declare/initialize display-hourglass,
14447 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
14448 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
14449 formerly in xfns.c.
14450 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14451 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14452 (start_hourglass, cancel_hourglass): Remove.
14453 (show_hourglass, hide_hourglass): Remove prototypes and static
14454 modifiers.
14455 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
14456 hourglass_atimer, hourglass_shown_p declaration/initialization.
14457 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14458 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14459 (start_hourglass, cancel_hourglass): Remove.
14460 (show_hourglass, hide_hourglass): Remove prototypes and static
14461 modifiers.
14462 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
14463 hourglass_atimer, hourglass_shown_p declaration/initialization.
14464 * w32fns.c (display_hourglass_p, Vhourglass_delay)
14465 (DEFAULT_HOURGLASS_DELAY): Remove.
14466 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
14467 hourglass_shown_p declaration/initialization.
14468
144692008-07-14 Jason Rumney <jasonr@gnu.org>
14470
14471 * w32fns.c (w32_get_arg): Remove wrapper function.
14472 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
14473 directly.
14474 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
14475
144762008-07-14 Kenichi Handa <handa@m17n.org>
14477
14478 * xfont.c (xfont_open): Add workaround for X's bug.
14479
144802008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14481
14482 * fontset.c: Include <stdio.h> unconditionally.
14483
144842008-07-13 Michael Albinus <michael.albinus@gmx.de>
14485
14486 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
14487 for filtering.
14488
144892008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
14490
14491 * s/vms.h: Use __GNUC__ instead of _GNUC_.
14492
14493 * m/macppc.h:
14494 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
14495
c4cc8b9a 14496 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
14497 (SPECIAL_EMACS_INT):
14498 * m/ia64.h (SPECIAL_EMACS_INT):
14499 * m/amdx86-64.h (SPECIAL_EMACS_INT):
14500 * s/gnu.h (NLIST_STRUCT):
14501 * s/aix4-2.h (X11R5_INHIBIT_I18N):
14502 * s/gnu-linux.h (LINUX):
14503 * s/msdos.h (HAVE_FACES):
14504 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
14505
14506 * systty.h:
14507 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
14508 anymore.
14509
145102008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
14511
14512 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
14513 always defined as int.
14514
14515 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
14516 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
14517 * s/gnu-linux.h (HAVE_WAIT_HEADER):
14518 * s/freebsd.h (HAVE_WAIT_HEADER):
14519 * s/bsd-common.h (HAVE_UNION_WAIT):
14520 * s/aix4-2.h (HAVE_WAIT_HEADER):
14521 * m/mips.h (HAVE_UNION_WAIT):
14522 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
14523 (COFF, static): Do not define, they are undefined later in the file.
14524
14525 * process.c (update_status): Don't use a union.
14526 (status_convert):
14527 (sigchld_handler): Use int instead of WAITTYPE.
14528
145292008-07-12 Chong Yidong <cyd@stupidchicken.com>
14530
14531 * indent.c (Fvertical_motion): Restore hscroll before moving to
14532 goal column.
14533
145342008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14535
14536 * lisp.h: Remove left over code.
14537
145382008-07-11 Andreas Schwab <schwab@suse.de>
14539
14540 * lisp.h: Fix logic in last change.
14541
14542 * menu.h: New file.
14543 * menu.c: Include it.
14544 * xmenu.c: Likewise.
14545 * Makefile.in: Update dependencies.
14546
145472008-07-11 Kenichi Handa <handa@m17n.org>
14548
14549 * fontset.c (fontset_from_font): Cancel the previous change.
14550
145512008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14552
14553 * lisp.h:
14554 * w32heap.c:
14555 * emacs.c:
14556 * alloc.c: Replace all references of NO_UNION_TYPE with
14557 USE_LISP_UNION_TYPE.
14558
14559 * m/xtensa.h (NO_UNION_TYPE):
14560 * m/vax.h (NO_UNION_TYPE):
14561 * m/template.h (NO_UNION_TYPE):
14562 * m/sparc.h (NO_UNION_TYPE):
14563 * m/mips.h (NO_UNION_TYPE):
14564 * m/macppc.h (NO_UNION_TYPE):
14565 * m/m68k.h (NO_UNION_TYPE):
14566 * m/iris4d.h (NO_UNION_TYPE):
14567 * m/intel386.h (NO_UNION_TYPE):
14568 * m/ibms390x.h (NO_UNION_TYPE):
14569 * m/ibms390.h (NO_UNION_TYPE):
14570 * m/ibmrs6000.h (NO_UNION_TYPE):
14571 * m/ia64.h (NO_UNION_TYPE):
14572 * m/hp800.h (NO_UNION_TYPE):
14573 * m/arm.h (NO_UNION_TYPE):
14574 * m/amdx86-64.h (NO_UNION_TYPE):
14575 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
14576 defining it the same.
14577
145782008-07-10 Chong Yidong <cyd@stupidchicken.com>
14579
14580 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
14581
145822008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
14583
14584 * fileio.c:
50426a04 14585 * sysdep.c:
aac0c6e3
MR
14586 * systty.h:
14587 * m/ibmrs6000.h:
14588 * m/iris4d.h:
14589 * s/aix4-2.h:
14590 * s/freebsd.h:
14591 * s/gnu-linux.h:
14592 * s/hpux10-20.h:
14593 * s/hpux11.h:
14594 * s/netbsd.h:
14595 * s/sol2-3.h:
14596 * s/sol2-4.h:
14597 * s/sol2.h:
14598 * s/usg5-4.h:
14599 * s/vms.h: Remove references to unused variables.
14600
146012008-07-10 Andreas Schwab <schwab@suse.de>
14602
14603 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
14604 pattern before matching the generic family.
14605
146062008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
14607
14608 * unexec.c:
14609 * s/vms.h:
14610 * s/usg5-4-2.h:
14611 * s/sol2-5.h:
14612 * s/freebsd.h:
14613 * s/darwin.h: Remove dead code.
14614
14615 * m/template.h:
14616 * m/sparc.h:
14617 * m/mips.h:
14618 * m/m68k.h:
14619 * m/iris4d.h:
14620 * m/intel386.h:
14621 * m/ibms390x.h:
14622 * m/ibms390.h:
14623 * m/ia64.h:
14624 * m/hp800.h:
14625 * m/arm.h:
14626 * m/amdx86-64.h: Remove dead code and references to unused
14627 and compiler defined symbols.
14628
14629 * unexmips.c:
14630 * unexelf.c: Remove references to desupported systems.
14631
14632 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
14633
14634 * m/powermac.h: Remove boilerplate comments.
14635 (NO_REMAP): Remove unused definition.
14636
14637 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
14638 define them.
14639
146402008-07-10 Kenichi Handa <handa@m17n.org>
14641
14642 * xfont.c (xfont_open): Log the reason of failure.
14643
146442008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
14645
14646 * fontset.c (fontset_get_font_group):
14647 * font.c (font_check_otf): Specify argument types.
14648
146492008-07-09 Kenichi Handa <handa@m17n.org>
14650
14651 * coding.c (detect_coding_utf_8): Set detect_info->found only when
14652 non-ASCII char is found.
14653
14654 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
14655 (reorder_font_vector): Change the arg preferred_family to font.
14656 Prefer the spec matching with font.
14657 (fontset_get_font_group): New function.
14658 (fontset_find_font): Change the format of an element of a realized
14659 fontset. Use fontset_get_font_group.
14660 (fontset_font): Try the current fontset, the default fontset, the
14661 fallbacks of the current fontset, and the fallbacks of the default
14662 fontset in this order.
14663 (face_for_char): Delete the shortcut to use the current font.
14664 (fontset_from_font): Don't set fonts for Latin in the fontset.
14665
14666 * font.h (font_make_object, font_match_p): Adjust prototypes.
14667
14668 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
14669
14670 * font.c (font_make_object): New arg entity and pixelsize.
14671 (font_check_otf_features, font_check_otf): New functions.
14672 (font_match_p): Check :lang, :script, and :otf properties.
14673
14674 * xfont.c (xfont_open): Adjust it for the change of
14675 font_make_object.
14676 (xfont_text_extents): Fix initial setting of metrics.
14677
14678 * ftfont.c (struct ftfont_info): New member index, delete member
14679 fc_charset_idx. Make the member order compatible with struct
14680 xftfont_info.
14681 (fc_charset_table): Change charset names to registry names.
14682 (ftfont_pattern_entity): Delete the args registry and
14683 fc_charset_idx. Change the value of :font-entity property
14684 to (FONTNAME . INDEX). Always set :registry property to
14685 `iso10646-1'.
14686 (struct ftfont_cache_data): New struct.
14687 (ftfont_lookup_cache): New arg for_face.
14688 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
14689 (ftfont_driver): Set the member otf_capability.
14690 (ftfont_get_charset): Adjust it for the change of
14691 fc_charset_table.
14692 (OTF_TAG_SYM): New macro.
14693 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
14694 for the change of fc_charset_table.
14695 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
14696 ftfont_pattern_entity. Add FC_INDEX to objset.
14697 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
14698 and ftfont_pattern_entity.
14699 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
14700 font_make_object, struct ftfont_info.
14701 (ftfont_has_char): Use ftfont_get_fc_charset.
14702 (ftfont_otf_features, ftfont_otf_capability): New functions.
14703 (ftfont_shape): Use ftfont_get_otf.
14704 (ftfont_text_extents): Fix initial setting of metrics.
14705
14706 * xftfont.c (struct xftfont_info): New member ft_size. Make the
14707 member order compatible with struct ftfont_info.
14708 (xftfont_open): Add FC_CHARSET to the pattern. Set
14709 xftfont_info->ft_size. Don't unlock the face. Check BDF
14710 properties if appropriate.
14711 (xftfont_close): Unlock the face.
14712 (xftfont_anchor_point, xftfont_shape): Deleted.
14713 (syms_of_xftfont): Don't set members anchor_point and shape of
14714 xftfont_driver.
14715
14716 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
14717 font_make_object.
14718
14719 * w32font.c (w32font_open): Adjust it for the change of
14720 font_make_object.
14721 (w32font_open_internal): Don't set properties of font_object here.
14722
147232008-07-08 Chong Yidong <cyd@stupidchicken.com>
14724
14725 * macfns.c (x_create_tip_frame):
14726 * w32fns.c (x_create_tip_frame):
14727 * xfns.c (x_create_tip_frame): Pass parameter argument to
14728 face-set-after-frame-default.
14729
14730 * xfaces.c (Finternal_merge_in_global_face): Save merged
14731 attributes for the default face back into the face vector.
14732
147332008-07-08 Andreas Schwab <schwab@suse.de>
14734
14735 * fontset.h: Declare fontset_from_font. Don't declare
14736 new_fontset_from_font and fontset_from_font_name.
14737 * xterm.c: Include "fontset.h".
14738 * Makefile.in (xterm.o): Update dependencies.
14739
147402008-07-08 Glenn Morris <rgm@gnu.org>
14741
14742 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
14743 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
14744
147452008-07-07 Chong Yidong <cyd@stupidchicken.com>
14746
14747 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
14748 (x_set_frame_parameters): Don't bind it.
14749
147502008-07-07 Juanma Barranquero <lekktu@gmail.com>
14751
14752 * w32fns.c (map_w32_filename): Declare extern.
14753
147542008-07-07 Jason Rumney <jasonr@gnu.org>
14755
14756 * w32term.c (WS_EX_LAYERED): Define if not already.
14757
147582008-07-06 Chong Yidong <cyd@stupidchicken.com>
14759
14760 * xfaces.c (set_font_frame_param): Don't try to set the font
14761 parameter if it is still unspecified in the lface.
14762
147632008-07-05 Chong Yidong <cyd@stupidchicken.com>
14764
14765 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
14766 face if it didn't already exist.
14767
14768 * xdisp.c (try_window_id): Give up if word-wrapping is on.
14769
147702008-07-05 Andreas Schwab <schwab@suse.de>
14771
14772 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
14773
147742008-07-05 Chong Yidong <cyd@stupidchicken.com>
14775
14776 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
14777 word-wrapping.
14778 (IT_DISPLAYING_WHITESPACE): New macro.
14779 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
14780 when word-wrapping. Simplify word-wrapping logic. Use correct
14781 pixel positions when saving copies of the iterator.
14782 (display_line): Use proper wrap point if the last character on a
14783 line was preceded by whitespace.
14784
147852008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
14786
14787 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
14788
147892008-07-04 Kenichi Handa <handa@m17n.org>
14790
14791 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
14792
14793 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
14794
147952008-07-02 Jason Rumney <jasonr@gnu.org>
14796
14797 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 14798 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
14799
14800 * xdisp.c (next_element_from_display_vector): Move assignment out
14801 of if statement.
14802
148032008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
14804
14805 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
14806
14807 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
14808 (syms_of_fileio): Initialize and export them.
14809 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
14810
14811 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
14812 (Fsystem_move_file_to_trash): New function.
14813 (syms_of_w32fns): Export it to lisp.
14814
148152008-07-01 Jason Rumney <jasonr@gnu.org>
14816
14817 * w32font.c (w32font_text_extents): Don't count overhang as part
14818 of width.
14819
148202008-06-30 Miles Bader <miles@gnu.org>
14821
14822 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
14823 Add `avoid_cursor_p' field.
14824
14825 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
14826 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
14827 (append_glyph, append_composite_glyph, produce_image_glyph)
14828 (append_stretch_glyph): Initialize avoid_cursor_p.
14829 (get_it_property): Rename from `get_line_height_property'.
14830 (x_produce_glyphs): Use get_it_property.
14831 (handle_line_prefix, push_display_prop): New functions.
14832 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
14833 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
14834 New variables.
14835 (syms_of_xdisp): Initialize them.
14836
148372008-06-30 Kenichi Handa <handa@m17n.org>
14838
14839 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
14840 XftDefaultSubstitute (they are called in XftFontMatch).
14841 (xftfont_open): Fix args to ftfont_font_format.
14842
14843 * ftfont.c (fc_charset_table): New member lang.
14844 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 14845 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
14846 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
14847 (ftfont_open): Fix args to ftfont_font_format.
14848 (ftfont_font_format): New arg filename.
14849
148502008-06-30 Chong Yidong <cyd@stupidchicken.com>
14851
14852 * xfaces.c (Finternal_merge_in_global_face): If default face was
14853 modified, realize it again. Update the font face attribute.
14854
148552008-06-29 Jason Rumney <jasonr@gnu.org>
14856
14857 * w32term.c (x_set_frame_alpha): Fix logic.
14858
148592008-06-29 Kenichi Handa <handa@m17n.org>
14860
14861 * fontset.c (Finternal_char_font): Return font-object instead of
14862 font-name.
14863
14864 * composite.c (get_composition_id): Fix the width calculation for TAB.
14865
148662008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
14867
14868 * indent.c (Fvertical_motion): Properly handle float column arg.
14869
148702008-06-28 Jason Rumney <jasonr@gnu.org>
14871
14872 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
14873 (pfnSetLayeredWindowAttributes): New function pointer.
14874 (w32_initialize): Initialize it when supported.
14875 (x_set_frame_alpha): New function.
14876
14877 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
14878 (w32_frame_parm_handlers): Set alpha handler.
14879
14880 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
14881
148822008-06-27 Jason Rumney <jasonr@gnu.org>
14883
14884 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
14885 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
14886 (w32_to_x_charset, x_to_w32_charset)
14887 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14888 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14889 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14890 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14891 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14892 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14893 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
14894 (Qw32_charset_unicode): Remove.
14895 (syms_of_w32fns): Update for above changes.
14896
14897 * w32font.c (w32_to_x_charset, x_to_w32_charset)
14898 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14899 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14900 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14901 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14902 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14903 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14904 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
14905 (syms_of_w32font): Update for above changes.
14906
149072008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
14908
14909 * s/usg5-4.h: Fix previous change: keep the correct branch of a
14910 removed #if.
14911 (USG_SHARED_LIBRARIES): Remove duplicate definition.
14912
149132008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 14914 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
14915
14916 * makefile.w32-in (LOCAL_FLAGS):
14917 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
14918
14919 * sysdep.c (_spawnlp, _getpid):
14920 Declare with explicit _cdecl instead of _CRTAPI1.
14921
14922 * editfns.c (Fget_internal_run_time):
14923 Check for WINDOWSNT with #ifdef, not #if.
14924
149252008-06-26 Jason Rumney <jasonr@gnu.org>
14926
14927 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
14928
14929 * w32term.c (x_draw_glyph_string_foreground)
14930 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
14931 Use FONT_HANDLE macro.
14932 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
14933
14934 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14935 (uniscribe_encode_char): Use FONT_HANDLE macro.
14936
14937 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
14938 (w32font_text_extents): Use precast w32_font.
14939 (w32font_close): Free cached metrics.
14940 (w32font_open_internal): Allocate space for name on stack.
14941
149422008-06-26 Chong Yidong <cyd@stupidchicken.com>
14943
14944 * xdisp.c (extend_face_to_end_of_line): Fix last change.
14945
149462008-06-26 Jason Rumney <jasonr@gnu.org>
14947
14948 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
14949 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
14950
149512008-06-26 Juanma Barranquero <lekktu@gmail.com>
14952
14953 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
14954
149552008-06-26 Jason Rumney <jasonr@gnu.org>
14956
14957 * w32bdf.c, w32bdf.h: Remove obsolete files.
14958
14959 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
14960
14961 * w32gui.h: Don't include w32bdf.h.
14962 (XCharStruct, enum w32_char_font_type, W32FontStruct):
14963 Remove obsolete font support.
14964
14965 * w32font.h (struct w32font_info): Remove compat_w32_font.
14966 Add hfont member.
14967 (FONT_COMPAT): Remove obsolete macro.
14968
14969 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
14970 (w32font_encode_char, w32font_text_extents): Use new hfont member.
14971 (w32font_open_internal): Remove compat code. Set new hfont member.
14972 (Fx_select_font): Use new hfont member.
14973
14974 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14975 (uniscribe_encode_char): Use new hfont member.
14976
14977 * w32term.c (x_draw_glyph_string_foreground)
14978 (x_draw_composite_glyph_string_foreground): Use new hfont member.
14979 (x_draw_glyph_string): Use metrics in w32font_info.
14980
149812008-06-26 Kenichi Handa <handa@m17n.org>
14982
14983 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
14984
149852008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
14986
14987 * unexnext.c:
14988 * m/ews4800.h:
14989 * m/hp9000s300.h:
14990 * m/ibm370aix.h:
14991 * m/mips-siemens.h:
14992 * m/ncr386.h:
14993 * m/next.h:
14994 * m/pmax.h:
14995 * m/powerpcle.h:
14996 * m/tandem-s2.h:
14997 * s/386bsd.h:
14998 * s/bsd386.h:
14999 * s/bsd4-1.h:
15000 * s/bsd4-2.h:
15001 * s/bsdos2-1.h:
15002 * s/bsdos2.h:
15003 * s/bsdos3.h:
15004 * s/bsdos4.h:
15005 * s/nextstep.h:
15006 * s/ultrix4-3.h:
15007 * s/usg5-0.h:
15008 * s/usg5-2-2.h:
15009 * s/usg5-2.h:
15010 * s/usg5-4-3.h:
15011 * s/ux4800.h:
15012 * s/uxpds.h:
15013 * s/uxpv.h: Remove support for obsolete systems.
15014 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 15015 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
15016 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
15017 Remove, insert contents in s/aix4-2.h.
15018 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
15019 * s/bsd4-3.h: Rename to ...
15020 * s/bsd-common.h: ... this.
15021 * data.c:
15022 * doc.c:
15023 * ecrt0.c:
15024 * emacs.c:
15025 * fileio.c:
15026 * floatfns.c:
15027 * keyboard.c:
15028 * mem-limits.h:
15029 * print.c:
15030 * process.c:
15031 * sysdep.c:
15032 * syssignal.h:
15033 * systty.h:
15034 * syswait.h:
15035 * term.c:
15036 * unexec.c:
15037 * unexelf.c:
15038 * unexhp9k800.c:
15039 * m/hp800.h:
15040 * m/ibmrs6000.h:
15041 * m/mips.h:
15042 * m/vax.h:
15043 * s/darwin.h:
15044 * s/freebsd.h:
15045 * s/gnu.h:
15046 * s/ms-w32.h:
15047 * s/msdos.h:
15048 * s/netbsd.h:
15049 * s/template.h: Remove references to obsolete variables.
15050
15051 * Makefile.in: Add dependencies for all unexec files.
15052 (admindir): Remove unused variable.
15053 (UNEXEC_SRC): Remove references.
15054
150552008-06-25 Chong Yidong <cyd@stupidchicken.com>
15056
15057 * xfns.c (x_default_font_parameter): If Xft is available, first
15058 try Monospace-12 for the default font.
15059
150602008-06-25 Jason Rumney <jasonr@gnu.org>
15061
15062 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
15063
150642008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
15065
15066 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
15067
15068 * buffer.c (syms_of_buffer): Remove default-word-wrap.
15069
150702008-06-25 Juanma Barranquero <lekktu@gmail.com>
15071
15072 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
15073 <scroll-conservatively>: Fix typo in docstring.
15074
15075 * xselect.c (Fx_send_client_event): Doc fix.
15076
150772008-06-25 Kenichi Handa <handa@m17n.org>
15078
15079 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
15080
15081 * font.c (font_parse_fcname): Remove unused variables.
15082 (font_sort_entites): Delete the arg SPEC. Caller changed.
15083 Fix for the case of ! best_only.
15084 (font_delete_unmatched): Check DPI and AVGWIDTH too.
15085
15086 * lisp.h (Fstring_to_unibyte): EXFUN it.
15087
15088 * character.h (str_to_unibyte): Extern it.
15089
15090 * character.c (str_to_unibyte): New function.
15091
15092 * fns.c (Fstring_to_unibyte): New function.
15093 (syms_of_fns): Defsubr it.
15094
150952008-06-24 Kenichi Handa <handa@m17n.org>
15096
15097 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
15098 DPI too.
15099 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
15100
151012008-06-24 Andreas Schwab <schwab@suse.de>
15102
15103 * Makefile.in (${lispsource}loaddefs.el): Rename from
15104 ../lisp/loaddefs.el.
15105 (bootstrap-clean): Do what distclean does but don't remove
15106 Makefile.
15107 (distclean): Depend on bootstrap-clean and remove Makefile.
15108
151092008-06-24 Chong Yidong <cyd@stupidchicken.com>
15110
15111 * buffer.h (struct buffer): New member word_wrap.
15112
15113 * buffer.c (syms_of_buffer): New variables default-word-wrap and
15114 word-wrap.
15115 (init_buffer_once): Initialize them.
15116
15117 * dispextern.h (struct it): Replace bool truncate_lines_p with a
15118 line_wrap enum possessing three possible values.
15119
15120 * termopts.h: Replace truncate_partial_width_windows with
15121 Vtruncate_partial_width_windows.
15122
15123 * dispnew.c (direct_output_for_insert): Avoid direct output when
15124 inserting a space with word wrap on.
15125
15126 * indent.c (compute_motion): Obey integer values of
15127 truncate-partial-width-windows.
15128
15129 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
15130 replacing truncate_partial_width_windows.
15131 (init_iterator): If Vtruncate_partial_width_windows is an integer,
15132 truncate only if the window width is below that integer.
15133 (start_display, resize_mini_window, produce_stretch_glyph)
15134 (display_string, move_it_in_display_line_to): Use line_wrap.
15135 (back_to_previous_visible_line_start, reseat_1): Reset
15136 string_from_display_prop_p.
15137 (display_line): Extend default face to end of line when wrapping.
15138
151392008-06-24 Kim F. Storm <storm@cua.dk>
15140
15141 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
15142 to wrap continued lines at word boundaries.
15143
151442008-06-24 Jason Rumney <jasonr@gnu.org>
15145
15146 * font.c (Ffont_face_attributes): Multiply pixel size before point
15147 conversion to avoid multiplying rounding error.
15148
151492008-06-23 Jason Rumney <jasonr@gnu.org>
15150
15151 * w32term.c (x_draw_glyph_string_background)
15152 (x_draw_glyph_string): Remove old bdf font code.
15153
15154 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
15155
151562008-06-22 Kenichi Handa <handa@m17n.org>
15157
15158 * font.c (font_find_for_lface): Try the adstyle specified in
15159 the property of LFACE_FONT of LFACE (if any).
15160
151612008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 15162 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
15163
15164 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
15165
151662008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
15167
15168 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
15169 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
15170 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
15171 (witness-emacs): Remove.
15172 (lisp, shortlisp): Move loaddefs.el earlier.
15173 (mostlyclean): Forget about witness-emacs.
15174
151752008-06-22 Glenn Morris <rgm@gnu.org>
15176
15177 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
15178 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
15179
151802008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
15181
15182 * Makefile.in (PRECOMP): Remove.
15183 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
15184 (witness-emacs): Run `compile-first'.
15185 (.el.elc): Use the new compile-onefile target.
15186
151872008-06-21 Kenichi Handa <handa@m17n.org>
15188
15189 * xftfont.c (xftfont_open): Handle QCembolden only when
15190 FC_EMBOLDEN is defined.
15191
151922008-06-21 Andreas Schwab <schwab@suse.de>
15193
15194 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
15195 (.el.elc): Likewise.
15196
151972008-06-21 Miles Bader <miles@gnu.org>
15198
15199 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
15200 build dir, not the lisp source dir.
15201
152022008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
15203
15204 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
15205 (bootstrapclean): Remove.
15206 (.el.elc): New rule.
15207 (PRECOMP): New var.
15208 (../lisp/subdirs.el): Remove.
15209 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
15210 (witness-emacs): New target.
15211 (mostlyclean): Remove witness-emacs as well.
15212 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
15213 Add witness-emacs dependency.
15214
152152008-06-20 Chong Yidong <cyd@stupidchicken.com>
15216
15217 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
15218 defined by the font.
15219
152202008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15221
15222 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
15223 (bootstrap-clean): New target that keeps TAGS around.
15224 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
15225 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
15226
152272008-06-20 Jason Rumney <jasonr@gnu.org>
15228
15229 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
15230 Remove obsolete font code.
15231
15232 * w32font.c (font_matches_spec): Use csb bitfield from font signature
15233 to determine language support.
15234
152352008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15236
15237 * sysdep.c (cfsetspeed): New fun extracted from the code.
15238 (cfmakeraw): Move before first use.
15239
152402008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
15241
15242 * sysdep.c (cfmakeraw): Provide fallback implementation.
15243 (serial_configure): Provide fallback implementation of cfsetspeed.
15244
152452008-06-20 Kenichi Handa <handa@m17n.org>
15246
15247 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
15248 the pattern.
15249
15250 * fontset.c (fontset_from_font): Copy font_spec before changing
15251 the elements.
15252
15253 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
15254
152552008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15256
15257 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
15258 for explicit `font' parameters.
15259
15260 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
15261
152622008-06-19 Kenichi Handa <handa@m17n.org>
15263
15264 * frame.c: Include <ctype.h>.
15265 (x_set_font_backend): Allow spacing characters in the X resource
15266 for FontBackend.
15267
152682008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
15269
15270 * w32fns.c, xfns.c (Qfont_param): New var.
15271 (syms_of_w32fns): Initialize it.
15272 (x_default_font_parameter): Record explicit `font' into
15273 `font-parameter'.
15274
152752008-06-18 Kenichi Handa <handa@m17n.org>
15276
15277 * font.c (font_parse_xlfd): Fix previous change.
15278 (font_parse_fcname): Don't use :fc-unknown-spec.
15279 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
15280 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
15281 (font_add_log): Prepend the driver name to the resulting fonts.
15282
15283 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
15284 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
15285 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
15286
15287 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
15288 (QCembolden): New variables.
15289 (syms_of_xftfont): DEFSYM them.
15290 (xftfont_open): Call XftFontMatch. Don't trust the result of
15291 XftTextExtents8 if the pixel_size is less than 5.
15292
152932008-06-18 Andreas Schwab <schwab@suse.de>
15294
15295 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
15296 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
15297
152982008-06-18 Jason Rumney <jasonr@gnu.org>
15299
15300 * w32font.c (w32font_list, w32font_match): Add logging.
15301
15302 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
15303
153042008-06-17 Chong Yidong <cyd@stupidchicken.com>
15305
15306 * font.c (font_parse_fcname): Store divider characters for
15307 unknown-spec list. For known key symbols, intern using correct
15308 symbol name.
15309
153102008-06-17 Kenichi Handa <handa@m17n.org>
15311
15312 * xfaces.c (realize_default_face): If the frame is not on window
15313 system, set the fontset of face to nil.
15314
153152008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
15316
15317 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
15318
153192008-06-16 Juanma Barranquero <lekktu@gmail.com>
15320
15321 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
15322 (build_font_name_from_vector): Delete externs.
15323
15324 * xfaces.c (struct font_name): Don't declare.
15325
153262008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
15327
15328 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
15329
153302008-06-16 Chong Yidong <cyd@stupidchicken.com>
15331
15332 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
15333
153342008-06-16 Juanma Barranquero <lekktu@gmail.com>
15335
15336 * font.c (Ffont_spec): Fix usage in docstring.
15337 (Ffont_face_attributes): Doc fix.
15338
153392008-06-16 Andreas Schwab <schwab@suse.de>
15340
15341 * font.c (Ffont_face_attributes): Fix definition.
15342
153432008-06-16 Jason Rumney <jasonr@gnu.org>
15344
15345 * font.h (font_style_symbolic_from_value): Remove.
15346
15347 * font.c (font_style_symbolic_from_value): Remove.
15348 (font_style_symbolic): Revert to pre 2008-06-13 version.
15349
15350 * w32font.c (w32_to_fc_weight): New function.
15351 (w32font_full_name, logfont_to_fcname): Use it.
15352
153532008-06-16 Kenichi Handa <handa@m17n.org>
15354
15355 * font.c (font_check_object): Delete it.
15356 (font_clear_cache): Check if a font-object is alive.
15357 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
15358 font-object to nil.
15359 (font_close_object): Don't check FONT_CLOSE_OBJECT.
15360 (font_at): Don't call font_check_object.
15361 (Ffont_get): Return a symbol for :weight, :slant, and :width.
15362
153632008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
15364
15365 * puresize.h (BASE_PURESIZE): Increase to 1230000.
15366
153672008-06-16 Chong Yidong <cyd@stupidchicken.com>
15368
15369 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
15370
153712008-06-15 Chong Yidong <cyd@stupidchicken.com>
15372
15373 * font.c (font_parse_fcname): Only one decimal point.
15374 (font_unparse_fcname): Handle data in family and foundry indices
15375 as symbols, not strings.
15376 (font_unparse_gtkname, Ffont_face_attributes): New functions.
15377
15378 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
15379
15380 * font.h (font_unparse_gtkname): Add prototype.
15381
153822008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
15383
15384 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
15385
153862008-06-15 Andreas Schwab <schwab@suse.de>
15387
15388 * font.c (font_update_drivers): Fix crash when no drivers match.
15389
153902008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
15391
15392 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
15393 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
15394
153952008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
15396
15397 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
15398
153992008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
15400
15401 * process.c (Fserial_process_configure, Fprocess_send_eof):
15402 Use EQ to compare Lisp_Objects.
15403
154042008-06-13 Jason Rumney <jasonr@gnu.org>
15405
15406 * w32fns.c (Fw32_select_font): Remove old font API function.
15407
15408 * w32font.c (logfont_to_fcname): New function.
15409 (Fx_select_font): New font dialog function compatible with
15410 GTK/fontconfig version.
15411
15412 * font.c (font_style_symbolic_from_value): New function.
15413 (font_style_symbolic): Use it.
15414
15415 * font.h (font_style_symbolic_from_value): Declare new function.
15416
154172008-06-13 Juanma Barranquero <lekktu@gmail.com>
15418
15419 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
15420 <font-width-table>: Fix typos in docstrings.
15421
154222008-06-13 Daniel Engeler <engeler@gmail.com>
15423
15424 These changes add serial port access.
15425 * process.c: Add HAVE_SERIAL.
15426 (Fdelete_process, Fprocess_status, Fset_process_buffer)
15427 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
15428 (list_processes_1, select_wrapper, Fstop_process)
15429 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
15430 (status_notify): Modify to handle serial processes.
15431 [HAVE_SERIAL] (Fserial_process_configure)
15432 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
15433 New functions.
15434 * process.h (struct Lisp_Process): Add `type'.
15435 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
15436 New functions.
15437 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
15438 serial ports.
b71ac3dd 15439 (serial_open, serial_configure): New functions.
aac0c6e3
MR
15440 * w32.h: Add FILE_SERIAL.
15441 (struct _child_process): Add ovl_read, ovl_write.
15442
154432008-06-13 Kenichi Handa <handa@m17n.org>
15444
15445 * dispextern.h (enum lface_attribute_index): New member
15446 LFACE_FOUNDRY_INDEX.
15447
15448 * font.c (font_score): Delete arg alternate_families. Check only
15449 weight, slant, width, and size. Ignore the difference of alias
15450 style symbols.
15451 (font_sort_entites): Adjust for the above change. Reflect the
15452 order of font-driver to scores.
15453 (font_list_entities): Don't check alternate_familes here.
15454 (font_clear_prop): Handle foundry.
15455 (font_update_lface): Don't parse "foundry-family" form here.
15456 Handle FONT_FOUNDRY_INDEX.
15457 (font_find_for_lface): Likewise. Handle alternate families here.
15458 If registry is nil, try iso8859-1 and ascii-0.
15459 (font_open_for_lface): Pay attention to size in ENTITY.
15460 (font_open_by_name): Simplify by calling font_load_for_lface.
15461 (free_font_driver_list): Delete it.
15462 (font_update_drivers): Preserve the order of backends.
15463 (syms_of_font): Setting of sort_shift_bits adjusted for the change
15464 of font_score and font_sort_entites.
15465 (font_update_sort_order): Likewise.
15466
15467 * xfaces.c (LFACE_FOUNDRY): New macro.
15468 (check_lface_attrs): Check foundry.
15469 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
15470 (merge_face_vectors): Check foundry.
15471 (merge_face_ref): Likewise.
15472 (Finternal_set_lisp_face_attribute): Likewise.
15473 (x_update_menu_appearance): Likewise.
15474 (Finternal_get_lisp_face_attribute): Likewise.
15475 (lface_hash): Likewise.
15476 (lface_same_font_attributes_p): Likewise.
15477 (x_supports_face_attributes_p): Likewise.
15478 (tty_supports_face_attributes_p): Likewise.
15479 (Finternal_set_alternative_font_family_alist): Intern strings.
15480 (Finternal_set_alternative_font_registry_alist): Downcase strings.
15481 (realize_default_face): Set LFACE_FOUNDRY (lface).
15482
15483 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
15484 font-driver at first.
15485
15486 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
15487
154882008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
15489
15490 * lread.c (Fload): Use xfree, not free on saved_doc_string.
15491
154922008-06-12 Jim Meyering <meyering@redhat.com>
15493
15494 Make unexec_free handle NULL the same way free does.
15495 * unexmacosx.c (unexec_free): Ignore a NULL argument.
15496
154972008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
15498
15499 * character.h (CHAR_TO_BYTE_SAFE): New macro.
15500 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
15501 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
15502 (WEAK_ALIAS): Simplify.
15503 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
15504 when searching a unibyte buffer.
15505
155062008-06-12 Chong Yidong <cyd@stupidchicken.com>
15507
15508 * xfns.c (Fx_select_font): Rename from x-font-dialog.
15509
155102008-06-12 Juanma Barranquero <lekktu@gmail.com>
15511
15512 * w32font.c: Include ctype.h.
15513
155142008-06-11 Jason Rumney <jasonr@gnu.org>
15515
15516 * w32font.c (w32font_encode_char): Detect missing glyphs that are
15517 misreported as space.
15518 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
15519 as aliases for registry iso10646-1.
15520
155212008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
15522
15523 * buffer.c (clone_per_buffer_values): Skip `name'.
15524
155252008-06-11 Chong Yidong <cyd@stupidchicken.com>
15526
15527 * font.c (font_parse_fcname): Fix last change; accept decimal
15528 points in font size.
15529
155302008-06-10 Jason Rumney <jasonr@gnu.org>
15531
15532 * w32uniscribe.c (add_opentype_font_name_to_list):
15533 Skip non unicode fonts.
15534
155352008-06-10 Chong Yidong <cyd@stupidchicken.com>
15536
15537 * xfns.c (Fx_font_dialog): New function.
15538
15539 * gtkutil.c (xg_dialog_response_cb): Rename from
15540 xg_file_response_callback.
15541 (pop_down_dialog): Rename from pop_down_file_dialog.
15542 (xg_get_file_name): Callers changed.
15543 (xg_get_font_name): New function.
15544
15545 * gtkutil.h (xg_get_font_name): Insert prototype.
15546
155472008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15548
15549 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
15550 x_underline_minimum_display_offset.
15551 (syms_of_xdisp): Declare it here rather than in xterm.c.
15552 * dispextern.h (underline_minimum_offset): Declare it.
15553 * w32term.c (x_draw_glyph_string): Use it.
15554 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
15555 (syms_of_xterm): Don't declare it any more.
15556 (x_draw_glyph_string): Adjust to the new name.
15557
8719abec 155582008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
15559
15560 * xterm.c (x_underline_minimum_display_offset): New var.
15561 (x_draw_glyph_string): Use it.
15562 (syms_of_xterm): Declare it.
15563
155642008-06-10 Chong Yidong <cyd@stupidchicken.com>
15565
15566 * font.c (font_parse_fcname): Accept GTK-style font names too.
15567
155682008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15569
15570 * dired.c (file_name_completion): Don't return t if the match is exact
15571 but with different capitalization.
15572 * minibuf.c (Ftry_completion): Simplify.
15573
15574 * window.c (Vwindow_point_insertion_type): New var.
15575 (set_window_buffer): Use it.
15576 (syms_of_window): Init and export it to Lisp.
15577
155782008-06-10 Kenichi Handa <handa@m17n.org>
15579
15580 * font.h (font_intern_prop): Prototype adjusted.
15581
15582 * font.c (font_intern_prop): New arg force_symbol.
15583 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
15584 Adjust for the change of font_intern_prop.
15585
15586 * ftfont.c (ftfont_pattern_entity):
15587 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
15588 (w32_registry):
15589 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
15590 the change of font_intern_prop.
15591
155922008-06-09 Juanma Barranquero <lekktu@gmail.com>
15593
15594 * w32menu.c (digest_single_submenu): Declare extern.
15595
155962008-06-09 Jason Rumney <jasonr@gnu.org>
15597
15598 * w32term.c (x_make_frame_visible): Use alternate restore flags.
15599
15600 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
15601 (parse_single_submenu): Remove.
15602 (digest_single_submenu): Remove.
15603 (syms_of_w32menu): Don't initialise variables that have moved
15604 to menu.c.
15605 (set_frame_menubar): Sync with version in xmenu.c.
15606 (w32_menu_show): Sync with xmenu_show in xmenu.c.
15607
15608 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
15609 Make static again.
15610
156112008-06-09 Jason Rumney <jasonr@gnu.org>
15612
15613 Changes to w32 files related to the move of common menu code
15614 to menu.c on 2008-06-08 by Chong Yidong.
15615
15616 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
15617 defs to w32gui.h.
15618 (single_keymap_panes, push_menu_item, push_menu_pane):
15619 Make globally visible.
15620
15621 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
15622 (local_free, malloc_widget_value, free_widget_value)
15623 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
15624 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
15625 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
15626 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
15627 (menu_items, menu_items_allocated, menu_items_used)
15628 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
15629 (init_menu_items, finish_menu_items, discard_menu_items)
15630 (grow_menu_items, push_submenu_start, push_submenu_end)
15631 (push_left_right_boundary, push_menu_pane, push_menu_item)
15632 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
15633 (free_menubar_widget_tree_value, parse_single_submenu)
15634 (update_submenu_strings): Remove functions.
15635 (xmalloc_widget_value): Remove and declare extern.
15636
15637 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
15638 (OBJ1): Build it.
15639
15640 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
15641 (local_heap, local_alloc, local_free, malloc_widget_value)
15642 (free_widget_value): Define here.
15643
156442008-06-09 Kenichi Handa <handa@m17n.org>
15645
15646 * font.h (Qascii_0): Extern it.
15647
15648 * font.c (Qascii_0): New variable.
15649 (syms_of_font): DEFSYM it.
15650 (font_open_by_name): If the registry "iso8859-1" fails, try also
15651 "ascii-0".
15652
15653 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
15654
156552008-06-08 Kenichi Handa <handa@m17n.org>
15656
15657 * .gdbinit (xfont): New command.
15658
156592008-06-08 Andreas Schwab <schwab@suse.de>
15660
15661 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
15662 * Makefile.in (menu.o): Update dependencies.
15663
15664 * Makefile.in (obj): Always add menu.o.
15665 * emacs.c (main): Always call syms_of_menu.
15666 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
15667
156682008-06-08 Chong Yidong <cyd@stupidchicken.com>
15669
15670 * Makefile.in: Compile menu.c.
15671
15672 * lisp.h: Declare syms_of_menu.
15673
15674 * emacs.c (main): Call syms_of_menu.
15675
15676 * keyboard.h: Relocate platform-independent menu definitions from
15677 xmenu.c.
15678
15679 * menu.c: New file. Relocate platform-independent menu
15680 definitions from xmenu.c. Suggested by Adrian Robert.
15681
15682 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 15683 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
15684 (menu_items_used, menu_items_n_panes)
15685 (menu_items_submenu_depth): Move to keyboard.h.
15686 (init_menu_items, finish_menu_items, unuse_menu_items)
15687 (discard_menu_items, restore_menu_items, save_menu_items)
15688 (grow_menu_items, push_submenu_start, push_submenu_end)
15689 (push_left_right_boundary, push_menu_pane, push_menu_item)
15690 (keymap_panes, single_keymap_panes, single_menu_item)
15691 (list_of_panes, list_of_items, find_and_call_menu_selection)
15692 (xmalloc_widget_value, free_menubar_widget_value_tree)
15693 (parse_single_submenu, digest_single_submenu)
15694 (update_submenu_strings): Move to menu.c.
15695
156962008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
15697
15698 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
15699
157002008-06-06 Miles Bader <miles@gnu.org>
15701
15702 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
15703 face, not frame default.
15704
157052008-06-05 Martin Rudalics <rudalics@gmx.at>
15706
15707 * window.c (pop_up_windows, pop_up_frames)
15708 (display_buffer_reuse_frames, Vpop_up_frame_function)
15709 (Vdisplay_buffer_function, Veven_window_heights)
15710 (Vspecial_display_buffer_names, Vspecial_display_regexps)
15711 (Vspecial_display_function, Vsame_window_buffer_names)
15712 (Vsame_window_regexps, split_height_threshold)
15713 (Vsplit_window_preferred_function): Move those vars to window.el.
15714 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
15715 (Fdisplay_buffer): Move those functions to window.el.
15716 (syms_of_window): Remove corresponding declarations.
15717 (display_buffer): New function.
15718 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
15719 * dispnew.c (Flast_nonminibuf_frame): New function.
15720 * buffer.c (Fpop_to_buffer): Move to window.el.
15721
157222008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15723
15724 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
15725
157262008-06-05 Kenichi Handa <handa@m17n.org>
15727
15728 * coding.c (detect_coding): Fix previous change.
15729 (detect_coding_system): Likewise.
15730
157312008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15732
15733 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
15734
15735 * keymap.c (Vminibuffer_local_filename_must_match_map):
15736 Rename from Vminibuffer_local_must_match_filename_map.
15737 (syms_of_keymap):
15738 * minibuf.c (Fcompleting_read): Adjust accordingly.
15739 * commands.h: Rename declaration as well.
15740
157412008-06-05 Kenichi Handa <handa@m17n.org>
15742
15743 * font.c (Ffont_spec): Don't use font_parse_family_registry for
15744 family name.
15745 (Ffont_put): Likewise.
15746
15747 * fontset.c (fontset_find_font): Call font_open_for_lface with the
15748 current font-spec.
15749
15750 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
15751 is unspecified.
15752
15753 * xfaces.c (realize_x_face): If the font-related face attributes
15754 are the same as those of default face, realize a new fontset from
15755 default->fontset.
15756 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
15757
157582008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15759
15760 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
15761 (move_it_in_display_line): New wrapper.
15762
15763 * window.c (window_scroll_pixel_based_preserve_x)
15764 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
15765 (window_scroll_pixel_based, window_scroll_line_based):
15766 Use them to preserve column positions.
15767 (syms_of_window): Initialize them.
15768
15769 * indent.c (Fvertical_motion): Extend first arg to allow passing an
15770 (HPOS . VPOS) pair.
15771
15772 * dispextern.h (move_it_in_display_line): Declare.
15773
157742008-06-05 Juanma Barranquero <lekktu@gmail.com>
15775
15776 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
15777 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
15778 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
15779
157802008-06-04 Juanma Barranquero <lekktu@gmail.com>
15781
15782 * window.c (Fset_window_parameter): Doc fix.
15783 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
15784
157852008-06-04 Joakim Verona <joakim@verona.se>
15786
15787 * window.h (struct window): Add new member window_parameters.
15788
15789 * window.c (Fwindow_parameters, Fwindow_parameter)
15790 (Fset_window_parameter): New defuns.
15791 (syms_of_window): Defsubr the new defuns.
15792 (make_window): Initialize window_parameters to nil.
15793
157942008-06-04 John Paul Wallington <jpw@pobox.com>
15795
15796 * eval.c (Fdefmacro): Doc fix.
15797
157982008-06-04 Kenichi Handa <handa@m17n.org>
15799
15800 * coding.c (detect_coding): Fix handling of coding->head_ascii.
15801 Be sure to call setup_coding_system when we find a proper coding system.
15802 (detect_coding_system): Fix handling of coding->head_ascii.
15803
158042008-06-03 Andreas Schwab <schwab@suse.de>
15805
15806 * font.c (font_prop_validate_spacing): Fix last change.
15807
158082008-06-03 Kenichi Handa <handa@m17n.org>
15809
15810 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
15811 (font_parse_fcname): Fix handling of unknown key.
15812
15813 * xfont.c (xfont_list): Try an alias.
15814
15815 * charset.c (char_charset): Return NULL if the arg charset_list is
15816 specified and C doesn't belong to any of them.
15817
158182008-06-02 Chip Coldwell <coldwell@redhat.com>
15819
15820 * font.c (font_pixel_size): Don't take cdr of an integer.
15821
158222008-06-02 Jim Meyering <meyering@redhat.com>
15823
15824 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
15825 * alloc.c (xfree): Return right away for a NULL arg.
15826 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
15827 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
15828 * mac.c (create_apple_event_from_event_ref): Likewise.
15829 (create_apple_event_from_drag_ref, cfstring_create_normalized):
15830 Likewise.
15831 * doprnt.c (doprnt1): Likewise.
15832 * frame.c (frame): Likewise.
15833 * keyboard.c (wipe_kboard): Likewise.
15834 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
15835 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
15836 * term.c (tty_default_color_capabilities, maybe_fatal)
15837 (delete_tty): Likewise.
15838 * w16select.c (string): Likewise.
15839 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
15840 * w32bdf.c (w32_free_bdf_font): Likewise.
15841 * w32fns.c (w32_unload_font): Likewise.
15842 * w32font.c (w32font_close): Likewise.
15843 * window.c (size_window): Likewise.
15844 * xselect.c (receive_incremental_selection): Likewise.
15845 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
15846 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
15847 * w32.c (stat): Likewise.
15848
15849 Remove useless if-before-free tests.
15850 * editfns.c (Fset_time_zone_rule): Likewise.
15851 * lread.c (nosuffix): Likewise.
15852 * ralloc.c (get_bloc): Likewise.
15853 * regex.c (reg_free): Likewise.
15854 * xftfont.c (xftfont_open, xftfont_close): Likewise.
15855 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
15856 * xsmfns.c (smc_save_yourself_CB): Likewise.
15857
158582008-06-02 Kenichi Handa <handa@m17n.org>
15859
15860 * font.c (font_find_for_lface): Handle float font size.
15861 (font_open_for_lface): Likewise.
15862
15863 * xfaces.c (x_supports_face_attributes_p): Check face->font before
15864 comparing the properties.
15865
158662008-06-01 Jason Rumney <jasonr@gnu.org>
15867
15868 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
15869 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
15870 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
15871 Don't add empty script list.
15872 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
15873
158742008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
15875
15876 * Makefile.in (dot, dotdot): Remove, update users.
15877 ".." has been used elsewhere in the file for a long time.
15878 (LIBXT_STATIC): Remove conditional based on unused variable.
15879
158802008-06-01 Miles Bader <miles@gnu.org>
15881
15882 * xfaces.c (Vface_remapping_alist): New variable.
15883 (syms_of_xfaces): Initialize it.
15884 (enum named_merge_point_kind): New type.
15885 (struct named_merge_point): Add `named_merge_point_kind' field.
15886 (push_named_merge_point): Make cycle detection respect different
15887 named-merge-point kinds.
15888 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
15889 Remove face-name alias resolution.
15890 (lface_from_face_name): New definition using
15891 `lface_from_face_name_no_resolve'.
15892 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
15893 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
15894 (get_lface_attributes): New definition that layers face-remapping on
15895 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
15896 (lookup_basic_face): New function.
15897 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
15898 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
15899 `get_lface_attributes'.
15900 (face_at_buffer_position): Use `lookup_basic_face' to lookup
15901 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
15902 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
15903
15904 * xdisp.c (init_iterator): Pass base_face_id through
15905 `lookup_basic_face' when we actually use it as a face-id.
15906 (handle_single_display_prop): Use `lookup_basic_face' to lookup
15907 DEFAULT_FACE_ID.
15908
15909 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
15910 lookup the initial face-id.
15911
15912 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
15913
159142008-06-01 Juanma Barranquero <lekktu@gmail.com>
15915
15916 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
15917 (Fremove_text_properties): Fix typos in docstrings.
15918
159192008-05-31 Kenichi Handa <handa@m17n.org>
15920
15921 * font.c (font_list_entities): Fix the car part of data to be
15922 stored in the cache.
15923
15924 * ftfont.c (ftfont_font_format): Don't use strcasestr.
15925
159262008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15927
15928 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
15929 Add a `test' argument so another predicate than `equal' can be used.
15930 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
15931 (map_char_table): Remove unused vars `c' and `i'.
15932 * lisp.h (Foptimize_char_table): Adjust declaration.
15933 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
15934
159352008-05-30 Kenichi Handa <handa@m17n.org>
15936
15937 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
15938 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
15939 defined.
15940
159412008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15942
15943 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
15944 (Fmake_variable_frame_local): Disallow mixing buffer-local and
15945 frame-local settings for the same variable.
15946
159472008-05-30 Kenichi Handa <handa@m17n.org>
15948
15949 * fontset.c (Ffont_info): Move to font.c.
15950 (syms_of_fontset): Delete defsubr of Sfont_info.
15951
15952 * font.c (font_style_to_value, font_score): Delete casting of the
15953 args to xstcasecmp.
15954 (register_font_driver): Increment num_font_drivers only when
15955 registering the driver globally.
15956 (Ffont_info): Move from fontset.c. Handle a font object too.
15957 (syms_of_font): Defsubr Sfont_info.
15958
159592008-05-29 Kenichi Handa <handa@m17n.org>
15960
15961 * coding.h (enum define_coding_utf8_arg_index): New enum.
15962 (enum coding_attr_index): Change coding_attr_utf_16_bom to
15963 coding_attr_utf_bom.
15964 (enum utf_bom_type): Rename from utf_16_bom_type.
15965 (struct utf_16_spec): Adjust for the above change.
15966 (struct coding_system): Add utf_8_bom in `spec' union.
15967
15968 * coding.c (CODING_UTF_8_BOM): New macro.
15969 (enum coding_category): Delete coding_category_utf_8, add
15970 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
15971 coding_category_utf_8_sig.
15972 (CATEGORY_MASK_UTF_8): Delete it.
15973 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
15974 (CATEGORY_MASK_UTF_8_SIG): New macros.
15975 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
15976 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
15977 CATEGORY_MASK_UTF_8_SIG.
15978 (CATEGORY_MASK_UTF_8): New macro.
15979 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
15980 (detect_coding_utf_8): Check BOM.
15981 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
15982 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
15983 (encode_coding_utf_16): Likewise.
15984 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
15985 (detect_coding, detect_coding_system): Handle utf-8-auto.
15986 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
15987 (syms_of_coding): Fix setting up of Vcoding_category_table.
15988
159892008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
15990
15991 * process.c (Faccept_process_output): If `millisec' is non-nil,
15992 `seconds' default to 0.
15993 (wait_reading_process_output): Also return non-nil if we read output
15994 from a non-running process.
15995
159962008-05-29 Jason Rumney <jasonr@gnu.org>
15997
15998 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
15999 `raster' specified.
16000 (add_font_entity_to_list): Allow non-opentype truetype fonts back
16001 in the uniscribe backend, but disallow any font that has no
16002 unicode subrange support.
16003
160042008-05-29 Juanma Barranquero <lekktu@gmail.com>
16005
16006 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
16007 Fix typos in docstrings.
16008
160092008-05-29 Kenichi Handa <handa@m17n.org>
16010
16011 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
16012 (Fx_family_fonts): Set frame correctly.
16013
160142008-05-28 Jason Rumney <jasonr@gnu.org>
16015
16016 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
16017
160182008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
16019
16020 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
16021 calling build_annotations.
16022
160232008-05-28 Juanma Barranquero <lekktu@gmail.com>
16024
16025 * coding.c (Fdecode_coding_region, Fencode_coding_region)
16026 (Fencode_coding_string):
16027 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
16028 <latin-extra-code-table>: Fix typos in docstrings.
16029 (syms_of_coding) <coding-system-alist>: Doc fix.
16030 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
16031
160322008-05-28 Kenichi Handa <handa@m17n.org>
16033
16034 * fontset.c (Ffont_info): Don't call font_close_object.
16035
16036 * font.c (font_parse_family_registry): Use Ffont_put to validate
16037 foundry and family.
16038 (font_delete_unmatched): Don't check spacing.
16039 (font_list_entities): Add spacing to the spec to list fonts.
16040
16041 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
16042 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
16043
16044 * coding.c (encode_coding_raw_text): Fix previous change.
16045 (encode_coding_object): When the dst_object is a buffer and is
16046 different from src_object, move gap to PT.
16047
160482008-05-27 Chong Yidong <cyd@stupidchicken.com>
16049
16050 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
16051
160522008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
16053
16054 * coding.c (encode_coding_raw_text): Set coding->produced_char for
16055 all branches. Compute it differently.
16056
16057 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
16058
160592008-05-27 Juanma Barranquero <lekktu@gmail.com>
16060
16061 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
16062 into "else if () ... else ...".
16063
160642008-05-27 Jason Rumney <jasonr@gnu.org>
16065
16066 * w32font.c (w32font_open_internal): Determine if glyph indices
16067 are likely to work here.
16068
160692008-05-27 Chong Yidong <cyd@stupidchicken.com>
16070
16071 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
16072 draw overlap glyphs with appropriate highlighting.
16073
160742008-05-27 Kenichi Handa <handa@m17n.org>
16075
16076 * xfont.c (xfont_open): Fix calculation of font->average_width.
16077
160782008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
16079
16080 * casefiddle.c (casify_object): Try to guess better whether the
16081 argument is a byte or a char.
16082
160832008-05-26 Andreas Schwab <schwab@suse.de>
16084
16085 * xselect.c (x_reply_selection_request): Properly handle format == 32.
16086 Always send multiples of format size.
16087
16088 * xterm.c (x_set_frame_alpha): Fix type mismatch.
16089
160902008-05-26 Jason Rumney <jasonr@gnu.org>
16091
16092 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
16093 (compute_metrics): Don't set failure if we just cleared the cache.
16094 (w32_weight_table): Remove unused variable.
16095 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
16096 backwards compatibility.
16097
160982008-05-25 Kenichi Handa <handa@m17n.org>
16099
16100 * w32term.c (x_draw_glyph_string):
16101 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
16102
16103 * xfaces.c: Delete unused function prototypes.
16104 (xstrlwr, font_frame): Delete them.
16105 (clear_face_cache): Delete unused variable.
16106
16107 * xftfont.c (xftfont_open): Delete unused variable.
16108 If underline_thickness is not 1, adjust underline_position.
16109
16110 * ftxfont.c (ftxfont_open): Delete unused variable.
16111
16112 * fontset.c (face_for_char): Optimize for the case of no charset
16113 property.
16114
16115 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
16116 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
16117 (otf_open, font_otf_capability, generate_otf_features)
16118 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16119 Comment out by surrounding "#if 0" and "#endif" for the moment.
16120 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
16121 (syms_of_font): Codes for accessing above commented out.
16122
161232008-05-24 Eli Zaretskii <eliz@gnu.org>
16124
16125 * w32proc.c: Include dispextern.h.
16126
16127 * w32.c: Include dispextern.h.
16128
161292008-05-23 Juanma Barranquero <lekktu@gmail.com>
16130
16131 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
16132 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
16133 Fix typos in docstrings.
16134
161352008-05-23 Jason Rumney <jasonr@gnu.org>
16136
16137 * xsmfns.c: Remove includes that are already included by config.h.
16138
161392008-05-23 Kenichi Handa <handa@m17n.org>
16140
16141 * charset.c (Qemacs, charset_emacs): New variables.
16142 (char_charset): Fix for non-Unicode characters.
16143 (syms_of_charset): Define charset_emacs.
16144
16145 * w32term.c (x_draw_glyph_string): Be sure to update
16146 s->underline_thickness and s->underline_position. Be sure to draw
16147 underline within the current line area.
16148
16149 * xterm.c (x_draw_glyph_string): Be sure to update
16150 s->underline_thickness and s->underline_position. Be sure to draw
16151 underline within the current line area.
16152
16153 * fontset.c: Delete unused variables and add casting for char *
16154 throughout the file.
16155 (fontset_font): Try the fallback fonts of the current fontset
16156 before consulting the default fontset.
16157
16158 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
16159
16160 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
16161
161622008-05-22 Jason Rumney <jasonr@gnu.org>
16163
16164 * font.c: Don't include strings.h.
16165
16166 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
16167
16168 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
16169 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
16170 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
16171 to call xstrcasecmp.
16172
16173 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
16174
16175 * fontset.c (fs_query_fontset): Use xstrcasecmp.
16176
16177 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
16178
16179 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
16180
161812008-05-22 Kenichi Handa <handa@m17n.org>
16182
16183 * puresize.h (BASE_PURESIZE): Increase to 1220000.
16184
16185 * font.c (font_prop_validate_style): Adjust for the format
16186 change of font_style_table.
16187
16188 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
16189 two args.
16190
16191 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
16192 two args.
16193
161942008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
16195
16196 * minibuf.c (keys_of_minibuf): Delete.
16197 * lisp.h (keys_of_minibuf): Delete.
16198 * emacs.c (main): Don't call keys_of_minibuf.
16199
162002008-05-22 Kenichi Handa <handa@m17n.org>
16201
16202 * ftfont.c (ftfont_resolve_generic_family): Rename from
16203 ftfont_list_generic_family. Return a single family for each
16204 generic family.
16205 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
16206 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
16207 Call font_add_log.
16208 (ftfont_match): Call font_add_log.
16209
16210 * font.h (Ffont_xlfd_name): EXFUN adjusted.
16211 (FONT_DEBUG): Define it.
16212 (font_add_log): Extern it.
16213 (font_assert): Rename from xassert.
16214
16215 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
16216 (xfont_list_family): Call font_add_log.
16217 (xfont_match): Likewise.
16218 (memq_no_quit): Delete.
16219
16220 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
16221 call of Ffont_xlfd_name.
16222
16223 * xfaces.c (struct table_entry, slant_table, weight_table)
16224 (swidth_table): Move to font.c.
16225
16226 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
16227 xassert are changed to font_assert. Delete many unused variables.
16228 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
16229 New variables.
16230 (struct table_entry): Move from xfaces.c and modified.
16231 (weight_table, slant_table, width_table): Move from xfaces.c and
16232 contents adjusted for the change of struct table_entry.
16233 (font_style_to_value, font_style_symbolic): Adjust for the
16234 format change of font_style_table.
16235 (font_parse_family_registry): Don't overwrite existing foundry and
16236 family of font_spec.
16237 (font_score): Fix calculation of diff for sizes.
16238 (font_sort_entites): Call font_add_log.
16239 (font_delete_unmatched): Return a newly created list.
16240 (font_list_entities): Fix previous change. Call font_add_log.
16241 (font_matching_entity, font_open_entity, font_close_entity):
16242 Call font_add_log.
16243 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
16244 (Finternal_set_font_style_table): Delete.
16245 (BUILD_STYLE_TABLE): New macro.
16246 (build_style_table): New function.
16247 (Vfont_log, font_log_env_checked): New variables.
16248 (font_add_log): New function.
16249 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
16250 Declare Lisp variables "font-weight-table", "font-slant-table",
16251 "font-width-table", and "font-log". Initialize font_style_table.
16252
162532008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
16254
16255 * xterm.c (x_set_frame_alpha): Move declarations before statements.
16256
162572008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 16258 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
16259
16260 * frame.c (Qalpha): Add a new frame parameter `alpha'.
16261 (Vframe_alpha_lower_limit): New variable.
16262 (x_set_alpha): New function.
16263
16264 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
16265
16266 * xfns.c (x-create-frame, Qalpha):
16267 Initialize the frame parameter `alpha'.
16268 * xterm.c (OPAQUE, OPACITY): New.
16269 (x_set_frame_alpha): New function.
16270 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
16271
16272 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
16273 * w32fns.c (w32_frame_parm_handlers): Likewise.
16274
162752008-05-20 Jason Rumney <jasonr@gnu.org>
16276
16277 * w32font.c (add_font_entity_to_list): Don't add non-opentype
16278 truetype fonts to opentype list.
16279
162802008-05-20 Juanma Barranquero <lekktu@gmail.com>
16281
16282 * fontset.c (Ffontset_info): Doc fix.
16283 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
16284 <ignore-relative-composition>: Fix typos in docstrings.
16285
16286 * font.c (syms-of-font) <font-encoding-alist>:
16287 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
16288 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
16289 (Ffont_otf_alternates): Doc fixes.
16290
162912008-05-20 Kenichi Handa <handa@m17n.org>
16292
16293 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
16294 font.h through out the file.
16295 (FONT_DRIVERS): Rename from FONTOBJ.
16296 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
16297 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
16298
16299 * emacs.c (main): Call syms_of_font unconditionally.
16300
16301 * font.h (find_font_encoding): Extern it.
16302
16303 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
16304 fontset.c.
194d44e7 16305 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
16306 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
16307 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
16308 only when HAVE_WINDOW_SYSTEM is defined.
16309 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
16310 when HAVE_WINDOW_SYSTEM is defined.
16311
16312 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
16313 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
16314
16315 * xfaces.c: Include font.h unconditionally.
16316 (merge_face_ref, merge_face_vectors)
16317 (Finternal_set_lisp_face_attribute): Cancel the previous change.
16318
163192008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
16320
16321 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
16322 indirect_variable.
16323 * eval.c (lisp_indirect_variable): New fun.
16324 (Fuser_variable_p): Use it.
16325
163262008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
16327
16328 * lisp.h (indirect_variable):
16329 * data.c (indirect_variable, let_shadows_buffer_binding_p):
16330 Use Lisp_Symbol pointers rather than Lisp_Object.
16331 Adjust callers.
16332 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
16333 To this end, change calling-convention.
16334
16335 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
16336 if some non-hidden buffers are selected by string&pred.
16337
163382008-05-19 Chong Yidong <cyd@stupidchicken.com>
16339
16340 * process.c (wait_reading_process_output): Always check status
16341 when in batch mode.
16342
163432008-05-19 Kenichi Handa <handa@m17n.org>
16344
16345 * font.c (font_list_entities): Fix handling of cache.
16346 (font_matching_entity): Likewise.
16347
16348 * ftfont.c (cs_iso8859_1): Delete.
16349 (ft_face_cache): New variable.
16350 (struct ftfont_info): New member fc_charset_idx.
16351 (ftfont_build_basic_charsets): Delete.
16352 (fc_charset_table): New variable.
16353 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
16354 . FC_CHARSET_IDX) as :font-entity property in the font entity.
16355 Callers changed.
16356 (ftfont_lookup_cache, ftfont_get_charset): New functions.
16357 (ftfont_spec_pattern): New argument fc_charset_idx.
16358 Check registry more rigidly. Change callers.
16359 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
16360 change of :font-entity property of the font.
16361
16362 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
16363 property of the font.
16364
163652008-05-18 Juanma Barranquero <lekktu@gmail.com>
16366
16367 * coding.c (Fcoding_system_p): Rename argument to match docstring.
16368 (Funencodable_char_position, Fcheck_coding_systems_region)
16369 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
16370 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
16371 (Ffind_operation_coding_system, Fset_coding_system_priority)
16372 (Fcoding_system_eol_type): Doc fixes.
16373
163742008-05-17 Glenn Morris <rgm@gnu.org>
16375
16376 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
16377
163782008-05-16 Eli Zaretskii <eliz@gnu.org>
16379
16380 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
16381 and st_gid.
16382
16383 * frame.c (Fdelete_frame): Don't call font_update_drivers if
16384 HAVE_WINDOW_SYSTEM is not defined.
16385
16386 * xfaces.c (merge_face_ref, merge_face_vectors)
16387 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
16388 HAVE_WINDOW_SYSTEM is defined.
16389 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
16390
163912008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
16392
16393 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
16394
163952008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16396
16397 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
16398
163992008-05-15 Kenichi Handa <handa@m17n.org>
16400
16401 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
16402 preference.
16403
164042008-05-15 Glenn Morris <rgm@gnu.org>
16405
16406 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
16407
164082008-05-15 Chong Yidong <cyd@stupidchicken.com>
16409
16410 * fns.c (init_fns): Don't initialize weak_hash_tables here.
16411 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
16412
16413 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
16414
164152008-05-15 Kenichi Handa <handa@m17n.org>
16416
16417 * ftfont.c (ftfont_list): Downcase family name to check generic
16418 families.
16419
16420 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
16421 font-spec for QCfont value.
16422
16423 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
16424 buffer. Check the return value of it.
16425
164262008-05-14 Jason Rumney <jasonr@gnu.org>
16427
16428 * w32term.c (w32_get_glyph_overhangs): Remove.
16429 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
16430
164312008-05-14 Kenichi Handa <handa@m17n.org>
16432
16433 * font.c (font_prop_validate): Make nil a valid value.
16434 (font_clear_cache): Check if the cached vector of entities is nil
16435 or not.
16436
164372008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16438
16439 * emacs.c (main_thread): Conditionalize on
16440 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16441 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
16442
16443 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
16444 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
16445 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16446
164472008-05-14 Kenichi Handa <handa@m17n.org>
16448
16449 * coding.c (detect_coding_iso_2022): Ignore a coding category that
16450 has no corresponding coding system.
16451
164522008-05-14 Jason Rumney <jasonr@gnu.org>
16453
16454 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
16455
16456 * w32font.h (w32font_open_internal): Update declaration.
16457
16458 * w32font.c (w32font_open_internal): Change last argument from
16459 w32font_info struct to font object. Fill in font object from
16460 font_entity. Get Outline metrics if possible. Use them to
16461 calculate underline position and thickness. Use xlfd name as name
16462 property. Don't set codepage.
16463 (w32font_open): Pass font_object to w32font_open_internal. Don't
16464 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
16465 (w32font_draw): Use s->font.
16466 (clear_cached_metrics): Don't clear non-existent blocks.
16467
16468 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
16469 font was not found.
16470 (x_draw_glyph_string): Use underline position and thickness from font.
16471
16472 * w32uniscribe.c (uniscribe_open): Pass font_object to
16473 w32font_open_internal.
16474
164752008-05-14 Kenichi Handa <handa@m17n.org>
16476
16477 These changes are to delete all legacy font-handling codes, and
16478 make Emacs use only font-backends.
16479
16480 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
16481 (frame.o, image.o, print.o): Depend on $(FONTSRC).
16482
16483 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
16484
16485 * charset.h (Vcharset_non_preferred_head)
16486 (Vcurrent_iso639_language): Extern them.
16487
16488 * charset.c (Vcharset_non_preferred_head): New variable.
16489 (Vcurrent_iso639_language): New variable.
16490 (syms_of_charset): Declare it as a Lisp variable.
16491 (char_charset): Don't check non preferred charsets. As a last
16492 resort, return charset_unicode.
16493 (Fset_charset_priority): Update Vcharset_non_preferred_head.
16494
16495 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
16496 conditionals. Don't check enable_font_backend. Delete all codes
16497 used only when USE_FONT_BACKEND is not defined.
16498
16499 * dispextern.h (struct glyph_string): Change type of `font' to
16500 `struct font *'.
16501 (struct glyph_string): New member underline_position and
16502 underline_thickness.
16503 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
16504 (struct face): Change type of `font' to `struct font *'. Remove
16505 members `font_name', `font_info_id'.
16506 (per_char_metric, encode_char): Delete externs.
16507 (calc_pixel_width_or_height): Adjust the prototype.
16508
16509 * emacs.c (enable_font_backend): Delete extern.
16510 (main): Don't set enable_font_backend. Don't check the command
16511 line argument "-disable-font-backend".
16512
16513 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
16514 (enum font_property_index): New members FONT_DPI_INDEX,
16515 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
16516 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
16517 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
16518 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
16519 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
16520 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
16521 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
16522 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
16523 (struct font_spec, struct font_entity): New structs.
16524 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
16525 (struct font): Many members from old "struct font_info" moved to
16526 here. Members font and entity deleted.
16527 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
16528 the new font-related objects.
16529 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
16530 (CHECK_FONT_GET_OBJECT): Likewise.
16531 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
16532 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
16533 (struct font_driver): New members case_sensitive anc check. Type
16534 of the member list and open changed.
16535 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
16536 (font_symbolic_width, font_find_object, font_get_spec)
16537 (font_set_lface_from_name): Delete extern.
16538 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
16539
16540 * font.c: Include <strings.h>.
16541 (enable_font_backend): Delete it.
16542 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
16543 (CHECK_VALIDATE_FONT_SPEC): Delete it.
16544 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
16545 (null_string): Delete it.
16546 (null_vector): Make it static.
16547 (font_family_alist): Delete it.
16548 (Qnormal): Extern it.
16549 (QCextra, QClanguage): Delete it.
16550 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
16551 (font_make_spec, font_make_entity, font_make_object)
16552 (font_intern_prop): Renamed from intern_downcase. Don't downcase
16553 the string. Callers changed.
16554 (font_pixel_size): Adjusted for the format change of font-related
16555 objects.
16556 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
16557 (font_style_to_value, font_style_symbolic): New function.
16558 (build_font_family_alist): Delete it.
16559 (font_registry_charsets): Use Fassoc_string instead of
16560 assq_no_quit.
16561 (font_prop_validate_symbol): Don't return null_string.
16562 (font_prop_validate_style): Adjusted for the change of
16563 style-related values in a font vector.
16564 (font_property_table): Delete entries for QClanguage and
16565 QCantialias, add entries for QCavgwidth.
16566 (get_font_prop_index): Delete the 2nd argument FROM.
16567 (font_prop_validate): Arguments changed.
16568 (font_put_extra): Adjusted for the change of font-related objects.
16569 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
16570 (font_parse_fcname, font_unparse_fcname)
16571 (font_prepare_composition): Likewise.
16572 (font_parse_family_registry): Renamed from font_merge_old_spec.
16573 (otf_open): Delete the 1st arg entity.
16574 (font_otf_capability): Adjusted for the above change.
16575 (font_score): New arg alternate_families. Adjusted for the change
16576 of font-related objects.
16577 (font_sort_entites): New arg best_only.
16578 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
16579 Delete them.
16580 (font_match_p): Check alternate families.
16581 (font_find_object): Delete it.
16582 (font_check_object): New function.
16583 (font_clear_cache): Adjusted for the change of font-related objects.
16584 (font_delete_unmatched): New arg.
16585 (font_list_entities): Call font_driver->list with a spec that
16586 doesn't specify style-related properties.
16587 (font_matching_entity): Arguments changed. Caller changed.
16588 (font_open_entity): Adjusted for the change of font-related objects.
16589 (font_close_object, font_has_char, font_encode_char)
16590 (font_get_name, font_get_spec): Likewise.
16591 (font_spec_from_name, font_clear_prop, font_update_lface):
16592 New functions.
16593 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
16594 (font_prepare_for_face, font_done_for_face, font_open_by_name)
16595 (font_at): Adjusted for the change of font-related objects.
16596 (font_range): New function.
16597 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
16598 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
16599 (Fcopy_font_spec, Fmerge_font_spec): New function.
16600 (Ffont_family_list): Renamed from list-families.
16601 (Finternal_set_font_style_table): Arguments changed.
16602 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
16603 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
16604 change of font-related objects.
16605 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
16606
16607 * fontset.h (struct font_info): Delete it. Most members go to
16608 struct font.
16609 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
16610 (enum FONT_SPEC_INDEX): Delete it.
16611 (font_info, list_fonts_func, load_font_func, query_font_func)
16612 (set_frame_fontset_func, find_ccl_program_func)
16613 (get_font_repertory_func, new_fontset_from_font_name): Delete
16614 externs.
16615 (fontset_from_font_name): Extern it.
16616 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
16617 (FONT_INFO_FROM_FACE): Deleted.
16618 (face_for_font): Adjust prototype.
16619
16620 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
16621 conditionals. Don't check enable_font_backend. Delete all codes
16622 used only when USE_FONT_BACKEND is not defined.
16623 (get_font_info_func, list_font_func, load_font_func)
16624 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
16625 (get_font_repertory_func): Delete them.
16626 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
16627 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
16628 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
16629 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
16630 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
16631 (fontset_compare_rfontdef): New function.
16632 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
16633 rfont-defs by qsort. Adjusted for the change of font-group vector.
16634 (load_font_get_repertory): Deleted.
16635 (fontset_find_font): Use new macros to ref/set elements of
16636 font-def and rfont-def.
16637 (fontset_font): Fix the timing of remembering that no font for C.
16638 (free_face_fontset): Do nothing if the face has no fontset.
16639 (face_suitable_for_char_p): Use new macros to ref/set elements of
16640 rfont-def.
16641 (face_for_char): Likewise. Call face_for_char with font_object.
16642 (fs_load_font): Delete. Delete #pragma surrounding it.
16643 (fs_query_fontset): Use strcasecmp instead of strcmp.
16644 (generate_ascii_font_name): Adjusted for the format change of
16645 font-spec.
16646 (Fset_fontset_font): Likewise. Use new macros to set elements of
16647 font-def.
16648 (Fnew_fontset): Use font_unparse_xlfd to generate
16649 FONTSET_ASCII (fontset).
16650 (new_fontset_from_font_name): Deleted.
16651 (fontset_from_font): Renamed from new_fontset_from_font. Check if
16652 a fontset is already created for the font. FIx updating of
16653 Vfontset_alias_alist.
16654 (fontset_ascii_font): Deleted.
16655 (Ffont_info): Adjusted for the format change of font-spec.
16656 (Finternal_char_font): Likewise.
16657 (Ffontset_info): Likewise.
16658 (syms_of_fontset): Don't check load_font_func.
16659
16660 * fns.c (internal_equal): Handle PREV_FONT.
16661
16662 * frame.h: Delete USE_FONT_BACKEND conditional.
16663
16664 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
16665 conditionals. Don't check enable_font_backend. Delete all codes
16666 used only when USE_FONT_BACKEND is not defined.
16667 (x_set_font): Call x_new_font, not x_new_fontset2.
16668 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
16669 already set for the frame.
16670
16671 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
16672 a font-entity by font_make_entity. Use font_intern_prop instead
16673 of intern_downcase. Use FONT_SET_STYLE to set a style-related
16674 font property. If a font is scalable, set avgwidth property to 0.
16675 Set font-entity property by font_put_extra.
16676 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
16677 (ffont_driver): Adjusted for the change of struct font_driver.
16678 (ftfont_spec_pattern): New function.
16679 (ftfont_list): Return a list, not vector.
16680 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
16681 (ftfont_list_family): Don't downcase names.
16682 (ftfont_free_entity): Deleted.
16683 (ftfont_open): Return a font-object. Adjusted for the change of
16684 struct font. Get underline_thickness and underline_position from
16685 font property. Don't update dpyinfo->smallest_font_height and
16686 dpyinfo->smallest_char_width.
16687 (ftfont_close): Don't free `struct font'.
16688 (ftfont_has_char): Adjusted for the format change of font-entity.
16689 (ftfont_encode_char, ftfont_text_extents): Likewise.
16690
16691 * ftxfont.c (ftxfont_list): Return a list, not vector.
16692 (ftxfont_open): Return a font-object. Adjusted for the change of
16693 struct font. Get underline_thickness and underline_position from
16694 font property. Don't update dpyinfo->smallest_font_height and
16695 dpyinfo->smallest_char_width.
16696 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
16697 (ftxfont_draw): Adjusted for the change of struct font.
16698
16699 * image.c (image_ascent): Don't include "charset.h". Include
16700 "character.h" and "font.h".
16701
16702 * lisp.h (enum pvec_type): New member PREV_FONT.
16703 (Fassoc_string): EXFUN it.
16704
16705 * print.c: Include font.h.
16706 (print_object): Handle font-related objects.
16707
16708 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
16709 conditionals. Don't check enable_font_backend. Delete all codes
16710 used only when USE_FONT_BACKEND is not defined.
16711 (handle_auto_composed_prop): Do nothing if it->f is not on a
16712 window system. Check how many following characters can be
16713 displayed by the same font.
16714 (calc_pixel_width_or_height): Type of the 4th arg is changed to
16715 'struct font *'.
16716 (get_char_face_and_encoding): Assign the whole encoding task to
16717 the `encode-char' method of a font driver.
16718 (fill_composite_glyph_string): Adjusted for the change of `struct
16719 face' and `struct glyph_string'.
16720 (fill_glyph_string): Likewise.
16721 (get_per_char_metric): Arguments changed.
16722 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
16723 and `struct glyph_string'.
16724 (produce_stretch_glyph, calc_line_height_property)
16725 (x_produce_glyphs): Likewise.
16726
16727 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
16728 conditionals. Don't check enable_font_backend. Delete all codes
16729 used only when USE_FONT_BACKEND is not defined. Use
16730 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
16731 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
16732 (Qp): Extern them.
16733 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
16734 Deleted.
16735 (struct font_name): Deleted.
16736 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
16737 (compare_fonts_by_sort_order): New function.
16738 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
16739 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
16740 Deleted.
16741 (Fx_family_fonts): Use font_list_entities, and sort fonts by
16742 compare_fonts_by_sort_order.
16743 (Fx_font_family_list): Call Ffont_family_list.
16744 (face_numeric_value, face_numeric_weight, face_numeric_slant)
16745 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
16746 (face_symbolic_slant, face_symbolic_swidth)
16747 (split_font_name_into_vector, build_font_name_from_vector)
16748 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
16749 (font_rescale_ratio, split_font_name, build_font_name)
16750 (free_font_names, sort_fonts, x_face_list_fonts)
16751 (face_font_available_p, sorted_font_list, cmp_font_names)
16752 (font_list_1, concat_font_list, font_list, remove_duplicates):
16753 Deleted.
16754 (Fx_list_fonts): Use Ffont_list.
16755 (LFACE_AVGWIDTH): Deleted.
16756 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
16757 by FONTP.
16758 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
16759 (set_lface_from_font_name): Delete it.
16760 (set_lface_from_font): Renamed from
16761 set_lface_from_font_and_fontset. Caller changed. Don't set
16762 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
16763 for face.
16764 (merge_face_vectors): Copy font-spec if necessary.
16765 Clear properties of the font-spec if necessary.
16766 (merge_face_ref): Clear properties of the font-spec if necessary.
16767 (Finternal_set_lisp_face_attribute): Likewise.
16768 (set_font_frame_param): Use font_load_for_lface to load a
16769 font-object, and call Fmodify_frame_parameters with it.
16770 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
16771 font name by Ffont_xlfd_name.
16772 (Finternal_lisp_face_attribute_values): Don't check QCweight,
16773 QCslant, and QCwidth.
16774 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
16775 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
16776 Compare fonts by EQ.
16777 (lookup_non_ascii_face): Deleted.
16778 (face_for_font): The 2nd argument changed.
16779 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
16780 Check atomic font properties by case insensitive.
16781 (realize_non_ascii_face): Set face->overstrike correctly.
16782 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
16783 (dump_realized_face): Get font name from
16784 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
16785
16786 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
16787 conditionals. Don't check enable_font_backend. Delete all codes
16788 used only when USE_FONT_BACKEND is not defined.
16789 (xic_create_xfontset): Original code deleted and renamed from
16790 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
16791 (x_make_gc): Don't set GCFont in GCs.
16792 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
16793 opened by "fixed".
16794 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
16795 find_ccl_program_func, query_font_func, set_frame_fontset_func,
16796 get_font_repertory_func.
16797
16798 * xfont.c: Include <stdlib.h> and "ccl.h".
16799 (struct xfont_info): New structure.
16800 (xfont_query_font): Deleted.
16801 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
16802 moved from xterm.c.
16803 (xfont_driver): Adjusted for the change of struct font_driver.
16804 (compare_font_names): New function.
16805 (xfont_list_pattern): Sort font names case insensitively. Make
16806 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
16807 (xfont_list): Return a list, not vector.
16808 (xfont_match): If the font doesn't have QCname property, generate
16809 a name from the other font properties.
16810 (xfont_open): Return a font-object. Adjusted for the change of
16811 struct font. Get underline_thickness and underline_position from
16812 font property. Don't update dpyinfo->smallest_font_height and
16813 dpyinfo->smallest_char_width.
16814 (xfont_close): Don't free struct font.
16815 (xfont_prepare_face): Adjusted for the change of struct font.
16816 (xfont_done_face): Deleted.
16817 (xfont_has_char): Adjusted for the change of struct font.
16818 (xfont_encode_char, xfont_draw): Likewise.
16819 (xfont_check): New function.
16820
16821 * xftfont.c (xftfont_list): Adjusted for the change of `list'
16822 callback function.
16823 (xftfont_match): Adjusted for the format change of font-entity.
16824 (xftfont_open): Adjusted for the format change of font-entity and
16825 font-object. Adjusted for the change of struct font. Return a
16826 font-object. Don't update dpyinfo->smallest_font_height and
16827 dpyinfo->smallest_char_width.
16828 (xftfont_close): Block input while calling XftFontClose.
16829 (xftfont_prepare_face): Don't block input while calling
16830 xftfont_get_colors. Adjusted for the change of struct font.
16831 (xftfont_shape): Return value of error case fixed.
16832
16833 * xrdb.c (x_load_resources): Don't setup a fontset resource.
16834
16835 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
16836 conditionals.
16837 (FONT_WIDTH): Return (f)->max_width.
16838 (struct x_display_info): Delete member `font'.
16839 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
16840 (x_find_ccl_program, x_get_font_repertory): Delete externs.
16841 (struct x_output): Change type of `font' to `struct font *'.
16842
16843 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
16844 conditionals. Don't check enable_font_backend. Delete all codes
16845 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
16846 (x_per_char_metric, x_encode_char): Deleted.
16847 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
16848 (x_compute_glyph_string_overhangs): Adjusted for the change of
16849 `struct face'.
16850 (x_draw_glyph_string_foreground)
16851 (x_draw_composite_glyph_string_foreground): Likewise.
16852 (x_draw_glyph_string): Likewise. Use font->underline_position and
16853 font->underline_thickness.
16854 (x_new_font): Renamed from x_new_fontset2.
16855 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
16856 (x_check_font): Call `check' method of a font driver.
16857 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
16858 (x_query_font, x_get_font_repertory): Deleted.
16859 (x_find_ccl_program): Renamed and moved to xfont.c.
16860 (x_redisplay_interface): Adjusted for the change of `struct
16861 redisplay_interface'.
16862
16863 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
16864 conditionals. Don't check enable_font_backend. Delete all codes
16865 used only when USE_FONT_BACKEND is not defined. Surround non-used
16866 code by "#ifdef OLD_FONT" and "endif".
16867 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
16868
16869 * w32font.h (struct w32font_info): New member.
16870 (FONT_COMPAT): New macro.
16871 (w32font_open_internal): Prototype adjusted.
16872
16873 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
16874 OLD_FONT" and "endif".
16875
16876 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
16877 conditionals. Don't check enable_font_backend. Delete all codes
16878 used only when USE_FONT_BACKEND is not defined.
16879 (w32font_open): Return a font-object. Make a font-object by
16880 font_make_object. Adjusted for the change of struct w32font_info.
16881 (w32font_close): Don't free struct font. Adjusted for the change
16882 of struct w32font_info.
16883 (w32font_encode_char, w32font_text_extents, w32font_draw):
16884 Adjusted for the change of struct w32font_info.
16885 (w32font_draw): Likewise.
16886 (w32font_list_internal): Return a list, not vector.
16887 (w32font_open_internal): Change the 4th arg to font-object.
16888 Adjusted for the change of struct w32font_info and font-object format.
16889 (add_font_name_to_list): Don't downcase names.
16890 (w32_enumfont_pattern_entity): Make a font-entity by
16891 font_make_entity. Adjusted for the format change of font-entity.
16892 Use FONT_SET_STYLE to set a style-related font property. If a
16893 font is scalable, set avgwidth property to 0. Set font-entity
16894 property by font_put_extra.
16895 (font_matches_spec): Adjusted for the format change of font-entity.
16896 (w32_weight_table, w32_decode_weight): New variables.
16897 (w32_encode_weight): New function.
16898 (fill_in_logfont): Adjusted for the format change of font-spec.
16899 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
16900 weight value.
16901 (w32font_driver): Adjusted for the change of struct font_driver.
16902
16903 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
16904 conditionals. Don't check enable_font_backend. Surround non-used
16905 code by "#ifdef OLD_FONT" and "endif".
16906 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
16907 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
16908
16909 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
16910 conditionals. Don't check enable_font_backend. Delete all codes
16911 used only when USE_FONT_BACKEND is not defined. Surround non-used
16912 code by "#ifdef OLD_FONT" and "endif".
16913
16914 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
16915 (uniscribe_open): Return value changed to font-object.
16916 Adjusted for the format change of font-object.
16917 (uniscribe_otf_capability): Adjusted for the change of struct font.
16918 (add_opentype_font_name_to_list): Don't downcase names.
16919 (uniscribe_font_driver): Adjusted for the change of struct
16920 font_driver.
16921
169222008-05-13 Chong Yidong <cyd@stupidchicken.com>
16923
16924 * dispnew.c (update_frame_1): Check if tty output is still valid
16925 before flushing it.
16926
169272008-05-13 Jan Djärv <jan.h.d@swipnet.se>
16928
16929 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
16930 to Gtk+ menus.
16931
169322008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
16933
16934 * dired.c (file_name_completion): Tweak the code so as to always do it
16935 in a single pass. Tighten the scope of some variables.
16936
16937 * dired.c (Qdefault_directory): New var.
16938 (file_name_completion): Use it instead of Fexpand_file_name.
16939 (syms_of_dired): Initialize it.
16940
169412008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
16942
16943 * fileio.c (double_dollars): Remove dead code.
16944
169452008-05-10 Eli Zaretskii <eliz@gnu.org>
16946
16947 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
16948 Mention w32-get-true-file-attributes in doc string.
16949
16950 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
16951
169522008-05-09 Glenn Morris <rgm@gnu.org>
16953
16954 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
16955 2008-04-23.
16956
169572008-05-09 Eli Zaretskii <eliz@gnu.org>
16958
16959 Support for reporting owner and group of each file on MS-Windows:
16960 * dired.c (stat_uname, stat_gname): New functions, with special
16961 implementation for w32.
16962 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
16963
16964 * w32.c: Rename the_passwd_* to dflt_passwd_*.
16965 (dflt_group_name): New static variable.
16966 (dflt_group): Rename from the_group.
16967 (init_user_info): Init dflt_group fields. Get user's group name
16968 from LookupAccountSid.
16969 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
16970 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
16971 New initialization states.
16972 (globals_of_w32): Initialize them to zero. Initialize the default
16973 group name to "None".
16974 (GetFileSecurity_Name): New global var, the name of the function
16975 to call for GetFileSecurity.
16976 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
16977 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
16978 (get_file_security, get_security_descriptor_owner)
16979 (get_security_descriptor_group, is_valid_sid)
16980 (get_file_security_desc, get_rid, get_name_and_id)
16981 (get_file_owner_and_group): New functions.
16982 (stat): Use get_file_security_desc and get_file_owner_and_group to
16983 report the owner and primary group of each file. Don't ignore the
16984 high 32 bits of file's size, now that st_size is 64-bit wide.
16985 Fix test when to get true file attributes.
16986 (init_user_info): Use get_rid instead of equivalent inline code.
16987 (fstat): Don't ignore the high 32 bits of file's size.
16988
169892008-05-09 Chong Yidong <cyd@stupidchicken.com>
16990
16991 * image.c (png_load): Use correct bit-depth for setting background
16992 color.
16993
169942008-05-08 Eli Zaretskii <eliz@gnu.org>
16995
16996 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
16997 epa-hook.elc.
16998
169992008-05-08 Juanma Barranquero <lekktu@gmail.com>
17000
17001 * font.c (Ffont_match_p): Don't use `iff' in docstring.
17002
170032008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
17004
17005 * macfns.c (Fx_create_frame): Make a copy of frame parameters
17006 because the original parameters are in pure storage now.
17007 (mac_window): Remove unused params. Update callers.
17008
170092008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
17010
17011 * lread.c (substitute_object_recurse): Use lower-level primitives.
17012 Don't signal errors when traversing sub-char-tables.
17013 Don't loop over all the possible characters when traversing char-tables.
17014
17015 * print.c (print_preprocess): Add sub-char-tables to the print-table,
17016 just like we do in print.c.
17017
170182008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
17019
17020 * minibuf.c (Ftry_completion): Remove code left over from when we used
17021 scmp instead of Fcompare_strings.
17022
170232008-05-04 Juanma Barranquero <lekktu@gmail.com>
17024
17025 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
17026
170272008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17028
17029 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
17030 Create bitmap context in native byte order.
17031
17032 * macterm.c (XDrawLine)
17033 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
17034 context in native byte order.
17035
170362008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17037
17038 * config.in: Regenerate.
17039
17040 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
17041 New definitions for Image I/O support.
17042 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
17043 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
17044 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
17045 (mac_data_provider_release_data, image_load_image_io)
17046 [USE_MAC_IMAGE_IO]: New functions.
17047 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
17048 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
17049 (init_image_func_pointer) [MAC_OSX]: Remove function.
17050 (image_load_quartz2d) [MAC_OSX]: Check availability of
17051 CGImageCreateWithPNGDataProvider at compile time.
17052 Use lowercase `false' for boolean constant.
17053 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
17054 Use image_load_image_io.
17055 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
17056 Don't check MyCGImageCreateWithPNGDataProvider.
17057 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
17058 Don't call init_image_func_pointer.
17059
17060 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
17061
17062 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
17063 Make variable non-static.
17064 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
17065 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
17066
17067 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
17068 (RED_FROM_ULONG): Mask off higher bits.
17069 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
17070
17071 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
17072 Include AvailabilityMacros.h.
17073 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
17074 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
17075
170762008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
17077
17078 * chartab.c (Fset_char_table_range): If range is t, really set all
17079 chars to that value.
17080
170812008-05-03 Eli Zaretskii <eliz@gnu.org>
17082
17083 * dired.c (Ffile_attributes): Don't allow the device number become
17084 negative.
17085
170862008-05-02 Daiki Ueno <ueno@unixuser.org>
17087
17088 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
17089
170902008-05-02 Juri Linkov <juri@jurta.org>
17091
17092 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
17093 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
17094 DEFAULT argument as a list of default values in docstrings.
17095
170962008-05-01 Chong Yidong <cyd@stupidchicken.com>
17097
17098 * puresize.h (BASE_PURESIZE): Increase to 1210000.
17099
171002008-05-01 Martin Rudalics <rudalics@gmx.at>
17101
17102 * dispnew.c (change_frame_size_1): Preserve small windows when
17103 shrinking frames by calling set_window_height|width with third
17104 arg 2.
17105
17106 * window.h (struct window): Replace field too_small_ok by field
17107 resize_proportionally.
17108
17109 * window.c (make_window): Initialize resize_proportionally.
17110 (enlarge_window): Temporarily set resize_proportionally to make
17111 sure that shrink_windows does scale the window proportionally.
17112 (shrink_windows): When window has resize_proportionally set try
17113 to shrink it proportionally by stealing from other windows.
17114 (struct saved_window, Fset_window_configuration)
17115 (compare_window_configurations): Handle resize_proportionally.
17116 (WINDOW_TOTAL_SIZE): New macro.
17117 (window_min_size, shrink_windows, size_window): Use it.
17118 (check_min_window_sizes): Remove. Invalid values of
17119 window-min-height|width are handled by window_min_size_2 now.
17120 (size_window, Fsplit_window, enlarge_window)
17121 (adjust_window_trailing_edge, grow_mini_window): Don't call
17122 check_min_window_sizes.
17123 (window_min_size_2, window_min_size_1, window_min_size):
17124 New argument safe_p for retrieving "safe" minimum sizes.
17125 (Fdisplay_buffer, Fsplit_window, enlarge_window)
17126 (adjust_window_trailing_edge, grow_mini_window):
17127 Adjust arguments of window_min_size... functions.
17128 (shrink_windows): Argument min_size removed. New argument
17129 safe_p allows shrinking windows to their safe minimum sizes.
17130 Calculate minimum size and decide whether a window shall be
17131 deleted for each window individually.
17132 (size_window): When nodelete_p equals 2, tell shrink_windows to
17133 delete windows only if their new minimum size is no more safe.
17134 (shrink_window_lowest_first): Call window_min_size_1 to make
17135 sure to preserve modeline of bottom-most window when resizing
17136 the minibuffer.
17137 (Fset_window_configuration, Fcurrent_window_configuration)
17138 (compare_window_configurations): Do not handle
17139 window-min-height|width any more.
17140 (syms_of_window): Clarify window-min-height|width doc-strings.
17141
171422008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
17143
17144 * dired.c (file_name_completion): Fix up the encoding/decoding issue
17145 some more. Copy some of the code from Ftry_completions.
17146 Remove special case code that dates back to initial revision when the
17147 slash was only added when necessary and that can't trigger nowadays.
17148
171492008-04-27 Kenichi Handa <handa@m17n.org>
17150
17151 * font.c (font_prop_validate): Signal `error' instead of `font'.
17152
171532008-04-29 Jason Rumney <jasonr@gnu.org>
17154
17155 * w32fns.c (Fw32_battery_status): New defun.
17156 (syms_of_w32fns): Defsubr it.
17157
171582008-04-28 Andreas Schwab <schwab@suse.de>
17159
17160 * dired.c (file_name_completion): Fix another mixing of encoded
17161 and decoded names.
17162
171632008-04-28 Juanma Barranquero <lekktu@gmail.com>
17164
17165 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
17166
171672008-04-27 Juanma Barranquero <lekktu@gmail.com>
17168
17169 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
17170
171712008-04-27 Andreas Schwab <schwab@suse.de>
17172
17173 * dired.c (file_name_completion): Fix inappropriate mixing of
17174 encoded and decoded names.
17175
17176 * xterm.c (XTread_socket): Fix use of uninitialized variable.
17177
17178 * puresize.h (BASE_PURESIZE): Increase to 1200000.
17179
171802008-04-26 Eli Zaretskii <eliz@gnu.org>
17181
17182 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
17183 2008-03-31, it's not needed anymore with `struct stat' definition
17184 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
17185 for the same reasons.
17186
171872008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
17188
17189 * m/sparc.h: Additional redefinitions for GNU/Linux.
17190
171912008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17192
17193 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
17194 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
17195 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
17196 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
17197 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
17198 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
17199 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17200 Likewise.
17201
17202 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
17203 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
17204 (mac_ax_number_of_characters): Add externs.
17205 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
17206 [USE_MAC_TSM]: Likewise.
17207 (mac_handle_text_input_event) [MAC_OSX]:
17208 Handle kEventTextInputOffsetToPos for no active input area case.
17209 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
17210 (mac_handle_document_access_event)
17211 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
17212 (install_application_handler) [MAC_OSX]: Register handlers for
17213 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
17214 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17215 Register mac_handle_document_access_event.
17216
17217 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
17218 Make functions non-static.
17219
172202008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
17221
17222 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
17223 (read_file_name_completion_ignore_case, insert_default_directory)
17224 (Qdefault_directory): Move to minibuffer.el.
17225 (Fread_file_name): Call the new `read-file-name' instead.
17226
172272008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17228
17229 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
17230 Make function non-static.
17231 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
17232 Remove function.
17233 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
17234 Move to mactoolbox.c.
17235 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
17236
17237 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
17238 (mac_rect_make): New macro.
17239
17240 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
17241 instead of float.
17242 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
17243 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
17244 (XSetBackground) [USE_CG_DRAWING]: Likewise.
17245 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
17246 CGRectMake.
17247 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
17248 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
17249 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
17250 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
17251 instead of WindowRef in argument type.
17252 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
17253 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
17254 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
17255 instead of DISPLAY. All uses changed.
17256 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
17257 (x_calc_absolute_position): Simplify so as not to use
17258 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
17259
17260 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
17261 instead of WindowRef in argument type.
17262 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
17263 [TARGET_API_MAC_CARBON]: Remove externs.
17264 (create_apple_event, mac_event_parameters_to_lisp)
17265 [TARGET_API_MAC_CARBON]: Add externs.
17266
17267 * mactoolbox.c (Vmac_ts_script_language_on_focus)
17268 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
17269 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
17270 is clicked.
17271 (x_activate_menubar): Remove extern for saved_menu_event_location.
17272 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
17273 Move from mac.c.
17274
172752008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17276
17277 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
17278 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
17279
172802008-04-23 Jason Rumney <jasonr@gnu.org>
17281
17282 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
17283 attributes only for local files.
17284
17285 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
17286 default to Qlocal.
17287
172882008-04-22 Juri Linkov <juri@jurta.org>
17289
17290 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
17291 read-buffer-to-switch instead of using the letter "B".
17292
172932008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
17294
17295 * fileio.c (Qdefault_directory): New variable.
17296 (Fread_file_name): Use it to pass `dir' to the completion functions.
17297
172982008-04-20 Chong Yidong <cyd@stupidchicken.com>
17299
17300 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
17301
173022008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
17303
17304 * keyboard.c (Vpre_help_message): Remove.
17305 (show_help_echo): Remove default C code.
17306
17307 * dired.c (directory_files_internal, file_name_completion):
17308 Only call ENCODE_FILE if the string is indeed decoded.
17309
173102008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
17311
17312 * Makefile.in (TOOLKIT_DEFINES): Remove.
17313 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
17314
173152008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17316
17317 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
17318 (mactoolbox.o): New target.
17319
17320 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
17321 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
17322
17323 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
17324 Use mac_set_frame_window_background instead of XSetWindowBackground.
17325 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
17326 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
17327 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
17328 instead of SetWindowTitleWithCFString.
17329 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
17330 Move function to mactoolbox.c.
17331 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
17332 Use mac_set_window_modified instead of SetWindowModified.
17333 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
17334 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
17335 (Fx_focus_frame): Use mac_front_non_floating_window instead of
17336 FrontNonFloatingWindow. Use mac_activate_window instead of
17337 ActivateWindow. Use mac_active_non_floating_window instead of
17338 ActiveNonFloatingWindow.
17339 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
17340 Use mac_show_hourglass and mac_hide_hourglass.
17341 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
17342 instead of GetGlobalMouse.
17343 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
17344 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
17345 Use mac_bring_window_to_front instead of BringToFront.
17346 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
17347 mactoolbox.c.
17348 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
17349 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
17350 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
17351 mactoolbox.c.
17352
17353 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
17354 (XtPointer): Move typedef from macmenu.c.
17355 (enum button_type): Move enum from macmenu.c.
17356 (widget_value): Move typedef from macmenu.c.
17357 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
17358 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
17359 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
17360 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
17361 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
17362 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
17363 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
17364 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
17365 (Selection): Move typedef from macselect.c.
17366 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
17367 macterm.c.
17368 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
17369 (mac_is_window_collapsed, mac_bring_window_to_front)
17370 (mac_send_window_behind, mac_hide_window, mac_show_window)
17371 (mac_collapse_window, mac_front_non_floating_window)
17372 (mac_active_non_floating_window, mac_activate_window)
17373 (mac_move_window_structure, mac_move_window, mac_size_window)
17374 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
17375
17376 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
17377 (enum mac_menu_kind): Move enum to mactoolbox.c.
17378 (min_menu_id): Move variable to mactoolbox.c.
17379 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
17380 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
17381 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
17382 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
17383 [TARGET_API_MAC_CARBON]: Likewise.
17384 (XtPointer): Move typedef to macgui.h.
17385 (enum button_type): Move enum to macgui.h.
17386 (widget_value): Move typedef to macgui.h.
17387 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
17388 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
17389 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
17390 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
17391 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
17392 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
17393 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
17394 (popup_activated_flag): Make variable non-static.
17395 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
17396 (add_menu_item, fill_menu, dispose_menus):
17397 Move functions to mactoolbox.c.
17398 (restore_show_help_function, menu_target_item_handler)
17399 (install_menu_target_item_handler, mac_handle_dialog_event)
17400 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
17401 [TARGET_API_MAC_CARBON]: Likewise.
17402 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
17403 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17404 (find_and_call_menu_selection, name_is_separator): Make function
17405 non-static.
17406 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
17407 to mactoolbox.c.
17408 (set_frame_menubar): Don't call install_menu_quit_handler.
17409 (menu_item_selection): New variable.
17410 (mac_menu_show): Use create_and_show_popup_menu.
17411 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
17412 selection but set variable menu_item_selection. All uses changed.
17413 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
17414 Call install_menu_quit_handler. Move to mactoolbox.c.
17415
17416 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
17417 (Selection): Move typedef to macgui.h.
17418 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
17419 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
17420 Make variables non-static.
17421 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17422 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
17423 Make functions non-static.
17424 (Vmac_service_selection) [MAC_OSX]: Likewise.
17425 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
17426 (mac_valid_selection_target_p, mac_clear_selection)
17427 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17428 (mac_put_selection_value, mac_selection_has_target_p)
17429 (mac_get_selection_value, mac_get_selection_target_list)
17430 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
17431 Move functions to mactoolbox.c.
17432 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
17433 Likewise.
17434 (copy_scrap_flavor_data, mac_handle_service_event)
17435 (install_service_handler) [MAC_OSX]: Likewise.
17436 (syms_of_macselect) <Vmac_dnd_known_types>:
17437 Use mac_dnd_default_known_types.
17438
17439 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
17440 Move to mactoolbox.c.
17441 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
17442 (Fx_selection_owner_p): Add EXFUN.
17443 (install_window_handler, remove_window_handler, XSetWindowBackground):
17444 Remove externs.
17445 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
17446 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
17447 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
17448 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
17449 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
17450 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
17451 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
17452 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
17453 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
17454 (create_and_show_popup_menu, mac_get_selection_from_symbol)
17455 (mac_valid_selection_target_p, mac_clear_selection)
17456 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17457 (mac_put_selection_value, mac_selection_has_target_p)
17458 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
17459 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
17460 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
17461 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17462 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
17463 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17464 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
17465 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17466 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17467
17468 * mactoolbox.c: New file.
17469
174702008-04-18 Jason Rumney <jasonr@gnu.org>
17471
17472 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
17473
174742008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
17475
17476 * character.c (Fmultibyte_char_to_unibyte):
17477 Return latin1 chars unchanged.
17478
17479 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
17480 relocated if it points to `name'.
17481
174822008-04-17 Kenichi Handa <handa@m17n.org>
17483
17484 * data.c (Faset): Allow setting a multibyte character in an
17485 ASCII-only unibyte string.
17486
17487 * lisp.h (STRING_SET_MULTIBYTE): New macro.
17488
174892008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
17490
17491 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
17492 done in config.h.
17493
174942008-04-16 Juanma Barranquero <lekktu@gmail.com>
17495
17496 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
17497 (Fchar_direction): Add usage in the docstring.
17498
174992008-04-15 Chong Yidong <cyd@stupidchicken.com>
17500
17501 * keyboard.c (read_key_sequence): Remove always-true checks.
17502
175032008-04-14 Jason Rumney <jasonr@gnu.org>
17504
17505 * w32font.c (w32font_open_internal): Set max_bounds.descent in
17506 compatibility struct, for better underline positioning.
17507
175082008-04-13 David Hansen <david.hansen@gmx.net>
17509
17510 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
17511 string.
17512
175132008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
17514
17515 * m/hp800.h (XUINT, XSET): Remove.
17516
175172008-04-12 Juanma Barranquero <lekktu@gmail.com>
17518
17519 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
17520 previous change.
17521
175222008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
17523
17524 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
17525 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
17526
175272008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17528
17529 * keymap.h (map_keymap_canonical): Declare.
17530 * xmenu.c (single_keymap_panes): Use it.
17531
175322008-04-11 Glenn Morris <rgm@gnu.org>
17533
17534 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
17535 set the target's value to that of the alias.
17536
175372008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17538
17539 * term.c (set_tty_color_mode): Left over typo.
17540
175412008-04-10 Michael Albinus <michael.albinus@gmx.de>
17542
17543 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
17544 only after check for file name handler functions. Signal, when
17545 native functionality is not supported.
17546 (syms_of_fileio): Declare it unconditionally.
17547
175482008-04-10 Jason Rumney <jasonr@gnu.org>
17549
17550 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
17551 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
17552
17553 * w32.c (logon_network_drive): Also logon to remote drives that
17554 are mapped to drive letters.
17555
175562008-04-10 Glenn Morris <rgm@gnu.org>
17557
17558 * xdisp.c (truncate-partial-width-windows): Doc fix.
17559
175602008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
17561
17562 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
17563 Move functions to minibuffer.el.
17564 (syms_of_fileio): Don't declare them.
17565
175662008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17567
17568 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
17569 (syms_of_minibuf): Remove its initialization.
17570
17571 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
17572
175732008-04-09 Juanma Barranquero <lekktu@gmail.com>
17574
17575 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
17576
175772008-04-09 Jason Rumney <jasonr@gnu.org>
17578
17579 * makefile.w32-in (distclean): Delete makefile too.
17580 (maintainer-clean): New target.
17581
17582 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
17583
17584 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
17585 for new font backend and composite cases.
17586
175872008-04-09 Jan Djärv <jan.h.d@swipnet.se>
17588
17589 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
17590 Most of the code moved to run_timers.
17591 (do_pending_atimers): Call run_timers.
17592 (run_timers): New function.
17593
17594 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
17595 run atimers.
17596
17597 * process.c (wait_reading_process_output): The same as above.
17598
175992008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17600
17601 * minibuf.c (last_exact_completion): Remove variable.
17602 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
17603 (complete_and_exit_1, complete_and_exit_2)
17604 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
17605 (Fdisplay_completion_list, display_completion_list_1)
17606 (Fminibuffer_completion_help, Fself_insert_and_exit)
17607 (Fexit_minibuffer, Fminibuffer_message): Move functions to
17608 minibuffer.el.
17609 (syms_of_minibuf): Remove corresponding initializations.
17610
17611 * keyboard.c (Qdeactivate_mark): New var.
17612 (command_loop_1): Use it to call `deactivate-mark'.
17613 (syms_of_keyboard): Initialize it.
17614
17615 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
17616 to another frame.
17617 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
17618 Don't call set_tty_color_mode.
17619 (store_frame_param): Reset previous_frame rather than call
17620 set_tty_color_mode.
17621 * term.c (set_tty_color_mode): Rewrite.
17622 * dispextern.h (set_tty_color_mode): New type.
17623 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
17624
176252008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
17626
17627 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
17628 for generic chars, which do not exist any more in emacs-unicode.
17629
176302008-04-08 Michael Albinus <michael.albinus@gmx.de>
17631
17632 * coding.c (detect_coding_emacs_mule)
17633 (Ffind_operation_coding_system): Fix typo.
17634
176352008-04-08 Jason Rumney <jasonr@gnu.org>
17636
17637 * w32uniscribe.c (SNAME): Extract only symbol name.
17638
17639 * w32font.h (struct w32_metric_cache): New struct.
17640 (w32font_info): Use it.
17641 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
17642 (CACHE_BLOCKSIZE): New constants.
17643
17644 * w32font.c (Qja, Qko, Qzh): New symbols.
17645 (syms_of_w32font): Initialise them.
17646 (font_matches_spec): Use them to filter by language.
17647 (recompute_cached_metrics): Remove function.
17648 (compute_metrics, clear_cached_metrics): New functions.
17649 (w32font_encode_char): Use them to manage metric cache.
17650 (w32font_text_extents): Cache metrics for all glyphs on demand.
17651 Delay converting glyph indices to WORD until needed.
17652 (w32font_open_internal): Initialize metric cache to empty.
17653 (registry_to_w32_charset): Charset should always be a symbol.
17654 (fill_in_logfont, list_all_matching_fonts): Family should
17655 always be a symbol.
17656
176572008-04-06 Jason Rumney <jasonr@gnu.org>
17658
17659 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
17660 Give up if glyph indices not supported. Use uniscribe obtained
17661 ABC widths for individual metrics. Map glyph clusters back to
17662 characters using fClusterStart flag. Return number of glyphs
17663 produced, not chars processed.
17664 (uniscribe_shape): Map char at FROM to current glyph.
17665
176662008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17667
17668 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
17669 Use SetMenuItemHierarchicalMenu.
17670
176712008-04-05 Jason Rumney <jasonr@gnu.org>
17672
17673 * image.c (pbm_load): Allow color values up to 65535.
17674 Throw an error if max_color_idx is outside the supported range.
17675 Report an error when image size is invalid.
17676 Read two bytes at a time when raw images have max_color_idx above 255.
17677
aac0c6e3
MR
176782008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
17679
17680 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
17681 append "CCL: Quitted" when the CCL program is quitted.
17682 (setup_ccl_program): Initialize ccl->quit_silently to zero.
17683
17684 * ccl.h (struct ccl_program): New member quit_silently.
17685
176862008-04-05 Chong Yidong <cyd@stupidchicken.com>
17687
17688 * search.c (compile_pattern_1): Treat non-nil and non-string of
17689 search-spaces-regexp as nil.
17690
17691 * minibuf.c (Fassoc_string): Tweak docstring.
17692
176932008-04-05 Eli Zaretskii <eliz@gnu.org>
17694
17695 * dired.c (Ffile_attributes): Support inode numbers wider than 32
17696 bits. Remove ugly WINDOWSNT-specific kludge introduced on
17697 2008-03-14 to force inode be positive.
17698
17699 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
17700 _S_* ones, since we now use our own sys/stat.h.
17701 (stat, fstat): Don't mangle the inode number.
17702 (init_user_info): Don't restrict UID and GID to 0-60000 range.
17703
177042008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
17705
17706 * frame.h (struct frame): Give one more bit to `visible' since we use
17707 values larger than 1 to indicate obscured frames on ttys.
17708
17709 * keymap.c (Qkeymap_canonicalize): New var.
17710 (Fmap_keymap_internal): New fun.
17711 (describe_map): Use keymap-canonicalize.
17712
17713 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
17714 (Fundo_boundary): Set them.
17715 (syms_of_undo): Initialize them.
17716 (record_point): Use them instead of last_point_position*.
17717 (last_undo_buffer): Change type.
17718
177192008-04-04 Jason Rumney <jasonr@gnu.org>
17720
17721 * w32font.c (w32font_text_extents): Use font's ascent and descent.
17722 (recompute_cached_metrics): Don't set ascent and descent per char.
17723
17724 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
17725 (uniscribe_check_otf): Add GC protection before consing.
17726 Rearrange loop for counting features.
17727
177282008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
17729
17730 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
17731 buffer with byte-size of source buffer.
17732
177332008-04-03 Chong Yidong <cyd@stupidchicken.com>
17734
17735 * callint.c (Fcall_interactively): Handle temporary region even
17736 when shift-select-mode is off.
17737
177382008-04-03 Jason Rumney <jasonr@gnu.org>
17739
17740 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
17741
177422008-04-03 Kenichi Handa <handa@m17n.org>
17743
17744 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
17745 (CATEGORY_MASK_UTF_16): Likewise.
17746 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
17747 binary file.
17748 (detect_coding): Add null-byte detection for a binary file.
17749 (detect_coding_system): Likewise.
17750
177512008-04-03 Jason Rumney <jasonr@gnu.org>
17752
17753 * w32uniscribe.c: New file.
17754
17755 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
17756
17757 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
17758
17759 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
17760 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
17761 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
17762 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
17763 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
17764 (Qphonetic): New symbols.
17765 (syms_of_w32font): Initialize them.
17766 (font_supported_scripts): Use them.
17767 (w32font_list_family): List all charsets.
17768 (w32font_text_extents, recompute_cached_metrics): Fix metric
17769 calculations.
17770 (w32_enumfont_pattern_entity): Make full_type a DWORD.
17771 Give opentype fonts their own format.
17772 (font_matches_spec): New arguments backend and logfont.
17773 Handle :otf spec for uniscribe backend.
17774 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
17775 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
17776
17777 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
17778 font backend.
17779 (globals_of_w32fns): Initialize uniscribe font backend.
17780
17781 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
17782 dependencies.
17783 (w32uniscribe.$(O)): New file to build.
17784 (FONT_OBJ): Include w32uniscribe.$(O).
17785 (LIBS): Add uniscribe libraries.
17786
17787 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
17788
177892008-04-02 Chong Yidong <cyd@stupidchicken.com>
17790
17791 * callint.c (Vshift_select_mode): New var.
17792 (Finteractive): Document new ^ spec.
17793 (Fcall_interactively): Call handle-shift-selection if the ^ spec
17794 is present.
17795
17796 * keyboard.c (Vthis_command_keys_shift_translated): New var.
17797 (command_loop_1): Avoid running the direct display versions of
17798 forward-char and backward-char if shift-selection may occur.
17799 (read_key_sequence): Set Vthis_command_keys_shift_translated if
17800 shift-translation takes place.
17801
17802 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
17803 avoid clobbering by define-minor-mode.
17804
17805 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
17806 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
17807
17808 * syntax.c (Fforward_word): Add ^ interactive spec.
17809
17810 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
17811 (Fscroll_right): Add ^ interactive spec.
17812
178132008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
17814
17815 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
17816
17817 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
17818
17819 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
17820
178212008-03-31 Juri Linkov <juri@jurta.org>
17822
17823 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
17824
178252008-03-30 Jan Djärv <jan.h.d@swipnet.se>
17826
17827 * gtkutil.c (xg_set_geometry): Fix indentation.
17828 (xg_resize_outer_widget): Remove.
17829 (x_wm_size_hint_off): Fix indentation.
17830 (xg_frame_set_char_size): Call flush_and_sync after
17831 gtk_window_resize.
17832 (x_wm_set_size_hint): Pass NULL as geometry window to
17833 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
17834 Add menu bar and tool bar height to base height.
17835 (xg_update_frame_menubar, free_frame_menubar)
17836 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
17837 (update_frame_tool_bar, free_frame_tool_bar):
17838 Change xg_resize_outer_widget to xg_frame_set_char_size.
17839
178402008-03-30 Michael Albinus <michael.albinus@gmx.de>
17841
17842 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
17843 (Fdbus_call_method): New parameter TIMEOUT.
17844 (dbus-send-signal): Optimize UNGCPRO call.
17845
178462008-03-29 Juri Linkov <juri@jurta.org>
17847
17848 * window.c (Fdisplay_buffer): Move call to
17849 Vsplit_window_preferred_function out of conditions that check
17850 if window is eligible for vertical splitting.
17851 When Vsplit_window_preferred_function is non-nil, call it and use
17852 its non-nil return value as window. Otherwise, continue doing
17853 vertical splitting using Fsplit_window with arg horflag=nil.
17854 (syms_of_window) <Vsplit_window_preferred_function>: Change the
17855 default value from `split-window' to nil.
17856
178572008-03-29 Juri Linkov <juri@jurta.org>
17858
17859 * callint.c (Fcall_interactively): Revert 2008-03-16 change
17860 for interactive code letters 'b' and 'B'.
17861
178622008-03-29 Eli Zaretskii <eliz@gnu.org>
17863
17864 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
17865 multibyte string.
17866
178672008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
17868
17869 * keyboard.c (pending_funcalls): New var.
17870 (timer_check): Run it.
17871 (syms_of_keyboard): Initialize it.
17872 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
17873 (Vdelete_terminal_functions): New vars.
17874 (syms_of_terminal): Initialize them.
17875 (Fdelete_terminal): Run delete-terminal-functions.
17876 * xdisp.c (safe_eval): Rewrite.
17877 (safe_call2): New fun.
17878 * frame.c (Qdelete_frame_functions): New var.
17879 (syms_of_frame): Initialize it.
17880 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
17881 * lisp.h (safe_call2, pending_funcalls): Declare.
17882
178832008-03-28 Andreas Schwab <schwab@suse.de>
17884
17885 * indent.c (Fmove_to_column): Move declaration before statements.
17886
178872008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
17888
17889 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
17890 (struct frame): Use bit fields for boolean vars.
17891
17892 * process.c (server_accept_connection): Simplify naming.
17893 (emacs_get_tty_pgrp): Use SDATA.
17894
17895 * coding.c (decode_coding_object): Fix last change.
17896
178972008-03-27 Jason Rumney <jasonr@gnu.org>
17898
17899 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
17900
179012008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
17902
17903 * charset.c (Fdefine_charset_internal): Change the way of
17904 registering charsets in Vcharset_order_list.
17905 (syms_of_charset): Make the charset `eight-bit' supplementary.
17906
179072008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
17908
17909 * regex.c (EXTEND_BUFFER): Change order of pointer addition
17910 operations, to avoid having the difference between pointers
17911 overflow.
17912
179132008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
17914
17915 * indent.c (check_display_width): New fun.
17916 (scan_for_column): Use it.
17917
17918 * data.c (syms_of_data): Mark most-positive-fixnum and
17919 most-negative-fixnum as constants.
17920
17921 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
17922
17923 * indent.c (scan_for_column): Extract from current_column_1.
17924 Merge with the same code from Fmove_to_column.
17925 (current_column_1, Fmove_to_column): Use it.
17926
179272008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
17928
17929 * keymap.c (map_keymap_internal): New fun.
17930 (map_keymap): Use it.
17931 (Fmap_keymap_internal): New fun.
17932 (Fmap_keymap): Remove left-out test from before make_save_value.
17933
17934 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
17935
17936 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
17937 Use XCAR/XCDR.
17938
17939 * process.h (struct Lisp_Process): Remove filter_multibyte.
17940 * process.c (QCfilter_multibyte): Remove.
17941 (setup_process_coding_systems): Don't use filter_multibyte.
17942 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
17943 (read_process_output): Don't adjust multibyteness to filter_multibyte.
17944 (Fset_process_filter_multibyte): Change the coding-system to
17945 approximate the previous behavior.
17946 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
17947 coding-system.
17948
17949 * coding.c (decode_coding_object): When not decoding into a buffer,
17950 obey the coding system's preference of (uni|multi)byte.
17951
179522008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
17953
17954 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
17955 every char is changed and has a different byte-length.
17956 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
17957 Fix int -> EMACS_INT.
17958
179592008-03-23 David Hansen <david.hansen@gmx.net>
17960
17961 * dbusbind.c (xd_read_message): Remove extra copying of message
17962 strings. Check for NULL `interface' or `member'.
17963
179642008-03-22 Eli Zaretskii <eliz@gnu.org>
17965
17966 * w32.c (readdir): If FindFirstFile/FindNextFile return in
17967 cFileName a file name that includes `?' characters, use the 8+3
17968 alias in cAlternateFileName instead.
17969
179702008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
17971
17972 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
17973
179742008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17975
17976 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
17977 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
17978 work on current_buffer only instead (that was already the case
17979 for some of the code anyway).
17980 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
17981 (temp_set_point, temp_set_point_both): Use EMACS_INT.
17982 (SET_PT, SET_PT_BOTH): Adjust.
17983 * intervals.h (set_point, temp_set_point, set_point_both)
17984 (temp_set_point_both): Remove redundant declarations.
17985
179862008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17987
17988 * fileio.c (Finsert_file_contents):
17989 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
17990 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
17991 when buffer != current_buffer anyway.
17992
179932008-03-20 Andreas Schwab <schwab@suse.de>
17994
17995 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
17996 as default.
17997
179982008-03-19 Jason Rumney <jasonr@gnu.org>
17999
18000 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
18001 (syms_of_w32fns): Initialize them.
18002 (HOURGLASS_ID): New constant.
18003 (x_window_to_frame): Don't check hourglass_window.
18004 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
18005 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
18006 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
18007 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
18008 Only change the cursor if hourglass is not active.
18009 (Fx_create_frame): Initialize frame's current_cursor.
18010 (hourglass_atimer): Remove.
18011 (hourglass_started): New function.
18012 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
18013 (show_hourglass): Adapt to w32, changing argument to frame.
18014
18015 * w32term.h (struct w32_output): Remove hourglass_window.
18016 Add current_cursor.
18017
18018 * eval.c (call_debugger, Fsignal):
18019 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
18020 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
18021 (Fexecute_extended_command, cancel_hourglass_unwind):
18022 * minibuf.c (read_minibuf):
18023 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
18024
180252008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
18026
18027 * window.c (run_funs): New fun.
18028 (run_window_configuration_change_hook): Use it to run the buffer-local
18029 and the global part of the hook.
18030
18031 * xdisp.c (format_mode_line_unwind_data): Add window argument.
18032 (unwind_format_mode_line): Restore selected window.
18033 (x_consider_frame_title, Fformat_mode_line): Set selected window.
18034
180352008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
18036
18037 * editfns.c (Fchar_equal): Check they are valid characters.
18038
18039 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
18040
180412008-03-17 Andreas Schwab <schwab@suse.de>
18042
18043 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
18044 against a charset.
18045
18046 * lisp.h (Fbuffer_list): Declare.
18047
180482008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 18049
aac0c6e3
MR
18050 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
18051 handlebox_widget is != 0.
18052
180532008-03-16 Juri Linkov <juri@jurta.org>
18054
18055 * callint.c (Fcall_interactively): For interactive code letters
18056 'b' and 'B' put the buffer list into the list of default "future"
18057 values of the minibuffer.
18058
180592008-03-16 Andreas Schwab <schwab@suse.de>
18060
18061 * keyboard.c (read_key_sequence): Fix downcasing of letters with
18062 modifiers.
18063
18064 * regex.c (re_match_2_internal): Correct matching of a charset
18065 against latin-1 characters.
18066
180672008-03-16 Kenichi Handa <handa@m17n.org>
18068
18069 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
18070 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
18071 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
18072 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
18073 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
18074 CHAR_STRING_ADVANCE.
18075 (produce_chars): Fix for the case that the source and the
18076 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
18077 instead of CHAR_STRING_ADVANCE.
18078 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
18079 STRING_CHAR_ADVANCE.
18080
180812008-03-15 Andreas Schwab <schwab@suse.de>
18082
18083 * regex.c (re_match_2_internal): Correct matching of eight bit
18084 characters in unibyte strings.
18085
180862008-03-15 Martin Rudalics <rudalics@gmx.at>
18087
18088 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
18089 at end of range when it coincides with the end of the buffer.
18090
180912008-03-14 Eli Zaretskii <eliz@gnu.org>
18092
18093 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
18094
18095 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
18096
180972008-03-14 Jason Rumney <jasonr@gnu.org>
18098
18099 * editfns.c (initial_tz): New variable.
18100 (syms_of_editfns): Initialize it.
18101 (Fset_time_zone_rule): Set it when first called.
18102 Use it when TZSTRING is nil.
18103
18104 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
18105 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
18106 (monitor_from_point_fn, get_monitor_info_fn): New globals.
18107 (globals_of_w32fns): Initialize them.
18108 (compute_tip_xy): Use them to position tooltips.
18109
181102008-03-14 Glenn Morris <rgm@gnu.org>
18111
18112 * emacs.c (main): Revert previous change.
18113 (standard_args): Revert -internal-script back to -scriptload,
18114 and remove the long-option form.
18115
181162008-03-13 Glenn Morris <rgm@gnu.org>
18117
18118 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
18119 Remove option -enable-font-backend.
18120
181212008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
18122
18123 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
18124
181252008-03-11 Jan Djärv <jan.h.d@swipnet.se>
18126
18127 * xterm.c (x_connection_closed): For GTK: If this is the last
18128 terminal just exit without closing the display.
18129
181302008-03-11 Jason Rumney <jasonr@gnu.org>
18131
18132 * w32font.c (w32font_full_name): Use floor to round.
18133
f0131492 181342008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
18135
18136 * sound.c (alsa_configure): Declare vol at beginning of block.
18137
18138 * fontset.c (Ffontset_info): Remove extra semicolon.
18139
181402008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
18141
18142 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
18143 size of resulting string.
18144
181452008-03-10 Jason Rumney <jasonr@gnu.org>
18146
18147 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
18148
181492008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18150
18151 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
18152 Don't pretend as if characters with display property haven't been
18153 consumed for string-replacing-string case.
18154
181552008-03-08 Kim F. Storm <storm@cua.dk>
18156
18157 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
18158 (get_next_display_element, next_element_from_string)
18159 (next_element_from_ellipsis, next_element_from_buffer): Use it.
18160
181612008-03-08 Andreas Schwab <schwab@suse.de>
18162
18163 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
18164
181652008-03-06 Jason Rumney <jasonr@gnu.org>
18166
18167 * w32font.c (w32_registry): Take font_type argument. Use ANSI
18168 when charset not specified. Only translate ANSI to unicode when
18169 font_type is truetype.
18170 (w32font_coverage_ok): New function.
18171 (add_font_entity_to_list): Use it to filter unsuitable fonts.
18172
181732008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
18174
18175 * lread.c (Fread_char): Resolve modifiers.
18176 (Fread_char_exclusive): Likewise.
18177
18178 * character.c (char_resolve_modifier_mask): New function.
18179 (char_string): Use char_resolve_modifier_mask.
18180 (Fchar_resolve_modifiers): New function.
18181 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
18182 function.
18183
181842008-03-04 Jason Rumney <jasonr@gnu.org>
18185
18186 * makefile.w32-in: Always include w32font.c in the build.
18187 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
18188
181892008-03-04 Andreas Schwab <schwab@suse.de>
18190
18191 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
18192 (versionclean): Likewise.
18193
181942008-03-04 Juanma Barranquero <lekktu@gmail.com>
18195
18196 * .cvsignore: Add oo.
18197
181982008-03-03 Andreas Schwab <schwab@suse.de>
18199
18200 * coding.c (decode_coding_object): Inhibit gap shrinking while
18201 decoding in place.
18202
182032008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
18204
18205 * w32term.c: Remove unused include "gnu.h".
18206 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
18207
18208 * gnu.h: Rename to ...
18209 * emacs-icon.h: ... this.
18210 * xterm.c: Use emacs-icon.h instead of gnu.h.
18211 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
18212
182132008-03-03 Juanma Barranquero <lekktu@gmail.com>
18214
18215 * w32font.c: Include math.h.
18216
182172008-03-03 Jason Rumney <jasonr@gnu.org>
18218
18219 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
18220 Compute options separately.
18221 (w32font_open_internal): Set glyph_idx before caching metrics.
18222
18223 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
18224 Define if system headers don't.
18225 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
18226 (w32font_encode_char): Don't declare here.
18227
18228 * w32font.c (Quniscribe, QCformat): New symbols.
18229 (syms_of_w32font): Define them.
18230 (w32font_has_char): Indicate uncertainty.
18231 (w32font_encode_char): Encode as glyph point. Make static.
18232 (recompute_cached_metrics): New function.
18233 (w32font_open_internal): Use it. Set font to use glyph points
18234 initially. Set format based on type of font.
18235 (w32font_text_extents, w32font_draw): Optionally use glyph points.
18236 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
18237 on it. Set format based on information available here.
18238 (add_font_entity_to_list): Identify backend based on opentype_only.
18239
182402008-03-02 Andreas Schwab <schwab@suse.de>
18241
18242 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
18243
18244 * coding.c (decode_coding_big5, produce_chars):
18245 Fix typos in last change.
18246
182472008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
18248
18249 * gnu.h: New icon.
18250
182512008-03-02 Kenichi Handa <handa@m17n.org>
18252
18253 * coding.c (decode_coding_utf_8): When eol-type of CODING is
18254 `dos', don't decode '\r' if that is the last in the source.
18255 (decode_coding_utf_16, decode_coding_emacs_mule)
18256 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18257 (decode_coding_raw_text, decode_coding_charset): Likewise.
18258 (produce_chars): Don't decode EOL here. Use EMACS_INT.
18259
182602008-03-01 Jason Rumney <jasonr@gnu.org>
18261
18262 * w32font.c (w32font_full_name): Report point size for scalable fonts.
18263
182642008-03-01 Kim F. Storm <storm@cua.dk>
18265
18266 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
18267
182682008-03-01 Jason Rumney <jasonr@gnu.org>
18269
18270 * w32font.c (w32font_full_name): New function.
18271 (w32font_open_internal): Use it.
18272
182732008-03-01 Kim F. Storm <storm@cua.dk>
18274
18275 * dispnew.c (line_draw_cost): Fix invalid glyph check.
18276
182772008-03-01 Jason Rumney <jasonr@gnu.org>
18278
18279 * font.c (font_unparse_fcname): Increase len when style is a symbol.
18280
182812008-03-01 Jan Djärv <jan.h.d@swipnet.se>
18282
18283 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
18284 xg_frame_resized when the event is for the edit widget.
18285
18286 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
18287
18288 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
18289 set_char_size.
18290 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
18291 operations on widgets here. Just set frame size if needed.
18292 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
18293 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
18294 (x_wm_set_size_hint): Set size hints on the edit widget only, not
18295 the whole frame.
18296 (xg_create_tool_bar): Move attachment of the tool bar to
18297 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
18298 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
18299
183002008-03-01 Jason Rumney <jasonr@gnu.org>
18301
18302 * w32fns.c (w32_msg_pump): Disable debug code.
18303
183042008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18305
18306 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
18307
183082008-02-29 Chong Yidong <cyd@stupidchicken.com>
18309
18310 * xdisp.c (next_overlay_string): Don't set
18311 overlay_strings_at_end_processed_p if we're currently reading from
18312 a display string.
18313
183142008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
18315
18316 * xdisp.c (get_overlay_strings_1): Fix typo.
18317
183182008-02-29 Chong Yidong <cyd@stupidchicken.com>
18319
18320 * xdisp.c (get_overlay_strings_1): Add missing argument type.
18321
183222008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
18323
18324 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
18325
18326 * xdisp.c (display_mode_element): Cancel the previous change.
18327 (decode_mode_spec): Likewise.
18328 (handle_auto_composed_prop): Don't make composition if it->string
18329 is a string.
18330
183312008-02-27 Kim F. Storm <storm@cua.dk>
18332
18333 * lisp.h (GLYPH): Change type from int to struct with separate char
18334 and face_id members.
18335 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
18336 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
18337 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
18338 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
18339 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
18340 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
18341 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
18342 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
18343 handle new Lisp glyph code encoding, either an integer or a cons.
18344
18345 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
18346 (GLYPH_ALIAS): Delete.
18347 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
18348 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
18349 (GLYPH_FROM_CHAR): Replace macro by ...
18350 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
18351
18352 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
18353 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
18354 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
18355 (GLYPH_INVALID_P): New macro.
18356 (spec_glyph_lookup_face): Update prototype.
18357
18358 * dispnew.c (line_draw_cost): Adapt to new glyph type.
18359 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
18360 new glyph code encoding.
18361 (spec_glyph_lookup_face): No return value; update passed glyph instead.
18362 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
18363
18364 * xdisp.c (get_next_display_element, next_element_from_display_vector):
18365 Adapt to new glyph type and new glyph code encoding.
18366
18367 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
18368
18369 * indent.c (current_column, current_column_1, Fmove_to_column)
18370 (compute_motion): Adapt to new glyph code encoding.
18371
18372 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
18373
183742008-02-27 Chong Yidong <cyd@stupidchicken.com>
18375
18376 * process.c (wait_reading_process_output): Check for window
18377 changes caused by timers.
18378 Suggested by Johan Bockgård.
18379
183802008-02-27 Glenn Morris <rgm@gnu.org>
18381
18382 * emacs.c (USAGE1): Add `--disable-font-backend'.
18383
183842008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
18385
18386 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
18387 is made to the buffer.
18388
183892008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
18390
18391 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
18392 (face_at_string_position):
18393 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
18394 (face_at_string_position):
18395 * xdisp.c (display_string, next_overlay_change):
18396 * buffer.h (overlays_at):
18397 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
18398 Update callers.
18399
184002008-02-26 Chong Yidong <cyd@stupidchicken.com>
18401
18402 * editfns.c (Fformat): Doc fix.
18403
184042008-02-26 Juanma Barranquero <lekktu@gmail.com>
18405
18406 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
18407 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
18408 (Ffont_otf_alternates, Fquery_font): Doc fixes.
18409
184102008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18411
18412 * buffer.c (Fbuffer_swap_text): New function.
18413 (syms_of_buffer): Defsubr it.
18414
184152008-02-25 Chong Yidong <cyd@stupidchicken.com>
18416
18417 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
18418
184192008-02-25 Jason Rumney <jasonr@gnu.org>
18420
18421 * w32font.c (w32font_draw): Draw one character at a time when padding.
18422
184232008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18424
18425 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
18426 Handle a nil arg. Use run_window_configuration_change_hook.
18427 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
18428 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
18429 Use run_window_configuration_change_hook.
18430
184312008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18432
18433 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
18434 1-pixel width.
18435
184362008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18437
18438 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
18439 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
18440 if the glyph in the font is zero pixel with.
18441
18442 * dispextern.h (struct glyph_string): New member padding_p.
18443
18444 * w32font.c (w32font_draw): Pay attention to s->padding_p.
18445
18446 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
18447
18448 * xfont.c (xfont_draw): Pay attention to s->padding_p.
18449
18450 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
18451
18452 * font.c: If the font driver doesn't have `shape' function, return Qnil.
18453
184542008-02-25 Jason Rumney <jasonr@gnu.org>
18455
18456 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
18457
184582008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
18459
18460 Allow fine-grained image-cache flushing.
18461 * dispextern.h (struct image): Add `dependencies' field.
18462 (clear_image_caches): Change arg to Lisp_Object.
18463 * image.c (make_image): Initialize `dependencies' field.
18464 (clear_image_cache): Change arg to allow fine-grained flushing.
18465 Perform the flush even if image-cache-eviction-delay is nil.
18466 (clear_image_caches): Change arg to Lisp_Object.
18467 (Fclear_image_cache): Expand meaning of the argument.
18468 (mark_image): Mark `dependencies' field.
18469 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
18470 (lface_hash): Use XHASH rather than XFASTINT.
18471 (face_at_buffer_position): Fix int -> EMACS_INT position.
18472 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
18473 (select_frame_for_redisplay): Remove code duplication.
18474 (redisplay_internal): Adapt arg to call to clear_image_caches.
18475
184762008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
18477
18478 * s/vms4-0.h:
18479 * s/vms4-2.h:
18480 * s/vms4-4.h:
18481 * s/vms5-5.h: Remove, unused.
18482
18483 * s/irix5-2.h:
18484 * s/irix6-0.h:
18485 * s/riscos5.h:
18486 * s/mach-bsd4-3.h:
18487 * m/mips4.h: Remove files for obsolete systems.
18488
18489 * Makefile.in:
18490 * filelock.c:
18491 * unexmips.c:
18492 * m/hp9000s300.h:
18493 * m/iris4d.h:
18494 * s/aix3-1.h:
18495 * s/hpux.h:
18496 * s/msdos.h:
18497 * s/usg5-0.h:
18498 * s/usg5-2-2.h:
18499 * s/usg5-2.h:
18500 * s/usg5-3.h: Remove references to obsolete variables.
18501
18502 * s/irix5-0.h: Remove, move all the contents ...
18503 * s/irix6-5.h: ... here. Simplify.
18504 * config.in: Regenerate.
18505
185062008-02-24 Jason Rumney <jasonr@gnu.org>
18507
18508 * w32term.c (x_draw_glyph_string_background): Clear the background
18509 manually when cleartype is in use.
18510 (x_draw_glyph_string_foreground): Draw text transparently when
18511 cleartype is in use.
18512
18513 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
18514 a font into it unless we have to.
18515
185162008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18517
18518 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
18519 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 18520
aac0c6e3
MR
185212008-02-18 Jason Rumney <jasonr@gnu.org>
18522
18523 * w32fns.c (Fw32_shell_execute): Encode parameters.
18524
185252008-02-09 Eli Zaretskii <eliz@gnu.org>
18526
18527 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
18528
185292008-02-05 Juanma Barranquero <lekktu@gmail.com>
18530
18531 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
18532
185332008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
18534
18535 * xterm.c (x_set_offset): Don't change the gravity if
18536 CHANGE_GRAVITY is -1.
18537
185382008-02-23 Chong Yidong <cyd@stupidchicken.com>
18539
18540 * fileio.c (auto_save_error_occurred): New var.
18541 (auto_save_error): Set it.
18542 (Fdo_auto_save): Don't overwrite the error message if an auto-save
18543 error occurred.
18544
185452008-02-23 Eli Zaretskii <eliz@gnu.org>
18546
18547 * w32.c (globals_of_w32): Add initializations for
18548 g_b_init_get_sid_sub_authority and
18549 g_b_init_get_sid_sub_authority_count.
18550
185512008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
18552
18553 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
18554 (font_parse_xlfd): Use them for sanity check.
18555 (Finternal_set_font_style_table): Make sure the table is bijective.
18556
18557 Consolidate the image_cache to the terminal struct.
18558 * termhooks.h (P_): Remove redundant def.
18559 (struct terminal): New field `image_cache'.
18560 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
18561 of FRAME_X_IMAGE_CACHE.
18562 * xterm.h (struct x_display_info): Remove image_cache field.
18563 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18564 * w32term.h (struct w32_display_info): Remove image_cache field.
18565 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18566 * macterm.h (struct mac_display_info): Remove image_cache field.
18567 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18568 * xterm.c (x_term_init):
18569 * w32term.c (w32_term_init):
18570 * macterm.c (mac_term_init): Set the image_cache in the terminal.
18571 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
18572 Remove declarations.
18573 (clear_image_caches, mark_image_cache): New declarations.
18574 * xfaces.c (clear_face_cache):
18575 * xdisp.c (redisplay_internal): Use clear_image_caches.
18576 * image.c (clear_image_cache): Don't check that a frame is on
18577 a window-system before checking if it shares the same cache.
18578 (clear_image_caches): New function.
18579 (Fclear_image_cache): Use it.
18580 (mark_image): Move from allo.c.
18581 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
18582 * alloc.c (mark_image, mark_image_cache): Move to image.c.
18583 (mark_object): Don't call mark_image_cache for frames.
18584 (mark_terminals): Call mark_image_cache.
18585
18586 * lisp.h (Fdelete_terminal): Declare.
18587
18588 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
18589 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
18590 wrong_type_argument.
18591
185922008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
18593
18594 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
18595 malayalam.el, and tamil.el. Add sinhala.el.
18596
185972008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
18598
18599 * xterm.c (x_connection_closed): Consolidate identical tests.
18600 (x_delete_terminal): Don't crash if called via x_connection_closed.
18601
186022008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
18603
18604 * xdisp.c (decode_mode_spec): New arg string.
18605 (display_mode_element): Adjust for the above change.
18606
186072008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18608
18609 * callint.c (Fcall_interactively): Use AREF.
18610
186112008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
18612
18613 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
18614
186152008-02-18 Jan Djärv <jan.h.d@swipnet.se>
18616
18617 * xfns.c (Fx_show_tip): Set string to " " if empty.
18618
186192008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
18620
18621 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
18622 with Qt.
18623
186242008-02-17 Kenichi Handa <handa@m17n.org>
18625
18626 * ftfont.c (ftfont_shape): Return Lispy number.
18627
18628 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
18629 for GCs.
18630 (Finternal_set_font_selection_order): Call font_update_sort_order
18631 only when enable_font_backend is set.
18632 (realize_x_face): Set face->font_info to that of default face only
18633 when enable_font_backend is set.
18634
18635 * xdisp.c (handle_composition_prop): Set it->c to the fist
18636 character of the composed region.
18637 (fill_composite_glyph_string): Set base_face->font_info to
18638 s->font_info. Get a face for ascii from base_face->ascii_face.
18639 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
18640 with a face already decided.
18641 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
18642 non-negative.
18643 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
18644 call font_prepare_composition unconditionally.
18645
18646 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
18647
18648 * xterm.h (struct x_display_info): New member font.
18649
18650 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
18651 (x_set_mouse_face_gc, x_new_font): Likewise.
18652 (x_term_init): Setup display_info->font.
18653 (x_delete_terminal): Free display_info->font.
18654
18655 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
18656
18657 * ftxfont.c (ftxfont_default_fid): Delete it.
18658 (ftxfont_open): Set xfont->fid to 0.
18659 (ftxfont_end_for_frame): Clear data specific to the frame and the
18660 font-driver.
18661
18662 * xftfont.c (xftfont_default_fid): Delete it.
18663 (xftfont_open): Set xfont->fid to 0.
18664
18665 * fontset.c (FONTSET_OBJLIST): New macro.
18666 (fontset_find_font): Update font-object list of the fontset.
18667 (free_realized_fontset): New function.
18668 (free_face_fontset): Call free_realized_fontset.
18669 (Ffont_info): Call font_close_object only when enable_font_backend
18670 is set.
18671
18672 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
18673 [HAVE_NTGUI]: Include w32term.h.
18674 [MAC_OS]: Include macterm.ch.
18675 (font_otf_ValueRecord): Use make_number.
18676 (font_finish_cache): Fix handling of reference count.
18677 (font_clear_cache): Update num_fonts.
18678 (font_open_entity): Update smallest_char_width and
18679 smallest_font_height of the frame.
18680 (font_close_object): Update num_fonts.
18681 (Fclear_font_cache): Fix finding the target cache data.
18682
186832008-02-16 Glenn Morris <rgm@gnu.org>
18684
18685 * fontset.c (Finternal_char_font): Fix compilation warning.
18686
186872008-02-16 Eli Zaretskii <eliz@gnu.org>
18688
18689 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
18690 instead of char arrays. Enlarge the size of array passed to
18691 get_token_information.
18692
18693 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
18694 warnings.
18695
186962008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
18697
18698 * .gdbinit: Don't set `args', it breaks gdb --args.
18699
187002008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
18701
18702 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
18703 within a narrowed buffer.
18704
187052008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
18706
18707 * coding.c (decode_coding_object, encode_coding_object):
18708 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
18709
187102008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
18711
18712 * coding.c (coding_set_destination): Use BEG_BYTE rather than
18713 hardcoding 1.
18714 (detect_coding_system):
18715 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
18716 (string_char_to_byte, string_byte_to_char, insert_from_gap):
18717 * insdel.c (insert_from_gap):
18718 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
18719 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
18720 (string_to_multibyte):
18721 * character.c (chars_in_text, multibyte_chars_in_text):
18722 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
18723
18724 * character.h (FETCH_STRING_CHAR_ADVANCE)
18725 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
18726 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
18727 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
18728
18729 * casefiddle.c (casify_region): Only call after-change and composition
18730 functions on the part of the region that was changed.
18731
18732 * keyboard.c (read_avail_input):
18733 * frame.c (Fdelete_frame): Call Fdelete_terminal.
18734
187352008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18736
18737 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
18738 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
18739
187402008-02-11 Juanma Barranquero <lekktu@gmail.com>
18741
18742 * w32menu.c (push_submenu_start, push_submenu_end)
18743 (push_left_right_boundary, push_menu_pane, push_menu_item):
18744 * keyboard.c (read_key_sequence): Don't pass args with side effects
18745 to AREF, it fails when compiling with -DENABLE_CHECKING.
18746
187472008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
18748
18749 * Makefile.in (${lispsource}international/charprop.el):
18750 Delete this target.
18751
18752 * search.c (boyer_moore): Fix incorrect synching of the trunk and
18753 emacs-unicode-2.
18754
187552008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18756
18757 * terminal.c (Fdelete_terminal): Clean up the `force' path.
18758
187592008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18760
18761 * frame.c (Qnoelisp): New symbol.
18762 (syms_of_frame): Initialize it.
18763 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
18764 harmless Elisp code, from a strong `force' from x_connection_closed.
18765 * frame.h (Qnoelisp): Declare.
18766 * xterm.c (x_connection_closed): Pass `noelisp'.
18767
18768 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
18769 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
18770 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
18771 rather than `int' for the type of `type'.
18772
187732008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
18774
18775 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
18776
18777 * Makefile.in (GNUC): Remove support for gcc-1.x.
18778
187792008-02-10 Richard Stallman <rms@gnu.org>
18780
18781 * lisp.h (ASET): Use AREF, not ASLOT.
18782
187832008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18784
18785 * lisp.h (ASET): Check bounds.
18786
187872008-02-10 Glenn Morris <rgm@gnu.org>
18788
18789 * buffer.c (mode-name): Doc fix.
18790
187912008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18792
18793 * Makefile.in:
18794 * emacs.c:
18795 * gmalloc.c:
18796 * keyboard.c:
18797 * lisp.h:
18798 * m/ibm370aix.h:
18799 * process.c:
18800 * regex.c:
18801 * s/hpux.h:
18802 * sysdep.c:
18803 * sysselect.h:
18804 * systty.h:
18805 * unexec.c:
18806 * w32term.c:
18807 * xsmfns.c:
18808 * xterm.c: Remove code that deals with obsolete variables.
18809
18810 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
18811
18812 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
18813 nothing else needs it anymore.
18814
188152008-02-09 Eli Zaretskii <eliz@gnu.org>
18816
18817 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
18818 instead of unibyte_char_to_multibyte.
18819
188202008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18821
18822 * s/gnu-linux.h: Remove commented out code.
18823
18824 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
18825
18826 * Makefile.in: Update what RMS says about using autoconf.
18827 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
18828 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
18829 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
18830 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
18831
188322008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
18833
18834 * keymap.c (Fkey_description): Move side effect outside of macro call.
18835
18836 * xfaces.c (Finternal_make_lisp_face):
18837 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
18838
18839 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
18840 (syms_of_fontset): Use ASET.
18841
18842 * fns.c (concat): Move side effect outside of macro call.
18843 (hash_clear): Use ASET.
18844
188452008-02-08 Richard Stallman <rms@gnu.org>
18846
18847 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
18848 If FORCE, and frame has a surrogate minibuffer for another frame,
18849 delete the other frame first.
18850
188512008-02-07 Timo Savola <timo.savola@iki.fi>
18852
18853 * xterm.c (x_detect_focus_change): Handle embed client message.
18854 (handle_one_xevent): Ditto.
18855 (handle_one_xevent): If embedded and we get a button press/release,
18856 request focus.
18857 (xembed_set_info, xembed_send_message): New functions.
18858 (x_make_frame_visible): Call xembed_set_info if embedded.
18859 (x_make_frame_invisible): Call xembed_set_info if embedded.
18860 (x_term_init): Initialize Xatom_XEMBED.
18861 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
18862 (x_iconify_frame): Ditto.
18863
18864 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
18865 (enum xembed_info, enum xembed_message, enum xembed_focus)
18866 (enum xembed_modifier, enum xembed_accelerator): New.
18867 (xembed_set_info, xembed_send_message): Declare.
18868 (FRAME_X_EMBEDDED_P): New.
18869
18870 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
18871 gtk_plug_new.
18872
18873 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
18874 window ID of a frame.
18875 (x_window): Reparent frame if embedded.
18876 (Fx_create_frame): Don't set border width if embedded.
18877
18878 * emacs.c (USAGE3): Add --parent-id.
18879 (standard_args): Ditto.
18880
188812008-02-07 Jan Djärv <jan.h.d@swipnet.se>
18882
18883 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
18884
188852008-02-07 Jim Meyering <meyering@redhat.com>
18886
18887 Use "do...while (0)", not "if (1)...else" in macro definitions.
18888 The latter provokes a warning from gcc about the empty else, when
18889 followed by ";". Also, without that trailing semicolon, it would
18890 silently swallow up any following statement.
18891 * syntax.h (SETUP_SYNTAX_TABLE)
18892 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
18893 * buffer.h (DECODE_POSITION): Likewise.
18894 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
18895 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
18896 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
18897 (FETCH_CHAR_ADVANCE): Likewise.
18898 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
18899
189002008-02-07 Jim Meyering <meyering@redhat.com>
18901
18902 * lread.c [lint]: Don't include <sys/inode.h>.
18903
189042008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
18905
18906 * xselect.c (x_handle_dnd_message):
18907 * xmenu.c (digest_single_submenu, xmenu_show):
18908 * xdisp.c (with_echo_area_buffer_unwind_data)
18909 (format_mode_line_unwind_data, unwind_format_mode_line)
18910 (display_menu_bar):
18911 * eval.c (Ffetch_bytecode):
18912 * doc.c (store_function_docstring):
18913 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
18914 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
18915 * buffer.c (add_overlay_mod_hooklist): Use ASET.
18916
189172008-02-07 Kenichi Handa <handa@m17n.org>
18918
18919 * ftxfont.c (ftxfont_open): Don't set
18920 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
18921
18922 * ftfont.c (ftfont_open): Fix previous change.
18923
189242008-02-06 Jason Rumney <jasonr@gnu.org>
18925
18926 * w32font.c (w32font_text_extents): Fill in lbearing metric.
18927 Use cached metrics for ASCII characters.
18928 (w32font_open_internal): Don't set font's owning_frame.
18929 Cache metrics for ASCII characters.
18930
18931 * w32font.h (struct w32font_info): Add ascii_metrics.
18932 Remove owning_frame.
18933
189342008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
18935
18936 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
18937 to negative value.
18938
18939 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
18940
18941 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
18942
18943 * charset.c (syms_of_charset): Set QCtest and Qeq.
18944
189452008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
18946
18947 * process.c (Fstart_process):
18948 * callproc.c (Fcall_process): Handle the case where
18949 Funhandled_file_name_directory returns nil.
18950
18951 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
18952 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
18953 * font.c (check_gstring): Use them and AREF to access the vector before
18954 we know it's really a gstring.
18955 (Ffont_shape_text): Fix typo.
46e722a9 18956 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
18957
18958 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
18959 Declare.
18960
18961 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
18962
189632008-02-05 Jason Rumney <jasonr@gnu.org>
18964
18965 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
18966 Set smallest_font_height and smallest_char_width in display info.
18967
189682008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
18969
18970 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
18971
189722008-02-05 Miles Bader <miles@gnu.org>
18973
18974 * xfaces.c (get_lface_attributes, merge_named_face)
18975 (lookup_named_face, lookup_derived_face, realize_named_face):
18976 Revert 2008-02-01 change by cyd@stupidchicken.com.
18977
189782008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
18979
18980 * fontset.c (Ffontset_info): Handle the case of inhibitting the
18981 fallback fonts.
18982 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
18983
189842008-02-04 Jason Rumney <jasonr@gnu.org>
18985
18986 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
18987 set full_name.
18988 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
18989
189902008-02-03 Jason Rumney <jasonr@gnu.org>
18991
18992 * makefile.w32-in (OBJ1): Include font.o here.
18993 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
18994
189952008-02-02 Jason Rumney <jasonr@gnu.org>
18996
18997 * makefile.w32-in (temacs): Bump EMHEAP to 21.
18998
189992008-02-01 Jason Rumney <jasonr@gnu.org>
19000
19001 * s/cygwin.h: Define VIRT_ADDR_VARIES.
19002
19003 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
19004
190052008-02-01 Andreas Schwab <schwab@suse.de>
19006
19007 * Makefile.in (shortlisp, lisp): Update for rename of
19008 ../lisp/language/myanmar.el.
19009
190102008-02-01 Chong Yidong <cyd@stupidchicken.com>
19011
19012 * xfaces.c (get_lface_attributes): Delete function.
19013 (merge_named_face, lookup_named_face, lookup_derived_face)
19014 (realize_named_face): Call lface_from_face_name directly, and use
19015 the fact that merge_face_vectors does not alter its FROM argument.
19016
190172008-02-01 Jason Rumney <jasonr@gnu.org>
19018
19019 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
19020 input in the default locale. Handle non-Unicode multibyte input.
19021
190222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19023
19024 * fontset.c (reorder_font_vector): Exclude nil elements from the
19025 font group. Don't try multiple fonts.
19026 (fontset_font): Adjust for the above change.
19027 (Finternal_char_font): Return nil if the found font doesn't
19028 contain the character ch.
19029
19030 * Makefile.in (lisp, shortlisp): Add cham.el.
19031
190322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19033
19034 * font.h (FONTP): Make it return 1 also for a font-object.
19035
19036 * .gdbinit (xfontset): New function.
19037
19038 * font.c (font_find_for_lface): Check if the character C is
19039 supported or not only for the first font.
19040
19041 * fontset.c (reorder_font_vector): Fix typo.
19042 (fontset_find_font): Don't add a font-spec specifying a script.
19043 Use 0 (not Qt) for the indication of empty font-group. Change the
19044 format of RFONT-DEF. Return Qt if no font in the font-group
19045 support the character.
19046 (fontset_font): Adjust for the above change. If no font was
19047 found the character, remember that.
19048 (face_for_char): Adjust for the change of RFONT-DEF.
19049 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
19050 no font for the target.
19051 (Finternal_char_font): Adjust for the change of RFONT-DEF.
19052
190532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19054
19055 * font.c (font_load_for_face): Handle the case that the font in
19056 face->lface is a string.
19057
190582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19059
19060 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
19061
190622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19063
19064 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
19065 Fix previous change. If the frame is not on a window system,
19066 signal an error.
19067
190682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19069
19070 * coding.c (decode_coding_object, encode_coding_object): Adjust
19071 marker positions after conversion.
19072
19073 * lisp.h (struct Lisp_Marker): New member need_adjustment.
19074
190752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19076
19077 * font.c (font_find_for_lface): Fix the handling of the return
19078 value of font_has_char.
19079 (Ffont_shape_text): Fix previous change.
19080
19081 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
19082 (fontset_ref_and_range): Delete it.
19083 (fontset_find_font): Call char_table_ref_and_range instead of
19084 FONTSET_REF_AND_RANGE.
19085 (make_fontset): Don't setup font groups of Latin here.
19086 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
19087 (new_fontset_from_font): Make the specified font the default for
19088 all Latin characters.
19089
190902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19091
19092 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
19093 is on a window system before accessing the fontset of the frame.
19094
190952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19096
19097 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
19098
19099 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
19100 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
19101
19102 * font.c (Ffont_shape_text): If the font driver doesn't have a
19103 shaper function, make zero-width glyphs to have at least one-pixel
19104 width. Fix setting of `to' field of glyphs.
19105
191062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19107
19108 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
19109 glyphs.
19110
19111 * font.h (struct font_driver): Improve docstring of member `shape'.
19112
191132008-02-01 Kenichi Handa <handa@m17n.org>
19114
19115 * composite.c (syms_of_composite): Fix docstring of
19116 auto-composition-function.
19117
19118 * font.h (LGLYPH_SIZE): New macro.
19119
19120 * font.c (Ffont_fill_gstring): Stop filling when a character not
19121 supported by the font is found.
19122 (Ffont_shape_text): When a shape callback function returns nil,
19123 try at most two more times with larger gstring.
19124 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
19125
19126 * xdisp.c (handle_auto_composed_prop): Change the argument to
19127 auto-composition-function.
19128
19129 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
19130 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
19131 Lispy glyph and store it in the lgstring.
19132
19133 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
19134
19135 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
19136
191372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19138
19139 * font.c (Ffont_shape_text): Avoid unnecessary composition.
19140
19141 * fontset.c (Vfont_encoding_charset_alist): New variable.
19142 (syms_of_fontset): DEFVAR it.
19143 (reorder_font_vector, fontset_find_font): Optimize for the case of
19144 no need of reordering.
19145 (face_for_char): Map the charset property by
19146 Vfont_encoding_charset_alist.
19147
191482008-02-01 Jason Rumney <jasonr@gnu.org>
19149
19150 * w32font.c (logfonts_match): Don't check adstyle here.
19151 (font_matches_spec): Check here against physical font instead.
19152 (add_font_entity_to_list): Avoid some substitutions.
19153
19154 * font.c (font_parse_fcname): Default weight and slant to normal.
19155 (font_score): Prefer normal fonts if weight or slant unspecified.
19156 (font_score) [WINDOWSNT]: Scale weight difference down to closer
19157 match freetype scores.
19158
191592008-02-01 Jason Rumney <jasonr@gnu.org>
19160
19161 * w32font.c (w32font_text_extents): Don't use the frame stored in the
19162 font, as it may have been deleted.
19163 (w32_enumfont_pattern_entity): Map generic family to adstyle using
19164 most common hyphenless variation.
19165 (logfonts_match): Check generic family.
19166 (font_matches_spec): Don't check generic family here.
19167 (fill_in_logfont): Set generic family based on adstyle.
19168
19169 * w32font.h (w32font_get_cache): Update declaration.
19170
191712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19172
19173 * ftfont.c (ftfont_get_cache): Adjust the argument type.
19174
19175 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
19176 If none of the new drivers are available, call font_update_drivers
19177 with the old drivers.
19178
19179 * w32font.c (w32font_get_cache): Adjust the argument type.
19180
19181 * xfont.c (xfont_get_cache): Adjust the argument type.
19182
19183 * font.h (struct font_driver): Change argument type of get_cache.
19184
19185 * xftfont.c (xftfont_start_for_frame): Delete prototype.
19186
19187 * font.c (Ffont_get): Fix arguments to Fassoc.
19188 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
19189 (font_clear_cache): New function.
19190 (font_list_entities, font_matching_entity): Use font_get_cache.
19191 (font_update_drivers): Call font_clear_cache when finishing a driver.
19192
19193 * fontset.c (fontset_find_font): Fix previous change.
19194
191952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19196
19197 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
19198 dpyinfo->font_table.
19199 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
19200 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
19201
19202 * font.c (font_at): Handle the case that the arg C is negative.
19203 Handle the unibyte case.
19204 (Ffont_at): Call font_at with the arg C -1.
19205
19206 * xdisp.c (handle_auto_composed_prop): Don't get a character at
19207 the position here, and call font_at with the arg C -1.
19208 Don't check the range of the existing composition at the point.
19209
192102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19211
19212 * fontset.c (fontset_add): New args charset_id and family.
19213 Change caller.
19214 (load_font_get_repertory, fontset_find_font): Assume that
19215 font_spec is always a font-spec object.
19216 (Fset_fontset_font): Always store a font-spec object in a fontset.
19217
19218 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
19219 instead of get_property_and_range.
19220
192212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19222
19223 * xftfont.c (struct xftfont_info): Delete the member ft_face.
19224 (xftfont_open): Don't keep locking face.
19225 (xftfont_close): Don't unlock face.
19226 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
19227
19228 * fontset.c (fontset_find_font): Don't prefer a font of
19229 supplementary charset.
19230
192312008-02-01 Kenichi Handa <handa@m17n.org>
19232
19233 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
19234 script, langsys_tag to langsys, new member script.
19235 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 19236 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
19237 listing to the script specified in that property. Fix arg to
19238 OTF_check_features.
19239
192402008-02-01 Jason Rumney <jasonr@gnu.org>
19241
19242 * w32font.h: New file.
19243
19244 * w32font.c: Include it.
19245 (struct w32font_info): Add owning_frame field. Move to w32font.h.
19246 (w32font_open): Set owning_frame.
19247 (w32font_text_extents): Use owning_frame.
19248 (struct font_callback_data): Add opentype_only field.
19249 (add_font_entity_to_list): Use it to filter fonts.
19250 Don't check against full name.
19251 (w32font_list_internal): New function.
19252 (w32font_list): Use it.
19253 (w32font_match_internal): New function.
19254 (w32font_match): Use it.
19255 (w32font_open_internal): New function.
19256 (w32font_open): Use it.
19257 (w32font_get_cache, w32font_close, w32font_has_char)
19258 (w32font_encode_char, w32font_text_extents, w32font_draw):
19259 Make non-static.
19260
19261 * makefile.w32-in (w32font.o): Depend on w32font.h.
19262
192632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19264
19265 * charset.c (Fdefine_charset_internal): Record a supplementary
19266 charset at the tail of Vcharset_order_list.
19267
19268 * font.c (Ffont_shape_text): Fix the return value.
19269
19270 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
19271
19272 * xdisp.c (handle_auto_composed_prop): Fix previous change.
19273
192742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19275
19276 * ftfont.c (struct OpenTypeSpec): New struct.
19277 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
19278 (ftfont_get_open_type_spec): New function.
19279 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
19280
19281 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
19282
192832008-02-01 Jason Rumney <jasonr@gnu.org>
19284
19285 * w32font.c (add_font_entity_to_list): Compare only the beginning
19286 of full name.
19287
192882008-02-01 Kenichi Handa <handa@m17n.org>
19289
19290 * xdisp.c (handle_auto_composed_prop): Simplify the code.
19291 Never return HANDLED_RECOMPUTE_PROPS.
19292
192932008-02-01 Kenichi Handa <handa@m17n.org>
19294
19295 * font.c (font_gstring_produce): Delete it.
19296
19297 * composite.h (COMPOSITION_METHOD):
19298 Handle COMPOSITION_WITH_GLYPH_STRING.
19299
193002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19301
19302 * xfont.c (Qx): Delete.
19303 (syms_of_xfont): Don't initialize Qx.
19304
19305 * composite.h (enum composition_method):
19306 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
19307
193082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19309
19310 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
19311 (choose_face_font): Accept new form of font-spec.
19312
19313 * frame.h (font_driver_list): Declare it unconditionally.
19314 (struct frame): Define members font_driver_list and font_data_list
19315 unconditionally.
19316
19317 * fontset.c: Include "font.h" unconditionally.
19318 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
19319 (Fset_fontset_font): Accept a font-spec object.
19320
19321 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
19322 PIXEL_SIZE part a wild card.
19323
19324 * dispextern.h (struct glyph_string): Define members clip and
19325 num_clips unconditionally.
19326 (struct face): Define members font_info and extra unconditionally.
19327
19328 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
19329 ftfont_info only when HAVE_LIBOTF is defined.
19330
193312008-02-01 Andreas Schwab <schwab@suse.de>
19332
19333 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
19334 and end.
19335
193362008-02-01 Jason Rumney <jasonr@gnu.org>
19337
19338 * w32font.c (w32font_driver): Add new fields.
19339
193402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19341
19342 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
19343 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
19344 (LIBES): Add @M17N_FLT_CFLAGS@.
19345
19346 * composite.c (compose_text): Don't treat the new style
19347 composition specially.
19348
19349 * emacs.c (main): Call syms_of_font unconditionally.
19350
19351 * font.h (FONT_ENTITY_NOT_LOADABLE)
19352 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
19353 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
19354 (struct font_driver): New member shape.
19355 (font_registry_charsets): Extern it.
19356 (font_find_for_lface, font_prepare_composition): Adjust prototype.
19357 (font_otf_capability, font_drive_otf): Delete their externs.
19358
19359 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
19360 (font_charset_alist, font_registry_charsets): Move from xfont.c
19361 and rename.
19362 (font_prop_validate_otf): New function.
19363 (font_property_table): Register it for QCotf.
19364 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
19365 (font_drive_otf): Delete.
19366 (font_prepare_composition): New arg F. Adjust for the change of
19367 lispy gstring.
19368 (font_find_for_lface): New arg C.
19369 (font_load_for_face): Adjust for the change of font_find_for_lface.
19370 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
19371 lispy gstring.
19372 (Ffont_shape_text): New function.
19373 (Fopen_font): If the font size is not given, use 12-pixel.
19374 (Ffont_at): New arg STRING.
40b1a3a9 19375 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
19376 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
19377 conditionally.
19378
19379 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
19380 fonts of the same font-spec. Change the format of RFONT-DEF.
19381 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
19382 Adjust for the change of RFONT-DEF.
19383 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
19384
19385 * ftfont.h: New file.
19386
19387 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
19388 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19389 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19390 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
19391 font_otf_capability and font_drive_otf, set ftfont_shape.
19392 (ftfont_list): Adjust for the change of :otf property value.
19393 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
19394 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
19395 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
19396 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19397 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
19398 (otf_gstring, gstring, m17n_flt_initialized): New variables.
19399
19400 * w32term.c (x_draw_composite_glyph_string_foreground):
19401 Adjust for the change of lispy gstring.
19402
19403 * xdisp.c (handle_composition_prop): Adjust for the change of
19404 lispy gstring. Call a function for auto-composition with the
19405 third arg it->window.
19406 (fill_composite_glyph_string): Adjust for the change of lispy string.
19407 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
19408
19409 * xfaces.c (set_font_frame_param): Adjust for the change of
19410 font_find_for_lface.
19411
19412 * xfont.c (x_font_charset_alist): Move to font.c and rename.
19413 (xfont_registry_charsets): Likewise. Change caller.
19414 (syms_of_xfont): Don't handle x_font_charset_alist.
19415
19416 * xftfont.c: Include "ftfont.h".
19417 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19418 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19419 (xftfont_close) [HAVE_LIBOTF]: Close otf.
19420 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19421 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
19422 Set xftfont_driver.shape to xftfont_shape.
19423
19424 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19425 the change of lispy gstring.
19426
194272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19428
19429 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
19430
194312008-02-01 Jason Rumney <jasonr@gnu.org>
19432
19433 * w32font.c (w32font_draw): Fill background manually.
19434
194352008-02-01 Jason Rumney <jasonr@gnu.org>
19436
19437 * font.c (Qfontp): Remove unused symbol.
19438 (QCantialias): New symbol.
19439 (syms_of_font): Define it.
19440 (font_property_table): Set a validator for QCantialias.
19441
19442 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
19443 Define if not already.
19444 (QCfamily): Share with xfaces.c.
19445 (Qstandard, Qsubpixel, Qnatural): New symbols.
19446 (syms_of_w32font): Define them. Don't define QCfamily here.
19447 (w32_antialias_type, lispy_antialias_type): New functions.
19448 (w32_enumfont_pattern_entity): New arg requested_font.
19449 Set antialias parameter if non-default was requested.
19450 (fill_in_logfont): Fill in lfQuality if :antialias specified.
19451
194522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19453
19454 * lread.c (read1): Undo the previous change.
19455
194562008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
19457
19458 * frame.c (Fdelete_frame): Call font_update_drivers only when
19459 USE_FONT_BACKEND is defined.
19460
194612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19462
19463 * font.h (struct font_bitmap): New member bits_per_pixel.
19464 (struct font_driver): New members start_for_frame and end_for_frame.
19465 (struct font_data_list): New struct.
19466 (font_put_frame_data, font_get_frame_data): Extern them.
19467
19468 * frame.h (struct frame): New member font_data_list.
19469
19470 * font.c (font_update_drivers): Call driver->start_for_frame and
19471 driver->end_for_frame at proper timings.
19472 (font_put_frame_data, font_get_frame_data): New functions.
19473 (Ffont_spec): Add usage in the docstring.
19474
19475 * frame.c (make_frame): Initialize f->font_data_list to NULL.
19476 (Fdelete_frame): Call font_update_drivers.
19477
19478 * xftfont.c (struct xftface_info): Delete the member xft_draw.
19479 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
19480 (xftfont_get_xft_draw): New function.
19481 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
19482 (xftfont_end_for_frame): New function.
19483 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
19484
19485 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
19486 Change argument. Cache GCs in the per-frame data.
19487 (struct ftxfont_frame_data): New struct.
19488 (ftxfont_draw_bitmap): New arg gc_fore and flush.
19489 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
19490 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
19491 (ftxfont_end_for_frame): New function.
19492 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
19493
19494 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
19495
194962008-02-01 Kenichi Handa <handa@m17n.org>
19497
19498 * xselect.c (Vselection_coding_system)
19499 (Vnext_selection_coding_system): Delete them.
19500 (syms_of_xselect): Don't declare selection-coding-system and
19501 next-selection-coding-system. They are declared in select.el.
19502
195032008-02-01 Jason Rumney <jasonr@gnu.org>
19504
19505 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
19506
19507 * w32fns.c: Include imm.h.
19508 (get_composition_string_fn, get_ime_context_fn): New optional
19509 system functions.
19510 (globals_of_w32fns): Load them from imm32.dll.
19511 (ignore_ime_char): New flag.
19512 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
19513 WM_IME_ENDCOMPOSITION messages.
19514
19515 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
19516 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
19517
195182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19519
19520 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
19521 (READCHAR_REPORT_MULTIBYTE): New macro.
19522 (readchar): New 2nd arg MULTIBYTE.
19523 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
19524 Make symbol's name multibyte according to the multibyteness of the
19525 source.
19526
195272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19528
19529 * xfaces.c (face_for_overlay_string): Call lookup_face with
19530 correct arguments (fix of synching with the trunk).
19531
195322008-02-01 Kenichi Handa <handa@m17n.org>
19533
19534 * font.c (font_prop_validate_symbol, font_prop_validate_style)
19535 (font_prop_validate_non_neg, font_prop_validate_spacing):
19536 Delete argument prop_index.
19537 (font_property_table): Change arguments to validater. Change Callers.
19538 (font_lispy_object): Delete.
19539 (font_at): Use font_find_object instead fo font_lispy_object.
19540
195412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19542
19543 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
19544 and file names.
19545
195462008-02-01 Jason Rumney <jasonr@gnu.org>
19547
19548 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
19549 (font_matches_spec): Remove debug output.
19550 (add_font_entity_to_list): Avoid using substituted fonts.
19551
195522008-02-01 Jason Rumney <jasonr@gnu.org>
19553
19554 * doc.c (Fsnarf_documentation):
19555 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
19556
195572008-02-01 Miles Bader <miles@gnu.org>
19558
19559 * dispextern.h (struct glyph_row): Only define "clip" field if
19560 HAVE_WINDOW_SYSTEM is defined.
19561
195622008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19563
19564 Fix up multi-tty merge.
19565
19566 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
19567 and indentation.
19568
19569 * xfaces.c (free_realized_face, clear_face_gcs):
19570 Include font_done_for_face in the input_blocked section, just in case.
19571
19572 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
19573 (get_char_face_and_encoding): Undo last change and remove the *other*
19574 duplicate definition (i.e. keep the one that's better scoped and that
19575 includes code for the font-backend).
19576
19577 * terminal.c (create_terminal): Default keyboard_coding to
19578 `no-conversion' and terminal_coding to `undecided'.
19579
19580 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
19581
19582 * fontset.c (free_realized_fontsets): Check that the table entry does
19583 contain a fontset before trying to compare it to `base'.
19584
19585 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
19586 syms_of_charset, and syms_of_coding earlier because init_window_once
19587 now needs Vcoding_system_hash_table to be setup.
19588
19589 * coding.h (default_buffer_file_coding): Remove.
19590
19591 * coding.c (default_buffer_file_coding): Remove.
19592 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
19593 than ->symbol, and use the terminal-local coding system.
19594 (syms_of_coding): Don't setup the coding-systems that are not
19595 terminal-local.
19596 (Fdefine_coding_system_internal): Use XCAR/XCDR.
19597
19598 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
19599 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
19600
19601 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
19602 in chartab.c and were re-added here by mistake.
19603 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
19604
19605 * doc.c (Fsnarf_documentation):
19606 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
19607 src to etc.
19608
19609 * ChangeLog.10: Add mistakenly removed entry.
19610
196112008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
19612
19613 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
19614
196152008-02-01 Miles Bader <miles@gnu.org>
19616
19617 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
19618 Add extra args to FACE_FOR_CHAR.
19619
196202008-02-01 Kenichi Handa <handa@m17n.org>
19621
19622 * keymap.c (where_is_internal_1): If key is a cons, store the copy
19623 in sequence.
19624
19625 * chartab.c (map_sub_char_table, map_char_table): If the range
19626 contains just one character, call the function with that character
19627 even if the depth is not 3.
19628
196292008-02-01 Jason Rumney <jasonr@gnu.org>
19630
19631 * w32font.c (w32font_text_extents): Calculate metrics for the
19632 whole string.
19633
196342008-02-01 Jason Rumney <jasonr@gnu.org>
19635
19636 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
19637
196382008-02-01 Jason Rumney <jasonr@gnu.org>
19639
19640 * w32term.c (x_set_glyph_string_clipping): Use
19641 get_glyph_string_clip_rects.
19642 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19643 Adjust for the change of struct glyph_string.
19644
19645 * w32font.c (w32font_draw): Do clipping here.
19646
196472008-02-01 Kenichi Handa <handa@m17n.org>
19648
19649 * xftfont.c (xftfont_draw): Adjust for the change of struct
19650 glyph_string.
19651
19652 * xterm.c (x_set_glyph_string_clipping): Use
19653 get_glyph_string_clip_rects.
19654 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19655 Adjust for the change of struct glyph_string.
19656
19657 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
19658 the resulting clip(s}.
19659 (expose_overlaps): Add arg r. Change callers. Set it to
19660 row->clip temporarily.
19661 (expose_window): Redraw rows overlapping the exposed area.
19662
19663 * dispextern.h (struct glyph_row): New member clip.
19664 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
19665 clip_height, new member clip, and num_clips.
19666
196672008-02-01 Kenichi Handa <handa@m17n.org>
19668
19669 * data.c (Fchar_or_string_p): Fix docstring.
19670
196712008-02-01 Kenichi Handa <handa@m17n.org>
19672
19673 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
19674 create a temporary XftDraw object.
19675
196762008-02-01 Kenichi Handa <handa@m17n.org>
19677
19678 * font.c (Ffontp): Fix docstring.
19679
19680 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
19681 strong evidence of ISO-2022.
19682
196832008-02-01 Kenichi Handa <handa@m17n.org>
19684
19685 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
19686 SYNTAX_ENTRY_FOLLOW_PARENT.
19687
196882008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19689
19690 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
19691 its type.
19692 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
19693 Update to the new type of weak_hash_tables and next_weak.
19694
19695 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
19696 a plain C pointer to Lisp_Hash_Table.
19697
19698 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
19699 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
19700 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
19701 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
19702 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
19703 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
19704 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
19705 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
19706 (GC_EQ): Remove since they've been identical to their non-GC_
19707 alter-egos ever since the markbit was eradicated.
19708
19709 * alloc.c:
19710 * buffer.c:
19711 * buffer.h:
19712 * data.c:
19713 * fileio.c:
19714 * filelock.c:
19715 * fns.c:
19716 * frame.h:
19717 * lisp.h:
19718 * macterm.c:
19719 * print.c:
19720 * process.c:
19721 * w32fns.c:
19722 * w32menu.c:
19723 * w32term.c:
19724 * xfns.c:
19725 * xmenu.c:
19726 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
19727
197282008-02-01 Kenichi Handa <handa@m17n.org>
19729
19730 * chartab.c (map_sub_char_table): Make it work for the top-level
19731 char-table. Fix handling of parent char-table.
19732 (map_char_table): Adjust for the above change.
19733
197342008-02-01 Jason Rumney <jasonr@gnu.org>
19735
19736 * w32font.c (Qgdi): Rename from Qw32.
19737
197382008-02-01 Jason Rumney <jasonr@gnu.org>
19739
19740 * w32bdf.c (get_quoted_string): Make function static.
19741
197422008-02-01 Kenichi Handa <handa@m17n.org>
19743
19744 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
19745 bigger ascent and descent than those of the font, use them as
19746 font's ascent and descent.
19747
197482008-02-01 Kenichi Handa <handa@m17n.org>
19749
19750 * Makefile.in (${lispsource}international/charprop.el): Move this
19751 target within "#ifdef HAVE_UNIDATA" and "#endif".
19752
197532008-02-01 Kenichi Handa <handa@m17n.org>
19754
19755 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
19756 (shortlisp): Add ../lisp/language/tai-viet.el.
19757
197582008-02-01 Ulrich Mueller <ulm@gentoo.org>
19759
19760 * Makefile.in (${lispsource}international/charprop.el): Depend on
19761 temacs${EXEEXT}.
19762
197632008-02-01 Jason Rumney <jasonr@gnu.org>
19764
19765 * w32font.c (w32font_close): Delete the GDI font object.
19766
19767 * w32menu.c: Include character.h.
19768
19769 * w32proc.c: Likewise.
19770
19771 * w32select.c: Likewise.
19772
19773 * makefile.w32-in (w32proc.o): Depend on character.h.
19774
197752008-02-01 Jason Rumney <jasonr@gnu.org>
19776
19777 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
19778
19779 * w32menu.c (syms_of_w32menu): Likewise.
19780
19781 * w32proc.c (syms_of_ntproc): Likewise.
19782
19783 * w32select.c (syms_of_w32select): Likewise.
19784
19785 * w32term.c (syms_of_w32term): Likewise.
19786
197872008-02-01 Jason Rumney <jasonr@gnu.org>
19788
19789 * w32font.c (w32font_draw): Delete brush after using it.
19790
197912008-02-01 Jason Rumney <jasonr@gnu.org>
19792
19793 * w32font.c (w32font_open): Don't set font_idx.
19794 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
19795 to font settings.
19796 (w32font_draw): Fill background explicitly.
19797
197982008-02-01 Jason Rumney <jasonr@gnu.org>
19799
19800 * w32term.c (w32_initialize): Don't call w32font_initialize.
19801
19802 * w32font.c (w32font_info): Remove subranges.
19803 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
19804 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
19805 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
19806 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
19807 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
19808 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
19809 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
19810 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
19811 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
19812 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
19813 New symbols.
19814 (font_callback_data): New struct.
19815 (w32font_list, w32font_match): Use it.
19816 (w32font_open): Don't populate subranges.
19817 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
19818 (w32font_encode_char): Always return unicode code-point as-is.
19819 (w32font_text_extents): Supply a transformation matrix to
19820 GetGlyphOutline. Never look up by glyph index. Avoid looping
19821 twice. Use unicode version of GetTexExtentPoint32 instead of
19822 glyph index version.
19823 (set_fonts_frame): Remove.
19824 (w32_enumfont_pattern_entity): Add frame parameter, use it to
19825 set frame parameter. Use backward compatible fake foundries.
19826 Save generic family in extra slot under QCfamily. Make width slot
19827 constant. Save QCspacing value. Save list of scripts instead of
19828 binary subranges.
19829 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
19830 (add_font_entity_to_list): Use font_callback_data struct. Filter
19831 unwanted fonts.
19832 (add_one_font_entity_to_list): Use font_callback_data struct.
19833 (w32_registry): Default to iso10646_1.
19834 (fill_in_logfont): Use dpi from extra slot. Don't bother with
19835 string font registries. Don't fill in font name if it is a generic
19836 family name, fill family instead. Use spacing, family and script
19837 extra info to fill pitch, family and charset fields.
19838 (list_all_matching_fonts): Use font_callback_data struct.
19839 (unicode_range_for_char): Remove.
19840 (font_supported_scripts): New function.
19841 (w32font_initialize): Remove.
19842 (syms_of_w32font): Update which symbols are defined.
19843
198442008-02-01 Jason Rumney <jasonr@gnu.org>
19845
19846 * font.c (font_pixel_size): Reverse assq_no_quit args.
19847
19848 * w32term.h (FONT_WIDTH): Report max width, not average.
19849 (FONT_MAX_WIDTH): Remove.
19850 (FONT_AVG_WIDTH): New macro.
19851
19852 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
19853 redefinition of FONT_WIDTH.
19854
19855 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
19856 (w32_cache_char_metrics): Use FONT_WIDTH.
19857
19858 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
19859
198602008-02-01 Jason Rumney <jasonr@gnu.org>
19861
19862 * w32font.c (w32font_open): Make lfHeight negative.
19863
19864 * w32fns.c (x_default_font_parameter): Use new style font name.
19865 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
19866
198672008-02-01 Jason Rumney <jasonr@gnu.org>
19868
19869 * w32font.c (QCsubranges): New symbol.
19870 (w32font_open, w32font_has_char): Get subranges from subproperty
19871 of extra.
19872 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
19873 (syms_of_w32font): Define :subranges symbol.
19874
19875 * font.c (font_put_extra): Expose externally.
19876
19877 * font.h (font_put_extra): Move declaration from font.c.
19878
19879 * font.c (Ffont_get): Use font driver to determine otf capability.
19880 (adjust_anchor): Check if driver defines anchor_point before using.
19881
19882 * w32font.c (w32font_open): Handle size, height and pixel_size better.
19883 (w32font_draw): Use options.
19884 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
19885 Fix detection of truetype fonts.
19886 (registry_to_w32_charset): Handle charsets other than iso8859-1
19887 expressed as lisp symbols.
19888 (w32_registry): Express charset as lisp symbol.
19889 (fill_in_logfont): Reverse pixel and point height logic.
19890 Don't set width here. Set quality to default.
19891
19892 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
19893 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
19894
19895 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19896 Remove redundant loop and allocation.
19897
19898 * makefile.w32-in (font.o, w32font.o): New objects.
19899 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
19900 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
19901
19902 * xdisp.c (fill_composite_glyph_string): Make the first arg to
19903 STORE_XCHARB a valid l-value.
19904
19905 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
19906 calculations for non-Truetype fonts.
19907 (x_draw_glyph_string): Sync with xterm.c.
19908 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19909 Remove redundant code.
19910 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
19911
19912 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
19913 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
19914
19915 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
19916 (x_to_w32_charset, w32_to_x_charset): Expose externally.
19917
19918 * w32font.c: New file for w32 font backend.
19919
199202008-02-01 Kenichi Handa <handa@m17n.org>
19921
19922 * term.c: Don't include "buffer.h" twice.
19923
199242008-02-01 Kenichi Handa <handa@m17n.org>
19925
19926 * character.c (Funibyte_string): New function.
19927 (syms_of_character): Defsubr it.
19928
199292008-02-01 Jason Rumney <jasonr@gnu.org>
19930
19931 * w32term.c [USE_FONT_BACKEND]:
19932 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
19933 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
19934 (x_draw_glyph_string, x_draw_glyph_string_foreground)
19935 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
19936 (x_free_frame_resources): Sync with xterm.c.
19937
199382008-02-01 Andreas Schwab <schwab@suse.de>
19939
19940 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
19941 char-table size.
19942
199432008-02-01 Kenichi Handa <handa@m17n.org>
19944
19945 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
19946
199472008-02-01 Kenichi Handa <handa@m17n.org>
19948
19949 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
19950 font_otf_gpos, add font_drive_otf.
19951
19952 * fontset.c (fontset_find_font): Pay attention to font size
19953 specified for a font.
19954 (reorder_font_vector): Check contents of font_def.
19955
19956 * font.c (struct otf_list): Delete it.
19957 (otf_list): Make it a lisp variable.
19958 (otf_open): Use lispy otf_list.
19959 (generate_otf_features): Rename from parse_gsub_gpos_spec.
19960 (check_otf_features): New function.
19961 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
19962 New functions.
19963 (font_drive_otf): New function merging font_otf_gsub and
19964 font_otf_gpos.
19965 (font_open_for_lface): New arg spec. Change argument order.
19966 (font_load_for_face): Adjust for the change of font_open_for_lface.
19967 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
19968 Ffont_otf_gpos.
19969 (syms_of_font): Staticpro otf_list. Delete defsubr of
19970 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
19971
19972 * xfaces.c (set_font_frame_param): Adjust for the change of
19973 font_open_for_lface.
19974
19975 * font.h (font_open_for_lface): Adjust prototype.
19976 (struct font_driver): Delete members otf_gsub and otf_gpos, add
19977 member otf_drive.
19978 (font_otf_gsub, font_otf_gpos): Delete externs.
19979 (font_drive_otf): Extern it.
19980
199812008-02-01 Kenichi Handa <handa@m17n.org>
19982
19983 * font.c (font_at): If the window W is not on a window system,
19984 return Qnil.
19985
19986 * coding.c (produce_chars, encode_coding): Don't call
19987 insert_from_gap if no characters to produce.
19988
199892008-02-01 Kenichi Handa <handa@m17n.org>
19990
19991 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
19992 Fclear_face_cache.
19993
19994 * xfaces.c (face_for_font): Check also face->font==font->font.font.
19995
199962008-02-01 Miles Bader <miles@gnu.org>
19997
19998 * emacs.c (main): Change default value of `enable_font_backend' to 1.
19999 Parse "--disable-font-backend" option.
20000 (standard_args): Add "--disable-font-backend" option.
20001
200022008-02-01 Kenichi Handa <handa@m17n.org>
20003
20004 * fontset.c (fontset_find_font): New function.
20005 (fontset_font): Use fontset_find_font.
20006 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
20007 Register the specified font for all Latin characters.
20008 (new_fontset_from_font): Register the specified font for all Latin
20009 characters.
20010 (dump_fontset): For a realized fontset, include the base fontset
20011 name in the returned vector.
20012
200132008-02-01 Kenichi Handa <handa@m17n.org>
20014
20015 * character.h (CHAR_STRING): Cast C to unsigned on calling
20016 char_string.
20017
20018 * character.c (char_string): Type of arg C changed to unsigned.
20019 Signal an error if C is an invalid character code.
20020
20021 * editfns.c (general_insert_function, Fchar_to_string):
20022 Use CHARACTERP, not INTEGERP.
20023
200242008-02-01 Kenichi Handa <handa@m17n.org>
20025
20026 * character.h (MIN_MULTIBYTE_LEADING_CODE)
20027 (MAX_MULTIBYTE_LEADING_CODE): New macros.
20028
20029 * regex.c (analyse_first): Fix for multibyte characters in "case
20030 charset:" and "case categoryspec:".
20031
200322008-02-01 Andreas Schwab <schwab@suse.de>
20033
20034 * Makefile.in (LIBES): Move standard libraries to the end.
20035
200362008-02-01 Kenichi Handa <handa@m17n.org>
20037
20038 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
20039 nonzero, don't shrink the buffer nextb.
20040
20041 * buffer.h (struct buffer_text): New member inhibit_shrinking.
20042
20043 * coding.c (coding_alloc_by_making_gap): New arg offset.
20044 (alloc_destination): Call coding_alloc_by_making_gap with the arg
20045 offset.
20046 (decode_coding_iso_2022): Update coding->safe_charsets.
20047 (decode_coding_gap): Temporarily set
20048 current_buffer->text->inhibit_shrinking to 1.
20049
200502008-02-01 Kenichi Handa <handa@m17n.org>
20051
20052 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
20053 indexing into elements of s->cmp and s->char2b.
20054
200552008-02-01 Juanma Barranquero <lekktu@gmail.com>
20056
20057 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
20058
200592008-02-01 Kenichi Handa <handa@m17n.org>
20060
20061 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
20062 target_multibyte instead of multibyte.
20063 (re_match_2_internal): Call bcmp_translate with target_multibyte.
20064 (bcmp_translate): Change the argument name from multibyte to
20065 target_multibyte.
20066
200672008-02-01 Kenichi Handa <handa@m17n.org>
20068
20069 These changes are to compile a regexp into a pattern that can be
20070 used both for multibyte and unibyte targets.
20071
20072 * Makefile.in (search.o): Depend on charset.h.
20073
20074 * character.c (multibyte_char_to_unibyte_safe): New function.
20075
20076 * search.c: Include "charset.h".
20077 (compile_pattern_1): Delete argument multibyte. Don't set
20078 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
20079 (compile_pattern): Don't compare cp->buf.target_multibyte.
20080 Compare cp->buf.charset_unibyte.
20081 (compile_pattern): Set cp->buf.target_multibyte.
20082
20083 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
20084
20085 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
20086
20087 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
20088 multibyte. Change callers.
20089 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
20090 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
20091 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
20092 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
20093 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
20094 (regex_compile): Make the compiled pattern usable both for
20095 multibyte and unibyte targets.
20096 (analyse_first): Make the fastmap usable both for multibyte and
20097 unibyte targets.
20098 (TRANSLATE_VIA_MULTIBYTE): Delete.
20099 (re_match_2_internal): Pay attention to the case that the
20100 multibyteness of bufp and target may be different.
20101
201022008-02-01 Kenichi Handa <handa@m17n.org>
20103
20104 * xdisp.c (x_produce_glyphs): When a font is not found, make the
20105 empty box occupy at least one column width.
20106
201072008-02-01 Miles Bader <miles@gnu.org>
20108
20109 * Makefile.in: Remove redundant HAVE_XFT clause.
20110
201112008-02-01 Kenichi Handa <handa@m17n.org>
20112
20113 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
20114
201152008-02-01 Kenichi Handa <handa@m17n.org>
20116
20117 * fontset.c (Finternal_char_font): Fix for the case of POSITION
20118 being nil.
20119
201202008-02-01 Kenichi Handa <handa@m17n.org>
20121
20122 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
20123
201242008-02-01 Kenichi Handa <handa@m17n.org>
20125
20126 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
20127
201282008-02-01 Kenichi Handa <handa@m17n.org>
20129
20130 * search.c (simple_search): Fix previous change.
20131
201322008-02-01 Kenichi Handa <handa@m17n.org>
20133
20134 * xftfont.c (ftfont_font_format): Extern declaration.
20135
20136 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
20137
20138 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
20139 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
20140
20141 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
20142 (ftfont_font_format): Fix previous change.
20143
20144 * font.h (Ffont_xlfd_name): EXFUN it.
20145
20146 * font.c (font_parse_xlfd): Fix the array size of `f'.
20147 (register_font_driver): Use EQ to compare driver->type.
20148
20149 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
20150 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
20151 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
20152
201532008-02-01 Kenichi Handa <handa@m17n.org>
20154
20155 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
20156 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
20157
201582008-02-01 Kenichi Handa <handa@m17n.org>
20159
20160 * xfont.c (xfont_open): Set font->format.
20161
20162 * xftfont.c (xftfont_open): Set font->format.
20163
20164 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
20165 (ftfont_list): Include FC_FONTFORMAT in FcObject.
20166 (ftfont_open): Set font->format.
20167 (ftfont_font_format): New function.
20168
20169 * font.h (struct font): New member format.
20170
20171 * font.c (Qopentype): New variable.
20172 (syms_of_font): Defsym it.
20173 (Fquery_font): Change the format of the last element of the return
20174 value.
20175
201762008-02-01 Kenichi Handa <handa@m17n.org>
20177
20178 * xfns.c (xic_create_xfontset): Try the default fontset name as a
20179 last resort.
20180
201812008-02-01 Kenichi Handa <handa@m17n.org>
20182
20183 * coding.c (detect_coding_charset): Fix detection of multi-byte
20184 charset.
20185
201862008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
20187
20188 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
20189
201902008-02-01 Kenichi Handa <handa@m17n.org>
20191
20192 * xdisp.c (get_next_display_element): Set it->face_id for the
20193 first component of a composition.
20194 (x_produce_glyphs): Check if the font is changed or not for composition.
20195
201962008-02-01 Kenichi Handa <handa@m17n.org>
20197
20198 * fontset.c (Qlatin): New variable.
20199 (syms_of_fontset): Define it as a lisp symbol.
20200 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
20201
202022008-02-01 Kenichi Handa <handa@m17n.org>
20203
20204 * font.c (font_unparse_fcname): Pay attention to the case that
20205 some of font property is a null string.
20206
202072008-02-01 Kenichi Handa <handa@m17n.org>
20208
20209 * term.c: Include "composite.h".
20210 (encode_terminal_code): Output all components of composition.
20211 Check the size of encode_terminal_src.
20212 (produce_glyphs): For composition, call produce_composite_glyph.
20213 (append_composite_glyph, produce_composite_glyph): New functions.
20214
20215 * xdisp.c (x_produce_glyphs): In handling composition, if a font
20216 is not found, get font_info from the current ascii face.
20217
202182008-02-01 Kenichi Handa <handa@m17n.org>
20219
20220 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
20221 buffer-file-name to Qnil before calling insert_from_buffer.
20222
20223 * font.c (font_unparse_fcname): Pay attention to the case that
20224 foundry is a null string.
20225
202262008-02-01 Kenichi Handa <handa@m17n.org>
20227
20228 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
20229
20230 * font.c (Qunicode_sip): New variable.
20231 (syms_of_font): Declare it as a Lisp symbol.
20232
20233 * font.h (Qunicode_sip): Extern it.
20234
202352008-02-01 Kenichi Handa <handa@m17n.org>
20236
20237 * composite.c (get_composition_id): Pay attention to TAB component.
20238
20239 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
20240 TAB. Adjust for the change of s->char2b which always points to
20241 the first element of allocated memory.
20242
20243 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
20244
20245 * xdisp.c (handle_composition_prop): Set it->c to the first
20246 non-TAB component.
20247 (fill_composite_glyph_string): Change argument.
20248 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
20249 (x_produce_glyphs): Fix handling of left/right padding.
20250
202512008-02-01 Kenichi Handa <handa@m17n.org>
20252
20253 * coding.c (detect_coding_system): Fix for handling off
20254 inhibit_iso_escape_detection. Fix for the case that no coding
20255 system is defined for a specific coding category.
20256
202572008-02-01 Kenichi Handa <handa@m17n.org>
20258
20259 * font.c (font_matching_entity): Delete unused local var.
20260
20261 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
20262 opening a font.
20263
20264 * fileio.c (Finsert_file_contents): On recovering a file, assume
20265 Unix-like eol.
20266 (choose_write_coding_system): On auto-saving a file, force
20267 Unix-like eol.
20268
20269 * coding.c (setup_coding_system): Fix setting of
20270 coding->common_flags based on eol_type.
20271 (coding_inherit_eol_type): If PARENT is not nil, be sure to
20272 inherit from it.
20273
202742008-02-01 Kenichi Handa <handa@m17n.org>
20275
20276 * alloc.c (NSTATICS): Increas to 0x600.
20277
202782008-02-01 Kenichi Handa <handa@m17n.org>
20279
20280 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
20281 (ftfont_list): Don't check :name property.
20282 (ftfont_match): New function.
20283 (ftfont_pattern_entity): If the pattern doesn't contain
20284 FC_SPACING, don't assume FC_MONO.
20285
20286 * font.h (struct font_driver): New member `match'.
20287 (font_update_drivers): Adjust prototype.
20288
20289 * font.c (font_parse_fcname, font_parse_name): Don't change :name
20290 property of FONT.
20291 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
20292 them unconditionally.
20293 (font_matching_entity): New function.
20294 (font_open_by_name): Try font_matching_entity if exact match is
20295 not found.
20296 (font_update_drivers): Delete the arg FONT. Return a list of
20297 actually used backends. Don't free faces, font caches here.
20298 Don't store data in frame parameters. Don't call x_set_font.
20299 (Ffont_spec): Store :name property as is.
20300 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
20301 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
20302 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
20303 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
20304 Call font->driver->otf_gsub instead of font_otf_gsub.
20305
20306 * frame.c (x_set_font_backend): Do more works that were done in
20307 font_update_drivers before.
20308
20309 * xfont.c (xfont_match): New function.
20310 (xfont_driver): Set xfont_driver.match to xfont_match.
20311 (xfont_draw): Set font in GC if necessary.
20312
20313 * ftxfont.c (ftxfont_match): New function.
20314 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
20315
20316 * xftfont.c (xftfont_match): New function.
20317 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
20318
203192008-02-01 Kenichi Handa <handa@m17n.org>
20320
20321 * font.h (struct font): New member scalable.
20322 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
20323 (font_otf_gsub): Adjust prototype.
20324
20325 * font.c (font_otf_capability): Fix handling of the default langsys.
20326 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
20327 Check the contents of SPEC.
20328 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
20329 (check_gstring): New function.
20330 (REPLACEMENT_CHARACTER): New macro.
20331 (font_otf_gsub): New arg alternate_subst. Be sure to set all
20332 glyph codes of GSTRING.
20333 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
20334 (font_prepare_composition): Set cmp->glyph_len.
20335 (font_open_entity): Set font->scalable.
20336 (Ffont_get): Handle :otf property.
20337 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
20338 functions.
20339 (Fquery_font): Use font->font.full_name.
20340 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
20341 Sfont_otf_alternates.
20342
20343 * ftfont.c (ftfont_open): Set font->font.full_name and
20344 font->font.name properly. Fix calculation of font->font.height
20345 and font->min_width.
20346
20347 * ftxfont.c (ftxfont_create_gcs): New function.
20348 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
20349 (ftxfont_draw_backgrond): Fix filling region.
20350 (ftxfont_default_fid): New function.
20351 (ftxfont_open): Set xfont->fid to the return value of
20352 ftxfont_default_fid.
20353 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
20354 (ftxfont_done_face): Free only GCs that are created by
20355 ftxfont_create_gcs.
20356 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
20357
20358 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
20359 Clip to src->width, etc (not src->clip_XXX).
20360
20361 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
20362 FontBackend frame parameter.
20363
203642008-02-01 Kenichi Handa <handa@m17n.org>
20365
20366 * font.h (struct font_driver_list): New member `on'.
20367 (Fclear_font_cache): EXFUN it.
20368 (font_update_drivers): Extern it.
20369
20370 * font.c (font_unparse_fcname): Fix typo (swidth->width).
20371 (font_list_entities): Check driver_list->on.
40b1a3a9 20372 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
20373 (font_update_drivers): New function.
20374 (Fclear_font_cache): Check driver_list->on.
20375
20376 * frame.h (Qfont_backend): Extern it.
20377 (x_set_font_backend): Extern it.
20378
20379 * frame.c (Qfont_backend): New variable.
20380 (frame_parms): New element for font-backend.
20381 (x_set_font_backend): New function.
20382
20383 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
20384 FontBackend frame parameter.
20385 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
20386 x_set_font_backend.
20387
20388 * xfont.c (xfont_list): Don't try listing by :name property if the
20389 name is not for XLFD.
20390
203912008-02-01 Kenichi Handa <handa@m17n.org>
20392
20393 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
20394 (LGLYPH_SET_TO): New macros.
20395 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
20396 element of G is vector or not.
20397 (font_at): Extern it.
20398
20399 * font.c: Include window.h.
20400 (font_lispy_object): New function.
20401 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
20402 end of valid glyph.
20403 (font_close_object): Fix getting (struct font *).
20404 (font_at): New function.
20405 (Ffont_get): If FONT is a font-object, get entity from it.
20406 (Ffont_make_gstring): Initialize elements of glyphs with nil.
20407 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
20408 range check.
20409 (Ffont_at): New function.
20410 (syms_of_font): Defsubr Sfont_at.
20411
20412 * xdisp.c (it_props): Move the entry for Qauto_composed to just
20413 before the entry for Qcomposition.
20414 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
20415 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
20416 the font in gstring.
20417 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
20418 LGLYPH_FORM (g) to detect the end of valid glyph.
20419 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
20420 we are composing with gstring.
20421
20422 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
20423 Check if adjustment is vector or not.
20424
20425 * Makefile.in (font.o): Make it depends on window.h.
20426
204272008-02-01 Kenichi Handa <handa@m17n.org>
20428
20429 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
20430 adjustment is vector or not.
20431
204322008-02-01 Miles Bader <miles@gnu.org>
20433
20434 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
20435
204362008-02-01 Kenichi Handa <handa@m17n.org>
20437
20438 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
20439 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
20440 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
20441
20442 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
20443 (DEVICE_DELTA): Fix typo.
20444 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
20445 LGLYPH format.
20446
20447 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
20448 the change of LGLYPH format.
20449
204502008-02-01 Kenichi Handa <handa@m17n.org>
20451
20452 * ftfont.c (ftfont_list): Fix typo.
20453 (ftfont_build_basic_charsets): Don't include letters with diacritics.
20454
204552008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20456
20457 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
20458
20459 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
20460 xftface_info is non-NULL.
20461
204622008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20463
20464 * ftfont.c (ftfont_list): Move misplaced #endif.
20465
204662008-02-01 Kenichi Handa <handa@m17n.org>
20467
20468 * ftfont.c (ftfont_list): Pay attention to the case that
20469 FC_CAPABILITY is not defined.
20470
204712008-02-01 Kenichi Handa <handa@m17n.org>
20472
20473 * xftfont.c (xftfont_open): Set charset related members to -1.
20474
20475 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
20476 QCname.
20477 (ftfont_open): Set charset related members to -1.
20478
20479 * fontset.c (Votf_script_alist): New variable.
20480 (syms_of_fontset): Initialize it.
20481 (fontset_font): Delete unused variable.
20482
20483 * fontset.h (Votf_script_alist): Extern it.
20484
20485 * font.c (font_find_for_lface): Optimize code.
20486
20487 * font.h (font_close_object, font_merge_old_spec): Extern them.
20488
204892008-02-01 Kenichi Handa <handa@m17n.org>
20490
20491 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
20492 (syms_of_font): Initialize them.
20493 (font_pixel_size): Allow float value in dpi.
20494 (font_prop_validate_type): Delete.
20495 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
20496 Change caller.
20497 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
20498 (font_prop_validate_extra): Delete.
20499 (font_prop_validate_spacing): New function.
20500 (font_property_table): Add elements for all known properties.
20501 (get_font_prop_index): Rename from check_font_prop_name. New
20502 argument FROM. Change caller.
20503 (font_prop_validate): Validate all known properties.
20504 (font_put_extra): Delete argument force. Change caller.
20505 (font_expand_wildcards): Make it static. Fix the way of shrinking
20506 the possible range.
20507 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
20508 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
20509 Change caller.
20510 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
20511 (font_parse_fcname): Delete argument merge. Fix parsing of point
20512 size. Don't validate properties values here. Change caller.
20513 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
20514 (font_open_by_name): Delete unused variable.
20515 (Ffont_spec): Likewise. Validate property values.
20516 (Ffont_match_p): New function.
20517
20518 * font.h (QCscalable): Extern it.
20519 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
20520
20521 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
20522
20523 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
20524 (xfont_list_pattern): New function.
20525 (xfont_list): Use xfont_list_pattern.
20526
205272008-02-01 Kenichi Handa <handa@m17n.org>
20528
20529 * font.h (Flist_fonts): EXFUN it.
20530
205312008-02-01 Jason Rumney <jasonr@gnu.org>
20532
20533 * w32term.c (w32_initialize): Add back smoothing_type and
20534 smoothing_enabled definitions.
20535
205362008-02-01 Kenichi Handa <handa@m17n.org>
20537
20538 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
20539 s->face->font on determining underline position.
20540
205412008-02-01 Kenichi Handa <handa@m17n.org>
20542
20543 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
20544 (font_has_char): Accept font-object too.
20545 (font_find_for_lface): Try at first with a size specified in face.
20546
205472008-02-01 Kenichi Handa <handa@m17n.org>
20548
20549 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
20550 font_open_by_name.
20551
205522008-02-01 Kenichi Handa <handa@m17n.org>
20553
20554 * font.h (QCspacing, QCdpi): Extern them.
20555 (enum font_spacing): New enum.
20556 (FONT_PIXEL_SIZE_QUANTUM): New macro.
20557
20558 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
20559 (QCspacing, QCdpi): New variables.
20560 (syms_of_font): Initialize them.
20561 (font_pixel_size): New function.
20562 (font_put_extra): New function.
20563 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
20564 in FONT_EXTRA.
20565 (font_parse_fcname): Handle enumerated values (e.g. bold).
20566 Fix handling font size. Add QCname property that contains only
20567 unknown properties.
20568 (font_score): Change argument. Change caller. Pay attention to
20569 FONT_PIXEL_SIZE_QUANTUM.
20570 (font_sort_entites, font_list_entities, font_find_for_lface)
20571 (font_open_for_lface, font_open_by_name): Fix handling of font size.
20572 (Ffont_spec): Add QCname property that contains only unknown properties.
20573
20574 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
20575 include weight in listing pattern, instead check weight of each
20576 listed font. Don't include scalable in pattern. Pay attention to
20577 FONT_PIXEL_SIZE_QUANTUM.
20578
205792008-02-01 Kenichi Handa <handa@m17n.org>
20580
20581 * font.c (font_parse_fcname): Fix parsing of point-size.
20582 (font_unparse_fcname): Produce symbolic names for style properties.
20583 (font_list_entities): Handle float size correctly.
20584 (font_open_by_name): Prefer `normal' property values if the name
20585 doesn't specify them.
20586
20587 * fontset.c (Finternal_char_font): Use font_get_name, not
20588 Ffont_xlfd_name.
20589
20590 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
20591 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
20592 pattern. Don't force scalable.
20593
20594 * xftfont.c (xftfont_open): For generating a name, start from
20595 96-byte buffer.
20596
205972008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20598
20599 * frame.h (x_new_fontset2): Fix prototype.
20600
206012008-02-01 Kenichi Handa <handa@m17n.org>
20602
20603 * font.h (struct font_driver): Delete member parse_name.
20604 (font_match_p, font_get_spec, font_parse_fcname)
20605 (font_unparse_fcname): Extern them.
20606 (font_get_name): Adjust prototype.
20607
20608 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
20609 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
20610 (font_expand_wildcards): Fix handling ENCODING field. Avoid
20611 unnecessary checks for weight, slant, and swidth.
20612 (font_parse_fcname): New function.
20613 (font_unparse_fcname): New function.
20614 (font_parse_name): New function.
20615 (font_match_p): New function.
20616 (font_get_name): Change return value to Lisp string.
20617 (font_get_spec): New function.
20618 (Qunspecified, Qignore_defface): Don't extern them.
20619 (font_find_for_lface): Assume that LFACE is fully specified.
20620 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
20621 object, use it for FACE.
20622 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
20623 driver->parse_name.
20624 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
20625
20626 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
20627 prototype.
20628
20629 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
20630 argument F. Don't call Fnew_fontset. Instead, directly call
20631 make_fontset.
20632
20633 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
20634
20635 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
20636 of x_new_fontset2.
20637
20638 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
20639 (Qsans__serif): New variables.
20640 (ftfont_generic_family_list): New variable.
20641 (syms_of_ftfont): Initialize the above variables.
20642 (ftfont_pattern_entity): Delete argument NAME.
20643 (ftfont_list_generic_family): New function.
20644 (ftfont_parse_name): Delete this function.
20645 (ftfont_list): Try generic family only when FcFontList found no font.
20646 (ftfont_list_family): Fix args to FcObjectSetBuild.
20647
20648 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
20649 object in attrs[LFACE_FONT_INDEX].
20650 (set_lface_from_font_name): Cancel all changes for font-backend.
20651 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
20652 function.
20653 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
20654 font object in QCfont attribute.
20655 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
20656 (realize_default_face) [USE_FONT_BACKEND]: Call
20657 set_lface_from_font_and_fontset.
20658
20659 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
20660 "fixed", and signal error here if no suitable font was found.
20661
20662 * xfont.c (xfont_parse_name): Delete this function.
20663
20664 * xftfont.c (xftfont_open): Change coding style of error
20665 handling. Generate fontconfig's fontname pattern.
20666
20667 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
20668 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
20669
20670 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
20671 Both args FONTSET and FONT_OBJECT must be existing ones.
20672
206732008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20674
20675 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
20676
206772008-02-01 Kenichi Handa <handa@m17n.org>
20678
20679 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
20680
20681 * font.h (struct font): Fix typo.
20682
20683 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
20684 XLFD_XXX_INDEX.
20685 (enum xlfd_field_mask): New enum.
20686 (intern_font_field): Changed argument. Change caller. If digits
20687 are followed by non-digits, return a symbol.
20688 (font_expand_wildcards): New function.
20689 (font_parse_xlfd): Fix wildcard handling.
20690 (Ffont_spec): If :name is specified, reflect the info in the other
20691 properties.
20692
20693 * ftfont.c (ftfont_pattern_entity): Fix typo.
20694 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
20695 locale.
20696
206972008-02-01 Kenichi Handa <handa@m17n.org>
20698
20699 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
20700
20701 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
20702 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
20703 registry doesn't specify encoding part.
20704 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
20705 (font_open_by_name): At first try parsing the name.
20706 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
20707 as Lisp symbols.
20708
20709 * fontset.c (reorder_font_vector): Pay attention to the case that
20710 the 3rd element of font_def is nil.
20711 (fontset_font): For the default fontset, append one more fontset
20712 elements for a script-based font specification. Don't add script
20713 attribute on finding a font.
20714 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
20715 font name.
20716 (fontset_ascii_font): If a font can't be opened, return nil.
20717
20718 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
20719 (ftfont_pattern_entity): New function.
20720 (ftfont_get_cache): Assume that freetype_font_cache is already
20721 initialized.
20722 (ftfont_list): Handle the case that a file is specified in font
20723 name. Use ftfont_pattern_entity to generate entities.
20724 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
20725 (syms_of_ftfont): Initialize freetype_font_cache.
20726
20727 * xftfont.c (xftfont_open): Make the font name fontconfig's
20728 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
20729 (xftfont_close): Free font->font.name if not NULL.
20730
20731 * xfont.c (xfont_list): If script is specified for a font, return
20732 null_vector.
20733 (xfont_list_family): Declare argument type.
20734
20735 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
20736 name, set LFACE_FONT (lface) to nil.
20737
20738 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
20739 return Qnil.
20740
207412008-02-01 Kenichi Handa <handa@m17n.org>
20742
20743 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
20744 (standard_args): Add "-enable-font-backend".
20745
207462008-02-01 Kenichi Handa <handa@m17n.org>
20747
20748 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
20749 (struct xftdraw_list, xftdraw_list): Delete them.
20750 (register_xftdraw, check_xftdraw): Delete them.
20751 (xftfont_prepare_face): Don't call register_xftdraw.
20752 (xftfont_done_face): Don't call check_xftdraw.
20753 (xftfont_draw): Get background color only when with_background is
20754 nonzero.
20755
20756 * xfont.c (xfont_encode_char): Fix calculation of char2b.
20757
207582008-02-01 Kenichi Handa <handa@m17n.org>
20759
20760 These changes are for the new font handling codes.
20761
20762 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
20763 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
20764 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
20765 (FONTSRC, FONTOBJ): New variables.
20766 (obj): Add $(FONTOBJ).
20767 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
20768 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
20769 @LIBOTF_LIBS@.
20770 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
20771 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
20772
20773 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
20774
20775 * character.h (Vscript_representative_chars): Extern it.
20776
20777 * character.c (Vscript_representative_chars): New variable.
20778 (syms_of_character): Declare it as a Lisp variable.
20779
20780 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
20781 enable_font_backend is nonzero, accept the composition method
20782 COMPOSITION_WITH_GLYPH_STRING.
20783
20784 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
20785 enumeration COMPOSITION_WITH_GLYPH_STRING.
20786
20787 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
20788 members clip_x, clip_y, clip_width, and clip_height.
20789 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
20790
20791 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
20792 --enable-font-backend. Call syms_of_font.
20793
20794 * fns.c (assoc_no_quit): New function.
20795
20796 * fontset.h (FONT_INFO_FROM_FACE): New macro.
20797 (face_for_font, new_fontset_from_font)
20798 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
20799
20800 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
20801 (fontset_font, fontset_ascii, face_for_char)
20802 (make_fontset_for_ascii_face, Ffont_info)
20803 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
20804 is nonzero, use font-backend mechanism.
20805 (find_font_encoding): Make it non-static.
20806 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
20807 New functions.
20808
20809 * frame.h (struct frame): New members resx and resy.
20810 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
20811 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
20812
20813 * frame.c [USE_FONT_BACKEND]: Include "font.h".
20814 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
20815
20816 * lisp.h (assoc_no_quit): Extern it.
20817
20818 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
20819 Through out the file, use FONT_INFO_FROM_FACE instead of
20820 FONT_INFO_FROM_ID, use get_per_char_metric instead of
20821 rif->per_char_metric.
20822 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
20823 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
20824 (get_glyph_face_and_encoding, fill_composite_glyph_string)
20825 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20826 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
20827 nonzero, use font-backend mechanism.
20828 (get_per_char_metric): New function.
20829
20830 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
20831 (set_lface_from_font_name)
20832 (set_font_frame_param, free_realized_face)
20833 (prepare_face_for_display, clear_face_gcs)
20834 (Finternal_set_font_selection_order, realize_x_face)
20835 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
20836 font-backend mechanism.
20837 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
20838 (load_face_font) [USE_FONT_BACKEND]: Abort.
20839 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
20840 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
20841
20842 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
20843 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
20844 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
20845 nonzero, register all available font drivers. Call
20846 x_default_font_parameter for deciding a font.
20847 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
20848
20849 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
20850 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
20851 (x_set_glyph_string_clipping_exactly)
20852 (x_compute_glyph_string_overhangs)
20853 (x_draw_glyph_string_foreground)
20854 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
20855 (x_free_frame_resources) [USE_FONT_BACKEND]: If
20856 enable_font_backend is nonzero, use font-backend mechanism.
20857 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
20858
208592008-02-01 Kenichi Handa <handa@m17n.org>
20860
20861 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
20862 system_eol_type.
20863 (syms_of_coding): Initialize system_eol_type.
20864
20865 * process.c (Fset_process_coding_system): Inherit system's eol
20866 format if necessary.
20867
208682008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20869
20870 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
20871
208722008-02-01 Kenichi Handa <handa@m17n.org>
20873
20874 * coding.c (decode_eol): Pay attention to buffer relocation in
20875 del_range_2.
20876 (decode_coding): Call decode_eol before restoring undo_list.
20877
208782008-02-01 Kenichi Handa <handa@m17n.org>
20879
20880 * charset.c (Fdefine_charset_internal): Fix setting of
20881 emacs_mule_bytes.
20882
208832008-02-01 Kenichi Handa <handa@m17n.org>
20884
20885 * keyboard.c (read_char): Check if C is a character or not before
20886 looking up Vkeyboard_translate_table.
20887
208882008-02-01 Kenichi Handa <handa@m17n.org>
20889
20890 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
20891 condition to terminate the loop.
20892
208932008-02-01 Kenichi Handa <handa@m17n.org>
20894
20895 * coding.c (produce_composition): Compare charbuf[i] instead of
20896 args[i] against 0.
20897 (Fterminal_coding_system): Use EQ to compare Lisp objects.
20898
208992008-02-01 Kenichi Handa <handa@m17n.org>
20900
20901 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
20902 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
20903 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
20904 detect_coding.
20905 (emacs_mule_char): Handle old style (Emacs 20) component character
20906 of a composition.
20907 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
20908 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
20909 composition rule.
20910 (decode_coding_emacs_mule): Handle invalid bytes correctly.
20911
209122008-02-01 Kenichi Handa <handa@m17n.org>
20913
20914 * coding.c (encode_coding_ccl): Allocate destination dynamically
20915 when necessary.
20916
209172008-02-01 Kenichi Handa <handa@m17n.org>
20918
20919 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
20920 the loop. When quitted, show a proper error message.
20921
209222008-02-01 Kenichi Handa <handa@m17n.org>
20923
20924 * xterm.c (x_set_glyph_string_clipping_exactly): Set
20925 src->clip_head and src->clip_tail temporarily instead of src->hl.
20926
20927 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
20928 character sequence.
20929 (Fccl_execute_on_string): Use ASET, not XSET.
20930
209312008-02-01 Kenichi Handa <handa@m17n.org>
20932
20933 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
20934
209352008-02-01 Kenichi Handa <handa@m17n.org>
20936
20937 * coding.c (decode_coding): Fix the condition of terminating the
20938 decoding loop.
20939
209402008-02-01 Kenichi Handa <handa@m17n.org>
20941
20942 * data.c (Faset): On setting a character bigger than 255 in a
20943 unibyte string, signal an error instead of make the string multibyte.
20944
209452008-02-01 Kenichi Handa <handa@m17n.org>
20946
20947 * charset.c (map_charset_chars): Fix for ascii-compatible charset
20948 made by a mapping table.
20949
209502008-02-01 Kenichi Handa <handa@m17n.org>
20951
20952 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
20953 not.
20954 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
20955 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
20956
20957 * xterm.c (x_draw_composite_glyph_string_foreground): Check
20958 s->face is NULL or not.
20959
209602008-02-01 Kenichi Handa <handa@m17n.org>
20961
20962 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
20963 (x_draw_glyph_string): Fix drawing of right_overhang and
20964 left_overhang around/on cursor.
20965
20966 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
20967
209682008-02-01 Kenichi Handa <handa@m17n.org>
20969
20970 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
20971
209722008-02-01 Kenichi Handa <handa@m17n.org>
20973
20974 * coding.c (Fdefine_coding_system_internal)
20975 (Fdefine_coding_system_alias): Avoid a duplicated element in
20976 Vcoding_system_alist.
20977
209782008-02-01 Kenichi Handa <handa@m17n.org>
20979
20980 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
20981
20982 * coding.c (Qcoding_system_define_form): New variable.
20983 (syms_of_coding): Intern and staticpro it.
20984 (Fcoding_system_p): Check Qcoding_system_define_form.
20985 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
20986
20987 * coding.h (CODING_SYSTEM_P): If ID is not available, call
20988 Fcoding_system_p.
20989 (CHECK_CODING_SYSTEM): If ID is not available, call
20990 Fcheck_coding_system.
20991 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
20992 Try also Fcheck_coding_system.
20993
209942008-02-01 Kenichi Handa <handa@m17n.org>
20995
20996 * coding.c (code_conversion_restore): GCPRO arg.
20997
209982008-02-01 Kenichi Handa <handa@m17n.org>
20999
21000 * character.c (lisp_string_width): Check multibyteness of STRING.
21001
210022008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21003
21004 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
21005 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
21006 (decode_mac_font_name): Use decode_coding_c_string instead of
21007 decode_coding.
21008 (x_load_font): Initialize fontp->fontset to -1. Set
21009 fontp->encoding_type.
21010
210112008-02-01 Kenichi Handa <handa@m17n.org>
21012
21013 * search.c (search_buffer): Give up BM search on case-fold-search
21014 if one of a target character has a case-equivalence of different
3b59c351 21015 byte length even if that target character is an ASCII.
aac0c6e3
MR
21016 (simple_search): Fix calculation of byte length of matched text.
21017 (boyer_moore): Fix handling of case-equivalent multibyte characters.
21018
210192008-02-01 Kenichi Handa <handa@m17n.org>
21020
21021 * coding.c (decode_coding): Fix handling of invalid bytes.
21022
210232008-02-01 Kenichi Handa <handa@m17n.org>
21024
21025 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
21026 Unicode characters.
21027
210282008-02-01 Kenichi Handa <handa@m17n.org>
21029
21030 * coding.c (encode_coding_object): If a pre-write-conversion
21031 function makes a new buffer, kill it.
21032
210332008-02-01 Kenichi Handa <handa@m17n.org>
21034
21035 * coding.c (QCascii_compatible_p): New variable.
21036 (syms_of_coding): Initialize it.
21037 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
21038 calling string_char.
21039 (record_conversion_result): Add `default:' case.
21040 (coding_charset_list): Delete unused variable `coding_type'.
21041 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
21042 property in the plist of the coding system.
21043 (Fcoding_system_put): Check QCascii_compatible_p.
21044
210452008-02-01 Miles Bader <miles@gnu.org>
21046
21047 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
21048 removed calculation of frame `f', as it's now used.
21049
210502008-02-01 Kenichi Handa <handa@m17n.org>
21051
21052 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
21053 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
21054 (UNIDATA): New variable.
21055 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
21056 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
21057 $(RUN_TEMACS) unconditionally.
21058
210592008-02-01 Kenichi Handa <handa@m17n.org>
21060
21061 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
21062 (admindir): New variable.
21063 ($(lispsource)international/charprop.el): New target.
21064
210652008-02-01 Miles Bader <miles@gnu.org>
21066
21067 * character.c (chars-in-region): Remove obsolete function.
21068 (syms_of_character): Remove its initialization.
21069
210702008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
21071
21072 * w32select.c (validate_coding_system)
21073 (setup_windows_coding_system): New functions.
21074 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
21075 setup_windows_coding_system.
21076 (setup_config, Fw32_get_clipboard_data): Use
21077 validate_coding_system.
21078 (Fx_selection_exists): Move call to setup_config to a place
21079 where signals are allowed.
21080
21081 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
21082 (Fcheck_coding_system): Add declarations.
21083
210842008-02-01 Kenichi Handa <handa@m17n.org>
21085
21086 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
21087
210882008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21089
21090 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
21091 string as the second argument for x_new_fontset.
21092
210932008-02-01 Kenichi Handa <handa@m17n.org>
21094
21095 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
21096 (encode_coding_object): Use safe_call instead of call2.
21097
210982008-02-01 Kenichi Handa <handa@m17n.org>
21099
21100 * fontset.c (Fset_fontset_font): Check family element of a given vector.
21101
21102 * Makefile.in (lisp): Include charprop.el.
21103
211042008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21105
21106 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
21107 Not sure if it's unnecessary.
21108
211092008-02-01 Steven Tamm <steventamm@mac.com>
21110
21111 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
21112 some possibly unnecessary fontset checking code that crashed
21113 when creating a new frame.
21114
211152008-02-01 Kenichi Handa <handa@m17n.org>
21116
21117 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
21118 lookup_face.
21119
21120 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
21121
21122 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
21123
211242008-02-01 Kenichi Handa <handa@m17n.org>
21125
21126 * coding.c: Cancel the change done in HEAD on 2008-02-01.
21127 (coding_charset_list): New function.
21128
21129 * coding.h (coding_charset_list): Extern it.
21130
211312008-02-01 Kenichi Handa <handa@m17n.org>
21132
21133 * fontset.c (Fset_fontset_font): Call find_font_encoding with
21134 concatenation of family and registry.
21135
211362008-02-01 Kenichi Handa <handa@m17n.org>
21137
21138 * character.h (BYTE8_STRING): Fix typo.
21139
21140 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
21141 string to multibyte (sync to HEAD).
21142
21143 * casefiddle.c (casify_region): Handle changes in byte-length
21144 using replace_range_2 (sync to HEAD).
21145
211462008-02-01 Andreas Schwab <schwab@suse.de>
21147
21148 * chartab.c (map_char_table): GCPRO table and arg.
21149
211502008-02-01 Kenichi Handa <handa@m17n.org>
21151
21152 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
21153 already at limit.
21154
211552008-02-01 Kenichi Handa <handa@m17n.org>
21156
21157 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
21158 instead of fast_c_string_match_ignore_case.
21159 (find_font_encoding): Change argument to Lisp_Object. Use
21160 fast_string_match_ignore_case instead of
21161 fast_c_string_match_ignore_case. Change caller.
21162
211632008-02-01 Kenichi Handa <handa@m17n.org>
21164
21165 * xdisp.c (get_next_display_element): In unibyte case, decide to
21166 display in octal form by checking a character by
21167 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
21168
21169 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
21170
21171 * character.c (unibyte_has_multibyte_table): New variable.
21172
21173 * character.h (unibyte_has_multibyte_table): Extern it.
21174 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
21175
211762008-02-01 Kenichi Handa <handa@m17n.org>
21177
21178 * coding.c (encode_coding_iso_2022): Fix handling of charset
21179 annotation.
21180
211812008-02-01 Kenichi Handa <handa@m17n.org>
21182
21183 * coding.c (setup_coding_system): If coding_system is nil, use
21184 Qundecided.
21185 (Fterminal_coding_system): Return nil if terminal coding system is
21186 `undecided'.
21187 (syms_of_coding): Define coding-system `undecided' here. Setup
21188 terminal_coding as `undecided'.
21189
211902008-02-01 Kenichi Handa <handa@m17n.org>
21191
21192 * xdisp.c (message_dolog, set_message_1): Call
21193 unibyte_char_to_multibyte with arg type int.
21194
21195 * lread.c (read1): Fix reading of a char-table.
21196
21197 * print.c (print_object): Include sub char-table in circularities
21198 detection.
21199
212002008-02-01 Kenichi Handa <handa@m17n.org>
21201
21202 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
21203 Append the found sequences in car of ARGS instead of prepending.
21204
212052008-02-01 Kenichi Handa <handa@m17n.org>
21206
21207 * fileio.c (report_file_error): Make a unibyte string from
21208 strerror (errorno).
21209 (Fsubstitute_in_file_name): Fix the arg to
21210 unibyte_char_to_multibyte. It is evaluated twice.
21211
212122008-02-01 Kenichi Handa <handa@m17n.org>
21213
21214 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
21215
212162008-02-01 Kenichi Handa <handa@m17n.org>
21217
21218 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
21219 BOM is not found.
21220 (detect_coding, detect_coding_system): Optimization for ISO-2022
21221 when no 8-bit data is found.
21222
212232008-02-01 Jason Rumney <jasonr@gnu.org>
21224
21225 * w32fns.c (x_to_w32_font): Update to use new coding struct.
21226
212272008-02-01 Kenichi Handa <handa@m17n.org>
21228
21229 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
21230 CHARS.
21231
212322008-02-01 Steven Tamm <steventamm@mac.com>
21233
21234 * macterm.c (mac_encode_char): Add charset argument and update
21235 to use encoding_type.
21236 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
21237 switch to pure fontset.
21238 (decode_mac_font_name): Temporarily remove decoding.
21239 (x_font_name_to_mac_font_name): Temporarily remove encoding.
21240 (x_load_font): Temporarily remove encoding.
21241
212422008-02-01 Kenichi Handa <handa@m17n.org>
21243
21244 * xfaces.c (Fface_font): If frame is not on a window system,
21245 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
21246 refer to face->font.
21247 (split_font_name_into_vector, build_font_name_from_vector)
21248 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
21249 when HAVE_WINDOW_SYSTEM is defined.
21250
212512008-02-01 Kenichi Handa <handa@m17n.org>
21252
21253 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
21254 (x_produce_glyphs): Fix setting of members of cmp in case
21255 cmp->glyph_len is zero.
21256
21257 * fontset.c (Fset_fontset_font): Fix docstring.
21258 (Ffontset_info): Make it backward compatible. New arg ALL.
21259
212602008-02-01 Kim F. Storm <storm@cua.dk>
21261
21262 * process.c (read_process_output): Grow decoding_buf when needed;
21263 this could cause a crash in allocate_string and compact_small_strings.
21264
212652008-02-01 Kenichi Handa <handa@m17n.org>
21266
21267 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
21268
212692008-02-01 Kenichi Handa <handa@m17n.org>
21270
21271 * coding.c (setup_coding_system): Set coding->common_flags
21272 correctly for raw-text.
21273 (consume_chars): On encoding unibyte text by raw-text, don't check
21274 multibyte form.
21275 (encode_coding): On encoding by raw-text, never use translation tables.
21276
21277 * fileio.c (e_write): Short cut for the case of no encoding.
21278
212792008-02-01 Kenichi Handa <handa@m17n.org>
21280
21281 * coding.c (detect_coding, detect_coding_system): Delete unused
21282 variables.
21283
212842008-02-01 Kenichi Handa <handa@m17n.org>
21285
21286 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
21287 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
21288
212892008-02-01 Kenichi Handa <handa@m17n.org>
21290
21291 * coding.c (Ffind_coding_systems_region_internal): Include
21292 raw-text and no-conversion in the result.
21293
212942008-02-01 Kenichi Handa <handa@m17n.org>
21295
21296 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
21297 (load_font_get_repertory): Delete unnecessary check of ENCODING of
21298 FONT_DEF.
21299 (font_def_arg, add_arg, from_arg, to_arg): New args.
21300 (set_fontset_font): Change argument.
21301 (Fset_fontset_font): Fix for the case that TARGET is a script
21302 name and charset name.
21303 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
21304
213052008-02-01 Kenichi Handa <handa@m17n.org>
21306
21307 * fontset.c (fontset_font): Rename from fontset_face. Change return
21308 value.
21309 (face_suitable_for_char_p, face_for_char): Adjust for the change
21310 of fontset_font.
21311 (make_fontset_for_ascii_face): Fix setting of the fontset element
21312 for ASCII.
21313 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
21314 to get a font name.
21315 (Ffontset_info): Adjust for the change of fontset_font.
21316
21317 * coding.c (emacs_mule_char): Check invalid code more rigidly.
21318
21319 * character.h (LEADING_CODE_LATIN_1_MIN)
21320 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
21321
213222008-02-01 Kenichi Handa <handa@m17n.org>
21323
21324 * editfns.c (check_translation): New function.
21325 (Ftranslate_region_internal): Handle M:N mapping.
21326
213272008-02-01 Kenichi Handa <handa@m17n.org>
21328
21329 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
21330
213312008-02-01 Kenichi Handa <handa@m17n.org>
21332
21333 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
21334 goto invalid_code.
21335 (decode_coding_iso_2022): Fix handling of invalid designation.
21336
21337 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
21338 after calling code_conversion_save.
21339
213402008-02-01 Kenichi Handa <handa@m17n.org>
21341
21342 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
21343
21344 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
21345
21346 * fontset.c: Include "intervals.h".
21347 (fontset_face): Fix comparing of Lisp_Objects.
21348 (free_face_fontset, new_fontset_from_font_name): Fix
21349 Lisp_Object/int mixup.
21350
21351 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
21352
21353 * coding.c: Add many prototypes for static functions.
21354 (get_translation_table): Allow max_lookup to be NULL.
21355 (decode_coding, Ffind_coding_systems_region_internal)
21356 (Funencodable_char_position, Fcheck_coding_systems_region): Call
21357 get_translation_table with max_lookup NULL.
21358
213592008-02-01 Kenichi Handa <handa@m17n.org>
21360
21361 * coding.c (get_translation_table): Declare it as Lisp_Object.
21362 (LOOKUP_TRANSLATION_TABLE): New macro.
21363 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
21364 instead of CHAR_TABLE_REF.
21365
213662008-02-01 Kenichi Handa <handa@m17n.org>
21367
21368 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
21369 annotation data format.
21370 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
21371 Change arguments FROM and TO to single argument NCHARS. Change caller.
21372 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
21373 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21374 (decode_coding_ccl, decode_coding_charset): Pay attention to
21375 coding->charbuf_used.
21376 (get_translation): New function.
21377 (produce_chars): New arguments translation_table and last_block.
21378 Translate characters here. Return number of carryover chars.
21379 Change caller.
21380 (produce_composition): New argument pos. Change caller.
21381 Adjust for the change of annotation data format.
21382 (produce_charset, produce_annotation): Likewise.
21383 (decode_coding, encode_coding): Don't call translate_chars.
21384 (consume_chars): New arg translation_table. Change caller.
21385 (translate_chars): Delete.
21386 (syms_of_coding): Make translation-table's number of extra slots 2.
21387
213882008-02-01 Kenichi Handa <handa@m17n.org>
21389
21390 * search.c (simple_search): Fix setting this_pos_byte in backward
21391 search.
21392
21393 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
21394 byte sequence.
21395 (detect_coding_ccl): Fix setting of the variable valids.
21396
213972008-02-01 Kenichi Handa <handa@m17n.org>
21398
21399 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
21400
21401 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
21402
21403 * editfns.c (Ftranslate_region_internal): Rename from
21404 Ftranslate_region. Accept a char-table in TABLE.
21405 (syms_of_editfns): Defsubr Stranslate_region_internal.
21406
21407 * xfaces.c (set_lface_from_font_name): If a font is specified for
21408 a frame, generate a fontset from the font.
21409 (build_scalable_font_name): If the scalable font is requested for
21410 a specific size, don't change that size.
21411 (try_font_list): Try a scalable font also in the case that a
21412 pattern string is specified.
21413
214142008-02-01 Kenichi Handa <handa@m17n.org>
21415
21416 * xfaces.c (Fface_font): New optional arg CHARACTER.
21417
214182008-02-01 Kenichi Handa <handa@m17n.org>
21419
21420 * charset.h (CHARSET_OFFSET): New macro.
21421
214222008-02-01 Kenichi Handa <handa@m17n.org>
21423
21424 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
21425
21426 * fontset.c (fontset_face): Handle the case that repertory is a
21427 char-table.
21428 (find_font_encoding): Return nil for unknown encoding.
21429 (Fset_fontset_font): Ignore a font of unknown encoding.
21430
214312008-02-01 Kenichi Handa <handa@m17n.org>
21432
21433 * keymap.c (describe_vector): Handle default value of a char table.
21434
21435 * fontset.c (fontset_face): Handle fallback fonts correctly.
21436 (Ffontset_info): Return infomation about fallback fonts.
21437
214382008-02-01 Kenichi Handa <handa@m17n.org>
21439
21440 * fontset.c (FONTSET_DEFAULT): New macro.
21441 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
21442 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
21443 the case that it is nil.
21444 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
21445 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
21446
21447 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
21448 subset or superset.
21449
214502008-02-01 Kenichi Handa <handa@m17n.org>
21451
21452 * emacs.c (main): Call init_charset after syms_of_XXX.
21453
21454 * charset.c (Vcharset_map_directory): Delete.
21455 (Vcharset_map_path): New variable.
21456 (load_charset_map_from_file): Use Vcharset_map_path instead.
21457 (init_charset): Initialize Vcharset_map_path.
21458 (syms_of_charset): Delete declaration of "charset-map-directory",
21459 add declaration of "charset-map-path".
21460
214612008-02-01 Kenichi Handa <handa@m17n.org>
21462
21463 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
21464 ASCII only string.
21465
21466 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
21467
21468 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
21469 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
21470
214712008-02-01 Kenichi Handa <handa@m17n.org>
21472
21473 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
21474
21475 * coding.c (QCmnemonic, QCdefalut_char)
21476 (QCdecode_translation_table, QCencode_translation_table)
21477 (QCpost_read_conversion, QCpre_write_conversion): New variables.
21478 (get_translation_table): Return a list of translation tables if
21479 necessary.
21480 (decode_coding): Call get_translation_table with ENCODEP 0.
21481 (char_encodable_p): If translation_table is non-nil, always call
21482 translate_char.
21483 (Fdefine_coding_system_internal): Accept list of translation
21484 tables as :encode-translation-table and :decode-translation-table.
21485 (Fcoding_system_put): New function.
21486 (syms_of_coding): Declare new symbols. Defsubr
21487 Scoding_system_put.
21488 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
21489 typically JISX0212.
21490
21491 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
21492 when the charset is superset type.
21493
21494 * character.c (translate_char): Accept list of translation tables.
21495
214962008-02-01 Kenichi Handa <handa@m17n.org>
21497
21498 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
21499 (CODING_ATTR_TRANS_TBL): New macro.
21500
21501 * coding.c (get_translation_table): New function.
21502 (translate_chars): Fix the bug of skipping annotation data.
21503 (decode_coding, encode_coding): Utilize get_translation_table.
21504 (char_encodable_p, Funencodable_char_position): Translate char if
21505 necessary.
21506 (Ffind_coding_systems_region_internal)
21507 (Fcheck_coding_systems_region): Setup translation table for encode
21508 in a coding system attribute vector in advance.
21509 (Fdefine_coding_system_internal): Allow a symbol as translation
21510 table. For shift-jis type coding system, allow 4th charset.
21511
215122008-02-01 Kenichi Handa <handa@m17n.org>
21513
21514 * coding.c (decode_coding_sjis): Check the first byte rigidly.
21515
21516 * xdisp.c (get_next_display_element): Pass -1 as POS to
21517 FACE_FOR_CHAR if displaying a C-string.
21518
215192008-02-01 Kenichi Handa <handa@m17n.org>
21520
21521 * composite.c (get_composition_id): Handle xoff and yoff in a
21522 composition rule.
21523
21524 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
21525 (struct composition): New member lbearing and rbearing.
21526
21527 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
21528 (x_get_glyph_overhangs): Handle a composition glyph.
21529 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
21530
21531 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
21532 composition glyph.
21533
215342008-02-01 Kenichi Handa <handa@m17n.org>
21535
21536 * print.c: Include charset.h.
21537 (Vprint_charset_text_property): New variable.
21538 (Qdefault): Extern it.
21539 (PRINT_STRING_NON_CHARSET_FOUND)
21540 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
21541 (print_check_string_result): New variable.
21542 (print_check_string_charset_prop): New function.
21543 (print_prune_charset_plist): New variable.
21544 (print_prune_string_charset): New function.
21545 (print_object): Call print_prune_string_charset if
21546 Vprint_charset_text_property is not t.
21547 (print_interval): Print nothing if interval->plist is nil.
21548 (syms_of_print): Declare Vprint_charset_text_property as a lisp
21549 variable. Init and staticpro print_prune_charset_plist.
21550
215512008-02-01 Kenichi Handa <handa@m17n.org>
21552
21553 * fontset.c (new_fontset_from_font_name): Use the specified font
21554 for all characters in the new fontset.
21555
21556 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21557 OBJECT args.
21558
21559 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
21560 OBJECT args for composition too.
21561
21562 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21563 OBJECT args.
21564
215652008-02-01 Kenichi Handa <handa@m17n.org>
21566
21567 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
21568
21569 * fontset.c (reorder_font_vector): Adjust for the change of
21570 FONT_DEF format.
21571 (fontset_face): New arg id. Change caller.
21572 (face_for_char): New args pos and object.
21573 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
21574 (fs_query_fontset): Check NAME by Fassoc too.
21575 (Fset_fontset_font): Allow non-XLFD font name.
21576 (Ffontset_info): Adjust for the change of FONT_DEF format.
21577
21578 * fontset.h (face_for_char): Adjust prototype.
21579
21580 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
21581 (append_space, extend_face_to_end_of_line)
21582 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
21583 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
21584
21585 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
21586 POS and OBJECT args.
21587
21588 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
21589 POS and OBJECT args.
21590
215912008-02-01 Jason Rumney <jasonr@gnu.org>
21592
21593 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
21594 of GlobalAlloc'ed memory.
21595
215962008-02-01 Kenichi Handa <handa@m17n.org>
21597
21598 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
21599
21600 * charset.h (charset_table_used): Delete extern.
21601
21602 * charset.c (charset_table_used): Make it static.
21603 (map_charset_chars): Fix args to c_function with.
21604
21605 * chartab.c (map_sub_char_table_for_charset): Fix args to
21606 c_function with.
21607
21608 * coding.h (enum coding_result_code): Delete
21609 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
21610
21611 * coding.c (Qinsufficient_source, Qinconsistent_eol)
21612 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
21613 (Vlast_code_conversion_error): New variables.
21614 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
21615 (ONE_MORE_BYTE): Record error if any instead of signaling an
21616 error. If non-ASCII multibyte char is found, return the negative
21617 value of the code. All callers changed to check it.
21618 (ONE_MORE_BYTE_NO_CHECK): Likewise.
21619 (record_conversion_result): New function. Change all codes setting
21620 coding->result to call this function.
21621 (detect_coding_utf_8, decode_coding_utf_8)
21622 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
21623 Don't use the local variable incomplete.
21624 (emacs_mule_char): Change the second arg to `const'.
21625 (decode_coding): Fix of flushing out unprocessed data.
21626 (make_conversion_work_buffer): Fix making of a work buffer.
21627 (decode_coding_object): Return coding->dst_object.
21628
21629 * fontset.c (set_fontset_font): Fix args.
21630
21631 * lisp.h (CHARACTERBITS): Define as 22.
21632
21633 * process.c (send_process): Be sure to set coding->src_multibyte.
21634
21635 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
21636
216372008-02-01 Kenichi Handa <handa@m17n.org>
21638
21639 * xdisp.c (handle_auto_composed_prop): Give limit to
21640 Fnext_single_char_property_change.
21641
216422008-02-01 Kenichi Handa <handa@m17n.org>
21643
21644 * composite.c (syms_of_composite): Don't make the composition hash
21645 table weak.
21646
21647 * fontset.c (Fset_fontset_font): Fix docstring.
21648
21649 * lisp.h (detect_coding_system): Adjust prototype.
21650
21651 * fileio.c (kill_workbuf_unwind): Delete this function.
21652 (Finsert_file_contents): Adjust the call of detect_coding_system.
21653 Get conversion_buffer by code_conversion_save. Use the macro
21654 CODING_MAY_REQUIRE_DECODING. After decoding, update
21655 coding_system.
21656
21657 * coding.h (make_conversion_work_buffer): Delete extern.
21658 (code_conversion_save): Extern it.
21659
21660 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
21661 (CODING_GET_INFO): Delete argument eol_type. Change callers.
21662 (decode_coding_utf_8): Don't do eol converion.
21663 (detect_coding_utf_16): Check coding->src_chars, not
21664 coding->src_bytes. Add heuristics for those that have no signature.
21665 (decode_coding_emacs_mule, decode_coding_iso_2022)
21666 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21667 Don't do eol converion.
21668 (adjust_coding_eol_type): Return a new coding system.
21669 (detect_coding): Don't detect eol. Fix for utf-16 detection.
21670 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
21671 each change.
21672 (decode_coding): Pay attention to undo_list. Do eol conversion for
21673 all types of coding-systems (if necessary).
21674 (Vcode_conversion_work_buf_list): Delete it.
21675 (Vcode_conversion_reused_workbuf): Rename from
21676 Vcode_conversion_reused_work_buf.
21677 (Vcode_conversion_workbuf_name): New variable.
21678 (reused_workbuf_in_use): New variable.
21679 (make_conversion_work_buffer): Delete the arg DEPTH.
21680 (code_conversion_restore): Change argument to cons.
21681 (code_conversion_save): Delete the argument BUFFER. Change callers.
21682 (detect_coding_system): New argument src_chars. Change callers.
21683 Fix for utf-16 detection.
21684 (init_coding_once): Don't use ISO_carriage_return.
21685 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
21686 reused_workbuf_in_use.
21687
216882008-02-01 Kenichi Handa <handa@m17n.org>
21689
21690 * keymap.c (store_in_keymap): Pay attention to the case that idx
21691 is a cons specifying a character range.
21692
216932008-02-01 Kenichi Handa <handa@m17n.org>
21694
21695 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
21696 HANDLED_RECOMPUTE_PROPS.
21697
21698 * coding.c (Fdefine_coding_system_internal): Fix checking of
21699 ascii compatibility.
21700
217012008-02-01 Kenichi Handa <handa@m17n.org>
21702
21703 * charset.c (find_charsets_in_text): Delete unused locale variable.
21704 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
21705
21706 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
21707 Resync charset_list to Vemacs_mule_charset_list.
21708
21709 * keymap.c (store_in_keymap): Pay attention to the case that idx
21710 is a cons specifying a character range.
21711
217122008-02-01 Kenichi Handa <handa@m17n.org>
21713
21714 * composite.c (update_compositions): Bind inhibit-read-only, etc
21715 to t before calling remove-list-of-text-properties.
21716
21717 * print.c (print_object): Always print ASCII chars as is.
21718
217192008-02-01 Kenichi Handa <handa@m17n.org>
21720
21721 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
21722
21723 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
21724 is a char table.
21725
217262008-02-01 Kenichi Handa <handa@m17n.org>
21727
21728 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
21729
217302008-02-01 Kenichi Handa <handa@m17n.org>
21731
21732 * xfaces.c (set_lface_from_font_name): Fix for the case that
21733 FONTNAME is not fontset name.
21734
217352008-02-01 Kenichi Handa <handa@m17n.org>
21736
21737 * fns.c (base64_encode_1): Fix previous change.
21738
217392008-02-01 Kenichi Handa <handa@m17n.org>
21740
21741 * fontset.c (set_fontset_font): New function.
21742 (Fset_fontset_font): If a font is specified for a charset, use
21743 map_charset_chars to store the font spec in a fontset.
21744
217452008-02-01 Kenichi Handa <handa@m17n.org>
21746
21747 * fontset.c (fontset_face): Create a fallback fontset on demand.
21748 (make_fontset): Don't create a fallback fontset here.
21749 (free_face_fontset): Free a fallback fontset (if any) too.
21750 (n_auto_fontsets): Delete this variable.
21751 (auto_fontset_alist): New variable.
21752 (new_fontset_from_font_name): Check auto_fontset_alist.
21753 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
21754 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
21755 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
21756 Defsubr Sfontset_list_all.
21757
217582008-02-01 Kenichi Handa <handa@m17n.org>
21759
21760 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
21761
217622008-02-01 Kenichi Handa <handa@m17n.org>
21763
21764 * fontset.c (Fnew_fontset): Check NAME more rigidly.
21765
217662008-02-01 Kenichi Handa <handa@m17n.org>
21767
21768 * editfns.c (Fgoto_char): Fix docstring.
21769
217702008-02-01 Kenichi Handa <handa@m17n.org>
21771
21772 * insdel.c (insert_from_gap): Adjust intervals correctly.
21773
217742008-02-01 Jason Rumney <jasonr@gnu.org>
21775
21776 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
21777 (pfnGetFontUnicodeRanges): New dynamically loaded function.
21778 (w32_initialize): Try to load it.
21779 (x_get_font_repertory): Use it if available.
21780 (w32_encode_char): Add shortcut for unicode output.
21781
21782 * w32fns.c (w32_load_system_font): Default charset to -1.
21783 (x_to_w32_charset): Match all fonts for unicode.
21784 (w32_to_x_charset): New parameter matching. Don't return partial
21785 or wildcard charsets.
21786 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
21787 (w32_codepage_for_font): Return CP_UNICODE for unicode.
21788 (w32_to_x_font): Match charset to real charset.
21789 (enum_font_cb2): Always list unicode versions.
21790
21791 * makefile.w32-in (temacs): Increase EMHEAP.
21792
217932008-02-01 Jason Rumney <jasonr@gnu.org>
21794
21795 * w32term.c (w32_encode_char): New charset parameter.
21796 font_info.encoding becomes encoding_type.
21797 (x_get_font_repertory): New function. Warning: stub only!
21798 (x_new_font): Return quickly if font already set.
21799 (x_new_fontset): fontsetname parameter is Lisp_Object.
21800 Use new fs_query_fontset. Try new_fontset_from_font_name.
21801 Use fontset_name for return value.
21802
21803 * w32term.h: Declare x_get_font_repertory.
21804
21805 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
21806 place of find_charset_in_text. Use encode_coding_object in place
21807 of encode_coding.
21808 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
21809 decode_coding.
21810
21811 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
21812 of x_new_fontset.
21813 (w32_load_system_font): Initialize charset as unicode.
21814 font_info.encoding becomes encoding_type.
21815 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
21816 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
21817 (syms_of_w32fns): Set get_font_repertory_func.
21818
21819 * w32console.c: Include character.h. Use terminal_encode_buffer
21820 from term.c.
21821 (write_glyphs): Use new version of encode_terminal_code. Use
21822 encode_coding_object in place of encode_coding.
21823
21824 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
21825 encoding becomes encoding_type.
21826
21827 * term.c (terminal_encode_buffer): Make externally visible.
21828
21829 * makefile.w32-in: Add character.h dependancies.
21830 (character.o, chartab.o): New targets.
21831
218322008-02-01 Kenichi Handa <handa@m17n.org>
21833
21834 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
21835 CODING_ID_EOL_TYPE.
21836
218372008-02-01 Andreas Schwab <schwab@suse.de>
21838
21839 * coding.c (produce_chars): Revert last change.
21840
218412008-02-01 Kenichi Handa <handa@m17n.org>
21842
21843 * charset.h (charset_unicode): Extern it.
21844
21845 * charset.c (string_xstring_p): Check by (C >= 0x100).
21846 (find_charsets_in_text): Change format of the arc CHARSETS. New
21847 arg MULTIBYTE.
21848 (Ffind_charset_region, Ffind_charset_string): Adjust for the
21849 change of find_charsets_in_text.
21850 (Fsplit_char): Fix doc. Never return unknown.
21851
21852 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
21853
21854 * coding.c (Fdefine_coding_system_alias): Update
21855 Vcoding_system_list.
21856
21857 * fontset.c (load_font_get_repertory): Pay attention to the case
21858 that ENCODING of a font is specified by a char-table.
21859
21860 * xterm.c (x_get_font_repertory): Handle the case that the
21861 encoding of font is other than Unicode.
21862
218632008-02-01 Kenichi Handa <handa@m17n.org>
21864
21865 * term.c (encode_terminal_code): Don't handle glyph-table. Check
21866 if a character is encodable by the terminal coding system. If
21867 not, produces proper number of `?'s. Update
21868 terminal_encode_buffer and terminal_encode_buf_size if necessary.
21869 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
21870
218712008-02-01 Kenichi Handa <handa@m17n.org>
21872
21873 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
21874 variables.
21875 (encode_terminal_code): Change argument. Encode multiple
21876 characters at once. Store the result of encoding in
21877 terminal_encode_buffer.
21878 (write_glyphs, insert_glyphs): Adjust for the change of
21879 encode_terminal_code.
21880 (term_init): Initialize terminal_encode_buffer and
21881 terminal_encode_buf_size.
21882
21883 * coding.c (consume_chars): If coding->src_object is nil, don't
21884 check annotation.
21885
218862008-02-01 Kenichi Handa <handa@m17n.org>
21887
21888 * character.c (char_string): Use ASCII_CHAR_P instead of
21889 SINGLE_BYTE_CHAR_P.
21890
218912008-02-01 Kenichi Handa <handa@m17n.org>
21892
21893 * xdisp.c (handle_auto_composed_prop): Check if the last
21894 characters of auto-composed region is newly composed with the
21895 following characters.
21896 (handle_composition_prop): Fix checking of point being inside
21897 composition.
21898
218992008-02-01 Kenichi Handa <handa@m17n.org>
21900
21901 * fns.c (concat): Don't change multibyteness of the result by
21902 concatenating an 8-bit character.
21903
21904 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
21905 multibyteness of the result when newelt is an 8-bit character.
21906
219072008-02-01 Dave Love <fx@gnu.org>
21908
21909 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
21910 EMACS_INT.
21911
21912 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
21913
21914 * xfaces.c (face_numeric_value): Declare dim size_t.
21915 (Finternal_lisp_face_equal_p): Remove unused f.
21916
21917 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
21918 (MATRIX_ROW): Remove unused vars.
21919 (draw_glyphs, x_insert_glyphs, fast_find_position)
21920 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
21921 byte/char counts.
21922
21923 * regex.c (regex_compile): Remove unused var.
21924
21925 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21926
21927 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
21928 (Faccessible_keymaps, where_is_internal): Remove unused vars.
21929
21930 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
21931
21932 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
21933
21934 * fileio.c (Fwrite_region): Remove unused var.
21935
21936 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
21937 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
21938
21939 * composite.c (Fremove_list_of_text_properties): Declare.
21940
21941 * coding.c (inhibit_pre_post_conversion): Remove (unused).
21942 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
21943 (coding_inherit_eol_type): Remove unused attrs.
21944 (detect_coding): Cast arg of detect_eol.
21945
21946 * charset.c (syms_of_charset): Remove unused var p.
21947 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
21948 byte/char counts.
21949
21950 * casetab.c (set_case_table): Remove unused var.
21951
21952 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
21953 unused vars.
21954
219552008-02-01 Dave Love <fx@gnu.org>
21956
21957 * xterm.c (x_bitmap_mask): Declare.
21958
219592008-02-01 Dave Love <fx@gnu.org>
21960
21961 * xterm.c (x_term_init): Fix type error.
21962
21963 * lisp.h: Add Funibyte_char_to_multibyte.
21964
21965 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
21966 (Fset_coding_system_priority): Doc fix.
21967
21968 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
21969
21970 * indent.c (check_composition): Make start and end EMACS_INT.
21971
21972 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
21973
21974 * xdisp.c (handle_composition_prop, check_point_in_composition):
21975 Make buffer positions EMACS_INT.
21976
21977 * composite.c (find_composition, run_composition_function)
21978 (update_compositions, Ffind_composition_internal): Make buffer
21979 positions EMACS_INT.
21980
21981 * composite.h (find_composition, update_compositions): Make
21982 position args EMACS_INT.
21983
21984 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
21985
21986 * intervals.c (get_property_and_range):
21987 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
21988
21989 * unexalpha.c: Don't include varargs.h.
21990
219912008-02-01 Dave Love <fx@gnu.org>
21992
21993 * coding.h (ENCODE_UTF_8): New.
21994
21995 * Makefile.in (gtkutil.o): Depend on coding.h.
21996
21997 * coding.c (Fset_coding_system_priority): Doc fix.
21998
219992008-02-01 Kenichi Handa <handa@m17n.org>
22000
22001 * fileio.c (Finsert_file_contents): Call setup_coding_system in
22002 the case of auto saving.
22003
220042008-02-01 Andreas Schwab <schwab@suse.de>
22005
22006 * chartab.c (map_char_table, map_char_table_for_charset): Protect
22007 `range' from GC.
22008
220092008-02-01 Kenichi Handa <handa@m17n.org>
22010
22011 * coding.c (decode_coding_sjis): Check bytes more rigidly.
22012
220132008-02-01 Kenichi Handa <handa@m17n.org>
22014
22015 * fileio.c (choose_write_coding_system): Return a decided coding system.
22016 (Fwrite_region): Set Vlast_coding_system_used to the return value
22017 of choose_write_coding_system.
22018
220192008-02-01 Kenichi Handa <handa@m17n.org>
22020
22021 * charset.c (Fset_charset_priority): Pay attention to duplicated
22022 arguments.
22023
22024 * coding.c (QCcategory): New variable.
22025 (syms_of_coding): Defsym it. Set all elements of
22026 Vcoding_category_table and their symbol values.
22027 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
22028 coding-category-XXX, and coding-category-list.
22029 (Fdefine_coding_system_internal): Add category in the plist.
22030
220312008-02-01 Kenichi Handa <handa@m17n.org>
22032
22033 * callproc.c (Fcall_process): Handle carryover correctly.
22034
22035 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
22036 (raw_text_coding_system): Check NILP (coding_system).
22037 (coding_inherit_eol_type): Check NILP (coding_system) and
22038 NILP (parent).
22039 (consume_chars): Fix for the case of raw-text.
22040
22041 * process.c (read_process_output): Handle carryover correctly.
22042
220432008-02-01 Dave Love <fx@gnu.org>
22044
22045 * regex.c (re_search_2): Fix last change.
22046
220472008-02-01 Kenichi Handa <handa@m17n.org>
22048
22049 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
22050 target_multibyte. Even in a unibyte case, return a converted
22051 multibyte char.
22052 (GET_CHAR_AFTER): New macro.
22053 (PATFETCH): Translate via multibyte char.
22054 (HANDLE_UNIBYTE_RANGE): Delete this macro.
22055 (SETUP_MULTIBYTE_RANGE): New macro.
22056 (regex_compile): Setup compiled code so that its multibyteness
22057 matches that of a target. Fix the handling of "[X-YZ]" using
22058 SETUP_MULTIBYTE_RANGE.
22059 (analyse_first) <charset>: For filling fastmap for all multibyte
22060 characters, don't check by BASE_LEADING_CODE_P.
22061 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
22062 the same as RE_MULTIBYTE_P (bufp) now.
22063 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
22064 (TARGET_CHAR_AND_LENGTH): Delete this macro.
22065 (TRANSLATE_VIA_MULTIBYTE): New macro.
22066 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
22067 It is the same as RE_MULTIBYTE_P (bufp) now.
22068 <exactn>: Translate via multibyte.
22069 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
22070 translate it.
22071 <charset, charset_not>: Fetch a character by
22072 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
22073 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
22074 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
22075 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
22076 by GET_CHAR_AFTER.
22077 (bcmp_translate): Likewise.
22078
22079 * search.c (compile_pattern): Check the member target_multibyte,
22080 not the member multibyte of buf.
22081
22082 * lread.c (read1): While reading a string, set force_singlebyte
22083 and force_multibyte correctly.
22084
22085 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
22086 up of unibyte_to_multibyte_table.
22087
220882008-02-01 Kenichi Handa <handa@m17n.org>
22089
22090 * coding.c (setup_coding_system): If coding has
22091 post-read-conversion or pre-write-conversion, set
22092 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
22093 respectively.
22094 (decode_coding_gap): Run post-read-conversion if any.
22095
22096 * fileio.c (Finsert_file_contents): Even if we read into a
22097 unibyte buffer, check if we must decode the result or not.
22098
220992008-02-01 Kenichi Handa <handa@m17n.org>
22100
22101 * coding.c (make_conversion_work_buffer): Change the work buffer
22102 name to the same one as that of Emacs 21.
22103
221042008-02-01 Kenichi Handa <handa@m17n.org>
22105
22106 * coding.h (make_conversion_work_buffer): Adjust prototype.
22107 (code_conversion_restore): Don't extern it.
22108
22109 * coding.c (detected_mask): Delete unused variable.
22110 (decode_coding_iso_2022): Pay attention to the byte sequence of
22111 CTEXT extended segment, and retain those bytes as is.
22112 (decode_coding_ccl): Delete unused variable `valids'.
22113 (setup_coding_system): Delete unused variable `category'.
22114 (consume_chars): Delete unused variable `category'. Make it work
22115 for non-multibyte case.
22116 (make_conversion_work_buffer): Change argument.
22117 (saved_coding): Delete unused variable.
22118 (code_conversion_restore): Don't check saved_coding->destination.
22119 (code_conversion_save): New function.
22120 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
22121 instead of record_unwind_protect.
22122 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
22123 (detect_coding_system): Delete unused variable `mask'.
22124 (Fdefine_coding_system_internal): Delete unused variable id.
22125
22126 * fileio.c (kill_workbuf_unwind): New function.
22127 (Finsert_file_contents): On replacing, call
22128 make_conversion_work_buffer with correct args, and call
22129 record_unwind_protect with the first arg kill_workbuf_unwind.
22130
22131 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
22132
221332008-02-01 Kenichi Handa <handa@m17n.org>
22134
22135 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
22136 (fontset_add): Fix for the case that TO is less than TO1.
22137 (Ffontset_info): Don't use fallback fontset on checking the
22138 default fontset.
22139 (dump_fontset): New function for debugging.
22140
22141 * coding.c (Fdefine_coding_system_internal): Fix for the case that
22142 coding_type is Qcharset.
22143
221442008-02-01 Kenichi Handa <handa@m17n.org>
22145
22146 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
22147 (map_char_table): Don't inherit the value from the parent on
22148 initializing VAL. Adjust for the above change.
22149
221502008-02-01 Kenichi Handa <handa@m17n.org>
22151
22152 * coding.c (Qsignature, Qendian): Delete these variables.
22153 (syms_of_coding): Don't initialize them.
22154 (CATEGORY_MASK_UTF_16_AUTO): New macro.
22155 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
22156 detect_info->found.
22157 (decode_coding_utf_16): Don't detect BOM here.
22158 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
22159 is NOT utf_16_without_bom.
22160 (setup_coding_system): For a coding system of type utf-16, check
22161 if the attribute :endian is Qbig or not (not nil or not), and set
22162 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
22163 (detect_coding): If coding type is utf-16 and BOM detection is
22164 required, detect it.
22165 (Fdefine_coding_system_internal): For a coding system of type
22166 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
22167
221682008-02-01 Kenichi Handa <handa@m17n.org>
22169
22170 * coding.c (coding_set_source): Fix for the case that the current
22171 buffer is different from coding->src_object.
22172 (decode_coding_object): Don't use the conversion work buffer if
22173 DST_OBJECT is a buffer.
22174
221752008-02-01 Dave Love <fx@gnu.org>
22176
22177 * lread.c (read_emacs_mule_char) [len==2]: Index
22178 emacs_mule_charset correctly.
22179
221802008-02-01 Dave Love <fx@gnu.org>
22181
22182 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
22183 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
22184 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
22185 treated specially.)
22186 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
22187 (detected_mask): Remove Big5 bits.
22188
221892008-02-01 Kenichi Handa <handa@m17n.org>
22190
22191 The following changes are to make the font rescaling facility
22192 compatible with Emacs 21.
22193
22194 * xfaces.c (Vface_font_rescale_alist): Rename from
22195 Vface_resizing_fonts.
22196 (struct font_name): Rename member resizing_ratio to rescale_ratio.
22197 (font_rescale_ratio): Rename from font_resizing_ratio.
22198 (split_font_name): Set font->rescale_ratio.
22199 (better_font_p): Pay attention to font->rescale_ratio.
22200 (build_scalable_font_name): Likewise. Change RESX, and RESY
22201 fields.
22202 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
22203
222042008-02-01 Kenichi Handa <handa@m17n.org>
22205
22206 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
22207 (Qutf_16_le): Remove these variables.
22208 (syms_of_coding): Don't DEFSYM them.
22209 (decode_coding_utf_16): Fix handling of BOM.
22210 (encode_coding_utf_16): Fix handling of BOM.
22211
222122008-02-01 Kenichi Handa <handa@m17n.org>
22213
22214 * fileio.c (Finsert_file_contents): On replacing, before decoding
22215 the file into the work buffer, set point of the work buffer to the end.
22216
222172008-02-01 Dave Love <fx@gnu.org>
22218
22219 * coding.c (Fcheck_coding_systems_region): Fix type errors.
22220
222212008-02-01 Dave Love <fx@gnu.org>
22222
22223 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22224 and fix C types.
22225
222262008-02-01 Kenichi Handa <handa@m17n.org>
22227
22228 * xdisp.c (SKIP_GLYPHS): New macro.
22229 (set_cursor_from_row): Pay attention to string display properties.
22230
22231 * category.c (copy_category_entry): Fix for the case that RANGE
22232 is an integer.
22233
22234 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
22235
22236 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
22237
222382008-02-01 Kenichi Handa <handa@m17n.org>
22239
22240 * charset.c (Fcharset_id_internal): New function.
22241 (syms_of_charset): Defsubr it.
22242
22243 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
22244 with the last arg charset_list acquired from coding.
22245 (Fdefine_coding_system_internal): For ccl-based coding system, fix
22246 the attribute coding_attr_ccl_valids.
22247
22248 * coding.h (enum define_coding_ccl_arg_index): Set the first
22249 member coding_arg_ccl_decoder to coding_arg_max.
22250
22251 * ccl.h (ccl_driver): Adjust prototype.
22252
22253 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
22254 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 22255 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
22256 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
22257 last arg Qnil.
22258
222592008-02-01 Kenichi Handa <handa@m17n.org>
22260
22261 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
22262 call encode_char.
22263
22264 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
22265
222662008-02-01 Dave Love <fx@gnu.org>
22267
22268 * composite.c (syms_of_composite): Make composition_hash_table weak.
22269
222702008-02-01 Kenichi Handa <handa@m17n.org>
22271
22272 * dispextern.h (check_face_attributes, generate_ascii_font_name)
22273 (font_name_registry): Don't extern them.
22274 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
22275
22276 * fontset.h (Qfontset): Don't extern it.
22277 (new_fontset_from_font_name): Extern it.
22278
22279 * fontset.c: Give 8 extra slots to fontset objects.
22280 (Qfontset_info): New variable.
22281 (syms_of_fontset): Defsym it.
22282 (FONTSET_FALLBACK): New macro.
22283 (fontset_face): Try also the default fontset.
22284 (make_fontset): Realize a fallback fontset from the default fontset.
22285 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
22286 using split_font_name_into_vector and build_font_name_from_vector.
22287 (Fset_fontset_font): Access the elements of font_spec by enum
22288 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
22289 name by using split_font_name_into_vector.
22290 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
22291 generate a proper font name from the fontset name. Update
22292 Vfontset_alias_alist.
22293 (n_auto_fontsets): New variable.
22294 (new_fontset_from_font_name): New function.
22295 (Ffont_info): Store the information about fonts generated from the
22296 default fontset in the first extra slot of the returned char-table.
22297
22298 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
22299 (font_name_registry): Delete function.
22300 (split_font_name_into_vector): New function.
22301 (build_font_name_from_vector): New function.
22302 (font_list): The argument REGISTRY is now a list of registry names.
22303 (choose_face_font): If we are choosing an ASCII font, and ATTRS
22304 specifies an explicit font name, return the name as is. Make a
22305 list of registy names.
22306
22307 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
22308 of x_new_fontset.
22309 (Fx_create_frame): Don't call x_new_fontset here. Just use
22310 x_list_fonts to check the existence of fonts.
22311
22312 * xterm.h (x_new_fontset): Adjust prototype.
22313
22314 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
22315 string. Use new_fontset_from_font_name to create a fontset from a
22316 font name.
22317
223182008-02-01 Kenichi Handa <handa@m17n.org>
22319
22320 * syntax.c (Vfind_word_boundary_function_table): New name for
22321 Vnext_word_boundary_function_table.
22322 (find-word-boundary-function-table): New name for
22323 next-word-boundary-function-table.
22324
223252008-02-01 Dave Love <fx@gnu.org>
22326
22327 * Makefile.in: Fix some dependencies.
22328
22329 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
22330 set it to nil before returning.
22331
22332 * composite.c (update_compositions): Fix type error.
22333
22334 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
22335
223362008-02-01 Kenichi Handa <handa@m17n.org>
22337
22338 * xterm.c (x_new_font): Optimize for the case that the font is
22339 already set for the frame.
22340
223412008-02-01 Kenichi Handa <handa@m17n.org>
22342
22343 * chartab.c (char_table_ascii): Check if the char table contents
22344 is sub-char-table or not.
22345 (char_table_set, char_table_set_range): Fix argument to
22346 char_table_ascii.
22347
22348 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
22349 (detect_coding_utf_8, detect_coding_utf_16)
22350 (detect_coding_emacs_mule, detect_coding_iso_2022)
22351 (detect_coding_sjis, detect_coding_big5)
22352 (detect_coding_ccl, detect_coding_charset): Change argument MASK
22353 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
22354 sequence is valid in this coding system. Change callers.
22355 (MAX_ANNOTATION_LENGTH): New macro.
22356 (ADD_ANNOTATION_DATA): New macro.
22357 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
22358 ADD_ANNOTATION_DATA. Change the format of annotation data.
22359 (ADD_CHARSET_DATA): New macro.
22360 (emacs_mule_char): New argument ID. Change callers.
22361 (decode_coding_emacs_mule, decode_coding_iso_2022)
22362 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
22363 Produce charset annotation data in coding->charbuf.
22364 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
22365 to charset annotation data in coding->charbuf.
22366 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
22367 coding->common_flags if the coding system is iso-2022 based and
22368 uses designation.
22369 (produce_composition): Adjust for the new annotation data format.
22370 (produce_charset): New function.
22371 (produce_annotation): Handle charset annotation.
22372 (handle_composition_annotation, handle_charset_annotation): New
22373 functions.
22374 (consume_chars): Handle charset annotation. Utilize the above two
22375 functions.
22376 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
22377 buffer, get the deleted text as a string and set
22378 coding->src_object to that string.
22379 (detect_coding, detect_coding_system): Use the new struct
22380 coding_detection_info.
22381
22382 * coding.h (struct coding_detection_info): New structure.
22383 (struct coding_system): Adjust prototype of the member `detector'.
22384 (CODING_ANNOTATE_CHARSET_MASK): New macro.
22385
223862008-02-01 Kenichi Handa <handa@m17n.org>
22387
22388 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
22389
223902008-02-01 Dave Love <fx@gnu.org>
22391
22392 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
22393 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
22394 to new local and nullify apropos_accumulate before returning.
22395 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
22396
223972008-02-01 Kenichi Handa <handa@m17n.org>
22398
22399 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
22400 correctly.
e3eea1fc 22401
aac0c6e3
MR
224022008-02-01 Dave Love <fx@gnu.org>
22403
22404 * fns.c (Flanginfo): Call synchronize_system_time_locale.
22405
224062008-02-01 Kenichi Handa <handa@m17n.org>
22407
22408 The following changes are to make character composition happen
22409 automatically on displaying.
22410
22411 * Makefile.in (lisp, shortlisp): Add composite.elc.
22412
22413 * composite.h (Qauto_composed, Vauto_composition_function)
22414 (Qauto_composition_function): Extern them.
22415
22416 * composite.c (Vcomposition_function_table)
22417 (Qcomposition_function_table): Delete variables.
22418 (Qauto_composed, Vauto_composition_function)
22419 (Qauto_composition_function): New variables.
22420 (run_composition_function): Don't call
22421 compose-chars-after-function.
22422 (update_compositions): Clear `auto-composed' text property.
22423 (compose_chars_in_text): Delete this function.
22424 (syms_of_composite): Staticpro Qauto_composed and
22425 Qauto_composition_function. Declare Vauto_composition_function as
22426 a Lisp variable.
22427
22428 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
22429
22430 * xdisp.c (it_props): Add an entry for Qauto_composed.
22431 (handle_auto_composed_prop): New function.
22432
22433 * xselect.c (selection_data_to_lisp_data): Don't call
22434 compose_chars_in_text.
22435
224362008-02-01 Dave Love <fx@gnu.org>
22437
22438 * keyboard.c (read_char): Modify checking around use of
22439 Vkeyboard_translate_table.
22440
22441 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22442 and fix C types.
22443
224442008-02-01 Kenichi Handa <handa@m17n.org>
22445
22446 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
22447 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22448 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
22449 the case that the last byte is '\r' correctly.
22450 (decode_coding): Flush out the unprocessed data correctly.
22451 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
22452
224532008-02-01 Dave Love <fx@gnu.org>
22454
22455 * xterm.c (XTread_socket): Fix changes for defined keysyms.
22456 Add XK_ISO... case.
22457 (xaw_scroll_callback): Revert last change.
22458
224592008-02-01 Kenichi Handa <handa@m17n.org>
22460
22461 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
22462
224632008-02-01 Kenichi Handa <handa@m17n.org>
22464
22465 * xfaces.c (Vface_resizing_fonts): New variable.
22466 (struct font_name): New member `resizing_ratio'.
22467 (font_resizing_ratio): New function.
22468 (split_font_name): Set font->resizing_ratio.
22469 (better_font_p): Pay attention to font->resizing_ratio.
22470 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
22471 RESX, and RESY fields.
22472 (try_alternative_families): Try scalable fonts if
22473 Vscalable_fonts_allowed is not Qt.
22474 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
22475
224762008-02-01 Dave Love <fx@gnu.org>
22477
22478 * xterm.c (xaw_scroll_callback): Cast correctly.
22479
224802008-02-01 Dave Love <fx@gnu.org>
22481
22482 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
22483 (lispy_kana_keys): Comment out.
22484 (make_lispy_event) [XK_kana_A]: Comment out.
22485
22486 * xterm.c (xaw_scroll_callback): Cast call_data.
22487 (XTread_socket): Deal with ASCII keysyms.
22488 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
22489
224902008-02-01 Dave Love <fx@gnu.org>
22491
22492 * xterm.c (Vx_keysym_table): New.
22493 (syms_of_xterm): Initialize it.
22494 (XTread_socket): Use it.
22495 From head: Eliminate incorrect optimization that tried to avoid
22496 decoding the output of X*LookupString.
22497 (x_get_font_repertory): Delete charset declaration.
22498
224992008-02-01 Kenichi Handa <handa@m17n.org>
22500
22501 * coding.c (detect_coding_charset): If only ASCII bytes are found,
22502 return 0.
22503 (Fdefine_coding_system_internal): Setup
22504 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
22505
225062008-02-01 Dave Love <fx@gnu.org>
22507
22508 * coding.c (Fcheck_coding_system): Doc fix.
22509
22510 * editfns.c (Finsert_byte): Return a proper value.
22511
225122008-02-01 Kenichi Handa <handa@m17n.org>
22513
22514 * coding.c (decode_coding): Fix args to translate_chars. Pay
22515 attention to Vstandard_translation_table_for_decode.
22516 (encode_coding): Fix args to translate_chars. Pay attention to
22517 Vstandard_translation_table_for_encode.
22518
22519 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
22520 SINGLE_BYTE_CHAR_P.
22521
22522 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
22523 not by SINGLE_BYTE_CHAR_P.
22524
22525 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
22526 SINGLE_BYTE_CHAR_P.
22527
22528 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
22529 SINGLE_BYTE_CHAR_P.
22530
22531 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
22532 by SINGLE_BYTE_CHAR_P.
22533
22534 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
22535 SINGLE_BYTE_CHAR_P.
22536
225372008-02-01 Dave Love <fx@gnu.org>
22538
22539 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
22540
225412008-02-01 Dave Love <fx@gnu.org>
22542
22543 * fns.c (Flanginfo): Fix typo.
22544
22545 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
22546
225472008-02-01 Kenichi Handa <handa@m17n.org>
22548
22549 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
22550 (detect_coding_emacs_mule, detect_coding_iso_2022)
22551 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
22552 incomplete byte sequence. Don't update *mask when correctly detected.
22553 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
22554 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
22555 (detect_coding, detect_coding_system): Adjust for the changes above.
22556
225572008-02-01 Kenichi Handa <handa@m17n.org>
22558
22559 * character.c (char_string): Rename from
22560 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
22561 (string_char): Rename from string_char.
22562
22563 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
22564 if C is greater than MAX_3_BYTE_CHAR.
22565 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
22566 string_char instead of string_char_with_unification.
22567
225682008-02-01 Dave Love <fx@gnu.org>
22569
22570 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
22571
225722008-02-01 Kenichi Handa <handa@m17n.org>
22573
22574 * keymap.c (push_key_description): Pay attention to force_multibyte.
22575
22576 * regex.c (re_search_2): Fix for the case of unibyte buffer.
22577
225782008-02-01 Dave Love <fx@gnu.org>
22579
22580 * charset.c (define_charset_internal): Rename `supprementary'.
22581
22582 * Makefile.in (lisp, shortlisp): Remove latin-N.
22583
225842008-02-01 Dave Love <fx@gnu.org>
22585
22586 * xfns.c (x_window, x_window): Use use_xim.
22587
22588 * xterm.c (use_xim): Initialize.
22589 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
22590 (x_term_init): Maybe set use_xim.
22591
22592 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
22593
225942008-02-01 Kenichi Handa <handa@m17n.org>
22595
22596 * search.c (search_buffer): Fix case-fold-search of multibyte
22597 characters.
22598 (boyer_moore): Rename the last argument to char_high_bits.
22599
226002008-02-01 Kenichi Handa <handa@m17n.org>
22601
22602 * xdisp.c (display_string): Fix for the case of zero width glyph.
22603
22604 * xfns.c (x_set_font): Change the error message of the case that
22605 x_new_fontset returns Qt.
22606
22607 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
22608 (Finternal_set_lisp_face_attribute): Use signal_error for the
22609 error of invalid fontset.
22610
22611 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
22612 fontset, return Qt.
22613
226142008-02-01 Dave Love <fx@gnu.org>
22615
22616 * unexelf.c (unexec): Make .got handling not SGI-specific.
22617
22618 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
22619
22620 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
22621
22622 * keyboard.c (read_key_sequence): Fix type error.
22623
22624 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
22625 type error.
22626
22627 * fontset.c (fontset_add): Return Lisp_Object.
22628
226292008-02-01 Dave Love <fx@gnu.org>
22630
22631 * charset.h (charset_ordered_list_tick): Declare extern.
22632
226332008-02-01 Kenichi Handa <handa@m17n.org>
22634
22635 The following changes (and some of 2008-02-01 changes of mine) are
22636 for handling syntax, category, and case conversion for unibyte
22637 characters by converting them to multibyte on the fly. With these
22638 changes, we don't have to setup syntax and case tables for unibyte
22639 characters in each language environment.
22640
22641 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
22642 multibyte if necessary.
22643
22644 * bytecode.c (Fbyte_code): Likewise.
22645
22646 * character.h (LEADING_CODE_LATIN_1_MIN)
22647 (LEADING_CODE_LATIN_1_MAX): New macros.
22648 (unibyte_to_multibyte_table): Extern it.
22649 (unibyte_char_to_multibyte): New macro.
22650 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
22651 (CHAR_LEADING_CODE): New macro.
22652 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
22653
22654 * character.c (unibyte_to_multibyte_table): New variable.
22655 (unibyte_char_to_multibyte): Move to character.h and define as macro.
22656 (multibyte_char_to_unibyte): If C is an eight-bit character,
22657 convert it to the corresponding byte value.
22658
22659 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
22660 not 1, signals an error. Update the elements of
22661 unibyte_to_multibyte_table.
22662 (init_charset_once): Initialize unibyte_to_multibyte_table.
22663 (syms_of_charset): Define the charset `iso-8859-1'.
22664
22665 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
22666 as is without converting it to unibyte. In a unibyte buffer,
22667 convert C to multibyte before checking the syntax.
22668
22669 * lisp.h (unibyte_char_to_multibyte): Delete extern.
22670
22671 * minibuf.c (Fminibuffer_complete_word): Use the macro
22672 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
22673
22674 * regex.h (struct re_pattern_buffer): New member target_multibyte.
22675
22676 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
22677 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
22678 that is zero, convert an eight-bit char to multibyte.
22679 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
22680 non-emacs case.
22681 (PATFETCH): Convert an eight-bit char to multibyte.
22682 (HANDLE_UNIBYTE_RANGE): New macro.
22683 (regex_compile): Setup the compiled pattern for multibyte chars
22684 even if the given regex string is unibyte. Use PATFETCH_RAW
22685 instead of PATFETCH in many places. To handle `charset'
22686 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
22687 only for ASCII chars.
22688 (analyse_first) <exactn>: Simplify because the compiled pattern
22689 is multibyte.
22690 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
22691 <charset>: Use CHAR_LEADING_CODE to get leading codes.
22692 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
22693 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
22694 multibyte always 1.
22695 (re_search_2): In emacs, set the locale variable multibyte to 1,
22696 otherwise to 0. New local variable target_multibyte. Check it
22697 to decide the multibyteness of STR1 and STR2. If
22698 target_multibyte is zero, convert unibyte chars to multibyte
22699 before translating and checking fastmap.
22700 (TARGET_CHAR_AND_LENGTH): New macro.
22701 (re_match_2_internal): In emacs, set the locale variable multibyte
22702 to 1, otherwise to 0. New local variable target_multibyte. Check
22703 it to decide the multibyteness of STR1 and STR2. Use
22704 TARGET_CHAR_AND_LENGTH to fetch a character from D.
22705 <charset, charset_not>: If multibyte is nonzero, check fastmap
22706 only for ASCII chars. Call bcmp_translate with
22707 target_multibyte, not with multibyte.
22708 <begline>: Declare the local variable C as `unsigned'.
22709 (bcmp_translate): Change the last arg name to target_multibyte.
22710
22711 * search.c (compile_pattern_1): Don't adjust the multibyteness of
22712 the regexp pattern and the matching target. Set cp->buf.multibyte
22713 to the multibyteness of the regexp pattern. Set
22714 cp->but.target_multibyte to the multibyteness of the matching target.
22715 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
22716 FETCH_STRING_CHAR_ADVANCE.
22717 (Freplace_match): Convert unibyte chars to multibyte.
22718
22719 * syntax.c (char_quoted, back_comment, scan_words)
22720 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
22721 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
22722 unibyte chars to multibyte.
22723 (skip_chars): Delete the arg syntaxp, and move the code for
22724 handling syntaxes to skip_syntaxes. Change callers.
22725 Fix the case that the multibyteness of STRING and the current
22726 buffer doesn't match.
22727 (skip_syntaxes): New function.
22728 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
22729 SINGLE_BYTE_CHAR_P.
22730
227312008-02-01 Kenichi Handa <handa@m17n.org>
22732
22733 * xfaces.c (QCfontset): New variable.
22734 (LFACE_FONTSET): New macro.
22735 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
22736 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
22737 (Finternal_set_lisp_face_attribute)
22738 (Finternal_get_lisp_face_attribute): Handle QCfontset.
22739 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
22740 check also LFACE_FONTSET_INDEX.
22741 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
22742 attrs[LFACE_FONT_INDEX].
22743 (syms_of_xfaces): Intern and staticpro QCfontset.
22744
22745 * dispextern.h (enum lface_attribute_index): New member
22746 LFACE_FONTSET_INDEX.
22747
22748 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
22749
227502008-02-01 Kenichi Handa <handa@m17n.org>
22751
22752 * coding.c (coding_set_destination): Fix coding->destination for
22753 the case converting a region.
22754 (encode_coding_utf_8): Encode eight-bit chars as single byte.
22755 (encode_coding_object): Fix coding->dst_pos and
22756 coding->dst_pos_byte for the case converting a region.
22757
22758 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
22759
22760 * character.h (BYTE8_STRING): New macro.
22761
22762 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
22763
227642008-02-01 Kenichi Handa <handa@m17n.org>
22765
22766 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
22767 characters by octal form.
22768
22769 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
22770
22771 * buffer.h (_fetch_multibyte_char_len): Delete extern.
22772 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
22773 _fetch_multibyte_char_len.
22774 (FETCH_CHAR_AS_MULTIBYTE): New macro.
22775
22776 * casetab.c (set_canon, set_identity, shuffle): Simplify.
22777
22778 * casefiddle.c (casify_object): Simplify. Handle the case that
22779 the case conversion change the byte length.
22780 (casify_region): Likewise.
22781
22782 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
22783
22784 * character.c (_fetch_multibyte_char_len): Delete this variable.
22785 (syms_of_character): Setup Vprintable_chars.
22786
22787 * editfns.c (Fchar_equal): Fix for the unibyte case.
22788 (Finsert_byte): New function.
22789 (syms_of_editfns): Defsubr it.
22790
22791 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
22792 of direct code 0x3ffff.
22793
22794 * search.c (Freplace_match): Fix for the unibyte case.
22795
227962008-02-01 Kenichi Handa <handa@m17n.org>
22797
22798 * lread.c (safe_to_load_p): Fix the logic.
22799
22800 * syntax.c (scan_words): Don't treat characters belonging to
22801 different scripts as constituting a word.
22802
22803 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22804
22805 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
22806
22807 * emacs.c (main): In the case of --unibyte, instead of aborting on
22808 finding non-empty buffer, make it unibyte.
22809
228102008-02-01 Kenichi Handa <handa@m17n.org>
22811
22812 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
22813 to create a fontset.
22814
228152008-02-01 Dave Love <fx@gnu.org>
22816
22817 * character.c (Funibyte_char_to_multibyte): Doc fix.
22818
22819 * xfns.c [HAVE_STDLIB_H]: Fix last change.
22820
228212008-02-01 Kenichi Handa <handa@m17n.org>
22822
22823 * fontset.c (fontset_add): Make the type `int'.
22824 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
22825
22826 * character.c (unibyte_char_to_multibyte)
22827 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
22828 charset_unibyte, not charset_primary.
22829
22830 * charset.h (charset_unibyte): Extern it instead of charset_primary.
22831
22832 * charset.c (charset_unibyte): Rename from charset_primary.
22833 (Funibyte_charset): Rename from Fprimary_charset.
22834 (Fset_unibyte_charset): Rename from Fset_primary_charset.
22835 (syms_of_charset): Adjust for the above changes.
22836
22837 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22838 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22839 it->multibyte_p is zero.
22840
22841 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
22842 Delete extern.
22843
228442008-02-01 Kenichi Handa <handa@m17n.org>
22845
22846 * coding.c (Fdefine_coding_system_internal): Fix category setting
22847 for a coding system of type iso-2022.
22848
228492008-02-01 Kenichi Handa <handa@m17n.org>
22850
22851 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
22852
228532008-02-01 Kenichi Handa <handa@m17n.org>
22854
22855 * syntax.c (Vnext_word_boundary_function_table): New variable.
22856 (next-word-boundary-function-table): Declare it as a Lisp variable
22857 in syms_of_syntax.
22858 (scan_words): Call functions in Vnext_word_boundary_function_table
22859 if any.
22860
22861 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
22862
22863 * fontset.c (fs_load_font): If fontp->charset is not negative,
22864 return fontp without setting its members.
22865
228662008-02-01 Dave Love <fx@gnu.org>
22867
22868 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
22869
22870 * m/sparc.h (HAVE_ALLOCA): Delete.
22871
22872 * s/irix6-5.h: Don't include strings.h.
22873 (bcopy, bzero, bcmp): Don't undef.
22874
22875 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
22876
22877 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
22878 (TIOCSIGSEND): Don't test IRIX6.
22879 (bcopy, bzero, bcmp): Define conditionally.
22880
228812008-02-01 Kenichi Handa <handa@m17n.org>
22882
22883 * buffer.c (Qas, Qmake, Qto): New variables.
22884 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
22885 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
22886
22887 * callproc.c (Fcall_process): Don't call insert_1_both directly if
22888 we are inserting a process output into a multibyte buffer.
22889
22890 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
22891 multibyte_char_to_unibyte.
22892
22893 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
22894 by the primary charset, make it eight-bit char.
22895 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
22896
22897 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
22898 (charset_8_bit__control, charset_8_bit_graphic)
22899 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
22900 (define_charset_internal): New function.
22901 (syms_of_charset): Call define_charset_internal for pre-defined
22902 charsets.
22903
22904 * charset.h (charset_8_bit): Extern it.
22905
22906 * coding.c (make_conversion_work_buffer): Adjust for the change
22907 of Fset_buffer_multibyte.
22908 (encode_coding_raw_text): Increment p0 in the loop.
22909
22910 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
22911
22912 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
22913 for the change of Fset_buffer_multibyte.
22914
22915 * fns.c (Fstring_to_multibyte): New function.
22916 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
22917
229182008-02-01 Dave Love <fx@gnu.org>
22919
22920 * xfns.c (x_put_x_image): Declare args.
22921
22922 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
22923 (try_font_list): Declare an arg.
22924
22925 * xdisp.c (message2_nolog, set_message): Declare an arg.
22926
22927 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
22928
22929 * syntax.c (scan_sexps_forward): Declare an arg.
22930
22931 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
22932 Declare an arg.
22933
22934 * lisp.h (Fnew_fontset): Declare.
22935
22936 * keymap.c (push_key_description): Call CHARACTERP correctly.
22937
22938 * fontset.c (fontset_add): Declare args. Call make_number correctly.
22939 (face_for_char): Delete unused vars.
22940 (Fset_fontset_font): Doc fix. Delete unused vars.
22941
22942 * doc.c (Fsubstitute_command_keys): Delete unused vars.
22943
22944 * composite.c (update_compositions): Declare arg.
22945
22946 * cm.c (calccost, cmgoto): Declare args.
22947
22948 * charset.c: Remove `emacs' conditional. Doc fixes.
22949 (map_char_table_for_charset): Declare.
22950
22951 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
22952
22953 * ccl.c: Remove `emacs' conditional.
22954
229552008-02-01 Kenichi Handa <handa@m17n.org>
22956
22957 The following changes are to allow specifying multiple font
22958 patterns for a character range (specified by script or charset).
22959
22960 * Makefile.in (abbrev.o): Depend on syntax.h.
22961 (xfaces.o): Depend on charset.h.
22962
22963 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
22964 SINGLE_BYTE_CHAR_P.
22965
22966 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
22967
22968 * character.h (Vchar_script_table): Extern it.
22969
22970 * character.c (Vscript_alist): Delete.
22971 (Vchar_script_table, Qchar_script_table): New variable.
22972 (syms_of_character): Declare Vchar_script_table as a lisp variable
22973 and initialize it.
22974
22975 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
22976 have property char-table-extra-slots, make no extra slot.
22977
22978 * dispextern.h (struct face): Delete member `charset'.
22979 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
22980 SINGLE_BYTE_CHAR_P.
22981 (choose_face_font, lookup_non_ascii_face, font_name_registry):
22982 Add prototypes.
22983 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
22984 (generate_ascii_font_name): Rename from generate_ascii_font.
22985
22986 * fontset.h (get_font_repertory_func): New prototype.
22987 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
22988 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
22989
22990 * fontset.c (Qprepend, Qappend): New variables.
22991 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
22992 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
22993 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
22994 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
22995 (fontset_ref_and_range, fontset_add, reorder_font_vector)
22996 (load_font_get_repertory): New functions.
22997 (fontset_set): Delete.
22998 (fontset_face): New arg FACE. Return face ID, not face.
22999 Complete re-write to handle new fontset structure. Change caller.
23000 (free_face_fontset): Use ASET istead of AREF (X) = Y.
23001 (face_for_char): Don't call lookup_face.
23002 (make_fontset_for_ascii_face): New arg FACE.
23003 (fs_load_font): New arg CHARSET_ID. Don't check
23004 Vfont_encoding_alist here.
23005 (find_font_encoding): New function.
23006 (list_fontsets): Use STRINGP, not ! NILP.
23007 (accumulate_script_ranges): New function.
23008 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
23009 re-written to handle new fontset structure.
23010 (Ffontset_font): Return a copy of element.
23011 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
23012 docstring of font-encoding-alist.
23013
23014 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
23015 (Fset_fotset_font): Fix arguments to 5.
23016
23017 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
23018
23019 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
23020 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23021 (highlight_trailing_whitespace): Adjust for the change of
23022 lookup_named_face.
23023
23024 * xfaces.c: Include charset.h.
23025 (load_face_font): Delete argument C. Change caller.
23026 (generate_ascii_font_name): Rename from generate_ascii_font.
23027 (font_name_registry): New function.
23028 (cache_face): Store ascii faces before non-ascii faces in buckets.
23029 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
23030 Lookup only ascii faces.
23031 (lookup_non_ascii_face): New function.
23032 (lookup_named_face): Delete argument C. Change caller.
23033 (lookup_derived_face): Delete argument C. Change caller.
23034 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
23035 a string, just call font_list with it.
23036 (choose_face_font): Delete arguments FACE and C. New arg
23037 FONT_SPEC. Change caller.
23038 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
23039 Change caller.
23040 (realize_non_ascii_face): New function.
23041 (realize_x_face): Call load_face_font here.
23042 (realize_tty_face): Delete argument C. Change caller.
23043 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
23044 get a face ID.
23045 (dump_realized_face): Don't print charset of FACE.
23046
23047 * xfns.c (x_set_font): Always call x_new_fontset and
23048 store_frame_parameter.
23049 (Fx_create_frame): Call x_new_fontset, not x_new_font.
23050 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
23051
23052 * xterm.h (x_get_font_repertory): Extern it.
23053
23054 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
23055 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
23056 it->multibyte_p is zero.
23057 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23058 (x_new_fontset): If FONTSETNAME doesn't match any existing
23059 fontsets, create a new one.
23060 (x_get_font_repertory): New function.
23061
230622008-02-01 Kenichi Handa <handa@m17n.org>
23063
23064 * coding.c (Ffind_coding_systems_region_internal): Detect an
23065 ASCII only string correctly.
23066
23067 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
23068 version is 0.
23069
230702008-02-01 Kenichi Handa <handa@m17n.org>
23071
23072 * lread.c: Include "coding.h".
23073 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
23074 (load_each_byte, unread_char): New variables.
23075 (readchar_backlog): Delete.
23076 (readchar): Return a character unless load_each_byte is nonzero.
23077 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
23078 cons. If unread_char is not -1, simply return it.
23079 (unreadchar): Handle the case that readcharfun is
23080 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
23081 (read_multibyte): Delete.
23082 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
23083 (read_emacs_mule_char): New functions.
23084 (Fload): Even if the file doesn't have the extension ".elc", if
23085 safe_to_load_p returns a positive version number, assume that the
23086 file contains bytecompiled code. If the version is less than 22,
23087 load the file while decoding multibyte sequences by emacs-mule.
23088 (readevalloop): Don't use readchar_backlog.
23089 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
23090 (Fread_from_string): Pay attention to the case that STREAM is a cons.
23091 (read_escape): Delete the arg BYTEREP.
23092 (read1): Set load_each_byte to 1 temporarily while handling
23093 #@NUMBER. Don't call read_multibyte.
23094 (read_vector): Call Fread with a cons. If readcharfun is
23095 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
23096 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
23097 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
23098 and Qload_force_doc_strings.
23099
231002008-02-01 Kenichi Handa <handa@m17n.org>
23101
23102 * xdisp.c (face_before_or_after_it_pos): Call
23103 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
23104
231052008-02-01 Kenichi Handa <handa@m17n.org>
23106
23107 * character.h (TRAILING_CODE_P): New macro.
23108 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
23109 (string_char_with_unification): Fix prototype.
23110 (Vscript_alist): Extern it.
23111
23112 * character.c (Vscript_alist): New variable.
23113 (string_char_with_unification, str_as_unibyte)
23114 (string_escape_byte8): Add `const' to local variables.
23115 (syms_of_character): Declare script-alist as a Lisp variable.
23116
23117 * charset.h (Vcharset_ordered_list): Extern it.
23118 (charset_ordered_list_tick): Extern it.
23119 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
23120 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
23121 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
23122 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
23123 (Funify_charset): Adjust for the change of Funify_charset.
23124
23125 * charset.c (charset_ordered_list_tick): New variable.
23126 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
23127 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 23128 deunify instead of unify a charset.
aac0c6e3
MR
23129 (string_xstring_p): Add `const' to local variables.
23130 (find_charsets_in_text): Add `const' to arguments and local variables.
23131 (encode_char): Adjust for the change of Funify_charset. Fix
23132 detecting of invalid code.
23133 (Fset_charset_priority): Increment charset_ordered_list_tick.
23134 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
23135 and TO_CODE.
23136
23137 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
23138 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
23139 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
23140 (decode_coding_ccl, consume_chars)
23141 (Ffind_coding_systems_region_internal)
23142 (Fcheck_coding_systems_region): Add `const' to local variables.
23143
23144 * print.c (print_object): Use octal form for printing the
23145 contents of a bool vector.
23146
231472008-02-01 Dave Love <fx@gnu.org>
23148
23149 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
23150 <version == 20>: Refuse to load.
23151
231522008-02-01 Dave Love <fx@gnu.org>
23153
23154 * fns.c: Move coding.h.
23155 (Qcodeset, Qdays, Qmonths): New.
23156 (concat): Use CHARACTERP instead of INTEGERP.
23157 (Flocale_codeset): Delete.
23158 (Flanginfo): New function.
23159 (syms_of_fns): Change accordingly.
23160
23161 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
23162
231632008-02-01 Dave Love <fx@gnu.org>
23164
23165 * casetab.c (init_casetab_once, init_casetab_once): Fix
23166 CHAR_TABLE_SET call.
23167
23168 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
23169
23170 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
23171
23172 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
23173 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
23174 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
23175
23176 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
23177
23178 * coding.c (ENCODE_DESIGNATION, decode_eol)
23179 (make_conversion_work_buffer, code_conversion_restore)
23180 (Fdefine_coding_system_internal): Convert Lisp types.
23181 (code_conversion_restore): Use EQ, not ==.
23182 (Fencode_coding_string): Fix code_convert_string call.
23183
23184 * coding.h (code_convert_region): Fix prototype.
23185
23186 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
23187
23188 * fontset.c (fontset_ref, fontset_set, fs_load_font)
23189 (Ffontset_info): Convert Lisp types.
23190
23191 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
23192
23193 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
23194
23195 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
23196
23197 * chartab.c: Include "...h", not <...h> in some cases.
23198
23199 * callproc.c (Fcall_process): Remove unused variables.
23200
232012008-02-01 Dave Love <fx@gnu.org>
23202
23203 * coding.c (Fset_coding_system_priority): Allow null arg list.
23204
232052008-02-01 Dave Love <fx@gnu.org>
23206
23207 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
23208 (Fself_insert_and_exit): Use CHARACTERP.
23209
23210 * callproc.c (Fcall_process): Remove unused vars.
23211
23212 * xterm.c (XTread_socket): Add extra dead keysyms.
23213
23214 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
23215
23216 * dispextern.h: Remove prototypes for redraw_frame,
23217 redraw_garbaged_frames.
23218
23219 * cmds.c (Fself_insert_command): Use CHARACTERP.
23220
23221 * chartab.c (make_sub_char_table): Remove unused var.
23222 (Fset_char_table_default, Fmap_char_table): Doc fix.
23223
23224 * keymap.c (access_keymap): Remove generic char code.
23225 (push_key_description): Use CHARACTERP.
23226
232272008-02-01 Dave Love <fx@gnu.org>
23228
23229 * charset.c: Doc fixes.
23230 (Funify_charset): Extra checking.
23231
232322008-02-01 Dave Love <fx@gnu.org>
23233
23234 * lread.c: Remove some unused variables.
23235 (safe_to_load_p): If safe, return the magic number version byte.
23236 (Fload): Maybe use load-with-code-conversion.
23237
232382008-02-01 Kenichi Handa <handa@m17n.org>
23239
23240 * category.c (Fmodify_category_entry): Don't modify the contents
23241 of category_set for characters out of the range. Avoid
23242 unnecessary modification.
23243
23244 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
23245 Vchar_unify_table. The default value of the table is now nil.
23246
23247 * character.c (syms_of_character): Setup Vchar_width_table for
23248 eight-bit-control and raw-byte chars.
23249
23250 * charset.h (enum define_charset_arg_index): Delete
23251 charset_arg_parents and add charset_arg_subset and
23252 charset_arg_superset.
23253 (enum charset_attr_index): Delete charset_parents and add
23254 charset_subset and charset_superset.
23255 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
23256 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
23257 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
23258 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
23259 (CHARSET_SUPERSET): New macros.
23260 (charset_work): Extern it.
23261 (ENCODE_CHAR): Use charset_work.
23262 (CHAR_CHARSET_P): Adjust for the change of encoder format.
23263 (map_charset_chars): Extern it.
23264
23265 * charset.c (load_charset_map): Set the default value of encoder
23266 and deunifier char-tables to nil.
23267 (map_charset_chars): Change argument. Change callers. Use
23268 map_char_table_for_charset instead of map_char_table.
23269 (Fmap_charset_chars): New optional args from_code and to_code.
23270 (Fdefine_charset_internal): Adjust for the change of
23271 `define-charset' (:parents -> :subset or :superset).
23272 (charset_work): New variable.
23273 (encode_char, syms_of_charset): Adjust for the change of
23274 Fdefine_charset_internal.
23275 (Ffind_charset_string): Setup the vector `charsets' correctly.
23276
23277 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
23278 the previous change.
23279 (char_table_ref_and_range): Adjust for the above change.
23280 (map_sub_char_table_for_charset): New function.
23281 (map_char_table_for_charset): New function.
23282
23283 * keymap.c (describe_vector): Handle a char-table directly here.
23284 (describe_char_table): Delete.
23285
23286 * lisp.h (map_charset_chars): Delete.
23287
232882008-02-01 Dave Love <fx@gnu.org>
23289
23290 * fns.c (count_combining): Comment out (unused).
23291 (Flocale_codeset): New.
23292 (syms_of_fns): Defsubr it.
23293
23294 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
23295 (size_t): Remove.
23296
232972008-02-01 Dave Love <fx@gnu.org>
23298
23299 * Makefile.in (chartab.o): Depend on charset.h.
23300
233012008-02-01 Kenichi Handa <handa@m17n.org>
23302
23303 * character.c (syms_of_character): Set the default value of
23304 Vprintable_chars to Qnil.
23305
233062008-02-01 Dave Love <fx@gnu.org>
23307
23308 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
23309
233102008-02-01 Kenichi Handa <handa@m17n.org>
23311
23312 * charset.c (load_charset_map): Handle the case that from < to
23313 correctly.
23314
23315 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
23316 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
23317 Pay attention to raw-8-bit chars.
23318
233192008-02-01 Kenichi Handa <handa@m17n.org>
23320
23321 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
23322 It is not bytecompiled now.
23323
23324 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
23325 (charset_jisx0208): New variables.
23326 (Fdefine_charset_internal): Setup them if appropriate.
23327 (init_charset_once): Initialize them to -1.
23328
23329 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
23330 (charset_jisx0208): Extern them.
23331
23332 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
23333 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
23334 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
23335 (setup_iso_safe_charsets): Fix arguments to Fassq.
23336 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
23337 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
23338 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
23339 (encode_coding_iso_2022): Change the 1st arg to
23340 ENCODE_ISO_CHARACTER to a variable.
23341
233422008-02-01 Kenichi Handa <handa@m17n.org>
23343
23344 * charset.h (enum define_charset_arg_index): New enums
23345 charset_arg_min_code and charset_arg_max_code.
23346 (struct charset): New member char_index_offset.
23347
23348 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
23349 Take charset->char_index_offset into account.
23350 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
23351 args[charset_arg_max_code]. Setup charset.char_index_offset.
23352 (syms_of_charset): Fix args to Fdefine_charset_internal.
23353
233542008-02-01 Dave Love <fx@gnu.org>
23355
23356 * coding.c (decode_coding_utf_8): Reject overlong sequences.
23357
233582008-02-01 Dave Love <fx@gnu.org>
23359
23360 * coding.c: Doc fixes.
23361 (Fcoding_system_aliases): Fix return value.
23362 (Qmac): Remove (duplicated) definition.
23363
233642008-02-01 Dave Love <fx@gnu.org>
23365
362654a6
JB
23366 * charset.c (Fcharset_priority_list, Fset_charset_priority):
23367 New functions.
aac0c6e3
MR
23368
23369 * character.c (Fstring): Doc fix.
23370
23371 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
23372
362654a6 23373 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
23374 (font-encoding-alist): Doc fix.
23375
233762008-02-01 Dave Love <fx@gnu.org>
23377
23378 * term.c (costs_set): Declare static, non-initialized for pcc.
23379 (encode_terminal_code): Remove unused var.
23380
23381 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
23382 for K&R.
23383
23384 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
23385
23386 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
23387 (suffixes): Move out of make_subsidiaries for K&R.
23388
23389 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
23390
23391 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
23392
233932008-02-01 Dave Love <fx@gnu.org>
23394
23395 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
23396
23397 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
23398
233992008-02-01 Yong Lu <lyongu@asia-infonet.com>
23400
23401 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
23402
23403 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
23404
234052008-02-01 Kenichi Handa <handa@m17n.org>
23406
23407 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
23408 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
23409
234102008-02-01 Kenichi Handa <handa@m17n.org>
23411
23412 * coding.c (decode_coding_charset): Adjust for the change of
23413 Fdefine_coding_system_internal.
23414 (Fdefine_coding_system_internal): For a coding system of
23415 `charset' type, store a list of charset IDs in
23416 `charset_attr_charset_valids' element of coding attributes.
23417
234182008-02-01 Kenichi Handa <handa@m17n.org>
23419
23420 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
23421 (emacs_mule_char): New arg src. Delete arg `composition'. Change
23422 caller. Handle 2-byte and 3-byte charsets correctly.
23423 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
23424 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
23425 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
23426 (DECODE_EMACS_MULE_21_COMPOSITION): Call
23427 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
23428 sequence.
23429 (decode_coding_emacs_mule): Handle composition correctly. Rewind
23430 `src' and `consumed_chars' correctly before calling emacs_mule_char.
23431 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
23432 and alt&rule composition.
23433 (decode_coding_iso_2022): Handle composition correctly.
23434 (init_coding_once): Setup emacs_mule_bytes for private charsets.
23435
23436 * charset.c (Fdefine_charset_internal): Fix bug for the case of
23437 re-defining a charset. If the charset has :emacs-mule-id, setup
23438 emacs_mule_bytes.
23439 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
23440
234412008-02-01 Kenichi Handa <handa@m17n.org>
23442
23443 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
23444 (encode_coding_big5, encode_coding_charset): If coding requires safe
23445 encoding, produce a character specified by
23446 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
23447
234482008-02-01 Dave Love <fx@gnu.org>
23449
23450 * xterm.c (XSetIMValues): Declare.
23451
23452 * process.c: Conditionally include sys/wait.h, pty.h.
23453
23454 * print.c (print_object): Fix print format for 64-bit systems.
23455
23456 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
23457
23458 * buffer.c (emacs_strerror): Declare.
23459
23460 * fontset.c (Fclear_face_cache): Declare.
23461 (accumulate_font_info): Comment-out (unused).
23462 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
23463 variables.
23464
23465 * character.h (string_escape_byte8): Declare.
23466
23467 * charset.c (load_charset_map, load_charset_map_from_file): Remove
23468 unused vars.
23469 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
23470 (Fmap_charset_chars): Doc fix.
23471
23472 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
23473 (Fset_coding_system_priority, Fset_coding_system_priority)
23474 (Fdefine_coding_system_internal): Doc fix.
23475
234762008-02-01 Dave Love <fx@gnu.org>
23477
23478 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
23479
234802008-02-01 Kenichi Handa <handa@m17n.org>
23481
23482 * character.c (string_escape_byte8): Make multibyte string with
23483 correct size.
23484
23485 * charset.c (Fmake_char): Delete unnecessary code.
23486
234872008-02-01 Kenichi Handa <handa@m17n.org>
23488
23489 * xfns.c (x_encode_text): Allocate coding.destination here, and
23490 call encode_coding_object with dst_object Qnil.
23491
23492 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
23493 multibyte form correctly.
23494
23495 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
23496 against Vfont_encoding_alist.
23497
23498 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
23499 handling of charset list.
23500 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
23501 (decode_coding_object): Move point to coding->dst_pos before
23502 calling post-read-conversion function.
23503 (encode_coding_object): Give correct arguments to
23504 pre-write-conversion. Ignore the return value of
23505 pre-write-conversion function. Pay attention to the case that
23506 pre-write-conversion changes the current buffer. If dst_object is
23507 Qt, even if coding->src_bytes is zero, allocate at least one byte
23508 to coding->destination.
23509
23510 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
23511
23512 * charset.c (Fmake_char): Make it more backward compatible.
23513 (Fmap_charset_chars): Fix docstring.
23514
235152008-02-01 Dave Love <fx@gnu.org>
23516
23517 * coding.c: Doc fixes.
23518 (Fdefine_coding_system_alias): Use names, not symbols, in
23519 coding-system-alist.
23520
235212008-02-01 Kenichi Handa <handa@m17n.org>
23522
23523 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
23524 of calling free_realized_face.
23525
235262008-02-01 Yong Lu <lyongu@asia-infonet.com>
23527
23528 * charset.c (read_hex): Don't treat SPC as a comment starter.
23529 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
23530 (Fdecode_char): Fix typo.
23531
235322008-02-01 Kenichi Handa <handa@m17n.org>
23533
23534 * charset.h (struct charset): New member `code_space_mask'.
23535
23536 * coding.c (coding_set_source): Delete the local variable beg_byte.
23537 (encode_coding_charset, Fdefine_coding_system_internal):
23538 Delete the local variable charset.
23539 (Fdefine_coding_system_internal): Setup
23540 attrs[coding_attr_charset_valids] correctly.
23541
23542 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
23543 member to check if CODE is valid or not.
23544 (Fdefine_charset_internal): Initialize `code_space_mask' member.
23545 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
23546 is within the range of charset->min_code and carset->max_code.
23547
235482008-02-01 Dave Love <fx@gnu.org>
23549
23550 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
23551
23552 * dispextern.h (generate_ascii_font): Fix return type.
23553
23554 * xfaces.c (generate_ascii_font): Fix arg declaration.
23555
23556 * coding.c (coding_inherit_eol_type)
23557 (Fset_terminal_coding_system_internal)
23558 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
23559
235602008-02-01 Kenichi Handa <handa@m17n.org>
23561
23562 * coding.c (decode_coding_charset, encode_coding_charset): Handle
23563 multiple charsets correctly.
23564
235652008-02-01 Kenichi Handa <handa@m17n.org>
23566
23567 * search.c (boyer_moore): Fix handling of multibyte character
23568 translation.
23569
23570 * xdisp.c (display_mode_element): When the variable `elt' is
23571 changed, update `this' and `lisp_string'.
23572
235732008-02-01 Kenichi Handa <handa@m17n.org>
23574
23575 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
23576
23577 * callproc.c (Fcall_process): Be sure to give the current buffer
23578 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
23579
23580 * charset.c (struct charset_map_entries): New struct.
23581 (load_charset_map): Rename from parse_charset_map. New args
23582 entries and n_entries. Change caller.
23583 (load_charset_map_from_file): Rename from load_charset_map.
23584 Change caller. New arg control_flag. Call load_charset_map at
23585 the tail.
23586 (load_charset_map_from_vector): New function.
23587 (Fdefine_charset_internal): Setup charset.compact_codes_p.
23588 (encode_char): If the charset is compact, change a character index
23589 to a code point.
23590
23591 * coding.c (coding_alloc_by_making_gap): Check the case that the
23592 source and destination are the same correctly.
23593 (decode_coding_raw_text): Set coding->consumed_char and
23594 coding->consumed to 0.
23595 (produce_chars): If coding->chars_at_source is nonzero, update
23596 coding->consumed_char and coding->consumed before calling
23597 alloc_destination.
23598 (Fdefine_coding_system_alias): Register ALIAS in
23599 Vcoding_system_alist.
23600 (syms_of_coding): Define `no-conversion' coding system at the tail.
23601
23602 * fileio.c (Finsert_file_contents): Set coding_system instead of
23603 val. If the current buffer is multibyte, always call
23604 decode_coding_gap.
23605
23606 * xfaces.c (try_font_list): Give higher priority to fontset's
23607 family than face's family.
23608
236092008-02-01 Kenichi Handa <handa@m17n.org>
23610
23611 * callproc.c (Fcall_process): Be sure to give the current buffer
23612 to decode_coding_c_string.
23613
23614 * xfaces.c (try_font_list): Give a family specified in a fontset
23615 higher priority than a family specified in a face.
23616
236172008-02-01 Kenichi Handa <handa@m17n.org>
23618
23619 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
23620 Fix arguments to insert_from_buffer.
23621
23622 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
23623
236242008-02-01 Kenichi Handa <handa@m17n.org>
23625
23626 * coding.c (produce_chars): Set the variable `multibytep' correctly.
23627 (decode_coding_gap): Set coding->dst_multibyte correctly.
23628
236292008-02-01 Kenichi Handa <handa@m17n.org>
23630
23631 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
23632 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
23633 (encode_coding_utf_16): Substitute coding->default_char for
23634 non-Unicode characters.
23635 (decode_coding): Don't call record_insert here.
23636 (setup_coding_system): Initialize `surrogate' of
23637 coding->spec.utf_16 to 0.
23638 (EMIT_ONE_BYTE): Fix for multibyte case.
23639
23640 * insdel.c (insert_from_gap): Call record_insert.
23641
236422008-02-01 Kenichi Handa <handa@m17n.org>
23643
23644 * casefiddle.c (casify_region): Fix multibyte case.
23645
23646 * character.c (c_string_width): Add return type `int'.
23647 (char_string_with_unification): Delete arg ADVANCED.
23648
23649 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
23650 (CHAR_STRING): Adjust for the change of char_string_with_unification.
23651 (CHAR_STRING_ADVANCE): Make it do-while statement.
23652
23653 * chartab.c (sub_char_table_set_range): Optimize for the case
23654 DEPTH == 3. Add workaround code for a GCC optimization bug.
23655
23656 * charset.c (parse_charset_map): Remove an unused variable.
23657
23658 * coding.c: Delete unused variables.
23659
23660 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
23661 earlier. If inserted is zero and the coding system doesn't
23662 require flushing, don't call decode_coding_gap.
23663
23664 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
23665
236662008-02-01 Kenichi Handa <handa@m17n.org>
23667
23668 The following changes are for using Unicode as an internal
23669 character model, and use UTF-8 format for buffer/string
23670 representation.
23671
23672 * .gdbinit (xchartable): Adjust for the change of char table structure.
23673 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
23674
23675 * Makefile.in (obj): Add character.o and chartab.o.
23676 (lisp, shortlisp): Remove utf-8.elc.
23677 (*.o): For many files, change dependency on charset.h to
23678 character.h, and add dependency on character.h.
23679 (character.o, chartab.o): New targets.
23680
23681 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
23682 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
23683 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
23684 of "charset.h".
23685
23686 * dired.c, filelock.c: Include "character.h".
23687
23688 * alloc.c: Include "character.h" instead of "charset.h".
23689 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
23690 (syms_of_alloc): Remove defsubr for Smake_char_table.
23691
23692 * buffer.c: Include "character.h" instead of "charset.h", don't
23693 include "coding.h".
23694 (Fset_buffer_multibyte): Adjust for UTF-8.
23695
23696 * buffer.h: EXFUN Fbuffer_live_p.
23697
23698 * callproc.c: Include "character.h" instead of "charset.h".
23699 (Fcall_process): Big change for the new code-conversion APIs.
23700
23701 * casetab.c: Include "character.h" instead of "charset.h".
23702 (set_canon, set_identity, shuffle): Adjust for the new
23703 map_char_table spec.
23704 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
23705 accessing the char table structure.
23706
23707 * chartab.c: New file that implements char table.
23708
23709 * category.c: Include "character.h".
23710 (copy_category_entry): New function.
23711 (copy_category_table): Call map_char_table and copy_category_entry.
23712 (Fmake_category_table): Initialize all top-level slots.
23713 (char_category_set): New function.
23714 (modify_lower_category_set): Delete.
23715 (Fmodify_category_entry): Call char_table_ref_and_range.
23716
23717 * category.h (CATEGORY_SET): Just call char_category_set.
23718
23719 * ccl.c: Include "character.h".
23720 (Qccl, Qcclp): New variables.
23721 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
23722 it's less than 256.
23723 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
23724 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
23725 and DST type.
23726 (ccl_driver): Change types of argument, adjust code accordingly.
23727 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
23728 ccl_driver.
23729 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
23730
23731 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
23732 New members src_multibyte, dst_multibyte, consumed, and produced.
23733 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
23734 (CODING_SPEC_CCL_PROGRAM): New macro.
23735 (ccl_driver): Update prototype.
23736 (Qccl, Qcclp, Fccl_program_p): Extern them.
23737 (CHECK_CCL_PROGRAM): New macro.
23738
23739 * character.c, character.h, chartab.c: New files.
23740
23741 * charset.c: Mostly re-written. Move character and multibyte sequence
23742 handling codes to character.c.
23743
23744 * charset.h: Mostly re-written. Move character and multibyte sequence
23745 handling codes to character.h.
23746
23747 * coding.c, coding.h: Mostly re-written.
23748
23749 * composite.c: Include "character.h" instead of "charset.h".
23750 (CHAR_WIDTH): Move to character.h.
23751 (HASH_KEY, HASH_VALUE): Delete.
23752
23753 * composite.h (enum composition_method): Change order of enumeration
23754 symbols.
23755
23756 * data.c: Include "character.h" instead of "charset.h".
23757 (Faref): Call CHAR_TABLE_REF for a char table.
23758 (Faset): Call CHAR_TABLE_SET for a char table.
23759
23760 * dispextern.h (free_realized_face, check_face_attribytes)
23761 (generate_ascii_font): Extern them.
23762 (free_realized_multibyte_face): Delete extern.
23763
23764 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
23765 table structure.
23766
23767 * editfns.c: Include "character.h" instead of "charset.h".
23768 (Fchar_to_string): Always call CHAR_STRING.
23769
23770 * emacs.c (main): Call init_charset_once, init_charset,
23771 syms_of_chartab, and syms_of_character.
23772
23773 * fileio.c: Include "character.h" instead of "charset.h".
23774 (Finsert_file_contents): Big change for the new code-conversion API.
23775 (choose_write_coding_system, Fwrite_region): Likewise.
23776 (build_annotations_2): Delete.
23777 (e_write): Big change for the new code-conversion API.
23778
23779 * fns.c: Include "character.h" instead of "charset.h".
23780 (copy_sub_char_table): Move to chartab.c.
23781 (Fcopy_sequence): Call copy_char_table for a char table.
23782 (concat): Delete codes calling count_multibyte.
23783 (string_char_to_byte, string_byte_to_char): Adjust for the new
23784 multibyte form.
23785 (internal_equal): Adjust for the change of char table structure.
23786 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
23787 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
23788 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
23789 (char_table_translate, optimize_sub_char_table)
23790 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
23791 chartab.c.
23792 (char_table_ref_and_index): Delete.
23793 (HASH_KEY, HASH_VALUE): Move to lisp.h.
23794 (Fmd5): Call preferred_coding_system instead of accessing
23795 Vcoding_category_list. Adjust for the new code-conversion API.
23796 (syms_of_fns): Move defsubr for char table related functions to
23797 chartab.c.
23798
23799 * fontset.c: Mostly re-written.
23800
23801 * fontset.h (struct font_info): Change type of the member encoding_type.
23802 (enum FONT_SPEC_INDEX): New enum.
23803 (fontset_font_pattern, fs_load_font): Update prototype.
23804 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
23805
23806 * indent.c: Include "character.h" instead of "charset.h".
23807 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
23808
23809 * insdel.c: Include "character.h" instead of "charset.h".
23810 (copy_text): Don't refer to Vnonascii_translation_table.
23811 (insert_from_gap): New function.
23812
23813 * keyboard.c: Include "character.h" instead of "charset.h".
23814 (command_loop_1): Never call direct_output_forward_char before
23815 a non-ASCII character.
23816 (read_char): If Vkeyboard_translate_table is a char table, always
23817 translate a character.
23818
23819 * keymap.c: Include "character.h".
23820 (store_in_keymap): Handle the case that IDX is a cons.
23821 (Fdefine_key): Handle the case that KEY is a cons and the car part
23822 is also a cons (range).
23823 (push_key_description): Adjust for the new character code.
23824 (describe_vector): Call describe_char_table for a char table.
23825 (describe_char_table): New function.
23826
23827 * keymap.h (describe_char_table): Extern it.
23828
23829 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
23830 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
23831 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
23832 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
23833 Delete.
23834 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
23835 structure.
23836 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
23837 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
23838 (CHARTAB_SIZE_BITS_3): New macros.
23839 (chartab_size): Extern it.
23840 (struct Lisp_Char_Table): Re-design.
23841 (struct Lisp_Sub_Char_Table): New structure.
23842 (HASH_KEY, HASH_VALUE): Move from fns.c.
23843 (CHARACTERBITS): Define as 22.
23844 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
23845 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
23846 (GC_SUB_CHAR_TABLE_P): New macro.
23847 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
23848 (code_convert_string_norecord): Deleted extern.
23849 (init_character_once, syms_of_character, init_charset)
23850 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
23851
23852 * lread.c: Include "character.h".
23853 (read_multibyte): New arg NBYTES.
23854 (read_escape): Change the meaning of returned *BYTEREP.
23855 (to_multibyte): Delete.
23856 (read1): Adjust the handling of char table and string.
23857
23858 * print.c: Include "character.h" instead of "charset.h".
23859 (print_string): Convert 8-bit raw bytes to octal form by
23860 string_escape_byte8.
23861 (print_object): Adjust for the new multibyte form. Print 8-bit
23862 raw bytes always in octal form. Handle sub char table correctly.
23863
23864 * process.c: Include "character.h" instead of "charset.h".
23865 (read_process_output, send_process): Adjust for the new
23866 code-conversion API.
23867
23868 * puresize.h (BASE_PURESIZE): Increase.
23869
23870 * regex.c: Include "character.h" instead of "charset.h".
23871 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
23872 (regex_compile): Accept a range whose starting and ending
23873 character have different leading bytes.
23874 (analyse_first): Adjust for the above change.
23875
23876 * search.c: Include "character.h" instead of "charset.h".
23877 (search_buffer, boyer_moore): Adjust for the new multibyte form.
23878 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
23879
23880 * syntax.c: Include "character.h" instead of "charset.h".
23881 (syntax_parent_lookup): Delete.
23882 (Fmodify_syntax_entry): Accept a cons as CHAR.
23883 (skip_chars): Adjust for the new multibyte form.
23884 (init_syntax_once): Call char_table_set_range instead of directly
23885 accessing the structure of a char table.
23886
23887 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
23888 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
23889 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
23890 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
23891
23892 * term.c: Include "buffer.h" and "character.h".
23893 (encode_terminal_code, write_glyphs): Adjust for the new
23894 code-conversion API.
23895 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
23896
23897 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
23898
23899 * xdisp.c: Include "character.h".
23900 (get_next_display_element): Adjust for the new multibyte form.
23901 (disp_char_vector): Adjust for the new char table structure.
23902 (decode_mode_spec_coding): Adjust for the new structure of
23903 coding system.
23904 (decode_mode_spec): Adjust for the new code-conversion API.
23905
23906 * xfaces.c: Include "character.h" instead of "charset.h".
23907 (load_face_font): Adjust for the change of choose_face_font and
23908 FS_LOAD_FONT.
23909 (generate_ascii_font): New function.
23910 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
23911 (set_font_frame_param): Adjust for the change of choose_face_font.
23912 (free_realized_face): Make it public.
23913 (free_realized_faces_for_fontset): Rename from
23914 free_realized_multibyte_face. Free also faces realized for ASCII.
23915 (choose_face_font): Change arguments. Adjust for the change of
23916 fontset_font_pattern and FS_LOAD_FONT.
23917
23918 * xfns.c: Include "character.h".
23919 (x_encode_text): Adjust for the new code-conversion API.
23920
23921 * xselect.c: Don't include "charset.h".
23922 (selection_data_to_lisp_data): Adjust for the new code conversion API.
23923
23924 * xterm.c: Include "character.h".
23925 (x_encode_char): New argument CHARSET. Change caller.
23926 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
23927 Call ENCODE_CHAR instead of SPLIT_CHAR.
23928 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
23929 CHAR_WIDTH instead of CHARSET_WIDTH.
23930 (XTread_socket): Adjust for the new code-conversion API.
23931 (x_new_font): Adjust for the change of FS_LOAD_FONT.
23932 (x_load_font): Adjust for the change of struct font.
23933
239342008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23935
23936 * xfaces.c (face_at_buffer_position): Remove unused vars.
23937
239382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23939
23940 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
23941 Fix overflow checking.
23942
239432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23944
23945 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
23946 Cancel previous change.
23947
239482008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23949
23950 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
23951 ccl->eight_bit_control. Fix check for buffer overflow.
23952 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
23953 (ccl_driver): Initialize extra_bytes to 0.
23954
239552008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23956
23957 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
23958 return it ORed with ctrl_modifier.
23959
239602008-01-29 Miles Bader <miles@gnu.org>
23961
23962 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
23963
239642008-01-28 Jason Rumney <jasonr@gnu.org>
23965
23966 * w32.c (stat): Don't double check for networked drive.
23967
239682008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
23969
23970 * window.c (run_window_configuration_change_hook): New function.
23971 Code extracted from set_window_buffer. Set the selected frame.
23972 (set_window_buffer): Use it.
23973 * window.h (run_window_configuration_change_hook): Declare.
23974 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
23975
23976 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
23977
239782008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
23979
23980 * Makefile.in: Remove references to unused macros.
23981
239822008-01-26 Eli Zaretskii <eliz@gnu.org>
23983
23984 * w32.c (g_b_init_get_sid_sub_authority)
23985 (g_b_init_get_sid_sub_authority_count): New static variables.
23986 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
23987 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
23988 (init_user_info): Use them to retrieve uid and gid.
23989 Use 500/513, the Windows defaults, as Administrator's uid/gid.
23990 (fstat): Use pw_uid and pw_gid from the_passwd structure for
23991 st_uid and st_gid of the file.
23992
239932008-01-26 Jason Rumney <jasonr@gnu.org>
23994
23995 * w32.c (logon_network_drive): New function.
23996 (stat): Use it.
23997
239982008-01-26 Chong Yidong <cyd@stupidchicken.com>
23999
24000 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
24001 invisible text covered with an ellipsis.
24002
240032008-01-25 Richard Stallman <rms@gnu.org>
24004
24005 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
24006 jump back to beginning. Move some other initializations after that.
24007 (Qwindow_text_change_functions, Vwindow_text_change_functions):
24008 New variables.
24009 (syms_of_xdisp): Init them.
24010
24011 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
24012
24013 * buffer.c (reset_buffer_local_variables):
24014 Implement `permanent-local-hook'.
24015 (Qpermanent_local_hook): New variable.
24016 (syms_of_buffer): Init and staticpro it.
24017
240182008-01-25 Michael Albinus <michael.albinus@gmx.de>
24019
24020 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
24021
240222008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
24023
24024 * fns.c (Fclrhash): Return TABLE.
24025
240262008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24027
24028 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
24029 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
24030 is set even without positional changes.
24031 (x_scroll_bar_clear): Set bar->redraw_needed_p.
24032
24033 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
24034
240352008-01-23 Jason Rumney <jasonr@gnu.org>
24036
24037 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
24038
24039 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
24040 the unicode range available in MULE by locale-coding-system.
24041 Improve dbcs lead byte detection. Set event timestamp and modifiers
24042 earlier.
24043
240442008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24045
24046 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
24047 [MAC_OSX] (init_mac_osx_environment): Initialize it.
24048 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
24049 when used on child processes.
24050
240512008-01-21 Michael Albinus <michael.albinus@gmx.de>
24052
24053 * dbusbind.c (Fdbus_method_return_internal): Rename from
24054 Fdbus_method_return.
24055 (Fdbus_unregister_object): Move to dbus.el.
24056 (Fdbus_call_method, Fdbus_method_return_internal)
24057 (Fdbus_send_signal): Improve debug messages.
24058
240592008-01-20 Martin Rudalics <rudalics@gmx.at>
24060
24061 * undo.c (undo_inhibit_record_point): New variable.
24062 (syms_of_undo): Initialize it.
24063 (record_point): Don't record point when undo_inhibit_record_point
24064 is set.
24065
240662008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
24067
24068 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
24069
24070 * xdisp.c (Qauto_hscroll_mode): New var.
24071 (syms_of_xdisp): Initialize it.
24072 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
24073 window's buffer.
24074 (hscroll_windows): Don't check automatic_hscrolling_p here.
24075
24076 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
24077 vscroll if we're setting window-buffer to the value it already has.
24078
240792008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
24080
24081 * m/intel386.h: Remove references to XENIX.
24082
240832008-01-17 Andreas Schwab <schwab@suse.de>
24084
24085 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
24086 instead of HAVE_X86_64_LIB64_DIR.
24087 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
24088
240892008-01-17 Glenn Morris <rgm@gnu.org>
24090
24091 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
24092 to HAVE_X86_64_LIB64_DIR.
24093
240942008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
24095
24096 * s/irix3-3.h:
24097 * s/irix4-0.h:
24098 * s/386-ix.h:
24099 * s/domain.h:
24100 * s/hpux9-x11r4.h:
24101 * s/hpux9shxr4.h: Remove files for systems no longer supported.
24102
24103 * sysdep.c: Remove code containing references to symbols defined
24104 by unsupported systems.
24105
241062008-01-16 Glenn Morris <rgm@gnu.org>
24107
24108 * coding.c (select-safe-coding-system-function): Doc fix.
24109
241102008-01-15 Glenn Morris <rgm@gnu.org>
24111
24112 * config.in: Revert 2008-01-13 change: this is a generated file.
24113
241142008-01-13 Tom Tromey <tromey@redhat.com>
24115
24116 * lisp.h: Fix typo.
24117
241182008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
24119
24120 * m/sequent-ptx.h:
24121 * m/sequent.h:
24122 * s/ptx.h:
24123 * s/ptx4-2.h:
24124 * s/ptx4.h: Remove files for systems no longer supported.
24125
24126 * callproc.c (Fcall_process): Fix previous change.
24127
241282008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
24129
24130 * unexsunos4.c: Remove file, system not supported anymore.
24131
24132 * m/mips.h:
24133 * m/intel386.h:
24134 * callproc.c:
24135 * config.in:
24136 * ecrt0.c:
24137 * emacs.c:
24138 * fileio.c:
24139 * frame.c:
24140 * getpagesize.h:
24141 * keyboard.c:
24142 * lread.c:
24143 * process.c:
24144 * puresize.h:
24145 * sysdep.c:
24146 * systty.h:
24147 * syswait.h:
24148 * unexec.c:
24149 * xdisp.c:
24150 * alloc.c: Remove code containing references to symbols defined by
24151 unsupported systems.
24152
241532008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
24154
24155 * coding.c (detect_coding_mask): Fix previous change.
24156
241572008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
24158
24159 * coding.c (detect_coding_iso2022): New arg
24160 latin_extra_code_state. Allow Latin extra codes only
24161 when *latin_extra_code_state is nonzero.
24162 (detect_coding_mask): If there is a NULL byte, detect the encoding
24163 as UTF-16 or binary. If Latin extra codes exist, detect the
24164 encoding as ISO-2022 only when there's no other proper encoding is
24165 found.
24166
241672008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24168
24169 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
24170 #ifdef MAC_OS.
24171
241722008-01-08 Richard Stallman <rms@gnu.org>
24173
24174 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
24175
241762008-01-06 Nick Roberts <nickrob@snap.net.nz>
24177
24178 * keyboard.c (parse_menu_item): Don't enclose key bindings on
24179 menu bar in parentheses.
24180
241812008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
24182
24183 * m/7300.h:
24184 * m/acorn.h:
24185 * m/alliant-2800.h:
24186 * m/alliant.h:
24187 * m/alliant1.h:
24188 * m/alliant4.h:
24189 * m/altos.h:
24190 * m/amdahl.h:
24191 * m/apollo.h:
24192 * m/att3b.h:
24193 * m/aviion-intel.h:
24194 * m/aviion.h:
24195 * m/celerity.h:
24196 * m/clipper.h:
24197 * m/cnvrgnt.h:
24198 * m/convex.h:
24199 * m/cydra5.h:
24200 * m/delta88k.h:
24201 * m/dpx2.h:
24202 * m/dual.h:
24203 * m/elxsi.h:
24204 * m/f301.h:
24205 * m/gould-np1.h:
24206 * m/gould.h:
24207 * m/i860.h:
24208 * m/ibmps2-aix.h:
24209 * m/ibmrt-aix.h:
24210 * m/ibmrt.h:
24211 * m/irist.h:
24212 * m/is386.h:
24213 * m/isi-ov.h:
24214 * m/mega68.h:
24215 * m/mg1.h:
24216 * m/news-r6.h:
24217 * m/news-risc.h:
24218 * m/news.h:
24219 * m/nh3000.h:
24220 * m/nh4000.h:
24221 * m/ns16000.h:
24222 * m/ns32000.h:
24223 * m/nu.h:
24224 * m/orion.h:
24225 * m/orion105.h:
24226 * m/paragon.h:
24227 * m/pfa50.h:
24228 * m/plexus.h:
24229 * m/pyramid.h:
24230 * m/pyrmips.h:
24231 * m/sh3el.h:
24232 * m/sps7.h:
24233 * m/sr2k.h:
24234 * m/stride.h:
24235 * m/sun1.h:
24236 * m/sun2.h:
24237 * m/sun3-68881.h:
24238 * m/sun3-fpa.h:
24239 * m/sun3-soft.h:
24240 * m/sun3.h:
24241 * m/sun386.h:
24242 * m/symmetry.h:
24243 * m/tad68k.h:
24244 * m/tahoe.h:
24245 * m/targon31.h:
24246 * m/tek4300.h:
24247 * m/tekxd88.h:
24248 * m/tower32.h:
24249 * m/tower32v3.h:
24250 * m/ustation.h:
24251 * m/wicat.h:
24252 * m/xps100.h:
24253 * s/cxux.h:
24254 * s/cxux7.h:
24255 * s/dgux.h:
24256 * s/dgux4.h:
24257 * s/dgux5-4-3.h:
24258 * s/dgux5-4r2.h:
24259 * s/esix.h:
24260 * s/esix5r4.h:
24261 * s/hiuxmpp.h:
24262 * s/hiuxwe2.h:
24263 * s/iris3-5.h:
24264 * s/iris3-6.h:
24265 * s/isc2-2.h:
24266 * s/isc3-0.h:
24267 * s/isc4-0.h:
24268 * s/isc4-1.h:
24269 * s/newsos5.h:
24270 * s/newsos6.h:
24271 * s/osf1.h:
24272 * s/osf5-0.h:
24273 * s/riscix1-1.h:
24274 * s/riscix12.h:
24275 * s/sco4.h:
24276 * s/sco5.h:
24277 * s/sunos4-0.h:
24278 * s/sunos4-1.h:
24279 * s/sunos413.h:
24280 * s/sunos4shr.h:
24281 * s/umax.h:
24282 * s/unipl5-2.h:
24283 * s/xenix.h:
24284 * cxux-crt0.s:
24285 * unexapollo.c:
24286 * unexconvex.c:
24287 * unexenix.c:
24288 * unexsni.c: Remove files for systems no longer supported.
24289
24290 * m/intel386.h: Remove references to unsupported systems.
24291
24292 * w32.c (get_emacs_configuration): Remove reference to i860.
24293
24294 * sysdep.c: Remove dead code.
24295
242962008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
24297
24298 * s/rtu.h:
24299 * m/masscomp.h: Remove files. Platform is obsolete.
24300
243012008-01-04 Michael Albinus <michael.albinus@gmx.de>
24302
24303 * dbusbind.c (Fdbus_method_return): New function.
24304 (xd_read_message): Add the serial number to the event.
24305 (Fdbus_register_method): Activate the function.
24306
243072008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
24308
24309 * keyboard.c (read_key_sequence): Fix typo.
24310
243112008-01-03 Michael Albinus <michael.albinus@gmx.de>
24312
24313 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
24314 (xd_signature, xd_append_arg): Handle element type detection for
24315 empty arrays.
24316 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
24317 SDATA () calls; this must be solved more general.
24318 (Fdbus_register_signal): Use SBYTES instead of strlen.
24319
243202008-01-03 Magnus Henoch <magnus@zemdatav>
24321
24322 * dbusbind.c (xd_append_arg): Use unsigned char instead of
24323 unsigned int for byte values (necessary for big-endian platform).
24324 (Fdbus_call_method): Handle the case of no returned arguments.
24325
243262007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
24327
24328 * dbusbind.c (xd_read_message): Use non-static input_event struct.
24329
243302007-12-31 Magnus Henoch <mange@freemail.hu>
24331
24332 * dbusbind.c (xd_signature): Signature of variant is just "v".
24333
243342007-12-30 Michael Albinus <michael.albinus@gmx.de>
24335
24336 * dbusbind.c: Fix several errors and compiler warnings.
24337 Reported by Tom Tromey <tromey@redhat.com>.
24338 (XD_ERROR, XD_DEBUG_MESSAGE)
24339 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
24340 (xd_append_arg): Part for basic D-Bus types rewritten.
24341 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
24342 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
24343 appropriate.
24344 (xd_read_message): Return Qnil. Don't signal an error; it is not
24345 useful during event reading.
24346 (Fdbus_register_signal): Signal an error if the check for
24347 FUNCTIONP fails.
24348 (Fdbus_register_method): New function. The implementation is not
24349 complete, the call of the function signals an error therefore.
24350 (Fdbus_unregister_object): New function, renamed from
24351 Fdbus_unregister_signal. The initial check signals an error, if
24352 the object is not well formed.
24353
243542007-12-30 Richard Stallman <rms@gnu.org>
24355
24356 * textprop.c (get_char_property_and_overlay):
24357 Signal error if POSITION is out of range in a buffer.
24358
243592007-12-29 Martin Rudalics <rudalics@gmx.at>
24360
24361 * w32fns.c (Fx_create_frame): Make copy of frame parameters
24362 because the original parameters are in pure storage now.
24363
243642007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24365
24366 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
24367
243682007-12-22 Eli Zaretskii <eliz@gnu.org>
24369
24370 * callint.c (syms_of_callint) <command-history>: Add reference to
24371 history-length in the doc string.
24372
243732007-12-17 Jason Rumney <jasonr@gnu.org>
24374
24375 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
24376 before passing as wParam.
24377
243782007-12-22 Michael Albinus <michael.albinus@gmx.de>
24379
24380 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
24381 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
24382 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
24383 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
24384 as number.
24385 (Fdbus_call_method): Fix docstring.
24386
243872007-12-21 Michael Albinus <michael.albinus@gmx.de>
24388
24389 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
24390 New macros.
24391 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
24392 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
24393 Simplify.
24394 (xd_signature): New function.
24395 (xd_append_arg): Compute also signatures. Major rewrite.
24396 (xd_retrieve_arg): Make debug messages friendly.
24397 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
24398 Check for signatures of arguments.
24399
244002007-12-19 Michael Albinus <michael.albinus@gmx.de>
24401
24402 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
24403 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
24404 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
24405 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
24406 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
24407 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
24408 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
24409 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
24410 (xd_retrieve_value): Remove. Functionality included in ...
24411 (xd_append_arg): New function.
24412 (Fdbus_call_method, Fdbus_send_signal): Apply it.
24413
244142007-12-16 Michael Albinus <michael.albinus@gmx.de>
24415
24416 * dbusbind.c (top): Include <stdio.h>.
24417 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
24418 dbus_message_new_method_call and dbus_message_new_signal.
24419 (Fdbus_register_signal): Rename unique_name to uname.
24420 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
24421 non-existing unique name. Fix typos in matching rule. Return an
24422 object which is useful in Fdbus_unregister_signal.
24423 (Fdbus_unregister_signal): Reimplementation, in order to remove
24424 only the corresponding entry.
24425 (Vdbus_registered_functions_table): Change the order of entries.
24426 Apply these changes in xd_read_message and Fdbus_register_signal.
24427
244282007-12-16 Andreas Schwab <schwab@suse.de>
24429
24430 * fileio.c (Finsert_file_contents): Fix overflow check to not
24431 depend on undefined integer overflow.
24432
244332007-12-14 Jason Rumney <jasonr@gnu.org>
24434
24435 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
24436 for characters above 127.
24437
244382007-12-13 Jason Rumney <jasonr@gnu.org>
24439
24440 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
24441 before dereferencing array.
24442 (lookup_vk_code): Remove zero comparison.
24443
244442007-12-14 Michael Albinus <michael.albinus@gmx.de>
24445
24446 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
24447 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
24448 Use `unsigned int' instead of `uint'.
24449 (xd_read_message, Fdbus_register_signal): Split expressions into
24450 multiple lines before operators "&&" and "||", according to the
24451 GNU Coding Standards.
24452
244532007-12-14 Eli Zaretskii <eliz@gnu.org>
24454
24455 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
24456
244572007-12-12 Juri Linkov <juri@jurta.org>
24458
24459 * buffer.c (Frename_buffer): In interactive spec replace
24460 `read-buffer' with `read-string' that uses `buffer-name-history'
24461 as history, and the current buffer's name as default.
24462
244632007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
24464
24465 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
24466 manipulating the backtrace manually.
24467 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
24468 (struct backtrace, backtrace_list): Remove.
24469 (command_loop_1): Remove dead var `no_direct'.
24470
24471 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
24472 preserve non-built-in buffer-local variables.
24473 (Fkill_all_local_variables): Don't re-create&re-set permanent
24474 buffer-local variables.
24475
244762007-12-09 Juri Linkov <juri@jurta.org>
24477
24478 * buffer.c (Frename_buffer): Change interactive spec from "s" to
24479 Lisp code that uses `read-buffer' with current buffer as default.
24480
244812007-12-08 Michael Albinus <michael.albinus@gmx.de>
24482
24483 * dbusbind.c (xd_read_message): Generate an event for every
24484 registered handler. There might be several handlers registered
24485 for the same signal.
24486 (Fdbus_register_signal): Don't overwrite a registration for the
24487 same signal. Add a new registration if handlers are different.
24488 (Vdbus_registered_functions_table): Rework doc string.
24489
244902007-12-07 Michael Albinus <michael.albinus@gmx.de>
24491
24492 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
24493 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
24494 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
24495 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
24496 Unify argument lists.
24497 (xd_read_message, Fdbus_register_signal): Reorder and extend event
24498 arguments and hash table keys. Use unique name for service.
24499 (Fdbus_unregister_signal): Remove checks.
24500 (Vdbus_registered_functions_table): Fix doc string.
24501
245022007-12-05 Magnus Henoch <mange@freemail.hu>
24503
24504 * process.c (make_process): Initialize pty_flag to 0.
24505
245062007-12-05 Jason Rumney <jasonr@gnu.org>
24507
24508 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
24509 specified XBMs.
24510
245112007-12-05 Richard Stallman <rms@gnu.org>
24512
24513 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
24514
245152007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24516
24517 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
24518 New variable.
24519 (mac_try_close_socket) [MAC_OSX]: New function.
24520 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
24521 Update cfsockets_for_select. Replace invalid CFRunLoop source.
24522
24523 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
24524 Use mac_try_close_socket.
24525
245262007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24527
24528 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
24529 reloc_base.
24530 (copy_dysymtab): Compute relocation base here.
24531 (rebase_reloc_address) [__ppc64__]: New function.
24532 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
24533 changed.
24534
245352007-12-05 Jason Rumney <jasonr@gnu.org>
24536
24537 * w32proc.c (sys_spawnve): Quote args with wildcards.
24538
245392007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24540
24541 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
24542 __objc_* sections.
24543 (unrelocate) [_LP64]: Set relocation base to address of data segment.
24544
245452007-12-05 Michael Albinus <michael.albinus@gmx.de>
24546
24547 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
24548 Move check for Vdbus_registered_functions_table to
24549 xd_read_queued_messages.
24550 (xd_read_queued_messages): Protect xd_read_message calls by
24551 internal_condition_case_1.
24552
245532007-12-04 Michael Albinus <michael.albinus@gmx.de>
24554
24555 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
24556 Qdbus_system_bus and Qdbus_session_bus, respectively.
24557 (Vdbus_intern_symbols): Remove.
24558 (Vdbus_registered_functions_table): New hash table.
24559 (XD_SYMBOL_INTERN_SYMBOL): Remove.
24560 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
24561 Rewrite in order to manage registered functions by hash table
24562 Vdbus_registered_functions_table.
24563
245642007-12-03 Jan Djärv <jan.h.d@swipnet.se>
24565
24566 * xterm.c: Update URL to Window Manager Specification in comment.
24567
245682007-12-02 Michael Albinus <michael.albinus@gmx.de>
24569
24570 * config.in (HAVE_DBUS): Add.
24571
24572 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
24573 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
24574 (obj): Add $(DBUS_OBJ).
24575 (LIBES): Add $(DBUS_LIBS).
24576 (dbusbind.o): New target.
24577
24578 * dbusbind.c: New file.
24579
24580 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
24581
24582 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
24583 (Qdbus_event): New Lisp symbol.
24584 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
24585 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 24586 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
24587
24588 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
24589
245902007-12-01 Richard Stallman <rms@gnu.org>
24591
24592 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
24593
245942007-11-30 Jason Rumney <jasonr@gnu.org>
24595
24596 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
24597 (w32con_reset_terminal_modes): Clear screen buffer.
24598 (w32_face_attributes): Don't use color indexes that are out of range.
24599 Only reverse the default colors.
24600
24601 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
24602 WINDOWSNT.
24603
24604 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
24605
246062007-11-29 Jason Rumney <jasonr@gnu.org>
24607
24608 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
24609 (w32_face_attributes): Use Vtty_defined_color_alist to determine
24610 if the terminal colors are initialized.
24611 (unspecified_fg, unspecified_bg): Remove unused declarations.
24612
246132007-11-29 Andreas Schwab <schwab@suse.de>
24614
24615 * keyboard.c (apply_modifiers): Fix typo.
24616
246172007-11-29 Richard Stallman <rms@gnu.org>
24618
24619 * keymap.c (Fcurrent_local_map): Doc fix.
24620
246212007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
24622
24623 * s/gnu-kfreebsd.h: New file.
24624
246252007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
24626
24627 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
24628 Don't cast redundantly.
24629
24630 * keyboard.c (KEY_TO_CHAR): New macro.
24631 (parse_modifiers, apply_modifiers): Accept integer arguments.
24632 (read_key_sequence): Use them to unify the "shift->unshift" mapping
24633 for chars and symbol keys.
24634 After doing such remapping, apply function-key-map again.
24635
246362007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
24637
24638 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
24639 compiled anymore.
24640
246412007-11-26 Andreas Schwab <schwab@suse.de>
24642
24643 * process.c (list_processes_1): Fix indentation level of the
24644 command column.
24645
246462007-11-23 Andreas Schwab <schwab@suse.de>
24647
24648 * editfns.c (Fformat): Handle %c specially since it requires the
24649 argument to be of type int.
24650
246512007-11-23 Markus Triska <markus.triska@gmx.at>
24652
24653 * emacs.c (main): Call init_editfns before init_process, since
24654 init_process sets Vprocess_connection_type depending on OS release.
24655
246562007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
24657
24658 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
24659 (find_symbol_value): Use do_symval_forwarding.
24660
24661 * data.c (set_internal): Set the value in the `cons-cell' (for
24662 Buffer_Local_values) not only for frame-local variables.
24663
246642007-11-22 Andreas Schwab <schwab@suse.de>
24665
24666 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
24667 values to sprintf.
24668 * keymap.c (Fsingle_key_description): Likewise.
24669 * print.c (print_object): Likewise.
24670
246712007-11-22 Jan Djärv <jan.h.d@swipnet.se>
24672
24673 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
24674 file for image is nil.
24675
246762007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
24677
24678 * term.c: Include stdarg.h.
24679 (fatal): Implement using varargs.
24680 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
24681
246822007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24683
24684 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
24685 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
24686 Update call to buffer_slot_type_mismatch.
24687 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
24688 (buffer_slot_type_mismatch): Update.
24689 * buffer.c (buffer_local_types): Remove.
24690 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
24691 (defvar_per_buffer): Set the type in the buffer_objfwd.
24692
246932007-11-21 Jason Rumney <jasonr@gnu.org>
24694
24695 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
24696 CreateFileMapping returns NULL on failure.
24697
246982007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24699
24700 * search.c (Fset_match_data): Remove the `evaporate' feature.
24701 (unwind_set_match_data): Don't use the `evaporate' feature.
24702
247032007-11-21 Jason Rumney <jasonr@gnu.org>
24704
24705 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
24706
24707 * w32console.c (w32con_write_glyphs): Remove unused variables.
24708
247092007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
24710
24711 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
24712
24713 * s/darwin.h (MULTI_KBOARD): Remove.
24714
24715 * macfns.c (x_create_tip_frame, Fx_create_frame)
24716 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
24717
247182007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
24719
24720 * buffer.c (Fbuffer_local_value): Remove redundant test.
24721 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
24722 than in `current-buffer' to match the comment.
24723 Do the swap using swap_in_global_binding.
24724
24725 * data.c (store_symval_forwarding, set_internal):
24726 * eval.c (specbind): Remove dead code.
24727
24728 * coding.c (detect_coding, Fupdate_coding_systems_internal):
24729 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
24730 Since we do not want to see internal Lisp_*fwd objects here.
24731
247322007-11-18 Jan Djärv <jan.h.d@swipnet.se>
24733
24734 * sysdep.c (init_system_name): Use getaddrinfo if available.
24735
24736 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
24737 (x_scroll_bar_note_movement): start, end, with, height in struct
24738 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
24739
247402007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
24741
24742 * puresize.h (BASE_PURESIZE): Increase to 1190000.
24743
247442007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
24745
24746 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
24747 This undoes Richard's change of 14-Oct-2002.
24748
24749 * alloc.c (allocate_other_vector):
24750 * lisp.h (allocate_other_vector): Remove.
24751
24752 * window.c (struct save_window_data): Move non-lisp data to the end
24753 and make it `int' rather than Lisp_Object.
24754 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
24755 Done wrap/unwrap integer values.
24756 (Fset_window_configuration, compare_window_configurations):
24757 Update use of fields to their new types.
24758
24759 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
24760 Turn integer fields into `int'. Merge x_window_low and x_window_high.
24761 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
24762 (SET_SCROLL_BAR_X_WINDOW): Remove.
24763 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
24764 Access the new x_window field directly.
24765 * xterm.c (x_scroll_bar_create): Use a pseudovector.
24766 Don't wrap/unwrap integers into Lisp_Objects.
24767 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
24768 (x_scroll_bar_report_motion):
24769 Don't wrap/unwrap integers into Lisp_Objects.
24770 (x_term_init): Use SDATA.
24771 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
24772 (x_scroll_bar_set_handle, x_scroll_bar_remove)
24773 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
24774 (x_scroll_bar_report_motion, x_scroll_bar_clear):
24775 * xfns.c (x_set_background_color):
24776 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
24777 Access the new x_window field directly.
24778
24779 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
24780 (allocate_pseudovector): Make non-static.
24781
24782 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
24783 (allocate_pseudovector): Declare.
24784 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
24785
247862007-11-15 Andreas Schwab <schwab@suse.de>
24787
24788 * editfns.c (Fformat): Correctly format EMACS_INT values.
24789 Also take precision into account when formatting an integer.
24790
24791 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
24792
247932007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
24794
24795 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
24796 (syms_of_keyboard): Defsubr it.
24797
24798 * data.c (swap_in_global_binding): Fix longstanding bug where
24799 store_symval_forwarding was not called with the right second argument,
24800 thus causing objfwd-ing from being dropped.
24801
248022007-11-14 Juanma Barranquero <lekktu@gmail.com>
24803
24804 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
24805 (Fx_display_pixel_height, Fx_display_planes)
24806 (Fx_display_color_cells, Fx_server_max_request_size)
24807 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24808 (Fx_display_visual_class, Fx_display_save_under):
24809 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
24810 (Fx_display_pixel_height, Fx_display_planes)
24811 (Fx_display_color_cells, Fx_server_max_request_size)
24812 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
24813 (Fx_display_mm_height, Fx_display_mm_width)
24814 (Fx_display_backing_store, Fx_display_visual_class)
24815 (Fw32_select_font, Fx_display_save_under):
24816 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
24817 (Fx_display_pixel_height, Fx_display_planes)
24818 (Fx_display_color_cells, Fx_server_max_request_size)
24819 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24820 (Fx_display_save_under): Fix typos in docstrings.
24821
248222007-11-14 Juanma Barranquero <lekktu@gmail.com>
24823
24824 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
24825 corresponding to deleted entries; they are an implementation detail.
24826 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
24827 Remove variables.
24828 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
24829 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
24830 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
24831 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
24832 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
24833 (Fw32_define_rgb_color, Fw32_load_color_file)
24834 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
24835 Fix typos in docstrings.
24836 (Fx_server_version): Reflow docstring.
24837 (Fw32_shell_execute): Doc fixes.
24838
248392007-11-13 Juanma Barranquero <lekktu@gmail.com>
24840
24841 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
24842 if w32_parse_hot_key returned nil.
24843
248442007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
24845
24846 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
24847
248482007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 24849
aac0c6e3
MR
24850 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
24851
24852 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
24853
24854 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
24855 Remove W32_SCROLL_BAR_CLICK_EVENT.
24856
24857 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
24858 Add MULTIMEDIA_KEY_EVENT.
24859
24860 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
24861 (lispy_multimedia_keys) [WINDOWSNT]: New array.
24862 (make_lispy_event) [WINDOWSNT]: Use it to translate
24863 MULTIMEDIA_KEY_EVENT.
24864
24865 * w32term.h (WM_APPCOMMAND): Define if not already.
24866 (GET_APPCOMMAND_LPARAM): Likewise.
24867
24868 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
24869 WM_APPCOMMAND.
24870
24871 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
24872 (syms_of_w32fns): Export and initialize it.
24873 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
24874
248752007-11-09 Chong Yidong <cyd@stupidchicken.com>
24876
24877 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
24878 twice.
24879
24880 * xdisp.c (handle_face_prop): Fix last change.
24881
248822007-11-09 Richard Stallman <rms@gnu.org>
24883
24884 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
24885 not just for after-strings and before-strings.
24886 Call face_for_overlay_string and pass the overlay to it.
24887 (handle_display_prop): Determine whether property came from an overlay.
24888 Pass OVERLAY arg to handle_single_display_spec.
24889 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
24890 (load_overlay_strings): Fill in it->string_overlays.
24891 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
24892
24893 * xfaces.c (face_for_overlay_string): Function renamed from
24894 face_at_buffer_position_no_overlays, and add arg OVERLAY.
24895
24896 * dispextern.h (struct it): New elt string_overlays.
24897 New elt from_overlay, also in stack.
24898 Rearrange a few elements.
24899 (face_for_overlay_string): Decl renamed from
24900 face_at_buffer_position_no_overlays, and add argument.
24901
249022007-11-09 Richard Stallman <rms@gnu.org>
24903
24904 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
24905 to get the base face for an overlay string.
24906
24907 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
24908
24909 * xfaces.c (face_at_buffer_position_no_overlays): New function.
24910
24911 * xdisp.c (handle_stop): Move some code out of loop.
24912
249132007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24914
24915 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
24916 Fix conversion from Lisp object to ATSUFontID.
24917
249182007-11-09 Jason Rumney <jasonr@gnu.org>
24919
24920 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
24921
249222007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24923
24924 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
24925 Don't assume regions are aligned to page boundary.
24926 (print_load_command_name): Add LC_UUID if defined.
24927
249282007-11-09 Richard Stallman <rms@gnu.org>
24929
24930 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
24931
249322007-11-07 Jason Rumney <jasonr@gnu.org>
24933
24934 * s/windows95.h: Remove.
24935
249362007-11-06 Jan Djärv <jan.h.d@swipnet.se>
24937
24938 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
24939 abort with a message on unhandled store_type values.
24940
249412007-11-01 Jan Djärv <jan.h.d@swipnet.se>
24942
24943 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
24944 Remove HAVE_X11R5 and HAVE_X11R4.
24945
249462007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24947
24948 * Makefile.in: Remove references to sunfns.c and sunfns.o.
24949
249502007-11-01 Johan Bockgård <bojohan@gnu.org>
24951
24952 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
24953 Don't set s->stippled_p here, since it has already been set by
24954 x_set_glyph_string_gc from x_draw_glyph_string.
24955
249562007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24957
24958 * sunfns.c: Remove file.
24959
24960 * m/sun386.h:
24961 * m/sun2.h:
24962 * m/sparc.h: Remove Sun windows code.
24963
249642007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
24965
24966 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
24967 (init_keyboard): Set current_kboard's window-system to nil.
24968 (tty_read_avail_input): Typo.
24969 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
24970
249712007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
24972
24973 * s/usg5-4.h:
24974 * s/usg5-3.h:
24975 * s/ptx.h:
24976 * m/is386.h:
24977 * m/ibmps2-aix.h:
24978 * Makefile.in: Remove all mentions of X10.
24979
24980 * dispnew.c (syms_of_display): Don't mention version 10.
24981
249822007-10-28 Juanma Barranquero <lekktu@gmail.com>
24983
24984 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
24985 ($(BLD)/abbrev.$(O)): Remove.
24986
249872007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
24988
24989 Rewrite abbrev.c in Elisp.
24990 * image.c (Qcount): Don't declare as extern.
24991 (syms_of_image): Initialize and staticpro `Qcount'.
24992 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
24993 * emacs.c (main): Don't call syms_of_abbrev.
24994 * Makefile.in (obj): Remove abbrev.o.
24995 (abbrev.o): Remove.
24996 * abbrev.c: Remove.
24997
249982007-10-26 Martin Rudalics <rudalics@gmx.at>
24999
25000 * window.c (window_min_size_2): Don't count header-line.
25001
250022007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
25003
25004 * frame.h (struct frame): Move all bit fields after the first bit
25005 field to take advantage of the available space. Group all the
25006 chars together to reduce wasted space due to padding.
25007
250082007-10-26 Juanma Barranquero <lekktu@gmail.com>
25009
25010 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
25011
25012 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
25013 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
25014 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
25015 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
25016 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
25017 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
25018 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
25019 (last_marked, mark_object_loop_halt): Make static.
25020
25021 * frame.c (syms_of_frame) <delete-frame-functions>:
25022 Fix typo in docstring.
25023
250242007-10-25 Juanma Barranquero <lekktu@gmail.com>
25025
25026 * w32.c (init_environment): Fix tiny memory leak.
25027 (w32_get_resource): Remove unused variable `ok'.
25028
250292007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
25030
25031 Make `window-system' into a keyboard-local variable (rather than
25032 frame-local as done originally by multi-tty).
25033
25034 * keyboard.h (struct kboard): Add Vwindow_system.
25035 * keyboard.c (init_kboard): Set a default for Vwindow_system.
25036 (mark_kboards): Mark Vwindow_system.
25037
25038 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
25039 (init_display): Don't set the obsolete `window-system' frame-param.
25040
25041 * xterm.c (x_term_init):
25042 * w32term.c (w32_create_terminal):
25043 * term.c (init_tty): Set Vwindow_system.
25044 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
25045 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
25046
25047 * xfns.c (Fx_create_frame, x_create_tip_frame):
25048 * w32fns.c (Fx_create_frame, x_create_tip_frame):
25049 * macfns.c (Fx_create_frame):
25050 Don't set the obsolete `window-system' frame-param.
25051
25052 * frame.h (Qwindow_system): Remove.
25053 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
25054 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
25055
250562007-10-24 Richard Stallman <rms@gnu.org>
25057
25058 * frame.c (x_figure_window_size): For fullscreen case,
25059 set USPosition | PPosition without clobbering rest of window_prompting.
25060
25061 * keyboard.c (Fcurrent_idle_time): Doc fix.
25062
25063 * print.c (Fwith_output_to_temp_buffer): Doc fix.
25064
250652007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
25066
25067 * process.c (unwind_request_sigio): Only define if __ultrix__.
25068
25069 * callproc.c (child_setup): Remove spurious *.
25070
25071 * lisp.h (Fget_text_property): Declare.
25072 (have_menus_p): Declare it here rather than in sys-dep header files.
25073 * macterm.h (have_menus_p):
25074 * msdos.h (have_menus_p):
25075 * xterm.h (have_menus_p): Remove.
25076
25077 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
25078 (Fmake_variable_frame_local): Just check the variable's const-ness
25079 rather than checking nil or t.
25080
250812007-10-22 Jason Rumney <jasonr@gnu.org>
25082
25083 * w32fns.c: Include math.h.
25084 (w32_abort): Declaration moved to nt/config.nt.
25085
25086 * s/ms-w32.h (HAVE_STDLIB_H): Define.
25087 (abort): Redefinition moved to nt/config.nt.
25088
25089 * m/windowsnt.h: Remove.
25090
250912007-10-22 Juanma Barranquero <lekktu@gmail.com>
25092
25093 * emacs.c (Fdump_emacs): Fix typo in message.
25094 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
25095 <installation-directory>: Reflow docstring.
25096
250972007-10-22 Juri Linkov <juri@jurta.org>
25098
25099 * minibuf.c: Allow minibuffer default to be a list of default values.
25100 With empty input use the first element of this list as returned default.
25101 (string_to_object)
25102 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
25103 (read_minibuf): If defalt is cons, set histstring to its car.
25104 (Fread_string): If default_value is cons, set val to its car.
25105 (Fread_buffer): If def is cons, use its car.
25106 (Fcompleting_read): If defalt is cons, set val to its car.
25107
251082007-10-21 Michael Albinus <michael.albinus@gmx.de>
25109
25110 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
25111
251122007-10-20 Juanma Barranquero <lekktu@gmail.com>
25113
25114 * doc.c (Fdocumentation): Check for advice in all cases.
25115
251162007-10-19 Chong Yidong <cyd@stupidchicken.com>
25117
25118 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
25119
251202007-10-19 Richard Stallman <rms@gnu.org>
25121
25122 * doc.c (Fdocumentation): Check for and handle an advised function.
25123
251242007-10-19 Juanma Barranquero <lekktu@gmail.com>
25125
25126 * process.c (Fset_process_filter): Doc fix.
25127
251282007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
25129
25130 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
25131 which caused key-translation-map to applied repeatedly (thus breaking
25132 double-mode).
25133
251342007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
25135
25136 * xselect.c (x_own_selection, x_handle_selection_clear)
25137 (x_clear_frame_selections):
25138 * w32menu.c (list_of_panes, list_of_items):
25139 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
25140 * textprop.c (validate_plist, interval_has_all_properties)
25141 (interval_has_some_properties, interval_has_some_properties_list)
25142 (add_properties, text_property_list):
25143 * process.c (Fget_buffer_process, list_processes_1, status_notify):
25144 * minibuf.c (Fassoc_string):
25145 * macselect.c (x_own_selection, x_clear_frame_selections)
25146 (Fx_disown_selection_internal):
25147 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
25148 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
25149
251502007-10-17 Chong Yidong <cyd@stupidchicken.com>
25151
25152 * process.c: Link to libs for calling res_init() if available.
25153 (Fmake_network_process): Call res_init() before getaddrinfo or
25154 gethostbyname, if possible.
25155
251562007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
25157
25158 * lread.c (read1): Set pvectype for char_tables.
25159
25160 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
25161 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
25162 Add type checks.
25163 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
25164
25165 * alloc.c (free_misc): Use XMISCTYPE.
25166 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
25167
251682007-10-17 Glenn Morris <rgm@gnu.org>
25169
25170 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
25171 (syms_of_minibuf): Add Qcompletion_ignore_case.
25172 * dired.c (Qcompletion_ignore_case): Change to external.
25173 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
25174 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
25175 (Fread_file_name): Use it rather than intern'ing.
25176
25177 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
25178 (Fread_coding_system): Ignore case of user input.
25179
251802007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25181
25182 * xdisp.c (handle_display_prop): Ignore display specs after
25183 replacing one when string text is being replaced.
25184 (handle_single_display_spec): Pretend as if characters with display
25185 property haven't been consumed only when buffer text is being replaced.
25186
251872007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
25188
25189 * xfns.c (Fx_create_frame, Fx_display_list):
25190 * window.c (window_fixed_size_p, enlarge_window)
25191 (shrink_window_lowest_first):
25192 * macterm.c (init_font_name_table):
25193 * macfns.c (Fx_create_frame, Fx_display_list):
25194 * lread.c (close_load_descs):
25195 * keyboard.c (read_char_x_menu_prompt):
25196 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
25197 * coding.c (code_convert_region_unwind): Test the type of an object
25198 rather than just !NILP before extracting data from it.
25199
25200 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
25201
25202 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
25203 (XMISCANY): New macro.
25204 (XMISCTYPE): Use it.
25205 (struct Lisp_Misc_Any): New type.
25206 (union Lisp_Misc): Use it.
25207 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
25208 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
25209 (find_symbol_value, set_internal, default_value, Fset_default)
25210 (Fmake_variable_buffer_local, Fmake_local_variable)
25211 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
25212 (Flocal_variable_if_set_p, Fvariable_binding_locus):
25213 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
25214 * alloc.c (allocate_buffer): Set the size and tag.
25215 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
25216 Use XMISCANY.
25217 (die): Follow the GNU convention for error messages.
25218 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
25219 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
25220 tag any more.
25221 (set_buffer_internal_1):
25222 * frame.c (store_frame_param):
25223 * eval.c (specbind):
25224 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
25225
25226 * doc.c (Fsnarf_documentation): Simplify.
25227
252282007-10-14 Juanma Barranquero <lekktu@gmail.com>
25229
25230 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
25231 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
25232
252332007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
25234
25235 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
25236
252372007-10-14 Juanma Barranquero <lekktu@gmail.com>
25238
25239 * eval.c (do_autoload): Don't save autoloads.
25240
25241 * data.c (Ffset): Save autoload of the function being set.
25242
252432007-10-07 John Paul Wallington <jpw@pobox.com>
25244
25245 * xfns.c (x_create_tip_frame): Set the `display-type' frame
25246 parameter before setting up faces.
25247
252482007-10-13 Eli Zaretskii <eliz@gnu.org>
25249
25250 * ccl.c (Fregister_code_conversion_map):
25251 * keyboard.c (append_tool_bar_item): Reformat last change.
25252
25253 * lisp.h (eabs): Rename from `abs'. All callers changed.
25254
252552007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
25256
25257 * buffer.c (add_overlay_mod_hooklist):
25258 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
25259 * fontset.c (make_fontset):
25260 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
25261 (append_tool_bar_item):
25262 * macmenu.c (grow_menu_items):
25263 * w32menu.c (grow_menu_items):
25264 * xmenu.c (grow_menu_items): Use larger_vector.
25265
252662007-10-13 Eli Zaretskii <eliz@gnu.org>
25267
25268 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
25269 selected frame'' on MSDOS).
25270
252712007-10-12 Martin Rudalics <rudalics@gmx.at>
25272
25273 * frame.c (Qexplicit_name): New variable.
25274 (x_report_frame_params): Report it in parameter alist.
25275 (syms_of_frame): Intern and staticpro it.
25276
252772007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
25278
25279 * macfns.c (x_create_tip_frame): Set terminal for frame.
25280
252812007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
25282
25283 * frame.c (Qenvironment): Remove.
25284 (syms_of_frame) <Qenvironment>: Don't initialize.
25285 (Fdelete_frame): Don't treat the `environment' param specially.
25286 * frame.h (Qenvironment): Don't declare.
25287 * callproc.c (set_initial_environment): Don't set unused frame param.
25288
25289 * frame.c (Fframe_with_environment): Remove.
25290 (syms_of_frame) <Sframe_with_environment>: Don't declare.
25291
25292 * lisp.h (Fframe_with_environment): Don't declare.
25293
252942007-10-10 Juanma Barranquero <lekktu@gmail.com>
25295
25296 * indent.c (indent_tabs_mode, last_known_column)
25297 (last_known_column_modified): Make static.
25298 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
25299
253002007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
25301
25302 * puresize.h (BASE_PURESIZE): Increase to 1170000.
25303
253042007-10-09 Jason Rumney <jasonr@gnu.org>
25305
25306 * w32term.c (x_set_window_size): Disable code that attempts to tell
25307 Lisp code about a size change before it actually happens.
25308
253092007-10-09 Richard Stallman <rms@gnu.org>
25310
25311 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
25312 return HANDLED_RETURN.
25313
253142007-10-08 Martin Rudalics <rudalics@gmx.at>
25315
25316 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
25317 when there's an unread command event.
25318
25319 * frame.c (focus_follows_mouse): Move here from frame.el to allow
25320 window autoselection act appropriately when leaving selected frame.
25321 (syms_of_frame): Initialize focus_follows_mouse.
25322 * frame.h (focus_follows_mouse): Extern it.
25323 * macterm.c (XTread_socket): When focus_follows_mouse is nil
25324 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
25325 * msdos.c (dos_rawgetc): Likewise.
25326 * w32term.c (w32_read_socket): Likewise.
25327 * xterm.c (handle_one_xevent): Likewise.
25328 * xdisp.c (syms_of_xdisp): In doc-string of
25329 mouse-autoselect-window mention focus-follows-mouse.
25330
253312007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25332
25333 * macterm.c (mac_load_query_font): Fix missing return value.
25334 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
25335 Add BLOCK_INPUT.
25336
253372007-10-08 Richard Stallman <rms@gnu.org>
25338
25339 * xdisp.c (get_window_cursor_type): Implement documented behavior
25340 for cursor-in-non-selected-windows = t.
25341
253422007-10-08 Jason Rumney <jasonr@gnu.org>
25343
25344 * w32.c (w32_get_resource): Always close registry keys.
25345
253462007-10-08 Jason Rumney <jasonr@gnu.org>
25347
25348 * makefile.w32-in (LIBS): Add COMCTL32.
25349
25350 * w32fns.c (globals_of_w32fns): Init common controls.
25351
253522007-10-08 Richard Stallman <rms@gnu.org>
25353
25354 * image.c (our_memory_buffer): Rename from omfib_buffer.
25355
253562007-10-08 Richard Stallman <rms@gnu.org>
25357
25358 * buffer.c (Foverlays_at): Doc fix.
25359
253602007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
25361
25362 * fns.c (Fplist_put): Preserve uneven tail data.
25363
253642007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
25365
25366 * termhooks.h (enum event_kind): Remove trailing comma.
25367
25368 * frame.h (enum): Remove trailing comma.
25369
253702007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
25371
25372 * w32proc.c (delete_child): Don't terminate threads of zombies.
25373
253742007-10-08 Martin Rudalics <rudalics@gmx.at>
25375
25376 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
25377
25378 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
25379 last-repeatable-command.
25380 (init_kboard): Initialize Vlast_repeatable_command.
25381 (command_loop_1): Set it to real_this_command unless that was
25382 bound to an input event.
25383 (mark_kboards): Mark it.
25384
253852007-10-08 Richard Stallman <rms@gnu.org>
25386
25387 * eval.c (condition-case): Doc fix.
25388
253892007-10-08 Masatake YAMATO <jet@gyve.org>
25390
25391 * xfaces.c (tty_supports_face_attributes_p): Fix code
25392 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
25393 was copied and not edited.
25394
253952007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
25396
25397 Add new `input-decode-map' keymap and use it for terminal
25398 escape sequences.
25399 * keyboard.h (struct kboard): Add Vinput_decode_map.
25400 Remove Vlocal_key_translation_map.
25401 * keyboard.c (read_key_sequence): Add support for input-decode-map.
25402 (init_kboard): Init input-decode-map.
25403 Replace local-key-translation-map back with key-translation-map.
25404 (syms_of_keyboard): Declare input-decode-map.
25405 Remove local-key-translation-map. Update docstrings.
25406 (mark_kboards): Mark Vinput_decode_map.
25407 Don't mark Vlocal_key_translation_map.
25408 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
25409 Replace local-key-translation-map back with key-translation-map.
25410 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
25411 Bind in input-decode-map rather than function-key-map.
25412
25413 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
25414 This was made redundant by the previous introduction of XSETPVECTYPE.
25415
254162007-10-09 Richard Stallman <rms@gnu.org>
25417
25418 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
25419
254202007-09-29 Richard Stallman <rms@gnu.org>
25421
25422 * eval.c (internal_condition_case_2, internal_condition_case_1)
25423 (internal_condition_case): Reenable abort if x_catching_errors ()
25424 to see if that really happens and why.
25425
254262007-10-06 Andreas Schwab <schwab@suse.de>
25427
25428 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
25429
254302007-10-04 Juanma Barranquero <lekktu@gmail.com>
25431
25432 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
25433
254342007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
25435
25436 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
25437
254382007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
25439
25440 * window.h (struct window):
25441 * window.c (struct save_window_data, struct saved_window):
25442 * termhooks.h (struct terminal):
25443 * process.h (struct Lisp_Process):
25444 * frame.h (struct frame):
25445 * buffer.h (struct buffer):
25446 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
25447 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
25448 The size field of (pseudo)vectors is now unsigned.
25449 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
25450
25451 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
25452 Turn `count' into an integer.
25453
25454 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
25455 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
25456 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
25457 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
25458 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
25459
25460 * alloc.c (allocate_pseudovector): New fun.
25461 (ALLOCATE_PSEUDOVECTOR): New macro.
25462 (allocate_window, allocate_terminal, allocate_frame)
25463 (allocate_process): Use it.
25464 (mark_vectorlike): New function.
25465 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
25466 (mark_terminals): Use it.
25467 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
25468 (Fmake_byte_code): Use XSETPVECTYPE.
25469
25470 * frame.c (Fframe_parameters): Minor simplification.
25471
25472 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
25473
25474 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
25475
25476 * buffer.c (Fget_buffer_create, init_buffer_once):
25477 * lread.c (defsubr):
25478 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
25479
25480 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
25481 defined differently in the m/*.h files.
25482 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
25483 (XSETPVECTYPE): New macro.
25484 (XSETPSEUDOVECTOR): Use it.
25485
25486 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
25487 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
25488
25489 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
25490 * lread.c (defvar_per_buffer):
25491 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
25492
25493 * window.c (candidate_window_p): Only consider as visible frames that
25494 are on the same terminal.
25495
25496 * m/ibms390x.h (MARKBIT): Remove unused macro.
25497
254982007-10-01 Juanma Barranquero <lekktu@gmail.com>
25499
25500 * lread.c (Fload): Fix typo in docstring.
25501
255022007-10-01 Michaël Cadilhac <michael@cadilhac.name>
25503
25504 * floatfns.c (Fexpt): Manually check for overflows, so that a power
25505 of a non-zero value can't yield zero.
25506
255072007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
25508
25509 * term.c (term_clear_mouse_face, term_mouse_highlight)
25510 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
25511
25512 * print.c (safe_debug_print): Use XHASH.
25513
25514 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
25515 Lisp elements such as tags.
25516 (XHASH): New macro.
25517 (EQ): Use it.
25518 (SREF, SSET, STRING_COPYIN): Use SDATA.
25519 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
25520
25521 * alloc.c (mark_terminal): Remove left-over declaration.
25522 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
25523 (allocate_vectorlike): Remove type argument. Adjust callers.
25524 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
25525 Only handle the one remaining MEM_TYPE_VECTORLIKE.
25526
25527 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
25528 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
25529 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
25530 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
25531 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
25532 Use them.
25533
25534 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
25535 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
25536 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
25537
255382007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
25539
25540 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
25541 loaded by default.
25542
255432007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
25544
25545 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
25546 on this tty.
25547 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
25548
25549 * term.c (mouse_face_window): Rename from Qmouse_face_window.
25550 Update all users.
25551 (handle_one_term_event): Use Gpm_DrawPointer.
25552 (Fgpm_mouse_start): Rename from Fterm_open_connection.
25553 Signal errors instead of returning nil. Always return nil.
25554 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
25555 Make it a noop if gpm-mouse was not activated.
25556 (syms_of_term): Update names.
25557
255582007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
25559
25560 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
25561 (init_sys_modes): Check that gpm_tty is the current tty.
25562
25563 * alloc.c (allocate_terminal): Set the vector size to only count the
25564 lisp fields. Initialize those to nil.
25565 (mark_object): Don't treat terminals specially.
25566 (mark_terminal): Remove.
25567 (mark_terminals): Use mark_object instead.
25568
25569 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
25570 the GC to the beginning.
25571
25572 * indent.h:
25573 * indent.c: Use EMACS_INT for ints coming from Elisp data.
25574
25575 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
25576
255772007-09-25 Jason Rumney <jasonr@gnu.org>
25578
25579 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
25580
25581 * w32console.c (create_w32cons_output): Remove.
25582
25583 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
25584
25585 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
25586 (reset_sys_modes): Use reset_terminal_modes_hook.
25587
255882007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
25589
25590 * eval.c (do_autoload): Don't output any message.
25591
255922007-09-24 Juri Linkov <juri@jurta.org>
25593
25594 * emacs.c (standard_args): Change priority of "--no-splash"
25595 from 40 to 3. Add "--no-desktop" with the same priority.
25596
255972007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
25598
25599 * alloc.c (gc_sweep): Check cons cell mark bits word by word
25600 and optimize the case where they are all 1.
25601
256022007-09-23 Johannes Weiner <hannes@saeurebad.de>
25603
25604 * lisp.h (abs): Define if not defined.
25605 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
25606 Don't define `abs', since it's defined in lisp.h.
25607
256082007-09-22 Eli Zaretskii <eliz@gnu.org>
25609
25610 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
25611 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
25612 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
25613 (init_tty): Use DEV_TTY instead of "/dev/tty".
25614 [WINDOWSNT]: No need to protect from NAME arg being null.
25615
256162007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
25617
25618 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
25619 up the tty state.
25620
256212007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25622
25623 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
25624 (gpm_tty): Change its type.
25625 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
25626 (gpm_tty): Change its type and initialize it.
25627 (Fterm_open_connection): Check the frame is indeed a tty.
25628 Use the new gpm_tty.
25629 (Fterm_close_connection): Use the new gpm_tty.
25630 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
25631 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
25632
256332007-09-21 Juanma Barranquero <lekktu@gmail.com>
25634
25635 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
25636 underline_color, to draw strike-through.
25637
256382007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25639
25640 * lisp.h (allocate_terminal): Declare.
25641
25642 * window.c (candidate_window_p): Consider frames that are being placed
25643 by the user as somewhere between visible and iconified.
25644 (window_loop): Prefer windows on the current frame.
25645 (Fselect_window): Move the use of select-frame to the beginning so we
25646 can just delegate all the work (it'll call us back anyway).
25647
25648 * frame.c (Qdisplay_environment_variable):
25649 * frame.h (Qdisplay_environment_variable): Delete.
25650
25651 * .gdbinit (xbacktrace): Print the arg's address rather than the value
25652 of the first arg, since that value may be a union.
25653
25654 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
25655 parameter rather than Qdisplay_environment_variable. If all else
25656 fails, look for DISPLAY in initial-environment.
25657
256582007-09-21 Glenn Morris <rgm@gnu.org>
25659
25660 * Makefile.in (emacstool): Remove target.
25661 (lisp, shortlisp): Remove termdev.elc.
25662
256632007-09-21 Markus Triska <markus.triska@gmx.at>
25664
25665 * xterm.c (x_delete_display): Compile session management conditionally.
25666
256672007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
25668
25669 * callproc.c (getenv_internal_1): New function.
25670 (getenv_internal): Use it.
25671 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
25672
25673 * terminal.c (get_terminal): Don't accept ints to represent terminals.
25674 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
25675 (Fset_terminal_parameter): Work with dead terminals as well.
25676 (Fmodify_terminal_parameters): Remove.
25677
25678 * terminal.c (get_terminal): Handle terminals.
25679 Make sure the terminal returned is live.
25680 (create_terminal): Use allocate_terminal.
25681 (mark_terminals): Move to alloc.c.
25682 (delete_terminal): Use terminal->name as liveness status.
25683 NULL out fields after freeing their contents.
25684 Don't deallocate the object.
25685 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
25686 rather than an int.
25687 (Fterminal_live_p): Accept non-integer arguments.
25688 (Fterminal_list): Return terminal objects rather than an ints.
25689
25690 * alloc.c (enum mem_type): New member for `terminal' objects.
25691 (allocate_terminal): New function.
25692 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
25693 Handle terminals.
25694 (mark_terminal): New fun.
25695 (mark_terminals): Move from terminal.c.
25696
25697 * term.c (get_tty_terminal): Don't treat output_initial specially.
25698 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
25699 (delete_tty): Use terminal->name as liveness status.
25700
25701 * termhooks.h (struct terminal): Make it into a pseudovector.
25702 Remove `deleted' replaced by checking `name's nullness.
25703
25704 * print.c (print_object): Handle terminals.
25705
25706 * lisp.h (enum pvec_type): New `terminal' pseudovector.
25707 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
25708
25709 * frame.c (make_terminal_frame):
25710 * keyboard.c (tty_read_avail_input):
25711 * w32term.c (x_delete_terminal):
25712 * xfns.c (Fx_create_frame, x_create_tip_frame):
25713 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
25714
257152007-09-20 Glenn Morris <rgm@gnu.org>
25716
25717 * process.c (Fmake_network_process): Doc fix.
25718
257192007-09-19 Jason Rumney <jasonr@gnu.org>
25720
25721 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
25722
257232007-09-19 Michaël Cadilhac <michael@cadilhac.name>
25724
25725 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
25726 Fix a C warning regarding variable constness.
25727
25728 * xterm.c (handle_one_xevent): Fix a C warning.
25729
257302007-09-18 Jason Rumney <jasonr@gnu.org>
25731
25732 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
25733
257342007-09-17 Jan Djärv <jan.h.d@swipnet.se>
25735
25736 * gtkutil.c (gdpy_def): New variable.
25737 (xg_initialize): Initialize gdpy_def.
25738 (xg_display_close): If no other display exists, set gdpy_def to a
25739 new connection.
25740
257412007-09-16 Jan Djärv <jan.h.d@swipnet.se>
25742
25743 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
25744 when we have no file name for the icon.
25745 (xg_tool_bar_expose_callback): Remove.
25746 (xg_create_tool_bar): Don't connect expose signal to
25747 xg_tool_bar_expose_callback.
25748 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
25749
257502007-09-16 Andreas Schwab <schwab@suse.de>
25751
25752 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
25753 values instead of zapping them.
25754
257552007-09-14 Glenn Morris <rgm@gnu.org>
25756
25757 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
25758 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
25759 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
25760 scope and rename to omfib_buffer for clarity.
25761 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
25762
257632007-09-14 Kenichi Handa <handa@m17n.org>
25764
25765 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
25766
257672007-09-13 Jason Rumney <jasonr@gnu.org>
25768
25769 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
25770
25771 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
25772
25773 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
25774 (mac_term_init): Call here instead, passing rif.
25775
257762007-09-13 Glenn Morris <rgm@gnu.org>
25777
25778 * s/hpux.h: No longer define `static' as nothing.
25779
257802007-09-13 Johan Bockgård <bojohan@gnu.org>
25781
25782 * callint.c (Fcall_interactively): Remove unused var `fun'.
25783
257842007-09-12 Romain Francoise <romain@orebokech.com>
25785
25786 * window.c (prefer_window_split_horizontally, display_buffer):
25787 Revert 2007-09-08 change.
25788
257892007-09-12 Glenn Morris <rgm@gnu.org>
25790
25791 * alloca.c: Remove file.
25792 * Makefile.in (alloca): Do not undef.
25793 (allocaobj, alloca.o): Remove.
25794 (otherobj): Remove allocaobj.
25795 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
25796 * regex.c (C_ALLOCA): Remove all references and code that was only
25797 used when this was defined.
25798 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
25799 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
25800 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
25801
25802 * Makefile.in (SOURCES, unlock, relock): Delete.
25803
25804 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
25805 (menu_grab_callback): All uses changed.
25806
25807 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
25808 (x_reply_selection_request): All uses changed.
25809
258102007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
25811
25812 * lread.c (load_warn_old_style_backquotes): Change message to look
25813 better when it appears in the middle of byte-compiler messages.
25814
258152007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
25816
25817 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
25818
25819 * xterm.c (x_create_terminal): Add comment.
25820
25821 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
25822
258232007-09-10 Richard Stallman <rms@gnu.org>
25824
25825 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
25826
258272007-09-10 Michaël Cadilhac <michael@cadilhac.name>
25828
25829 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
25830 (DEFUN): Document `intspec', use it instead of `prompt'.
25831
25832 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
25833
25834 * data.c (Finteractive_form): If the interactive specification starts
25835 with a `(', use it as a Lisp form.
25836
25837 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
25838 name and file modes.
25839
25840 * callint.c (Fcall_interactively): Comment fixes.
25841
258422007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
25843
25844 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
25845 and compiled functions.
25846
258472007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
25848
25849 * window.c (prefer_window_split_horizontally): New variable.
25850 (display_buffer): Consider splitting window horizontally depending
25851 on prefer_window_split_horizontally.
25852
258532007-09-08 Eli Zaretskii <eliz@gnu.org>
25854
25855 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
25856
258572007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25858
25859 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
25860
25861 * frame.c (x_set_frame_parameters): Check number is positive before
25862 using XFASTINT.
25863
25864 * window.c (freeze_window_start): Don't presume selected_window holds
25865 a window object.
25866 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
25867
258682007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
25869
25870 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
25871
258722007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25873
25874 * window.c (Vsplit_window_preferred_function): New var.
25875 (Fdisplay_buffer): Use it.
25876 (syms_of_window): Export, and initialize it.
25877
258782007-09-06 Pixel <pixel@mandriva.com> (tiny change)
25879
25880 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
25881
258822007-09-06 Glenn Morris <rgm@gnu.org>
25883
25884 * gtkutil.c (menu_grab_callback) <cnt>:
25885 * xselect.c (x_reply_selection_request) <cnt>: Move static
25886 variable to file scope.
25887
258882007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
25889
25890 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
25891 consistent values of selected_frame and selected_window.
25892
258932007-09-04 Jason Rumney <jasonr@gnu.org>
25894
25895 * w32console.c (initialize_w32_display): Zero unused hooks.
25896
258972007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25898
25899 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
25900 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
25901
259022007-09-04 Jason Rumney <jasonr@gnu.org>
25903
25904 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
25905 in w32console.c. Set up input. Remove XXX comments that have been
25906 confirmed as correct.
25907
25908 * s/ms-w32.h (MULTI_KBOARD): Define.
25909
25910 * w32console.c (one_and_only_w32cons): Remove.
25911 (initialize_w32_display): Take terminal argument.
25912
25913 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
25914 initialize_w32_display.
25915 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
25916
25917 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
25918
25919 * keyboard.c (discard_mouse_events): Discard it.
25920 (make_lispy_event): Translate it to a lisp event.
25921 (lispy_wheel_names): Add wheel-left and right events.
25922 (syms_of_keyboard): Enlarge wheel_syms.
25923
25924 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
25925 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
25926
25927 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
25928
25929 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
25930 from WM_MOUSEHWHEEL.
25931 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
25932
25933 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
25934 terminal.
25935
25936 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
25937 keyboard for the terminal.
25938
259392007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25940
25941 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
25942 (Vresume_tty_hook): Rename from Vresume_tty_functions.
25943 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
25944 and resume-tty-function to resume-tty-hook.
25945 (Fsuspend_tty, Fresume_tty): Use new names.
25946
259472007-09-02 Jan Djärv <jan.h.d@swipnet.se>
25948
25949 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
25950 if it starts with "n:".
25951
259522007-08-31 Jan Djärv <jan.h.d@swipnet.se>
25953
25954 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
25955
259562007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
25957
25958 * frame.h:
25959 * frame.c (Qterm_environment_variable): Remove.
25960 (syms_of_frame): Don't init and staticpro it.
25961
25962 * callproc.c (getenv_internal): Remove special case for $TERM.
25963
25964 * callproc.c (Vinitial_environment): New variable.
25965 (set_initial_environment): Initialize it.
25966 (syms_of_callproc): Declare it.
25967 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
25968 TERM under which a process runs is never related to the TERM in which
25969 Emacs is running.
25970
259712007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25972
25973 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
25974 * s/darwin.h: ... do it here.
25975
259762007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
25977
25978 * lisp.h (set_initial_environment): Rename from set_global_environment.
25979
25980 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
25981 removed by mistake on the multi-tty branch.
25982
25983 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
25984 (Fmodify_frame_parameters): Return a value.
25985
25986 * image.c (png_load): Comment-out var only used in commented-out code.
25987
25988 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
25989 before passing it to mark_object.
25990
25991 * xfaces.c (internal_resolve_face_name): Return a value.
25992 (internal_resolve_face_name, resolve_face_name_error): Comment out.
25993
25994 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
25995 (x_icon): Comment-out var only used in commented-out code.
25996
259972007-08-29 Romain Francoise <romain@orebokech.com>
25998
25999 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
26000 QUIT hasn't been provided.
26001
260022007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
26003
26004 * callproc.c (child_setup, getenv_internal): Use the
26005 display-environment-variable and term-environment-variable frame params.
26006 (set_initial_environment): Initialise Vprocess_environment.
26007
26008 * config.in: Disable multi-keyboard support on a mac.
26009
26010 * frame.c (Qterm_environment_variable)
26011 (Qdisplay_environment_variable): New variables.
26012 (syms_of_frame): Intern and staticpro them.
26013 (Fmake_terminal_frame): Disable output method test.
26014
26015 * frame.h: Declare them here.
26016
26017 * macfns.c (x_set_mouse_color): Get rif from the frame.
26018 (x_set_tool_bar_lines): Don't use updating_frame.
26019 (mac_window): Add 2 new parameters for consistency with other systems.
26020 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
26021 frame parameters following what is done in X11 and w32. Don't use
26022 FRAME_MAC_DISPLAY_INFO.
26023 (Fx_open_connection, start_hourglass): Remove window-system check.
26024 (x_create_tip_frame): Get the keyboard from the terminal.
26025
26026 * macmenu.c: Reorder includes.
26027 (Fx_popup_menu): Use terminal specific mouse_position_hook.
26028
26029 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
26030 terminal parameter.
26031 (x_clear_frame): Add a frame parameter.
26032 (note_mouse_movement): Get rif from the frame.
26033 (mac_term_init): Initialize the terminal.
26034 (mac_initialize): Make static and move terminal initialization ...
26035 (mac_create_terminal): ... to this new function.
26036
26037 * macterm.h (struct mac_display_info): Add terminal.
26038 (mac_initialize): Delete declaration.
26039
26040 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
26041
26042 * sysdep.c: Comment out text after #endif.
26043
26044 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
26045 is defined. Better initialize ttys in windows. Use terminal
26046 specific mouse_position_hook.
26047
26048 * termhooks.h (union display_info): Add mac_display_info.
26049
26050 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
26051 Set the default minibuffer frame, window_system and the rest of the
26052 frame parameters following what is done in X11.
26053
26054 * w32term.c (w32_initialize): Make static.
26055
26056 * xselect.c (x_handle_selection_clear): Only access
26057 terminal->kboard when MULTI_KBOARD is defined.
26058
26059 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
26060 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
26061
260622007-08-29 Jason Rumney <jasonr@gnu.org>
26063
26064 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
26065 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
26066
26067 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
26068 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
26069
26070 * keyboard.c (restore_kboard_configuration): Only define when
26071 MULTI_KBOARD defined.
26072
26073 * makefile.w32-in: Update dependancies from Makefile.in.
26074 (OBJ1): Add terminal.$(O)
26075
26076 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
26077 Don't define function body.
26078 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
26079
26080 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
26081
26082 * w32.c (request_sigio, unrequest_sigio): Remove.
26083
26084 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
26085 (w32con_clear_frame, w32con_clear_end_of_line)
26086 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
26087 (w32con_delete_glyphs, w32con_set_terminal_window)
26088 (scroll_line, w32_sys_ring_bell): Add frame arg.
26089 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
26090 Add terminal arg.
26091 (PICK_FRAME): Remove.
26092 (w32con_write_glyphs): Use frame specific terminal coding.
26093 (one_and_only_w32cons): New global variable.
26094 (initialize_w32_display): Use it for storing hooks.
26095 (create_w32cons_output): New function.
26096
26097 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
26098 arg a frame.
26099
26100 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
26101 Set window_system.
26102 (x_set_tool_bar_lines): Don't use updating_frame.
26103 (Fx_create_frame): Set terminal and ref count.
26104 (Fx_open_connection): Remove window-system check.
26105
26106 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
26107
26108 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
26109 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
26110 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
26111 Add frame arg.
26112 (x_delete_terminal, w32_create_terminal): New functions.
26113 (w32_term_init): Create a terminal.
26114 (w32_initialize): Move terminal specific initialization to
26115 w32_create_terminal.
26116
26117 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
26118 (w32_clear_rect, w32_clear_area): Use background from frame.
26119 (w32_display_info): Add terminal.
26120 (w32_sys_ring_bell, x_delete_display): Declare here.
26121
26122 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
26123
26124 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
26125
261262007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
26127
26128 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
26129 Fix get_named_tty calls for the controlling tty.
26130
261312007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
26132
194d44e7 26133 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
26134
261352007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
26136
26137 * term.c (tty_insert_glyphs): Add missing first parameter.
26138
261392007-08-29 Károly Lőrentey <karoly@lorentey.hu>
26140
26141 * buffer.c (Fbuffer_list, Fbury_buffer):
26142 Take frame->buried_buffer_list into account.
26143
26144 * cm.c (current_tty): New variable, for cmputc().
26145 (cmputc): Use it.
26146 (cmcheckmagic): Add tty parameter, look up terminal streams there.
26147 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
26148 (cmgoto): Add tty parameter. Pass it on to calccost().
26149 Use emacs_tputs() instead of tputs().
26150
26151 * cm.h (emacs_tputs): New macro to set current_tty, and then call
26152 tputs().
26153 (current_tty): New variable, for cmputc().
26154 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
26155
26156 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
26157 (internal_condition_case, internal_condition_case_1)
26158 (internal_condition_case_2): Don't abort when x_catching_errors.
26159
26160 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
26161 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
26162 prevent crashes caused by bogus longjmps in read_char.
26163
26164 * keymap.h (Fset_keymap_parent): Add EXFUN.
26165
26166 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
26167 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
26168 Remove redundant definition.
26169
26170 * macfns.c (x_set_mouse_color, x_make_gc):
26171 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26172
26173 * w32term.c (x_free_frame_resources):
26174 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26175 (w32_initialize): Use the accessor macros for terminal characteristics.
26176
26177 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
26178 Use the accessor macros for terminal characteristics.
26179 * msdos.c (internal_terminal_init): Use the accessor macros for
26180 terminal characteristics.
26181 (ScreenVisualBell, internal_terminal_init):
26182 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26183
26184 * termopts.h (no_redraw_on_reenter): Declare.
26185
26186 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
26187 (mark_terminals, mark_ttys): Declare.
26188 (Fgarbage_collect): Call them.
26189 (mark_object): Mark buried_buffer_list.
26190
26191 * prefix-args.c: Include stdlib.h for exit.
26192
26193 * syssignal.h: Add comment.
26194
26195 * indent.c: Include stdio.h.
26196
26197 * window.h (Vinitial_window_system): Declare.
26198 (Vwindow_system): Delete declaration.
26199
26200 * fontset.c (Finternal_char_font): Use FRAME_RIF.
26201
26202 * image.c (lookup_image): Don't initialize `c' until the xasserts
26203 have been run.
26204
26205 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
26206 FRAME_FOREGROUND_PIXEL.
26207
26208 * print.c (print_preprocess): Don't lose print_depth levels while
26209 iterating.
26210
26211 * widget.c (update_from_various_frame_slots):
26212 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26213
26214 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
26215 frames.
26216 (window_internal_height): Remove bogus make_number call.
26217 (init_window_once): Call make_terminal_frame with two zero parameters.
26218
26219 * fileio.c (Fread_file_name): Update comment.
26220
26221 * callint.c (Fcall_interactively):
26222 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
26223 Make sure it is correctly unwound.
26224
26225 * xsmfns.c (x_session_close): New function.
26226
26227 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
26228 Delete declarations.
26229
26230 * xterm.h: Remove declaration for x_fully_uncatch_errors.
26231 (x_output): Remove background_pixel and foreground_pixel fields.
26232 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
26233 (x_delete_device, x_session_close): Declare.
26234
26235 * lread.c: Include setjmp.h. Update declaration of `read_char'.
26236 (read_filtered_event): Call `read_char' with a local
26237 `wrong_kboard_jmpbuf'.
26238
26239 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
26240 Don't call single_kboard_state. Use FRAME_RIF.
26241
26242 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
26243 systems.
26244
26245 * lisp.h (set_process_environment): Rename to `set_global_environment'.
26246 (Fframe_with_environment, Fset_input_meta_mode)
26247 (Fset_quit_char): EXFUN.
26248 (x_create_device, tty_output, terminal, tty_display_info): Declare.
26249 (init_sys_modes, reset_sys_modes): Update prototypes.
26250 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
26251
26252 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
26253 Vlocal_key_translation_map, and Vkeyboard_translate_table.
26254 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
26255 Delete declarations.
26256 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
26257 (temporarily_switch_to_single_kboard, tty_read_avail_input):
26258 New declarations.
26259
26260 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
26261 already does that during init_display(). Call syms_of_keymap
26262 before syms_of_keyboard. Call `syms_of_terminal'.
26263 Call set_initial_environment, not set_process_environment.
26264 (shut_down_emacs): Call reset_all_sys_modes() instead of
26265 reset_sys_modes().
26266
26267 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
26268 (internal_resolve_face_name, resolve_face_name_error): New functions.
26269 (resolve_face_name): Protect against loops and errors thrown by Fget.
26270 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
26271 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
26272
26273 * scroll.c: Replace CURTTY() with local variables throughout the
26274 file (where applicable).
26275 (calculate_scrolling, calculate_direct_scrolling)
26276 (scrolling_1, scroll_cost): Use the accessor macros for terminal
26277 characteristics.
26278
26279 * keymap.c (Vfunction_key_map): Remove.
26280 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
26281 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
26282 (Vkey_translation_map): Remove.
26283 (syms_of_keymap): Remove DEFVAR for key-translation-map.
26284 (Fdescribe_buffer_bindings)
26285 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
26286 Update for terminal-local key-translation-map.
26287
26288 * Makefile.in (callproc.o): Update dependencies.
26289 (lisp, shortlisp): Add termdev.elc.
26290 (obj): Add terminal.o.
26291 (terminal.o): Add dependencies.
26292 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
26293 (data.o, fns.o): Add termhooks.h dependency.
26294 (SOME_MACHINE_LISP): Add dnd.elc.
26295 (minibuf.o): Fix typo.
26296 Update dependencies.
26297
26298 * data.c (do_symval_forwarding, store_symval_forwarding)
26299 (find_symbol_value): Use the selected frame's keyboard, not
26300 current_kboard.
26301
26302 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
26303 Vwindow_system.
26304
26305 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
26306 Fmenu_bar_open.
26307 (syms_of_xmenu): Update defsubr.
26308 (mouse_position_for_popup, Fx_popup_menu)
26309 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
26310 (set_frame_menubar, free_frame_menubar)
b97439ce 26311 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
26312 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
26313 an X frame.
26314
26315 * xselect.c (x_own_selection): Abort if not an X frame.
26316 (some_frame_on_display): Check if it is an X frame.
26317 (x_handle_selection_clear): Deal with MULTI_KBOARD.
26318
26319 * coding.c: Include frame.h and termhooks.h.
26320 (terminal_coding, keyboard_coding): Delete.
26321 (Fset_terminal_coding_system_internal)
26322 (Fset_keyboard_coding_system_internal)
26323 (Fkeyboard_coding_system)
26324 (Fterminal_coding_system): Add a terminal parameter.
26325 Get terminal_coding from the terminal.
26326 (init_coding_once): Don't call setup_coding_system here.
26327
26328 * dispextern.h (set_scroll_region, turn_off_insert)
26329 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
26330 (tty_clear_end_of_line, tty_setup_colors)
26331 (delete_tty, updating_frame)
26332 (produce_special_glyphs, produce_glyphs, write_glyphs)
26333 (insert_glyphs): Remove.
26334 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
26335 (tty_turn_off_highlight, get_tty_size): Add declaration.
26336 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
26337
26338 * frame.h (enum output_method): Add output_initial.
26339 (struct x_output): Delete.
26340 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
26341 Access foreground_pixel and background_pixel directly from the frame.
26342 (tty_display): Delete.
26343 (struct frame): Add buried_buffer_list, foreground_pixel,
26344 background_pixel and terminal. Delete kboard.
26345 (union output_data): Add tty.
26346 (FRAME_KBOARD): Get the kboard from the terminal.
26347 (FRAME_INITIAL_P): New macro.
26348 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
26349 (Qterm_environment_variable, Qdisplay_environment_variable)
26350 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
26351 New declarations.
26352
26353 * termchar.h (tty_output, tty_display_info): New structures.
26354 (tty_list): Declare.
26355 (FRAME_TTY, CURTTY): New macros.
26356 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
26357 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
26358 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
26359 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
26360
26361 * callproc.c: Include frame.h and termhooks.h, for terminal
26362 parameters.
26363 (add_env): New function.
26364 (child_setup): Use it.
26365 (child_setup, getenv_internal): Handle the new Vprocess_environment.
26366 (getenv_internal): Fix get_terminal_param call.
26367 (Fgetenv_internal, egetenv): Update doc.
26368 (syms_of_callproc): Initialize Vprocess_environment to nil.
26369 Register and initialize them. Remove obsolete defvars. Update doc
26370 strings.
26371 (child_setup): Handle Vlocal_environment_variables.
26372 (getenv_internal): Add terminal parameter.
26373 Handle Vlocal_environment_variables.
26374 (Fgetenv_internal): Add terminal parameter.
26375 (child_setup, getenv_internal, Fgetenv_internal): Store the local
26376 environment in a frame (not terminal) parameter. Update doc strings.
26377 (set_initial_environment): Rename from set_global_environment.
26378 Store Emacs environment in initial frame parameter.
26379
26380 * xdisp.c (redisplay_internal): Update references to
26381 `previous_terminal_frame'.
26382 (display_mode_line, Fformat_mode_line): Replace calls to
26383 `push_frame_kboard' with `push_kboard'.
26384 (get_glyph_string_clip_rects): Add extra parentheses and
26385 braces to prevent compiler warnings.
26386 (calc_pixel_width_or_height): Add xassert to check that the
26387 frame is alive. Don't call `lookup_image' on a termcap frame.
26388 (message2_nolog, message3_nolog, redisplay_internal)
26389 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
26390 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
26391 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
26392 (Fx_display_pixel_width, Fx_display_pixel_height)
26393 (Fx_display_planes, Fx_display_color_cells)
26394 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
26395 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
26396 (Fx_display_backing_store, Fx_display_visual_class)
26397 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
26398 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
26399
26400 * xfns.c (x_set_foreground_color x_set_background_color)
26401 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
26402 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26403 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
26404 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
26405 terminal that is being deleted.
26406 (Fx_create_frame): Use `store_frame_param' to set `window-system'
26407 frame parameter, and make sure it overrides any user-supplied setting.
26408 (Fx_close_connection, Fx_synchronize): Unify argument names with
26409 the rest of the DEFUNs.
26410
26411 * dispnew.c (Fsend_string_to_terminal): Update call to
26412 `get_tty_terminal'.
26413 (Fredraw_frame, Fsend_string_to_terminal)
26414 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
26415 FRAME_TERMCAP_P and FRAME_TTY.
26416 (window_change_signal): Don't believe width/height values that are
26417 impossibly small.
26418 (Vinitial_window_system): Rename from Vwindow_system.
26419 (termscript, Wcm, rif): Delete.
26420
26421 * termhooks.h (struct terminal): New struct containing the
26422 previously global text display hooks and new members NAME,
26423 DELETED and PARAM_ALIST.
26424 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
26425 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
26426 (FRAME_RIF): New macros.
26427 (get_terminal_param, get_device): New declarations.
26428 (termscript): Delete declaration.
26429
26430 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
26431 (XTflash, x_free_frame_resources, x_scroll_bar_create)
26432 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
26433 FRAME_FOREGROUND_PIXEL.
26434 (x_fully_uncatch_errors): Disable definition.
26435 (x_scroll_bar_expose): Fix reference to foreground pixel.
26436 (XTread_socket): Disable loop on all X displays.
26437 (x_delete_terminal): Don't set terminal->deleted and let
26438 delete_terminal delete the frames on the terminal.
26439 (x_delete_display): Doc update to reflect changes in
26440 delete_terminal.
26441 (x_display_info) <terminal>: Move member earlier in the struct.
26442 (deleting_tty): Remove old variable.
26443 (Fsuspend_tty): Call clear_tty_hooks.
26444 (Fresume_tty, init_tty): Call set_tty_hooks.
26445 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
26446 errors on X frames.
26447 (x_catch_errors_unwind): Abort if x_error_message is NULL.
26448 (handle_one_xevent): Initialize `f' to NULL.
26449 (x_delete_terminal, x_create_terminal): New functions.
26450 (XTset_terminal_modes, XTreset_terminal_modes)
26451 (XTread_socket, x_connection_closed, x_term_init)
26452 (x_term_init, x_delete_display): Add terminal parameter.
26453 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
26454 X connections.
26455
26456 * frame.c: Include termchar.h.
26457 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
26458 (Qwindow_system, Qenvironment, Qterm_environment_variable)
26459 (Qdisplay_environment_variable): New vars.
26460 (Fframep): Deal with output_initial.
26461 (Fframe-live-p): Doc fix.
26462 (Fwindow-system): New function.
26463 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
26464 (make_terminal_frame): Don't create frames on a terminal that is
26465 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26466 (store_frame_param): Check for found_for_frame before calling XFRAME.
26467 (Fmake_terminal_frame): Handle NULL tty names correctly.
26468 (syms_of_frame): Enhance doc string of `default-frame-alist'.
26469 (Fdelete_frame): Remove unused variable `count'. Don't allow other
26470 frames to refer to a deleted frame in their 'environment parameter.
26471 (Fframe_with_environment): New function.
26472 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
26473 (get_future_frame_param): New function.
26474 (Fmake_terminal_frame): Use it.
26475 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
26476
26477 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
26478 * sysdep.c (reset_sys_modes): Update for renames.
26479
26480 * keyboard.c (tty_read_avail_input): New function.
26481 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
26482 (syms_of_keyboard): Defsubr them.
26483 (Fset_input_meta_mode, Fset_quit_char): New functions.
26484 (Fset_input_mode): Split to above functions.
26485 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
26486 parameter. Use it in call to `read_char'.
26487 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
26488 Set wrong_kboard_jmpbuf correctly in recursive calls.
26489 Use current_kboard to access Vkeyboard_translate_table.
26490 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
26491 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
26492 Update longjmp invocations. Remember the original current_kboard,
26493 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
26494 changes it. Comment out unnecessary calls to
26495 `record_single_kboard_state' and `any_kboard_state'.
26496 Update recursive calls.
26497 (wrong_kboard_jmpbuf): Remove global variable.
26498 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
26499 Handle deleted interrupted_kboards correctly; that is a legal
26500 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
26501 and read_char calls. Abort if interrupted_kboard died in read_char.
26502 (any_kboard_state, single_kboard_state)
26503 (push_frame_kboard): Remove function.
26504 (pop_kboard): Switch out of single_kboard mode if the kboard has
26505 been deleted. Remove unused variable. Help debugging by not
26506 changing current_kboard unnecessarily. Set current_kboard to the
26507 kboard of the selected frame when the stored kboard object has
26508 been deleted before pop_kboard.
26509 (temporarily_switch_to_single_kboard): Change first parameter to a
26510 frame pointer. Throw an error when caller wants to change kboards
26511 while in single_kboard mode. Don't push_kboard if we weren't in
26512 single kboard state. Don't pop_kboard if we popped into any
26513 kboard state.
26514 (restore_kboard_configuration): Abort if pop_kboard changed the
26515 kboard in single_kboard mode. Call pop_kboard only after setting
26516 up single_kboard mode.
26517 (Frecursive_edit): Switch to single_kboard mode only in nested
26518 command loops.
26519 (cmd_error, command_loop, command_loop_1, timer_check):
26520 Comment out unnecessary call to `any_kboard_state' and
26521 `record_single_kboard_state'.
26522 (delete_kboard): Exit single_kboard mode if we have just deleted
26523 that kboard. Use FRAME_KBOARD.
26524 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
26525 `fatal_error_signal'.
26526 (record_single_kboard_state): Don't push_kboard if we weren't in
26527 single kboard state. Don't pop_kboard if we popped into any
26528 kboard state.
26529 (push_frame_kboard): Rename to push_kboard.
26530 (kbd_buffer_get_event): Use FRAME_TERMINAL.
26531 (read_avail_input): Read input from all terminals.
26532 (mark_kboards): Also mark Vkeyboard_translate_table.
26533 (kbd_buffer_store_event_hold): Simplify condition.
26534 (read_key_sequence): Reinitialize fkey and keytran at each replay.
26535 (Vkeyboard_translate_table): Move to struct kboard.
26536 (init_kboard): Initialize Vkeyboard_translate_table.
26537 (syms_of_keyboard): Use DEFVAR_KBOARD to define
26538 Vkeyboard_translate_table. Update doc strings. Update docs of
26539 local-function-key-map and function-key-map.
26540
26541 * terminal.c: New file.
26542
26543 * term.c: Include errno.h.
26544 (Vring_bell_function, device_list, initial_device)
26545 (next_device_id, ring_bell, update_begin, update_end)
26546 (set_terminal_window, cursor_to, raw_cursor_to)
26547 (clear_to_end, clear_frame, clear_end_of_line)
26548 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
26549 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
26550 (syms_of_term): Move their initialization to terminal.c.
26551 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
26552 (Ftty_display_color_cells)
26553 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
26554 (clear_tty_hooks, set_tty_hooks)
26555 (init_tty, maybe_fatal): New functions.
26556 (Ftty_type): Return nil if terminal is not on a tty instead of
26557 throwing an error. Doc update.
26558 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
26559 Doc update. Initialize new subrs and variables.
26560 (delete_tty): Use terminal->deleted.
26561 (tty_set_terminal_modes): Rename from set_terminal_modes.
26562 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
26563 (set_scroll_region): Rename to `tty_set_scroll_region'.
26564 (turn_on_insert): Rename to `tty_turn_on_insert'.
26565 (turn_off_insert): Rename to `tty_turn_off_insert'.
26566 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
26567 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
26568 (toggle_highligh): Rename to `tty_toggle_highlight'.
26569 (background_highlight): Rename to `tty_background_highlight'.
26570 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
26571 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
26572 (tty_set_scroll_region, tty_background_highlight)
26573 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
26574 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
26575 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
26576 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
26577 Add static modifier.
26578 (tty_reset_terminal_modes, tty_set_terminal_window)
26579 (tty_set_scroll_region, tty_background_highlight)
26580 (tty_highlight_if_desired, tty_cursor_to)
26581 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
26582 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
26583 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
26584 renames.
26585
265862007-08-28 Jan Djärv <jan.h.d@swipnet.se>
26587
26588 * keyboard.c: Qrtl is new.
26589 (parse_tool_bar_item): Handle :rtl keyword.
26590 (syms_of_keyboard): Intern :rtl keyword.
26591
26592 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
26593
26594 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
26595 so no Lisp code is executed.
26596 (file_for_image, find_rtl_image): New functions.
26597 (xg_get_image_for_pixmap): Use file_for_image.
26598 (update_frame_tool_bar): If direction is RTL, use RTL image if
26599 defined. Use Gtk stock images if defined.
26600
266012007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26602
26603 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
26604 for nonexistent or zero-width glyph in composition glyph.
26605
266062007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
26607
26608 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
26609
26610 * xdisp.c (Finvisible_p): New function.
26611 (syms_of_xdisp): defsubr it.
26612
266132007-08-24 Juanma Barranquero <lekktu@gmail.com>
26614
26615 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
26616 Doc fixes.
26617
266182007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26619
26620 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
26621
266222007-08-24 Martin Rudalics <rudalics@gmx.at>
26623
26624 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
26625 whether decoding has modified buffer contents.
26626
266272007-08-24 Jason Rumney <jasonr@gnu.org>
26628
26629 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
26630 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
26631 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
26632 (init_svg_functions) [HAVE_NTGUI]: New function.
26633 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
26634 (svg_load_image): Use them.
26635 (svg_load_image) [HAVE_NTGUI]: Implement background.
26636
266372007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26638
26639 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
26640 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
26641 (LIBX): Remove @RSVG_LIBS@.
26642 (LIBES): Add $(RSVG_LIBS).
26643
26644 * image.c (svg_load_image): Blend with specified background if exists.
26645 Use IMAGE_BACKGROUND. Add Mac OS Support.
26646
26647 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
26648 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
26649 Remove macros.
26650 [MAC_OSX] (socket_callback): Do nothing.
26651 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
26652 ReceiveNextEvent.
26653 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
26654 socket_callback.
26655 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
26656
266572007-08-22 Glenn Morris <rgm@gnu.org>
26658
26659 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
26660
266612007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
26662
26663 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
26664
26665 * image.c: Add support for SVG images. Some additional comments
26666 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
26667 (svg_image_p): New function to test for SVG image.
26668 (svg_load): New function to load SVG image.
26669 (svg_load_image): New function, helper for svg_load.
26670 (Qsvg): New Lisp_object.
26671 (svg_keyword_index): New enum.
26672 (svg_format): New static `image_keyword' struct.
26673 (svg_type): New static `image_type' struct.
26674 (librsvg/rsvg.h): Include it.
26675
266762007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
26677
26678 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
26679
266802007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
26681
26682 * lread.c (Qold_style_backquotes): New var.
26683 (syms_of_lread): Init and staticpro it.
26684 (load_warn_old_style_backquotes): New fun.
26685 (Fload): Use them to warn about old style backquotes.
26686 (end_of_file_error, Fload): Remove unused vars.
26687
26688 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
26689
26690 * lread.c (Vold_style_backquotes): New var.
26691 (syms_of_lread): Init and export it to Elisp.
26692 (read1): Set it when we find an old-style (back)quote.
26693
266942007-08-22 Jason Rumney <jasonr@gnu.org>
26695
26696 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
26697
266982007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
26699
26700 * puresize.h (BASE_PURESIZE): Increase to 1140000.
26701
267022007-08-19 Richard Stallman <rms@gnu.org>
26703
26704 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
26705
267062007-08-19 Andreas Schwab <schwab@suse.de>
26707
26708 * alloc.c (pure): Round PURESIZE up.
26709
267102007-08-17 Jan Djärv <jan.h.d@swipnet.se>
26711
26712 * xterm.c (handle_one_xevent): Remove check that mouse click is in
26713 active frame.
26714
267152007-08-16 Richard Stallman <rms@gnu.org>
26716
26717 * eval.c (Fcommandp): Add parens to clarify.
26718
26719 * minibuf.c (Fall_completions): Use enum for type of table.
26720
26721 * emacs.c (USAGE2): Improve text.
26722
267232007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
26724
26725 * term.c (tty_default_color_capabilities): Declare static
26726 variables in file scope, to avoid HPUX compiler problem.
26727
267282007-08-13 Jan Djärv <jan.h.d@swipnet.se>
26729
26730 * gtkutil.c (update_frame_tool_bar): Use -1 as index
26731 to gtk_toolbar_insert.
26732
267332007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
26734
26735 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
26736
26737 * insdel.c (reset_var_on_error): New fun.
26738 (signal_before_change, signal_after_change):
26739 Use it to reset (after|before)-change-functions to nil in case of error.
26740 Bind inhibit-modification-hooks to t.
26741 Don't bind (after|before)-change-functions to nil while they run.
26742
267432007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26744
26745 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
26746 filling pixmap with stippled background.
26747
267482007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26749
26750 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
26751 Don't use invisible frame as parent window for repositioning.
26752
267532007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
26754
26755 * print.c (new_backquote_output): Rename from old_backquote_output.
26756 (print): Inverse its logic (according to its name) so as to match the
26757 behavior of new_backquote_flag in lread.c.
26758
267592007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26760
26761 * gmalloc.c (posix_memalign): New function.
26762
26763 * macterm.c (frame_highlight, frame_unhighlight): Don't call
26764 ActivateControl/DeactivateControl here.
26765 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
26766 frame-notice-user-settings is non-nil.
26767 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
26768 for kEventParamFMFontStyle.
26769 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
26770 mac_pass_command_to_system and mac_pass_control_to_system here.
26771 (XTread_socket): Call ActivateControl/DeactivateControl here.
26772 (XTread_socket) [TARGET_API_MAC_CARBON]:
26773 Check mac_pass_command_to_system and mac_pass_control_to_system here.
26774 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
26775 for window repositioning.
26776
267772007-08-08 Glenn Morris <rgm@gnu.org>
26778
26779 * Replace `iff' in doc-strings and comments.
26780
267812007-08-07 Chong Yidong <cyd@stupidchicken.com>
26782
26783 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
26784
267852007-08-07 Martin Rudalics <rudalics@gmx.at>
26786
26787 * fileio.c (Finsert_file_contents): Run format-decode and
26788 after_insert_file_functions on entire buffer when REPLACE is
26789 non-nil and inhibit modification_hooks and point_motion_hooks.
26790 For consistency, run after_insert_file_functions iff something
26791 got inserted. Move signal_after_change and update_compositions
26792 after code running after_insert_file_functions. Make sure that
26793 undo_list doesn't record intermediate steps of the decoding process.
26794
267952007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26796
26797 * emacs.c (main)
26798 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
26799 Call malloc_enable_thread on interactive startup.
26800
26801 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
26802 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
26803 [USE_PTHREAD]: Conditionalize with it.
26804 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
26805 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
26806 New functions.
26807
268082007-08-06 Chong Yidong <cyd@stupidchicken.com>
26809
26810 * xdisp.c (redisplay_window): When restoring original buffer
26811 position, make sure it is still valid.
26812
26813 * image.c (png_load): Ignore png-supplied background color.
26814
268152007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26816
26817 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
26818 Use kCFAbsoluteTimeIntervalSince1970.
26819
26820 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
26821 New variable.
26822 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
26823 event loop should be quit.
26824 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
26825 Quit dialog event loop if quit_dialog_event_loop is set.
26826
26827 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
26828 (Selection): New typedef. Use instead of ScrapRef.
26829 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
26830 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
26831 (mac_clear_selection): Rename from clear_scrap.
26832 (get_flavor_type_from_symbol): New argument SEL and subsume function of
26833 scrap_has_target_type. All uses changed.
26834 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
26835 (mac_selection_has_target_p): New functions.
26836 (mac_put_selection_value): Rename from put_scrap_string.
26837 (mac_get_selection_value): Rename from get_scrap_string.
26838 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
26839 (put_scrap_private_timestamp, scrap_has_target_type)
26840 (get_scrap_private_timestamp): Remove functions.
26841 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
26842 (x_own_selection, x_get_local_selection):
26843 Use mac_valid_selection_value_p.
26844 (x_own_selection): Don't use put_scrap_private_timestamp.
26845 Record OWNERSHIP-INFO into Vselection_alist instead.
26846 (x_get_local_selection): Don't check type if request is local.
26847 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
26848 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
26849
268502007-08-04 Jan Djärv <jan.h.d@swipnet.se>
26851
26852 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
26853 add comment explaining why.
26854
268552007-08-03 Richard Stallman <rms@gnu.org>
26856
26857 * fileio.c (Fvisited_file_modtime): Use make_time.
26858
268592007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
26860
26861 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
26862 build.
26863
268642007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
26865
26866 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
26867
268682007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
26869
26870 * puresize.h (BASE_PURESIZE): Increase to 1130000.
26871
268722007-07-30 Richard Stallman <rms@gnu.org>
26873
26874 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
26875
268762007-07-29 Jan Djärv <jan.h.d@swipnet.se>
26877
26878 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
26879
268802007-07-28 Nick Roberts <nickrob@snap.net.nz>
26881
26882 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
26883 remote default-directory.
26884
26885 * buffer.c (mode-line-format): Update doc string.
26886
268872007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26888
26889 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
26890 scroll bar gap.
26891 (x_scroll_bar_create): Set bar->fringe_extended_p.
26892 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
26893 on frame edge. Check fringe background extension. Don't clear
26894 extended fringe background area.
26895
26896 * w32term.h (struct scroll_bar): New member fringe_extended_p.
26897 (w32_fill_area): Enclose multiple statements with do ... while (0).
26898
26899 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
26900 Extend fringe background to scroll bar gap.
26901 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
26902 Set bar->fringe_extended_p.
26903 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26904 Put leftmost/rightmost scroll bars on frame edge. Check fringe
26905 background extension. Don't clear extended fringe background area.
26906
26907 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26908 New member fringe_extended_p.
26909
269102007-07-25 Glenn Morris <rgm@gnu.org>
26911
26912 * Relicense all FSF files to GPLv3 or later.
26913
26914 * COPYING: Switch to GPLv3.
26915
269162007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
26917
26918 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
26919
26920 * data.c (Finteractive_form): Check for the presence of an
26921 `interactive-form' symbol property more thoroughly.
26922
26923 * data.c (Finteractive_form): Use an `interactive-form' property if
26924 present, analogous to the function-documentation property.
26925
269262007-07-24 Jason Rumney <jasonr@gnu.org>
26927
26928 * w32fns.c (x_real_positions): Get real position from OS instead of
26929 calculating it.
26930
269312007-07-23 Jason Rumney <jasonr@gnu.org>
26932
26933 * filelock.c (current_lock_owner): Allow for @ sign in username.
26934
269352007-07-22 Nick Roberts <nickrob@snap.net.nz>
26936
26937 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
26938 remote default-directory.
26939
26940 * buffer.c (mode-line-format): Describe above case in doc string.
26941
269422007-07-20 Eli Zaretskii <eliz@gnu.org>
26943
26944 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
26945 Define if not defined.
26946
269472007-07-18 Jason Rumney <jasonr@gnu.org>
26948
26949 * w32proc.c (w32_executable_type): Handle 64 bit executables.
26950
269512007-07-18 Richard Stallman <rms@gnu.org>
26952
26953 * data.c (Fsetq_default): Doc fix.
26954
26955 * eval.c (Fsetq): Doc fix.
26956
269572007-07-18 Juanma Barranquero <lekktu@gmail.com>
26958
26959 * coding.c (Ffind_operation_coding_system):
26960 * eval.c (For, Fand): Doc fixes.
26961 Reported by Johan Bockgård.
26962
269632007-07-18 Jan Djärv <jan.h.d@swipnet.se>
26964
26965 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
26966
26967 * xterm.h: Declare x_ewmh_activate_frame.
26968
26969 * xterm.c (x_ewmh_activate_frame): New function.
26970 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
26971
269722007-07-17 Martin Rudalics <rudalics@gmx.at>
26973
26974 * window.c (Fdisplay_buffer): If largest or LRU window is the
26975 only window, split it even if it is not eligible for splitting.
26976 This restores the original behavior broken by the 2007-07-15
26977 change.
26978
269792007-07-17 Glenn Morris <rgm@gnu.org>
26980
26981 * abbrev.c (abbrev_check_chars): New function.
26982 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
26983 Call abbrev_check_chars to check abbrev characters are word
26984 constituents. Doc fix.
26985
269862007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
26987
26988 * process.c (Fstart_process, Fmake_network_process)
26989 (read_process_output): Fix up last changes.
26990
269912007-07-16 Eli Zaretskii <eliz@gnu.org>
26992
26993 * makefile.w32-in (clean): Don't delete *~.
26994
269952007-07-16 Andreas Schwab <schwab@suse.de>
26996
26997 * window.c (Fdisplay_buffer): Use NILP.
26998 (Fset_window_scroll_bars): Likewise.
26999
270002007-07-15 Martin Rudalics <rudalics@gmx.at>
27001
27002 * window.c (window_min_size_2): New function.
27003 (window_min_size_1, size_window, Fdisplay_buffer)
27004 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
27005 windows without mode- or header-lines when window-min-height is
27006 too small.
27007 (size_window): Reset nodelete_p after testing it, following an
27008 earlier note by Kim F. Storm.
27009 (display_buffer): Do not set split_height_threshold to twice the
27010 value of window_min_height to avoid changing the value of a
27011 customizable variable. Rather explicitly check whether the
27012 height of the window that shall be splitted is at least as large
27013 as split_height_threshold.
27014 (Fwindow_full_width_p): New defun.
27015 (syms_of_window): Defsubr it.
27016
27017 * window.h: Add EXFUN for Fwindow_full_width_p.
27018
270192007-07-14 Jason Rumney <jasonr@gnu.org>
27020
27021 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
27022
270232007-07-14 Richard Stallman <rms@gnu.org>
27024
27025 * eval.c (maybe_call_debugger): New function.
27026 (find_handler_clause): Use maybe_call_debugger.
27027 Call it when the handler says `debug'.
27028 Eliminate DEBUGGER_VALUE_PTR.
27029 (Fsignal): Eliminate debugger_value.
27030 (Qdebug): New variable.
27031 (syms_of_eval): Initialize it.
27032
270332007-07-14 Juanma Barranquero <lekktu@gmail.com>
27034
27035 * eval.c (Fprogn):
27036 * keyboard.c (Ftrack_mouse):
27037 * print.c (Fwith_output_to_temp_buffer):
27038 * window.c (Fsave_window_excursion): Doc fix.
27039
270402007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
27041
27042 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
27043
270442007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
27045
27046 * process.h (struct Lisp_Process): Turn slots infd, outfd,
27047 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
27048 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
27049 read_output_delay, and read_output_skip from Lisp_Objects to ints.
27050 Remove unused encoding_carryover.
27051 * process.c: Adjust all functions accordingly.
27052
270532007-07-12 Richard Stallman <rms@gnu.org>
27054
27055 * term.c: Include unistd.h only if HAVE_UNISTD_H.
27056
270572007-07-11 Jason Rumney <jasonr@gnu.org>
27058
27059 * makefile.w32-in (LIBS): Include OLE32.
27060
27061 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
27062 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
27063
270642007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
27065
27066 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
27067 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
27068 from a Lisp_Object into a bare pointer.
27069 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
27070 Adjust the code correspondingly.
27071
27072 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
27073
27074 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
27075 (term_show_mouse_face): Remove unused var `j'.
27076 (handle_one_term_event): Remove unused vars `i' and `j'.
27077 Don't cast return value of ttyname since it's not necessary.
27078
270792007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
27080
27081 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
27082 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
27083
27084 * fns.c (map_char_table): Use an array of int for `indices' rather than
27085 an array of Lisp_Objects (which are only ever integers anyway).
27086 (Fmap_char_table): Update caller.
27087 * lisp.h: Update prototype.
27088 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
27089 * fontset.c (Ffontset_info):
27090 * casetab.c (set_case_table): Update callers.
27091
27092 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
27093
27094 * keymap.c (struct accessible_keymaps_data)
27095 (struct where_is_internal_data): New structures.
27096 (accessible_keymaps_1, where_is_internal_1): Use them to change
27097 interface to adhere to the one used by map_keymap.
27098 (Faccessible_keymaps, where_is_internal): Use map_keymap.
27099 (accessible_keymaps_char_table, where_is_internal_2): Remove.
27100
27101 * keymap.h (map_keymap_function_t): More informative prototype.
27102
271032007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
27104
27105 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
27106 (looking_at_1): Don't change search_regs and last_thing_searched
27107 if `inhibit-changing-match-data' is non-nil.
27108 (string_match_1, search_buffer, set_search_regs): Likewise.
27109 (syms_of_search): Add Lisp level definition for
27110 `inhibit-changing-match-data' and set it to nil.
27111 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
27112 start and end of the match, instead of using values in search_regs.
27113
271142007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
27115
27116 * minibuf.c (Fcompleting_read): New value `confirm-only'
27117 for `require-match'.
27118
271192007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
27120
27121 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
27122 part of the 2007-06-27 change to syms_of_fileio.
27123
271242007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27125
27126 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
27127 Check WINDOWP before using XWINDOW. Consolidate return statements.
27128
271292007-06-27 Richard Stallman <rms@gnu.org>
27130
27131 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
27132
271332007-06-27 Juanma Barranquero <lekktu@gmail.com>
27134
27135 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
27136
271372007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27138
27139 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
27140 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
27141 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
27142 (_free_internal, memalign): Use them.
27143 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
27144 Initialize to PTHREAD_MUTEX_INITIALIZER.
27145 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
27146 (morecore_nolock): Rename from morecore. All uses changed.
27147 Use only nolock versions of internal allocation functions.
27148 (_malloc_internal_nolock, _realloc_internal_nolock)
27149 (_free_internal_nolock): New functions created from
27150 _malloc_internal, _realloc_internal, and _free_internal.
27151 (_malloc_internal, _realloc_internal, _free_internal): Use them.
27152 Copy hook value to automatic variable before its use.
27153 (memalign): Copy hook value to automatic variable before its use.
27154
271552007-06-26 Kenichi Handa <handa@m17n.org>
27156
27157 * coding.c (Ffind_operation_coding_system): Docstring improved.
27158 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
27159
271602007-06-25 David Kastrup <dak@gnu.org>
27161
27162 * keymap.c (Fcurrent_active_maps): Add `position' argument.
27163 (Fwhere_is_internal): Adjust call to `current-active-maps' to
27164 cater for additional parameter.
27165
27166 * keymap.h: Adjust number of parameters to `current-active-maps'.
27167
27168 * doc.c (Fsubstitute_command_keys): Adjust call of
27169 `current-active-maps'.
27170
271712007-06-25 David Kastrup <dak@gnu.org>
27172
27173 * callint.c (Fcall_interactively): Make the parsing of interactive
27174 specs somewhat more readable.
27175
271762007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27177
27178 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
27179 to scroll bar gap also when bitmap fills fringe. Draw only foreground
27180 if extended background has already been filled.
27181
271822007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27183
27184 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
27185 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
27186
27187 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
27188 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
27189 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
27190 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
27191 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
27192 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
27193 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
27194 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
27195 Run timers during dialog popup.
27196 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
27197
271982007-06-21 Jason Rumney <jasonr@gnu.org>
27199
27200 * image.c (convert_mono_to_color_image): Swap fore and background.
27201
272022007-06-20 Jason Rumney <jasonr@gnu.org>
27203
27204 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
27205 (w32_free_bdf_font): Unmap memory not handle.
27206
272072007-06-20 Sam Steingold <sds@gnu.org>
27208
27209 * gmalloc.c (__morecore): Fix the declaration to comply with the
27210 definition.
27211
272122007-06-20 Juanma Barranquero <lekktu@gmail.com>
27213
27214 * w32term.c (w32_delete_display): Remove leftover declaration.
27215 (w32_define_cursor, w32_initialize): Make static.
27216
27217 * w32.c (_wsa_errlist): Fix typo in error message.
27218 (init_environment): Ignore any environment variable from the
27219 registry having a null value.
27220
272212007-06-20 Glenn Morris <rgm@gnu.org>
27222
27223 * Makefile.in (LIBGIF): Default to -lgif.
27224
272252007-06-17 Jason Rumney <jasonr@gnu.org>
27226
27227 * w32menu.c (add_menu_item): Don't use multibyte string functions on
27228 unicode strings.
27229
272302007-06-16 Juanma Barranquero <lekktu@gmail.com>
27231
27232 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
27233 Fix typo in docstring.
27234
272352007-06-16 Eli Zaretskii <eliz@gnu.org>
27236
27237 * w32menu.c (add_menu_item): Escape `&' characters in menu items
27238 and their keybindings.
27239
272402007-06-15 Chong Yidong <cyd@stupidchicken.com>
27241
27242 * composite.c (update_compositions): Fix last fix.
27243
272442007-06-14 Jason Rumney <jasonr@gnu.org>
27245
27246 * w32.c (get_process_times_fn): New function pointer.
27247 (globals_of_w32): Intialize it if present in kernel32.dll.
27248 (w32_get_internal_run_time): New function.
27249
27250 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
27251
272522007-06-14 Kenichi Handa <handa@etlken.m17n.org>
27253
27254 * composite.c (update_compositions): Check the validness of
27255 compositions.
27256
272572007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27258
27259 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
27260 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
27261
27262 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
27263 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
27264
27265 * macgui.h (USE_MAC_TOOLBAR): New define.
27266
27267 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
27268 Return immediately unless popup is activated.
27269
27270 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
27271 background to scroll bar gap.
27272 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
27273 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
27274 scroll bars on frame edge. Check fringe background extension.
27275 Don't clear extended fringe background area.
27276 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
27277 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
27278 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
27279 [USE_MAC_TOOLBAR]: New macros.
27280 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
27281 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
27282 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
27283 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
27284 [USE_MAC_TOOLBAR]: New functions.
27285 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
27286 manually if previous repositioning has failed.
27287 (mac_handle_keyboard_event): Use precomputed event kind.
27288 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
27289 as tool bar item click. Handle mouse movement over tool bar items.
27290
27291 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
27292 toolbar_win_gravity.
27293 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
27294 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
27295 Add externs.
27296
27297 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
27298 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
27299
273002007-06-14 Chong Yidong <cyd@stupidchicken.com>
27301
27302 * image.c (search_image_cache): Remove unused variable.
27303
273042007-06-13 Chong Yidong <cyd@stupidchicken.com>
27305
27306 * xfns.c, xmenu.c: Link to xaw3d if available.
27307
273082007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27309
27310 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
27311 frame_foreground and frame_background.
27312
27313 * image.c (lookup_image): Save frame foreground and background colors.
27314 (search_image_cache): Check if saved and current frame colors match.
27315
273162007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
27317
27318 * regex.c (regex_compile): Remove the `regnum' counter.
27319 Use bufp->re_nsub instead. Add support for \(?N:RE\).
27320
273212007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
27322
27323 * term.c: Include intervals.h to declare Fget_text_property.
27324
273252007-06-10 Jason Rumney <jasonr@gnu.org>
27326
27327 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
27328
273292007-06-08 Juanma Barranquero <lekktu@gmail.com>
27330
27331 * callint.c (Fcall_interactively):
27332 * editfns.c (Fdelete_and_extract_region):
27333 * fileio.c (Fread_file_name):
27334 * fns.c (Fmapconcat):
27335 * keyboard.c (cmd_error_internal):
27336 * keymap.c (Fkey_description):
27337 * lread.c (openp):
27338 * minibuf.c (read_minibuf):
27339 * search.c (wordify):
27340 * sunfns.c (sel_read):
27341 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
27342 * xfns.c (x_default_scroll_bar_color_parameter):
27343 * xmenu.c (menu_help_callback):
27344 * xselect.c (Fx_get_atom_name):
27345 * xterm.c (x_term_init): Use empty_unibyte_string.
27346
273472007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
27348
27349 * alloc.c (init_strings): Initialize canonical empty strings.
27350 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
27351 canonical empty string when the requested size is 0.
27352
27353 * emacs.c (empty_unibyte_string): Rename from empty_string.
27354 (empty_multibyte_string): New canonical empty string.
27355 (syms_of_emacs): Don't initialize empty_string.
27356
27357 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
27358 string, if appropriate.
27359 (empty_unibyte_string, empty_multibyte_string): New externs.
27360 (empty_string): Remove extern.
27361
27362 * lread.c (syms_of_lread): Use empty_unibyte_string.
27363
273642007-06-07 Jason Rumney <jasonr@gnu.org>
27365
27366 * s/ms-w32.h: Don't define HAVE_TZNAME.
27367
27368 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
27369
273702007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27371
27372 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
27373
27374 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
27375 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
27376
27377 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
27378 Don't call next handler.
27379 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
27380 Remove argument. Install handler to application.
27381 (set_frame_menubar): Don't change deep_p.
27382 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
27383 FRAME_OUTER_TO_INNER_DIFF_Y.
27384 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
27385 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
27386 [HAVE_DIALOGS]: New macros.
27387 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
27388 Use them.
27389 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
27390
27391 * macselect.c [MAC_OSX] (install_service_handler): Rename from
27392 init_service_handler. All callers changed. Return OSStatus value.
27393
27394 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
27395 All callers changed so as not to call SetPortWindowPort.
27396 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
27397 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
27398 mac_draw_string_common.
27399 (mac_draw_image_string_qd): Likewise.
27400 (mac_draw_string_common): Use them. Add INLINE.
27401 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
27402 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
27403 GetGlobalMouse.
27404 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
27405 and FRAME_OUTER_TO_INNER_DIFF_Y.
27406 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
27407 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
27408 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
27409 repositioning window to mac_handle_window_event.
27410 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
27411 saving window location to mac_handle_window_event
27412 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
27413 (install_menu_target_item_handler): Remove argument in extern.
27414 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
27415 Also accept command events.
27416 (do_keystroke): New function created from XTread_socket.
27417 (init_command_handler): Remove functions.
27418 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
27419 and save window location by kEventWindowShowing and kEventWindowHiding
27420 handlers here. Don't call next handler for window state change and
27421 focus events.
27422 (mac_handle_application_event, mac_handle_keyboard_event)
27423 [TARGET_API_MAC_CARBON]: New functions.
27424 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
27425 kEventWindowShowing and kEventWindowHiding events. Move installation
27426 of mouse, font, text input and menu target item handlers to
27427 install_application_handler.
27428 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
27429 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27430 New function.
27431 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27432 Register it.
27433 (XTread_socket) [TARGET_API_MAC_CARBON]:
27434 Consolidate SendEventToEventTarget calls.
27435 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
27436 Move application activation handler to mac_handle_application_event.
27437 Move keyboard handler to mac_handle_keyboard_event.
27438 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
27439 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
27440 init_command_handler. Call install_application_handler.
27441
27442 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
27443 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
27444
274452007-06-07 Glenn Morris <rgm@gnu.org>
27446
27447 * emacs.c (main): Use `emacs-copyright' in --version output.
27448
274492007-06-06 Chong Yidong <cyd@stupidchicken.com>
27450
27451 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
27452
274532007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27454
27455 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
27456
27457 * macgui.h: Replace WindowPtr with WindowRef.
27458
27459 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27460 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27461 Replace ControlHandle with ControlRef.
27462 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
27463
27464 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27465 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27466 Replace ControlHandle with ControlRef.
27467 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
27468 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
27469
27470 * macterm.h (struct scroll_bar): Rename member control_handle_low
27471 and control_handle_high to control_ref_low and control_ref_high.
27472 All uses changed.
27473 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
27474 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
27475 respectively. All uses changed.
27476 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
27477 (install_window_handler, remove_window_handler): Replace WindowPtr
27478 with WindowRef in externs.
27479
274802007-06-05 Juanma Barranquero <lekktu@gmail.com>
27481
27482 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
27483
274842007-06-03 Nick Roberts <nickrob@snap.net.nz>
27485
27486 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
27487
27488 * frame.c (Fmouse_position, Fmouse_pixel_position):
27489 Condition on HAVE_GPM too.
27490
27491 * term.c (term_mouse_highlight): Remove unused variables.
27492 (Fterm_open_connection): Set gpm_zerobased to 1.
27493 (term_mouse_movement, term_mouse_click, handle_one_term_event):
27494 Use zero based co-ordinates.
27495 (handle_one_term_event): Report a drag as mouse movement too.
27496
27497 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
27498
274992007-06-03 Chong Yidong <cyd@stupidchicken.com>
27500
27501 * image.c (search_image_cache): New function. Require background
27502 color match if background color is unspecified in the image spec.
27503 (uncache_image, lookup_image): Use it.
27504
275052007-06-01 Juanma Barranquero <lekktu@gmail.com>
27506
27507 * window.c (Fshrink_window): Reflow docstring.
27508
275092007-06-02 Chong Yidong <cyd@stupidchicken.com>
27510
27511 * Version 22.1 released.
27512
275132007-06-01 Richard Stallman <rms@gnu.org>
27514
27515 * xfns.c (x_encode_text): Add GCPRO.
27516
275172007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27518
27519 * xfns.c (x_set_name_internal): Save encoded name before
27520 x_encode_text in case string data is relocated.
27521
275222007-05-31 Richard Stallman <rms@gnu.org>
27523
27524 * buffer.c (syms_of_buffer): Doc fix.
27525
275262007-05-30 Nick Roberts <nickrob@snap.net.nz>
27527
27528 * sysdep.c (init_sys_modes): Add rather than replace with
27529 O_NONBLOCK.
27530
27531 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
27532 term_mouse_moveto.
27533
27534 * termhooks.h (term_mouse_moveto): New extern.
27535
27536 * term.c (mouse_face_window): Rename...
27537 (Qmouse_face_window): ...to this.
27538 (term_show_mouse_face, term_clear_mouse_face)
27539 (term_mouse_highlight): Use Qmouse_face_window.
27540 (term_mouse_moveto): New function.
27541 (term_mouse_position): Make it work.
27542 (syms_of_term): Uncomment assignment to mouse_position_hook.
27543 Staticpro Qmouse_face_window.
27544
275452007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27546
27547 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
27548 around current_column call.
27549
275502007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
27551
27552 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
27553 * xdisp.c (next_element_from_buffer):
27554 * window.c (delete_window):
27555 * term.c (term_mouse_highlight):
27556 * msdos.c (getdefdir):
27557 * macterm.c (mac_create_bitmap_from_bitmap_data)
27558 (init_font_name_table):
27559 * fns.c (Fsxhash):
27560 * data.c (Fmake_local_variable):
27561 * ccl.c (ccl_driver): Likewise.
27562
275632007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27564
27565 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
27566 Call mac_wakeup_from_rne on window size change.
27567
275682007-05-25 Chong Yidong <cyd@stupidchicken.com>
27569
27570 * image.c (uncache_image): Fix typo.
27571
275722007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
27573
27574 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
27575
275762007-05-22 Richard Stallman <rms@gnu.org>
27577
27578 * xterm.c (x_connection_closed): Remove NO_RETURN.
27579
275802007-05-22 Martin Rudalics <rudalics@gmx.at>
27581
27582 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
27583
275842007-05-21 Chong Yidong <cyd@stupidchicken.com>
27585
27586 * image.c (uncache_image): New function.
27587 (Fimage_refresh): New function.
27588
275892007-05-20 Jan Djärv <jan.h.d@swipnet.se>
27590
27591 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
27592
275932007-05-20 Nick Roberts <nickrob@snap.net.nz>
27594
27595 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
27596 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
27597
275982007-05-20 Nick Roberts <nickrob@snap.net.nz>
27599
27600 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
27601 conditional on [HAVE_GPM_H].
27602
276032007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
27604
27605 * syntax.c (skip_chars): Update syntax-table only after we checked that
27606 the new location is valid.
27607
276082007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27609
27610 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
27611 mac_get_window_bounds.
27612
276132007-05-20 Nick Roberts <nickrob@snap.net.nz>
27614
27615 * Makefile.in (LIBGPM): Allow it to be set from configure.
27616 If set then link Emacs with it.
27617
27618 * config.in: Regenerate.
27619
27620 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
27621 New externs.
27622
27623 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
27624 Include gpm.h.
27625 (handle_one_term_event, term_gpm): New externs.
27626
27627 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
27628 and allow it to be interrupted by SIGIO.
27629
27630 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
27631 (wait_reading_process_output): Wait on gpm_fd too.
27632 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
27633 (add_gpm_wait_descriptor_called_flag): New variable.
27634 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
27635
27636 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
27637 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
27638 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
27639 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
27640 (make_lispy_event): Add case GPM_CLICK_EVENT.
27641 (read_avail_input): Handle mouse input.
27642
27643 * term.c (write_glyphs_with_face): New function.
27644 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
27645 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
27646 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
27647 (mouse_face_face_id, term_gpm, pos_x, pos_y)
27648 (last_mouse_x, last_mouse_y): New variables.
27649 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
27650 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
27651 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
27652 (Fterm_close_connection): New functions.
27653 (term_init): Initialise mouse_face_window.
27654
276552007-05-19 Chong Yidong <cyd@stupidchicken.com>
27656
27657 * xdisp.c (redisplay_window): If first window line is a
27658 continuation line, recompute the new window start instead of
27659 recentering.
27660
276612007-05-18 Glenn Morris <rgm@gnu.org>
27662
27663 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
27664 Suggested by Alfred M. Szmidt <ams@gnu.org>.
27665
276662007-05-17 Glenn Morris <rgm@gnu.org>
27667
27668 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
27669
276702007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27671
27672 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
27673 dead key repeat and up events.
27674
276752007-05-14 Chong Yidong <cyd@stupidchicken.com>
27676
27677 * image.c (pbm_load): Check image size for monochrome pbm.
27678
276792007-05-13 Chong Yidong <cyd@stupidchicken.com>
27680
27681 * xterm.c (XTread_socket): Revert last change.
27682
276832007-05-12 Chong Yidong <cyd@stupidchicken.com>
27684
27685 * image.c (pbm_load): Correctly check image size for greyscale pbm.
27686
27687 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
27688
276892007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27690
27691 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
27692 mixup (YAILOM).
27693
276942007-05-07 Andreas Schwab <schwab@suse.de>
27695
27696 * keymap.c (Flookup_key): Fix typo in last change.
27697
276982007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27699
27700 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
27701 mapping for unibyte strings.
27702
277032007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27704
27705 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
27706 (Fx_popup_dialog) [MAC_OSX]: Likewise.
27707
277082007-04-29 Richard Stallman <rms@gnu.org>
27709
27710 * insdel.c (replace_range): For undo, record insertion first.
27711
277122007-04-29 Andreas Schwab <schwab@suse.de>
27713
27714 * lisp.h (VECSIZE): Use OFFSETOF.
27715
277162007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27717
27718 * xdisp.c (try_window_reusing_current_matrix): Fix number of
27719 disabled lines.
27720
277212007-04-28 Richard Stallman <rms@gnu.org>
27722
27723 * lread.c (read_escape): In a string, \s is always space.
27724
277252007-04-27 Jan Djärv <jan.h.d@swipnet.se>
27726
27727 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
27728
27729 * gtkutil.c (xg_update_menubar, create_menus): Create empty
27730 submenu for menu bar items.
27731
27732See ChangeLog.10 for earlier changes.
27733
27734;; Local Variables:
27735;; coding: utf-8
27736;; add-log-time-zone-rule: t
aac0c6e3
MR
27737;; End:
27738
e3eb1dae 27739 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
27740
27741 This file is part of GNU Emacs.
27742
27743 GNU Emacs is free software: you can redistribute it and/or modify
27744 it under the terms of the GNU General Public License as published by
27745 the Free Software Foundation, either version 3 of the License, or
27746 (at your option) any later version.
27747
27748 GNU Emacs is distributed in the hope that it will be useful,
27749 but WITHOUT ANY WARRANTY; without even the implied warranty of
27750 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27751 GNU General Public License for more details.
27752
27753 You should have received a copy of the GNU General Public License
27754 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
27755
27756;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40