Support TAGS targets in the w32 build.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
73077a9a
EZ
12010-10-01 Eli Zaretskii <eliz@gnu.org>
2
3 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
4 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
5 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
6
55e572ef
DN
72010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
8
9 * xml.c (parse_string): Use const.
10
d4b6d95d
LMI
112010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
12
13 * eval.c (Fbacktrace): Don't overwrite print-level on exit. Also
14 only override Vprint_level if it isn't already bound, and increase
15 the level to 8 to produce more useful backtraces for bug reports.
16
e4b6db12
DN
172010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
18
19 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
20
1becef93
JB
212010-09-30 Juanma Barranquero <lekktu@gmail.com>
22
23 * w32console.c (vga_stdcolor_name): Remove unused function;
24 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
25
df7fcaff
LMI
262010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
27
bac5cef8
LMI
28 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
29 (Fgnutls_boot): Start the handshake.
30 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
31 (Fgnutls_boot): Remove some debugging messages.
32 Change indentation throughout to use the Emacs style.
33 (emacs_gnutls_handshake): Cast the fds to something that's
34 possibly the expected length.
35 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 36
df7fcaff
LMI
37 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
38
39 * process.c (make_process): Set the gnutls_p field to zero by
40 default.
41 (read_process_output): Always call the gnutls_read function if the
42 stream is a gnutls stream.
43 (send_process): Ditto for writes.
44
45 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
46 or write anything until the state is GNUTLS_STAGE_READY.
47 (Fgnutls_boot): Mark the stream as being a gnutls stream.
48
d585695f
EZ
492010-09-29 Eli Zaretskii <eliz@gnu.org>
50
af7ef32d
EZ
51 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
52 NEUTRAL_DIR.
53 (handle_invisible_prop, iterate_out_of_display_property)
54 (next_element_from_buffer): If bidi_it.first_elt is set, call
55 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
56 (Bug#7128)
57
d585695f
EZ
58 * print.c (print_object): Fix format string and argument types for
59 printing a Lisp_Misc_Marker.
60
61 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
62 (load_overlay_strings, get_overlay_strings_1)
63 (get_overlay_strings, forward_to_next_line_start)
64 (back_to_previous_visible_line_start, reseat, reseat_to_string)
65 (get_next_display_element, next_element_from_string)
66 (next_element_from_c_string, next_element_from_buffer)
67 (move_it_vertically_backward, move_it_by_lines, add_to_log)
68 (message_dolog, message_log_check_duplicate, message2_nolog)
69 (message3, message3_nolog, vmessage, set_message, set_message_1)
70 (hscroll_window_tree, text_outside_line_unchanged_p)
71 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
72 (find_last_unchanged_at_beg_row)
73 (find_first_unchanged_at_end_row, row_containing_pos)
74 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
75 (display_count_lines, x_produce_glyphs, note_mouse_highlight): Use
76 EMACS_INT for buffer and string positions.
77
78 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
79 (row_containing_pos): Adjust prototype.
80
81 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
82 (message2_nolog, set_message): Adjust prototypes.
83
a6f3211f
SM
842010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
85
86 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
87 (Fgnutls_boot): Use SDATA.
88 (Fgnutls_handshake): Remove unused var `max_log_level'.
89
e0720500
MA
902010-09-27 Michael Albinus <michael.albinus@gmx.de>
91
11a5af7c 92 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
93 (Bug#7113)
94
d8a4b27a
J
952010-09-27 Jan Djärv <jan.h.d@swipnet.se>
96
42d3022b
J
97 * xgselect.c (xg_select): Clear file descriptors not set from
98 rfds and wfds.
99
d8a4b27a
J
100 * process.c (wait_reading_process_output): Add missing FD_CLR
101 for write_mask (must mirror connect_wait_mask).
102
8ed70bf3
LMI
1032010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
104
105 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
106 prefix.
107 (Fgnutls_boot): Use changed process members. Use log level with a
108 function parameter to set it. Bring back Emacs-level debugging
109 messages at log level 1 and 2.
110
111 * process.c (make_process): Initialize gnutls_log_level.
112
113 * process.h: Add gnutls_log_level and rename x509_cred and
114 anon_cred to have the gnutls_ prefix for consistency.
115
116 * gnutls.h (GNUTLS_LOG): Add convenience macro.
117
bedf4aab
JB
1182010-09-27 Juanma Barranquero <lekktu@gmail.com>
119
120 * w32.c (g_b_init_get_sid_identifier_authority)
121 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
122 Remove, not used.
123 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
124 (init_winsock): Remove useless assignment.
125 (open_process_token, get_token_information, lookup_account_sid)
126 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
127 (get_security_descriptor_owner, get_security_descriptor_group)
128 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
129 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
130 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
131 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
132 (unc_volume_file_attributes, convert_from_time_t)
133 (create_toolhelp32_snapshot, process32_first, process32_next)
134 (open_thread_token, impersonate_self, revert_to_self)
135 (get_process_memory_info, get_process_working_set_size)
136 (global_memory_status, global_memory_status_ex, socket_to_fd)
137 (shutdown_handler): Make static.
138
08609ffd
MA
1392010-09-27 Michael Albinus <michael.albinus@gmx.de>
140
141 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
142 (xd_pending_messages): Functions removed.
143 (xd_read_queued_messages): Add parameters fd, *data, for_read in
144 order to be compatible with add_read_fd. Determine bus from data,
145 and call xd_read_message just for this bus.
146 (xd_add_watch): Use xd_read_queued_messages as callback function.
147 Add data.
148
149 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
150
d2e9d0bb
LMI
1512010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
152
153 * gnutls.c (gnutls_log_function): Added more debugging.
ec9f09be 154 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 155
4be9765d
KH
1562010-09-27 Kenichi Handa <handa@m17n.org>
157
158 These changes are to remove restriction on the number of glyphs in
159 one composition.
160
161 * dispextern.h (struct glyph): Change the member "slice" to union.
162 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
163 (GLYPH_SLICE_EQUAL_P): Adjusted for the above change.
164
165 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
166 instead of glyph->slice.
167 (marginal_area_string): Likewise.
168
169 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
170 glyph->u.cmp.
171 (append_composite_glyph): Likewise.
172
173 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
174 glyph->u.cmp.
175 (fill_gstring_glyph_string, x_get_glyph_overhangs)
176 (append_composite_glyph): Likewise.
177 (fill_image_glyph_string): Use glyph->slice.img instead of
178 glyph->slice.
179 (append_glyph, produce_image_glyph, append_stretch_glyph)
180 (note_mouse_highlight): Likewise.
181
3fad2ad2
J
1822010-09-26 Jan Djärv <jan.h.d@swipnet.se>
183
bf05eed6
J
184 * process.c (add_keyboard_wait_descriptor)
185 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
186 (wait_reading_process_output): Don't pass write_mask to select
187 if SELECT_CANT_DO_WRITE_MASK is defined.
188 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 189
3fad2ad2
J
190 * process.h (add_read_fd, delete_read_fd, add_write_fd)
191 (delete_write_fd): Declare.
192
193 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
194 (write_mask): New variable.
195 (max_input_desc): Renamed from max_keyboard_desc.
196 (fd_callback_info): New variable.
70e31436
JB
197 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
198 New functions.
3fad2ad2
J
199 (Fmake_network_process): FD_SET write_mask.
200 (deactivate_process): FD_CLR write_mask.
201 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
202 check_connect removed. check_write is new. Remove references to gpm.
203 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
204 NON_BLOCKING_CONNECT) instead of Connecting.
205 Loop over file descriptors and call callbacks in fd_callback_info
206 if file descriptor is ready for I/O.
207 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
208 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
209 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
210 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
211 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
212 (init_process): Initialize write_mask and fd_callback_info.
213
214 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
215
216 * dbusbind.c: Include process.h.
217 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
218 (xd_read_message_1): New functions.
70e31436
JB
219 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
220 Handle watch for both read and write.
3fad2ad2
J
221 (Fdbus_init_bus): Also register xd_toggle_watch.
222 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
223 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
224 to dbus_connection_flush.
70e31436 225 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
226 Call xd_read_message_1 until status is COMPLETE.
227
dce4c2ac
DN
2282010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
229
230 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
231 (init_tty): Reorder code to reduce the number of #ifdefs.
232 No code changes.
dce4c2ac 233
8af55556
TZ
2342010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
235
236 * process.h: Set up GnuTLS support.
237
238 * process.c (make_process, Fstart_process)
239 (read_process_output, send_process): Set up GnuTLS support for
240 process input/output file descriptors.
241
242 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
243
244 * gnutls.c: The source code for GnuTLS support in Emacs.
245
246 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
247
248 * config.in: Set up GnuTLS support.
249
250 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
251 (obj, LIBES): Set up GnuTLS support.
252
83e245c4
JB
2532010-09-26 Juanma Barranquero <lekktu@gmail.com>
254
255 * w32.c (get_emacs_configuration_options): Fix previous change.
256
d24ec09a
CY
2572010-09-25 Chong Yidong <cyd@stupidchicken.com>
258
259 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
260 alive before using it (Bug#6977).
261
b7bdc47c
LMI
2622010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
263
a952d5f3
LMI
264 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
265
266 * dispextern.h: EMACS_INT/int fixup.
267
268 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
269 fixup.
270
b7bdc47c
LMI
271 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
272
41118bd3
EZ
2732010-09-25 Eli Zaretskii <eliz@gnu.org>
274
2452438f
EZ
275 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
276 (Fselect_window, window_scroll_pixel_based)
277 (window_scroll_line_based, Frecenter, Fset_window_configuration):
278 Use EMACS_INT for buffer positions.
279
280 * textprop.c (validate_interval_range, interval_of)
281 (property_change_between_p, Fadd_text_properties)
282 (set_text_properties_1, Fremove_text_properties)
283 (Fremove_list_of_text_properties, Ftext_property_any)
284 (Ftext_property_not_all, copy_text_properties)
285 (text_property_list, extend_property_ranges)
286 (verify_interval_modification): Use EMACS_INT for buffer
287 positions.
288
f877c546
EZ
289 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
290 for buffer positions.
291
292 * process.c (read_process_output, send_process)
293 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
294 and string positions and size.
295
da43f021
EZ
296 * print.c (print_object, print_string, strout): Use EMACS_INT for
297 string indices.
298
299 * minibuf.c (string_to_object): Use EMACS_INT for string position
300 and size.
301
302 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
303
304 * lread.c <read_from_string_index, read_from_string_index_byte>
305 <read_from_string_limit, readchar_count>: Define EMACS_INT.
306 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
307 buffer positions and string length.
308
41118bd3
EZ
309 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
310 EMACS_INT.
311 (echo_truncate, adjust_point_for_property, read_char)
312 (gen_help_event, make_lispy_event, modify_event_symbol)
313 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
314 for buffer positions and string length.
315
316 * keyboard.h (gen_help_event): Adjust prototype.
317
318 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
319
320 * commands.h <last_point_position>: Declare EMACS_INT.
321
322 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
323 (truncate_echo_area): Accept EMACS_INT argument.
324
325 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
326
327 * lisp.h (truncate_echo_area): Adjust prototype.
328
329 * composite.c (composition_adjust_point): Return EMACS_INT.
330
331 * composite.h (composition_adjust_point): Adjust prototype.
332
ba3033ee
JB
3332010-09-25 Juanma Barranquero <lekktu@gmail.com>
334
335 * process.c (Fmake_network_process): When arg :host is 'local,
336 use address 127.0.0.1, not name "localhost". (Bug#6781)
337
4f3a2f8d
EZ
3382010-09-24 Eli Zaretskii <eliz@gnu.org>
339
5816888b
EZ
340 * indent.c (Fcurrent_indentation, indented_beyond_p)
341 (compute_motion): Use EMACS_INT for buffer position variables.
342
343 * lisp.h (indented_beyond_p): Adjust prototype.
344
345 * buffer.c (overlay_strings): Return EMACS_INT.
346
347 * buffer.h (overlay_strings): Adjust prototype.
348
349 * region-cache.c (pp_cache): Adjust format to arguments.
350
351 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
352 (call_debugger): Use EMACS_INT for specpdl_size related variables.
353 (verror): Use EMACS_INT for size of allocated buffer.
354
ace1712c
EZ
355 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
356 positions.
357
358 * xdisp.c (redisplay_internal, try_window_id)
359 (set_cursor_from_row, find_first_unchanged_at_end_row): Use
360 EMACS_INT for buffer positions.
361
f5276b75 362 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
363
364 * dispnew.c (increment_matrix_positions)
365 (increment_row_positions, copy_glyph_row_contents)
366 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
367 positions.
368
369 * dispextern.h (mode_line_string, marginal_area_string)
370 (increment_matrix_positions, increment_row_positions): Adjust
371 prototypes.
372
373 * data.c (Faref, Faset): Use EMACS_INT for string length and
374 positions.
375
376 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
377 characters to insert.
378
379 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
380 position and size.
381
4f3a2f8d
EZ
382 * syntax.c (scan_words, update_syntax_table)
383 (prev_char_comend_first, back_comment, skip_chars)
384 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars): Use
385 EMACS_INT for buffer and string positions.
386
387 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
388
389 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
390 positions.
391
db063399
LMI
3922010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
393
f0812d35
LMI
394 * scroll.c (calculate_scrolling, line_ins_del)
395 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
396 conversion.
397
f5c7fc27
LMI
398 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
399 (region_cache_backward, region_cache_forward)
400 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
401 conversion.
402
db063399
LMI
403 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
404
405 * eval.c (verror): Fix EMACS_INT/int conversion.
406
07914cd0 407 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
408 (print_preprocess, print_check_string_charset_prop)
409 (print_object): Fix EMACS_INT/int conversion.
410
411 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
412
e6d4aefa
EZ
4132010-09-24 Eli Zaretskii <eliz@gnu.org>
414
69481da7
EZ
415 * callproc.c (Fcall_process): Use EMACS_INT for count of
416 characters read from the subprocess.
417
61bfec98
EZ
418 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
419 positions.
420 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
421 positions.
422
145582a0
EZ
423 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
424 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
425 length.
426 (advance_to_char_boundary, Fset_buffer_multibyte)
427 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
428 (overlay_touches_p, record_overlay_string, overlay_strings)
429 (recenter_overlay_lists, fix_start_end_in_overlays)
430 (modify_overlay, Fmove_overlay, report_overlay_modification)
431 (evaporate_overlays): Use EMACS_INT for buffer positions.
432
433 * lisp.h (fix_start_end_in_overlays, overlay_touches_p): Adjust
434 prototypes.
435
446470a9
EZ
436 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
437 positions.
438
e6d4aefa
EZ
439 * fns.c (Fcompare_strings, Fstring_lessp, concat)
440 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
441 (Fsubstring_no_properties, substring_both, Ffillarray)
442 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
443 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
444 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
445 (Fmd5): Use EMACS_INT for buffer and string positions and length
446 variables and arguments.
447
448 * lisp.h (substring_both): Adjust prototype.
449
eb652396
JB
4502010-09-24 Juanma Barranquero <lekktu@gmail.com>
451
452 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
453 * w32fns.c (clipboard_sequence_fn): Don't declare.
454 (globals_of_w32fns): Don't initialize it.
455
266a86bd 4562010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
457
458 * syntax.c (back_comment): Detect the case where a 1-char comment
459 starter is also the 2nd char of a 2-char comment ender.
460
266a86bd 4612010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
462
463 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
464
40283062
LMI
4652010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
466
db063399
LMI
467 * eval.c (verror): EMACS_INT/int cleanup.
468
faf8b5bc
LMI
469 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
470 unwind_protect more than 2GB worth of functions.
471
472 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
473
40283062
LMI
474 * lisp.h: Have oblookup take EMACS_INT to allow interning big
475 string and avoid compiler warnings.
476 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
477 all users.
478
479 * lread.c (oblookup): EMACS_INT/int cleanup.
480
481 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
482
fe3537c3
EZ
4832010-09-23 Eli Zaretskii <eliz@gnu.org>
484
485 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
486
487 * lisp.h (clip_to_bounds): Adjust prototype.
488
489 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
490
0350982f
LMI
4912010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
492
84c9ce05
LMI
493 * lisp.h: doprnt.c EMACS_INT/int cleanup.
494
495 * doprnt.c (doprnt): EMACS_INT/int cleanup.
496
497 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
498 cleanup.
499
0350982f
LMI
500 * lisp.h: Change the definition of all marker.c functions that
501 take and return buffer stuff to be EMACS_INT instead of int.
502
503 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
504 (buf_charpos_to_bytepos, bytepos_to_charpos)
505 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
506 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
507 for all buffer positions.
508
c50bd0d2
CY
5092010-09-23 Chong Yidong <cyd@stupidchicken.com>
510
511 * intervals.c (traverse_intervals, rotate_right, rotate_left)
512 (split_interval_right, find_interval, next_interval)
513 (delete_node, delete_interval, interval_deletion_adjustment)
514 (adjust_intervals_for_deletion, merge_interval_right)
515 (merge_interval_left, graft_intervals_into_buffer)
516 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
517
518 * intervals.h (traverse_intervals): Update prototype.
519
14162469
EZ
5202010-09-23 Eli Zaretskii <eliz@gnu.org>
521
c098fdb8
EZ
522 * indent.c (compute_motion): Use EMACS_INT for arguments to
523 region_cache_forward.
524
525 * region-cache.c (struct boundary, struct region_cache): Use
526 EMACS_INT for positions.
527 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
528 (delete_cache_boundaries, set_cache_region)
529 (invalidate_region_cache, know_region_cache)
530 (region_cache_forward, region_cache_backward, pp_cache): Use
531 EMACS_INT for buffer positions.
532
533 * region-cache.h (know_region_cache, invalidate_region_cache)
534 (region_cache_forward, region_cache_backward): Adjust prototypes.
535
536 * search.c (string_match_1, fast_c_string_match_ignore_case)
537 (looking_at_1, scan_buffer, scan_newline)
538 (find_next_newline_no_quit, find_before_next_newline)
539 (search_command, trivial_regexp_p, search_buffer, simple_search)
540 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
541 and string positions and length.
542
caefdbe7
EZ
543 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
544 (find_before_next_newline): Adjust prototypes.
c098fdb8 545
29cdc13e
EZ
546 * editfns.c (transpose_markers, update_buffer_properties)
547 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
548 (get_pos_property, Fconstrain_to_field)
549 (Fline_beginning_position, Fline_end_position, Fprevious_char)
550 (Fchar_after, Fchar_before, Finsert_char)
551 (Finsert_buffer_substring, Fcompare_buffer_substrings)
552 (Fsubst_char_in_region, Fformat, Ftranspose_regions): Use
553 EMACS_INT for buffer and string position variables.
c098fdb8 554 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
555
556 * lisp.h (clip_to_bounds): Adjust prototype.
557
e79123aa
EZ
558 * intervals.c (traverse_intervals, rotate_right, rotate_left)
559 (balance_an_interval, split_interval_right, split_interval_left)
560 (find_interval, next_interval, update_interval)
561 (adjust_intervals_for_insertion, delete_node, delete_interval)
562 (interval_deletion_adjustment, adjust_intervals_for_deletion)
563 (offset_intervals, merge_interval_right, merge_interval_left)
564 (graft_intervals_into_buffer, adjust_for_invis_intang)
565 (move_if_not_intangible, get_local_map, copy_intervals)
566 (copy_intervals_to_string, compare_string_intervals)
567 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 568 and for interval tree size.
e79123aa
EZ
569
570 * intervals.h (traverse_intervals, split_interval_right)
571 (split_interval_left, find_interval, offset_intervals)
572 (graft_intervals_into_buffer, copy_intervals)
573 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
574 (update_interval): Adjust prototypes.
575
579c18d0
EZ
576 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
577 Use EMACS_INT for buffer position variables and arguments.
578
579 * composite.c (get_composition_id, find_composition)
580 (run_composition_function, compose_text)
581 (composition_gstring_width, autocmp_chars)
582 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
583 for buffer positions and string length variables and arguments.
584
585 * composite.h (get_composition_id, find_composition, compose_text)
586 (composition_gstring_width): Adjust prototypes.
587
588 * editfns.c (Fformat): Use EMACS_INT for string size variables.
589
590 * xdisp.c (store_mode_line_noprop, display_mode_element): Use
591 EMACS_INT for string positions.
592
593 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
594 position arguments.
595
596 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
597
598 * character.c (parse_str_as_multibyte, str_as_multibyte)
599 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0
EZ
600 (string_count_byte8, string_escape_byte8, c_string_width)
601 (strwidth, lisp_string_width, multibyte_chars_in_text): Use
602 EMACS_INT for string length variables and arguments.
14162469
EZ
603
604 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0
EZ
605 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
606 (c_string_width, strwidth, lisp_string_width): Adjust
14162469
EZ
607 prototypes.
608
579c18d0
EZ
609 * font.c (font_intern_prop): Use EMACS_INT for string length
610 variables.
611
612 * font.c (font_intern_prop): Use EMACS_INT for string length
613 variables.
614
14162469
EZ
615 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
616 variables.
617
618 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
619 (Fmake_string): Protect against too large strings.
620 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
621 (live_misc_p): Use ptrdiff_t instead of int for pointer
622 differences.
623 (string_bytes, check_sblock, check_string_free_list)
624 (allocate_string_data, compact_small_strings, Fmake_string)
625 (Fmake_bool_vector, make_string, make_unibyte_string)
626 (make_multibyte_string, make_string_from_bytes)
627 (make_specified_string_string, Fmake_list, Fmake_vector): Use
628 EMACS_INT for string length variables and arguments.
629 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
630 (Fpurecopy): Use EMACS_INT for string size.
631 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
632 for vector size.
633
634 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
635 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
636 (make_pure_string, string_bytes, check_point_in_composition):
637 Adjust prototypes.
14162469 638
c8a66ab8
EZ
6392010-09-22 Eli Zaretskii <eliz@gnu.org>
640
641 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
642 (check_translation): Use EMACS_INT for buffer positions and
643 length.
644
645 * undo.c (record_marker_adjustment, record_delete)
646 (record_change, record_point, record_insert)
647 (record_property_change, Fprimitive_undo): Use EMACS_INT for
648 buffer positions.
649
650 * lisp.h (record_marker_adjustment, record_delete)
651 (record_change, record_point, record_insert)
652 (record_property_change, Fprimitive_undo): Adjust prototypes.
653
38c54d9d
JB
6542010-09-22 Juanma Barranquero <lekktu@gmail.com>
655 Eli Zaretskii <eliz@gnu.org>
656
657 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
658
413d18e7
EZ
6592010-09-22 Eli Zaretskii <eliz@gnu.org>
660
661 * minibuf.c (Fminibuffer_contents)
662 (Fminibuffer_contents_no_properties)
663 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
664 positions.
665
666 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
667 mark.
668
669 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
670 (allocate_string_data): Accept EMACS_INT for string length.
671
672 * editfns.c (Ffield_string, Ffield_string_no_properties)
673 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
674 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
675 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
676 (Ffield_end): Use EMACS_INT for buffer positions.
677
678 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
679 point with mark.
680
681 * lisp.h (allocate_string_data, make_uninit_string)
682 (make_uninit_multibyte_string, make_buffer_string)
683 (make_buffer_string_both): Adjust prototypes.
684
4b9832a6
CY
6852010-09-22 Chong Yidong <cyd@stupidchicken.com>
686
687 * xml.c: Switch to GNU indentation.
688 (make_dom): Change parse tree format to match xml.el.
689 (Fxml_parse_html_string_internal): Rename from html-parse-string.
690 (Fxml_parse_string_internal): Rename from xml-parse-string.
691
86282aab
KH
6922010-09-22 Kenichi Handa <handa@m17n.org>
693
694 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
695 only if we are not at a composition.
696 (set_iterator_to_next): Give it->end_charpos to
697 composition_compute_stop_pos.
698 (set_iterator_to_next, next_element_from_buffer): Likewise.
699
700 * dispnew.c (buffer_posn_from_coords): Fix position when the
701 current display element is a grapheme cluster in bidi-reordered
702 region.
703
840b985a
AR
7042010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
705
706 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
707 the regions may overlap.
708
5bc88f4b
JB
7092010-09-21 Juanma Barranquero <lekktu@gmail.com>
710
711 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
712
92bc9a36
DN
7132010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
714
d19e096e
DN
715 * emacs.c: Do not include sys/ioctl.h, not needed.
716
92bc9a36
DN
717 * doprnt.c: Do not include stdlib.h, config.h does it.
718 Move #include before macro definition.
719
15f844ac
DN
7202010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
721
48e24408
DN
722 * Makefile.in (temacs): Link using $(CC) not $(LD).
723 (LD_FIRSTFLAG): Define using autoconf.
724 (LD): Remove.
725
65539506
DN
726 Remove HAVE_TERMIOS definitions.
727 * s/usg5-4-common.h (HAVE_TERMIOS):
728 * s/template.h (HAVE_TERMIOS):
729 * s/gnu-linux.h (HAVE_TERMIOS):
730 * s/darwin.h (HAVE_TERMIOS):
731 * s/cygwin.h (HAVE_TERMIOS):
732 * s/bsd-common.h (HAVE_TERMIOS):
733 * s/aix4-2.h (HAVE_TERMIOS):
734 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
735 defined on all non-MS platforms.
736 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
737
15f844ac
DN
738 * xterm.c (xt_action_hook): Use const.
739
7d701334
JB
7402010-09-20 Juanma Barranquero <lekktu@gmail.com>
741
742 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
743 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
744 (gethostname) [!HAVE_SOCKETS]: Remove.
745 (SOCK_REPLACE_HANDLE): Remove macro.
746 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
747 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
748 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
749 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
750
f3ec267a
EZ
7512010-09-18 Eli Zaretskii <eliz@gnu.org>
752
753 * deps.mk (xml.o): Add dependencies.
754
93acd23d
JB
755 * xdisp.c (Fcurrent_bidi_paragraph_direction):
756 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
757
758 * bidi.c (bidi_paragraph_init): Accept an additional argument
759 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
760 search back until a paragraph with a strong directional character
761 is found, and use that to determine paragraph's base direction.
762
763 * dispextern.h (bidi_paragraph_init): Update prototype.
764
69e847be
EZ
7652010-09-17 Eli Zaretskii <eliz@gnu.org>
766
767 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
768 of w32api >= 3.15. (Bug#6989)
769
283357a7
LMI
7702010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
771
772 * process.c (wait_reading_process_output): Don't message about
773 accept-process-output unless the time limit really is zero.
774
4ddb20d6
SM
7752010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
776
777 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
778 int/Lisp_Object mixup).
779
e24ad6dd
J
7802010-09-17 Jan Djärv <jan.h.d@swipnet.se>
781
782 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
783 not HELP.
784
fb0cf781
J
7852010-09-17 Stephen Berman <stephen.berman@gmx.net>
786
787 * frame.c (Ftool_bar_pixel_width): New function to expose tool
788 bar's pixel width to Lisp (Bug#7048).
789
4ddb20d6
SM
7902010-09-14 Juanma Barranquero <lekktu@gmail.com>
791
792 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 793
318a04c6
J
7942010-09-17 Jan Djärv <jan.h.d@swipnet.se>
795
796 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
797 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
798
78a21772
KH
7992010-09-17 Kenichi Handa <handa@m17n.org>
800
801 * ftfont.c (ftfont_check_otf): Fix previous change.
802
fa3f6039
KH
8032010-09-14 Kenichi Handa <handa@m17n.org>
804
805 * ftfont.c (ftfont_check_otf): Fix the case of checking just
806 existence of GSUB or GPOS.
807
2b5491fa
JB
8082010-09-14 Juanma Barranquero <lekktu@gmail.com>
809
810 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
811
c97c655f
LMI
8122010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
813
2b5491fa 814 * xml.c (parse_buffer): Renamed to parse_string(), since that's
c97c655f
LMI
815 what it does.
816 (parse_string): Return nil when the document can't be parsed.
817
6664fc59 8182010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
819
820 * xterm.c (get_current_vm_state): New function.
821 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
822 want_fullscreen so set_wm_state calls are few (Bug#7013).
823 (x_handle_net_wm_state): Move code to get_current_vm_state and
824 call that function.
825
6664fc59 8262010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
827
828 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
829
6664fc59 8302010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
831
832 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
833 we may use designation or locking-shift.
834
6664fc59 8352010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
836
837 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
838 sequence when the source is multibyte.
839
1da70e99
AS
8402010-09-14 Andreas Schwab <schwab@linux-m68k.org>
841
6664fc59
JB
842 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
843 Don't make first argument optional. Doc fix.
1da70e99 844
26632d8d
LMI
8452010-09-14 Leo <sdl.web@gmail.com> (tiny change)
846
847 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
848 parameters for the doc string.
849
21fa8e37
LMI
8502010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
851
852 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
853
5616cc54
SM
8542010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
855
856 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
857 (syms_of_fns): Don't defsubr Sy_or_n_p.
858 * lisp.h: Don't declare Fy_or_n_p.
859 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
860
381408e2
LMI
8612010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
862
863 * xml.c (Fxml_parse_buffer): New function to parse XML files.
864
8652010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
866
867 * xml.c: New file.
868 (Fhtml_parse_buffer): New function to interface to the libxml2
869 html parsing function.
870
733946e7
JB
8712010-09-05 Juanma Barranquero <lekktu@gmail.com>
872
873 * biditype.h: Regenerate.
874
7574650a
AS
8752010-09-04 Andreas Schwab <schwab@linux-m68k.org>
876
877 * nsimage.m (ns_load_image): Check argument types.
878
879 * image.c: Remove all uses of gcpro.
880 (xpm_load): Check all lisp types.
881 (pbm_load): Likewise.
882 (png_load): Likewise.
883 (jpeg_load): Likewise.
884 (tiff_load): Likewise.
885 (gif_load): Likewise.
886 (imagemagick_load_image): Likewise.
887 (imagemagick_load): Likewise.
888 (svg_load): Likewise.
889 (gs_load): Likewise.
890
6e6b8e25
EZ
8912010-09-04 Eli Zaretskii <eliz@gnu.org>
892
893 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't
894 try to reorder grapheme clusters, since LGSTRING should always
895 hold them in the logical order.
896 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
897 return glyph codes in the logical order.
898
dbfe4532
AS
8992010-09-04 Andreas Schwab <schwab@linux-m68k.org>
900
901 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 902 (imagemagick_load_image): Fix type mismatch.
5e5992c2 903 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 904
6d7cc563
JD
9052010-09-02 Jan Djärv <jan.h.d@swipnet.se>
906
907 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
908
909 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
910
911 * xselect.c: Remove declaration of cut-buffer objects and functions.
912 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
913 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
914 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
915 (Fx_rotate_cut_buffers_internal): Remove.
916 (syms_of_xselect): Remove defsubr of above.
917 Remove intern of QCUT_BUFFERn.
918
8f4e9110
SM
9192010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
920
921 * cmds.c (Vblink_paren_function): Remove.
922 (internal_self_insert): Make it insert N chars at a time.
923 Don't call blink-paren-function.
924 (Fself_insert_command): Adjust accordingly.
925 (syms_of_cmds): Don't declare blink-paren-function.
926
d419e1d9
KH
9272010-08-31 Kenichi Handa <handa@m17n.org>
928
929 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
930 characters.
931
932 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
933 (produce_glyphs): Don't set it->char_to_display here.
934 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
935 (produce_special_glyphs): Set temp_it.char_to_display before
936 calling produce_glyphs.
937
938 * xdisp.c (get_next_display_element): Set it->char_to_display
939 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
940 characters.
941 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
942 calling PRODUCE_GLYPHS.
943 (append_space_for_newline): Save and store it->char_to_display.
944 Set it->char_to_display before calling PRODUCE_GLYPHS.
945 (extend_face_to_end_of_line): Set it->char_to_display before
946 calling PRODUCE_GLYPHS.
947 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
948 character to its byte value.
949 (get_char_glyph_code): New function.
950 (produce_stretch_glyph): Set it2.char_to_display too before
951 calling x_produce_glyphs.
952 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
953 non-ASCII characters. Don't set it->char_to_display here.
954 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 955 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 956
b819f760
SM
9572010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
958
959 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
960
07fa68a7
CY
9612010-08-31 Chong Yidong <cyd@stupidchicken.com>
962
963 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
964
cd196f12
SM
9652010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
966
967 * marker.c (Fcopy_marker): Make the first arg optional.
968
49a752bb
KH
9692010-08-30 Kenichi Handa <handa@m17n.org>
970
971 * composite.c (composition_update_it): Fix computing of
972 cmp_it->width.
973
769ae9e1
KH
9742010-08-29 Kenichi Handa <handa@m17n.org>
975
9e69cb05 976 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 977 corresponding bytes.
9e69cb05 978
4520b858
J
9792010-08-29 Jan Djärv <jan.h.d@swipnet.se>
980
981 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
982
fe50eb41
KH
9832010-08-26 Kenichi Handa <handa@m17n.org>
984
985 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
986 on calling composition_compute_stop_pos.
987
f6aa6ec6
KH
9882010-08-25 Kenichi Handa <handa@m17n.org>
989
9dfdbc0a
KH
990 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
991 :otf.
992
f6aa6ec6
KH
993 * composite.c (composition_compute_stop_pos): Don't break
994 composition at PT.
995 (composition_reseat_it): Likewise. Fix calculation of character
996 position starting a composition.
997 (Fcomposition_get_gstring): Don't limit the number of components
998 for automatic composition.
999
ff94e32c
KH
10002010-08-25 Kenichi Handa <handa@m17n.org>
1001
1002 * composite.c (composition_compute_stop_pos): In forward search,
1003 pay attention to the possibility that some character after ENDPOS
1004 will be composed with charactrs before ENDPOS.
1005
1c409d0b
CY
10062010-08-24 Chong Yidong <cyd@stupidchicken.com>
1007
1008 * keyboard.c (command_loop_1): Don't clobber primary selection
1009 during handle-switch-frame (Bug#6872).
1010
0c372655
MA
10112010-08-23 Michael Albinus <michael.albinus@gmx.de>
1012
1013 * dbusbind.c: Accept UNIX domain sockets as bus address.
1014 (Fdbus_close_bus): New function.
1015 (Vdbus_registered_buses): New variable.
1016 (xd_initialize): Implement string as bus address.
1017 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
1018 (Fdbus_get_unique_name, Fdbus_call_method)
1019 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1020 (Fdbus_method_error_internal, Fdbus_send_signal)
1021 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
1022 check. This is done in xd_initialize_bus. Adapt doc string, if
1023 necessary.
1024 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
1025 Vdbus_registered_buses.
1026 (Vdbus_registered_objects_table): Create hash.
1027
7133b7ee
JL
10282010-08-22 Juri Linkov <juri@jurta.org>
1029
1030 * keyboard.c (Fexecute_extended_command): Move reading a command name
1031 with `completing-read' to a new Elisp function `read-extended-command'.
1032 Call it to read a command to `function' (bug#5364, bug#5214).
1033
198a7a97
CY
10342010-08-22 Chong Yidong <cyd@stupidchicken.com>
1035
1036 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
1037
b0126eac 10382010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
1039
1040 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
1041 instead of SAFE_ALLOCA.
1042
b0126eac 10432010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
1044
1045 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
1046 (Bug#6214).
1047
b0126eac 10482010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
1049
1050 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
1051
b0126eac
CY
10522010-08-22 Jan Djärv <jan.h.d@swipnet.se>
1053
1054 * doc.c (Fsnarf_documentation): Initialize skip_file before
1055 build-files test.
1056
692f3ddc 10572010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 1058
692f3ddc
JB
1059 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
1060 New definitions.
b0126eac
CY
1061 (HAVE_TERMIO): Remove.
1062
5f2f0bc1
EZ
10632010-08-22 Eli Zaretskii <eliz@gnu.org>
1064
b613941b
EZ
1065 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
1066
a583bbef
EZ
1067 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
1068 for w32.
1069
1070 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
1071 it's done in nt/config.nt.
1072
1073 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
1074
5f2f0bc1
EZ
1075 * unexcoff.c (report_error, make_hdr, write_segment)
1076 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
1077 Convert argument lists and prototypes to ANSI C.
1078 (make_hdr, write_segment): Remove unused variables.
1079 (unexec): Remove commented-out line. Initialize `new' to shut up
1080 compiler warnings.
1081
a7ebc409
DN
10822010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
1083
1084 Simplify termio code.
1085 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
1086 HAVE_TERMIO code is obsolete.
1087 Replace HAVE_TERMIOS conditionals with !DOS_NT.
1088 * systty.h: Do not define HAVE_TCATTR.
1089 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
1090 Do not define EMACS_HAVE_TTY_PGRP. Only define
1091 EMACS_GET_TTY_PGRP for !DOS_NT.
1092 * sysdep.c: Include sysselect.h unconditionally. Do not include
1093 sys/ioctl.h and termios.h, systty.h does it. Use
1094 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
1095 (init_baud_rate): Remove HAVE_TERMIO code.
1096 (child_setup_tty): Remove HAVE_TERMIO code.
1097 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
1098 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
1099 (new_ltchars, new_tchars): Remove, unused.
1100 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
1101 code. Remove special casing for __mips__, it was a no-op. Remove
1102 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
1103 (init_sys_modes): Remove HPUX special case.
1104 * process.c: Include stdlib.h unconditionally. Do not include
1105 fcntl.h, systty.h does it. Remove conditional code for
1106 HAVE_SERIAL, it is always true.
1107 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
1108 always true when SIGNALS_VIA_CHARACTERS is true.
1109 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
1110 !WINDOWSNT means HAVE_TERMIOS.
1111 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
1112 conditional, which is true for all HAVE_TERMIOS systems.
1113 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
1114 instead of HAVE_TERMIOS.
1115 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
1116 EMACS_HAVE_TTY_PGRP.
1117 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
1118 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
1119 anyway.
1120
40629f17
EZ
11212010-08-21 Eli Zaretskii <eliz@gnu.org>
1122
1123 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
1124 mirroring pixel positions.
1125
d931da8c
DN
11262010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
1127
b5c76d0c
DN
1128 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
1129 write only.
1130 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
1131 malloc_sbrk_used, nothing uses them.
1132
74815588
DN
1133 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
1134 defined, unconditionally defined in lisp.h.
1135
f5817d1c
DN
1136 * term.c: Do not include <termios.h>, systty.h does it.
1137
d931da8c
DN
1138 * s/unixware.h (HAVE_TCATTR):
1139 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
1140 systty.h defines it when HAVE_TERMIOS is defined.
1141
ff2de6d2 11422010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 1143
b43c883c 1144 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 1145 terminals: add one-character offset for R2L lines.
b43c883c 1146
491a1546
EZ
1147 * emacs.c <emacs_version>: Add a comment regarding
1148 msdos/mainmake.v2's dependency on the syntax of this declaration.
1149
2396cbba
EZ
11502010-08-20 Eli Zaretskii <eliz@gnu.org>
1151
1152 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
1153 position for R2L lines by mirroring the pixel position wrt the
1154 text are box. Improve commentary.
1155
7df6150a
AS
11562010-08-20 Andreas Schwab <schwab@linux-m68k.org>
1157
1158 * image.c (imagemagick_clear_image): Remove debugging output.
1159
a2e5caf7
SM
11602010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1161
1162 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
1163 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
1164 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
1165 self-insert-face.
1166 (syms_of_cmds): Initialize the new vars.
1167
20d60baf
JR
11682010-08-19 Jason Rumney <jasonr@gnu.org>
1169
cc477da7
JR
1170 * w32menu.c (set_frame_menubar): Remove call to undefined function.
1171
20d60baf
JR
1172 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
1173
2c0ac867
J
11742010-08-19 Jan Djärv <jan.h.d@swipnet.se>
1175
1176 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
1177
93352106
EZ
11782010-08-18 Eli Zaretskii <eliz@gnu.org>
1179
1180 * xterm.c (x_draw_bar_cursor):
1181 * w32term.c (x_draw_bar_cursor): If the character under cursor is
1182 R2L, draw the bar cursor on its right rather than on its left.
1183
c785836d
SM
11842010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
1185
0193499f
SM
1186 * eval.c (Fdefmacro): Only obey one declaration.
1187
c785836d
SM
1188 * casefiddle.c (casify_region): Setup gl_state.
1189
9cb728a5
J
11902010-08-18 Jan Djärv <jan.h.d@swipnet.se>
1191
1192 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
1193
e1e18511
J
11942010-08-18 Jan Djärv <jan.h.d@swipnet.se>
1195
1d77b63e 1196 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 1197
64cb6c78
J
11982010-08-18 David De La Harpe Golden <david@harpegolden.net>
1199
1200 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
1201 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
1202 QPRIMARY => NXPrimaryPboard.
1203 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
1204 NXPrimaryPboard => QPRIMARY.
1205 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
1206 NXSecondaryPboard = SecondarySelection.
1207 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
1208
0c9b8993
GM
12092010-08-18 Joakim Verona <joakim@verona.se>
1210
1211 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
1212 defined:
1213 (imagemagick_image_p): New function to test for ImageMagic image.
1214 (imagemagick_load): New function to load ImageMagick image.
1215 (imagemagick_load_image): New function, helper for imagemagick_load.
1216 (imagemagick-types): New function.
1217 (Qimagemagick): New Lisp_object.
1218 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 1219
c3554f68
SM
12202010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
1221
1222 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
1223 is a string.
1224
1ff2e434
J
12252010-08-17 Jan Djärv <jan.h.d@swipnet.se>
1226
1227 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
1228 x_set_tool_bar_position handler.
1229
0cc56427
EZ
12302010-08-17 Eli Zaretskii <eliz@gnu.org>
1231
1232 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
1233 x_set_tool_bar_position handler, needed to support changes from
1234 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
1235
e45a249b
JD
12362010-08-16 Jan Djärv <jan.h.d@swipnet.se>
1237
921242c6
J
1238 * nsselect.m: include keyboard.h for QPRIMARY, remove its
1239 declaration (Bug#6863).
573d150b 1240 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 1241
e45a249b
JD
1242 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
1243
1244 * keyboard.h (QPRIMARY): Declare (Bug#6864).
1245
7c23dd44
CY
12462010-08-16 Chong Yidong <cyd@stupidchicken.com>
1247
1248 * keyboard.c (command_loop_1): Avoid setting selection twice,
1249 since it's done in deactivate-mark as well.
1250 (Vselect_active_regions): Change default to t. Replace `lazy'
1251 with non-default value `only', meaning only set PRIMARY for
1252 temporarily active regions.
1253
1254 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
1255 select-active-regions.
1256
0005830c
J
12572010-08-15 Jan Djärv <jan.h.d@swipnet.se>
1258
1259 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
1260 isn't a string.
1261
603dfc72
AS
12622010-08-15 Andreas Schwab <schwab@linux-m68k.org>
1263
1264 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
1265
c25ce9d0
J
12662010-08-15 Jan Djärv <jan.h.d@swipnet.se>
1267
c3554f68
SM
1268 * keyboard.c (parse_tool_bar_item): malloc buf.
1269 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
1270 new_lbl (Bug#6855).
c25ce9d0 1271
5872c762
EZ
12722010-08-14 Eli Zaretskii <eliz@gnu.org>
1273
b236615c
EZ
1274 * xterm.c (x_draw_stretch_glyph_string):
1275 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
1276 the cursor on the right edge of the stretch glyph.
1277
c3554f68
SM
1278 * xdisp.c (window_box_right_offset, window_box_right):
1279 Fix commentary.
b236615c 1280
5872c762
EZ
1281 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
1282 direction when point is inside a run of whitespace characters.
1283
1284 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
1285
e66f9a1b
JR
12862010-08-14 Jason Rumney <jasonr@gnu.org>
1287
1288 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
1289
79d6f59e
CY
12902010-08-14 Chong Yidong <cyd@stupidchicken.com>
1291
1292 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
1293
1c9b4129
JR
12942010-08-13 Jason Rumney <jasonr@gnu.org>
1295
1296 * w32menu.c (simple_dialog_show): Use unicode message box if available.
1297 (MessageBoxW_Proc): New function typedef.
1298 (unicode-message-box): New function pointer.
1299 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
1300
2b4e6277
J
13012010-08-13 Jan Djärv <jan.h.d@swipnet.se>
1302
1303 * frame.h (Qtool_bar_position): Declare.
1304
1305 * xfns.c (Fx_create_frame): Call x_default_parameter for
1306 Qtool_bar_position.
1307
94c97d85
EZ
13082010-08-13 Eli Zaretskii <eliz@gnu.org>
1309
8ee81892
EZ
1310 * unexcoff.c: Remove the parts used when "emacs" is not defined.
1311 (report_error, report_error_1): Ditto.
1312 (write_segment): Remove "#if 0" unused code.
1313 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
1314 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
1315 (start_of_text): Remove unused function (was used only if NO_REMAP
1316 was NOT defined).
1317
891ef8f7
EZ
1318 * msdos.c (IT_set_face): Fix format string to match argument
1319 types.
1320 (IT_write_glyphs, IT_note_mode_line_highlight)
1321 (IT_set_frame_parameters): Remove unused variables.
1322 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
1323 (IT_set_terminal_modes): Disambiguate expression in if clause.
1324 (Fmsdos_remember_default_colors): Return Qnil.
1325 (IT_set_frame_parameters): Add parens to disambiguate boolean
1326 expression for logging the cursor type to termscript.
1327 (keyboard_layout_list, keypad_translate_map)
1328 (grey_key_translate_map): Add braces in inner initializers.
1329 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
1330 (dos_rawgetc): Remove unused label.
1331 (XMenuActivate): Add braces to remove ambiguous `else'.
1332 (dos_ttraw): Always return a value.
1333 (spawnve): Declare.
1334 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
1335
1336 * dosfns.h (x_set_title): Declare.
1337
1338 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
1339 Remove unused variables.
1340
1341 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
1342 variables.
1343 (init_dosfns): Declare get_lim_data.
1344 (system_process_attributes): Declare Fget_internal_run_time.
1345
38e41e0e
EZ
1346 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
1347 list to be consistent with menu.h.
1348
94c97d85
EZ
1349 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
1350 warnings due to mixing of "char *" and "const char *".
1351
c5683ceb
SM
13522010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1353
1354 Introduce a new comment style "c" flag.
1355 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
1356 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
1357 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
1358 (syntax_prefix_flag_p): New function.
1359 (Fstring_to_syntax): Understand new "c" flag.
1360 (Finternal_describe_syntax_value): Recognize new flag; use the
1361 SYNTAX_FLAGS_* macros.
1362 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
1363 comment style to accomodate the new styles.
1364 (back_comment, forw_comment, Fforward_comment, scan_lists)
1365 (scan_sexps_forward): Update code to obey the new comment style flag.
1366
1367 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
1368
1369 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
1370
7aee76f4
J
13712010-08-11 Jan Djärv <jan.h.d@swipnet.se>
1372
3a46642b
J
1373 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
1374 first.
94dff98f 1375 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
1376
1377 * gtkutil.h (xg_check_special_colors): Declare.
1378
1379 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
1380 (xg_create_frame_widgets): Connect theme name changes to
1381 style_changed_cb.
1382
42ca4633
J
1383 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
1384 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
1385 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 1386 string literal. file is const char*.
42ca4633
J
1387
1388 * xsmfns.c (NOSPLASH_OPT): Change to char[].
1389 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
1390 props. Free them at the end.
1391
1392 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
1393
c5683ceb
SM
1394 * xrdb.c (get_system_app): Make path const and use char *p for
1395 non-const char.
42ca4633
J
1396
1397 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 1398 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
1399 char *.
1400 (button_names): Is const char *.
1401 (xdialog_show): error_name and pane_string is const.
1402
1403 * process.h (synch_process_death): Is const char*.
1404
1405 * w32menu.c (w32_menu_show):
1406 * nsmenu.m (ns_menu_show): error parameter is const char **.
1407
1408 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
1409 is const char **.
1410
1411 * menu.c (Fx_popup_menu): error_name is const.
1412
1413 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
1414 with unsigned char and XtPointer with void *.
1415
1416 * gtkutil.h: Replace widget_value with struct _widget_value.
1417 (enum button_type, struct _widget_value): Remove and use the one from
1418 keyboard.h.
1419
1420 * gtkutil.c (get_utf8_string): Always return an allocated string.
1421 Parameter is const.
1422 (create_dialog, xg_create_one_menuitem, create_menus)
1423 (xg_item_label_same_p, xg_update_menu_item): Free result from
1424 get_utf8_string.
1425 (xg_separator_p, xg_item_label_same_p): label is const.
1426
1427 * font.h (font_open_by_name): Make name const.
1428
1429 * font.c (font_open_by_name): Make name const.
1430
1431 * floatfns.c (matherr): Use a const char* variable for x->name.
1432
1433 * emacs.c (main): Pass char[] to putenv instead of literal.
1434
1435 * callproc.c (synch_process_death): Make const.
1436 (Fcall_process): Make signame const.
1437
9c5bd55a
J
1438 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
1439 (addDisplayItemWithImage): Use const char*.
1440
1441 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
1442 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
1443
1444 * nsfont.m (ns_descriptor_to_entity): Use const char*.
1445
1446 * keyboard.h (_widget_value): name, value and key are const char*.
1447
7aee76f4
J
1448 * unexmacosx.c (unexec_error): Use const char *.
1449
09d93395
DN
14502010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
1451
1452 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 1453 (font_parse_name, font_open_by_name):
09d93395 1454 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 1455 (font_parse_name, font_open_by_name): Remove const.
09d93395 1456
671d409f
AS
14572010-08-09 Andreas Schwab <schwab@linux-m68k.org>
1458
1459 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
1460 definition.
1461
1462 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
1463 * m/amdx86-64.h: Likewise.
1464 * m/arm.h: Likewise.
1465 * m/hp800.h: Likewise.
1466 * m/ia64.h: Likewise.
1467 * m/ibmrs6000.h: Likewise.
1468 * m/ibms390.h: Likewise.
1469 * m/intel386.h: Likewise.
1470 * m/iris4d.h: Likewise.
1471 * m/m68k.h: Likewise.
1472 * m/macppc.h: Likewise.
1473 * m/mips.h: Likewise.
1474 * m/sh3.h: Likewise.
1475 * m/sparc.h: Likewise.
1476 * m/template.h: Likewise.
1477 * m/vax.h: Likewise.
1478 * m/xtensa.h: Likewise.
1479 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
1480 WORDS_BIG_ENDIAN.
1481 * lisp.h: Likewise.
1482 * md5.c: Likewise.
1483 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
1484
8ea90aa3
DN
14852010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
1486
1487 Use const char* instead of char*.
1488 Reduce the number of warnings with -Wwrite-strings.
1489 * xrdb.c (get_environ_db, get_system_name):
1490 * unexelf.c (find_section):
1491 * term.c (string_cost, string_cost_one_line, per_line_cost)
1492 (get_named_tty, init_tty):
1493 * sysdep.c (sys_subshell):
1494 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
1495 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
1496 * search.c (Freplace_match):
1497 * process.c (Fmake_network_process, send_process, init_process):
1498 * lread.c (Fload, init_lread):
1499 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
1500 * keyboard.c (parse_tool_bar_item, struct event_head):
1501 * gtkutil.h (xg_get_font_name):
1502 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
1503 (make_widget_for_menu_item, make_menu_item, create_menus)
1504 (xg_make_tool_item):
1505 * font.c (parse_matrix, font_parse_name):
1506 * floatfns.c (rounding_driver, float_error_fn_name):
1507 * filelock.c (get_boot_time_1, lock_file_1):
1508 * fileio.c (barf_or_query_if_file_exists, check_writable):
1509 * editfns.c (get_system_name, get_operating_system_release)
1510 (Fencode_time, Fset_time_zone_rule):
1511 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
1512 * buffer.c (defvar_per_buffer): Use const.
1513
7815fe19 15142010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 1515
692f3ddc 1516 * charset.c: Include <stdlib.h>.
7a84eee5
KH
1517 (struct charset_sort_data): New struct.
1518 (charset_compare): New function.
692f3ddc 1519 (Fsort_charsets): New function.
7a84eee5
KH
1520 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
1521
1522 * coding.c (decode_coding_iso_2022): Fix checking of dimension
1523 number in CTEXT extended segment.
1524
7815fe19 15252010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
1526
1527 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
1528 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
1529
7815fe19 15302010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
1531
1532 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
1533 (Fhash_table_size): Fix typos in docstrings.
1534 (Fmake_hash_table): Doc fix.
1535
7815fe19 15362010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
1537
1538 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
1539 Doc fix (bug#5625).
1540
7815fe19 15412010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
1542
1543 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
1544 the MSDOS definition.
1545
1b6d8cf0
DN
15462010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
1547
675e2c69
DN
1548 Use const char* instead of char*.
1549 * xterm.c (x_create_toolkit_scroll_bar):
1550 * xfont.c (xfont_list_pattern):
1551 * xfns.c (x_default_scroll_bar_color_parameter)
1552 (xic_create_fontsetname, x_default_font_parameter)
1553 (x_screen_planes):
1554 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
1555 (store_mode_line_string, decode_mode_spec, display_string):
1556 * menu.c (digest_single_submenu):
1557 * keymap.h (initial_define_key, initial_define_lispy_key):
1558 * keymap.c (initial_define_key, initial_define_lispy_key):
1559 * image.c (image_error, image_keyword):
1560 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
1561 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
1562 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
1563 (ftfont_list, ftfont_match):
1564 * frame.c (frame_parm_table):
1565 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1566 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1567 (font_add_log, font_deferred_log):
1568 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1569 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1570 (font_add_log, font_deferred_log):
1571 * emacs.c (argmatch):
1572 * dispextern.h (struct it):
1573 * coding.c (ENCODE_DESIGNATION):
1574 * charset.c (define_charset_internal): Use const.
1575
25717ca1
DN
1576 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
1577
c5683ceb
SM
1578 * xrdb.c: Remove include guard.
1579 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
1580 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
1581 realloc->xrealloc instead of using #defines.
1582
efb41e21
EZ
15832010-08-08 Eli Zaretskii <eliz@gnu.org>
1584
cd21226d 1585 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
1586 * editfns.c (Fline_beginning_position, Fline_end_position):
1587 State in the doc strings that start and end of line are in the
1588 logical order.
cd21226d 1589
efb41e21
EZ
1590 * xdisp.c (display_line): Move the handling of overlay arrow after
1591 the call to find_row_edges. (Bug#6699)
1592
746812d9
CY
15932010-08-07 Chong Yidong <cyd@stupidchicken.com>
1594
1595 * keyboard.c (command_loop_1):
1596 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
1597
9852377f
CY
15982010-08-07 Chong Yidong <cyd@stupidchicken.com>
1599
1600 * insdel.c (prepare_to_modify_buffer): Save active region text to
1601 Vsaved_region_selection.
1602
1603 * xselect.c (QPRIMARY): Move to keyboard.c.
1604
1605 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
1606 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
1607 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 1608
0e9c8657
JB
16092010-08-07 Juanma Barranquero <lekktu@gmail.com>
1610
1611 * alloc.c (lisp_malloc):
1612 * buffer.c (set_buffer_internal, set_buffer_internal_1):
1613 * charset.h (emacs_mule_charset):
1614 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
1615 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
1616 (bitch_at_user):
1617 * lisp.h (Fcheck_coding_system, Fget_text_property)
1618 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
1619 Remove duplicate declarations.
1620
648801d1
DN
16212010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1622
32bc6709
DN
1623 * process.c: Simplify include logic.
1624
3ef1d108
DN
1625 * keyboard.h (quit_char): Add declaration.
1626 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
1627 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
1628 Add declarations.
3ef1d108
DN
1629 * sysdep.c:
1630 * w32.c: Remove the above declarations.
1631
97ec208f
DN
1632 Remove extern declarations in .c files, .h files have them.
1633 * xterm.c:
1634 * xdisp.c:
97ec208f
DN
1635 * msdos.c:
1636 * image.c:
1637 * gtkutil.c:
1638 * fileio.c:
1639 * eval.c: Remove declarations.
1640
94eed851
DN
1641 * frame.c (frame_params): Make const.
1642
36e053eb
DN
1643 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
1644
0e843971
DN
1645 * emacs.c (emacs_copyright, emacs_version): Make static.
1646 (Vinitial_window_system, Vauto_save_list_file_name)
1647 (Vinhibit_redisplay): Remove declarations.
1648 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
1649 for AIX.
1650
648801d1
DN
1651 Use const for some arrays and functions.
1652 * xterm.h (xg_set_icon_from_xpm_data):
1653 * xfns.c (xg_set_icon_from_xpm_data):
1654 * term.c (fkeys):
1655 * keyboard.c (lispy_accent_keys, lispy_function_keys)
1656 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
1657 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
1658 (frame.c frame_parms):
1659 * emacs-icon.h (gnu_xpm_bits):
1660 * callint.c (callint_argfuns): Use const.
1661
8646d999
J
16622010-08-06 Jan Djärv <jan.h.d@swipnet.se>
1663
1664 * sysdep.c: Move include term.h last of includes (Bug#6812).
1665
cb4545ad
EZ
16662010-08-06 Eli Zaretskii <eliz@gnu.org>
1667
1668 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
1669
1670 * msdos.c (IT_display_cursor): Log cursor position on termscript.
1671
1672 * .gdbinit (pgx): Display the avoid_cursor_p flag.
1673
da7e2be6
JB
16742010-08-06 Juanma Barranquero <lekktu@gmail.com>
1675
1676 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
1677
3d608a86
J
16782010-08-06 Jan Djärv <jan.h.d@swipnet.se>
1679
7908fb60
J
1680 * xterm.h (x_get_focus_frame): Declare.
1681
1682 * keyboard.h (poll_for_input_1): Unconditionally declare.
1683
4094bf36
J
1684 * nsterm.h (x_set_menu_bar_lines): Declare.
1685
1686 * window.c: Don't include menu.h, it depends on lots of other .h-files.
1687
3d608a86
J
1688 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
1689
1690 * window.c: Include menu.h.
1691
1692 * unexmacosx.c (print_region_list, print_regions)
1693 (build_region_list, find_emacs_zone_regions)
1694 (unexec_regions_merge, read_load_commands, dump_it)
1695 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
1696
1697 * term.c: Check HAVE_SYS_IOCTL_H.
1698
686b968e 1699 * sysdep.c: Check HAVE_TERM_H.
3d608a86 1700
686b968e 1701 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
1702
1703 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
1704 (ns_ring_bell, ns_defined_color, hide_hourglass)
1705 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
1706 Convert to ANSI C prototypes.
1707 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
1708 before code.
1709
1710 * nsterm.h : Include sysselect.h.
1711 (x_sync, x_get_focus_frame, x_set_mouse_position)
1712 (x_set_mouse_pixel_position, x_make_frame_visible)
1713 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
1714 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
1715 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
1716 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 1717 Declare.
3d608a86
J
1718
1719 * nsmenu.m (popup_activated, name_is_separator)
1720 (syms_of_nsmenu): Convert to ANSI C prototypes.
1721 (runMenuAt): Prototypes and move declarations before code.
1722
1723 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
1724
1725 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
1726 prototypes.
1727
1728 * nsfns.m (have_menus_p, ns_display_info_for_name)
1729 (x_set_cursor_type, ns_appkit_version_str)
1730 (ns_appkit_version_int, ns_do_applescript)
1731 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
1732 (syms_of_nsfns): Convert to ANSI C prototypes.
1733
1734 * menu.h (x_set_menu_bar_line): Declare.
1735 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
1736
1737 * lisp.h (fmod_float): Declare.
1738
1739 * image.c (xpm_scan, xpm_make_color_table_v)
1740 (xpm_put_color_table_v, xpm_get_color_table_v)
1741 (xpm_make_color_table_h, xpm_put_color_table_h)
1742 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
1743 (xpm_load): Convert to ANSI C prototypes.
1744
1745 * emacs.c: Include nsterm.h if HAVE_NS.
1746
1747 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
1748
fce70521
DN
17492010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1750
1751 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
1752 subprocesses, only MSDOS does not define HAVE_SOCKETS.
1753 (socket_options): Use const char* for name.
1754
a11889ab
JB
17552010-08-06 Juanma Barranquero <lekktu@gmail.com>
1756
1757 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
1758
1759 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
1760 Don't declare xmalloc_widget_value and digest_single_submenu.
1761
1762 * w32font.c (Qlatin): Remove declaration.
1763
1764 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
1765
c95b508f 1766 * dired.c (compile_pattern): Restore declaration.
a11889ab 1767
6254cdda
DN
17682010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
1769
04bab72c
DN
1770 Remove extern declarations in .c files, .h files have them.
1771 * data.c:
1772 * dired.c:
1773 * editfns.c:
1774 * filelock.c:
1775 * fns.c:
1776 * font.c:
1777 * fontset.c:
1778 * frame.c:
1779 * fringe.c:
1780 * ftfont.c:
1781 * gtkutil.c:
1782 * indent.c:
1783 * keyboard.c:
1784 * keymap.c:
1785 * lread.c:
1786 * menu.c:
1787 * print.c:
1788 * search.c:
1789 * sound.c:
1790 * window.c:
1791 * xdisp.c:
1792 * xfaces.c:
1793 * xfns.c:
1794 * xfont.c:
1795 * xftfont.c:
1796 * xmenu.c:
1797 * xterm.c: Remove declarations.
1798
dff94ed5
DN
1799 Cleanup syssignal.h.
1800 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
1801 (main_thread): Move down to remove #ifdef.
1802 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
1803 Remove conditional definition following unconditional ones.
1804
99f3388e
DN
1805 * lisp.h: Remove HAVE_SHM code, unused.
1806 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
1807 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
1808 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
1809 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
1810 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
1811 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
1812 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
1813 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
1814 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
1815 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
1816 (Qwindow_scroll_functions, Vafter_load_alist)
1817 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
1818 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
1819 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
1820 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
1821 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
1822 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
1823 (initial_argv, last_nonmenu_event, load_in_progress)
1824 (noninteractive_need_newline, scroll_margin): Add declarations.
1825
1826 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
1827 declarations, menu.h has them.
1828 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
1829 (Vinput_method_function, Qinput_method_function)
1830 (Qevent_symbol_element_mask, last_event_timestamp):
1831 * dispextern.h (Voverflow_newline_into_fringe):
1832 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
1833 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
1834 (syms_of_w32font, syms_of_nsfont):
1835 * fontset.h (find_font_encoding, Qlatin):
1836 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
1837 (Vtool_bar_mode, set_frame_menubar):
1838 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
1839 * xterm.h (Qx_gtk_map_stock):
1840 * keymap.h (meta_prefix_char): Add declarations.
1841
9f5dd6f2
DN
1842 * term.c: Remove dead code.
1843
6254cdda
DN
1844 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
1845 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
1846 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
1847 which is what was there before BSD_PGRPS was removed.
1848
29cf3e20
EZ
18492010-08-05 Eli Zaretskii <eliz@gnu.org>
1850
1851 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
1852
1853 * unexcoff.c: Renamed from unexec.c.
1854
aaa0a19a
SM
18552010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
1856
1857 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
1858
8d1d9587
JB
18592010-08-03 Johan Bockgård <bojohan@gnu.org>
1860
1861 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 1862 (Bug#6744)
8d1d9587 1863
9a747ba6
JD
18642010-08-02 Jan Djärv <jan.h.d@swipnet.se>
1865
4d464ae4
JD
1866 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
1867 to TRUE if depth of screen is < 16.
1868
ac01763e
JD
1869 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
1870 USE_GTK_TOOLTIP.
e0d62a9b
JB
1871 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
1872 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 1873 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
1874 USE_GTK_TOOLTIP.
1875 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
1876
1877 * xterm.h (USE_GTK_TOOLTIP): New define.
1878 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
1879
9a747ba6
JD
1880 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
1881 to Control-D (Bug#6771).
1882
7b0815ba
JB
18832010-08-02 Juanma Barranquero <lekktu@gmail.com>
1884
1885 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
1886 Wording by Drew Adams <drew.adams@oracle.com>.
1887
aa1859f5
J
18882010-08-01 Jan Djärv <jan.h.d@swipnet.se>
1889
1890 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
1891 ttip_lbl.
1892
1893 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
1894 calling gtk_widget_queue_draw.
1895 (x_free_frame_resources): Call xg_free_frame_widgets.
1896
1897 * xfns.c (x_gtk_use_system_tooltips): New variable.
1898 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
1899 new gtkutil tooltip functions to show the tooltip.
1900 (Fx_hide_tip): Call xg_hide_tooltip.
1901 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
1902
1903 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
1904 (xg_show_tooltip, xg_hide_tooltip): Declare.
1905
1906 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
1907 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
1908 New functions.
aa1859f5
J
1909 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
1910 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
1911 Remove code that is commented out.
1912
76417ef4
SM
19132010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
1914
1915 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
1916
16041401
CY
19172010-07-31 Chong Yidong <cyd@stupidchicken.com>
1918
1919 * xselect.c (x_own_selection): Use list4.
1920
2c09a58f
DN
19212010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
1922
1923 * buffer.c (Qwindow): Do not define, already defined in data.c.
1924 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
1925
59df9fdd 19262010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 1927
59df9fdd
JB
1928 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
1929 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
1930 * config.in: Undef HAVE_DIRENT_H.
1c97e857 1931 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 1932 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 1933
1b231651
DN
19342010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1935
1936 Rename s/usg5-4.h -> s/usg5-4-common.h.
1937 * s/usg5-4.h: Rename file to ...
1938 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
1939 * s/unixware.h:
1940 * s/sol2-6.h:
1941 * s/irix6-5.h: Update includes accordingly.
1942
bfeabdc3
JD
19432010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1944
2ebf1083
J
1945 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
1946
bfeabdc3 1947 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
1948 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
1949 Remove toolbar_height.
1950 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
1951 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
1952 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
1953 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
1954
1955 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1956
1957 * xfns.c (x_set_tool_bar_position): New function.
1958 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
1959 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 1960 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
1961
1962 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
1963 and FRAME_TOOLBAR_LEFT_WIDTH.
1964
1965 * gtkutil.h (xg_change_toolbar_position): Declare.
1966
1967 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
1968 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1969 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
1970 (xg_create_frame_widgets): Create a hobox for placing widgets
1971 vertically. Use gtk_box_pack_start.
1972 (xg_height_or_width_changed): Renamed from xg_height_changed.
1973 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
1974 (xg_update_frame_menubar, free_frame_menubar): Change to
1975 xg_height_or_width_changed.
1976 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
1977 size correctly. Remove hardcoded 4, instead use handlebox size -
1978 toolbar size.
1979 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 1980 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
1981 (xg_pack_tool_bar): POS is a new parameter.
1982 Set orientation of tool bar based on pos.
1983 Only make handlebox_widget if NULL.
1984 Check if tool bar goes to vbox or hbox depending on pos.
1985 (xg_update_tool_bar_sizes): New function.
686b968e 1986 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
1987 height, call xg_update_tool_bar_sizes instead.
1988 (free_frame_tool_bar): Remove from hbox or vbox depending on
1989 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
1990 (xg_change_toolbar_position): New function.
1991
1992 * frame.h (struct frame): Add tool_bar_position.
1993 (Qbottom): Declare.
1994
1995 * frame.c (Qtool_bar_position): New variable.
1996 (make_frame): Set tool_bar_position to Qtop.
1997 (frame_parms): Add tool-bar-position.
1998 (x_report_frame_params): Store tool_bar_position.
1999 (x_set_fringe_width): Reset wm size hint after fringe changes.
2000
26469a38
DN
20012010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2002
2003 Make lisp_time_argument declaration work on all systems.
2004 * lisp.h (lisp_time_argument): Move declaration ...
2005 * systime.h (lisp_time_argument): ... here
2006 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
2007
8848b728
JD
20082010-07-29 Jan Djärv <jan.h.d@swipnet.se>
2009
2010 * vm-limit.c (POINTER): Add typedef for it.
2011 (start_of_data): Change return type from POINTER to char *.
2012
2013 * frame.h (Qtty_color_mode): Move declaration out of ifdef
2014 HAVE_WINDOW_SYSTEM.
2015
76fd1ee9
DN
20162010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2017
0441987e
DN
2018 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
2019 Remove reference to __osf__, unused.
2020
56a000c7
DN
2021 * mem-limits.h: Remove duplicated includes.
2022 (NULL): Remove definition, unused.
2023 (POINTER): Remove definition.
2024 (start_of_data): Use char* in prototype, as the function
2025 definition does.
2026
e6cba650
DN
2027 Remove extern declarations from .c files, and them to .h files.
2028 * keyboard.h (Qhelp_echo, waiting_for_input)
2029 (input_available_clear_time, ignore_mouse_drag_p)
2030 (Vdouble_click_time, real_this_command, Vthis_original_command):
2031 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
2032 (Voverriding_local_map_menu_flag):
2033 * lisp.h (Qinteractive_form, use_file_dialog)
2034 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
2035 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
2036 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2037 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
2038 (Qfunction, debug_on_next_call, Qfield)
2039 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
2040 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
2041 (Qfile_directory_p, Qinsert_file_contents)
2042 (Qcompletion_ignore_case, Qcompletion_ignore_case)
2043 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
2044 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
2045 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
2046 (Qminibuffer_prompt)
2047 (Vtemporary_file_directory,char_ins_del_vector, Qface):
2048 * xterm.h (gray_bitmap_width, gray_bitmap_height)
2049 (gray_bitmap_bits, xic_create_fontsetname):
2050 * coding.h (Vtranslation_table_for_input): Add extern declarations.
2051
2052 * xsmfns.c (Vuser_login_name):
2053 * xrdb.c (Vdouble_click_time):
2054 * xfaces.c (xic_create_fontsetname):
2055 * w32select.c (waiting_for_input):
2056 * print.c (minibuffer_auto_raise):
2057 * msdos.c (Qhelp_echo):
2058 * macros.c (real_this_command):
2059 * keymap.c (Voverriding_local_map):
2060 * xterm.c (poll_for_input_1, gray_bitmap_width)
2061 (gray_bitmap_height, gray_bitmap_bits;
2062 * xmenu.c ( Voverriding_local_map)
2063 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
2064 (use_file_dialog, Xt_app_con):
2065 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
2066 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
2067 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
2068 (Qtool_bar_lines, ignore_mouse_drag_p):
2069 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
2070 (Qrear_nonsticky, nconc2):
2071 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
2072 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
2073 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
2074 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
2075 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
2076 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
2077 (gc_in_progress):
2078 * doc.c (Voverriding_local_map, Qremap):
2079 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
2080 (Vcompletion_regexp_list):
2081 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
2082 (Qcompletion_ignore_case):
2083 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
2084 (Vhistory_length, Vthis_original_command, real_this_command)
2085 (Qface, Qminibuffer_prompt, history_delete_duplicates):
2086 * image.c (Qrisky_local_variable):
2087 * fontset.c (QCname):
2088 * fns.c (minibuffer_auto_raise, QCname):
2089 * dispnew.c (char_ins_del_cost):
2090 * composite.c (font_fill_lglyph_metrics):
2091 * cmds.c (Qface, Vtranslation_table_for_input):
2092 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
2093 * ccl.c (charset_unicode):
2094 * callproc.c (Vtemporary_file_directory):
2095 * buffer.c (emacs_strerror): Remove extern declarations.
2096
2097 * data.c (Qwindow): Make non-static, used from other files too.
2098 * frame.c (validate_x_resource_name): Remove shadow definition for i.
2099
76fd1ee9
DN
2100 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
2101 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
2102 * s/usg5-4.h (COFF):
2103 * s/template.h:
2104 * s/msdos.h (COFF, NO_REMAP):
2105 * s/ms-w32.h (NO_REMAP):
2106 * s/hpux10-20.h (NO_REMAP):
2107 * m/sparc.h (SEGMENT_MASK):
2108 * m/m68k.h (NO_REMAP):
2109 * m/intel386.h (SEGMENT_MASK):
2110 * m/arm.h (NO_REMAP):
2111 * m/alpha.h (COFF):
2112 * m/template.h: Remove references to unused defines.
2113
8a52f00a
JD
21142010-07-28 Jan Djärv <jan.h.d@swipnet.se>
2115
2116 * xsettings.c (Ftool_bar_get_system_style): Also check for
2117 Qtext_image_horiz.
2118
2119 * xdisp.c (Qtext_image_horiz): Define.
2120 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 2121 to documentation of tool-bar-style.
8a52f00a
JD
2122
2123 * lisp.h (Qtext_image_horiz): Declare.
2124
2125 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
2126 style text_image_horiz.
2127
89dc303e
DN
21282010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2129
60799703
DN
2130 * emacs.c (Fkill_emacs): Remove return statement.
2131
37254dc1
DN
2132 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
2133 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
2134 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
2135 local extern declarations.
2136
71c7345a
DN
2137 * xmenu.c: Do not included lwlib.h, not needed.
2138
6ba577cb
DN
2139 * m/iris4d.h (XUINT, XSET): Remove, not needed.
2140
fdb183d6
DN
2141 * process.c: Move definitions earlier to minimize #ifdefs.
2142
2143 * xterm.h (x_get_customization_string, x_load_resources)
2144 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
2145 (x_check_errors, x_property_data_to_lisp, defined_color)
2146 (xic_set_xfontset, x_defined_color): Use const.
2147
2148 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
2149 (x_text_icon, x_check_errors, x_connection_closed): Use const.
2150
2151 * xselect.c (selection_data_to_lisp_data)
2152 (x_property_data_to_lisp):
2153 * xrdb.c (x_get_string_resource, file_p)
2154 (x_get_customization_string, magic_file_p, search_magic_path)
2155 (get_system_app, get_user_app, x_load_resources, x_get_resource)
2156 (x_get_string_resource): Use const.
2157
2158 * xfns.c: Include xlwmenu.h when USE_LUCID.
2159 (x_defined_color, xic_set_xfontset): Use const.
2160 (Fx_hide_tip): Remove local extern declaration.
2161
2162 * xfaces.c (Qmouse_face): Remove declaration.
2163 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 2164 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
2165
2166 * xdisp.c (do_mouse_tracking): Remove declaration.
2167 (add_to_log): Use const.
2168
2169 * minibuf.c (Qmouse_face): Remove declaration.
2170
2171 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
2172
2173 * keyboard.h (do_mouse_tracking): Add declaration.
2174
2175 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
2176 (QCdata, QCtype, Qcenter): Remove declarations.
2177
2178 * frame.c (x_get_resource_string, x_get_string_resource)
2179 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2180 (x_default_parameter): Use const.
2181
2182 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
2183 (QCheight, QCsize, QCname): Remove declarations.
2184
2185 * emacs.c (main): Remove local extern declaration.
2186
2187 * editfns.c (region_limit, syms_of_editfns): Remove local extern
2188 declarations.
2189
2190 * dispnew.c: Remove duplicate #include <unistd.h>.
2191 (update_window, update_frame_1, init_display): Remove local extern
2192 declarations.
2193
2194 * dispextern.h (add_to_log): Remove declaration.
2195 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2196 (x_frame_get_and_record_arg, x_default_parameter): Add const.
2197
2198 * dired.c (scmp): Add const.
2199 (directory_files_internal): Remove local extern declaration.
2200
2201 * data.c (Finteractive_form): Use const.
2202
2203 * composite.c (syms_of_composite): Remove local extern declarations.
2204
2205 * charset.c (add_to_log): Remove declaration.
2206
2207 * character.c (strwidth, parse_str_to_multibyte): Add const.
2208
2209 * character.h (strwidth, parse_str_to_multibyte): Likewise.
2210
2211 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
2212
89dc303e 2213 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
2214 (Lisp_Subr): Make doc and intspec constant.
2215 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
2216 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
2217 (QCheight, QCsize, QCname, QCwidth, QCforeground)
2218 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
2219 (display_arg): Add declarations.
89dc303e 2220
0ed082fe 22212010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
2222
2223 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
2224
0ed082fe
JB
2225 * window.c (Fwindow_height): Doc fix (bug#6518).
2226
22272010-07-27 Juanma Barranquero <lekktu@gmail.com>
2228
2229 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
2230
ccaf0336
DN
22312010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
2232
977105dc
DN
2233 * keyboard.c (Ftop_level, Fexit_recursive_edit)
2234 (Fabort_recursive_edit): Remove return statements in NO_RETURN
2235 functions.
2236
f5ada890
DN
2237 * frame.h (Qtty_color_mode): Add declaration.
2238
ccaf0336
DN
2239 * lisp.h (Ftop_level, Fexit_recursive_edit)
2240 (Fabort_recursive_edit): Mark as NO_RETURN.
2241
dfe3c90f
KH
22422010-07-26 Kenichi Handa <handa@m17n.org>
2243
2244 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 2245 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 2246
7d383292
JB
22472010-07-26 Juanma Barranquero <lekktu@gmail.com>
2248
2249 * lread.c (unreadpure, mapatoms_1): Make static.
2250
da31e629
JB
22512010-07-25 Juanma Barranquero <lekktu@gmail.com>
2252
2253 * terminfo.c (tparam): Fix prototype of tparm.
2254
7bfa6d77
AS
22552010-07-25 Andreas Schwab <schwab@linux-m68k.org>
2256
dcc19aac
AS
2257 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
2258 find start of text segment.
2259 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
2260 is defined.
2261
7bfa6d77
AS
2262 * callproc.c (set_initial_environment): Avoid unbalanced braces.
2263
63f9a672
KB
22642010-07-25 Ken Brown <kbrown@cornell.edu>
2265
2266 * vm-limit.c (check_memory_limits): Fix previous change;
2267 accidentally reverted an earlier change.
2268
24933075
KB
22692010-07-25 Ken Brown <kbrown@cornell.edu>
2270
2271 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
2272 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
2273
361358ea
JB
22742010-07-25 Juanma Barranquero <lekktu@gmail.com>
2275
2276 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
2277 * dired.c (opendir, readdir): Fix prototypes.
2278 * editfns.c (w32_get_internal_run_time): Fix prototypes.
2279 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
2280 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
2281 (telldir): Remove declaration.
2282 * ralloc.c (real_morecore, __morecore): Fix prototypes.
2283 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
2284 * syssignal.h (strsignal): Fix prototype.
2285 * term.c (tparam): Fix prototype.
2286 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
2287 (term_get_fkeys): Set inside "#ifndef DOS_NT".
2288 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
2289 and __morecore.
2290 * w32gui.h (XParseGeometry): Fix prototype.
2291 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
2292 * w32term.c (my_set_focus): Declare inside #if 0.
2293 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
2294 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
2295 (drain_message_queue, get_next_msg, post_msg, parse_button)
2296 (ClipboardSequence_Proc): Fix prototypes.
2297 (wait_for_sync): Remove declaration.
2298
630b9592
JB
22992010-07-24 Juanma Barranquero <lekktu@gmail.com>
2300
2301 * w32fns.c (w32_to_x_color): Remove, unused.
2302
6a0d6611
AS
23032010-07-24 Andreas Schwab <schwab@linux-m68k.org>
2304
2305 * lisp.h: Remove leftover P_.
2306
4e8608ff
DN
23072010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
2308
2309 * ecrt0.c, unexalpha.c: Remove files, unused.
2310
c8197983
AS
23112010-07-24 Andreas Schwab <schwab@linux-m68k.org>
2312
2313 * cmds.c (internal_self_insert): Make static.
2314 * lisp.h (internal_self_insert): Remove declaration.
2315
97b372d7
JB
23162010-07-23 Juanma Barranquero <lekktu@gmail.com>
2317
33ac0414
JB
2318 * alloc.c (free_float):
2319 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
2320 * frame.c (delete_frame_handler):
2321 * ralloc.c (reorder_bloc):
2322 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
2323 Remove unused static functions.
2324
94da8397
JB
2325 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
2326 it is called only from NS code.
2327
2e6c8532
JB
2328 * w32term.c (my_set_focus): #ifdef away; it is called only from
2329 "#ifdef 0" code.
2330
97b372d7
JB
2331 * w32fns.c (x_edge_detection):
2332 * xfaces.c (may_use_scalable_font_p):
2333 Remove obsolete static declarations.
2334
7c3320d8
JB
23352010-07-20 Juanma Barranquero <lekktu@gmail.com>
2336
2337 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
2338 (emacs_blocked_realloc, uninterrupt_malloc):
2339 * fringe.c (w32_reset_fringes):
2340 * image.c (convert_mono_to_color_image, lookup_rgb_color)
2341 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
2342 * sound.c (be2hs, do_play_sound):
2343 * vm-limit.c (get_lim_data, ret_lim_data):
2344 * w32term.c (x_free_frame_resources):
2345 * xfaces.c (x_create_gc, x_free_gc):
2346 Convert definitions to standard C.
2347
d5273788
SM
23482010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
2349
2350 * eval.c (Feval, Ffuncall): Use the new names.
2351
2352 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
2353 (DEFUN): Add braces around the union initialisation and use ## to
2354 specify the right union alternative and avoid a cast.
2355
8d16a259
JB
23562010-07-18 Juanma Barranquero <lekktu@gmail.com>
2357
2358 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
2359
3b8eff32
CY
23602010-07-17 Chong Yidong <cyd@stupidchicken.com>
2361
2362 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
2363
499322ce
J
23642010-07-17 Jan Djärv <jan.h.d@swipnet.se>
2365
2366 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
2367 is related to the menu bar (Bug#6499).
a628ad9d 2368 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 2369
f6003da5 23702010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
2371
2372 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
2373
2374 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
2375
2376 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
2377 i.e. don't put back ButtonRelease (Bug#6608).
2378
2379 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
2380 instead of Window. Call xg_event_is_for_menubar when
2381 USE_GTK (Bug#6499).
2382
2383 * gtkutil.h (xg_event_is_for_menubar): Declare.
2384
2385 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
2386
f6003da5 23872010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
2388
2389 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
2390 when it's the same as the old foreground. (Bug#6609)
2391
23243f29
J
23922010-07-16 Jan Djärv <jan.h.d@swipnet.se>
2393
2394 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
2395 widget is non-null (Bug#6645).
2396
2b23d2a6
AS
23972010-07-15 Andreas Schwab <schwab@linux-m68k.org>
2398
01b564ff
AS
2399 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
2400 Convert old-style definition.
2401
2b23d2a6
AS
2402 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
2403 timestamp argument.
2404
c4affd2c
EZ
24052010-07-15 Eli Zaretskii <eliz@gnu.org>
2406
2407 * fringe.c (update_window_fringes): Restore mistakenly reverted
2408 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
2409
cf28cebc
J
24102010-07-14 Jan Djärv <jan.h.d@swipnet.se>
2411
2412 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
2413 (SET_SAVED_KEY_EVENT): Remove (not used).
2414 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
2415 remove size parameter.
2416 (handle_one_xevent): Check popup_activated () for menu for Xt also.
2417 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
2418 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
2419 ButtonRelease.
6b2c4bd9
J
2420 (x_set_window_size_1): scroll_bar_actual_width is always
2421 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
2422
2423 * xdisp.c (pending_menu_activation): Remove extern declaration.
2424 (prepare_menu_bars): Remove setting of pending_menu_activation.
2425
2426 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
2427 (x_activate_menubar): Set popup_activated_flag for Xt also.
2428 Remove setting of pending_menu_activation.
cf28cebc
J
2429 (set_frame_menubar): Remove check of pending_menu_activation.
2430 Declare menubar_size before code. Correct spelling in comment.
2431
f6c1c771
KH
24322010-07-14 Kenichi Handa <handa@m17n.org>
2433
2434 * font.c (font_open_entity): Cancel previous change.
2435 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
2436
20477505
EZ
24372010-07-13 Eli Zaretskii <eliz@gnu.org>
2438
77defa9a
EZ
2439 Remove subprocesses #ifdefs.
2440 * process.c <inhibit_sentinels>: Move to the common part.
2441 (Fwaiting_for_user_input_p): Move to the common part; return nil
2442 if async subprocesses aren't supported.
2443 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
2444 MS-DOS. Remove "#ifdef subprocesses".
2445 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
2446 (gettimeofday): Remove "#ifdef subprocesses".
2447 (wait_without_blocking): Remove function.
2448 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
2449 Remove "#ifdef subprocesses".
2450 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
2451 compiled on MS-DOS.
2452 * callproc.c (Fcall_process) [!MSDOS]: Don't call
2453 wait_for_termination on MS-DOS.
2454 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
2455 initialization of inhibit_sentinels.
2456 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
2457 subprocesses" conditional.
2458 * callproc.c (Fcall_process) [!subprocesses]: Don't call
2459 wait_for_termination, since `buffer' cannot be an integer when
2460 async subprocesses are not supported
2461 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
2462 for ifdefing away the call to Fprocess_status.
2463
20477505
EZ
2464 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
2465 away the entire body of the function.
2466
b3ffc17c
DN
24672010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
2468
01faa934
DN
2469 Remove subprocesses #ifdefs from term.c.
2470 * process.c (add_keyboard_wait_descriptor)
2471 (delete_keyboard_wait_descriptor): Move to common section, do
2472 nothing when subprocesses is not defined.
a628ad9d
JB
2473 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
2474 Remove subprocesses #ifdefs.
01faa934 2475
b3ffc17c
DN
2476 Convert maybe_fatal to standard C.
2477 * lisp.h (verror): Declare.
2478 * eval.c (verror): New function containing the code from ...
2479 (error): ... this. Call verror.
2480 * term.c (vfatal): New function containing the code from ...
2481 (fatal): ... this. Call vfatal.
2482 (maybe_fatal): Convert to standard C, use variable number of
2483 arguments. Declare as non-return.
2484 (init_tty): Fix maybe_fatal call.
2485
0521f580
DN
24862010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2487
2488 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
2489 (_scroll_bar_note_movement): Convert definitions to standard C.
2490 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
2491 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
2492
ebd15611
DN
24932010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2494
2495 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
2496 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
2497 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
2498 (xaw_jump_callback, xaw_scroll_callback)
2499 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
2500 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
2501 definitions to standard C.
2502 * xmenu.c (menubar_id_to_frame, popup_get_selection)
2503 (popup_activate_callback, popup_deactivate_callback)
2504 (menu_highlight_callback, menubar_selection_callback)
2505 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
2506 (free_frame_menubar, popup_selection_callback, as)
2507 (create_and_show_popup_menu, dialog_selection_callback)
2508 (create_and_show_dialog):
2509 * xfns.c (hack_wm_protocols, x_window):
2510 * xfaces.c (x_update_menu_appearance):
2511 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
2512 (char_to_pixel_size, round_size_to_char, get_wm_shell)
2513 (set_frame_size, update_wm_hints, setup_frame_gcs)
2514 (update_various_frame_slots, update_from_various_frame_slots)
2515 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
2516 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
2517 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
2518
de06a2dd
AS
25192010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2520
a628ad9d 2521 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 2522
fc549af9
EZ
25232010-07-12 Eli Zaretskii <eliz@gnu.org>
2524
2525 * process.c (setup_process_coding_systems): Move to the part
2526 shared by non-subprocesses systems, and make its body empty when
2527 subprocesses is not defined.
2528 (close_process_descs): Move to the part shared by non-subprocesses
2529 systems.
1408902e
EZ
2530 (wait_reading_process_output) [!subprocesses]: Convert arg list to
2531 ANSI C.
fc549af9 2532
d5a3eaaf
AS
25332010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2534
2535 * editfns.c (transpose_markers): Convert old-style definition.
2536 * emacs.c (abort, shut_down_emacs, fixup_locale)
2537 (synchronize_system_time_locale)
2538 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
2539 * floatfns.c (extract_float, matherr, init_floatfns)
2540 (syms_of_floatfns): Likewise.
2541 * fns.c (make_hash_table): Likewise.
2542 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
2543 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
2544 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
2545 (ftfont_variation_glyphs): Likewise.
2546 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
2547 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
2548 * lread.c (read_filtered_event): Likewise.
2549 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
2550 * process.c (wait_reading_process_output): Likewise.
2551 * scroll.c (do_line_insertion_deletion_costs): Likewise.
2552 * search.c (search_buffer, boyer_moore): Likewise.
2553 * syntax.c (scan_sexps_forward): Likewise.
2554 * xdisp.c (try_scrolling): Likewise.
2555 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
2556 (face_at_string_position): Likewise.
2557 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
2558 * xselect.c (x_get_window_property, receive_incremental_selection)
2559 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
2560 Likewise.
2561 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
2562
6f704c76
DN
25632010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2564
ded80a25
DN
2565 * callproc.c (child_setup): Remove subprocesses conditional.
2566 Remove code dealing with SET_EMACS_PRIORITY, unused.
2567
49d937f4 2568 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
2569 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
2570
2571 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
2572 (__do_global_dtors, __main): Use void in definition.
2573 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
2574 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
2575 the only users from ...
2576 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
2577 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
2578 (HAVE_VOLATILE): Remove, unused.
2579
6f704c76
DN
2580 Convert more function definitions to standard C.
2581 * xdisp.c (window_box_edges, handle_single_display_spec)
2582 (display_string): Convert definition to standard C.
2583 * scroll.c (do_direct_scrolling, scrolling_1):
2584 * dispnew.c (allocate_matrices_for_frame_redisplay)
2585 (mirrored_line_dance):
2586 * coding.c (code_convert_string):
2587 * charset.c (map_charset_chars):
2588 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
2589 (Fregister_ccl_program, Fregister_code_conversion_map):
2590 * keyboard.c (kbd_buffer_nr_stored): Likewise.
2591 (head_table): Make static and const.
2592
e6cfa7c3
AS
25932010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2594
2595 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
2596 (PROFILING_LDFLAGS): Set from substitution.
2597 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
2598 CFLAGS last.
2599
892dd565
KH
26002010-07-12 Kenichi Handa <handa@m17n.org>
2601
6f2cdcd1
KH
2602 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
2603 (shortlisp): Likewise.
2604
892dd565
KH
2605 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
2606
2607 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
2608 of FONT_ENTITY_INDEX.
2609 (Ffont_get): If KEY is :otf and the font-object doesn't have the
2610 property, get the property value dynamically.
2611 (Ffont_put): Accept font-entity and font-object too.
2612 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
2613 return value changed.
2614 (syms_of_font): Adjusted for the above change.
2615
ae96d47a
AS
26162010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2617
c8fc18ee
AS
2618 * blockinput.h: Remove obsolete comment.
2619
89887d67
AS
2620 * lisp.h: Include <stddef.h>.
2621 (OFFSETOF): Don't define.
2622 (VECSIZE): Use offsetof instead of OFFSETOF.
2623 (PSEUDOVECSIZE): Likewise.
2624 * process.c (conv_sockaddr_to_lisp): Likewise.
2625 * alloc.c: Don't include <stddef.h>.
2626 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
2627
ae96d47a
AS
2628 * process.c: Remove obsolete comment.
2629
635c0aa1
CY
26302010-07-11 Chong Yidong <cyd@stupidchicken.com>
2631
2632 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
2633
a64df650
AS
26342010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2635
8966b757
AS
2636 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
2637 index, rindex.
2638 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
2639 * editfns.c (Fuser_full_name, Fformat): Likewise.
2640 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
2641 * fileio.c (Ffile_symlink_p): Likewise.
2642 * filelock.c (current_lock_owner): Likewise.
2643 * font.c (font_parse_name, font_parse_family_registry): Likewise.
2644 * fontset.c (fontset_pattern_regexp): Likewise.
2645 * lread.c (read1): Likewise.
2646 * sysdep.c (init_system_name): Likewise.
2647 * xfns.c (select_visual): Likewise.
2648 * s/hpux10-20.h (index, rindex): Don't define.
2649 * s/ms-w32.h (index): Likewise.
2650 * s/usg5-4.h: Likewise.
2651
cf237e27
AS
2652 * callproc.c (relocate_fd): Use F_DUPFD if defined.
2653
a8fe7202
AS
2654 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
2655 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
2656 (egetenv): Likewise.
2657 * doprnt.c (doprnt): Likewise.
2658 * editfns.c (set_time_zone_rule, format2): Likewise.
2659 * emacs.c (decode_env_path): Likewise.
2660 * eval.c (signal_error, error): Likewise.
2661 * insdel.c (replace_range_2): Likewise.
2662 * keyboard.c (cmd_error_internal): Likewise.
2663 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
2664 * print.c (write_string, write_string_1, print_error_message):
2665 Likewise.
2666 * vm-limit.c (warn_function, memory_warnings): Likewise.
2667 * xdisp.c (message1, message1_nolog, message_with_string)
2668 (vmessage, message, message_nolog): Likewise.
2669 * emacs.c: Remove duplicate declaration.
2670 * keyboard.h: Likewise.
2671 * lisp.h: Update prototypes.
2672
bb8e180f
AS
2673 * eval.c: Fix indentation problem.
2674
83380e65
AS
2675 * keyboard.c: Include "process.h"
2676
a64df650
AS
2677 * eval.c: Remove obsolete noinline declaration.
2678 * fns.c: Likewise.
2679
6a8033e1
KR
26802010-07-11 Ken Raeburn <raeburn@raeburn.org>
2681
2682 * doprnt.c (doprnt): Take a va_list argument instead of count and
2683 pointer.
2684 * eval.c (error): Change to a standard-C variadic function.
2685 * xdisp.c (vmessage): Renamed from message, made static, and
2686 changed to take a va_list argument.
2687 (message): New variadic wrapper.
2688 (message_nolog): Now a variadic function, calling vmessage.
2689 * lisp.h: Include stdarg.h for va_list.
2690 (doprnt, error, message, message_nolog): Decls updated.
2691
462aa963
EZ
26922010-07-11 Eli Zaretskii <eliz@gnu.org>
2693
2694 * process.c (syms_of_process) <delete-exited-processes>: Define
2695 even if !subprocesses.
2696 (delete_exited_processes): Ditto.
2697
2698 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
2699 (delete_exited_processes): Don't define.
2700
48104462
CY
27012010-07-10 Chong Yidong <cyd@stupidchicken.com>
2702
2703 * frame.c (make_frame): Initialize menu_bar_lines and
2704 tool_bar_lines members.
2705 (make_initial_frame, make_terminal_frame): Initialize
2706 menu_bar_lines using value of menu-bar-mode.
2707
2708 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
2709
f388c88a
EZ
27102010-07-10 Eli Zaretskii <eliz@gnu.org>
2711
2712 * process.c: Reshuffle #include's. Condition some of the global
2713 and static variables on `subprocesses'.
2714 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2715 Leave only one implementation.
2716 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
2717 (kill_buffer_processes, Flist_system_processes)
2718 (Fprocess_attributes, init_process, syms_of_process): Unify the
2719 implementations for with subprocesses and without them.
2720
723f5a07
J
27212010-07-09 Jan Djärv <jan.h.d@swipnet.se>
2722
2723 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
2724 correct size for Motif.
2725 (free_frame_menubar): Call x_set_window_size to update frame size.
2726
2727 * xfns.c (x_window): Set borderWidth to 0 for pane and
2728 EmacsFrame. Frame size calculation is wrong otherwise.
2729
2536a4b7
MA
27302010-07-09 Michael Albinus <michael.albinus@gmx.de>
2731
2732 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
2733 allows to suppress errors when polling in Emacs' main loop.
2734 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
2735 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2736 (Fdbus_method_error_internal, Fdbus_send_signal)
2737 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
2738 (Fdbus_register_method): Use it. (Bug#6579)
2739
5842a27b
DN
27402010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2741
2742 * alloc.c: Convert DEFUNs to standard C.
2743 * buffer.c:
2744 * bytecode.c:
2745 * callint.c:
2746 * callproc.c:
2747 * casefiddle.c:
2748 * casetab.c:
2749 * category.c:
2750 * character.c:
2751 * charset.c:
2752 * chartab.c:
2753 * cmds.c:
2754 * coding.c:
2755 * composite.c:
2756 * data.c:
2757 * dbusbind.c:
2758 * dired.c:
2759 * dispnew.c:
2760 * doc.c:
2761 * dosfns.c:
2762 * editfns.c:
2763 * emacs.c:
2764 * eval.c:
2765 * fileio.c:
2766 * filelock.c:
2767 * floatfns.c:
2768 * fns.c:
2769 * font.c:
2770 * fontset.c:
2771 * frame.c:
2772 * fringe.c:
2773 * image.c:
2774 * indent.c:
2775 * insdel.c:
2776 * keyboard.c:
2777 * keymap.c:
2778 * lread.c:
2779 * macros.c:
2780 * marker.c:
2781 * menu.c:
2782 * minibuf.c:
2783 * msdos.c:
2784 * nsfns.m:
2785 * nsmenu.m:
2786 * nsselect.m:
2787 * print.c:
2788 * process.c:
2789 * search.c:
2790 * sound.c:
2791 * syntax.c:
2792 * term.c:
2793 * terminal.c:
2794 * textprop.c:
2795 * undo.c:
2796 * w16select.c:
2797 * w32console.c:
2798 * w32fns.c:
2799 * w32font.c:
2800 * w32menu.c:
2801 * w32proc.c:
2802 * w32select.c:
2803 * window.c:
2804 * xdisp.c:
2805 * xfaces.c:
2806 * xfns.c:
2807 * xmenu.c:
2808 * xselect.c:
2809 * xsettings.c:
2810 * xsmfns.c: Likewise.
2811
d568829b
EZ
28122010-07-08 Eli Zaretskii <eliz@gnu.org>
2813
2814 * process.c (kbd_is_on_hold, hold_keyboard_input)
2815 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
2816
52214050
J
28172010-07-08 Jan Djärv <jan.h.d@swipnet.se>
2818
2819 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
2820 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
2821 unless USE_LUCID.
2822
313d9eb2
DN
28232010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2824
a628ad9d
JB
2825 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
2826 declaration.
d8825aa3 2827
295d0d8f
DN
2828 Clean up include guards.
2829 * tparam.c: Remove include guards for config.h, string.h and code
2830 that assumes #ifndef emacs.
2831 * termcap.c:
2832 * unexalpha.c:
2833 * sysdep.c:
2834 * filemode.c:
2835 * filelock.c:
2836 * bidi.c: Likewise.
2837
49d9e6b0
DN
2838 Remove prefix-args.c
2839 * prefix-args.c: Remove file.
2840 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
2841 * Makefile.in (temacs${EXEEXT}): Remove references to
2842 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
2843 (mostlyclean): Remove reference to prefix-args.
2844 (prefix-args): Remove.
2845
313d9eb2
DN
2846 Simplify cstart_of_data, start_of_code and related code.
2847 * mem-limits.h: Remove !emacs and _LIBC conditional code.
2848 (start_of_data): Merge into start_of_data function.
2849 * sysdep.c (start_of_text): Remove. Move simplified versions of
2850 it in the only users: unexaix.c and unexec.c.
2851 (read_input_waiting): Remove local declaration of quit_char.
2852 (start, etext): Remove declarations.
2853 (start_of_data): Merge with the version in mem-limits.h and move
2854 to vm-limits.c.
2855 * vm-limit.c (start_of_data): Merged and simplified version of the
2856 code formerly in mem-limits.h and sysdep.c.
2857 * unexec.c (start): New declaration, moved from sysdep.c.
2858 (start_of_text): Simplified version of the code formerly in sysdep.c.
2859 * unexaix.c (start_of_text): Simplified version of the code
2860 formerly in sysdep.c.
2861 * m/alpha.h (HAVE_TEXT_START): Remove.
2862 (TEXT_START): Move ...
2863 * unexalpha.c (TEXT_START): ... here.
2864 * s/hpux10-20.h (TEXT_START): Remove.
2865 * s/darwin.h (TEXT_START):
2866 * m/mips.h (TEXT_START):
2867 * m/macppc.h (HAVE_TEXT_START):
2868 * m/m68k.h (TEXT_START):
2869 * m/iris4d.h (TEXT_START):
2870 * m/intel386.h (TEXT_START):
2871 * m/ibmrs6000.h (TEXT_START):
2872 * m/ia64.h (HAVE_TEXT_START):
2873 * s/msdos.h (TEXT_START): Likewise.
2874
72af86bd
AS
28752010-07-07 Andreas Schwab <schwab@linux-m68k.org>
2876
2877 * alloc.c (overrun_check_malloc, overrun_check_realloc)
2878 (overrun_check_free, xstrdup, allocate_string)
2879 (allocate_string_data, compact_small_strings, Fmake_string)
2880 (make_unibyte_string, make_multibyte_string)
2881 (make_string_from_bytes, make_specified_string, make_float)
2882 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
2883 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
2884 memcpy, memmove, memset, memcmp.
2885 * atimer.c (start_atimer, set_alarm): Likewise.
2886 * buffer.c (clone_per_buffer_values, report_overlay_modification)
2887 (mmap_realloc, init_buffer_once): Likewise.
2888 * callint.c (Fcall_interactively): Likewise.
2889 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
2890 (getenv_internal_1): Likewise.
2891 * casefiddle.c (casify_object): Likewise.
2892 * ccl.c (ccl_driver): Likewise.
2893 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
2894 * charset.c (load_charset_map_from_file)
2895 (load_charset_map_from_file, load_charset_map_from_vector)
2896 (Fdefine_charset_internal): Likewise.
2897 * cm.c (Wcm_clear): Likewise.
2898 * coding.c (decode_eol, decode_coding_object)
2899 (Fset_coding_system_priority, make_subsidiaries): Likewise.
2900 * data.c (Faset): Likewise.
2901 * dired.c (directory_files_internal, file_name_completion_stat):
2902 Likewise.
2903 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
2904 (clear_glyph_row, copy_row_except_pointers)
2905 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
2906 (save_current_matrix, restore_current_matrix)
2907 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
2908 (mirror_line_dance, scrolling_window): Likewise.
2909 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
2910 Likewise.
2911 * doprnt.c (doprnt): Likewise.
2912 * editfns.c (Fuser_full_name, make_buffer_string_both)
2913 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
2914 * emacs.c (sort_args): Likewise.
2915 * eval.c (Fapply, Ffuncall): Likewise.
2916 * fileio.c (Ffile_name_directory, make_temp_name)
2917 (Fexpand_file_name, search_embedded_absfilename)
2918 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
2919 (auto_save_error): Likewise.
2920 * fns.c (Fstring_equal, Fcopy_sequence, concat)
2921 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
2922 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
2923 (Fmake_hash_table): Likewise.
2924 * fringe.c (Fdefine_fringe_bitmap): Likewise.
2925 * ftfont.c (ftfont_text_extents): Likewise.
2926 * getloadavg.c (getloadavg): Likewise.
2927 * image.c (define_image_type, make_image, make_image_cache)
2928 (x_create_x_image_and_pixmap, xbm_image_p)
2929 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
2930 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
2931 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
2932 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
2933 (tiff_image_p, tiff_read_from_memory, gif_image_p)
2934 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
2935 Likewise.
2936 * indent.c (scan_for_column, compute_motion): Likewise.
2937 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
2938 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
2939 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
2940 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
2941 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
2942 (store_user_signal_events, menu_bar_items, tool_bar_items)
2943 (process_tool_bar_item, append_tool_bar_item)
2944 (read_char_minibuf_menu_prompt, read_key_sequence)
2945 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
2946 Likewise.
2947 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
2948 Likewise.
2949 * lisp.h (STRING_COPYIN): Likewise.
2950 * lread.c (Fload, read1, oblookup): Likewise.
2951 * msdos.c (Frecent_doskeys): Likewise.
2952 * nsfns.m (Fx_create_frame): Likewise.
2953 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
2954 Likewise.
2955 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
2956 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
2957 Likewise.
2958 * nsmenu.m (ns_update_menubar): Likewise.
2959 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
2960 * print.c (print_unwind, printchar, strout, print_string)
2961 (print_error_message): Likewise.
2962 * process.c (conv_lisp_to_sockaddr, set_socket_option)
2963 (Fmake_network_process, Fnetwork_interface_list)
2964 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
2965 (init_process): Likewise.
2966 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
2967 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
2968 Likewise.
2969 * scroll.c (do_scrolling, do_direct_scrolling)
2970 (scrolling_max_lines_saved): Likewise.
2971 * search.c (search_buffer, wordify, Freplace_match): Likewise.
2972 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
2973 * syntax.c (skip_chars, skip_syntaxes): Likewise.
2974 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
2975 (emacs_set_tty): Likewise.
2976 * term.c (encode_terminal_code, calculate_costs)
2977 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
2978 Likewise.
2979 * termcap.c (tgetst1, gobble_line): Likewise.
2980 * termhooks.h (EVENT_INIT): Likewise.
2981 * tparam.c (tparam1): Likewise.
2982 * unexalpha.c (unexec): Likewise.
2983 * unexec.c (write_segment): Likewise.
2984 * unexmacosx.c (unexec_write_zero): Likewise.
2985 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
2986 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
2987 * w32font.c (w32font_list_family, w32font_text_extents)
2988 (w32font_list_internal, w32font_match_internal)
2989 (w32font_open_internal, compute_metrics, Fx_select_font):
2990 Likewise.
2991 * w32menu.c (set_frame_menubar, add_menu_item)
2992 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
2993 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
2994 * w32uniscribe.c (uniscribe_list_family): Likewise.
2995 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
2996 * window.c (make_window, replace_window, set_window_buffer)
2997 (Fsplit_window): Likewise.
2998 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
2999 (add_to_log, message3, x_consider_frame_title)
3000 (append_space_for_newline, extend_face_to_end_of_line)
3001 (decode_mode_spec_coding, init_glyph_string): Likewise.
3002 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
3003 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
3004 (face_attr_equal_p, make_realized_face, make_face_cache)
3005 (free_realized_faces, lookup_named_face, smaller_face)
3006 (face_with_height, lookup_derived_face)
3007 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
3008 (Finternal_set_font_selection_order, realize_default_face)
3009 (compute_char_face, face_at_buffer_position)
3010 (face_for_overlay_string, face_at_string_position, merge_faces):
3011 Likewise.
3012 * xfns.c (xic_create_fontsetname, Fx_create_frame)
3013 (Fx_window_property, x_create_tip_frame)
3014 (Fx_backspace_delete_keys_p): Likewise.
3015 * xfont.c (xfont_list, xfont_match, xfont_list_family)
3016 (xfont_text_extents): Likewise.
3017 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
3018 * xrdb.c (magic_file_p, x_get_resource): Likewise.
3019 * xselect.c (x_queue_event, x_get_window_property)
3020 (receive_incremental_selection): Likewise.
3021 * xsmfns.c (x_session_check_input): Likewise.
3022 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
3023 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
3024 Likewise.
3025 * character.h (BCOPY_SHORT): Removed.
3026 * config.in: Regenerate.
3027 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
3028 * emacs.c (main) [PROFILING]: Don't declare
3029 dump_opcode_frequencies.
3030 * lisp.h (safe_bcopy): Remove declaration.
3031 (memset) [!HAVE_MEMSET]: Declare.
3032 (memcpy) [!HAVE_MEMCPY]: Likewise.
3033 (memmove) [!HAVE_MEMMOVE]: Likewise.
3034 (memcmp) [!HAVE_MEMCMP]: Likewise.
3035 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
3036 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
3037 Don't define.
3038 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
3039 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
3040 (BCOPY_DOWNWARD_SAFE): Don't define.
3041 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
3042 (memcpy) [!HAVE_MEMCPY]: Define.
3043 (memmove) [!HAVE_MEMMOVE]: Define.
3044 (memcmp) [!HAVE_MEMCMP]: Define.
3045
cb768704
J
30462010-07-07 Jan Djärv <jan.h.d@swipnet.se>
3047
3048 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
3049 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
3050 New functions.
cb768704
J
3051 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
3052 select on empty input mask.
3053 (init_process): Initialize kbd_is_on_hold to 0.
3054
3055 * process.h (hold_keyboard_input, unhold_keyboard_input)
3056 (kbd_on_hold_p): Declare.
3057
3058 * keyboard.c (input_available_signal): Declare.
3059 (kbd_buffer_nr_stored): New function.
3060 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
3061 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
3062 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
3063 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
3064 (tty_read_avail_input): If input is on hold, return.
3065 Don't read more that free slots in kbd_buffer (Bug#6571).
3066
3a8ce822
EZ
30672010-07-07 Eli Zaretskii <eliz@gnu.org>
3068
3069 * msdos.h:
3070 * msdos.c:
3071 * dosfns.c:
3072 * w16select.c: Convert function definitions to ANSI C.
3073
a628ad9d
JB
3074 * msdos.h (ctrl_break_func, install_ctrl_break_check):
3075 Remove unused prototypes.
3a8ce822 3076
cf84bb53
JB
30772010-07-07 Juanma Barranquero <lekktu@gmail.com>
3078
3079 * coding.c, sysdep.c: Convert some more functions to standard C.
3080
1a4990fb
JB
30812010-07-07 Juanma Barranquero <lekktu@gmail.com>
3082
3083 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
3084 (encode_coding_object): Use SPECPDL_INDEX.
3085 (syms_of_coding): Use DOS_NT.
3086
c0f2f16b
DN
30872010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
3088
48fb6855
DN
3089 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
3090
c0f2f16b
DN
3091 Make the function member of Lisp_Subr use standard C prototypes.
3092 * lisp.h (struct Lisp_Subr): Use a union for the function member.
3093 (DECL_ALIGN): Add a cast for the function.
3094 * eval.c (Feval, Ffuncall): Use the proper type for each type
3095 function call.
3096
67aecef9
CY
30972010-07-06 Chong Yidong <cyd@stupidchicken.com>
3098
3099 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
3100 fringe face id, so face-remapping-alist works (Bug#6091).
3101
b56ceb92
JB
31022010-07-06 Juanma Barranquero <lekktu@gmail.com>
3103
3104 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
3105 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
3106 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
3107
7af07b96
AS
31082010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3109
3110 * xterm.c (x_get_keysym_name): Change type of parameter to int.
3111 * lisp.h: Declare x_get_keysym_name.
3112 * keyboard.c (modify_event_symbol): Don't declare
3113 x_get_keysym_name here.
3114
69e24e34
DN
31152010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
3116
3117 * ecrt0.c: Revert conversion to standard C.
3118
d3da34e0 31192010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
3120
3121 * vm-limit.c (memory_warnings):
3122 * keyboard.c (modify_event_symbol):
3123 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
3124 (round2, emacs_rint):
3125 * process.c (send_process, old_sigpipe): Convert function
3126 definitions and declarations to standard C.
3127
31282010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
3129
3130 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
3131 * xdisp.c: Convert function definitions to standard C.
3132
3133 * cm.c (cmputc): Arg C is now int, not char.
3134 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
3135
00be444c
J
31362010-07-05 James Cloos <cloos@jhcloos.com>
3137
3138 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
3139
3140 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
3141 _NET_WM_ICON_NAME atoms.
3142
3143 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
3144 and _NET_WM_ICON_NAME properties, too, matching what is
3145 done in the Gtk+ case.
3146
e4c8d29a
J
31472010-07-05 Jan Djärv <jan.h.d@swipnet.se>
3148
ff919460
J
3149 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
3150
e4c8d29a
J
3151 * xsmfns.c (SSDATA): New macro.
3152 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
3153 passed to strlen/strcpy/strcat.
3154 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
70e31436 3155 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
3156
3157 * xsettings.c (something_changedCB, parse_settings)
3158 (apply_xft_settings): Reformat prototype.
3159 (something_changedCB, init_gconf): Remove unused variable i.
3160 (read_settings): Remove unused variable long_len.
3161
3162 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
3163 (xg_get_image_for_pixmap, create_dialog)
3164 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
3165 (menuitem_highlight_callback, make_menu_item)
3166 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
3167 (xg_create_scroll_bar, xg_update_scrollbar_pos)
3168 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
3169 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
3170 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
3171 (xg_tool_bar_item_expose_callback): Reformat prototype.
3172 (xg_update_menubar): GList *group => GSList *group.
3173 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
3174 before use.
3175 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
3176 to GTK_IMAGE (wimage).
3177
dd4c5104
DN
31782010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
3179
898b4c5c
DN
3180 * atimer.c: Use "" instead of <> for local includes for
3181 consistency with the rest of the code.
3182
dd4c5104
DN
3183 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
3184 * xrdb.c (get_system_name):
3185 * window.c (shrink_windows):
3186 * syntax.c (forw_comment):
3187 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
3188 (ins_del_costs):
3189 * mem-limits.h (start_of_data):
3190 * lread.c (readevalloop):
3191 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
3192 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
3193 * frame.c (x_get_focus_frame):
3194 * floatfns.c (fmod_float):
3195 * fileio.c (choose_write_coding_system):
3196 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
3197 (malloc_initialize_hook, sort_args, synchronize_locale):
3198 * doprnt.c (doprnt):
3199 * dired.c (compile_pattern):
3200 * data.c (fmod_float):
3201 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
3202 (map_char_table_for_charset):
3203 * charset.c (define_charset_internal):
3204 * alloc.c (Fgarbage_collect): Convert declarations or definitions
3205 to standard C.
3206
9a39b306 32072010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 3208 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
3209
3210 * lread.c (read1): Fix up last change to not mess up `c'.
3211
e6cb2cbb
JB
32122010-07-04 Juanma Barranquero <lekktu@gmail.com>
3213
3214 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
3215
438105ed
JB
32162010-07-04 Juanma Barranquero <lekktu@gmail.com>
3217
3218 Fix prototypes.
3219
e5447b22 3220 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 3221 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
3222 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
3223 arg, as required by internal_condition_case_1.
dcc7404b 3224 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
3225 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
3226 (analyse_first): Fix "const const".
e5447b22 3227 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 3228 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 3229 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 3230
971de7fb
DN
32312010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
3232
3233 * alloc.c: Convert function definitions to standard C.
3234 * atimer.c:
3235 * bidi.c:
3236 * bytecode.c:
3237 * callint.c:
3238 * callproc.c:
3239 * casefiddle.c:
3240 * casetab.c:
3241 * category.c:
3242 * ccl.c:
3243 * character.c:
3244 * charset.c:
3245 * chartab.c:
3246 * cmds.c:
3247 * coding.c:
3248 * composite.c:
3249 * data.c:
3250 * dbusbind.c:
3251 * dired.c:
3252 * dispnew.c:
3253 * doc.c:
3254 * doprnt.c:
3255 * ecrt0.c:
3256 * editfns.c:
3257 * fileio.c:
3258 * filelock.c:
3259 * filemode.c:
3260 * fns.c:
3261 * font.c:
3262 * fontset.c:
3263 * frame.c:
3264 * fringe.c:
3265 * ftfont.c:
3266 * ftxfont.c:
3267 * gtkutil.c:
3268 * indent.c:
3269 * insdel.c:
3270 * intervals.c:
3271 * keymap.c:
3272 * lread.c:
3273 * macros.c:
3274 * marker.c:
3275 * md5.c:
3276 * menu.c:
3277 * minibuf.c:
3278 * prefix-args.c:
3279 * print.c:
3280 * ralloc.c:
3281 * regex.c:
3282 * region-cache.c:
3283 * scroll.c:
3284 * search.c:
3285 * sound.c:
3286 * strftime.c:
3287 * syntax.c:
3288 * sysdep.c:
3289 * termcap.c:
3290 * terminal.c:
3291 * terminfo.c:
3292 * textprop.c:
3293 * tparam.c:
3294 * undo.c:
3295 * unexelf.c:
3296 * window.c:
3297 * xfaces.c:
3298 * xfns.c:
3299 * xfont.c:
3300 * xftfont.c:
3301 * xgselect.c:
3302 * xmenu.c:
3303 * xrdb.c:
3304 * xselect.c:
3305 * xsettings.c:
3306 * xsmfns.c:
3307 * xterm.c: Likewise.
3308
ae492bec
EZ
33092010-07-03 Eli Zaretskii <eliz@gnu.org>
3310
76ea4cc9
EZ
3311 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
3312 frames other than the initial one. Fix reversal of colors when
3313 `reverse' is specified in the frame parameters. Call
3314 update_face_from_frame_parameter instead of
3315 internal-set-lisp-face-attribute. Initialize screen colors from
3316 initial_screen_colors[] when f->default_face_done_p is zero,
3317 instead of depending on being called with default-frame-alist as
3318 the alist argument.
3319
3320 * xfaces.c (update_face_from_frame_parameter): Move out of
3321 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
3322 with HAVE_WINDOW_SYSTEM.
3323
1e6255ae
EZ
3324 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
3325 to menu-bar-mode, if not set in the frame parameters or in
3326 default-frame-alist.
3327
ae492bec
EZ
3328 * w32console.c (sys_tputs): Adjust argument list to prototype in
3329 term.c.
3330
3a35a84c
JB
33312010-07-03 Juanma Barranquero <lekktu@gmail.com>
3332
3333 * lisp.h (memory_warnings): Fix prototype.
3334
3335 * cm.h (evalcost): Fix prototype.
3336
3337 * cm.c (evalcost): Fix arg type.
3338
c532d349
DN
33392010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
3340
3341 * term.c (term_clear_mouse_face, Fidentity):
3342 * syssignal.h (signal_handler_t):
3343 * lisp.h (memory_warnings):
3344 * coding.h (preferred_coding_system):
3345 * cm.h (evalcost):
3346 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
3347
c0b36d46
EZ
33482010-07-02 Eli Zaretskii <eliz@gnu.org>
3349
3350 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
3351 from prototypes.
3352
3353 * msdos.h (load_pixmap): Don't define away.
3354
383e0970
J
33552010-07-02 Jan Djärv <jan.h.d@swipnet.se>
3356
f57e2426
J
3357 * lisp.h:
3358 * atimer.h: Remove define for P_.
3359
3360 * alloc.c: Remove __P and P_ from .c and .m files.
3361 * atimer.c:
3362 * buffer.c:
3363 * callint.c:
3364 * category.c:
3365 * charset.c:
3366 * chartab.c:
3367 * cm.c:
3368 * coding.c:
3369 * composite.c:
3370 * data.c:
3371 * dired.c:
3372 * dispnew.c:
3373 * doc.c:
3374 * editfns.c:
3375 * emacs.c:
3376 * eval.c:
3377 * fileio.c:
3378 * filelock.c:
3379 * fns.c:
3380 * font.c:
3381 * fontset.c:
3382 * frame.c:
3383 * ftfont.c:
3384 * ftxfont.c:
3385 * gmalloc.c:
3386 * gtkutil.c:
3387 * image.c:
3388 * indent.c:
3389 * intervals.c:
3390 * keyboard.c:
3391 * keymap.c:
3392 * lread.c:
3393 * marker.c:
3394 * menu.c:
3395 * minibuf.c:
3396 * print.c:
3397 * process.c:
3398 * scroll.c:
3399 * search.c:
3400 * sound.c:
3401 * strftime.c:
3402 * syntax.c:
3403 * sysdep.c:
3404 * term.c:
3405 * terminal.c:
3406 * textprop.c:
3407 * unexalpha.c:
3408 * w32console.c:
3409 * w32fns.c:
3410 * w32font.c:
3411 * w32menu.c:
3412 * w32term.c:
3413 * w32uniscribe.c:
3414 * window.c:
3415 * xdisp.c:
3416 * xfaces.c:
3417 * xfns.c:
3418 * xfont.c:
3419 * xftfont.c:
3420 * xmenu.c:
3421 * xselect.c:
3422 * xterm.c: Likewise.
3423
383e0970 3424 Remove P_ and __P macros.
f57e2426
J
3425 * atimer.h: Remove P_ and __P macros.
3426 * buffer.h:
383e0970
J
3427 * category.h:
3428 * ccl.h:
3429 * character.h:
3430 * charset.h:
3431 * cm.h:
3432 * coding.h:
3433 * composite.h:
3434 * dispextern.h:
3435 * disptab.h:
9e892c8d 3436 * dosfns.h:
383e0970
J
3437 * font.h:
3438 * fontset.h:
3439 * frame.h:
3440 * gtkutil.h:
3441 * indent.h:
3442 * intervals.h:
3443 * keyboard.h:
3444 * keymap.h:
3445 * lisp.h:
3446 * macros.h:
3447 * md5.h:
3448 * menu.h:
3449 * msdos.h:
3450 * nsterm.h:
3451 * puresize.h:
3452 * region-cache.h:
3453 * syntax.h:
3454 * syssignal.h:
3455 * systime.h:
3456 * termhooks.h:
9e892c8d 3457 * w32font.h:
383e0970
J
3458 * w32term.h:
3459 * widget.h:
3460 * window.h:
3461 * xgselect.h:
3462 * xsettings.h:
3463 * xterm.h: Likewise.
3464
98601119
DN
34652010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
3466
d9170db5
DN
3467 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
3468
98601119
DN
3469 Cleanup old code.
3470 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
3471 * syssignal.h: Remove code for Lynx, not supported anymore.
3472 * vm-limit.c: Remove unused code the depends on emacs not being
3473 defined and NO_LIM_DATA being defined.
3474 * mem-limits.h: Remove dead code.
3475
1f984e12
J
34762010-07-01 Jan Djärv <jan.h.d@swipnet.se>
3477
c49d071a
J
3478 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
3479
9d5405ec
J
3480 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
3481 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
3482
7a18115b
J
3483 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
3484 parameters, they are already absolute.
3485
a628ad9d
JB
3486 * nsterm.m (x_set_window_size, initFrameFromEmacs):
3487 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 3488
a628ad9d 3489 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 3490
a628ad9d
JB
3491 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
3492 Update FRAME_TOOLBAR_HEIGHT.
581a8100 3493
a628ad9d
JB
3494 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
3495 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 3496
c1ef4455
CY
34972010-06-30 Chong Yidong <cyd@stupidchicken.com>
3498
3499 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
3500 check default-frame-alist.
3501
ce8f5a9a
AS
35022010-06-30 Andreas Schwab <schwab@linux-m68k.org>
3503
3504 * process.c (create_process): Avoid using invalid file descriptors.
3505
3506 * callproc.c (child_setup): Avoid closing a file descriptor twice.
3507
bf935339
J
35082010-06-30 Jan Djärv <jan.h.d@swipnet.se>
3509
3510 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
3511 Improve documentation. Return font regardless of use_system_font.
3512 (syms_of_xsettings): Improve documentation for font-use-system-font.
3513
7c33a057
CY
35142010-07-10 Chong Yidong <cyd@stupidchicken.com>
3515
2ec1b5ee
CY
3516 * xfaces.c (realize_face): Garbage the frame if a face is removed
3517 (Bug#6593).
3518
35192010-07-05 Andreas Schwab <schwab@linux-m68k.org>
3520
3521 * keyboard.c: Remove duplicate <setjmp.h>.
3522 (read_key_sequence): Remove volatile qualifiers.
3523
35242010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3525
3526 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
3527 (struct glyph_row): New members left_fringe_offset and
3528 right_fringe_offset.
3529
3530 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
3531 specially.
3532 * w32term.c (w32_draw_fringe_bitmap): Likewise.
3533 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
3534
3535 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 3536 Take account of bitmap offset.
2ec1b5ee
CY
3537 (draw_window_fringes): Take account of window vscroll.
3538 (update_window_fringes): Likewise. Extend top-aligned top indicator
3539 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
3540 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
3541 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
3542
35432010-07-04 Juanma Barranquero <lekktu@gmail.com>
3544
3545 * w32fns.c (Qtooltip): Declare.
3546 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
3547
35482010-07-03 Jan Djärv <jan.h.d@swipnet.se>
3549
3550 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
3551 grab on just Press (Bug#6499).
3552
35532010-07-02 Chong Yidong <cyd@stupidchicken.com>
3554
3555 * frame.c (Qtooltip): New var.
3556 (delete_frame): Use it. Fix faulty if statement. Don't update
3557 mode line for tooltip frames. Suggested by Martin Rudalics.
3558
3559 * xfns.c (x_create_tip_frame):
3560 * w32fns.c (x_create_tip_frame): Use it.
3561
35622010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
3563
3564 * xftfont.c (xftfont_open): Check font width one by one also when
3565 spacing is dual.
3566
3567 * ftfont.c (ftfont_open): Ditto.
3568
6259c2ec
GM
35692010-06-30 Glenn Morris <rgm@gnu.org>
3570
a46007e9
GM
3571 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
3572
6259c2ec
GM
3573 * Makefile.in (CANNOT_DUMP): Update for configure name change.
3574
3575 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
3576 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
3577 * s/darwin.h (SYSTEM_MALLOC):
3578 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
3579
5d1d3d04
J
35802010-06-29 Jan Djärv <jan.h.d@swipnet.se>
3581
3582 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
3583 (ns_get_screen): Don't assign integer to f.
3584 (Fx_display_color_cells): Declarations before statements.
3585
e547b051
J
35862010-06-28 Jan Djärv <jan.h.d@swipnet.se>
3587
5fc8e5bc
J
3588 * xfns.c (x_default_font_parameter): Remove got_from_system
3589 (Bug#6526).
3590
e547b051
J
3591 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
3592 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
3593 defines based on what configure finds.
3594
3595 * xterm.c (XTflash): Use gtk_widget_get_window.
3596 (xg_scroll_callback): Use gtk_adjustment_get_upper and
3597 gtk_adjustment_get_page_size.
3598 (handle_one_xevent): Use gtk_widget_get_mapped.
3599 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
3600 messages.
3601
3602 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
3603
3604 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
3605 HAVE_GTK_FILE_SELECTION_NEW.
3606
3607 * gtkutil.c (xg_display_open, xg_display_close): Remove
3608 HAVE_GTK_MULTIDISPLAY, it is always defined.
3609 (xg_display_open): Return type is void.
3610 (gtk_widget_set_has_window)
3611 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
3612 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
3613 (gtk_adjustment_set_page_increment)
3614 (gtk_adjustment_get_step_increment): #define these if not found
3615 by configure.
3616 (remove_submenu): New define based on Gtk+ version.
3617 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
3618 gtk_widget_get_window.
3619 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
3620 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
3621 (create_dialog): Use gtk_dialog_get_action_area and
3622 gtk_dialog_get_content_area.
3623 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
3624 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
3625 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
3626 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
3627 g_object_ref and g_object_unref.
3628 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
3629 gtk_widget_get_sensitive.
3630 (xg_update_submenu): Use remove_submenu.
3631 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
3632 properties instead to get old x and y position.
3633 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
3634 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 3635 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
3636 (xg_get_tool_bar_widgets): New function.
3637 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
3638 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
3639 (toolbar_set_orientation): New #define based on if configure
3640 finds gtk_orientable_set_orientation.
3641 (xg_create_tool_bar): Call toolbar_set_orientation.
3642 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
3643 instead of gtk_box_pack_start_defaults.
3644
b9229673
CY
36452010-06-28 Chong Yidong <cyd@stupidchicken.com>
3646
3647 * cmds.c (Fdelete_backward_char): Move into Lisp.
3648
bbc803b0
DN
36492010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
3650
3651 * s/freebsd.h (BSD4_2): Remove redundant definition.
3652 bsd-common.h defines it already.
3653
6431f2e6
CY
36542010-06-27 Chong Yidong <cyd@stupidchicken.com>
3655
3656 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
3657 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
3658 tool-bar-mode, which are now set using these X resources at
3659 startup, to determine the defaults (Bug#2249).
3660
3661 * w32fns.c (Fx_create_frame):
3662 * nsfns.m (Fx_create_frame): Likewise.
3663
3664 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
3665
8c079ebb
JB
36662010-06-24 Juanma Barranquero <lekktu@gmail.com>
3667
3668 * gtkutil.c (xg_update_scrollbar_pos):
3669 Avoid C99 mid-block variable declaration.
3670
e9b7ab96
JD
36712010-06-22 Jan Djärv <jan.h.d@swipnet.se>
3672
bc869eca
JD
3673 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
3674
2b7e356a 3675 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
3676
3677 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
3678 if height is less than scroll bar min size.
3679 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
3680
e9b7ab96
JD
3681 * xfns.c (x_default_font_parameter): Try to open font from system
3682 before using it (bug#6478). Rename got_from_gconf to got_from_system.
3683
a628ad9d 36842010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
3685
3686 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
3687
70c4cfbb
EZ
36882010-06-20 Eli Zaretskii <eliz@gnu.org>
3689
3690 * xdisp.c (try_scrolling): When scroll-conservatively is set to
3691 most-positive-fixnum, be extra accurate when scrolling window
3692 start, to avoid missing the cursor line.
3693
ad5a12b5
EZ
36942010-06-19 Eli Zaretskii <eliz@gnu.org>
3695
3696 * xdisp.c (try_scrolling): Compute the limit for searching point
3697 in forward scroll from scroll_max, instead of an arbitrary limit
3698 of 10 screen lines. See
3699 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
3700 and
3701 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
3702 for details.
3703
2a64315a 37042010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
3705
3706 * editfns.c (Fbyte_to_string): Pacify compiler.
3707
288cf4e9
SM
37082010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
3709
3710 * lread.c (read1): Phase out old-style backquotes a bit more.
3711
6e6e5760
EZ
37122010-06-12 Eli Zaretskii <eliz@gnu.org>
3713
cbc4fd20
EZ
3714 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
3715 bidimirror.h.
3716
3717 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
3718
317fbf33
EZ
3719 * bidi.c (bidi_initialize): Remove explicit initialization of
3720 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 3721 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 3722 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
3723
3724 * biditype.h: New file.
3725
cbc4fd20
EZ
3726 * bidimirror.h: New file.
3727
6e6e5760
EZ
3728 * window.c (syms_of_window): Doc fix (bug#6409).
3729
4176cba2
RF
37302010-06-12 Romain Francoise <romain@orebokech.com>
3731
3732 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
3733 ediff-hook.
3734
cb4bfcb5
GM
37352010-06-10 Glenn Morris <rgm@gnu.org>
3736
64c60c2f
GM
3737 * editfns.c (Fbyte_to_string): Pacify compiler.
3738
cb4bfcb5
GM
3739 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
3740
2ec1b5ee
CY
37412010-06-26 Andreas Schwab <schwab@linux-m68k.org>
3742
3743 * alloc.c (Fmake_byte_code): Don't access undefined argument
3744 (Bug#6517).
3745
37462010-06-25 Chong Yidong <cyd@stupidchicken.com>
3747
3748 * xdisp.c (next_element_from_image): Ensure that after-strings are
3749 read the next time we hit handle_stop (Bug#1336).
3750
37512010-06-23 Andreas Schwab <schwab@linux-m68k.org>
3752
3753 * lread.c (read1): Signal error if #s is not followed by paren.
3754
37552010-06-19 Chong Yidong <cyd@stupidchicken.com>
3756
3757 * image.c (free_image): Mark frame as garbaged (Bug#6426).
3758
3759 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
3760
37612010-06-15 Glenn Morris <rgm@gnu.org>
3762
3763 * editfns.c (Fbyte_to_string): Pacify compiler.
3764
e454a4a3
SM
37652010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
3766
3767 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
3768 Check `object's type before accessing its guts.
3769
c1b1acc2
DN
37702010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
3771
3772 * s/usg5-4.h: Fix previous change.
3773 Suggested by Lawrence Mitchell <wence@gmx.li>
3774
657d4c0b
AS
37752010-06-08 Andreas Schwab <schwab@linux-m68k.org>
3776
3777 * minibuf.c (Fall_completions): Add more checks.
3778
9b27fd9f
JB
37792010-06-08 Juanma Barranquero <lekktu@gmail.com>
3780
3781 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
3782
a99ebb40
DN
37832010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
3784
d7c5d87d
DN
3785 * lread.c (X_OK): Remove, unused.
3786
0263a941
DN
3787 * dispnew.c: Remove obsolete comment.
3788
a99ebb40
DN
3789 Remove INCLUDED_FCNTL.
3790 * xterm.c (INCLUDED_FCNTL):
3791 * callproc.c (INCLUDED_FCNTL):
3792 * alloc.c (INCLUDED_FCNTL):
3793 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
3794 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
3795
13b5221f
MR
37962010-06-07 Martin Rudalics <rudalics@gmx.at>
3797
3798 * window.c (Fselect_window): Move `record_buffer' up to the
3799 beginning of this function, so the buffer gets recorded
3800 even if the selected window does not change.
3801 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
3802
5220357f
JB
38032010-06-07 Juanma Barranquero <lekktu@gmail.com>
3804
3805 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
3806 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
3807
3085237c
DN
38082010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
3809
3810 Remove BSTRING related code, all platforms define it.
3811 * s/usg5-4.h (BSTRING): Remove definition.
3812 * s/template.h (BSTRING):
3813 * s/msdos.h (BSTRING):
3814 * s/ms-w32.h (BSTRING):
3815 * s/hpux10-20.h (BSTRING):
3816 * s/gnu-linux.h (BSTRING):
3817 * s/darwin.h (BSTRING):
3818 * s/cygwin.h (BSTRING):
3819 * s/bsd-common.h (BSTRING):
3820 * s/aix4-2.h (BSTRING): Likewise.
3821 * sysdep.c: Remove code depending on BSTRING not being defined.
3822
409f2919
JB
38232010-06-05 Juanma Barranquero <lekktu@gmail.com>
3824
3825 Remove obsolete macro BASE_LEADING_CODE_P.
3826 * character.h (BASE_LEADING_CODE_P): Remove.
3827 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
3828 * buffer.c (Fset_buffer_multibyte):
3829 * indent.c (scan_for_column, compute_motion):
3830 * insdel.c (count_combining_before, count_combining_after):
3831 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
3832
087fc47a
JB
38332010-06-04 Juanma Barranquero <lekktu@gmail.com>
3834
3835 Turn `directory-sep-char' into a noop.
3836
3837 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
3838 (DIRECTORY_SEP): Define unconditionally.
3839
3840 * s/ms-w32.h (DIRECTORY_SEP): Remove.
3841
3842 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
3843 call dostounix_filename directly.
3844
3845 * fileio.c (CORRECT_DIR_SEPS): Remove.
3846 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
3847 (Fsubstitute_in_file_name): Use dostounix_filename instead.
3848 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
3849 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
3850
3851 * w32proc.c (CORRECT_DIR_SEPS): Remove.
3852 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
3853
0eb7675e
AS
38542010-06-03 Andreas Schwab <schwab@linux-m68k.org>
3855
a628ad9d
JB
3856 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
3857 (Bug#6346)
0eb7675e 3858
78edd3b7
JB
38592010-06-03 Juanma Barranquero <lekktu@gmail.com>
3860
3861 * ccl.c (Fccl_program_p): Fix typo in docstring.
3862
eb697db5
DN
38632010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
3864
3865 Move UNEXEC definition to autoconf.
3866 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
3867 * s/sol2-10.h (UNEXEC):
3868 * s/irix6-5.h (UNEXEC):
3869 * s/hpux10-20.h (UNEXEC):
3870 * s/gnu-linux.h (UNEXEC):
3871 * s/darwin.h (UNEXEC):
3872 * s/cygwin.h (UNEXEC):
3873 * s/bsd-common.h (UNEXEC):
3874 * s/aix4-2.h (UNEXEC):
3875 * m/alpha.h (UNEXEC): Likewise.
3876 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
3877
aa3830c4
JB
38782010-06-03 Juanma Barranquero <lekktu@gmail.com>
3879
3880 Remove obsolete pre-unicode2 macros.
3881 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
3882 * composite.c (composition_reseat_it):
3883 * data.c (Faset):
3884 * fns.c (Ffillarray):
3885 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
3886 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
3887
d234d13e
JL
38882010-06-03 Juri Linkov <juri@jurta.org>
3889
3890 * buffer.c (Fother_buffer): Add CHECK_FRAME.
3891 (Fswitch_to_buffer): Remove unused variable `err'.
3892
0d4bcf4d
GM
38932010-06-03 Glenn Morris <rgm@gnu.org>
3894
e23dc1e2
GM
3895 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
3896
05b09564
GM
3897 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
3898 now that AH_BOTTOM does it.
3899
824e2978
GM
3900 * m/hp800.h (HAVE_ALLOCA):
3901 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
3902
0d4bcf4d
GM
3903 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
3904 Remove NOT_C_CODE tests, it is always true now.
3905
c55d2abf
DN
39062010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
3907
08a494a3
DN
3908 Fix config.h includes.
3909 * xsettings.c:
3910 * xgselect.c:
3911 * nsterm.m:
3912 * nsselect.m:
3913 * nsimage.m:
3914 * nsfont.m:
3915 * nsfns.m:
3916 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
3917 other files do.
3918
75934b1d
DN
3919 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
3920
9f32a766
DN
3921 * s/sol2-6.h: Remove obsolete comments.
3922
c55d2abf
DN
3923 Remove unnecessary alloca.h includes.
3924 * keymap.c: Do not include alloca.h, config.h does that.
3925 * sysdep.c: Likewise. Do not define fwrite, not used.
3926
06ac62b4
SM
39272010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
3928
3929 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
3930 the HAVE_TERMIO where it belongs (bug#6149).
3931
1ab8293c
SM
39322010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
3933
3934 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
3935 of bug#6305).
3936
6dcfd253
EZ
39372010-05-30 Eli Zaretskii <eliz@gnu.org>
3938
3939 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
3940 state is always cached (bug#6306).
3941
6d26bbb2
EZ
39422010-05-29 Eli Zaretskii <eliz@gnu.org>
3943
06fa4a23
EZ
3944 Fix cursor motion in bidi-reordered continued lines.
3945 * xdisp.c (try_cursor_movement): Backup to non-continuation line
3946 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
3947 over continuation lines in bidi-reordered buffers. Return
3948 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
3949 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
3950
f5783df3
MA
39512010-05-28 Michael Albinus <michael.albinus@gmx.de>
3952
3953 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
3954
7d56b2dd
KH
39552010-05-28 Kenichi Handa <handa@m17n.org>
3956
3957 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
3958 Don't sheck SPEC if it is nil.
3959 (font_list_entities): Call font_delete_unmatched if
b925d231 3960 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 3961
e58d4ff7
GM
39622010-05-28 Glenn Morris <rgm@gnu.org>
3963
3964 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
3965
f1a5d776
CY
39662010-05-27 Chong Yidong <cyd@stupidchicken.com>
3967
3968 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
3969 whether to trash.
3970 (internal_delete_file, Frename_file): Callers changed.
3971 (delete_by_moving_to_trash): Doc fix.
3972 (Fdelete_directory_internal): Don't move to trash.
3973
3974 * callproc.c (delete_temp_file):
3975 * buffer.c (Fkill_buffer): Callers changed.
3976
3977 * lisp.h: Update prototype.
3978
f44a59e6
CY
39792010-05-27 Chong Yidong <cyd@stupidchicken.com>
3980
3981 * xdisp.c (redisplay_window): After redisplay, check if point is
3982 still valid before setting it (Bug#6177).
3983
81ac4f35
GM
39842010-05-27 Glenn Morris <rgm@gnu.org>
3985
3986 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
3987 Convert comments to Makefile format.
3988
3989 * Makefile.in (bootstrap-clean): No more Makefile.c.
3990
ccd89fb3
GM
39912010-05-26 Glenn Morris <rgm@gnu.org>
3992
90278cb6
GM
3993 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
3994 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
3995
ccd89fb3
GM
3996 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3997 Remove.
3998 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3999
b7050583
KH
40002010-05-26 Kenichi Handa <handa@m17n.org>
4001
4002 * composite.c (composition_compute_stop_pos): Fix condition for
4003 backward scanning.
4004
e5458003
GM
40052010-05-25 Glenn Morris <rgm@gnu.org>
4006
c345fe90
GM
4007 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
4008 Move before TEMACS_LDFLAGS.
4009 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4010 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4011
2e0689ab
GM
4012 * Makefile.in (NOT_C_CODE): No longer define.
4013 (config.h): No longer include.
4014
8009a5e8
GM
4015 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
4016 variables it may reference.
4017
e5458003
GM
4018 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
4019 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
4020
10f72a37
KH
40212010-05-25 Kenichi Handa <handa@m17n.org>
4022
4023 * dispextern.h (struct composition_it): New members rule_idx and
4024 charpos.
4025
4026 * xdisp.c (set_iterator_to_next): While scanning backward, assume
4027 that the character positions of IT point the last character of the
4028 current grapheme cluster.
4029 (next_element_from_composition): Don't change character positions
4030 of IT.
4031 (append_composite_glyph): Set glyph->charpos to
4032 it->cmp_it.charpos.
4033
4034 * composite.c (autocmp_chars): Change the first argument to RULE,
4035 and try composition with RULE only.
4036 (composition_compute_stop_pos): Record the index number of the
4037 composition rule in CMP_IT->rule_idx.
4038 (composition_reseat_it): Call autocmp_chars repeatedly until the
4039 correct rule of the composition is found.
4040 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
4041 is at the last character of the current grapheme cluster when
4042 CMP_IT->reversed_p is nonzero.
4043
171eda53 40442010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 4045
171eda53
SM
4046 * editfns.c (Fbyte_to_string): New function.
4047
66a9f7f4
SM
40482010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
4049
4050 * process.c (Fmake_network_process): Set :host to nil if it's not used.
4051 Suggested by Masatake YAMATO <yamato@redhat.com>.
4052
d8c315d1
EZ
40532010-05-23 Eli Zaretskii <eliz@gnu.org>
4054
171eda53 4055 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 4056
f5b416d2 40572010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
4058
4059 * s/netbsd.h: If terminfo is found, use it in preference to
4060 termcap. (Bug#6190) [Backport from trunk]
4061
0416466c
EZ
40622010-05-19 Eli Zaretskii <eliz@gnu.org>
4063
11117830 4064 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
4065
4066 * dispextern.h (struct glyph_row): New members minpos and maxpos.
4067 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
4068 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
4069 and maxpos members instead of start.pos and end.pos, respectively.
4070
4071 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
4072 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
4073 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
4074 (try_window_reusing_current_matrix, try_window_id):
4075 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
4076 (init_from_display_pos, init_iterator): Use EMACS_INT for
4077 character and byte positions.
66a9f7f4 4078 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
4079 arguments for minimum and maximum buffer positions seen by
4080 display_line for this row. Don't use iterator to find the
4081 position following the maximum one; instead, increment the
11117830
EZ
4082 position found by display_line directly. Fix logic; eol_pos
4083 should be tested before the rest. Handle the case of characters
4084 delivered from display vector (bug#6036). Fix tests related to
4085 it->method. Handle the truncated_on_right_p rows.
4086 (RECORD_MAX_MIN_POS): New macro.
4087 (display_line): Use it to record the minimum and maximum buffer
4088 positions for glyphs in the row being assembled. Record the
4089 position of the newline that terminates the line. If word wrap is
4090 in effect, restore minimum and maximum positions seen up to the
4091 wrap point, when iterator returns to it.
4092 (try_window_reusing_current_matrix): Give up if in bidi-reordered
4093 row and cursor not already at point. Restore original pre-bidi
4094 code for unidirectional buffers.
d36fe237
EZ
4095
4096 * dispnew.c (increment_row_positions, check_matrix_invariants):
4097 Increment and check row->start.pos and row->end.pos, in addition
4098 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
4099
11117830
EZ
4100 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
4101 Display truncated_on_left_p and truncated_on_right_p flags.
4102 Formatting fixes.
4103 (pmtxrows): Display the ordinal number of each row. Don't display
4104 rows beyond the last one.
4105
4106 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
4107 it is not copied by bidi_copy_it.
4108
6e83d800
EZ
41092010-05-22 Eli Zaretskii <eliz@gnu.org>
4110
4111 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
4112 (Bug#6237)
4113
110683ad
CY
41142010-05-22 Chong Yidong <cyd@stupidchicken.com>
4115
4116 * image.c (Fimage_flush): Rename from image-refresh.
4117
98fe5161
CY
41182010-05-21 Chong Yidong <cyd@stupidchicken.com>
4119
4120 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
4121 just one window.
4122
4123 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
4124 (clear_image_cache): If the number of cached images is unusually
4125 large, decrease the cache eviction delay (Bug#6230).
4126
e8752c66
GM
41272010-05-21 Glenn Morris <rgm@gnu.org>
4128
66dbf213
GM
4129 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
4130 Move these rules to ns.mk.
4131 * ns.mk: New file.
4132
04384b2d
GM
4133 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
4134
e8752c66
GM
4135 * Makefile.in (CANNOT_DUMP): New, set by configure.
4136 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
4137
2e2bbddb
JL
41382010-05-20 Juri Linkov <juri@jurta.org>
4139
4140 * fileio.c (Fdelete_file): Change interative spec to use
4141 `read-file-name' like in `find-file-read-args' where the default
4142 value is `default-directory' instead of `buffer-file-name'.
4143 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
4144
31c4aaf6
KR
41452010-05-20 Kevin Ryde <user42@zip.com.au>
4146
4147 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
4148 (Voverriding_terminal_local_map, Vsystem_key_alist)
4149 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
4150
9d5cf9b6
GM
41512010-05-20 Glenn Morris <rgm@gnu.org>
4152
4153 * Makefile.in (DEPDIR): New constant.
4154 (DEPFLAGS): Set with configure, not cpp.
4155 (MKDEPDIR): New, set by configure.
4156 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
4157 (clean): Use $DEPDIR.
4158 (deps_frag): Include from configure.
4159 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
4160 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
4161
ead6f8f5
EZ
4162 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
4163 reallocation of the cache. (Bug#6210)
4164
7f34aec3
GM
41652010-05-19 Glenn Morris <rgm@gnu.org>
4166
d494e8f2
GM
4167 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
4168
c1d0dcfd
GM
4169 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
4170 (GNULIB_VAR): Remove.
4171 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
4172
4173 * m/ibms390x.h (LINKER):
4174 * m/macppc.h (LINKER) [GNU_LINUX]:
4175 * s/aix4-2.h (ORDINARY_LINK):
4176 * s/cygwin.h (LINKER):
4177 * s/darwin.h (ORDINARY_LINK):
4178 * s/gnu.h (ORDINARY_LINK):
4179 * s/netbsd.h (LINKER):
4180 * s/usg5-4.h (ORDINARY_LINK):
4181 Move to configure.
4182
7f34aec3
GM
4183 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
4184
754790b6
CY
41852010-05-18 Chong Yidong <cyd@stupidchicken.com>
4186
4187 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
4188 prevent stack overflow if number of arguments is too large
4189 (Bug#6214).
4190
161e44d1
JB
41912010-05-18 Juanma Barranquero <lekktu@gmail.com>
4192
4193 * charset.c (load_charset_map_from_file): Don't call close after fclose.
4194
be4ff9da
GM
41952010-05-18 Glenn Morris <rgm@gnu.org>
4196
9539dc5d
GM
4197 * s/gnu-linux.h: Combine two conditionals.
4198
4199 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
4200 $(POST_ALLOC_OBJ).
4201
40dc6bf4
GM
4202 * Makefile.in (RALLOC_OBJ): New, set by configure.
4203 (rallocobj): Replace with the previous variable.
4204 (otherobj): Use $RALLOC_OBJ.
4205
4206 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
4207 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
4208
be4ff9da
GM
4209 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
4210 (gmallocobj, vmlimitobj): Replace with previous two variables.
4211 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
4212
16455a85
GM
42132010-05-17 Glenn Morris <rgm@gnu.org>
4214
4215 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
4216 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
4217
5fdb7468
GM
42182010-05-16 Glenn Morris <rgm@gnu.org>
4219
7ca1f3f9
GM
4220 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
4221
7541dad5
GM
4222 * Makefile.in (clean): Get rid of HAVE_NS conditional.
4223
da53fab9
GM
4224 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
4225 trailing "/".
4226
b02a6645
GM
4227 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
4228 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
4229
8877ca0f
GM
4230 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
4231 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
4232 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
4233 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
4234 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
4235
5fdb7468
GM
4236 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
4237 Remove ${STARTFLAGS}, nothing ever sets it.
4238
95adb4b1
DN
42392010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
4240
4241 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
4242
676b6304
GM
42432010-05-16 Glenn Morris <rgm@gnu.org>
4244
9beab9ce
GM
4245 * Makefile.in (LIBX_BASE): Always define.
4246
8a95f0e7
GM
4247 * Makefile.in (LIBX_OTHER): Move out of cpp section.
4248
676b6304
GM
4249 * Makefile.in (LIBXT): Always define.
4250
6e546d18
GM
42512010-05-15 Glenn Morris <rgm@gnu.org>
4252
4235ca47 4253 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 4254
6e546d18
GM
4255 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
4256 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
4257
8c5ff6dd
KR
42582010-05-15 Ken Raeburn <raeburn@raeburn.org>
4259
560bb7ae 4260 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
4261 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
4262
8b4eb796
KR
4263 * emacs.c (main): Initialize initial-environment and
4264 process-environment before generating from env, not after.
4265
8c5ff6dd
KR
4266 Handle --version reasonably in CANNOT_DUMP configuration.
4267 * emacs.c (emacs_version, emacs_copyright): New string variables.
4268 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
4269 (syms_of_emacs): Defvar them, and initialize them from the C
4270 string variables.
4271 (main): If initialization hasn't been done, print initial version
4272 info from the C strings, instead of starting an interactive session.
4273
dbd3f723
EZ
42742010-05-15 Eli Zaretskii <eliz@gnu.org>
4275
d20e1419
EZ
4276 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
4277 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
4278 (bidi_paragraph_init): Remove redundant assertion that we are at
4279 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
4280
4281 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
4282 (syms_of_xdisp): Defsubr it.
4283
d36fe237
EZ
4284 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
4285
dbd3f723
EZ
4286 * Makefile.in: Fix MSDOS-related comments.
4287
02be533b
GM
42882010-05-15 Glenn Morris <rgm@gnu.org>
4289
1a82cca9
GM
4290 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
4291 (really-lwlib, really-oldXMenu): Always define.
4292 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
4293
3df7b338
GM
4294 * Makefile.in: Simplify cpp conditional.
4295
2b5f541b
GM
4296 * Makefile.in (${ns_appdir}): Simplify using umask.
4297
02be533b
GM
4298 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
4299
4e2db1fe
SM
43002010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
4301
4302 * eval.c (specbind): Remove left-over duplicate test.
4303 Disallow let-binding frame-local vars. Add comment.
4304
4b292a22
EZ
43052010-05-14 Eli Zaretskii <eliz@gnu.org>
4306
2fe72643 4307 Make the cache of bidi iterator states dynamically allocated.
1edbd309 4308 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
4309 (bidi_init_it): Call it.
4310 (bidi_cache_iterator_state): Enlarge the cache if needed.
4311
4e2db1fe 4312 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
4313 bidi_get_next_char_visually. All callers changed.
4314
82ebc97b
KH
43152010-05-14 Kenichi Handa <handa@m17n.org>
4316
4317 * dispextern.h (struct composition_it): New member reversed_p.
4318
4319 * composite.c (composition_compute_stop_pos): Search backward if
4320 ENDPOS < CHARPOS.
4321 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
4322 Set CMP_IT->reversed_p.
b4b6e17e 4323 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 4324
4e2db1fe
SM
4325 * xdisp.c (set_iterator_to_next):
4326 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
4327 scanning backward. Call composition_compute_stop_pos if scan
4328 direction is changed.
4329 (next_element_from_buffer): Call composition_compute_stop_pos with
4330 negative ENDPOS if we are scanning backward.
4331 (next_element_from_composition): Pay attention to
4332 IT->cmp_it.reversed_p.
4333
0e5d7800
KH
43342010-05-14 Kenichi Handa <handa@m17n.org>
4335
560bb7ae 4336 * font.c (font_range): Return the range for the font found at first.
0e5d7800 4337
cb027b32
GM
43382010-05-14 Glenn Morris <rgm@gnu.org>
4339
177b0288
GM
4340 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
4341
fbc00890
GM
4342 * Makefile.in (mktime, X11, register): Move undefs to configure.
4343
f14d1dfd
GM
4344 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
4345 (MSDOS_X_OBJ): New variable.
4346 (MSDOS_SUPPORT_REAL): New constant.
4347 (MSDOS_SUPPORT): Set as a variable, not with cpp.
4348 (obj): Use MSDOS_X_OBJ.
4349 (lisp): Use MSDOS_SUPPORT as a variable.
4350
11842bd8
GM
4351 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
4352 (GPM_MOUSE_SUPPORT): Now it's a constant.
4353 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
4354 not cpp.
4355
489d31a4 4356 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 4357 (ns_appresdir): Remove, unused.
e20f1f07 4358
489d31a4
GM
4359 * Makefile.in (SHELL): Move outside cpp section.
4360
cb027b32
GM
4361 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
4362
5a903aa9
GM
43632010-05-13 Glenn Morris <rgm@gnu.org>
4364
3369c79f
GM
4365 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
4366 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
4367
d5e982a6
GM
4368 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
4369 HAVE_WINDOW_SYSTEM must be too.
4370
6192e163
GM
4371 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
4372 (lisp): Remove WINNT_SUPPORT.
4373
472c5d6b
GM
4374 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
4375 Let configure set these variables (to empty) in this case as well.
4376
0116466b
GM
4377 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
4378 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
4379
5a903aa9
GM
4380 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
4381 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
4382 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
4383 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
4384 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 4385 the values output by configure.
5a903aa9
GM
4386 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
4387
1a0d7c06
GM
43882010-05-12 Glenn Morris <rgm@gnu.org>
4389
b5457f14
GM
4390 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
4391 (LINKER_WAS_SPECIFIED): Remove.
4392
1a0d7c06
GM
4393 * Makefile.in (LIB_GCC): Set using configure, not cpp.
4394 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
4395 * m/arm.h (LIB_GCC) [GNU_LINUX]:
4396 * s/cygwin.h (LIB_GCC):
4397 * s/freebsd.h (LIB_GCC):
4398 * s/gnu-linux.h (LIB_GCC):
4399 * s/msdos.h (LIB_GCC):
4400 * s/netbsd.h (LIB_GCC):
4401 Move to configure.
4402
3ffd4615 44032010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
4404
4405 * ftfont.c: Fix incorrect parentheses of #if condition for
4406 definining M17N_FLT_USE_NEW_FEATURE.
4407
acddf8ae
GM
44082010-05-11 Glenn Morris <rgm@gnu.org>
4409
4410 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
4411 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
4412
ae5e04fa
EZ
44132010-05-10 Eli Zaretskii <eliz@gnu.org>
4414
4415 * xdisp.c (init_iterator): Don't turn on bidi reordering in
4416 unibyte buffers. See
4417 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
4418
7490175b
GM
44192010-05-10 Glenn Morris <rgm@gnu.org>
4420
97efb629
GM
4421 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
4422 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
4423 (LIBES): Use LIBS_SYSTEM as a variable.
4424 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
4425 * s/aix4-2.h (LIBS_SYSTEM):
4426 * s/freebsd.h (LIBS_SYSTEM):
4427 * s/hpux10-20.h (LIBS_SYSTEM):
4428 * s/sol2-6.h (LIBS_SYSTEM):
4429 * s/unixware.h (LIBS_SYSTEM):
4430 Move to configure.
4431
7490175b
GM
4432 * s/aix4-2.h (MAIL_USE_LOCKF):
4433 * s/bsd-common.h (MAIL_USE_FLOCK):
4434 * s/darwin.h (MAIL_USE_FLOCK):
4435 * s/gnu-linux.h (MAIL_USE_FLOCK):
4436 * s/irix6-5.h (MAIL_USE_FLOCK):
4437 * s/template.h (MAIL_USE_FLOCK):
4438 Move to configure.
4439
0235128c 44402010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
4441
4442 * Version 23.2 released.
4443
0235128c 44442010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
4445
4446 * composite.c (autocmp_chars): Save point as marker before calling
4447 auto-composition-function (Bug#5984).
4448
4449 * lisp.h (restore_point_unwind): Add prototype.
4450
4451 * fileio.c (restore_point_unwind): Remove static attribute.
4452
0235128c 44532010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
4454
4455 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
4456 new feature of libotf and m17n-flt.
0235128c
SM
4457 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
4458 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
4459 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
4460 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
4461 that OUT is NULL. Use OTF_drive_gsub_with_log and
4462 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
4463 OTF_drive_gpos.
4464 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
4465 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
4466 Setup mflt_enable_new_feature and mflt_try_otf.
4467
4721152c
J
44682010-05-08 Jan Djärv <jan.h.d@swipnet.se>
4469
4470 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
4471
4472 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
4473 box and toolbar (Bug #6139).
4474 (xg_create_tool_bar): Remove comment (Bug #6139).
4475 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
4476 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
4477
ee0a16cf
JB
44782010-05-08 Juanma Barranquero <lekktu@gmail.com>
4479
4480 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
4481 Update dependencies.
4482
96d79611
EZ
44832010-05-08 Eli Zaretskii <eliz@gnu.org>
4484
4485 * fringe.c (update_window_fringes): Set up truncation bitmaps for
4486 R2L lines.
4487
40c17879
GM
44882010-05-08 Glenn Morris <rgm@gnu.org>
4489
7b42b29f
GM
4490 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
4491
40c17879
GM
4492 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
4493 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
4494 (termcapobj): Replace with TERMCAP_OBJ.
4495 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
4496 (LIBES): Use LIBS_TERMCAP as a variable.
4497
4498 * s/freebsd.h (osreldate.h): No longer include, since this file
4499 does not use __FreeBSD_version any more.
4500
4501 * s/aix4-2.h (TERMINFO):
4502 * s/cygwin.h (TERMINFO):
4503 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4504 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
4505 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4506 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4507 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
4508 * s/irix6-5.h (TERMINFO):
4509 * s/netbsd.h (LIBS_TERMCAP):
4510 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
4511 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
4512 * s/usg5-4.h (TERMINFO):
4513 Move to configure.
4514
94b612ad
SM
45152010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
4516
4517 * eval.c (unbind_to): Don't unbind a local binding into the global
4518 binding when the local binding disappeared. Inversely, don't unbind
4519 a global binding into a newly created local binding.
4520 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
4521 can specify the frame to use, when applicable. Adjust callers.
4522
15e12598 45232010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 4524 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
4525
4526 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
4527
f724825e
EZ
45282010-05-07 Eli Zaretskii <eliz@gnu.org>
4529
5cba3209
EZ
4530 * w32fns.c: Include w32.h.
4531 (Fw32_shell_execute): Decode the error message before passing it
4532 to `error'. (Bug#6126)
4533
d16bdfc3
EZ
4534 * msdos.c (dos_set_window_size):
4535 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
4536 instead of `XSYMBOL (foo)->value'.
4537
59d93e87
EZ
45382010-05-07 Eli Zaretskii <eliz@gnu.org>
4539
9fdec8bc
EZ
4540 Fix the MS-DOS build, broken by autoconfiscation.
4541
4542 * Makefile.in: Don't use Make-style comments past the "start of
4543 cpp stuff" line.
4544 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
4545
4546 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
4547 edited directly by msdos/sed1v2.inp).
f724825e 4548
2f86b22b
GM
45492010-05-07 Glenn Morris <rgm@gnu.org>
4550
4551 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
4552 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
4553 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
4554 move out of cpp section.
4555 * s/freebsd.h (LD_SWITCH_SYSTEM):
4556 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
4557 * s/netbsd.h (LD_SWITCH_SYSTEM):
4558 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
4559
49ebbd65
DN
45602010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
4561
4562 Define LIB_STANDARD and START_FILES using autoconf.
4563 * s/usg5-4.h (LIB_STANDARD):
4564 * s/netbsd.h (START_FILES):
4565 * s/irix6-5.h (LIB_STANDARD):
4566 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
4567 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4568 * s/freebsd.h (START_FILES):
4569 * s/darwin.h (START_FILES):
4570 * s/cygwin.h (START_FILES):
4571 * s/aix4-2.h (LIB_STANDARD):
4572 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
4573 * Makefile.in (STARTFILES): Rename to START_FILES, define using
4574 autoconf, not cpp.
4575
d43c06d6
DN
45762010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
4577
28823648
DN
4578 Remove NEED_BSDTTY and NEED_UNISTD_H.
4579 * s/hpux10-20.h (NEED_BSDTTY): Remove.
4580 * s/aix4-2.h (NEED_UNISTD_H): Remove.
4581 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
4582 <sys/ptyio.h> and <unistd.h>.
4583
aca00430
DN
4584 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
4585
d43c06d6
DN
4586 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
4587 * s/gnu.h (START_FILES): Remove empty definition.
4588
3e56b11d
JD
45892010-05-06 Jan Djärv <jan.h.d@swipnet.se>
4590
4591 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
4592
e3cf0cde
GM
45932010-05-06 Glenn Morris <rgm@gnu.org>
4594
4595 * Makefile.in (CPP, LN_S): Remove unused variables.
4596
774b9a60
SM
45972010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
4598
4599 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
4600
4ab92842
LM
46012010-05-05 Lawrence Mitchell <wence@gmx.li>
4602
4603 * m/sparc.h: Fix typo in earlier change.
4604
178f2507
SM
46052010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4606
4607 Misc tweaks.
4608 * eval.c (Fdefvaralias): Remove unintended nested if.
4609 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
4610
80f00217 46112010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
4612
4613 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
4614
ef03a4e6
DN
46152010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4616
58eb6cf0
DN
4617 Remove BSD_PGRPS.
4618 * s/bsd-common.h (BSD_PGRPS): Remove undef.
4619 * s/gnu-linux.h (BSD_PGRPS): Remove.
4620 * term.c (dissociate_if_controlling_tty):
4621 * sysdep.c (narrow_foreground_group, widen_foreground_group)
4622 (init_sys_modes, reset_sys_modes):
4623 * emacs.c (main):
4624 * callproc.c (Fcall_process, child_setup): Remove code depending
4625 on BSD_PGRPS.
4626
ef03a4e6
DN
4627 Remove POSIX_SIGNALS.
4628 * s/usg5-4.h (POSIX_SIGNALS):
4629 * s/netbsd.h (POSIX_SIGNALS):
4630 * s/msdos.h (POSIX_SIGNALS):
4631 * s/ms-w32.h (POSIX_SIGNALS):
4632 * s/hpux11.h (POSIX_SIGNALS):
4633 * s/gnu.h (POSIX_SIGNALS):
4634 * s/gnu-linux.h (POSIX_SIGNALS):
4635 * s/freebsd.h (POSIX_SIGNALS):
4636 * s/darwin.h (POSIX_SIGNALS):
4637 * s/cygwin.h (POSIX_SIGNALS):
4638 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
4639 * s/unixware.h:
4640 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
4641 * process.c (create_process):
4642 * syssignal.h:
4643 * sysdep.c (wait_for_termination, init_signals):
4644 * process.c (create_process):
4645 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
4646 remove all code that assumes the contrary.
4647
49628785
GM
46482010-05-04 Glenn Morris <rgm@gnu.org>
4649
27a2cdfc
GM
4650 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
4651 variable.
4652 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4653 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
4654 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4655 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
4656 LD_SWITCH_SYSTEM_tmp.
4657 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
4658 New variables, set by configure.
4659
eb21eab5
GM
4660 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4661 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
4662 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4663 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
4664 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
4665
49628785
GM
4666 * s/aix4-2.h (C_SWITCH_SYSTEM):
4667 * m/alpha.h (C_SWITCH_MACHINE):
4668 Move to configure.in.
4669 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
4670 New variables, set by configure.
4671 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
4672 $c_switch_machine and $c_switch_system.
4673
7dff330b
DN
46742010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4675
4676 * s/hpux10-20.h (LIB_STANDARD): New definition.
4677 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
4678 on it, not used anymore.
4679
53967e09
CY
46802010-05-03 Chong Yidong <cyd@stupidchicken.com>
4681
4682 * eval.c (internal_condition_case_n): Rename from
4683 internal_condition_case_2.
4684 (internal_condition_case_2): New function.
4685
4686 * xdisp.c (safe_call): Use internal_condition_case_n.
4687
4688 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
4689 (internal_delete_file, Frename_file): Callers changed.
4690
4691 * buffer.c (Fkill_buffer):
4692 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
4693
4694 * lisp.h: Update prototypes.
4695
3dee6fdb
GM
46962010-05-03 Glenn Morris <rgm@gnu.org>
4697
4698 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
4699 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
4700 (LIBXT): Set with configure, not cpp.
4701 (LIBX): Remove.
4702 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
4703
a101e0fb
DN
47042010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4705
4706 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
4707 The FreeBSD is not needed, the default works, Solaris version is
4708 not needed, and the remaining case is not supported by configure.
4709
f63d0028
JD
47102010-05-02 Jan Djärv <jan.h.d@swipnet.se>
4711
4712 * xsmfns.c (CHDIR_OPT): New define.
4713 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
4714 restarting emacs.
4715
4716 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
4717 shut_down_emacs.
4718
4719 * emacs.c (USAGE1): Mention --chdir.
4720 (main): Handle --chdir.
4721 (standard_args): Add --chdir.
4722 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
4723 #5552).
4724
e4814a9f
DN
47252010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
4726
cd03c74a
DN
4727 Remove LD_SWITCH_MACHINE.
4728 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
4729 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
4730
c3a398a1
DN
4731 Clean up IRIX code.
4732 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
4733 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
4734
87e7285c
DN
4735 Clean up AIX code.
4736 * m/ibmrs6000.inp: Remove file, unused.
4737 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
4738 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
4739 definition ...
4740 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
4741
80f00217
JB
4742 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
4743 unused.
e4814a9f 4744
59ca28de
EZ
47452010-05-01 Eli Zaretskii <eliz@gnu.org>
4746
197daef4
EZ
4747 Emulate POSIX_SIGNALS on MS-Windows.
4748
4749 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
4750 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
4751
4752 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
4753 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
4754 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
4755
80f00217
JB
4756 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
4757 New stubs.
197daef4 4758
af7c7572
EZ
4759 Miscellaneous fixes of bidi display.
4760
59ca28de
EZ
4761 * xdisp.c (find_row_end): New function, refactored from display_line.
4762 (display_line): Use it.
017ea819
EZ
4763 (extend_face_to_end_of_line): In almost-filled rows, extend only
4764 if the row is R2L and not continued.
166e930d 4765 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 4766 Preserve overlay and string info in row->end.
166e930d
EZ
4767 (insert_left_trunc_glyphs): Support addition of left truncation
4768 glyphs to R2L rows.
b47e0dcf 4769 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
4770 glyph between adjacent windows. Fix a crash when a display string
4771 is continued to the next line. Don't return zero if cursor was
4772 found by `cursor' property of a display string.
b47e0dcf
EZ
4773 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
4774 test for that explicitly.
59ca28de 4775
7acac9f4
GM
47762010-05-01 Glenn Morris <rgm@gnu.org>
4777
4778 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
4779 for clarity.
4780 (OTHER_OBJ): Remove.
4781 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
4782 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
4783
45841e65
KK
47842010-05-01 Karel Klíč <kklic@redhat.com>
4785
4786 * fileio.c (Ffile_selinux_context): Context functions may return null.
4787
afc61943
DN
47882010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
4789
80f00217 4790 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 4791
5a1bb006
GM
47922010-04-30 Glenn Morris <rgm@gnu.org>
4793
4794 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
4795 (OTHER_OBJ): Define as a separate variable, for clarity.
4796
210af043
J
47972010-04-30 Jan Djärv <jan.h.d@swipnet.se>
4798
4799 * xsettings.c: include limits.h and update file comment.
4800
0a7df391
GM
48012010-04-30 Glenn Morris <rgm@gnu.org>
4802
d5096f16
GM
4803 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
4804 Set with configure, not cpp.
4805 (LIBW): Remove, replace with $TOOLKIT_LIBW.
4806
7eb1ac33
GM
4807 * Makefile.in (mallocobj): Remove.
4808 (otherobj): Simplify using @OTHER_OBJ@.
4809
517d086b
GM
4810 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
4811 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
4812 Don't bother making nsgui.h dependency platform-specific.
4813
0a7df391
GM
4814 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
4815
d6d23852
SM
48162010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
4817
d2630aef
SM
4818 * process.c (read_process_output, exec_sentinel): Don't burp if the
4819 sentinel/filter kills the current buffer (bug#6060).
4820
f9dddf52 4821 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
4822 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
4823 Remove unused var `args'.
4824 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
4825 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
4826 * doc.c (store_function_docstring): Use XSETCAR.
4827
f1e3642a
GM
48282010-04-28 Glenn Morris <rgm@gnu.org>
4829
faf535f8
GM
4830 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
4831 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
4832
c40f9449
GM
4833 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
4834
658f86ca
GM
4835 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
4836 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
4837
bc0b5f61
GM
4838 * Makefile.in (FONT_OBJ): New, set by configure.
4839 (FONT_DRIVERS): Use $FONT_OBJ.
4840
294c50a0
GM
4841 * Makefile.in (LIBXMU): Set with configure, not cpp.
4842 * s/aix4-2.h (LIBXMU):
4843 * s/hpux10-20.h (LIBXMU):
4844 Remove definition, now set in configure.
4845
e6ec4e99
GM
4846 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
4847
f1e3642a
GM
4848 * m/amdx86-64.h [i386]: Move this test to configure.in.
4849
c6ea2936
GM
48502010-04-27 Glenn Morris <rgm@gnu.org>
4851
8fdac2c3
GM
4852 * Makefile.in (LIBXTR6): Set with configure, not cpp.
4853 * s/unixware.h (NEED_LIBW): Remove definition.
4854
986fb647
GM
4855 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
4856 (TOOLKIT_LIBW): New, set by configure.
4857 (@X_TOOLKIT_TYPE@): No longer define it.
4858
c6ea2936
GM
4859 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
4860 (MOTIF_LIBW): Set with configure, not cpp.
4861 * s/aix4-2.h (LIB_MOTIF):
4862 * s/gnu-linux.h (LIB_MOTIF):
4863 * s/unixware.h (LIB_MOTIF): Move to configure.in.
4864
aaa36002
DN
48652010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
4866
4867 Reduce CPP usage.
4868 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
4869 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
4870 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
4871 definitions and undefs. Inline definitions in the only user.
4872 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 4873
b678dd8b
GM
48742010-04-27 Glenn Morris <rgm@gnu.org>
4875
76cda504
GM
4876 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
4877 since the defaults (set by the system file) are fine in most cases.
4878 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
4879 * m/ibms390x.h (START_FILES, LIB_STANDARD):
4880 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
4881 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
4882 Remove definitions, since they are set correctly in s/gnu-linux.h.
4883 * s/freebsd.h (START_FILES, LIB_STANDARD):
4884 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4885 * s/hpux10-20.h (START_FILES):
4886 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
4887 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
4888
b678dd8b
GM
4889 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
4890 (MOTIF_LIBW): Use $LIBXP.
4891 (otherobj): Use $WIDGET_OBJ.
4892
9452ded1
DN
48932010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
4894
7e10844c
DN
4895 * Makefile.in (LIBS_MACHINE): Remove, unused.
4896
9452ded1
DN
4897 Use autoconf instead of cpp for LIB_MATH.
4898 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
4899 * s/cygwin.h (LIB_MATH): Likewise.
4900 * Makefile.in (LIB_MATH): Do not define with cpp.
4901 (LIBES): Use autoconf for LIB_MATH.
4902
fcebfc6a
KH
49032010-04-26 Kenichi Handa <handa@m17n.org>
4904
4905 * composite.c (Ffind_composition_internal): Fix the return value
4906 for an automatic composition.
4907
39e2ad1b
DN
49082010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
4909
4910 Remove all NO_ARG_ARRAY uses.
4911 * fns.c (concat2, concat3, nconc2):
4912 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
4913 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
4914 * m/xtensa.h (NO_ARG_ARRAY):
4915 * m/template.h (NO_ARG_ARRAY):
4916 * m/sparc.h (NO_ARG_ARRAY):
4917 * m/sh3.h (NO_ARG_ARRAY):
4918 * m/mips.h (NO_ARG_ARRAY):
4919 * m/macppc.h (NO_ARG_ARRAY):
4920 * m/iris4d.h (NO_ARG_ARRAY):
4921 * m/intel386.h (NO_ARG_ARRAY):
4922 * m/ibms390x.h (NO_ARG_ARRAY):
4923 * m/ibms390.h (NO_ARG_ARRAY):
4924 * m/ibmrs6000.h (NO_ARG_ARRAY):
4925 * m/ia64.h (NO_ARG_ARRAY):
4926 * m/hp800.h (NO_ARG_ARRAY):
4927 * m/arm.h (NO_ARG_ARRAY):
4928 * m/amdx86-64.h (NO_ARG_ARRAY):
4929 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
4930
adf4f59c
EZ
49312010-04-25 Eli Zaretskii <eliz@gnu.org>
4932
6bdf5d65
EZ
4933 * xdisp.c (display_line): Don't assume 2nd call to
4934 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
4935 (iterate_out_of_display_property): New function, body from pop_it.
4936 (pop_it): Use it.
adf4f59c 4937
dfbbda83
GM
49382010-04-24 Glenn Morris <rgm@gnu.org>
4939
4940 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
4941 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
4942 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
4943 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
4944
2d4018aa
EZ
49452010-04-24 Eli Zaretskii <eliz@gnu.org>
4946
a49884a6
EZ
4947 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
4948 use `get_next_display_element' and `set_iterator_to_next' to
4949 advance to the next character, when looking for the character that
4950 begins the next row.
4951
76db6fcc 4952 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
4953 definition of "struct Lisp_Symbol".
4954
70eab5c1
GM
49552010-04-24 Glenn Morris <rgm@gnu.org>
4956
4957 * Makefile.in (CRT_DIR): New variable, set by configure.
4958 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
4959 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
4960
1ad4cc3d
DN
49612010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4962
e769f484
DN
4963 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
4964
4196ff33
DN
4965 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
4966
879b0ee4
DN
4967 Remove redundant flags.
4968 * s/freebsd.h (C_SWITCH_SYSTEM):
4969 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
4970 * s/netbsd.h (C_SWITCH_SYSTEM):
4971 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
4972 of these.
4973
03cbbcb8
DN
4974 Simplify m/intel386.h.
4975 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
4976 user: ecrt0.c.
4977 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
4978 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
4979 the only user: s/unixware.h.
4980 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
4981 from m/intel386.h.
4982 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
4983 moved here from m/intel386.h.
4984
1ad4cc3d
DN
4985 * m/mips.h: Remove #if 0 code.
4986
8785b888
EZ
49872010-04-23 Eli Zaretskii <eliz@gnu.org>
4988
728588cc
EZ
4989 Fix display of composed characters from L2R scripts in bidi buffers.
4990 * xdisp.c (set_iterator_to_next, next_element_from_composition):
4991 After advancing IT past the composition, resync the bidi iterator
4992 with IT's position. (Bug#5977)
4993
a63f80b4
DN
49942010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4995
4996 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
4997 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
4998
ff5dec5c
SM
49992010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
5000
5001 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
5002
8785b888
EZ
50032010-04-23 Eli Zaretskii <eliz@gnu.org>
5004
58ccf243 5005 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
5006 * xdisp.c (pop_it): When the stack is popped after displaying
5007 from a string, bidi-iterate to exit from the text portion covered
5008 by the `display' property or overlay. (Bug#5988, bug#5920)
5009
feeb1604
DN
50102010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5011
8e324eb6
DN
5012 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
5013 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
5014
809fcaba
DN
5015 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
5016 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
5017
ed710380
DN
5018 Simplify STARTFILES definition.
5019 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
5020 relying on Makefile.in to define it.
5021 * s/cygwin.h (START_FILES): Likewise.
5022 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
5023
feeb1604
DN
5024 Clean up Solaris code.
5025 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
5026 (LIB_MOTIF): Remove, configure takes care of this.
5027 (NOT_USING_MOTIF): Remove, unused.
5028 * xrdb.c: Remove #if 0-ed #include.
5029 (SYSV): Remove conditional for old SysV.
5030 * sysdep.c (closedir): Remove conditional code for Solaris,
5031 Solaris has closedir.
5032
a0d0b563
JD
50332010-04-22 Jan Djärv <jan.h.d@swipnet.se>
5034
5035 * xsettings.c (read_and_apply_settings): Check if current_font is
5036 NULL before strcmp (Bug#6001).
5037
56bae7c7
DN
50382010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
5039
5040 Clean up HP-UX files.
5041 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
5042 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
5043 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
5044 * s/hpux10-20.h: ... to the only user, here.
5045
372b7a95
EZ
50462010-04-21 Eli Zaretskii <eliz@gnu.org>
5047
5048 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
5049 use buffer-local values of paragraph-start and paragraph-separate.
5050 <paragraph_start_re, paragraph_separate_re>: Rename from
5051 fallback_paragraph_start_re and fallback_paragraph_separate_re.
5052 (Bug#5992)
5053
f904c0f9
JD
50542010-04-21 Jan Djärv <jan.h.d@swipnet.se>
5055
5056 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
5057 current_tool_bar_style are new.
5058 (store_config_changed_event): Rename from store_font_changed_event.
5059 (XSETTINGS_TOOL_BAR_STYLE): New define.
5060 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
5061 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
5062 HAVE_XFT.
5063 (something_changedCB): store_font_changed_event is now
c4cc8b9a 5064 store_config_changed_event.
f904c0f9
JD
5065 (parse_settings): Rename from parse_xft_settings. Read
5066 non-xft xsettings outside #ifdef HAVE_XFT.
5067 (read_settings): Renamed from read_xft_settings.
5068 (apply_xft_settings): Take current settings as parameter. Do not
5069 call read_(xft)_settings.
5070 (read_and_apply_settings): New function.
5071 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
5072 read_and_apply_settings if there are settings to be read.
5073 (init_xsettings): Renamed from init_xfd_settings.
5074 Call read_and_apply_settings unconditionally.
5075 (xsettings_initialize): Call init_xsettings.
5076 (Ftool_bar_get_system_style): New function.
5077 (syms_of_xsettings): Define Qmonospace_font_name and
5078 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 5079 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 5080 dynamic-setting.
31a01b90 5081 Move misplaced HAVE_GCONF
f904c0f9
JD
5082
5083 * xsettings.h (Ftool_bar_get_system_style): Declare.
5084
5085 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
5086 Qtext, Qboth, Qboth_horiz are new.
5087 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
5088 Vtool_bar_style, tool_bar_max_label_size.
5089
5090 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
5091
5092 * keyboard.c: QClabel is new.
5093 (parse_tool_bar_item): Take out QClabel from tool bar items.
5094 Try to construct a label if ther is no QClabel.
5095 (syms_of_keyboard): Intern :label as QClabel.
5096
5097 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
5098 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
5099 New.
5100
5101 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
5102 dynamic-setting.el.
5103
5104 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
5105 (xg_make_tool_item, xg_show_toolbar_item): New function.
5106 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
5107 Call xg_make_tool_item to make a tool bar item.
5108 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
5109
5110 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
5111 into account for toolbars.
5112
c632dfda
JD
51132010-04-21 Jan Djärv <jan.h.d@swipnet.se>
5114
5115 * data.c (make_blv): Declarations before code (Bug#5993).
5116
10efe302
GM
51172010-04-21 Glenn Morris <rgm@gnu.org>
5118
5119 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
5120 Define using autoconf, not cpp.
5121 (LIBXSM): New variable, set by autoconf.
5122 (LIBXT): Use $LIBXSM.
5123
4285ac5a
DN
51242010-04-21 Dan Nicolaescu <local_user@dannlt>
5125
3ec759e7
DN
5126 Remove NOMULTIPLEJOBS, unused.
5127 * s/template.h (NOMULTIPLEJOBS):
5128 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
5129
4285ac5a
DN
5130 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
5131 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
5132 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
5133 detects -znocombreloc and passes it to the linker
5134 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
5135
2807228d
GM
51362010-04-21 Glenn Morris <rgm@gnu.org>
5137
5138 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
5139
574c05e2
KK
51402010-04-21 Karel Klíč <kklic@redhat.com>
5141
5142 * Makefile.in (LIBSELINUX_LIBS): New.
5143 (LIBES): Add $LIBSELINUX_LIBS.
5144 * eval.c, lisp.h (call7): New function.
5145 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
5146 (Ffile_selinux_context, Fset_file_selinux_context):
5147 New functions.
5148 (Fcopy_file): New parameter preserve-selinux-context.
5149 (Frename_file): Preserve selinux context when renaming by copy-file.
5150
91eac4bb 51512010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 5152 Eli Zaretskii <eliz@gnu.org>
91eac4bb 5153
50426a04
JB
5154 Don't depend on cm.c or termcap.c on Windows, use stubs.
5155 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
5156 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
5157 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
5158 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
5159 (sys_tputs, sys_tgetstr): New stubs.
5160 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
5161 (tputs, tgetstr): New; define to sys_*.
91eac4bb 5162
938efb77
JB
51632010-04-20 Juanma Barranquero <lekktu@gmail.com>
5164
5165 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
5166
b4bf28b7
SM
51672010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5168
8b1e1112
SM
5169 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
5170 Just signal a warning rather than an error when inside a let.
5171 (Fmake_variable_frame_local): Add the same test.
5172
933ac235
SM
5173 * font.c (syms_of_font): Make the style table vars read-only.
5174
b4bf28b7
SM
5175 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
5176 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
5177
5178 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
5179
93d68d0c
EZ
51802010-04-20 Eli Zaretskii <eliz@gnu.org>
5181
5182 Fix R2L paragraph display on TTY.
5183
5184 * xdisp.c (unproduce_glyphs): New function.
5185 (display_line): Use it when produced glyphs are discarded from R2L
5186 glyph rows.
5187 (append_composite_glyph): In R2L rows, prepend the glyph rather
5188 than appending it.
5189
5190 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
5191 rather than append it. Set up the resolved_level and bidi_type
5192 attributes of the appended glyph.
283ccc18
EZ
5193 (produce_special_glyphs): Mirror the backslash continuation
5194 character in R2L lines.
93d68d0c 5195
283ccc18 5196 Implement display of R2L paragraphs in GUI sessions.
26cdf528 5197
283ccc18
EZ
5198 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
5199 append_stretch_glyph.
5200 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
5201 off-by-one error in computing x at end of text in the row.
5202 (append_stretch_glyph): In reversed row, prepend the glyph rather
5203 than append it. Set resolved_level and bidi_type of the glyph.
5204 (extend_face_to_end_of_line): If the row is reversed, prepend a
5205 stretch glyph whose width is such that the rightmost glyph will be
5206 drawn at the right margin of the window. Fix off-by-one error on
5207 TTY frames in testing whether a line needs face extension. Fix
5208 face extension at ZV. If this is the last glyph row, use
5209 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
5210 region face.
5211 (set_cursor_from_row, display_line): Use
26cdf528
EZ
5212 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
5213 row->continuation_lines_width.
283ccc18
EZ
5214 (next_element_from_buffer): Don't call bidi_paragraph_init if we
5215 are at ZV. Fixes a crash when reseated to ZV by
5216 try_window_reusing_current_matrix.
45903529
EZ
5217 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
5218 which happens with R2L glyph rows. Fixes a crash when inserting a
5219 character at end of an R2L line.
283ccc18
EZ
5220 (set_cursor_from_row): Don't be fooled by truncated rows: don't
5221 treat them as having zero-width characters. Improve comments.
5222 Don't reverse pos_before and pos_after for reversed glyph rows.
5223 Set cursor.x to negative value when the cursor might be on the
5224 left fringe.
5225 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
5226 left fringe, not the right one.
f951a506
EZ
5227 (notice_overwritten_cursor, draw_phys_cursor_glyph)
5228 (erase_phys_cursor): For reversed cursor_row, support cursor on
5229 the left fringe.
5230
283ccc18
EZ
5231 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
5232 of continuation indicators on the fringes.
5233 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
5234 left fringe.
5235
f951a506
EZ
5236 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
5237 draw cursor on the left fringe.
5238
5239 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
5240 cursor on the left fringe.
5241
f951a506
EZ
5242 * dispnew.c (update_text_area): Handle reversed desired rows when
5243 the cursor is on the left fringe.
5244 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
5245 below, not by 0, for when the cursor is on the left fringe.
5246
3bb49aaf
JD
52472010-04-20 Jan Djärv <jan.h.d@swipnet.se>
5248
5249 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
5250 widget is a scrollbar.
5251
c0be27fd
KH
52522010-04-20 Kenichi Handa <handa@m17n.org>
5253
5254 * charset.c (char_charset): Consider Vcharset_non_preferred_head
5255 only when the arg CHARSET_LIST is nil.
5256
ce5b453a
SM
52572010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5258
5259 Make variable forwarding explicit rather the using special values.
5260 Basically, this makes the structure of buffer-local values and object
5261 forwarding explicit in the type of Lisp_Symbols rather than use
5262 special Lisp_Objects for that. This tends to lead to slightly more
5263 verbose code, but is more C-like, simpler, and makes it easier to make
5264 sure we handled all cases, among other things by letting the compiler
5265 help us check it.
5266 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
5267 Removing forwarding objects.
5268 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
5269 (struct Lisp_Symbol): Make the various forms of variable-forwarding
5270 explicit rather than hiding them inside Lisp_Object "values".
5271 (XFWDTYPE): New macro.
5272 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
5273 (XBUFFER_LOCAL_VALUE): Remove.
5274 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
5275 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
5276 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
5277 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
5278 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
5279 Remove the Lisp_Misc_* header.
5280 (struct Lisp_Buffer_Local_Value): Redefine.
5281 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
5282 (struct Lisp_Misc_Any): Add filler to get the right size.
5283 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
5284 Lisp_Intfwd.
5285 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
5286 (DEFVAR_KBOARD): Allocate a forwarding object.
5287 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
5288 (let_shadows_global_binding_p): New function.
5289 (union Lisp_Val_Fwd): New type.
5290 (make_blv): New function.
5291 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
5292 (store_symval_forwarding, swap_in_global_binding, Fboundp)
5293 (swap_in_symval_forwarding, find_symbol_value, Fset)
5294 (let_shadows_buffer_binding_p, set_internal, default_value)
5295 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
5296 (Fkill_local_variable, Fmake_variable_frame_local)
5297 (Flocal_variable_p, Flocal_variable_if_set_p)
5298 (Fvariable_binding_locus):
5299 * xdisp.c (select_frame_for_redisplay):
5300 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
5301 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
5302 * frame.c (store_frame_param):
5303 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
5304 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
5305 value structure.
5306 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
5307 (clone_per_buffer_values): Only adjust markers into the current buffer.
5308 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
5309 (Fbuffer_local_value, set_buffer_internal_1)
5310 (swap_out_buffer_local_variables):
5311 Adapt to the new symbol value structure.
5312 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
5313 (defvar_per_buffer): Take a new arg for the fwd object.
5314 (buffer_lisp_local_variables): Return a proper alist (different fix
5315 for bug#4138).
5316 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
5317 (Fgarbage_collect): Don't handle buffer_defaults specially.
5318 (mark_object): Handle new symbol value structure rather than the old
5319 special Lisp_Misc_* objects.
5320 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
5321 * term.c (set_tty_color_mode):
5322 * bidi.c (bidi_initialize): Don't access the ->value field directly.
5323 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
5324 a buffer_local_flags.
5325 * print.c (print_object): Get rid of impossible forwarding objects.
5326
fd3998ff
EZ
53272010-04-19 Eli Zaretskii <eliz@gnu.org>
5328
5329 * bidi.c (bidi_get_type, bidi_get_category)
5330 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
5331 (bidi_type_of_next_char, bidi_level_of_next_char):
5332 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 5333
e42cd1a7
JB
53342010-04-19 Juanma Barranquero <lekktu@gmail.com>
5335
5336 * dired.c (Ffile_attributes): Fix typo in docstring.
5337
6e104790 53382010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
5339
5340 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
5341 NSInteger (Bug#5811).
5342
6e104790 53432010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
5344
5345 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
5346 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
5347
6e104790 53482010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
5349
5350 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
5351
6e104790
SM
53522010-04-19 Chong Yidong <cyd@stupidchicken.com>
5353
5354 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
5355 terminal frames (Bug#5837).
5356
37dcfea0
EZ
53572010-04-19 Eli Zaretskii <eliz@gnu.org>
5358
d1da276f
EZ
5359 * .gdbinit (xsubchartable): New command.
5360
37dcfea0
EZ
53612010-04-19 Eli Zaretskii <eliz@gnu.org>
5362
5363 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 5364 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
5365 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
5366 and
5367 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
5368
e9515805
SM
53692010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
5370
5371 * alloc.c (Fpurecopy): Hash-cons if requested.
5372 (syms_of_alloc): Update purify-flag docstring.
5373
22aa44a8
JD
53742010-04-18 Jan Djärv <jan.h.d@swipnet.se>
5375
5376 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
5377 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
5378
ebb5722e
EZ
53792010-04-17 Eli Zaretskii <eliz@gnu.org>
5380
5381 Fix a crash when an NSM character is inserted at BEGV.
5382
5383 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
5384 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
5385 NEUTRAL_B or UNKNOWN_BT.
5386
0f4442ef
EZ
53872010-04-16 Eli Zaretskii <eliz@gnu.org>
5388
5389 * xdisp.c (set_cursor_from_row): Don't consider possibility of
5390 other rows with cursor unless they are different from this row and
5391 this row is part of a continued line. (Bug#5943)
5392
7d4e45f8
DN
53932010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
5394
5395 * s/freebsd.h: Restore osreldate.h include.
5396 Suggested by Naohiro Aota.
5397
5ba5ec85
J
53982010-04-16 Jan Djärv <jan.h.d@swipnet.se>
5399
5400 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
5401
20af301d
CY
54022010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
5403
5404 * s/cygwin.h: Avoid linking against static libgcc.
5405
a4b000fb
JL
54062010-04-15 Juri Linkov <juri@jurta.org>
5407
5408 * window.c: Add Qscroll_command.
5409 Remove Vscroll_preserve_screen_position_commands.
5410 (window_scroll_pixel_based, window_scroll_line_based): Check the
5411 `scroll-command' property on the last command instead of searching
5412 the last command in Vscroll_preserve_screen_position_commands.
5413 (syms_of_window): Initialize and staticpro `Qscroll_command'.
5414 Put Qscroll_command property on Qscroll_up and Qscroll_down.
5415 (scroll-preserve-screen-position): Doc fix.
5416 (Vscroll_preserve_screen_position_commands): Remove variable.
5417
bc319ba4
DN
54182010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5419
6bb24457
DN
5420 * xdisp.c (message): Do not use NO_ARG_ARRAY.
5421
19d4c244
DN
54222010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
5423
5424 Reduce cpp use in Makefile.in.
5425 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
5426 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
5427 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
5428 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
5429 (CRT0_COMPILE): Remove, inline it in the only user.
5430
32129746
JL
54312010-04-14 Juri Linkov <juri@jurta.org>
5432
5433 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
5434 `scroll-up-command' and `M-v' from `scroll-down' to
5435 `scroll-down-command'.
5436
9013a7f8
JL
54372010-04-14 Juri Linkov <juri@jurta.org>
5438
5439 * window.c (Vscroll_preserve_screen_position_commands): New variable
5440 with the default value as the list of Qscroll_down and Qscroll_up.
5441 (window_scroll_pixel_based, window_scroll_line_based): Search the
5442 last command in the list Vscroll_preserve_screen_position_commands
5443 instead of comparing with Qscroll_up and Qscroll_down.
5444
4bef8d26
JD
54452010-04-13 Jan Djärv <jan.h.d@swipnet.se>
5446
92848133
JD
5447 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
5448 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
5449 does that.
5450
4bef8d26
JD
5451 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
5452 to zero.
5453
58b963f7
SM
54542010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5455
84164a0d
SM
5456 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
5457
2b0a91e7
SM
5458 Try to solve the problem of spurious EOF chars in long lines of text
5459 sent to interactive subprocesses.
5460 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
5461 (system_process_attributes): Remove unused var `ttotal'.
5462 * process.c (send_process): Don't bother breaking long line with EOF
5463 chars when talking to ttys any more.
5464 (wait_reading_process_output): Output a warning when called in such
5465 a way that it could block without being interruptible.
5466
58b963f7
SM
5467 Try to detect file modification within the same second.
5468 * buffer.h (struct buffer): New field modtime_size.
5469 * buffer.c (reset_buffer): Initialize it.
5470 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
5471 (Fverify_visited_file_modtime): Check it.
5472 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
5473 (Fset_visited_file_modtime): Set (or clear) it.
5474
01f5787b
SM
54752010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
5476
5477 * process.c (status_notify): Remove unused var `ro'.
5478
83725342
JD
54792010-04-12 Jan Djärv <jan.h.d@swipnet.se>
5480
5481 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
5482 more than one visual (Bug#5938).
5483
b9465836
DN
54842010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
5485
50426a04
JB
5486 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
5487 Undefine.
b9465836 5488
8d9c8ece
DN
54892010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
5490
b1f52161
DN
5491 Remove C_SWITCH_SYSTEM_TEMACS.
5492 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
5493 (malloc, realloc, free): Use emacs, not temacs for conditional
5494 definition.
5495
5496 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
5497 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
5498
8d9c8ece
DN
5499 Use autoconf, not cpp for some variables.
5500 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
5501 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
5502 (ALL_CFLAGS): Use them as make variables.
5503 (really-lwlib, really-oldXMenu): Do not pass them.
5504
1ecb2d3f
JD
55052010-04-11 Jan Djärv <jan.h.d@swipnet.se>
5506
5507 * xmenu.c (apply_systemfont_to_dialog): New.
5508 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
5509
3a4fa2f2
SM
55102010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
5511
97e53006
SM
5512 * process.c (exec_sentinel): Preserve current-buffer.
5513
3a4fa2f2
SM
5514 * process.c (read_process_output): Move the save-current-buffer to
5515 apply to both the filter and the non-filter branches.
5516
88df7221
DN
55172010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
5518
5519 * s/msdos.h (UNEXEC): New definition.
5520
5634ff85
YM
55212010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5522
6eff5c3d
YM
5523 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
5524 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
5525
5526 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
5527 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
5528 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
5529 TRY_WINDOW_CHECK_MARGINS.
5530
5531 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
5532 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
5533 width only when it is for padding.
5634ff85 5534
b13aef54
J
55352010-04-09 Jan Djärv <jan.h.d@swipnet.se>
5536
5537 * xfns.c (Fx_show_tip): Call try_window in a loop until
5538 fonts_changed_p is zero (Bug#2423).
5539
21d28484
EZ
55402010-04-08 Eli Zaretskii <eliz@gnu.org>
5541
5542 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
5543 the end of TEXT_AREA. (Bug#5856)
5544
0269ef77
JD
55452010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5546
5547 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
5548 HAVE_GCONF.
5549
5930fe97
EZ
55502010-04-08 Eli Zaretskii <eliz@gnu.org>
5551
5552 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
5553 prev.orig_type, for resolving type of NSM. (Bug#5858)
5554
99852628
JD
55552010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5556
5557 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
5558 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
5559 in current_font.
5560 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
5561 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
5562 New functions.
5563 (syms_of_xsettings): Initialize current_font.
5564 defsubr Sfont_get_system_normal_font.
99852628 5565
686b968e
JB
5566 * xsettings.h (Ffont_get_system_normal_font)
5567 (xsettings_get_system_normal_font): Declare.
99852628
JD
5568
5569 * xfns.c (extern xlwmenu_default_font): Remove.
5570 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
5571 to xlwmenu.c.
5572
5573 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
5574 menu items in UTF-8.
5575
5576 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
5577 (apply_systemfont_to_menu): New function.
5578 (set_frame_menubar, create_and_show_popup_menu): Call
5579 apply_systemfont_to_menu.
5580
7fc874c4
J
55812010-04-07 Jan Djärv <jan.h.d@swipnet.se>
5582
5583 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
5584 FRAME_LINE_TO_PIXEL_Y.
5585
5586 * xterm.c (x_set_window_size_1): Don't add border_width/height to
5587 pixelwidth/height.
5588
863bf481
DN
55892010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
5590
5e5a3b92
DN
5591 Simplify code for HP machines.
5592 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
5593 for GNU_LINUX, not needed.
5594 (UNEXEC, NEED_BSDTTY): Move definitions...
5595 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
5596
863bf481
DN
5597 * m/iris4d.h (UNEXEC): Move definition ...
5598 * s/irix6-5.h (UNEXEC): ... here.
5599
3e6bec3b
JD
56002010-04-04 Jan Djärv <jan.h.d@swipnet.se>
5601
5602 * xfns.c (set_machine_and_pid_properties): New function.
5603 (Fx_create_frame): Call set_machine_and_pid_properties.
5604
2912322b
SM
56052010-04-03 Eli Zaretskii <eliz@gnu.org>
5606
1502b819
EZ
5607 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
5608 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
5609 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
5610
2912322b
SM
5611 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
5612 in this function. (Bug#5703)
5613
56142010-04-03 Chong Yidong <cyd@stupidchicken.com>
5615
5616 * nsterm.h: Fix last change.
5617
c435b432
DN
56182010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
5619
a568f507
DN
5620 * m/intel386.h (NO_REMAP): Move definition ...
5621 * s/msdos.h (NO_REMAP): ... here.
5622
4cd9f6c2
DN
5623 * m/vax.h (CRT0_DUMMIES): Remove, unused.
5624
c435b432
DN
5625 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
5626 used on those platforms.
5627
42a2c622
DN
56282010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
5629
5630 Remove extern errno declarations.
5631 * xterm.c:
5632 * xrdb.c:
5633 * w32term.c:
5634 * unexec.c:
5635 * unexaix.c:
5636 * sysdep.c:
5637 * process.c:
5638 * lread.c:
5639 * keyboard.c:
5640 * floatfns.c:
5641 * filelock.c:
5642 * fileio.c:
5643 * emacs.c (main):
5644 * ecrt0.c:
5645 * dispnew.c:
5646 * callproc.c:
5647 * buffer.c: Remove errno extern declarations.
5648 * s/netbsd.h (NEED_ERRNO): Remove.
5649
8224f93d
DN
56502010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
5651
5652 Remove all uses of LIBX11_SYSTEM.
5653 * Makefile.in (LIBX11_SYSTEM): Remove.
5654 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
5655 instead.
5656
814062c7
EZ
56572010-04-01 Eli Zaretskii <eliz@gnu.org>
5658
ed68db4d
EZ
5659 Remove support for DJGPP v1.x (bug#5813).
5660
5661 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
5662 * s/msdos.h:
5663 * unexec.c (make_hdr, copy_text_and_data):
5664 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 5665 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
5666 (IT_set_terminal_modes, __write, _rename, gethostname)
5667 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
5668 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
5669 the value of __DJGPP__.
ed68db4d
EZ
5670 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
5671 compatibility code.
8224f93d
DN
5672 * lread.c:
5673 * gmalloc.c (memalign):
5674 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
5675 * emacs.c (main):
5676 * dosfns.c (init_dosfns):
ed68db4d
EZ
5677 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
5678
52f4d8d5
EZ
56792010-04-01 Eli Zaretskii <eliz@gnu.org>
5680
814062c7
EZ
5681 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
5682 string with `cursor' property comes from an `after-string'
5683 overlay. (Bug#5816)
5684
0dc2e11d
GM
56852010-04-01 Glenn Morris <rgm@gnu.org>
5686
5687 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
5688 Define as Makefile variables.
5689 (LIBX): Use above variables rather than directly using autoconf.
5690
1d29df59
DN
56912010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
5692
5693 Clean up BSD_SYSTEM use.
5694 * xterm.c:
5695 * process.c:
5696 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
5697 for including <sys/ioctl.h>.
5698 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
5699 code is only used for MSDOS.
5700
1546c559
JL
57012010-03-31 Juri Linkov <juri@jurta.org>
5702
5703 * image.c: Add `Qextension_data'.
5704 (syms_of_image): Initialize and staticpro `Qextension_data'.
5705 (Fimage_metadata): Rename from `Fimage_extension_data'.
5706 (gif_load): Put GIF extension data to the property
5707 `Qextension_data'.
5708
6521c534
CY
57092010-03-31 Chong Yidong <cyd@stupidchicken.com>
5710
5711 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
5712 * nsterm.h: Fix prototype.
5713
52c30783
EZ
57142010-03-31 Eli Zaretskii <eliz@gnu.org>
5715
5716 * xdisp.c (highlight_trailing_whitespace): Support highlight of
5717 trailing whitespace in right-to-left rows.
5718
855a0da7
SM
57192010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5720
5721 Get rid of the direct_output optimizations.
5722 * keyboard.c (nonundocount): Remove extern declaration.
5723 (command_loop_1): Remove brittle optimisation for cheap and
5724 common operations.
5725 * xdisp.c (redisplay_internal): Don't bother checking
5726 redisplay_performed_directly_p any more.
5727 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
5728 any more.
5729 * dispnew.c (redisplay_performed_directly_p)
5730 (direct_output_for_insert, direct_output_forward_char):
5731 * dispextern.h (redisplay_performed_directly_p)
5732 (direct_output_for_insert, direct_output_forward_char): Remove.
5733 * cmds.c (nonundocount): Make it static.
5734
85738751 57352010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
5736
5737 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
5738
85738751 57392010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
5740
5741 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
5742 invisible (Bug#5766).
5743
85738751 57442010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 5745
855a0da7
SM
5746 * xdisp.c (x_consider_frame_title, update_window_cursor):
5747 Remove HAVE_NS conditionals.
194d44e7 5748 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
5749
5750 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
5751 filename for the title.
5752 (ns_set_doc_edited): Do nothing if the selected window is a
5753 minibuffer window.
5754
5755 * nsterm.h: Add prototypes for ns_set_name_as_filename and
5756 ns_set_doc_edited.
5757
5758 * nsterm.m: Remove unneeded prototype.
5759
85738751 57602010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
5761
5762 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
5763 in the DOC file. (Bug#5336)
5764
85738751 57652010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
5766
5767 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
5768
75d1428c
SM
57692010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5770
5771 * window.c (keys_of_window): Remove redundant/overridden bindings.
5772
82043cfb
EZ
57732010-03-30 Eli Zaretskii <eliz@gnu.org>
5774
5775 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
5776 Restore original behavior when the iterator is not bidi_p.
5777
b5dd0ae7
DN
57782010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5779
5780 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
5781
bd924a5d
EZ
57822010-03-30 Eli Zaretskii <eliz@gnu.org>
5783
5784 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
5785 are outside the range of cached character positions.
5786
3580374b
JB
57872010-03-30 Juanma Barranquero <lekktu@gmail.com>
5788
5789 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
5790
a7b02820
EZ
57912010-03-30 Eli Zaretskii <eliz@gnu.org>
5792
5793 Initial support for bidirectional editing.
5794
5795 * Makefile.in (obj): Include bidi.o.
5796 (bidi.o): New target.
5797
5798 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
5799 ($(BLD)/bidi.$(O)): New target.
5800
5801 * bidi.c: New file.
5802
5803 * buffer.h (struct buffer): New members bidi_display_reordering
5804 and bidi_paragraph_direction.
5805
5806 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
5807 and bidi_paragraph_direction.
5808 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
5809 and bidi-paragraph-direction.
5810 (Fbuffer_swap_text): Swap the values of
5811 bidi_display_reordering and bidi_paragraph_direction.
5812
5813 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
5814 (bidi_type_t, bidi_dir_t): New types.
5815 (bidi_saved_info, bidi_stack, bidi_it): New structures.
5816 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
5817 prev_stop, base_level_stop, and eol_pos.
5818 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
5819 (IT_STACK_SIZE): Enlarge to 5.
5820 (struct glyph_row): New member reversed_p.
5821 <string_buffer_position>: Update prototype.
5822 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
5823 glyph_row if bidi_it.paragraph_dir == R2L.
5824 (struct glyph): New members resolved_level and bidi_type.
5825
5826 * dispnew.c (direct_output_forward_char): Give up if we need bidi
5827 processing or buffer's direction is right-to-left.
5828 (prepare_desired_row): Preserve the reversed_p flag.
5829 (row_equal_p): Compare the reversed_p attributes as well.
5830
5831 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
5832 bidi_init_it and set it->paragraph_embedding from the current
5833 buffer's value of bidi_paragraph_direction.
5834 (reseat_1): Initialize bidi_it.first_elt.
5835 (set_iterator_to_next, next_element_from_buffer): Use the value of
5836 paragraph_embedding to determine the paragraph direction.
5837 (set_iterator_to_next): Under bidi reordering, call
5838 bidi_get_next_char_visually. Call bidi_paragraph_init if the
5839 new_paragraph flag is set in the bidi iterator.
5840 (next_element_from_buffer): If bidi_it.first_elt is set,
5841 initialize paragraph direction and find the first character to
5842 display in the visual order. If reseated to a middle of a line,
5843 prime the bidi iterator starting at the line's beginning. Handle
5844 the situation where we overstepped stop_charpos due to
5845 non-linearity of the bidi iteration. Likewise for when we back up
5846 beyond the previous stop_charpos. When moving across stop_charpos,
5847 record it in prev_stop.
5848 (display_line): Set row->end and it->start for the next row to the
5849 next character in logical order. Always extend reversed_p rows to
5850 the end of line, even if they end at ZV. Copy the reversed_p flag
5851 to the next glyph row. Keep calling set_cursor_from_row for
5852 bidi-reordered rows even if we already have a possible candidate
5853 for cursor position. Set row_end after all the row's glyphs have
5854 been produced, by looping over the glyphs. Record the position
5855 after EOL in it->eol_pos, and use it to set end_pos of the last
5856 row produced for a continued line.
5857 <Qright_to_left, Qleft_to_right>: New variables.
5858 (syms_of_xdisp): Initialize and staticpro them.
5859 (string_buffer_position_lim): New function.
5860 (string_buffer_position): Most of code moved to
5861 string_buffer_position_lim. Last argument and return value are
5862 now EMACS_INT; all callers changed.
5863 (set_cursor_from_row): Rewritten to support bidirectional text and
5864 reversed glyph rows.
5865 (text_outside_line_unchanged_p, try_window_id): Disable
5866 optimizations if we are reordering bidirectional text and the
5867 paragraph direction can be affected by the change.
5868 (append_glyph, append_composite_glyph)
5869 (produce_image_glyph, append_stretch_glyph): Set the
5870 resolved_level and bidi_type members of each glyph.
5871 (append_glyph): If the glyph row is reversed, prepend the glyph
5872 rather than appending it.
5873 (handle_stop_backwards): New function.
5874 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
5875 (reseat): call handle_stop_backwards to recompute prev_stop and
5876 base_level_stop for the new position.
5877 (handle_invisible_prop): Under bidi iteration, skip invisible text
5878 using bidi_get_next_char_visually. If we are `reseat'ed, init the
5879 paragraph direction. Update IT->prev_stop after skipping
5880 invisible text.
5881 (move_it_in_display_line_to): New variables prev_method
5882 and prev_pos. Compare for strict equality in
5883 BUFFER_POS_REACHED_P.
5884 (try_cursor_movement): Examine all the candidate rows that occlude
5885 point, to return the best match. If rows are bidi-reordered
5886 and point moved backwards, back up to the row that is not a
5887 continuation line, and start looking for a suitable row from
5888 there.
5889
5890 * term.c (append_glyph): Reverse glyphs by pre-pending them,
5891 rather than appending, if the glyph_row's reversed_p flag is set.
5892 Set the resolved_level and bidi_type members of each glyph.
5893
5894 * .gdbinit (pbiditype): New command.
5895 (pgx): Use it to display bidi level and type of the glyph.
5896 (pitx): Display some bidi information about the iterator.
5897 (prowlims, pmtxrows): New commands.
5898
32a8894e
DN
58992010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5900
5901 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
5902 * s/usg5-4.h (LIBS_DEBUG):
5903 * s/irix6-5.h (C_DEBUG_SWITCH):
5904 * s/gnu-linux.h (LIBS_DEBUG):
5905 * s/darwin.h (LIBS_DEBUG):
5906 * s/bsd-common.h (LIBS_DEBUG):
5907 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
5908 * m/iris4d.h (LIBS_DEBUG):
5909 * m/hp800.h (LIBS_DEBUG): Remove definitions.
5910
5911 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
5912 (LIBS_DEBUG): Remove definition.
5913
649dbf36
CY
59142010-03-27 Chong Yidong <cyd@stupidchicken.com>
5915
5916 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
5917 Windows.
5918
cad4261f
YM
59192010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5920
5921 * process.c (Fmake_network_process): Don't call turn_on_atimers around
5922 `connect' (Bug#5723).
5923
cd591dbc
HE
59242010-03-25 Helmut Eller <eller.helmut@gmail.com>
5925
5926 * process.c (Fmake_network_process): Call `select' for interrupted
5927 `connect' rather than creating new socket (Bug#5173).
5928
e867cb5d 59292010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
5930
5931 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
5932
5933 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
5934
5935 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
5936
e867cb5d 59372010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
5938
5939 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
5940 XLoadQueryFont.
5941
e867cb5d 59422010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
5943
5944 * coding.c (decode_coding_ccl): Fix previous change for the
5945 multibyte case.
fb608df3
KH
5946 (encode_coding_ccl): Don't setup ccl program here. Fix for the
5947 case that the output buffer is fullfilled.
5948 (encode_coding): Setup ccl program here.
fbdc1721 5949
5845f0ed
DN
59502010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
5951
814fb708
DN
5952 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
5953
5845f0ed
DN
5954 Simplify LIBS_MACHINE definitions.
5955 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
5956 * m/iris4d.h (LIBS_MACHINE): Likewise.
5957 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
5958 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 5959 * s/netbsd.h: Remove commented out code.
5845f0ed 5960
b7064064
DN
59612010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
5962
df7734b2
DN
5963 Remove dead code dealing with POSIX_SIGNALS.
5964 * atimer.c (set_alarm): Remove dead code, all USG systems define
5965 POSIX_SIGNALS.
5966 * data.c (arith_error): Likewise.
5967 * keyboard.c (input_available_signal, handle_user_signal)
5968 (interrupt_signal): Likewise.
5969 * process.c (sigchld_handler): Likewise.
5970 (create_process): Remove if 0 code. Remove HPUX conditional when
5971 !defined (POSIX_SIGNALS), it cannot be true.
5972 * syssignal.h: Remove USG5_4 and USG conditionals when
5973 !POSIX_SIGNALS, they cannot be true.
5974
b7064064
DN
5975 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
5976 NO_SOCK_SIGIO, not used anymore.
5977
55da5ee3
DN
59782010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
5979
0be96e3a
DN
5980 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
5981 support vax on BSDs.
5982
55da5ee3
DN
5983 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
5984 * s/aix4-2.h (ORDINARY_LINK): ... here.
5985
c0282183
AS
59862010-03-21 Andreas Schwab <schwab@linux-m68k.org>
5987
82c3d67a
AS
5988 * Makefile.in (abs_builddir): Define.
5989 (bootstrap_exe): Use it.
5990 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 5991
3613edce
SM
59922010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
5993
5994 * Makefile.in (bootstrap_exe): Use an absolute name.
5995
7f110ddc
DN
59962010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5997
22e87574
DN
5998 Remove support for old GNU/Linux using libc version 5.
5999 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
6000 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
6001
05a670e6
DN
6002 Consolidate redundant definitions in s/bsd-common.h.
6003 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6004 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6005 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
6006 doing it in all files that include this one.
6007 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6008 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6009 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6010 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6011 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6012 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6013 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6014 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6015 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6016
2968f561
DN
6017 Consolidate redundant definitions.
6018 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
6019 it's undefined in all files that include this one.
6020 (POSIX_SIGNALS): Define here instead of doing it in all files that
6021 include this one.
6022 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6023 (POSIX_SIGNALS): Do not define.
6024 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6025 (POSIX_SIGNALS): Do not define.
6026 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6027 (POSIX_SIGNALS): Do not define.
6028
15d25dc0
DN
6029 Remove support for old UNIX System V systems.
6030 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
6031 * s/usg-5-4-2.h: Remove.
6032
07e339e4
DN
6033 Remove support for Solaris on PPC and for old versions.
6034 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
6035 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
6036 that cancel each other.
6037 * s/sol2-3.h:
6038 * s/sol2-4.h:
6039 * s/sol2-5.h: Remove.
6040 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
6041 (NO_REMAP): Remove, unused.
6042 (UNEXEC): Move definition ...
6043 * s/aix4-2.h (UNEXEC): ... here.
6044
7f110ddc
DN
6045 * s/openbsd.h: Remove support for non-ELF and for systems that do
6046 not support shared libraries.
6047 * s/netbsd.h:
6048 * s/freebsd.h: Likewise.
6049
605f35cd
DN
60502010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6051
6052 Remove non-working support for lynxos 3.0.
6053 * s/lynxos.h: Remove file.
6054
6055 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
6056 COFF_BSD_SYMBOLS, nothing defines it anymore.
6057
aed71cf4
DN
60582010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6059
6060 Remove obsolete uses of HAVE_SHM.
6061 * emacs.c (standard_args):
6062 (Fdump_emacs):
6063 (syms_of_emacs): Remove code depending on HAVE_SHM.
6064
6065 * alloc.c: Remove HAVE_SHM dependent definition.
6066
6067 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
6068
aded53ff
GM
60692010-03-18 Glenn Morris <rgm@gnu.org>
6070
17284745
GM
6071 * emacs.c (USAGE4): Hard-code bug address.
6072 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
6073 (bug_reporting_address): Remove.
6074 (main): Don't call bug_reporting_address.
6075
aded53ff
GM
6076 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
6077 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
6078
303500aa
CY
60792010-03-15 Chong Yidong <cyd@stupidchicken.com>
6080
6081 * xfns.c (Fx_create_frame):
6082 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
6083 on left.
6084
cef3058f
CY
60852010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
6086
6087 * editfns.c (Fformat): Account for string precision when computing
6088 field width (Bug#5710).
6089
a647d59d
CY
60902010-03-12 Chong Yidong <cyd@stupidchicken.com>
6091
4fa42018
CY
6092 * xfns.c (Fx_create_frame): Set default to Qright.
6093
a647d59d
CY
6094 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
6095 all window systems.
6096
6da23aaa
EZ
60972010-03-12 Eli Zaretskii <eliz@gnu.org>
6098
a96f6398 6099 These changes remove termcap.c from the build on Posix platforms.
83d02def 6100 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
6101 (MSDOS_OBJ): ...to here.
6102 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
6103 now identical to when LIBS_TERMCAP is defined.
6104
6105 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
6106
6107 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
6108
a96f6398 6109 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 6110
288f9fc0
CY
61112010-03-10 Chong Yidong <cyd@stupidchicken.com>
6112
6113 * Branch for 23.2.
6114
d48cd3f4
SM
61152010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6116
6117 Cleanup setup of gl_state in various parts of the code.
6118 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
6119 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
6120 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
6121 (skip_chars):
6122 * regex.c (regex_compile): Use it.
6123 (re_compile_pattern): Don't set gl_state.current_syntax_table since
6124 it's now set in regex_compile when/if we need it.
6125
618db430
SM
61262010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
6127
c0335e02
SM
6128 Make it possible to C-g in a tight bytecode loop again (bug#5680).
6129 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
6130 (QUIT): Use it to consolidate code and remove redundancy.
6131 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
6132
254c06a8
SM
6133 * regex.c (regex_compile): Setup gl_state as well.
6134
618db430
SM
6135 * syntax.c (skip_chars): Setup gl_state (bug#3823).
6136 (in_classes): Use CONSP before XCAR/XCDR.
6137
233f0c9f
CY
61382010-03-03 Chong Yidong <cyd@stupidchicken.com>
6139
6140 * keymap.c (Fwhere_is_internal): Use Fequal to compare
6141 definitions, so that keyboard macros are correctly handled
6142 (Bug#5481).
6143
75f80e63
EZ
61442010-03-02 Eli Zaretskii <eliz@gnu.org>
6145
6146 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
6147 text that could be relocated inside the call to emacs_mule_char.
6148 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
6149 (CODING_DECODE_CHAR): Add a comment describing its purpose.
6150
dcfb9bc4
KH
61512010-03-02 Kenichi Handa <handa@m17n.org>
6152
fc9a17bc
KH
6153 * character.c (parse_str_as_multibyte): Fix handling of the
6154 multibyte form of raw-bytes.
6155 (str_as_multibyte): Likewise.
6156
dcfb9bc4
KH
6157 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
6158 form of raw-bytes.
6159
412c01b6
CY
61602010-02-28 Chong Yidong <cyd@stupidchicken.com>
6161
6162 * charset.c (load_charset_map_from_file)
6163 (load_charset_map_from_vector): Zero out allocated
6164 charset_map_entries before using them.
6165
df7e1ea0
AS
61662010-02-27 Andreas Schwab <schwab@linux-m68k.org>
6167
6168 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
6169
fe69a722
CY
61702010-02-27 Chong Yidong <cyd@stupidchicken.com>
6171
4ed28cf4
CY
6172 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
6173 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 6174
7379cfce
KH
61752010-02-26 Kenichi Handa <handa@m17n.org>
6176
f88cc4d6
KH
6177 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
6178
7379cfce
KH
6179 * xdisp.c (reseat_to_string): Fix previous change.
6180
cf2fdcfb
CY
61812010-02-26 David Reitter <david.reitter@gmail.com>
6182
6183 * nsfont.m (nsfont_draw): ns_antialias_text should be a
6184 Lisp_Object (Bug#4736).
6185
cc6c7c75
KH
61862010-02-25 Kenichi Handa <handa@m17n.org>
6187
6188 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
6189
32e737d7
JD
61902010-02-24 Jan Djärv <jan.h.d@swipnet.se>
6191
6192 * xterm.c (XTflash): Move declarations before statements.
6193
6194 * gtkutil.c (xg_get_gdk_display): Remove (unused).
6195 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
6196 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
6197 (xg_create_tool_bar): Remove unused variables.
6198 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 6199 (xg_create_frame_widgets): Remove variable grav.
32e737d7 6200
676cae9f
CY
62012010-02-21 Chong Yidong <cyd@stupidchicken.com>
6202
6203 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
6204
886cc2b8
SM
62052010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
6206
6207 * term.c (fatal): Add a final \n if needed (bug#5596).
6208
ddb2d8e2
CY
62092010-02-18 Chong Yidong <cyd@stupidchicken.com>
6210
6211 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
6212
2a4f8d3d
GM
62132010-02-18 Glenn Morris <rgm@gnu.org>
6214
6215 * callint.c (Finteractive): Doc fix.
6216
ebaf11b6
KH
62172010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
6218
886cc2b8
SM
6219 * coding.c (record_conversion_result):
6220 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
6221 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
6222 memory allocation error.
6223
d0396581
KH
62242010-02-17 Kenichi Handa <handa@m17n.org>
6225
886cc2b8
SM
6226 * coding.c (decode_coding_ccl): Don't setup ccl program here.
6227 Fix for the case that the output buffer is fullfilled.
d0396581
KH
6228 (decode_coding): Setup ccl program here. Keep looping when the
6229 decoder stopped because the output buffer is
6230 fullfilled (bug#5534).
6231
6232 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
6233
98599f74
JD
62342010-02-13 Jan Djärv <jan.h.d@swipnet.se>
6235
471e4f04 6236 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 6237 bug #5571.
886cc2b8 6238 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 6239 overdrawn.
98599f74 6240
182659ae
JD
62412010-02-10 Jan Djärv <jan.h.d@swipnet.se>
6242
6243 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
6244 doing_interact here.
6245 (ice_connection_closed): New function.
6246 (x_session_check_input, smc_die_CB, ice_io_error_handler)
6247 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
6248 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
6249 returns I/O error.
6250 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
6251 bug #5512.
6252
9be32c4e 62532010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
6254
6255 * nsfont.m (nsfont_open): The system's value for the font descent
6256 is negative, so round it down to avoid clipping.
6257
a2f3eb19
CY
62582010-02-06 Chong Yidong <cyd@stupidchicken.com>
6259
6260 * charset.c (load_charset_map_from_file)
6261 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 6262 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 6263
3088147c
CY
62642010-02-05 Chong Yidong <cyd@stupidchicken.com>
6265
6266 * charset.c (load_charset_map_from_file): Allocate large
6267 charset_map_entries structure on the heap rather than the stack.
6268 (Bug#5526).
6269
b57d9029
KH
62702010-01-31 Kenichi Handa <handa@m17n.org>
6271
6272 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 6273 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 6274
c67d885b
CY
62752010-01-31 Chong Yidong <cyd@stupidchicken.com>
6276
6277 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
6278 <deactivated@gmail.com> (Bug#3605).
6279
8fab2362
CY
62802010-01-31 David De La Harpe Golden <david@harpegolden.net>
6281
6282 * fileio.c (Frename_file): Correctly rename symlinks to
6283 directories (Bug#5496).
6284
cb2a62f2
CY
62852010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
6286
6287 * nsterm.m (ns_ring_bell): Handle visible bell like X.
6288
944c7a26
AS
62892010-01-30 Andreas Schwab <schwab@linux-m68k.org>
6290
6291 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
6292
c024ac08
CY
62932010-01-29 Chong Yidong <cyd@stupidchicken.com>
6294
6295 * frame.c (DEFAULT_ROWS): Change default to 35.
6296
6297 * xfns.c (x_default_font_parameter): Change default XFT font to
6298 monospace-10 (Bug#3643).
6299
af93af83
EZ
63002010-01-29 Eli Zaretskii <eliz@gnu.org>
6301
6302 * w32inevt.c (key_event): Remove unnecessary comparison of
6303 event->uChar.AsciiChar with 128.
6304
ca0eb708
CY
63052010-01-28 Chong Yidong <cyd@stupidchicken.com>
6306
b242dbfc
CY
6307 * fileio.c (Frename_file): Fix last change (Bug#5487).
6308
ca0eb708
CY
6309 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
6310
6311 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
6312
45d45af5
JD
63132010-01-28 Jan Djärv <jan.h.d@swipnet.se>
6314
6315 * xfns.c (Fx_create_frame): Remove window size matching code from
6316 2010-01-15.
a73f9c9d 6317 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 6318
7e233730
JR
63192010-01-27 Jason Rumney <jasonr@gnu.org>
6320
6321 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 6322 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 6323
86e893e3
KH
63242010-01-27 Kenichi Handa <handa@m17n.org>
6325
6326 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 6327 pattern string (Bug#4209).
86e893e3 6328
8719abec
CY
63292010-01-27 David De La Harpe Golden <david@harpegolden.net>
6330
6331 * fileio.c (Frename_file): Call copy-directory and
6332 delete-directory for directories, in order to handle cross-device
6333 renaming (Bug#3353).
6334
844794c8
JD
63352010-01-25 Jan Djärv <jan.h.d@swipnet.se>
6336
aa3e13b5 6337 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 6338 sizes 24 and 10. Bug #3643.
844794c8 6339
bd4b5750
SM
63402010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
6341
8dc1adf6 6342 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
6343 * keymap.c (shadow_lookup): Add `remap' arg.
6344 (describe_map, describe_vector): Update calls to shadow_lookup.
6345 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
6346 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
6347 perform remapping during shadow_lookup check of remapped_sequences.
6348
285d07e2
CY
63492010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
6350
6351 * image.c (png_load): Use png_sig_cmp instead of the obsolete
6352 png_check_sig, which has been removed in libpng 1.4.
6353
c6d09b8d
CY
63542010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
6355
6356 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
6357 lacks this header file).
6358
3d782998
YM
63592010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6360
6361 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
6362 as in Emacs 22.
6363
2aff7c53
YM
63642010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6365
6366 * lisp.h (make_pure_string): String pointer arg now points to const.
6367
6368 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
6369 args now point to const.
6370
74327f7a
EZ
63712010-01-22 Eli Zaretskii <eliz@gnu.org>
6372
6373 * lread.c (Fload): Don't treat files without .elc extension as
6374 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
6375 them. (bug#5303)
6376
4d1e6632
KH
63772010-01-20 Kenichi Handa <handa@m17n.org>
6378
6379 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
6380 treat the source as actual byte sequence.
6381
1fdede8f
AM
63822010-01-19 Alan Mackenzie <acm@muc.de>
6383
6384 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 6385 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
6386 `signal_after_change_p' to `coherent_change_p', and make the
6387 invocation of `modify_region' conditional on it.
6388
67477f30
JD
63892010-01-19 Jan Djärv <jan.h.d@swipnet.se>
6390
6391 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
6392 for debug purpose.
6393 (syms_of_xsettings): Declare xft-settings.
6394
244b023e
CY
63952010-01-18 Chong Yidong <cyd@stupidchicken.com>
6396
6397 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
6398
617364fe
CY
63992010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
6400
6401 * xterm.c (event_handler_gdk): Block input (Bug#5037).
6402
4fe22cdf
CY
64032010-01-16 Chong Yidong <cyd@stupidchicken.com>
6404
6405 * emacs.c (standard_args): Adjust arg priorities to reflect how
6406 they are processed in startup.el.
6407
e118d2be
AS
64082010-01-16 Andreas Schwab <schwab@linux-m68k.org>
6409
6410 * Makefile.in (lisp, shortlisp): Update.
6411
523ae620
SM
64122010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
6413
6414 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
6415 code, link the new kboard into all_kboard before running Lisp code,
6416 and protect the new terminal with GCPRO (Bug#5365).
6417 (x_term_init): Remove unused var `atom'.
6418 (x_delete_display, x_delete_terminal): Remove unused var `i'.
6419
f0d13888
JD
64202010-01-15 Jan Djärv <jan.h.d@swipnet.se>
6421
6422 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
6423 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
6424 to find out usable size of the desktop. Don't make frames larger than
ac146f82 6425 this. Bug #3643.
f0d13888 6426
cc320f07
KH
64272010-01-15 Kenichi Handa <handa@m17n.org>
6428
6429 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
6430
7ffdf101
CY
64312010-01-15 Chong Yidong <cyd@stupidchicken.com>
6432
6433 * nsterm.m (Qnone): Define.
6434
6435 * nsfns.m (Qnone): Move definition to nsterm.m.
6436
d12bd917
KH
64372010-01-14 Kenichi Handa <handa@m17n.org>
6438
6439 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
6440 systems.
6441
d9a7c140
KH
64422010-01-14 Kenichi Handa <handa@m17n.org>
6443
6444 Make auto-composition work on all buffers even if they are
6445 fundamental mode.
6446
6447 * composite.c (Vauto_composition_mode): New variable.
6448 (composition_compute_stop_pos): Check Vauto_composition_mode
6449 instead of Vauto_composition_function.
6450 (composition_adjust_point, Ffind_composition_internal): Likewise.
6451 (syms_of_composite): Declare Lisp variable
6452 "auto-composition-mode" here.
6453
63286bb2
CY
64542010-01-13 Chong Yidong <cyd@stupidchicken.com>
6455
6456 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
6457 during call to vendor-specific-keysyms (Bug#5365).
6458
c2623ee7
YM
64592010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6460
6461 * keyboard.c (input_available_signal) [SYNC_INPUT]:
6462 Call SIGNAL_THREAD_CHECK (Bug#5333).
6463
6464 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
6465 Call SIGNAL_THREAD_CHECK.
6466
0b5397c2
SM
64672010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
6468
6469 Try to fix bug#5314. This is probably not the final word, tho.
6470 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
6471 recent-auto-save-p as a side-effect.
6472 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
6473 * buffer.c (Fkill_buffer, reset_buffer):
6474 * editfns.c (Fsubst_char_in_region):
6475 * fileio.c (Finsert_file_contents, Fdo_auto_save)
6476 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
6477
dc954cb2
KH
64782010-01-13 Kenichi Handa <handa@m17n.org>
6479
6480 Display buffer name, etc. in mode line by composing correctly.
6481
6482 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
6483 STRING is not nil.
0b5397c2 6484 (display_mode_element): Adjust for the change of
dc954cb2
KH
6485 decode_mode_spec and display_line.
6486 (decode_mode_spec): Change arg MULTIBYTE to STRING.
6487 (display_string): Handle the case that STRING is non-null and
6488 LISP_STRING is not nil.
6489
0b5397c2
SM
6490 * xterm.c (x_draw_composite_glyph_string_foreground):
6491 Pay attention to s->face->overstrike.
dc954cb2
KH
6492
6493 * composite.c (composition_reseat_it): Don't check PT if STRING is
6494 non nil.
6495
4a00eaca
YM
64962010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6497
6498 * keyboard.c (read_char): Don't apply previous change when current
6499 buffer is unchanged by command execution.
6500
60abb287
JD
65012010-01-12 Jan Djärv <jan.h.d@swipnet.se>
6502
6503 * keyboard.c (read_char): Return after executing from special map.
6504
893db5bc
GM
65052010-01-12 Glenn Morris <rgm@gnu.org>
6506
6507 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
6508 bug-gnu-emacs rather than emacs-pretest-bug.
6509
4d03ece0
CY
65102010-01-11 Chong Yidong <cyd@stupidchicken.com>
6511
6512 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
6513 initializing the Lisp variables that depend on them.
6514
1df47e38
YM
65152010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6516
6517 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
6518 Clear areas that will not be updated after change of menu bar lines.
6519 Clear the menu bar window's current matrix when the window gets empty.
6520
2f1c6384
CY
65212010-01-09 Chong Yidong <cyd@stupidchicken.com>
6522
e398c61c
CY
6523 * intervals.h, textprop.c (extend_property_ranges): Return value
6524 and args changed. Discard properties that begin at or after the
6525 new end (Bug#5306).
6526
6527 * editfns.c (Fformat): Caller changed.
6528
e5a29a10
CY
6529 * nsterm.m (ns_set_default_prefs): Delete function.
6530 (syms_of_nsterm): Initialize ns_command_modifier,
6531 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
6532 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
6533
2f1c6384
CY
6534 * xdisp.c (pos_visible_p): Check for invisible text at the correct
6535 position (Bug#4040).
6536
d427a9fa
EZ
65372010-01-09 Eli Zaretskii <eliz@gnu.org>
6538
6539 * editfns.c (Ffloat_time): Doc fix.
6540
21b9df2f
JD
65412010-01-09 Jan Djärv <jan.h.d@swipnet.se>
6542
6543 * xfns.c (Fx_create_frame): Don't create frame larger than display
6544 by default bug#3643.
6545
4b00d3b1
YM
65462010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6547
6548 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
6549 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
6550 windows above internal border.
6551
6552 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
6553 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
6554 windows above internal border.
6555
6556 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
6557 tool bar windows specially.
6558
6559 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
6560
6561 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
6562 specially.
6563 (XTflash): Take account of menu bar height.
6564
6565 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
6566 specially.
6567
5075d853
JD
65682010-01-08 Jan Djärv <jan.h.d@swipnet.se>
6569
ac146f82 6570 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
6571 also be true before we can return early (bug #5339).
6572
474217c8
CY
65732010-01-06 David Reitter <david.reitter@gmail.com>
6574
6575 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
6576 (Fns_display_usable_bounds): Rewrite, computing bounds properly
6577 (Bug#3233).
6578
c0e6d47d
JD
65792010-01-06 Jan Djärv <jan.h.d@swipnet.se>
6580
d0cf45b7
JD
6581 * font.c (font_open_entity): Enable chache and call cached_font_ok
6582 for the driver if defined.
6583 (QCuser_spec): New symbol.
6584 (font_spec_from_name): Save name as user-spec.
6585 (font_load_for_lface): Keep user-spec instead of name.
6586 (font_open_by_name): Save name as user-spec.
6587 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 6588 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
6589
6590 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
6591 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
6592 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
6593
6594 * font.h (struct font_driver): Add cached_font_ok.
6595
c0e6d47d
JD
6596 * xterm.c (x_clear_frame): Queue draw for scroll bars.
6597
7c583cd8
JD
65982010-01-05 Jan Djärv <jan.h.d@swipnet.se>
6599
6600 * xterm.c (x_new_font): Move code for setting rows/cols before
6601 resizing ...
ac146f82 6602 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
6603
6604 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
6605 (xg_frame_resized, xg_frame_set_char_size):
6606 Call xg_clear_under_internal_border.
7c583cd8 6607 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 6608
03f77f0a
CY
66092010-01-05 Chong Yidong <cyd@stupidchicken.com>
6610
6611 * keyboard.c (read_key_sequence): Catch keyboard switch after
6612 making a new tty frame (Bug#5095).
6613
2a1ef5be
KH
66142010-01-05 Kenichi Handa <handa@m17n.org>
6615
6616 * fontset.c (fontset_find_font): Fix getting the frame pointer.
6617
e3eb1dae
SM
66182010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
6619
6620 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
6621 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
6622 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
6623
777013f2
MA
66242010-01-03 Michael Albinus <michael.albinus@gmx.de>
6625
6626 * dbusbind.c (xd_add_watch): Improve debug message.
6627 (xd_remove_watch): Improve debug message. If DATA is the session
6628 bus, unset D-Bus session environment.
6629 (Fdbus_init_bus): Pass the bus as argument to
6630 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 6631
8932b1c2
CY
66322010-01-01 Chong Yidong <cyd@stupidchicken.com>
6633
87231e2c
CY
6634 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
6635
4801c5fa
CY
6636 * lread.c (syms_of_lread): Make it clearer that these are the
6637 names of loaded files (Bug#5068).
6638
8932b1c2
CY
6639 * eval.c (run_hook_with_args): Handle the case where the global
6640 value has the obsolete single-function form (Bug#5026).
6641
11e3c684
CY
66422009-12-27 Chong Yidong <cyd@stupidchicken.com>
6643
6644 * minibuf.c (Fall_completions): Minor optimization.
6645
5b28ce35
EZ
66462009-12-26 Eli Zaretskii <eliz@gnu.org>
6647
5ce6e4f4
JB
6648 * .gdbinit (pgx): Fix display of composite glyphs.
6649 Display cmp.from and cmp.to as well.
6650 (pitx): Fix last change.
5b28ce35 6651
bcffff46
KH
66522009-12-25 Kenichi Handa <handa@m17n.org>
6653
6654 * composite.h (composition_adjust_point): Update prototype.
6655
6656 * composite.c (composition_reseat_it): Don't make a composition
6657 spanning over point.
6658 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
6659 composable characters.
6660 (composition_adjust_point): New arg NEW_PT. Callers changed.
6661
6662 * keyboard.c (command_loop_1): Force redisplay if the last point
6663 was within a composition.
6664 (adjust_point_for_property): Don't adjust point for automatic
6665 composition when called after buffer modification.
6666
3f670e9a
EZ
66672009-12-19 Eli Zaretskii <eliz@gnu.org>
6668
5ce6e4f4
JB
6669 * .gdbinit (pitx): Don't use enum names, use their values.
6670 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
6671 (pgx): Don't use enum names, use their values.
6672 (pitmethod): New helper command.
6673 (pitx): Use it to display iteration method.
6674 (pgrowit): New command.
6675
ad903955
EZ
6676 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
6677
3f670e9a
EZ
6678 Update dependencies in Makefile.in.
6679
6680 * Makefile.in (alloc.o): Depend on termhooks.h.
6681 (atimer.o): Depend on blockinput.h.
6682 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
6683 and frame.h.
6684 (callint.o): Depend on systime.h, coding.h, and composite.h.
6685 (callproc.o): Depend on buffer.h.
6686 (casefiddle.o): Don't depend on charset.h.
6687 (casetab.o): Depend on character.h.
6688 (ccl.o): Depend on composite.h.
6689 (chartab.o): Depend on ccl.h.
6690 (cm.o): Depend on dispextern.h.
6691 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
6692 (coding.o): Don't depend on $(INTERVALS_H).
6693 (composite.o): Don't depend on dispextern.h explicitly (it's in
6694 $(INTERVALS_H)). Depend on ccl.h.
6695 (data.o): Depend on systime.h, coding.h, composite.h,
6696 dispextern.h, font.h, and ccl.h.
6697 (dired.o): Depend on composite.h.
6698 (dispnew.o): Depend on coding.h. Don't depend explicitly on
6699 composite.h (it's in $(INTERVALS_H)).
6700 (doc.o): Depend on systime.h, coding.h, and composite.h.
6701 (editfns.o): Don't depend explicitly on dispextern.h.
6702 (emacs.o): Depend on frame.h and coding.h.
6703 (eval.o): Depend on coding.h, composite.h, and xterm.h.
6704 (fileio.o): Depend on frame.h and commands.h. Don't depend
6705 explicitly on dispextern.h.
6706 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
6707 composite.h.
6708 (fns.o): Don't depend on termhooks.h.
6709 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
6710 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
6711 coding.h, $(INTERVALS_H), window.h, xterm.h.
6712 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
6713 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
6714 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
6715 fontset.h, ccl.h, and ftfont.h.
6716 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6717 (gtkutil.o): Depend on dispextern.h and composite.h.
6718 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
6719 termhooks.h, and ccl.h.
6720 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
6721 (intervals.o): Depend on systime.h and coding.h.
6722 (keyboard.o): Depend on composite.h and coding.h.
6723 (keymap.o): Depend on coding.h and frame.h.
6724 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
6725 (macros.o): Depend on systime.h, coding.h, and composite.h.
6726 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
6727 and atimer.h.
6728 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
6729 dispextern.h explicitly.
0b5397c2
SM
6730 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
6731 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
6732 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
6733 (regex.o): Don't depend on charset.h.
6734 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
6735 (search.o): Don't depend explicitly on composite.h.
6736 (sound.o): Depend on atimer.h and systime.h.
6737 (syntax.o): Don't depend explicitly on composite.h.
6738 (sysdep.o): Depend on coding.h and composite.h.
6739 (term.o): Depend on xterm.h and buffer.h.
6740 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
6741 (textprop.o): Don't depend on dispextern.h explicitly.
6742 (undo.o): Depend on dispextern.h.
6743 (window.o): Depend on coding.h and termhooks.h. Don't depend on
6744 dispextern.h and composite.h explicitly.
6745 (xdisp.o): Depend on ccl.h.
6746 (xfaces.o): Depend on coding.h and ccl.h.
6747 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
6748 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6749 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
6750 ftfont.h.
6751 (xgselect.o): New dependency.
6752 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
6753 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
6754 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
6755 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
6756 (xsmfns.o): Depend on frame.h and dispextern.h.
6757 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
6758 sysselect.h.
6759
7a6f7fea
AS
67602009-12-19 Andreas Schwab <schwab@linux-m68k.org>
6761
6762 * font.c (Fclear_font_cache): Pass correct cache argument to
6763 font_clear_cache.
6764
f4c21026
AS
67652009-12-16 Andreas Schwab <schwab@linux-m68k.org>
6766
6767 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
6768 twice.
6769
f7ab0997
CY
67702009-12-15 Chong Yidong <cyd@stupidchicken.com>
6771
6772 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
6773 calling file-remote-p. Reported by Jim Meyering.
6774
fa8e045a
MA
67752009-12-15 Michael Albinus <michael.albinus@gmx.de>
6776
6777 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 6778 avoid compiler warnings. (Bug #5217)
fa8e045a 6779
a63dba42
KH
67802009-12-14 Kenichi Handa <handa@m17n.org>
6781
6782 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
6783 in 8-bit encoding.
6784
5ce6e4f4 67852009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
6786
6787 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
6788 tooltip windows.
6789
223e5fc6
JD
67902009-12-13 Jan Djärv <jan.h.d@swipnet.se>
6791
36acb2a7
JD
6792 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
6793 Xatom_net_window_type.
6794
6795 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
6796 Xatom_net_window_type.
6797
b8f00677
JD
6798 * xterm.c (my_log_handler): New function.
6799 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 6800 so we can filter out buggy messages. (Bug #5120).
b8f00677 6801
e5f0bc9a
JD
6802 * xterm.c (xg_scroll_callback): Parameter list changed,
6803 use parameter GtkScrollType to determine scroll/line/page.
6804 Only allow dragging if a button < 4 is grabbed (bug #5177).
6805 (xg_end_scroll_callback): New function.
6806 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
6807 xg_create_scroll_bar.
6808
6809 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
6810 (scroll_end_callback): Remove.
6811 (xg_create_scroll_bar): Add parameter end_callback, bind it to
6812 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 6813 bug #5177.
e5f0bc9a
JD
6814 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
6815 bug #5177.
6816
6817 * gtkutil.h (XG_LAST_SB_DATA): Remove.
6818 (xg_create_scroll_bar): Add GCallback end_callback.
6819
223e5fc6
JD
6820 * xftfont.c (QClcdfilter): New variable.
6821 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
6822 (syms_of_xftfont): Initialize QClcdfilter.
6823
3c055b77
JD
68242009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6825
6826 * xsettings.c (struct xsettings): Add member seen.
6827 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 6828 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
6829 (apply_xft_settings): Only update Xft settings with what member seen
6830 indicates as new.
6831
05fe33ff
EZ
68322009-12-12 Eli Zaretskii <eliz@gnu.org>
6833
c4cc8b9a 6834 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
6835 (struct glyph): Use EMACS_INT for charpos.
6836 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
6837 region_beg_charpos, region_end_charpos,
6838 redisplay_end_trigger_charpos, and also for
6839 iterator_stack_entry.end_charpos and
6840 iterator_stack_entry.stop_charpos.
6841
e8d7886a
JD
68422009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6843
5ce6e4f4 6844 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
6845 (xg_create_scroll_bar): Call scroll_end_callback on button release
6846 event (bug #5177).
6847 (xg_event_is_for_scrollbar): != replaced with ==.
6848
d0db2ec8
KH
68492009-12-12 Kenichi Handa <handa@m17n.org>
6850
6851 * ftfont.c (struct ftfont_info): New member matrix.
6852 (ftfont_open): Setup xftfont_info->matrix.
6853 (MFLTFontFT): New member matrix.
6854 (FLOOR, CEIL, ROUND): New macros.
6855 (ftfont_get_metrics): Handle matrix transformation.
6856 (ftfont_shape_by_flt): New arg matrix. Callers changed.
6857
6858 * xftfont.c (struct xftfont_info): New member matrix.
6859 (xftfont_open): Setup xftfont_info->matrix.
6860
68612009-12-10 Kenichi Handa <handa@m17n.org>
6862
6863 * xdisp.c (append_space_for_newline): Consider face-remapping.
6864
2cc7b62f
AS
68652009-12-09 Andreas Schwab <schwab@linux-m68k.org>
6866
b87dd913
AS
6867 * xsettings.c: Include "keyboard.h".
6868
eba5eb94
AS
6869 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
6870
2cc7b62f
AS
6871 Fix implicit function declarations.
6872 * cmds.c: Include "frame.h".
6873 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
6874 * frame.h: Move declaration of delete_frame outside of
6875 HAVE_WINDOW_SYSTEM.
6876
a4ef73c8
CY
68772009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
6878
6879 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
6880
6881 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
6882 GTK builds.
6883
944a300c
AS
68842009-12-07 Andreas Schwab <schwab@linux-m68k.org>
6885
6886 * unexelf.c (unexec): Don't search for .data twice.
6887
022eef62
CY
68882009-12-05 Chong Yidong <cyd@stupidchicken.com>
6889
426ac949
CY
6890 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
6891 if push failed.
6892 (handle_line_prefix): Set avoid_cursor_p here. Check return value
6893 of push_display_prop (Bug#5000).
6894
022eef62
CY
6895 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
6896 value of font_list_entities (Bug#5085).
6897
be95bee9
JB
68982009-12-04 Juanma Barranquero <lekktu@gmail.com>
6899
6900 Fix `string-to-number' to deal consistently with integers and floats.
6901 * lread.c (isfloat_string): New argument ignore_trailing to accept all
6902 trailing characters, not just whitespace.
6903 (read1): Pass new arg 0 to keep old behavior.
6904 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
6905 trailing chars, as it is already done for integers. Doc fixes.
6906 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
6907
24c2d7ce
EZ
69082009-12-04 Eli Zaretskii <eliz@gnu.org>
6909
0b5397c2
SM
6910 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
6911 Delete unused enumeration value.
24c2d7ce 6912
7e694795
EZ
69132009-12-03 Eli Zaretskii <eliz@gnu.org>
6914
6915 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
6916
84b31826
SM
69172009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
6918
6919 * process.c (Fmake_network_process): Fix up the tests for
6920 "connectionless socket", so they DTRT for seqpacket sockets as well.
6921
f00c449b
SM
69222009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
6923
6924 * process.c (Qseqpacket): New symbol.
6925 (HAVE_SEQPACKET): New macro.
6926 (Fmake_network_process): Accept new :type `seqpacket'.
6927 (init_process): Add `seqpacket' feature when applicable.
6928 (syms_of_process): Initialize Qseqpacket.
6929
8096a0ff
YM
69302009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6931
6932 * font.c (font_load_for_lface, font_open_by_name): Don't store name
6933 if entity is Qnil.
6934
3e0de07f
SM
69352009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
6936
6937 * print.c (print_preprocess): Preprocess the key_and_value table of
6938 hashtables, even tho they're "hidden" (bug#5082).
6939
abeafb2a
JD
69402009-11-29 Jan Djärv <jan.h.d@swipnet.se>
6941
6942 * frame.c (frame_make_pointer_invisible)
6943 (frame_make_pointer_visible): Declare f before statements.
6944
4bf47195
EZ
69452009-11-28 Eli Zaretskii <eliz@gnu.org>
6946
6947 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
6948 omitted dependencies on lisp.h.
6949
c525b3f2
JD
69502009-11-27 Jan Djärv <jan.h.d@swipnet.se>
6951
ece2d4ed
JD
6952 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
6953 is NULL.
6954
6955 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
6956
6957 * frame.c (frame_make_pointer_invisible)
3e0de07f 6958 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
6959 frame.
6960
c525b3f2
JD
6961 * search.c (simple_search): Remove warning by making *p const.
6962
2f00e299
DN
69632009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
6964
6965 * xdisp.c (power_letter): Remove duplicate const.
6966
084b049b
JD
69672009-11-25 Jan Djärv <jan.h.d@swipnet.se>
6968
a1fadc6f
JD
6969 * term.c (delete_tty): Remove check for last terminal (bug#4970).
6970
5ce6e4f4 6971 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
6972 defaults (bug #5025).
6973
28259cac
SM
69742009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
6975
6976 * insdel.c (adjust_markers_for_delete): Move it in the
6977 right direction! (bug#4803)
6978
e8e14166
YM
69792009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6980
6981 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
6982
6983 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
6984
86677b58
GM
69852009-11-24 Glenn Morris <rgm@gnu.org>
6986
6987 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
6988
581e51e8
JD
69892009-11-23 Jan Djärv <jan.h.d@swipnet.se>
6990
cfc86c7a
JD
6991 * Makefile.in: Must create deps for ecrt0.o in its rule.
6992
581e51e8
JD
6993 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
6994 because that is what Gtk+ font dialog understands.
6995
6996 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
6997 of Fcopy_sequence.
6998 (font_open_by_name): Put name given into QCname for font-object returned.
6999
7000 * frame.c (x_set_font): Save original font name as frame parameter
7001 font-parameter.
7002
7003 * xsettings.c (set_default_xft_settings): New function.
7004 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
7005 is found.
7006
8b264ecb
AS
70072009-11-22 Andreas Schwab <schwab@linux-m68k.org>
7008
7009 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
7010 searching backwards through multibyte buffer.
7011
872870b2
JD
70122009-11-21 Jan Djärv <jan.h.d@swipnet.se>
7013
7014 * xterm.c: #include xgselect.h.
7015 (x_initialize): Call xgselect_initialize.
7016
7017 * xsettings.c (something_changedCB): C++ comments => C comments.
7018 (init_gconf): Do not deal with any GLib file descriptors, xg_select
7019 does that now.
7020
7021 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
7022 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
7023 (scroll_bar_button_cb): Remove.
5ce6e4f4 7024 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
7025 event.
7026 (xg_create_scroll_bar): Don't bind button-press-event and
7027 button-release-event.
7028
7029 * process.c: Include xgselect.h if defined (USE_GTK) ||
7030 defined (HAVE_GCONF).
7031 (wait_reading_process_output): Call xg_select for the same condition.
7032
7033 * xgselect.c (xg_select): New function to better integrate with
7034 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
7035
7036 * xgselect.h: New file, declare xg_select, xgselect_initialize.
7037
7038 * Makefile.in (XOBJ): Add xgselect.o.
7039
62a6e103
AS
70402009-11-21 Andreas Schwab <schwab@linux-m68k.org>
7041
0b5397c2
SM
7042 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
7043 Remove ignored second argument. All callers changed.
62a6e103
AS
7044 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
7045 (RE_STRING_CHAR_AND_LENGTH): Likewise.
7046 * xdisp.c (string_char_and_length): Likewise.
7047
b0ca0f33
DN
70482009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
7049
7050 * xterm.c (x_new_font):
7051 * print.c (print_object):
7052 * cmds.c (Fself_insert_command): Move declarations before statements.
7053
dd5a6279
CY
70542009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
7055
7056 * s/cygwin.h: Remove unneeded linker flags.
7057
4a8e097d
JD
70582009-11-20 Jan Djärv <jan.h.d@swipnet.se>
7059
0d1d0d26
JD
7060 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
7061
7062 * xsettings.h: Declare xsettings_get_system_font.
7063
7064 * xsettings.c (xsettings_get_system_font): New function.
7065 (init_gconf): No use initiating gconf unless we have Xft also.
7066 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
7067 HAVE_GCONF.
7068
4a8e097d
JD
7069 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
7070 add a blank entry so it doesn't collapse into nothing.
7071
8ab1650e
SM
70722009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
7073
7074 * lread.c (Funintern): Comment out last change.
7075
82c602f0
RS
70762009-11-19 Richard Stallman <rms@gnu.org>
7077
7078 * lread.c (Funintern): Error if symbol is t or nil.
7079
87e32266
SM
70802009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
7081
7082 * insdel.c (make_gap_larger): Don't make as many assumptions about the
7083 representation of Lisp integers.
7084 Reported by MJ Chan <mjchan.inbox@gmail.com>.
7085
1b9ac145
AS
70862009-11-17 Andreas Schwab <schwab@linux-m68k.org>
7087
7088 * lisp.h: Remove declaration of Ffont_get_system_font.
7089 * xfns.c: Move include of "xsettings.h".
7090 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
7091
dfb3c4c6
JD
70922009-11-17 Jan Djärv <jan.h.d@swipnet.se>
7093
87e32266
SM
7094 * xsettings.c (something_changedCB, Ffont_get_system_font):
7095 Check use_system_font.
dfb3c4c6
JD
7096 (syms_of_xsettings): DEFVAR font-use-system-font.
7097
9370c1d8
AS
70982009-11-17 Andreas Schwab <schwab@linux-m68k.org>
7099
25fe851a
AS
7100 * xfns.c (x_default_font_parameter): Remove dead assignment.
7101
9370c1d8
AS
7102 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
7103
637fa988
JD
71042009-11-17 Jan Djärv <jan.h.d@swipnet.se>
7105
87e32266 7106 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 7107 not have FC_LCD_*. #define them if not there.
a6eb20d8 7108
87e32266 7109 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 7110
637fa988
JD
7111 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
7112
7113 * xterm.c (handle_one_xevent): Call xft_settings_event for
7114 ClientMessage, PropertyNotify and DestroyNotify.
7115 (x_term_init): If we have XFT, get DPI from Xft.dpi.
7116 Call xsettings_initialize.
7117
7118 * xftfont.c (xftfont_fix_match): New function.
7119 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
7120 Call xftfont_fix_match after XftFontMatch.
7121
7122 * xfont.c (xfont_driver): Initialize all members.
7123
87e32266
SM
7124 * xfns.c (x_default_font_parameter):
7125 Try font from Ffont_get_system_font.
637fa988
JD
7126 Do not get font from x_default_parameter if we got one from
7127 Ffont_get_system_font.
87e32266 7128 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
7129
7130 * w32font.c (w32font_driver): Initialize all members.
7131
7132 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
7133
7134 * lisp.h: Declare syms_of_xsettings.
7135
87e32266
SM
7136 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
7137 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
7138
7139 * ftfont.c (ftfont_filter_properties): New function.
7140
7141 * frame.c (x_set_font): Remove unused variable lval.
7142
87e32266 7143 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
7144
7145 * font.c (font_put_extra): Don't return if val is nil, it means
7146 boolean option is off.
7147 (font_parse_fcname): Collect all extra properties in extra_props
7148 and call filter_properties for all drivers with extra_props and
7149 font as parameter.
87e32266
SM
7150 (font_open_entity): Do not use cache, it does not pick up new
7151 fontconfig settings like hinting.
637fa988
JD
7152 (font_load_for_lface): If spec had a name in it, store it in entity.
7153
a73f9c9d 7154 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
7155
7156 * config.in: HAVE_GCONF is new.
7157
7158 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
7159 xsettings.o is new.
7160
5a942932
KH
71612009-11-17 Kenichi Handa <handa@m17n.org>
7162
7163 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
7164 back to the default font in case that no suitable font is found.
7165
b7c7a4d1
SM
71662009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
7167
7168 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
7169 Suggested by Chad Brown <yandros@mit.edu>.
7170 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
7171
072f1e39
JD
71722009-11-16 Jan Djärv <jan.h.d@swipnet.se>
7173
7174 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
7175
5d1e70a2
AS
71762009-11-14 Andreas Schwab <schwab@linux-m68k.org>
7177
87e32266 7178 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 7179
a53cfbe5
JD
71802009-11-14 Jan Djärv <jan.h.d@swipnet.se>
7181
473a99b7
JD
7182 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
7183 has a parent.
7184
a53cfbe5 7185 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 7186 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
7187
7188 * config.in: Generated (AUTO_DEPEND).
7189
f04bb9b2
MA
71902009-11-13 Michael Albinus <michael.albinus@gmx.de>
7191
b7c7a4d1 7192 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
7193 Vdbus_registered_functions_table, because it contains also
7194 properties. Fix docstring.
b7c7a4d1 7195 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 7196
8f11f7ec
SM
71972009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
7198
7199 * alloc.c (mark_object): Don't reprocess marked strings.
7200 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
7201 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
7202
8a605fe8
KH
72032009-11-13 Kenichi Handa <handa@m17n.org>
7204
8f11f7ec 7205 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
7206 semantics of Vword_combining_categories.
7207 (Vword_combining_categories): Describe the slight change of the
7208 semantics.
7209
241c4680
EZ
72102009-11-13 Eli Zaretskii <eliz@gnu.org>
7211
7212 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
7213
7214 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
7215
5d58e44c
SM
72162009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
7217
7218 * xdisp.c (syms_of_xdisp): Fix typo in last change.
7219
5e13f9d3
JB
72202009-11-12 Juanma Barranquero <lekktu@gmail.com>
7221
7222 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
7223
cf54c754
DR
72242009-11-11 David Reitter <david.reitter@gmail.com>
7225
7226 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
7227 variables to fix 2009-11-09 change.
7228
a4ada374
DN
72292009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
7230
91433552
DN
7231 * process.c (ifflag_def): Make flag_sym constant.
7232 (Fnetwork_interface_info): Use a constant pointer.
7233 (ifflag_table):
7234 * xfns.c (cursor_bits):
7235 * xdisp.c (power_letter):
7236 * termcap.c (speeds, esctab):
7237 * sysdep.c (baud_convert):
7238 * keyboard.c (lispy_accent_codes, modifier_names):
7239 * image.c (xbm_format, xpm_format, pbm_format, png_format)
7240 (jpeg_format, tiff_format, gif_format, svg_format)
7241 (interlace_start, interlace_increment, gs_format):
7242 * gtkutil.c (separator_names):
7243 * fringe.c (swap_nibble):
7244 * fns.c (base64_value_to_char, base64_char_to_value):
7245 * fileio.c (make_temp_name_tbl):
7246 * coding.c (suffixes): Make constant.
7247
f4265f6c
DN
7248 * frame.c (make_initial_frame):
7249 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
7250 build_string.
7251 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
7252
04420943
DN
7253 * s/freebsd.h:
7254 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
7255
0a5d24ae
DN
7256 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
7257 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
7258
a4ada374
DN
7259 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
7260 * xterm.c (syms_of_xterm):
7261 * xfaces.c (syms_of_xfaces):
7262 * xdisp.c (syms_of_xdisp):
7263 * lread.c (syms_of_lread):
7264 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
7265 build_string.
91433552 7266
a4ada374
DN
7267 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
7268
af98fc7f
SM
72692009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
7270
8ab1650e 7271 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 7272
e90292a9
JD
72732009-11-10 Jan Djärv <jan.h.d@swipnet.se>
7274
7275 * keyboard.h: Declare timer_check.
7276
7277 * keyboard.c (timer_check_2): New function that does what the old
7278 timer_check did.
7279 (timer_check): Call timer_check_2 until -1 or a non-zero time is
7280 returned, i.e. don't return -1 with timers pending.
7281
7282 * process.c: Remove extern declaration of timer_check.
7283
7284 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
7285 even if timer_check returned -1.
7286
af98fc7f
SM
7287 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
7288 xg_dialog_data.
e90292a9
JD
7289 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
7290 the event loop.
7291 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
7292 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
7293 Destroy the dialog after xg_dialog_run.
7294
045b83c0
SM
72952009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
7296
7297 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
7298
1fb99a3a
JD
72992009-11-10 Jan Djärv <jan.h.d@swipnet.se>
7300
7301 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
7302
04e452cb
JB
73032009-11-09 Juanma Barranquero <lekktu@gmail.com>
7304
7305 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
7306
ef7417fd
SM
73072009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
7308
7309 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
7310 w32menu.c, and nsmenu.m.
7311 Simplify the obsolete case where position is nil.
7312 (cleanup_popup_menu): New function, moved from nsmenu.m.
7313 (struct skp): Remove slot `notreal'.
7314 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
7315 adjust callers.
7316 (single_menu_item): Adjust call to parse_menu_item.
7317 (syms_of_menu): Defsubr x-popup-menu.
7318 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
7319 (keymap_panes): Don't export any more.
7320 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
7321 (xmenu_show): Declare.
7322 * keyboard.c (parse_menu_item): Remove arg `notreal'.
7323 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
7324 * keyboard.h (parse_menu_item): Update declaration.
7325 * xmenu.c (Fx_popup_menu): Remove.
7326 (syms_of_xmenu): Don't defsubr x-popup-menu.
7327 * w32menu.c (Fx_popup_menu): Remove.
7328 (syms_of_w32menu): Don't defsubr x-popup-menu.
7329 * nsmenu.m (cleanup_popup_menu): Remove.
7330 (ns_menu_show): Rename from ns_popup_menu and remove all the code
7331 moved to menu.c's Fx_popup_menu.
7332 (Fx_popup_menu): Remove.
7333 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
7334 menu_items (it's done in menu.c already).
7335
424d6179
SM
73362009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
7337
7338 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
7339 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
7340
c0df13a6 73412009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
7342
7343 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 7344 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
7345 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
7346 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
7347
2de9f71c
SM
73482009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
7349
7350 Let integers use up 2 tags to give them one extra bit and thus double
7351 their range.
7352 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
7353 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
7354 New macros.
7355 (enum Lisp_Type): Use them. Give explicit values.
7356 (Lisp_Type_Limit): Remove.
7357 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
7358 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
7359 Pay attention to USE_2_TAGS_FOR_INTS.
7360 (INTEGERP): Use LISP_INT_TAG_P.
7361 * fns.c (internal_equal): Simplify the default case.
7362 (sxhash): Use case_Lisp_Int.
7363 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
7364 any more.
7365 (Ftype_of): Use case_Lisp_Int.
7366 (store_symval_forwarding): Take into account the fact that Ints can
7367 now have more than one tag.
7368 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 7369 (buffer_slot_type_mismatch):
2de9f71c
SM
7370 * xfaces.c (face_attr_equal_p):
7371 * print.c (print_object):
7372 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
7373 Use case_Lisp_Int.
7374
323637a2
EZ
73752009-11-06 Eli Zaretskii <eliz@gnu.org>
7376
7ac65b38
EZ
7377 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
7378
323637a2
EZ
7379 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
7380 warning.
7381
e511451f
JD
73822009-11-06 Jan Djärv <jan.h.d@swipnet.se>
7383
7384 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
7385
7386 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
7387
7388 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
7389 ButtonPressRelease and MotionNotify (bug#4870).
7390
5e2327cf
DN
73912009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
7392
5adc433e
DN
7393 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
7394
d67b4f80
DN
7395 * xterm.c (syms_of_xterm):
7396 * xselect.c (syms_of_xselect):
7397 * xmenu.c (syms_of_xmenu):
7398 * xfns.c (syms_of_xfns):
7399 * xfaces.c (syms_of_xfaces):
7400 * xdisp.c (syms_of_xdisp):
7401 * window.c (syms_of_window):
7402 * w32fns.c (syms_of_w32fns):
7403 * undo.c (syms_of_undo):
7404 * textprop.c (syms_of_textprop):
7405 * terminal.c (syms_of_terminal):
7406 * syntax.c (syms_of_syntax):
7407 * sound.c (syms_of_sound):
7408 * search.c (syms_of_search):
7409 * print.c (syms_of_print):
7410 * minibuf.c (syms_of_minibuf):
7411 * macros.c (syms_of_macros):
7412 * keymap.c (syms_of_keymap, initial_define_key)
7413 (initial_define_lispy_key):
7414 * keyboard.c (syms_of_keyboard):
7415 * insdel.c (syms_of_insdel):
7416 * image.c (syms_of_image):
7417 * fringe.c (syms_of_fringe):
7418 * frame.c (syms_of_frame):
7419 * fontset.c (syms_of_fontset):
7420 * fns.c (syms_of_fns):
7421 * fns.c (syms_of_fns):
7422 * fileio.c (syms_of_fileio):
7423 * fileio.c (syms_of_fileio):
7424 * eval.c (syms_of_eval):
7425 * doc.c (syms_of_doc):
7426 * dispnew.c (syms_of_display):
7427 * dired.c (syms_of_dired):
7428 * dbusbind.c (syms_of_dbusbind):
7429 * data.c (syms_of_data):
7430 * composite.c (syms_of_composite):
7431 * coding.c (syms_of_coding):
7432 * cmds.c (syms_of_cmds):
7433 * charset.c (define_charset_internal, syms_of_character):
7434 * ccl.c (syms_of_ccl):
7435 * category.c (syms_of_category, init_category_once):
7436 * casetab.c (syms_of_casetab):
7437 * casefiddle.c (syms_of_casefiddle):
7438 * callint.c (syms_of_callint):
7439 * bytecode.c (syms_of_bytecode):
7440 * buffer.c (keys_of_buffer, syms_of_buffer):
7441 * alloc.c (syms_of_alloc):
7442 * process.c (syms_of_process, init_process):
7443 * lread.c (syms_of_lread, init_obarray):
7444 * font.c (build_style_table):
7445 * emacs.c (syms_of_emacs, main): Replace calls to intern with
7446 intern_c_string, calls to make_pure_string with
7447 make_pure_c_string. Use pure_cons instead of Fcons.
7448
5e2327cf
DN
7449 * process.c (socket_options): Make it const.
7450 (set_socket_option, init_process): Use a const pointer.
7451
7452 * lread.c (intern_c_string): New function.
7453 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
7454 (defvar_int): Uset it. Make the name const char*.
7455
7456 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
7457 (defvar_int): Update prototypes.
7458 (DEFUN, EXFUN): Support for prototypes is now required.
7459 (intern_c_string): New prototype.
7460 (struct Lisp_Subr): Make symbol_name constant.
7461
7462 * font.c (struct table_entry): Remove unused member. Make NAMES
7463 constant.
7464 (weight_table, slant_table, width_table): Make constant.
7465
7466 * emacs.c (struct standard_args): Make name and longname constant.
7467
7468 * character.h (DEFSYM): Use intern_c_string.
7469
a56eaaef
DN
74702009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
7471
7472 * alloc.c (make_pure_c_string): New function.
7473
7474 * eval.c (Fautoload): Purecopy all arguments.
7475
f6a07420
KH
74762009-11-05 Kenichi Handa <handa@m17n.org>
7477
7478 * fileio.c (Finsert_file_contents): Be sure set coding-system of
7479 the buffer in case of replace.
7480
5d28d4b1
DN
74812009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
7482
7483 * puresize.h (BASE_PURESIZE): Increase to 1620000.
7484
b349d111
SM
74852009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
7486
d528b1ce
SM
7487 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
7488 when applicable (bug#4851).
7489
b349d111
SM
7490 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
7491 (P_): Support for prototypes is now required.
7492
c38eb027
CY
74932009-10-31 Chong Yidong <cyd@stupidchicken.com>
7494
7495 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
7496 (Bug#4827).
7497
0405f8d9
EZ
74982009-10-30 Eli Zaretskii <eliz@gnu.org>
7499
d528b1ce 7500 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 7501
ca0a881a
DN
75022009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
7503
7504 * puresize.h (BASE_PURESIZE): Increase to 1470000.
7505
d528b1ce
SM
7506 * lread.c (Fload): Purecopy the file name when building
7507 Vpreloaded_file_list.
ca0a881a 7508
47e0e0e4
JR
75092009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
7510
7511 * w32fns.c (syms_of_w32fns): Change default value of
7512 w32-scroll-lock-modifier to nil. (Bug#2827)
7513
057bce6f
JB
75142009-10-26 Juanma Barranquero <lekktu@gmail.com>
7515
782a943e 7516 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 7517
242bc74c
AS
75182009-10-26 Andreas Schwab <schwab@redhat.com>
7519
7520 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
7521
522d013a
JB
75222009-10-26 Juanma Barranquero <lekktu@gmail.com>
7523
7524 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
7525 For delta < 0, skip check that only makes sense when the mini-window
7526 is going to be enlarged. (Bug#4534)
7527
18060980
CY
75282009-10-25 Chong Yidong <cyd@stupidchicken.com>
7529
7530 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
7531 string in menu maps (Bug#4471).
7532
fec8f0fe
CY
75332009-10-24 Chong Yidong <cyd@stupidchicken.com>
7534
7535 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
7536 FRAME_NS_VIEW on terminal frames (Bug#4765).
7537
10d66ec0
AS
75382009-10-24 Andreas Schwab <schwab@linux-m68k.org>
7539
1cae01f7
AS
7540 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
7541 DBUS_TYPE_UINTnn separately to get proper sign extension.
7542
58a12889
AS
7543 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
7544 can properly handle unsigned types.
d528b1ce 7545 (make_uid, make_gid): Remove.
58a12889 7546
987c9327
AS
7547 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
7548 types again.
7549
522d013a 7550 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
7551 (system_process_attributes): Likewise.
7552
905a9ed3
DN
75532009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
7554
7555 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
7556
7557 * eval.c (Fautoload): Purecopy the filename. Simplify.
7558
7559 * category.c (Fdefine_category): Purecopy docstring.
7560
a599b3e8
AS
75612009-10-23 Andreas Schwab <schwab@linux-m68k.org>
7562
7b792fc9
AS
7563 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
7564
a599b3e8
AS
7565 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
7566
b35ac83e
CY
75672009-10-23 Chong Yidong <cyd@stupidchicken.com>
7568
7569 * window.c (Fwindow_edges, Fwindow_pixel_edges)
7570 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
7571 (Bug#4775).
7572
e8903e00
SM
75732009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
7574
7575 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
7576 (init_fileio_once):
7577 * lisp.h (init_fileio_once): Remove.
7578 * emacs.c (main): Don't call init_fileio_once.
7579
8f43cbf3
DN
75802009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
7581
7582 * puresize.h (BASE_PURESIZE): Increase to 1430000.
7583
26898943
AS
75842009-10-21 Andreas Schwab <schwab@linux-m68k.org>
7585
7586 * doprnt.c (doprnt): Fix overflow check.
7587
5c646d5a
JD
75882009-10-21 Jan Djärv <jan.h.d@swipnet.se>
7589
3132a7ea
JD
7590 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
7591
5c646d5a
JD
7592 * xterm.h (x_wait_for_event): Declare it.
7593
7594 * xterm.c (pending_event_wait): New variable.
7595 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
7596 see pending_event_wait.eventtype.
7597 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
7598 (x_new_font): Call change_frame_size with new rows/columns before we
7599 try to resize the frame.
5c646d5a 7600 (x_wait_for_event): New function.
d528b1ce
SM
7601 (x_set_window_size_1): Don't change gravity unless change_gravity
7602 is set.
5c646d5a
JD
7603 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
7604 don't change frame size, instead wait for the ConfigureNotify.
7605 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
7606 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
7607 (x_initialize): Initialize pending_event_wait.
7608
7609 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
7610 size.
7611
7612 * widget.c (EmacsFrameSetValues): Add comment.
7613 (EmacsFrameSetCharSize): Just call x_set_window_size.
7614
7615 * gtkutil.c (xg_frame_set_char_size): Flush events and call
7616 x_wait_for_event.
d528b1ce 7617 (flush_and_sync): Remove again.
5c646d5a
JD
7618 (xg_get_font_name): Suggest monospace if no previous font is known.
7619
e9c1637d
SM
76202009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
7621
7622 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 7623 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 7624
5a72cccb
YM
76252009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7626
7627 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
7628 processing pending events when event is filtered for input method.
ab04798f 7629 (Bug#3681)
5a72cccb 7630
2629aa37
JB
76312009-10-20 Juanma Barranquero <lekktu@gmail.com>
7632
7633 * fns.c: Add #endif accidentally removed in previous change.
7634
c3417a74
DN
76352009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7636
7637 * fns.c: Remove code for unsupported system: MAC_OS.
7638 * image.c: Likewise. Include setjmp.h.
7639
9685cef2
JD
76402009-10-19 Jan Djärv <jan.h.d@swipnet.se>
7641
7642 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
7643 pixel -1 (bug #4742).
7644
d7306fe6
DN
76452009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7646
019d2c4c
DN
7647 * process.c (create_pty): Remove conditionals for no longer
7648 supported systems: UNIPLUS and RTU.
7649
ee6bacd4
DN
7650 * xterm.c:
7651 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
7652
d7306fe6
DN
7653 * alloc.c: Do not define struct catchtag.
7654 * eval.c: Move struct catchtag definition ...
7655 * lisp.h: ... here.
7656
7657 * image.c: Move png.h #include earlier to avoid warnings.
7658
7659 * xterm.c:
7660 * xsmfns.c:
7661 * xselect.c:
7662 * xrdb.c:
7663 * xmenu.c:
7664 * xftfont.c:
7665 * xfont.c:
7666 * xfns.c:
7667 * xfaces.c:
7668 * xdisp.c:
7669 * window.c:
7670 * widget.c:
7671 * w32xfns.c:
7672 * w32uniscribe.c:
7673 * w32term.c:
7674 * w32select.c:
7675 * w32reg.c:
7676 * w32proc.c:
7677 * w32menu.c:
7678 * w32inevt.c:
7679 * w32heap.c:
7680 * w32font.c:
7681 * w32fns.c:
7682 * w32console.c:
7683 * w32.c:
7684 * w16select.c:
7685 * vm-limit.c:
7686 * unexsol.c:
7687 * unexec.c:
7688 * unexcw.c:
7689 * unexaix.c:
7690 * undo.c:
7691 * tparam.c:
7692 * textprop.c:
7693 * terminfo.c:
7694 * terminal.c:
7695 * termcap.c:
7696 * term.c:
7697 * syntax.c:
7698 * sound.c:
7699 * sheap.c:
7700 * search.c:
7701 * scroll.c:
7702 * region-cache.c:
7703 * regex.c:
7704 * ralloc.c:
7705 * process.c:
7706 * print.c:
b024548b
DN
7707 * nsterm.m:
7708 * nsselect.m:
7709 * nsmenu.m:
7710 * nsimage.m:
7711 * nsfont.m:
7712 * nsfns.m:
d7306fe6
DN
7713 * msdos.c:
7714 * minibuf.c:
7715 * menu.c:
7716 * marker.c:
7717 * macros.c:
7718 * keymap.c:
7719 * keyboard.c:
7720 * intervals.c:
7721 * insdel.c:
7722 * indent.c:
7723 * gtkutil.c:
7724 * ftxfont.c:
7725 * ftfont.c:
7726 * fringe.c:
7727 * frame.c:
7728 * fontset.c:
7729 * font.c:
7730 * fns.c:
7731 * floatfns.c:
7732 * filelock.c:
7733 * fileio.c:
7734 * emacs.c:
7735 * editfns.c:
7736 * dosfns.c:
7737 * doprnt.c:
7738 * doc.c:
7739 * dispnew.c:
7740 * dired.c:
7741 * dbusbind.c:
7742 * data.c:
7743 * composite.c:
7744 * coding.c:
7745 * cmds.c:
7746 * cm.c:
7747 * chartab.c:
7748 * charset.c:
7749 * character.c:
7750 * ccl.c:
7751 * category.c:
7752 * casetab.c:
7753 * casefiddle.c:
7754 * callproc.c:
7755 * callint.c:
7756 * bytecode.c:
7757 * buffer.c:
7758 * atimer.c: Include setjmp.h. (Bug#4643)
7759
fd5f21e6
SM
77602009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
7761
4c0354d7
SM
7762 Remove leftover table unibyte_to_multibyte_table.
7763 * character.c (unibyte_to_multibyte_table): Remove.
7764 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
7765 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
7766 * character.h (UNIBYTE_TO_CHAR): New macro.
7767 (MAKE_CHAR_MULTIBYTE): Use it.
7768 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
7769 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
7770 (message_dolog, set_message_1):
7771 * search.c (Freplace_match):
7772 * editfns.c (Fcompare_buffer_substrings):
7773 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
7774 (concat):
7775 * insdel.c (copy_text, count_size_as_multibyte):
7776 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
7777 * term.c (produce_glyphs):
7778 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
7779 * regex.c (RE_CHAR_TO_MULTIBYTE):
7780 * cmds.c (internal_self_insert):
7781 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
7782
fd5f21e6
SM
7783 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
7784
4418646e
DN
77852009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
7786
7787 * puresize.h (BASE_PURESIZE): Increase to 1310000.
7788
35f5c1d2
JB
77892009-10-16 Juanma Barranquero <lekktu@gmail.com>
7790
7791 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
7792
a0cd8f6b
AR
77932009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7794
7795 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
7796 still needed under Tiger.
7797
7798 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
7799
7800 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
7801 __Apple__.
7802
7803 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
7804
01a8d3fa
KH
78052009-10-15 Kenichi Handa <handa@m17n.org>
7806
7807 * print.c (print_object): Escape a symbol like "2E10" too.
7808
bf6c75c9 78092009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
7810
7811 Cleanups and changes for 64-bit compile under Snow Leopard.
7812 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
7813
7814 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
7815
c5959062 7816 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
7817 (ns_findfonts, nsfont_list_family): Use long format in printf, and
7818 cast argument.
7819 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 7820 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
7821
7822 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
7823
7824 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
7825 where appropriate.
7826
7827 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
7828 where appropriate.
6e4780c5
JB
7829 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
7830 Use stringWithUTF8String.
bf6c75c9
AR
7831 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
7832
6e4780c5
JB
7833 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
7834 Add formal protocol mention to inheritance.
bf6c75c9
AR
7835 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
7836
6e4780c5
JB
7837 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
7838 Fix printf format.
bf6c75c9
AR
7839 (ns_query_color): Use CGFloat where appropriate.
7840 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 7841 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
7842 argument.
7843
3d87f118
AR
7844 * config.in (NS_HAVE_NSINTEGER): Drop.
7845
a95c8102
AR
7846 * dbusbind.c (dbus-method-return-internal)
7847 (dbus-method-error-internal): Use long format in printf, and cast
7848 argument.
7849
7850 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
7851 in printf, and cast argument.
7852
6873acca 7853 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
7854 cast argument.
7855
9ec6f100
GM
78562009-10-11 Glenn Morris <rgm@gnu.org>
7857
7858 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
7859
5be883cd
JD
78602009-10-08 Jan Djärv <jan.h.d@swipnet.se>
7861
7862 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
7863 menu bar with a small width so it doesn't enlarge the frame.
7864
d7a39b51
JB
78652009-10-08 Juanma Barranquero <lekktu@gmail.com>
7866
7867 * fontset.c (Fset_fontset_font): Fix typos in error messages.
7868
0c2b6f8e
GM
78692009-10-06 Glenn Morris <rgm@gnu.org>
7870
7871 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
7872 SOME_MACHINE_LISP (this enters indirectly via DOC).
7873
e02131a2
EZ
78742009-10-05 Eli Zaretskii <eliz@gnu.org>
7875
7876 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
7877
b4744254
EZ
78782009-10-04 Eli Zaretskii <eliz@gnu.org>
7879
7880 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
7881 Doc fix.
7882
dbf64827
JB
78832009-10-03 Martin Rudalics <rudalics@gmx.at>
7884
7885 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
7886
e9a0aef8
MA
78872009-10-02 Michael Albinus <michael.albinus@gmx.de>
7888
d528b1ce 7889 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
7890 used anymore outside fileio.c.
7891
7892 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
7893
64eb2b56
JB
78942009-10-01 Juanma Barranquero <lekktu@gmail.com>
7895
7896 * lisp.h (Qdelete_directory_internal):
7897 Declare, instead of Qdelete_directory.
7898
7899 * w32fns.c (Fsystem_move_file_to_trash): Use it.
7900
9d28c33e
SM
79012009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
7902
7903 * eval.c (Fcalled_interactively_p): Add `kind' argument.
7904
9d8f3bd9
MA
79052009-10-01 Michael Albinus <michael.albinus@gmx.de>
7906
9d28c33e 7907 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
7908 Fdelete_directory. It is not a command anymore. It has no file
7909 name handler.
7910
9694740b
SM
79112009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
7912
7913 * xdisp.c (get_next_display_element): Use an enum in last change.
7914
748e162f
KH
79152009-09-28 Kenichi Handa <handa@m17n.org>
7916
9694740b 7917 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
7918 unibyte_display_via_language_environment in handling
7919 Vnobreak_char_display.
7920
17efd58d
AR
79212009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7922
7923 * nsterm.h (ns_app_name): New extern variable.
7924
7925 * nsterm.m (ns_app_name): New variable.
7926 (ns_term_init): Set and use it.
7927 (ns_term_shutdown): Use it.
7928
7929 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
7930 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
7931
7932 * nsfns.m (ns_set_name_iconic, ns_set_name)
7933 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
7934 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
7935
9694740b
SM
7936 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
7937 Remove double-casting in client_data comparison.
31c2d412 7938
3208cb35
YM
79392009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7940
7941 * keyboard.c (make_lispy_event): Remember last wheel direction.
7942 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
7943
b7d552d6
GM
79442009-09-26 Glenn Morris <rgm@gnu.org>
7945
7946 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
7947 internal.elc. Add term/pc-win.elc.
7948 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
7949 term/x-win.elc.
7950 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
7951 term/w32-win.elc.
7952 (NS_SUPPORT): New.
7953 (lisp): Add NS_SUPPORT.
7954 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
7955
4ff670a8
DR
79562009-09-25 David Reitter <david.reitter@gmail.com>
7957
7958 * nsmenu.m (EmacsMenu-clear): Recognize application menu
7959 on Mac OS X 10.6+ (bug#4513).
7960
feabfb6c
JB
79612009-09-24 Juanma Barranquero <lekktu@gmail.com>
7962
7963 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
7964 some parts of Emacs code (like font selection) don't grok them.
7965 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 7966
de59072a
AS
79672009-09-24 Andreas Schwab <schwab@redhat.com>
7968
7969 * coding.c (decode_coding_iso_2022): Fix operator precedence.
7970
a489517b
JB
79712009-09-24 Juanma Barranquero <lekktu@gmail.com>
7972
7973 * dired.c (Fdirectory_files): Fix typo in docstring.
7974
0592970c
AR
79752009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7976
7977 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
7978 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
7979 (EmacsScroller-setPosition:portion:whole:): Remove -display call
7980 under GNUstep.
7981 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
7982
7983 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
7984 glyph advancement.
7985
48e8a88b
AR
79862009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7987
7988 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 7989 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
7990
7991 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
7992 deleted (bug #4492).
7993
e14f0a78
AR
7994 * nsfont.m (Vns_reg_to_script): New lisp variable.
7995 (syms_of_nsfont): Declare it.
7996 (ns_registry_to_script): New function.
7997 (ns_get_req_script): Call it.
7998 (ns_findfonts): Don't give up on non-unicode registry.
7999
8000 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
8001
5b650faa
SM
80022009-09-20 Tom Tromey <tromey@redhat.com>
8003
8004 * eval.c (find_handler_clause): Make stack-trace-on-error work in
8005 batch mode (bug#4228).
8006
a489517b 80072009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
8008
8009 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 8010 carefully. (Bug #4339)
0bae4e09 8011
fcfe06f3
CY
80122009-09-18 Chong Yidong <cyd@stupidchicken.com>
8013
d798ba87 8014 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 8015
31642728
AR
80162009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8017
8018 * emacs.c (inhibit_x_resources): Update doc string for NS.
8019 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 8020 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
8021
8022 * nsterm.h (ns_no_defaults): Remove.
8023
8024 * nsterm.m (ns_no_defaults): Remove.
8025 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
8026 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
8027 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
8028 don't update the NSWindow itself.
8029 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 8030 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
8031
8032 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
8033 ns_use_qd_smoothing.
8034
8035 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
8036 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 8037 (x-close-connection): Drop PSFlush() under OS X.
a489517b 8038 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 8039
8686ac71
JB
80402009-09-17 Juanma Barranquero <lekktu@gmail.com>
8041
8042 * emacs.c (inhibit_x_resources): New variable.
8043 (main) [HAVE_NS]: Don't process --quick command line option.
8044 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
8045
8046 * lisp.h (inhibit_x_resources): Declare it extern.
8047
8048 * w32reg.c (x_get_string_resource):
8049 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
8050
e227ba05
EZ
80512009-09-17 Eli Zaretskii <eliz@gnu.org>
8052
362654a6
JB
8053 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
8054 Add lisp/term/internal.elc.
e227ba05 8055
742d40e8
SM
80562009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8057
8058 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
8059 (bug#4461).
8060
005bd5a2
DN
80612009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
8062
8063 * puresize.h (BASE_PURESIZE): Increase to 1290000.
8064
8065 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
8066 (OBJECTS_MACHINE): Remove, unused.
8067
f9af9719
SM
80682009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
8069
8070 * frame.c (x_get_resource_string): Remove unused.
8071
0307c7d2
JD
80722009-09-15 Jan Djärv <jan.h.d@swipnet.se>
8073
8074 * xterm.c (x_new_font): Call change_frame_size before calling
8075 x_set_window_size, in case frame size won't change.
8076
8077 * frame.c (x_set_font): Remove dead code.
8078
428b13d6
SM
80792009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
8080
8081 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
8082
5766c380
SM
80832009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8084
8085 * lread.c (Fload): Don't output a message after loading an obsolete
8086 package any more (done in Lisp now).
8087
2fd0161b
CY
80882009-09-12 Chong Yidong <cyd@stupidchicken.com>
8089
8090 * fns.c (syms_of_fns): Doc fix (Bug#4227).
8091
bc5e75b6
SM
80922009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8093
8094 * keymap.c (Fwhere_is_internal): Use nconc2.
8095
c31c985e
AM
80962009-09-11 Alan Mackenzie <acm@muc.de>
8097
8098 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
8099 batch mode.
8100
78012bd2
AS
81012009-09-11 Andreas Schwab <schwab@linux-m68k.org>
8102
8103 * xdisp.c (display_mode_element): Detect cycles.
8104
9d889332
SM
81052009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8106
8107 * keymap.c (where_is_internal): Don't erroneously return nil right after
8108 filling the cache.
8109 (where_is_internal_1): Fix up typo.
8110
7ab5d780
GM
81112009-09-11 Glenn Morris <rgm@gnu.org>
8112
8113 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
8114 share a common doc-string.
8115
5238a749
SM
81162009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8117
66d77eda
SM
8118 * keymap.c (get_keymap): Return the actual keymap symbol rather than
8119 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
8120
5238a749
SM
8121 * keymap.c (QCadvertised_binding): New constant.
8122 (syms_of_keymap): Initialize it.
8123 (Fwhere_is_internal): Try and use bindings from :advertised-binding
8124 if applicable.
8125
19f48442
SM
81262009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
8127
50d4ba39
SM
8128 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
8129 (parse_menu_item): Streamline since bindings are recomputed all the
8130 time anyway. Don't bother checking Vdefine_key_rebound_commands any
8131 more and don't support lmenu's menu-alias any more either.
8132
a88a5372
SM
8133 * keymap.c (where_is_internal_data): Make noindirect a boolean.
8134 (where_is_internal): Strip it down to only traverse the keymaps.
8135 Move the cache handling from Fwhere_is_internal to here.
8136 (Fwhere_is_internal): Move the handling of remapping and the choice of
8137 the best binding from where_is_internal to here.
8138 Unify the cached/noncached paths, so remapping is also handled
8139 correctly when the cache is used, and so the cache can be used to
8140 speed up remap-handling when applicable.
8141 Give preference to non-remapped bindings.
8142 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
8143 non-remapped bindings.
8144 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
8145 command remapping.
8146
19f48442
SM
8147 * xdisp.c (display_mode_element): Move list length limit from 50 to
8148 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
8149
599498c3 81502009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
8151
8152 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
8153
f9b7b5ac
SM
81542009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
8155
a53af587
JB
8156 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
8157 (Bug#4334)
8158
f9b7b5ac
SM
8159 * keymap.c (where_is_internal): Filter out shadowed remappings.
8160 Assume that where_is_internal returns unshadowed bindings to simplify
8161 the code and get rid of the gotos. Use ASIZE.
8162
04f4b72d
JD
81632009-09-04 Jan Djärv <jan.h.d@swipnet.se>
8164
4da146f2
JD
8165 * xterm.c (x_focus_changed): If we get a focusout and pointer
8166 is invisible, make it visible.
8167
04f4b72d
JD
8168 * xterm.h: Remove condition for declaration of
8169 x_*_window_to_frame.
8170
7cef7ce3
SM
81712009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
8172
8173 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
8174 initial terminal as well.
8175
a54fa5b7
JD
81762009-09-02 Jan Djärv <jan.h.d@swipnet.se>
8177
8178 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 8179 x_menubar_window_to_frame.
a54fa5b7 8180
50426a04 8181 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
8182 (XTmouse_position): Do not return valid positions
8183 for clicks in the menubar and the toolbar for Gtk+.
8184
8185 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
8186 if the widget for the event has the same top level as a frame,
8187 return the frame.
8188 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
8189 internal windows, bug #4122.
8190 (x_non_menubar_window_to_frame): Remove.
8191
5a021dd0
GM
81922009-09-02 Glenn Morris <rgm@gnu.org>
8193
8194 * buffer.c (default-major-mode): Move most of the doc from here...
8195 (major-mode): ... to here.
8196
548fe2f3
NR
81972009-08-30 Nick Roberts <nickrob@snap.net.nz>
8198
8199 * process.c (wait_reading_process_output): Keep the descriptor
8200 when pty is used by a non-child process, e.g., in I/O buffer of
8201 GDB this allows inferior to be restarted.
8202
e0840eef
EZ
82032009-08-29 Eli Zaretskii <eliz@gnu.org>
8204
8205 * xdisp.c (redisplay_internal): Remove redundant test and collapse
8206 both branches into one.
8207
82e98df4
SM
82082009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
8209
8210 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
8211 (main): Use enable-multibyte-characters rather than
8212 default-enable-multibyte-characters. Output a warning message when
8213 running a unibyte session.
8214
890617cb
YM
82152009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8216
8217 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
8218 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
8219 (copy_data_segment): Also copy __program_vars section.
8220 (copy_dyld_info) [LC_DYLD_INFO]: New function.
8221 (dump_it) [LC_DYLD_INFO]: Use it.
8222
8223 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
8224
e7adeadc
EZ
82252009-08-28 Eli Zaretskii <eliz@gnu.org>
8226
8227 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
8228 $(SRC)/buildobj.h.
8229 (buildobj.h): Renamed from $(SRC)/buildobj.h.
8230 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
8231 $(SRC)/buildobj.h.
8232 (clean): Add buildobj.h.
8233
3ed8bbdc
TZ
82342009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
8235
8236 * print.c (print_object): Set escapeflag to 1 when printing
8237 hashtable keys and values.
8238
155a6764
SM
82392009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
8240
8241 * lread.c (read_integer): Use doubles (and potentially return a float
8242 number) as we do in string-to-number.
8243 (read1): Use strtol to read integers, signal errors on strtol's
8244 overflow and use floats if strtol's output is too large for
8245 Elisp integers.
8246
877610de
EZ
82472009-08-27 Eli Zaretskii <eliz@gnu.org>
8248
8249 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
8250 (make-buildobj-SH): Fix last change.
8251 (SRC): Move to before where it's first used.
8252
ef73e7be
KH
82532009-08-27 Kenichi Handa <handa@m17n.org>
8254
550c8289
KH
8255 * process.c (send_process): Use encode_coding_object instead of
8256 encode_coding_string to perform eol-conversion even if the string
8257 is unibyte.
8258
60afa08d
KH
8259 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
8260 character.
8261
ef73e7be 8262 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 8263 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 8264
7b3a82d7
DN
82652009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
8266
5654bf63
DN
8267 * callproc.c (Fcall_process): Remove always true #if.
8268
7b3a82d7
DN
8269 * lisp.h: Replace #if 0 code for checking with text pointing to
8270 the --enable-checking configure flag.
8271
8272 * emacs.c (main): Mention the --enable-profiling configure flag
8273 instead of using CFLAGS.
8274
878bde49
KR
82752009-08-26 Ken Raeburn <raeburn@raeburn.org>
8276
8277 * Makefile.in (buildobj.h): New target.
8278 (doc.o): Depend on it.
8279 (temacs${EXEEXT}): Don't generate buildobj.lst.
8280 (mostlyclean): Delete buildobj.h, not buildobj.lst.
8281 * makefile.w32-in ($(SRC)/buildobj.h): New target.
8282 ($(BLD)/doc.$(O)): Depend on it.
8283 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
8284 provided by Eli Zaretskii.)
8285 ($(TEMACS)): Don't generate buildobj.lst.
8286 * doc.c: Include buildobj.h.
8287 (buildobj): New static variable.
8288 (Fsnarf_documentation): Use it, instead of opening and reading
8289 buildobj.lst.
8290
1574224c
MA
82912009-08-25 Michael Albinus <michael.albinus@gmx.de>
8292
8293 * dbusbind.c (Fdbus_call_method)
8294 (Fdbus_call_method_asynchronously): Use English numeric format for
8295 timeout values in doc string.
8296
d9da2f45
KH
82972009-08-25 Kenichi Handa <handa@m17n.org>
8298
ef73e7be
KH
8299 * alloc.c (mark_char_table): New function.
8300 (mark_object): Use mark_char_table for a char-table.
8301
d9da2f45
KH
8302 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
8303 (CHAR_TABLE_REF): Use it.
8304
c8edcc01
KR
83052009-08-23 Ken Raeburn <raeburn@raeburn.org>
8306
8307 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
8308 before invoking the newly build emacs to check for load-path
8309 shadowing.
8310
7763401b
GM
83112009-08-22 Glenn Morris <rgm@gnu.org>
8312
8313 * Makefile.in (bootstrap_exe): New variable.
8314 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
8315 Use ${bootstrap_exe}.
8316
729eadda
EZ
83172009-08-22 Eli Zaretskii <eliz@gnu.org>
8318
8319 * coding.h (encode_coding_string): Don't encode unibyte strings.
8320 (Bug#4047)
8321
eb4c6ace
MA
83222009-08-22 Michael Albinus <michael.albinus@gmx.de>
8323
8324 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
8325
8326 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
8327 intended as hotfix only.
8328 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
8329
36e34d1b
AR
83302009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8331
8332 * nsterm.m (ns_get_color): Update documentation properly for last
8333 change, and clean up loose ends in the code left by it. Fix
8334 longstanding bug with 16-bit hex parsing, and add support for
8335 yet another X11 format (rgb:r/g/b) for compatibility.
8336 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
8337 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
8338
f983eb8a
SM
83392009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
8340
8341 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
8342
3f56d3c6
MA
83432009-08-20 Michael Albinus <michael.albinus@gmx.de>
8344
8345 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
8346 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
8347 (xd_initialize, xd_pending_messages): Check, whether
8348 $DBUS_SESSION_BUS_ADDRESS is set.
8349
fb641d68
YM
83502009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8351
8352 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
8353
8354 * nsterm.m (ns_get_color): Remove incompatible color formats again.
8355
cf59a374
GM
83562009-08-20 Glenn Morris <rgm@gnu.org>
8357
8358 * emacs.c (system-type): Doc fix.
8359
1373f3be
SM
83602009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
8361
8362 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
8363 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
8364
058ed861
MA
83652009-08-18 Michael Albinus <michael.albinus@gmx.de>
8366
1373f3be
SM
8367 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
8368 New functions.
058ed861
MA
8369 (xd_initialize): Revert change from 2009-08-16.
8370
563a866e 83712009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
8372
8373 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 8374 font-group vector, return nil.
5fc05db0 8375
e42bdf01
CY
83762009-08-17 Chong Yidong <cyd@stupidchicken.com>
8377
8378 * process.c (status_notify): Don't perform redisplay.
8379 (Fdelete_process, list_processes_1, process_send_signal):
8380 Expliticly perform redisplay.
8381 (wait_reading_process_output): Always check process status, but
8382 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
8383
4230ab74
KR
83842009-08-17 Ken Raeburn <raeburn@raeburn.org>
8385
1373f3be 8386 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
8387 (XFLOAT_INIT): New macro for storing a float value.
8388 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
8389 * fns.c (sxhash): Copy out the value of a float in order to
8390 examine its bytes.
8391 * dbusbind.c (xd_append_arg): Likewise.
8392
4230ab74
KR
8393 * emacs.c (main): Don't call syms_of_data twice.
8394
a0645cdd
MA
83952009-08-16 Michael Albinus <michael.albinus@gmx.de>
8396
8397 * dbusbind.c (xd_initialize): Add connection file descriptor to
8398 input_wait_mask, in order to let select() detect, whether a new
8399 message has been arrived.
ca4f31ea 8400 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 8401
485db0ba
MA
84022009-08-15 Michael Albinus <michael.albinus@gmx.de>
8403
1373f3be
SM
8404 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
8405 New functions.
485db0ba
MA
8406
8407 * lisp.h (xd_pending_messages): Declare.
8408
8409 * keyboard.c (readable_events): Call xd_pending_messages.
8410
b5b98ff4
CY
84112009-08-15 Chong Yidong <cyd@stupidchicken.com>
8412
1373f3be 8413 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 8414
f8354c6e
CY
8415 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
8416
b5b98ff4
CY
8417 * buffer.c (set_buffer_internal_1)
8418 (swap_out_buffer_local_variables): Check for unbound local
8419 variables (Bug#4138).
8420
8b9fc636
EZ
84212009-08-14 Eli Zaretskii <eliz@gnu.org>
8422
8423 * process.c (create_pty): Fix last change.
8424
ce959360
CY
84252009-08-13 Chong Yidong <cyd@stupidchicken.com>
8426
8427 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
8428 (xbm_load_image): Caller changed.
64b807c9 8429 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 8430
c7baf7e9
NR
84312009-08-13 Nick Roberts <nickrob@snap.net.nz>
8432
8433 * process.c (create_pty): New function.
8434 (Fstart_process): Use it to allow Emacs to just associate a pty
8435 with the buffer. See associated change in gdb-mi.el.
8436 (list_processes_1): Deal with no program name.
8437 (start_process_unwind): Use pid == -2 to mean no process.
8438
1ac9108a
SM
84392009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
8440
8441 * cmds.c (nonundocount): New global variable.
8442 (keys_of_cmds): Initialize it.
8443 (Fself_insert_command): Use it to combine upto 20 sequential chars
8444 into a single undo entry, just like the Qself_insert_command code in
8445 keyboard.c does.
8446 Call frame_make_pointer_invisible, also like the Qself_insert_command
8447 code in keyboard.c does.
8448 * keyboard.c (command_loop_1): Use the new global nonundocount rather
8449 than its own local replacement for it.
8450
e267324c
KR
84512009-08-10 Ken Raeburn <raeburn@raeburn.org>
8452
1ac9108a 8453 * fns.c (concat): Don't re-set string length to its current value.
77437343 8454
1ac9108a
SM
8455 * coding.h (decode_coding_string, encode_coding_string):
8456 Use SBYTES macro.
f0bed503 8457
1ac9108a 8458 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
8459 (doprnt): Merge with doprnt1, discarding lispstrings code.
8460 * lisp.h (doprnt_lisp): Don't declare.
8461
416e006d
JL
84622009-08-07 Juri Linkov <juri@jurta.org>
8463
8464 * puresize.h (BASE_PURESIZE): Increase to 1270000.
8465
6f7d5780
DN
84662009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8467
8468 * print.c (syms_of_print): Undo previous change.
8469
f19a0f5b
TZ
84702009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
8471
8472 * lread.c (read1, syms_of_lread): Read hashtables back from the
8473 readable format.
8474
8475 * print.c (print_preprocess, print_object): Print hashtables fully
8476 and readably.
8477 (syms_of_print): Provide 'hashtable-print-readable.
8478
b9173dc2
AR
84792009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8480
8481 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
8482 no family set.
8483 (nsfont_open): Handle case when entity has no family.
8484
1586503c
AR
84852009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8486
8487 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
8488 element, not a list, for match case.
8489
087048cd
KH
84902009-07-28 Kenichi Handa <handa@m17n.org>
8491
8492 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
8493 rigidly.
8494
8495 * xfont.c (xfont_list_pattern): Don't ignore the return value of
8496 font_parse_xlfd. Check font properties more rigidly.
8497
780c2506
DN
84982009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8499
31fd7c5c
JB
8500 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
8501 bsd-common.h.
780c2506 8502
a8c0cc18
KH
85032009-07-27 Kenichi Handa <handa@m17n.org>
8504
8505 * xfaces.c (face_with_height): Call font_clear_prop.
8506
4fbe2306
CY
85072009-07-26 Chong Yidong <cyd@stupidchicken.com>
8508
111d9af3
CY
8509 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
8510
8511 * xterm.c (x_term_init): Use Qx.
8512
4fbe2306
CY
8513 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
8514
1ac9108a 8515 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
8516 (ns_get_color): Revert 2009-07-16 change.
8517
beb0b7f9
EZ
85182009-07-25 Eli Zaretskii <eliz@gnu.org>
8519
8520 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 8521 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 8522
2baf5e76
KR
85232009-07-25 Ken Raeburn <raeburn@raeburn.org>
8524
1ac9108a
SM
8525 * coding.h (decode_coding_string, encode_coding_string):
8526 Use SCHARS macro.
8890e5f5 8527
2baf5e76 8528 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 8529 (load_depth): Delete.
2baf5e76
KR
8530 (Qload_in_progress): New variable.
8531 (load_unwind): Don't reference load_depth or load_in_progress.
8532 (Fload): Likewise; specbind Qload_in_progress instead.
8533 (init_lread): Don't initialize load_depth.
8534 (syms_of_lread): Initialize and protect Qload_in_progress.
8535
1395c6f5
AR
85362009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8537
8538 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
8539
4e2f36cf
AR
85402009-07-23 Yavor Doganov <yavor@gnu.org>
8541
8542 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
8543
5dd9a6f7
AR
85442009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8545
8546 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
8547 Bugs 3792, 3720, 2402.
8548 (ns_lookup_indexed_color): Check for bad index.
8549 (ns_index_color): Init unused slot to 0.
8550 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
8551 Bug 3714, possibly 3082.
5dd9a6f7 8552
c902b920
JR
85532009-07-22 Jason Rumney <jasonr@gnu.org>
8554
1ac9108a
SM
8555 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
8556 Position IME window at cursor (Bug#2570).
c902b920
JR
8557 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
8558 (globals_of_w32fns): Dynamically load functions required above.
8559
8560 * w32term.c (w32_draw_window_cursor): Send message to reposition
8561 any IME window.
8562
090101cf
CY
85632009-07-21 Chong Yidong <cyd@stupidchicken.com>
8564
8565 * fileio.c: Revert 2009-07-16 changes.
8566 (Vauto_save_include_big_deletions): New variable.
8567 (Fdo_auto_save): Disable auto-save only if
8568 auto-save-include-big-deletions is nil.
8569
e6583e3d
CY
85702009-07-21 Chong Yidong <cyd@stupidchicken.com>
8571
8572 * xdisp.c (move_it_to): For continued lines ending in a tab, take
8573 the overflowed pixels into account (Bug#3879).
8574
ece435a5
KR
85752009-07-21 Ken Raeburn <raeburn@raeburn.org>
8576
8577 * lread.c (load_depth): New variable.
8578 (Fload, load_unwind, init_lread): Set it to the load recursion
8579 depth; set load_in_progress as a simple boolean based on the
8580 current load_depth. (Bug#3892)
8581
40b2d973
AR
85822009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8583
8584 * nsfont.m (ns_has_attribute): Remove.
8585 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
8586
10be7e0d
JL
85872009-07-18 Juri Linkov <juri@jurta.org>
8588
8589 * process.c (Fset_process_query_on_exit_flag): Mention killing
8590 a buffer in docstring.
8591
fa055055
KH
85922009-07-17 Kenichi Handa <handa@m17n.org>
8593
8594 * casetab.c (shuffle): Fix the logic of setting up the cycle.
8595
042f7b69
YM
85962009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8597
8598 * nsfns.m (Fns_set_alpha): Remove function.
8599 (syms_of_nsfns): Don't defsubr it.
8600
8601 * nsterm.m (ns_get_color): Remove incompatible color formats.
8602 (ns_color_to_lisp): Generate #rrggbb color format string.
8603
4be941e3
RS
86042009-07-16 Richard Stallman <rms@gnu.org>
8605
8606 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
8607 (Fset_buffer_auto_saved): Handle save_length = -2.
8608
4e6b227d
CY
86092009-07-16 Chong Yidong <cyd@stupidchicken.com>
8610
8611 * xterm.c (Qx_gtk_map_stock): New var.
8612
8613 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
8614 of calling intern each time.
8615
a1856973
YM
86162009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8617
8618 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
8619 does tiling.
8620
8621 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
8622
497e54d8
KH
86232009-07-14 Kenichi Handa <handa@m17n.org>
8624
72d36834
KH
8625 * font.c (font_vconcat_entity_vectors): New function.
8626 (struct font_sort_data): New member font_driver_preference.
8627 (font_compare): Check font_driver_preference.
8628 (font_sort_entities): The format of the first argument changed.
8629 (font_delete_unmatched): Likewise.
8630 (font_list_entities): The return type changed.
8631 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
8632 (font_find_for_lface): Adjuste for the above changes.
8633 Don't suppress the checking of C even if the repertory supports it.
8634 (Flist_fonts): Adjust for the above changes.
72d36834 8635
1ac9108a
SM
8636 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
8637 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
8638 Reject a font who has adstyle property that is different from a
8639 langname derived from registry property.
1ac9108a 8640 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 8641
b6046155
EZ
86422009-07-13 Eli Zaretskii <eliz@gnu.org>
8643
8644 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
8645 local copy of dirfilename.
8646
fb6b6049
KH
86472009-07-13 Kenichi Handa <handa@m17n.org>
8648
e2402a5e
KH
8649 * chartab.c (sub_char_table_ref_and_range): Fix the range check
8650 against max_char.
8651
fb6b6049
KH
8652 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
8653 calling XSYMBOL (sym).
8654
65156807
EZ
86552009-07-11 Eli Zaretskii <eliz@gnu.org>
8656
1ac9108a
SM
8657 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
8658 New function.
8659 (directory_files_internal) [WINDOWSNT]:
8660 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
8661 the filesystem of the directory is fast or slow.
8662
8663 * w32.c (logon_network_drive): Don't assume PATH is an absolute
8664 file name.
8665 (is_slow_fs): New function.
8666 (stat): Use it to determine whether to issue more system calls to
8667 get accurate file attributes, when w32-get-true-file-attributes is
8668 `local'.
8669
e0ab5fcf
JD
86702009-07-10 Jan Djärv <jan.h.d@swipnet.se>
8671
8672 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 8673 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
8674 parameter font-parameter as default to the font dialog.
8675
784ceded
KH
86762009-07-10 Kenichi Handa <handa@m17n.org>
8677
8678 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
8679
fb8edc0b
EZ
86802009-07-09 Eli Zaretskii <eliz@gnu.org>
8681
1ac9108a 8682 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 8683
fb8edc0b
EZ
8684 * w32.c (stat): Treat UNC file names as residing on remote
8685 drives. (Bug#3542)
8686
635c75b1
KH
86872009-07-09 Kenichi Handa <handa@m17n.org>
8688
8689 * fontset.c (fontset_find_font): Fix previous change.
8690
c1d5ce94
MA
86912009-07-08 Michael Albinus <michael.albinus@gmx.de>
8692
8693 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
8694 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
8695 error flag.
8696
edb61b39
KH
86972009-07-08 Kenichi Handa <handa@m17n.org>
8698
374bf7e4
KH
8699 * fontset.c (fontset_find_font): Fix the logic of handling
8700 charset_matched.
8701 (font_for_char): Delete unused var.
8702 (generate_ascii_font_name): Delete it.
8703
edb61b39
KH
8704 * coding.h (JIS_TO_SJIS2): Fix the code range check.
8705
8706 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
8707 (encode_coding_sjis): Fix the code range check.
8708
0f3f018c
CY
87092009-07-07 Chong Yidong <cyd@stupidchicken.com>
8710
8711 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
8712 (Fexpand_file_name): Copy string data properly (Bug#3772).
8713
fcaf6f3a
JD
87142009-07-07 Jan Djärv <jan.h.d@swipnet.se>
8715
8716 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
8717 first MapNotify.
8718
6809ca75
KH
87192009-07-07 Kenichi Handa <handa@m17n.org>
8720
8721 * character.h (unibyte_has_multibyte_table): Delete extern.
8722 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
8723
8724 * charset.c (Fset_charset_priority): Update charset_unibyte.
8725 (syms_of_charset): Initialize charset_unibyte.
8726
8727 * character.c (unibyte_has_multibyte_table): Delete it.
8728 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
8729 charset_unibyte.
8730 (multibyte_char_to_unibyte_safe): Likewise.
8731 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
8732
1ac9108a 8733 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
8734 (x_produce_glyphs): Likewise.
8735
8736 * .gdbinit (xcharset): Fix the treating $arg0.
8737
ad9e2d54
EZ
87382009-07-04 Eli Zaretskii <eliz@gnu.org>
8739
8740 Emulation of `getloadavg' on MS-Windows.
50426a04 8741 * w32.c: Include float.h.
ad9e2d54
EZ
8742 (g_b_init_get_native_system_info, g_b_init_get_system_times)
8743 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
8744 (get_native_system_info, get_system_times): New functions.
8745 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
8746 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
8747 (globals_of_w32): Initialize g_b_init_get_native_system_info,
8748 g_b_init_get_system_times, and num_of_processors.
8749
0a3472c7
JR
87502009-07-03 Jason Rumney <jasonr@gnu.org>
8751
8752 * w32term.c (w32_initialize): Use standard types.
8753
80904120
EZ
87542009-07-03 Eli Zaretskii <eliz@gnu.org>
8755
8756 * dired.c (Ffile_attributes): Decode user and group names by the
8757 locale's encoding. (Bug#3443)
8758
6978862d
DN
87592009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
8760
f8d23104
DN
8761 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
8762 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
8763
8764 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
8765
8766 * term.c (init_tty): Remove spurious #ifdef.
8767
6978862d
DN
8768 * m/mips.h: Mention this file is also used for netbsd.
8769 * m/pmax.h: Remove file.
8770
e044e4fc
JD
87712009-07-03 Jan Djärv <jan.h.d@swipnet.se>
8772
8773 * xterm.h (struct x_display_info): Add invisible_cursor.
8774 (struct x_output): Add current_cursor.
8775
8776 * xterm.c (XTtoggle_invisible_pointer): New function.
8777 (x_define_frame_cursor): Don't define cursor if invisible or the
8778 same as before. Set current_cursor.
8779 (x_create_terminal): Set toggle_invisible_pointer_hook.
8780
8781 * xfns.c (make_invisible_cursor): New function.
8782 (x_set_mouse_color): Call make_invisible_cursor.
8783 Set current_cursor.
8784 (x_window): Set current_cursor.
8785
8786 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
8787
8788 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
8789 inserting a character.
8790 (read_avail_input): Call frame_make_pointer_visible.
8791
8792 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
8793 (frame_make_pointer_invisible, frame_make_pointer_visible):
8794 New functions.
e044e4fc
JD
8795 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
8796
8797 * frame.h: Declare frame_make_pointer_invisible and
8798 frame_make_pointer_visible.
8799 (struct frame): Add pointer_invisible.
8800
574c8efa
JD
88012009-07-02 Jan Djärv <jan.h.d@swipnet.se>
8802
7b507248
JD
8803 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
8804 frame isn't visible.
8805 (xg_frame_resized): If width/height is -1, get size of window
8806 from X server.
8807
8808 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
8809 for MapNotify.
8810
835bdaa7 8811 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 8812 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 8813 (flush_and_sync): Reintroduce.
574c8efa 8814
3f1c6666 88152009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 8816
31fd7c5c 8817 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
8818
8819 * xterm.c (x_handle_net_wm_state): Also look for sticky.
8820 (x_term_init): Initialize Xatom_net_wm_state_sticky.
8821
8822 * frame.h: Declare Qsticky.
8823
cad9ef74
JD
8824 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
8825
8826 * nsfns.m (ns_frame_parm_handlers): Ditto.
8827
8828 * frame.c: Declare Qsticky.
8829 (frame_parms): Add sticky.
8830
8831 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
8832
8833 * xterm.h: Declare x_set_sticky.
8834
8835 * xterm.c (x_set_sticky): New function.
8836
69b16610
JD
8837 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
8838 (xg_tool_bar_menu_proxy): Attach enter/leave events to
8839 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
8840
8841 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
8842
8843 * frame.c: Qmaximized is new.
8844 (x_set_frame_parameters): Do not handle fullscreen specially.
8845 Only set width and height if explicitly set.
8846 (x_set_fullscreen): Handle Qmaximized.
8847 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
8848 (syms_of_frame): Initialize Qmaximized.
8849
1ac9108a
SM
8850 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
8851 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
8852
8853 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
8854 for Expose event. Add call to x_check_fullscreen for MapNotify event.
8855 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
8856 set gravity to NorthWestGravity when USE_GTK.
8857 (set_wm_state): New function.
31fd7c5c 8858 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
8859 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
8860 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 8861 or the case when no window manager is running. That means remove calls
3f1c6666
JD
8862 to x_real_positions and x_fullscreen_adjust.
8863
8864 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
8865 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
8866 flush_and_sync.
8867 (xg_height_changed): New function.
8868 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
8869 and gtk_window_set_policy. Set frame gravity after parsing the
8870 geometry string.
3f1c6666
JD
8871 (xg_update_frame_menubar, free_frame_menubar)
8872 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
8873 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
8874 Remove calls to xg_frame_set_char_size.
8875
fd503d99
KH
88762009-07-01 Kenichi Handa <handa@m17n.org>
8877
8878 * keyboard.c (decode_keyboard_code): New function.
8879 (tty_read_avail_input): Decode the input bytes if necessary.
8880
1ac9108a
SM
8881 * coding.c (setup_coding_system):
8882 Initialize coding->carryover_bytes to 0.
fd503d99
KH
8883 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
8884 use Qno_conversion.
8885
24ed93fb
YM
88862009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8887
8888 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
8889
99061dfc
CY
88902009-06-30 Chong Yidong <cyd@stupidchicken.com>
8891
1ac9108a 8892 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 8893
ff90fbde
JR
88942009-06-30 Jason Rumney <jasonr@gnu.org>
8895
8896 * w32term.c (w32_initialize): Use GetModuleHandle for library that
8897 is already loaded.
8898 Set user model ID if supported (bug#1849).
8899
5f445726
JM
89002009-06-29 Jim Meyering <meyering@redhat.com>
8901
8902 Remove useless if-before-xfree test.
8903 * nsfont.m (nsfont_close): Remove useless test.
8904 * term.c (delete_tty): Likewise.
8905 * w32.c (system_process_attributes): Likewise.
8906 * w32font.c (w32font_close): Likewise.
8907 * xfaces.c (x_free_gc): Likewise.
8908 * xselect.c (buffer): Likewise.
8909
b9607587
AS
89102009-06-28 Andreas Schwab <schwab@linux-m68k.org>
8911
8912 * process.c (send_process): Keep decoded string in a local
8913 variable and protect it from GC. (Bug#3521)
8914
89ba96f4
EZ
89152009-06-28 Eli Zaretskii <eliz@gnu.org>
8916
8917 * term.c (create_tty_output) [MSDOS]: #ifdef away.
8918 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
8919
098a1589
CY
89202009-06-28 Chong Yidong <cyd@stupidchicken.com>
8921
485422be
CY
8922 * xdisp.c (start_display, handle_face_prop)
8923 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
8924 (redisplay_window, try_window_id, produce_image_glyph):
8925 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 8926
098a1589
CY
8927 * xterm.c (x_update_window_begin, x_new_focus_frame)
8928 (x_scroll_bar_handle_click, handle_one_xevent)
8929 (handle_one_xevent, XTread_socket, x_focus_on_frame)
8930 (x_make_frame_visible, x_make_frame_invisible)
8931 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
8932 code chunks that are now obsolete.
8933
78c38319
MA
89342009-06-28 Michael Albinus <michael.albinus@gmx.de>
8935
8936 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
8937 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
8938 for hours, when optimzation is enabled.
8939 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
8940 (xd_read_message): Make them static.
8941
4189ed40
CY
89422009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
8943
8944 * term.c (turn_on_face): Allow simultaneously bold and dim
8945 terminal faces (Bug#3530).
8946
cd9b5e16
CY
89472009-06-27 Chong Yidong <cyd@stupidchicken.com>
8948
4e23bedb
CY
8949 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
8950
cd9b5e16
CY
8951 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
8952 truncation glyphs (Bug#3686).
8953
07cc3c35
GM
89542009-06-27 Glenn Morris <rgm@gnu.org>
8955
8956 * m/pmax.h: Restore file, with only netbsd portions.
8957
31fd7c5c 89582009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 8959
cd9b5e16 8960 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 8961
42d4a64f
KH
89622009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
8963
8964 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
8965 the arg FORCE_SYMBOL.
8966
930fe55b 89672009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
8968
8969 * fontset.c (fontset_find_font): When a usable rfont_def is found
8970 in a fallback font-group, make it the first element of the group.
8971
57ebc3fd
CY
89722009-06-24 Chong Yidong <cyd@stupidchicken.com>
8973
8974 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
8975
f084f942
KH
89762009-06-24 Kenichi Handa <handa@m17n.org>
8977
8978 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
8979 set for C.
8980 (fontset_font): Record the availability of a font for C both in
8981 the realized fontsets of the current one and the default one.
8982
2f686c87
DN
89832009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
8984
8985 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
8986 conditional, it is always defined on AIX.
8987
666e158e
MB
89882009-06-23 Miles Bader <miles@gnu.org>
8989
8990 * window.c (Vrecenter_redisplay): New variable.
8991 (syms_of_window): Initialize it.
8992 (Qtty): New extern declaration.
8993 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
8994
c6da7cd2
JM
89952009-06-23 Jim Meyering <meyering@redhat.com>
8996
1ac9108a
SM
8997 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
8998 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 8999 pointer dereferences are guaranteed to be valid.
c6da7cd2 9000
678dca3d
KH
90012009-06-23 Kenichi Handa <handa@m17n.org>
9002
74d75424
KH
9003 * emacs.c (main): Call init_font ().
9004
9005 * font.h (Vfont_log): Extern it.
9006 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
9007
9008 * font.c (font_sort_entities, font_list_entities)
9009 (font_matching_entity, font_open_entity)
9010 (font_close_object): Change font_add_log to FONT_ADD_LOG.
9011 (Vfont_log): Delete static.
9012 (font_log_env_checked): Delete this variable.
9013 (font_add_log): Don't check font_log_env_checked.
9014 (font_deferred_log): Check Vfont_log.
9015 (init_font): New function.
9016
678dca3d
KH
9017 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
9018
9019 * w32font.c: Change font_add_log to FONT_ADD_LOG.
9020
9021 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
9022
9023 * xfont.c: Change font_add_log to FONT_ADD_LOG.
9024
9025 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
9026 (face_for_char): Don't call font_deferred_log here.
9027 (font_for_char): Likewise.
9028
8a668709
CY
90292009-06-22 Chong Yidong <cyd@stupidchicken.com>
9030
9a01ee33
CY
9031 * w32term.c (x_draw_glyph_string): Use the glyph string's width
9032 rather than its background_width for drawing the overline and
9033 underline (Bug#489).
9034
9035 * xterm.c (x_draw_glyph_string): Use the glyph string's width
9036 rather than its background_width for drawing the overline and
9037 underline (Bug#489).
ec7c9926
CY
9038 (xg_default_icon_file): New variable.
9039 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
9040 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 9041
8a668709
CY
9042 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
9043 (load_overlay_strings): Remove externs.
9044 (fast_find_position): Function deleted.
9045 (mouse_face_from_buffer_pos): New function, based on
9046 fast_find_position. Correctly handle before-strings,
9047 display-strings, and after-strings (Bug#1220).
9048 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
9049
4d4c02d8
CY
90502009-06-21 Chong Yidong <cyd@stupidchicken.com>
9051
1ac9108a 9052 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
9053 (move_it_in_display_line_to, move_it_in_display_line_to)
9054 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
9055
70243478
CY
90562009-06-21 Chong Yidong <cyd@stupidchicken.com>
9057
9058 * Branch for 23.1.
9059
13087e59
JR
90602009-06-21 Jason Rumney <jasonr@gnu.org>
9061
9062 * w32term.c (keyboard_codepage): New static variable.
9063 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
9064 (w32_read_socket) [WM_CHAR]: Use it to decode character
9065 input (bug#3237).
9066 (w32_initialize): Initialize it.
9067 (codepage_for_locale): New function.
9068
4735b74e
KR
90692009-06-20 Ken Raeburn <raeburn@raeburn.org>
9070
9071 * process.c (status_message): Pass Faset index argument as a lisp
9072 object, so as to work with USE_LISP_UNION_TYPE.
9073
0e727afa
YM
90742009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9075
9076 * coding.c (Ffind_coding_systems_region_internal):
9077 Cache checked characters.
9078
cf299835
KH
90792009-06-18 Kenichi Handa <handa@m17n.org>
9080
1ac9108a 9081 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 9082
90f20d94
AS
90832009-06-18 Andreas Schwab <aschwab@redhat.com>
9084
9085 * xdisp.c (redisplay_internal): Check that the frame is still
9086 live after redisplay of its windows.
9087 (redisplay_windows): Check that the window is still live.
9088
7f1faf1c
KH
90892009-06-17 Andreas Schwab <schwab@linux-m68k.org>
9090
9091 * coding.c (detect_coding_utf_16): Fix previous change.
9092
cc13543e
KH
90932009-06-16 Kenichi Handa <handa@m17n.org>
9094
9095 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
9096 UTF-16 by checking the dispersion of Eth and Oth bytes.
9097
977b85f4
AS
90982009-06-15 Andreas Schwab <schwab@linux-m68k.org>
9099
9100 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
9101
66bd43d1
KH
91022009-06-15 Kenichi Handa <handa@m17n.org>
9103
9104 * process.c (status_message): Fix previous change. Be sure to
9105 decode a localized string.
9106
cb5ca9c5
YM
91072009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9108
9109 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
9110 add comment explaining why.
9111
ec7709ba 91122009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 9113
ec7709ba 9114 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 9115
4b7f335c
AR
91162009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
9117
9118 * nsfont.m (ns_attribute_value): Remove.
9119 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
9120 (ns_has_attribute): Shrink the normal range.
9121 (ns_findfonts): Don't worry about requested spec in determining
9122 need for synthItal.
e41820ee 9123 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 9124
73b26103
SZ
91252009-06-14 Seiji Zenitani <zenitani@mac.com>
9126
9127 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
9128
5753e4da
KH
91292009-06-11 Kenichi Handa <handa@m17n.org>
9130
9131 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
9132 overhang for the static composition case.
9133
3561b671
KH
91342009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9135
5753e4da
KH
9136 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
9137 overhang for the automatic composition case.
9138
3561b671
KH
9139 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
9140 composition case.
9141
852bbd41
CY
91422009-06-10 Chong Yidong <cyd@stupidchicken.com>
9143
9144 * xdisp.c (get_next_display_element): When handling wrap-prefix
9145 and line-prefix, treat \n as a control character (bug#3502).
9146
9903d1e6
KH
91472009-06-10 Kenichi Handa <handa@m17n.org>
9148
9149 * font.c (font_parse_family_registry): Fix for one-char foundry.
9150 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
9151
0bcbaaaa
CY
91522009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
9153
9154 * process.c (status_message): Fix handling of multibyte signal
9155 string (Bug#3499).
9156
40aa3f13
JM
91572009-06-09 Jim Meyering <meyering@redhat.com>
9158
1f80c7e2
CY
9159 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
9160 color name is missing.
40aa3f13 9161
72d51285
KH
91622009-06-09 Kenichi Handa <handa@m17n.org>
9163
9164 * charset.c (Fmap_charset_chars): In docstring, state clearly that
9165 FROM-CODE and TO-CODE are codepoints of CHARSET.
9166
c1d04d84
AR
91672009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
9168
9169 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
9170
91712009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
9172
9173 Changes to support :script/:lang/:otf in NS font driver.
9174 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
9175 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
9176 indicate not part of font driver interface, and change callers.
9177 (ns_get_family): Remove pointless null check.
9178 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
9179 ns_spec_to_descriptor, ns_descriptor_to_entity.
9180 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
9181 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
9182 (ns_spec_to_descriptor, ns_descriptor_to_entity)
9183 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
9184 (ns_get_req_script, ns_accumulate_script_ranges)
9185 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
9186 New functions.
9187 (nsfont_list, nsfont_match): Use ns_findfonts.
9188 (nsfont_open): Use font descriptor instead of traits.
9189 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
9190 (dump_glyphstring): Rename to ns_dump_glyphstring.
9191
c7eb9816
AR
9192 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
9193
c1d04d84
AR
9194 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
9195
9196 * fontset.c (fontset_from_font): Remove NS-specific code.
9197
ec7709ba 91982009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
9199
9200 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
9201 nonactive windows.
9202
31fd7c5c 92032009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 9204
1ac9108a 9205 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 9206
68852c13 92072009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
9208
9209 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
9210
6756cd1d
CY
92112009-06-07 Chong Yidong <cyd@stupidchicken.com>
9212
9213 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
9214 account for the overflowing of newlines into the last glyph on the
9215 display line (Bug#3482).
9216
28bf482a
DR
92172009-06-05 David Reitter <david.reitter@gmail.com>
9218
ec7709ba
JB
9219 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
9220 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
9221 Fns_selection_exists_p, Fns_selection_owner_p.
9222
fdb55376
JR
92232009-06-03 Jason Rumney <jasonr@gnu.org>
9224
9225 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
9226 available. (Bug#3379)
9227
05129fbe
KH
92282009-05-29 Kenichi Handa <handa@m17n.org>
9229
1ac9108a
SM
9230 * coding.c (get_translation_table):
9231 Check Venable_character_translation.
05129fbe 9232
ec7709ba 92332009-05-26 David Reitter <david.reitter@gmail.com>
15891144 9234
ec7709ba
JB
9235 * nsterm.m (ns_raise_frame): Only raise frame if visible.
9236 (x_make_frame_visible): Move frame to front rather than calling
15891144 9237 ns_raise_frame().
ec7709ba 9238 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 9239 isn't key window.
ec7709ba 9240 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
9241 drawRect may be called by NSView even if the frame is hidden.
9242
ec7709ba
JB
9243 * nsfns.m (Fx_create_frame): Follow other ports in
9244 determining visibility; default to t. Ensure async_visible is set.
15891144 9245
21f73755
EZ
92462009-05-23 Eli Zaretskii <eliz@gnu.org>
9247
9248 * dired.c (Ffile_attributes): Doc fix.
9249
34001e41
CY
92502009-05-22 Chong Yidong <cyd@stupidchicken.com>
9251
9252 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
9253
46306a17
SM
92542009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
9255
9256 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
9257 and xfont_scratch_props.
9258 (syms_of_xfont): Do it here instead.
9259 (xfont_find_ccl_program): Delete, unused.
9260 (xfont_open): Delete unused var `i'.
9261
ef6e0694
KH
92622009-05-21 Kenichi Handa <handa@m17n.org>
9263
9264 * fontset.c (Qlatin): Don't make it static.
9265
46306a17
SM
9266 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
9267 New functions.
ef6e0694
KH
9268 (xfont_scripts_cache, xfont_scratch_props): New variables.
9269 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
9270 (xfont_list_pattern): Argument changed. Callers changed.
9271 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
9272 (xfont_list): Don't reject a font spec with :script property.
9273 (xfont_has_char): Fix setting of encoding.
9274 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
9275 xfont_scratch_props.
9276
92772009-05-19 Kenichi Handa <handa@m17n.org>
9278
46306a17 9279 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
9280 Callers changed.
9281
92822009-05-18 Kenichi Handa <handa@m17n.org>
9283
9284 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
9285
ac71ced7
SM
92862009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9287
9288 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
9289 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
9290
1c6d1051
YM
92912009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9292
9293 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
9294 (x_delete_terminal): Dissociate resource database from display and
9295 then call XrmDestroyDatabase before closing display.
9296
9b9b779c
AR
92972009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
9298
9299 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
9300 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
9301 whether selected frame is viable before raising it (based on patch
9302 by David Reitter), and improve commentary.
9303 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 9304
cccd42d5
KH
93052009-05-15 Kenichi Handa <handa@m17n.org>
9306
9307 * font.c (Ffont_spec): Check arguments.
9308
337fbd17
CY
93092009-05-14 Chong Yidong <cyd@stupidchicken.com>
9310
9311 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
9312 weight when testing attributes (Bug#3282).
9313
47a6002f
JD
93142009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9315
9316 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
9317 what we expect to get in the next ConfigureNotify event.
9318
9cb363db
YM
9319 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
9320 before Xft one (Bug#1696).
9321
b9126609
CY
93222009-05-07 David Reitter <david.reitter@gmail.com>
9323
9324 * nsfns.m (Fx_display_planes): Compute bitplanes using
9325 NSBitsPerPixelFromDepth (Bug#3207).
9326
27a69fd9
CY
93272009-05-10 Chong Yidong <cyd@stupidchicken.com>
9328
9329 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
9330
00f37552
TTN
93312009-05-10 Ulrich Mueller <ulm@gentoo.org>
9332
9333 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
9334
2d82a920
DR
93352009-05-07 David Reitter <david.reitter@gmail.com>
9336
ec7709ba
JB
9337 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
9338 Respect mouse face background.
2d82a920 9339
46b0d52d
DR
93402009-05-07 David Reitter <david.reitter@gmail.com>
9341
ec7709ba
JB
9342 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
9343 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
9344 in ns_update_begin and ns_update_end.
9345
ce1b23bb
SM
93462009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9347
5996e1b7
SM
9348 * nsfns.m (ns_get_screen): Rewrite.
9349 Don't presume selected-frame is of type `ns'.
9350
ba98e3a0
SM
9351 * font.c (font_update_drivers): Sanity fallback to avoid disabling
9352 all drivers.
9353
ce1b23bb
SM
9354 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
9355
bcda200f
YM
93562009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9357
9358 * keyboard.h (add_user_signal): Fix typo in extern.
9359
9360 * lisp.h (add_user_signal): Remove extern.
9361
9362 * unexelf.c (unexec): Consider a section to precede the .bss section
9363 if its addresses overlap that of .bss.
9364 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
9365 instead of dumping process.
9366
864660a2
SM
93672009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9368
9369 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
9370
50da4e56
SM
93712009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
9372
9373 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
9374
51520a1a
DN
93752009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
9376
9377 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
9378 any statements.
9379
409ea3a1
AS
93802009-05-02 Andreas Schwab <schwab@linux-m68k.org>
9381
59c4c60f
AS
9382 * process.c (read_process_output): Make sure the current buffer is
9383 always restored.
9384
409ea3a1
AS
9385 * coding.c (record_conversion_result): Don't modify
9386 Vlast_code_conversion_error for successful result.
9387 (alloc_destination): Don't clobber conversion result. (Bug#1650)
9388
56f00ed2
KH
93892009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9390
9391 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 9392 (load_charset_map): Remove unnecessary code.
56f00ed2 9393
4491c9d2
DR
93942009-04-30 David Reitter <david.reitter@gmail.com>
9395
35f5b128 9396 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
9397 through f24.
9398
6970f632
CY
93992009-04-30 Chong Yidong <cyd@stupidchicken.com>
9400
9401 * xfaces.c (face_at_buffer_position): New arg base_face_id.
9402
9403 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
9404 face_at_buffer_position.
9405 (face_before_or_after_it_pos, get_next_display_element)
9406 (note_mouse_highlight): Update face_at_buffer_position call.
9407
9408 * term.c (term_mouse_highlight):
9409 * msdos.c (IT_note_mouse_highlight):
9410 * fontset.c (Finternal_char_font):
35f5b128 9411 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
9412
9413 * dispextern.h (face_at_buffer_position): Update prototype.
9414
0c616f63
KH
94152009-04-30 Kenichi Handa <handa@m17n.org>
9416
35f5b128 9417 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 9418
ad3aaf33
AS
94192009-04-29 Andreas Schwab <schwab@linux-m68k.org>
9420
9421 * callproc.c (Fcall_process): Fix GC protection. Make sure
9422 current buffer is always restored.
9423
c3c963a0
YM
94242009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9425
9426 * atimer.c (init_atimer): Also clear stopped_atimers.
9427
9428 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
9429
7e3386cb
YM
9430 * process.c (create_process): Clean up merger residues of
9431 2008-07-17 change.
9432
91f68422
CY
94332009-04-29 Ulrich Mueller <ulm@gentoo.org>
9434
9435 * lread.c (Vread_circle): New variable.
9436 (read1): Disable recursive read if Vread_circle is nil.
9437
24b34550
KH
94382009-04-29 Kenichi Handa <handa@m17n.org>
9439
9440 * fontset.h (set_default_ascii_font): Delete extern.
9441
9442 * fontset.c (set_default_ascii_font): Delete this unused function.
9443
9444 * frame.c (x_set_font): When ARG is a font-object, check if the
9445 font-object matches with the ASCII font-spec of the frame's
9c358bda 9446 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 9447
77bf07e1
AS
94482009-04-28 Andreas Schwab <schwab@linux-m68k.org>
9449
9450 * fns.c (Flocale_info): Protect vector from GC during decoding.
9451
9452 * process.c (Fstart_process): Protect argv strings from GC during
9453 encoding.
9454
2c55aacf
AS
94552009-04-27 Andreas Schwab <schwab@linux-m68k.org>
9456
9457 * sysdep.c: Include <ctype.h>.
9458
b892d3c9
DR
94592009-04-27 David Reitter <david.reitter@gmail.com>
9460
35f5b128 9461 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
9462 Remove commented-out code.
9463
9d0644c4
JB
94642009-04-26 Johan Bockgård <bojohan@gnu.org>
9465
9466 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9467
b7053016
JR
94682009-04-25 Jason Rumney <jasonr@gnu.org>
9469
9470 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
9471
4e8231f3
YM
94722009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9473
9474 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
9475 Swap bytes in short integer if fringe bitmap width > 8.
9476
493dcf2c
KH
94772009-04-23 Kenichi Handa <handa@m17n.org>
9478
9479 * xfaces.c (Fx_list_fonts): If a font size is specified in
9480 PATTERN, set it in returned scalable fonts.
9481
401e9e57
CY
94822009-04-22 Chong Yidong <cyd@stupidchicken.com>
9483
708e05dc
CY
9484 * keyboard.c (Fset_input_meta_mode): Doc fix.
9485
9486 * dispnew.c (Fsend_string_to_terminal): Doc fix.
9487
1ac9108a 9488 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
9489
9490 * coding.c (Fterminal_coding_system): Doc fix.
9491
9492 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
9493 (Fx_display_pixel_height, Fx_display_planes)
9494 (Fx_display_color_cells, Fx_server_max_request_size)
9495 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9496 (Fx_display_mm_height, Fx_display_mm_width)
9497 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
9498 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
9499 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
9500 (check_x_display_info): Handle terminal objects instead of
9501 terminal ids.
9502
401e9e57
CY
9503 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
9504 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
9505 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
9506 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 9507
df80c7f0
KH
95082009-04-21 Kenichi Handa <handa@m17n.org>
9509
5a8f12af 9510 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 9511 (font_score): Check AVGWIDTH too.
908567ef 9512
df80c7f0
KH
9513 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
9514 worst case.
1ac9108a
SM
9515 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
9516 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 9517
705af33f
JR
95182009-04-19 Jason Rumney <jasonr@gnu.org>
9519
9520 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 9521 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
9522
9523 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
9524 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
9525 get_phys_cursor_geometry.
9526
b71ac3dd 9527 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
9528 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
9529 using get_phys_cursor_geometry.
9530
9531 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
9532 correctly calculated.
9533
dc2933eb
JD
95342009-04-19 Jan Djärv <jan.h.d@swipnet.se>
9535
1ac9108a
SM
9536 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
9537 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
9538 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
9539 is deprecated.
9540
973e7849
AS
95412009-04-18 Andreas Schwab <schwab@linux-m68k.org>
9542
9543 * font.c (font_put_frame_data): Use xfree instead of free.
9544
314d66f4
JB
95452009-04-17 Juanma Barranquero <lekktu@gmail.com>
9546
9547 * w32font.c (Qja, Qko): Remove declarations.
9548 (syms_of_w32font): Don't DEFSYM them.
9549
cf702558
CY
95502009-04-17 Chong Yidong <cyd@stupidchicken.com>
9551
9552 * font.c (Qja, Qko): Move definitions here from ftfont.c.
9553
9554 * font.h (Qja, Qko): Extern them.
9555
9556 * ftfont.c (Qja, Qko): Remove declarations.
9557
9558 * xfont.c (Qja, Qko): Remove declarations.
9559
b50504f5
KH
95602009-04-17 Kenichi Handa <handa@m17n.org>
9561
bde25748
KH
9562 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
9563 string from a vector to handle Latin-1 characters correctly.
9564
b50504f5
KH
9565 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
9566 entity even if the cache hits.
9567
f4646fff
AS
95682009-04-16 Andreas Schwab <schwab@linux-m68k.org>
9569
9570 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 9571 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 9572
e7deaab0
AS
9573 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
9574 * lisp.h: Adjust prototypes.
9575
0a0e7d49
CY
95762009-04-16 Chong Yidong <cyd@stupidchicken.com>
9577
9578 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
9579 change (Bug#3003).
9580
3c908a57
KH
95812009-04-16 Kenichi Handa <handa@m17n.org>
9582
1ac9108a 9583 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
9584
9585 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
9586 adstyle.
9587
9588 * ftfont.c (Qja, Qko): Don't make them static.
9589 (enum ftfont_cache_for): New enum.
9590 (fc_charset_table): Undo the previous change.
9591 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
9592 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
9593 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
9594 non-scarable font, try to get AVERAGE_WIDTH.
9595 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
9596 Change ft_face_cache from a list of a hash-table. Don't check
9597 `ja' and `ko' adstyle here.
9598 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
9599 FTFONT_CACHE_FOR_CHARET.
9600 (ftfont_get_charset): Undo the previous change.
1ac9108a 9601 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
9602 (ftfont_close): Likewise.
9603 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
9604
9605 * font.c (font_sort_entites): Change the meaning of the arg
9606 BEST-ONLY. Don't optimize for VEC of lenght 1.
9607 (font_select_entity): Just return the value of font_sort_entites.
9608
9609 * xfaces.c (merge_face_vectors): Reflect font properties in
9610 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
9611 font_clear_prop if a face attribute doesn't change.
9612
3c908a57
KH
9613 * charset.h (charset_ksc5601): Extern it.
9614
9615 * charset.c (charset_ksc5601): New variable.
9616 (Fdefine_charset_internal): Set charset_ksc5601.
9617 (init_charset_once): Initialize charset_ksc5601 to -1.
9618
d65859c3
DN
96192009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
9620
9621 * fileio.c (history_delete_duplicates): Remove unused declaration.
9622
9623 * callint.c (history_delete_duplicates): New declaration.
9624 (Fcall_interactively): Remove command history duplicates when
9625 history_delete_duplicates is true.
9626
3ba010e5
EZ
96272009-04-14 Eli Zaretskii <eliz@gnu.org>
9628
9629 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
9630
06f19b91
KH
96312009-04-14 Kenichi Handa <handa@m17n.org>
9632
9633 * font.c (Ffont_info): Fix docstring. Fix the second element of
9634 the returned value (bug#2949).
9635
2cce8bfc
CY
96362009-04-14 Chong Yidong <cyd@stupidchicken.com>
9637
9638 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
9639
d156542d
KH
96402009-04-14 Kenichi Handa <handa@m17n.org>
9641
9642 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
9643 encoding charset is ascii_compatible.
9644
9645 * charset.c (Fdefine_charset_internal): Make charset
9646 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
9647 code_offset is 0, and covers all ASCII characters.
9648
86fa089e
SM
96492009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
9650
9651 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
9652 (ns_string_to_pasteboard_internal):
9653 * nsmenu.m (process_dialog):
9654 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
9655 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
9656 * lisp.h (Fx_load_color_file): Declare.
9657
a8a3728b
KH
96582009-04-13 Kenichi Handa <handa@m17n.org>
9659
1ac9108a 9660 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
9661 (font_select_entity): Suppress the code to optimize for the same
9662 kind of fonts.
9663 (font_load_for_lface): Get a font that supports at least ASCII
9664 characters.
9665
9666 * ftfont.c (Qja, Qko): New variables.
9667 (fc_charset_table): Delete uniquifier data for iso8859-1.
9668 (ftfont_get_latin1_charset): New function.
9669 (get_adstyle_property): New function.
9670 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
9671 bitmap fonts.
9672 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
9673 Delete iso-8859-1 range from the charset of fonts whose adstyle is
9674 `ko' or `ja'.
9675 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 9676 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
9677 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
9678 property.
9679 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
9680 (syms_of_ftfont): DEFSYM Qja and Qko.
9681
483670b5
KH
96822009-04-09 Kenichi Handa <handa@m17n.org>
9683
12b55765
KH
9684 * charset.c (map_charset_chars): For a charset of `superset'
9685 method, fix calculation of code range.
9686
483670b5
KH
9687 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
9688 from the list of extra properties.
9689 (font_clear_prop): Be sure to delete `:name' font property.
9690
57d3b93b
KH
96912009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9692
b4b2c2ca
YM
9693 * dispnew.c (redraw_overlapping_rows): Fix detection of
9694 overlapping for topmost and bottommost rows.
9695
1ac9108a 9696 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 9697
472c3609
JR
96982009-04-06 Jason Rumney <jasonr@gnu.org>
9699
9700 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
9701
ab193662
KH
97022009-04-06 Kenichi Handa <handa@m17n.org>
9703
9704 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
9705
9706 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
9707
0c26f026
KH
97082009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9709
9710 * ftfont.c (ftfont_open): Fix checking of the return value of
9711 FT_Load_Char. Fix setting font->underline_thickness.
9712
e173bbce
CY
97132009-04-04 Chong Yidong <cyd@stupidchicken.com>
9714
9715 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
9716 (Fterminal_parameters, Fterminal_parameter)
9717 (Fset_terminal_parameter): In doc string, refer to terminal
9718 objects rather than terminal ids.
9719
693a2698
EZ
97202009-04-04 Eli Zaretskii <eliz@gnu.org>
9721
9722 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
9723 ret_lim_data. (Bug#2867)
9724
d5221487
CY
97252009-04-03 Chong Yidong <cyd@stupidchicken.com>
9726
9727 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
9728 so they don't get wider than the window, matching 2006-01-23
9729 change to the partner function in xdisp.c (Bug#2800).
9730
223509a3
KH
97312009-04-03 Kenichi Handa <handa@m17n.org>
9732
9733 * print.c (print_object): Make each lowest sub_char_table start a
9734 new line (Bug#2866).
9735
74fcd0b1
KH
97362009-04-02 Kenichi Handa <handa@m17n.org>
9737
9738 * fontset.c (fontset_font): Record no-font when a fontset
9739 explicitly tells not to try another font-specs.
9740
c542407d
SM
97412009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
9742
9743 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
9744
e3869731
KH
97452009-03-30 Kenichi Handa <handa@m17n.org>
9746
d8d2f142
KH
9747 * fontset.c (fontset_from_font): Specify only registry in a
9748 font-spec for all characters supported by that registry.
9749
e3869731
KH
9750 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
9751 even if HAVE_M17N_FLT is not defined.
9752
5da5f805
CY
97532009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
9754
9755 * ftfont.c: Conditionalize prototyping and use of
9756 ftfont_variation_glyphs.
9757
ab226c50
SM
97582009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
9759
9628fed7
SM
9760 * frame.c (delete_frame): Work around compiler bug.
9761
9762 * editfns.c (general_insert_function): Adjust to insdel.c changes.
9763 * insdel.c (prepare_to_modify_buffer, signal_before_change):
9764 Some more EMACS_INT.
9765 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
9766
9767 * xdisp.c (dump_glyph): Fix typo.
9768
ae19ba7c
SM
9769 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
9770 (adjust_markers_gap_motion, adjust_markers_for_delete)
9771 (adjust_markers_for_insert, adjust_point)
9772 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
9773 (make_gap, copy_text, count_size_as_multibyte, insert)
9774 (insert_and_inherit, insert_before_markers)
9775 (insert_before_markers_and_inherit, insert_1)
9776 (count_combining_before, count_combining_after, insert_1_both)
9777 (insert_from_string, insert_from_string_before_markers)
9778 (insert_from_string_1, insert_from_gap, insert_from_buffer)
9779 (insert_from_buffer_1, adjust_after_replace)
9780 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
9781 (replace_range_2, del_range, del_range_1, del_range_byte)
9782 (del_range_both, del_range_2, modify_region)
9783 (prepare_to_modify_buffer, signal_before_change)
9784 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
9785 for buffer positions and sizes.
9786 * lisp.h: Adjust prototypes accordingly.
9787
9788 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
9789 (non_regular_inserted, non_regular_nbytes, read_non_regular)
9790 (Finsert_file_contents): Use EMACS_INT for buffer positions.
9791
ab226c50
SM
9792 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
9793
46dfb8fb
JD
97942009-03-27 Jan Djärv <jan.h.d@swipnet.se>
9795
9796 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
9797 lines and columns so we keep the same pixel height and width.
9798
9799 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
9800 the property _NET_WM_STATE has changed.
46dfb8fb
JD
9801 (x_handle_net_wm_state): New function to update frame parameter
9802 fullscreen.
9803 (x_term_init): Initialize atoms for _NET_WM_STATE.
9804
9805 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
9806
d347e494
SM
98072009-03-27 Kevin Ryde <user42@zip.com.au>
9808
9809 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
9810 Gpm_GetEvent as an error that justifies closing the filedescriptor.
9811 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
9812 (Fgpm_mouse_stop): Pass that new parameter.
9813 * termhooks.h (close_gpm): Adjust prototype.
9814
84db11d6
SM
98152009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
9816
c95a5008
SM
9817 * lisp.h (Fx_focus_frame): Declare.
9818
84db11d6
SM
9819 * callint.c (Fcall_interactively): For '^' just delegate the work to
9820 handle-shift-selection.
9821 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
9822
0a1958d6
CY
98232009-03-24 Chong Yidong <cyd@stupidchicken.com>
9824
0bfdff23
CY
9825 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
9826
0a1958d6
CY
9827 * data.c (Qinteractive_form): New variable.
9828 (Finteractive_form): Use it.
9829
9830 * eval.c (Fcommandp): Use Qinteractive_form.
9831
58aec0d6
JR
98322009-03-24 Jason Rumney <jasonr@gnu.org>
9833
9834 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
9835 Calculate total size precisely. Decode environment variables
9836 before substituting. (Bug#38)
9837
553dd618
KH
98382009-03-24 Kenichi Handa <handa@m17n.org>
9839
9840 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 9841 encoding (Bug#2722).
553dd618 9842
c39ea606
JD
98432009-03-23 Jan Djärv <jan.h.d@swipnet.se>
9844
9845 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
9846 that gdpy is set.
9847
bc9b2b5e
AM
98482009-03-22 Alan Mackenzie <acm@muc.de>
9849
9850 * callint.c (Finteractive): Clarify the doc string - even
9851 promptless elements need \n separators.
9852
9f995a76
JR
98532009-03-22 Jason Rumney <jasonr@gnu.org>
9854
9855 * w32term.c (syms_of_w32term): Doc fix for
9856 x-use-underline-position-properties.
9857
22749e9a
EZ
98582009-03-21 Eli Zaretskii <eliz@gnu.org>
9859
9860 * w32.c (getpwuid): Change argument type to unsigned.
9861 (struct w32_id): Change type of `rid' member to unsigned.
9862 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
9863 argument ID to unsigned. All callers changed.
9864 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
9865
e00553bf
EZ
98662009-03-20 Eli Zaretskii <eliz@gnu.org>
9867
9868 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
9869 negative, produce a float value.
9870
9871 * dired.c (make_uid, make_gid): New functions.
9872 (Ffile_attributes): Use them to avoid negative UID and GID.
9873
f761d6b6
JB
98742009-03-20 Juanma Barranquero <lekktu@gmail.com>
9875
9876 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
9877 (syms_of_keyboard) <command-hook-internal, input-method-function>:
9878 Fix typos in docstrings.
9879
d507f8d7
KH
98802009-03-19 Kenichi Handa <handa@m17n.org>
9881
9882 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
9883 changed, use font_load_for_lface to get a new font object.
9884 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
9885
9886 * frame.c (x_set_font): Handle the case that ARG is a cons.
9887
c68845e0
GM
98882009-03-19 Glenn Morris <rgm@gnu.org>
9889
9890 * fileio.c (Fsubstitute_in_file_name): Doc fix.
9891
bfa49dd1
CY
98922009-03-19 Chong Yidong <cyd@stupidchicken.com>
9893
9894 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
9895
8458d4c1
KH
98962009-03-19 Kenichi Handa <handa@m17n.org>
9897
9898 * charset.c (load_charset_map_from_file): When a mapfile can't be
9899 loaded, signal an error.
9900
78e7d1fe
EZ
99012009-03-18 Eli Zaretskii <eliz@gnu.org>
9902
9903 * dired.c (Ffile_attributes): Make sure UID and GID are always
9904 positive, even if the value is too large for a positive EMACS_INT.
9905 Doc fix.
9906
9907 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
9908
5da9fdfa
YM
99092009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9910
9911 * xmenu.c (xdialog_show): Move Fredisplay call ...
9912 (Fx_popup_dialog): ... here.
9913
7519c40d
SM
99142009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
9915
9916 * dired.c (file_name_completion): Disable the first optimization just
9917 installed, since it is not implemented correctly.
9918
2cd298e2
SM
99192009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9920
9921 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 9922 only if the entry can affect bestmatch.
2cd298e2
SM
9923 Stop the search early, as Ftry_completion already does.
9924
48d37adf
CY
99252009-03-17 Chong Yidong <cyd@stupidchicken.com>
9926
e10c9c93 9927 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 9928
9286b16a
CY
99292009-03-15 Chong Yidong <cyd@stupidchicken.com>
9930
9931 * keyboard.c (parse_menu_item): Don't display remappings as menu
9932 equivalent bindings (Bug#788).
9933
f7b146dc
JR
99342009-03-15 Jason Rumney <jasonr@gnu.org>
9935
9936 * w32term.h (WM_EMACS_PAINT): New message.
9937 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
9938 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
9939 before passing to lisp thread. (Bug#950)
9940
f761d6b6 99412009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 9942
d93f9575
CY
9943 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
9944 variable as it was never reset.
9945 (ns_term_init): Remove initialization of Lisp-settable defaults
9946 and ns_expand_space.
9947 (-setPanelFromDefaultValues): Remove ns_expand_space.
9948 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
9949 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
9950 i.e. no additional spacing, similar to Carbon port.
9951
d93f9575
CY
9952 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
9953 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 9954
305018ec
JD
99552009-03-14 Jan Djärv <jan.h.d@swipnet.se>
9956
9957 * sound.c (alsa_configure): Remove call to deprecated
9958 snd_pcm_sw_params_set_xfer_align.
9959
f761d6b6 99602009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
9961
9962 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
9963 after clicking in a detached tool bar.
9964 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
9965
46e722a9
SM
99662009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
9967
348db3dd
SM
9968 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
9969 int/Lisp_Object mixup).
46e722a9 9970
a3d16f39
KH
99712009-03-13 Kenichi Handa <handa@m17n.org>
9972
9973 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 9974 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
9975 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
9976 (set_fontset_font): Change ARG to a vector. Handle range_list in
9977 ARG correctly.
9978 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 9979 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
9980 the above change.
9981 (fontset_from_font): Fix previous change.
fe24f56a 9982 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
9983 entry. If FONTSET is the default fontset, don't set the extra
9984 slot of the returning char-table.
9985
b066e6b6
JB
99862009-03-12 Juanma Barranquero <lekktu@gmail.com>
9987
9988 * nsfns.m (Fx_close_connection): Doc fix.
9989 (Fns_do_applescript): Reflow docstring.
9990 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
9991 (Fx_display_pixel_width, Fx_display_pixel_height)
9992 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
9993 Fix typos in docstrings.
9994 (Fns_set_alpha): Fix typos in error messages.
9995
d472514e 99962009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 9997
d472514e 9998 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
9999 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
10000 were used for such events.
10001
d472514e
JB
10002 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
10003 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 10004
d472514e 10005 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
10006 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
10007
fb930676
KH
100082009-03-11 Kenichi Handa <handa@m17n.org>
10009
ff85581a
KH
10010 * font.h (font_open_by_spec): Extern it.
10011
c50b7e98
KH
10012 * font.c (font_open_by_spec): New function.
10013 (font_open_by_name): Use font_open_by_spec.
10014
fb930676
KH
10015 * frame.c (x_set_font): When ARG is a font-object, don't alter the
10016 fontset of the frame.
10017
10018 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
10019 modify the default font of frames that use this fontset.
10020 (num_auto_fontsets): New variable.
10021 (fontset_from_font): Use num_auto_fontsets to decide a fontset
10022 name. Be sure to set FONTSET_ASCII to the correct font name.
10023 (update_auto_fontset_alist): New function.
10024
df4e8455
JB
100252009-03-11 Juanma Barranquero <lekktu@gmail.com>
10026
10027 * makefile.w32-in: Update dependencies.
10028
0a375797
AR
100292009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10030
10031 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
10032
61313fa3
SM
100332009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10034
10035 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
10036
b55103fb
CY
100372009-03-10 Chong Yidong <cyd@stupidchicken.com>
10038
10039 * lread.c (Feval_buffer): Doc fix.
10040
dde2559c
KH
100412009-03-09 Kenichi Handa <handa@m17n.org>
10042
10043 * charset.c (Qfile_name_handler_alist): Extern it.
10044 (load_charset_map_from_file): Temporarily bind
10045 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
10046
df4e8455 100472009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 10048
47f588bb
GM
10049 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
10050 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 10051
4ddf94bd
AR
100522009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10053
4c9bdfc2
AR
10054 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
10055 (x_set_window_size): Change back to calculated method of setting
10056 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
10057 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
10058 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
10059
fe41ae9e
AR
10060 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
10061
4c9bdfc2
AR
10062 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
10063 accelerator in parens under GNUstep.
10064
825d0875
KH
100652009-03-06 Kenichi Handa <handa@m17n.org>
10066
10067 These changes are to detect incorrect composition sequence without
f3b3be74 10068 looking ahead the source. (Bug#2370)
825d0875
KH
10069
10070 * coding.h: Include "composite.h".
10071 (enum compisition_state): New enum.
10072 (struct compisition_status): New struct.
10073 (struct iso_2022_spec): New member cmp_status.
10074 (struct emacs_mule_spec): New struct.
10075 (struct coding_system): New members ctext_extended_segment_len and
10076 embedded_utf_8. Change the union member
10077 spec.emacs_mule_full_support to spec.emacs_mule.
10078
10079 * coding.c (CODING_ISO_CMP_STATUS): New macro.
10080 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 10081 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
10082 (ADD_COMPOSITION_DATA): New arg nbytes.
10083 (emacs_mule_char): New arg cmp_status.
10084 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
10085 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
10086 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
10087 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
10088 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
10089 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
10090 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
10091 (EMACS_MULE_COMPOSITION_END): New macro.
10092 (emacs_mule_finish_composition): New function.
10093 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
10094 (decode_coding_emacs_mule): Avoid long looking ahead while
10095 handling composition.
10096 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
10097 (ENCODE_COMPOSITION_RULE): New macro.
10098 (finish_composition): New function.
10099 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
10100 (DECODE_COMPOSITION_START): New implementation.
10101 (DECODE_COMPOSITION_END): Likewise.
10102 (STORE_COMPOSITION_RULE): New macro.
10103 (decode_coding_iso_2022): Avoid long looking ahead while handling
10104 composition, CTEXT extended segment, and embedded UTF-8.
10105 (setup_coding_system): For a coding of type iso-2022, reset
10106 CODING_ISO_EXTSEGMENT_LEN (coding) and
10107 CODING_ISO_EMBEDDED_UTF_8 (coding).
10108 (get_translation): Delete arguments last_block, from_nchars,
10109 to_nchars. Callers changed.
10110 (produce_chars): Don't modify charbuf. Adjusted for the change of
10111 get_translation.
98a326f7 10112 (produce_composition): Adjust for the new annotation sequence.
825d0875 10113 (handle_composition_annotation): Likewise.
98a326f7 10114 (consume_chars): Adjust for the change of get_translation.
825d0875 10115
ccbc4452
AR
101162009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
10117
4ddf94bd 10118 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 10119
988a7ddb
KH
101202009-03-05 Kenichi Handa <handa@m17n.org>
10121
10122 * font.c (font_select_entity): New function.
10123 (font_find_for_lface): Use font_select_entity to select a font.
10124
10125 * fontset.c (fontset_find_font): If a font found without
a8a3728b 10126 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
10127 font with C restriction.
10128
98a326f7 101292009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 10130
be1bce46 10131 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 10132
10ea2b82
JR
101332009-03-04 Jason Rumney <jasonr@gnu.org>
10134
2c93b248 10135 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 10136 characters that have already been read. (Bug#2569)
2c93b248 10137
10ea2b82
JR
10138 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
10139 Log an error message if check_image_size failed.
10140 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 10141 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 10142
71a0c011
EZ
101432009-03-02 Eli Zaretskii <eliz@gnu.org>
10144
10145 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
10146 when decoding process output.
10147
2f63bba8
RS
101482009-03-01 Richard M Stallman <rms@gnu.org>
10149
10150 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
10151
10152 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
10153
0a9564cb
EZ
101542009-02-28 Eli Zaretskii <eliz@gnu.org>
10155
10156 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
10157 (decode_coding_emacs_mule, decode_coding_iso_2022)
10158 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10159 (decode_coding_raw_text, decode_coding_charset)
10160 (setup_coding_system, decode_eol, decode_coding, consume_chars):
10161 Honor inhibit-eol-conversion. (Bug #2186)
10162
449148b3
JR
101632009-02-28 Jason Rumney <jasonr@gnu.org>
10164
10165 * coding.c (detect_coding_charset): If not checking latin extra,
10166 fail on characters between 0x80 and 0xA0. (Bug#2354)
10167
a4aee864
EZ
101682009-02-28 Eli Zaretskii <eliz@gnu.org>
10169
10170 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 10171 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 10172
d88bee5a
GM
101732009-02-27 Glenn Morris <rgm@gnu.org>
10174
10175 * callint.c (Finteractive): Doc fix.
10176
a808f22d
KH
101772009-02-27 Kenichi Handa <handa@m17n.org>
10178
10179 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
10180
caf8d60c
CY
101812009-02-27 Chong Yidong <cyd@stupidchicken.com>
10182
10183 * font.c (font_style_to_value): Set value for unknown symbols to
10184 100 instead of 255.
b61137ea
CY
10185 (weight_table, slant_table, width_table): Treat "unspecified" as
10186 the default value.
caf8d60c 10187
1a0de25c
JB
101882009-02-26 Juanma Barranquero <lekktu@gmail.com>
10189
10190 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
10191
8fc45744
JB
101922009-02-25 Juanma Barranquero <lekktu@gmail.com>
10193
107bd7d1
JB
10194 * lread.c (Fload): Stop checking Vloads_in_progress and signal
10195 error as soon as a recursive load is detected.
8fc45744 10196
f097e223
AR
101972009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10198
10199 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
10200 before caching.
10201
8810a12f
KH
102022009-02-24 Kenichi Handa <handa@m17n.org>
10203
10204 * fontset.c (fontset_find_font): Fix the condition for checking
10205 unavailable font.
10206
2c7d1565
GM
102072009-02-24 Glenn Morris <rgm@gnu.org>
10208
10209 * xfaces.c (Finternal_set_font_selection_order): Remove leading
10210 whitespace that confuses documentation.
10211
a20878b6
MB
102122009-02-23 Miles Bader <miles@gnu.org>
10213
10214 * process.c (Flist_system_processes, Fprocess_attributes)
10215 (syms_of_process): Rename `system-process-attributes' to
10216 `process-attributes'.
10217
b3b58c01
AS
102182009-02-22 Andreas Schwab <schwab@linux-m68k.org>
10219
1b3b981b
AS
10220 * coding.h (struct coding_system): Make safe_charsets a pointer to
10221 unsigned char.
10222 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
10223 being 255.
10224 (SAFE_CHARSET_P): Likewise.
10225 (setup_iso_safe_charsets): Properly setup safe_charsets.
10226 (Fdefine_coding_system_internal): Likewise.
10227 (setup_coding_system): Likewise. Remove unneeded casts.
10228 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
10229 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
10230 unneeded casts.
10231
b3b58c01
AS
10232 * insdel.c (del_range_2): Don't modify gap contents when called
10233 from decode_coding_object. (Bug#1809)
10234
0b6f228c
CY
102352009-02-21 Chong Yidong <cyd@stupidchicken.com>
10236
10237 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
10238 Qfont_object.
10239 (Ftype_of): Recognize font objects.
10240
10241 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
10242
10243 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
10244 moved to data.c.
10245
52f8870b
AR
102462009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10247
10248 * nsterm.m (x_make_frame_invisible): Unset async_visible,
10249 async_iconified. Based on a patch by Christian Lynbech
10250 <christian.lynbech@tieto.com>.
10251 (EmacsView-windowDidMiniaturize:): Unset async_visible.
10252
7087d5e9
GM
102532009-02-20 Glenn Morris <rgm@gnu.org>
10254
10255 * syntax.c (Fskip_chars_forward): Fix doc typo.
10256
41d2ceef
CY
102572009-02-20 Chong Yidong <cyd@stupidchicken.com>
10258
10259 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
10260
1a3b7ca6
CY
102612009-02-19 Chong Yidong <cyd@stupidchicken.com>
10262
10263 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
10264
73cce38d
KH
102652009-02-19 Kenichi Handa <handa@m17n.org>
10266
10267 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 10268 Don't overflow coding->carryover. (Bug#2370)
73cce38d 10269
a51092ee
DN
102702009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
10271
10272 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
10273
c423ecca
KH
102742009-02-18 Kenichi Handa <handa@m17n.org>
10275
10276 * font.c (font_check_otf_features): Fix handling of `nil' element.
10277 (Ffont_spec): Describe :lang and :otf in the docstring.
10278
4c1958f4
AS
102792009-02-16 Andreas Schwab <schwab@suse.de>
10280
10281 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
10282 string.
10283
5704f39a
KH
102842009-02-16 Kenichi Handa <handa@m17n.org>
10285
10286 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 10287 (Bug#1723)
5704f39a 10288
8f0085aa
CY
102892009-02-14 Chong Yidong <cyd@stupidchicken.com>
10290
a057d86a 10291 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
10292
10293 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
10294 (handle_line_prefix): Suppress wrapping of wrap prefixes.
10295
aff01dd9
EZ
102962009-02-14 Eli Zaretskii <eliz@gnu.org>
10297
10298 * msdos.c (MAX_SCREEN_BUF): New macro.
10299 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
10300 Encode the entire run of glyphs sharing the same face, instead of
10301 doing that one glyph at a time (fixes a bug with displaying
10302 double-size characters).
10303
ba301db3
AR
103042009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
10305
10306 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
10307
10308 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
10309 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 10310 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
10311
10312 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 10313 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 10314
51d861de
SM
103152009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
10316
ac146f82 10317 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
10318 invisible areas.
10319
7fed8996
JR
103202009-02-12 Jason Rumney <jasonr@gnu.org>
10321
631ea4fb
JR
10322 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
10323 (add_font_entity_to_list): Call check_face_name even when family
10324 is unspecified.
10325
cb4a3e42
JR
10326 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10327 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 10328 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 10329
7fed8996 10330 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 10331 raster fonts. (Bug#2219)
7fed8996 10332
895416e3
KH
103332009-02-12 Kenichi Handa <handa@m17n.org>
10334
10335 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
10336 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
10337 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 10338 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
10339 (find_automatic_composition): While looking forward and backward,
10340 check static composition. Fix where to stop looking forward.
10341 (composition_adjust_point): Fix checking of static composition.
10342 (Fcomposition_get_gstring): Pay attention to
1dacf998 10343 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
10344
10345 * lisp.h (fast_looking_at): Extern it.
10346
10347 * search.c (fast_looking_at): New function.
10348
51d861de 10349 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
10350 <struct glyph>.u.cmp.to.
10351 (append_composite_glyph): Likewise.
10352
51d861de 10353 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
10354 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
10355 composition.
51d861de 10356 (append_composite_glyph): Adjust for the change of
895416e3
KH
10357 <strcut glyph>.u.cmp.to.
10358
8510724d
JB
103592009-02-11 Juanma Barranquero <lekktu@gmail.com>
10360
10361 * casetab.c (init_casetab_once):
10362 * coding.c (ALLOC_CONVERSION_WORK_AREA):
10363 * font.c (font_update_lface):
10364 * fontset.c (Fnew_fontset):
10365 * ftfont.c (ftfont_drive_otf):
10366 * xfont.c (xfont_open):
10367 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
10368
294fa707
SM
103692009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
10370
10371 * fileio.c (Fwrite_region): !NILP -> CONSP.
10372
b5bfebec
AS
103732009-02-10 Andreas Schwab <schwab@suse.de>
10374
10375 * process.c (send_process): Properly relocate pointer into data
adab88bd 10376 when using encoded data. (Bug#2272)
b5bfebec 10377
cb84a2be
KH
103782009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
10379
10380 * coding.c (detect_coding_charset): Fix previous change.
10381
89e09428
JR
103822009-02-08 Jason Rumney <jasonr@gnu.org>
10383
10384 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 10385 disappeared while hourglass was displayed. (Bug #2193)
89e09428 10386
4470a277
AS
103872009-02-07 Andreas Schwab <schwab@suse.de>
10388
10389 * unexelf.c (unexec): Fix error message.
10390
3175b12a
AR
103912009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
10392
10393 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 10394 when modal window is active. (Bug #2152)
3175b12a
AR
10395 (applicationShouldTerminate:): Remove now-unneeded while loop
10396 around NSRunAlertPanel.
10397
10398 * nsmenu.m (popupSession): New file-global variable.
10399 (pop_down_menu): End the popupSession before closing dialog.
10400 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
10401 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
10402 don't query NSApp for events (just sleep instead).
10403
8434d0b8
EZ
104042009-02-07 Eli Zaretskii <eliz@gnu.org>
10405
51d861de
SM
10406 * coding.c (syms_of_coding) <translation-table-for-input>:
10407 Modify doc string to discourage use for character code unification.
8434d0b8 10408
aa82edfd
CY
104092009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10410
10411 * atimer.c (run_timers): Update pending_atimers.
10412
2d283c7c
CY
104132009-02-06 Chong Yidong <cyd@stupidchicken.com>
10414
eb306cab
CY
10415 * image.c (svg_load_image): Fix last change.
10416
2d283c7c
CY
10417 * xfns.c (Fx_create_frame): Signal an error if no font is
10418 found (Bug#2147).
10419
4d8e170e
JB
104202009-02-05 Juanma Barranquero <lekktu@gmail.com>
10421
10422 * character.c (syms_of_character) <script-representative-chars>:
10423 Fix typo in docstring.
10424
c96169a0
AR
104252009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10426
10427 * nsmenu.m (pop_down_menu): New function.
10428 (ns_popup_dialog): Call it on unwind.
10429 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
10430 call timer_check() (Bug#2154).
10431 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
10432 handling_signal is set.
10433 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
10434
31fd7c5c 10435 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
10436
10437 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
10438
10439 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
10440
51d861de
SM
10441 * keyboard.c (poll_for_input_1, handle_async_input):
10442 Set handling_signal under HAVE_NS.
c96169a0 10443
aacd8ba1
GM
104442009-02-04 Glenn Morris <rgm@gnu.org>
10445
10446 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
10447
4cb75c4b
KH
104482009-02-04 Kenichi Handa <handa@m17n.org>
10449
10450 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
10451
10452 * charset.c (Fchar_charset): New optional arg restriction.
10453
10454 * coding.h (coding_system_charset_list): Extern it.
10455
10456 * coding.c (coding_system_charset_list): New function.
10457
10458 * composite.c: Include coding.h and termhooks.h.
10459 (composition_gstring_p): Fix for the terminal case.
10460 (composition_gstring_width): Likewise.
10461 (fill_gstring_body): Likewise.
10462 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
10463 the frame.
10464 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
10465 is within a composition.
867d4bb3 10466 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
10467
10468 * term.c (encode_terminal_code): Fix handling of composition.
10469 (produce_composite_glyph): For static composition, get pixel_width
10470 from struct composition.
10471
826ba17e
AS
104722009-02-02 Andreas Schwab <schwab@suse.de>
10473
10474 * unexelf.c (unexec): Handle unaligned bss offset.
10475
8ad093db
AR
104762009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10477
10478 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
10479 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 10480
8ad093db
AR
10481 * keyboard.c (handle_interrupt): Don't call
10482 quit_throw_to_read_char() under NS.
d0a76a6e 10483
8ad093db
AR
10484 * blockinput.h: Remove NS-specific code.
10485
4d18a7a2
DN
104862009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
10487
db878925
DN
10488 * dispnew.c (window_change_signal): Don't try to get the size of a
10489 suspended tty frame.
10490 * term.c (Fresume_tty): Resize if the size has changed while the
10491 tty was suspended.
10492
4d18a7a2
DN
10493 * alloc.c (mark_stack): Properly conditionalize previous change.
10494
8984df7c
JB
104952009-01-30 Juanma Barranquero <lekktu@gmail.com>
10496
10497 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
10498 * w32term.c (w32_read_socket) [SYNC_INPUT]:
10499 Remove; this code is not used on Windows.
10500
75f4f1ac
EZ
105012009-01-30 Eli Zaretskii <eliz@gnu.org>
10502
10503 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
10504 EOLs that also has stray ^M characters.
10505
07a1e794
JB
105062009-01-30 Juanma Barranquero <lekktu@gmail.com>
10507
10508 * atimer.c (run_timers, alarm_signal_handler):
10509 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
10510 * w32inevt.c (w32_console_read_socket):
10511 * w32term.c (w32_read_socket):
10512 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
10513
a8b11cc9
CY
105142009-01-30 Chong Yidong <cyd@stupidchicken.com>
10515
10516 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
10517 Initialize it as a relative filename pattern.
10518 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
10519 (Fcall_process_region): Simplify temp file creation using
10520 temporary-file-directory.
10521
c279587b
EZ
105222009-01-29 Eli Zaretskii <eliz@gnu.org>
10523
10524 * msdos.c: Rename pending_signals to msdos_pending_signals.
10525 (sig_suspender, sigprocmask): Adjust.
10526
a8fe3242
CY
105272009-01-29 Chong Yidong <cyd@stupidchicken.com>
10528
10529 * keyboard.c (pending_signals): New var.
10530 (poll_for_input, input_available_signal, init_keyboard): Set it.
10531 (process_pending_signals): New function.
10532
10533 * lisp.h (QUIT): Check pending_signals instead of
10534 interrupt_input_pending. Use process_pending_signals.
10535
51d861de 10536 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 10537
51d861de 10538 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
10539
10540 * sysdep.c (emacs_write): Use process_pending_signals.
10541
10542 * xterm.c (XTread_socket): Update pending_signals.
10543
10544 * w32term.c (w32_read_socket): Update pending_signals.
10545
10546 * w32inevt.c (w32_console_read_socket): Update pending_signals.
10547
6570a1c4
KH
105482009-01-29 Kenichi Handa <handa@m17n.org>
10549
10550 * xftfont.c (xftfont_has_char): New function.
10551 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
10552
d72a4afa
AR
105532009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10554
10555 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
10556 under GNUstep.
10557 (ns_query_color): New declaration.
10558
10559 * nsterm.m (ns_confirm_quit): New variable.
10560 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
10561 (EmacsApp-applicationShouldTerminate:): Use it.
10562 (EmacsPrefsController): Let user set it.
10563 (ns_query_color): New function.
10564 (ns_defined_color): Use it.
10565 (ns_initialize): Drop.
10566 (ns_term_init): Add two lines from ns_initialize(), and set
10567 input_interrupt_mode to nil.
10568
10569 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 10570 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 10571
9fe78804
KH
105722009-01-28 Kenichi Handa <handa@m17n.org>
10573
10574 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
10575 (fontset_get_font_group): Remember that no font-group is specified
10576 for C.
9fe78804 10577
fa57de36
CY
105782009-01-27 Chong Yidong <cyd@stupidchicken.com>
10579
930600e9
CY
10580 * fns.c (concat): Check for string overflow (bug#1787).
10581
fa57de36
CY
10582 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
10583 Quadruple undo limits (bug#1501).
10584
7179ce7b
KH
105852009-01-27 Kenichi Handa <handa@m17n.org>
10586
10587 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
10588 directly use GT_Get_Char_index.
10589
10590 * xftfont.c (struct xftfont_info): New member `index'.
10591
10592 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 10593 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 10594
5be8fcc0
CY
105952009-01-26 Kenichi Handa <handa@m17n.org>
10596
10597 * fontset.c (fontset_find_font): Fix handling of non-cons return
10598 value of fontset_get_font_group.
10599 (fontset_font): Revert last change.
10600
19ae3e61
JR
106012009-01-26 Jason Rumney <jasonr@gnu.org>
10602
10603 * w32font.c (w32font_list_internal): Return quickly if registry is
10604 unknown. Simplify final return.
10605 (add_font_entity_to_list): Break complex logic down into more
10606 manageable chunks. Move unknown registry check to
10607 w32font_list_internal.
10608
8612b71a
AR
106092009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
10610
10611 Changes to remove Feval calls from GUI under NS.
10612
d8038940
JB
10613 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
10614 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
10615 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
10616
10617 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
10618 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
10619 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
10620 instead of NON_ASCII_KEYSTROKE_EVENT.
10621 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
10622 (EmacsApp-applicationShouldTerminate:): Query user.
10623 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
10624 instead of Feval.
10625
10626 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
10627
10628 * keyboard.c (kbd_buffer_get_event): Check for it.
10629 (keys_of_keyboard): Define lispy keys for
10630 ns-put/unput-working-text.
10631
10632 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
10633 versions.
10634 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
10635
6288ae55
CY
106362009-01-25 Chong Yidong <cyd@stupidchicken.com>
10637
10638 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 10639 setting current_buffer directly. (Bug#2044)
6288ae55 10640
289e7f8f
CY
106412009-01-24 Chong Yidong <cyd@stupidchicken.com>
10642
5ce87308 10643 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 10644 any work. (Bug#1952, bug#1990).
5ce87308 10645
64cc3cf6 10646 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 10647
b3243e6f
AR
106482009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10649
10650 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
10651 (ns_no_defaults): New declaration.
10652 (main): Use it.
e0d2e69a 10653
d900b2af 10654 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 10655
d900b2af 10656 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 10657
d900b2af
AR
10658 * nsterm.m (ns_no_defaults): New variable.
10659 (ns_initialize): Don't read defaults when ns_no_defaults.
10660 (EmacsView-readSelectionFromPasteboard:)
10661 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 10662 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
10663 (ns_dumpglyphs_stretch): New function.
10664 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 10665 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 10666
e0d2e69a
AR
10667 * nsimage.m (setPixmapData:): Set to ignore image DPI.
10668
3ac71f5d
CY
106692009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
10670
10671 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
10672 call for Sparc64.
10673
3fe53a83
AR
106742009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10675
10676 * nsfns.m:
10677 * nsgui.h:
10678 * nsmenu.m:
10679 * nsselect.m:
10680 * nsterm.h:
10681 * nsterm.m: Remove '23' comments that indicated code added during
10682 update from emacs-20 -> emacs-23.
10683
10f87c6f 106842009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
10685
10686 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 10687 ns_alternate_modifier. (Bug#1217)
a3b53a85 10688
c7cef62d
AR
10689 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
10690 Display all shortcuts, including those w/o super modifier.
10691
575fb8bd
AR
10692 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
10693
918b848b
CY
106942009-01-22 Chong Yidong <cyd@stupidchicken.com>
10695
10696 * fileio.c (Vwrite_region_post_annotation_function)
10697 (Vwrite_region_annotation_buffers): New vars.
10698 (build_annotations_unwind): Just reset
10699 Vwrite_region_annotation_buffers.
10700 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
10701 Call write-region-post-annotation-function.
10702 (build_annotations): Add to Vwrite_region_annotation_buffers if
10703 buffer changes.
10704
a39e2539
AR
107052009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10706
10707 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
10708 Tiger.
51d861de
SM
10709 * nsfns.m (ns_do_applescript):
10710 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 10711
35ed44db
AR
107122009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
10713
10714 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
10715
cbe0b5bf
AR
107162009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10717
10718 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 10719
6049d3a0
AR
10720 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
10721
10722 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
10723 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
10724 handle Ctrl-tab. (Bug#1841)
10725 (ns_get_color): Use unsigned long long for scanned hex string value.
10726 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 10727 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 10728 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 10729 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 10730 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 10731 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 10732 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 10733
d3810c21 10734 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 10735 DPI. (Bug#1316)
d3810c21
AR
10736 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
10737 values in onTiger section.
4c7077c3 10738
e301e634
CY
107392009-01-19 Chong Yidong <cyd@stupidchicken.com>
10740
7f82490b
CY
10741 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
10742 Check return value of font_spec_from_name.
64cc3cf6 10743 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
10744
10745 * font.c (font_spec_from_name): Return Qnil if font name could not
10746 be parsed.
10747 (font_parse_name): Treat a `?' character as part of an XLFD.
10748
e301e634
CY
10749 * fns.c (Fsubstring): Doc fix.
10750
1c0db158
KH
107512009-01-19 Kenichi Handa <handa@m17n.org>
10752
51d861de 10753 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
10754 (ftfont_list): Likewise.
10755
acf20901
JB
107562009-01-18 Juanma Barranquero <lekktu@gmail.com>
10757
fff4e459
JB
10758 * dbusbind.c (Fdbus_register_signal):
10759 * process.c (conv_sockaddr_to_lisp):
10760 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
10761
acf20901
JB
10762 * callproc.c (Fgetenv_internal): Doc fix.
10763
e7abcdfb
CY
107642009-01-16 Chong Yidong <cyd@stupidchicken.com>
10765
10766 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
10767 it is not even used.
10768
b60861e6
GM
107692009-01-16 Glenn Morris <rgm@gnu.org>
10770
10771 * font.c (Ffont_variation_glyphs): Silence compiler.
10772
8db52afe
JB
107732009-01-15 Juanma Barranquero <lekktu@gmail.com>
10774
10775 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
10776 Reported by David Robinow <drobinow@gmail.com>.
10777
4cddb209
KH
107782009-01-15 Kenichi Handa <handa@m17n.org>
10779
51d861de 10780 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 10781
f247f67b
JR
107822009-01-14 Jason Rumney <jasonr@gnu.org>
10783
10784 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 10785 never a fontset. (Bug#1562)
f247f67b 10786
f56a4450
KH
107872009-01-14 Kenichi Handa <handa@m17n.org>
10788
10789 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 10790 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 10791
4e99855e
CY
107922009-01-13 Chong Yidong <cyd@stupidchicken.com>
10793
10794 * font.c (font_clear_prop): If clearing the family, clear the font
10795 width index too.
10796
fff4e459 10797 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 10798
24f01470
JB
107992009-01-12 Juanma Barranquero <lekktu@gmail.com>
10800
10801 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
10802 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
10803 functions, use sizeof.
10804
a41240a3
MR
108052009-01-12 Martin Rudalics <rudalics@gmx.at>
10806
10807 * keyboard.c (read_char): Fix case where last_nonmenu_event
10808 returned a bad value with submenus. (Bug#447)
10809
944636b8
CY
108102009-01-12 Chong Yidong <cyd@stupidchicken.com>
10811
10812 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
10813 family, clear the font width index too.
10814
0dad7c6f
JR
108152009-01-11 Jason Rumney <jasonr@gnu.org>
10816
10817 * keyboard.c (cmd_error_internal): Exit when errors occur before
10818 frame creation and not in daemon mode. (Bug#1836)
10819
7c2363af
CY
108202009-01-10 Chong Yidong <cyd@stupidchicken.com>
10821
10822 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
10823 of a display vector, backtrack.
10824 (try_window_reusing_current_matrix): Check glyph type before
10825 referencing charpos member.
10826
97b1b294
EZ
108272009-01-10 Eli Zaretskii <eliz@gnu.org>
10828
10829 Fix Bug #876:
10830
10831 * coding.c (inhibit_null_byte_detection): New variable.
10832 (detect_coding, detect_coding_system): Don't pay attention to null
10833 bytes if inhibit_null_byte_detection is non-zero.
51d861de 10834 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
10835 <inhibit-iso-escape-detection>: Doc fix.
10836
4624b6e3
JR
108372009-01-09 Jason Rumney <jasonr@gnu.org>
10838
10839 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 10840 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
10841 Only report Unicode Plane 2 fonts as unicode-sip.
10842
323b840c
CY
108432009-01-09 Chong Yidong <cyd@stupidchicken.com>
10844
51d861de
SM
10845 * xfaces.c (Fx_font_family_list): Delete function.
10846 Move compatibility version to faces.el.
323b840c 10847
51d861de 10848 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 10849
eba7400d
MR
108502009-01-09 Martin Rudalics <rudalics@gmx.at>
10851
10852 * frame.c (x_set_frame_parameters): Remember requested value for
10853 fullscreen before it's reset by the parameter handler.
10854
4b09796d
GM
108552009-01-09 Glenn Morris <rgm@gnu.org>
10856
10857 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 10858 (last_command_event): ... and update all users.
4b09796d
GM
10859 (last_input_char): For clarity, rename to...
10860 (last_input_event): ... and update all users.
10861 (last-command-char, last-input-char): Move to subr.el as aliases.
10862 * cmds.c, commands.h: Update for last_command_char rename.
10863
14ccea62
CY
108642009-01-08 Chong Yidong <cyd@stupidchicken.com>
10865
51d861de 10866 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 10867
5f004711
JR
108682009-01-08 Jason Rumney <jasonr@gnu.org>
10869
10870 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
10871 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
10872 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
10873 Don't declare.
fff4e459 10874 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
10875 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
10876
b71f6f73
KH
108772009-01-07 Kenichi Handa <handa@m17n.org>
10878
50b06221 10879 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 10880 remember the coding system used for decoding in
50b06221
KH
10881 coding_system (Bug#1039).
10882
b71f6f73 10883 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 10884 breaking the loop. (Bug#870)
b71f6f73
KH
10885 (decode_coding_utf_16, decode_coding_emacs_mule)
10886 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10887 (decode_coding_charset): Likewise.
10888
56f668f7
MR
108892009-01-05 Martin Rudalics <rudalics@gmx.at>
10890
10891 * frame.c (x_set_frame_parameters): Make sure height (width) get
10892 applied when fullwidth (fullheight) is set. (Bug#1522)
10893
5da9424d
JB
108942009-01-04 Juanma Barranquero <lekktu@gmail.com>
10895
10896 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
10897 (utc_base): Declare as ULONGLONG, not long double.
10898 (convert_time_raw): Delete.
10899 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
10900 (initialize_utc_base): New function.
10901 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
10902 (convert_from_time_t): Use initialize_utc_base; compute result with
10903 64-bit arithmetic.
10904 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
10905
c4605e09
EZ
109062009-01-03 Eli Zaretskii <eliz@gnu.org>
10907
9acef61c 10908 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
10909 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
10910 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
10911 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
10912 [!subprocesses]: Define.
10913 (syms_of_process) [!subprocesses]: Intern and staticpro them.
10914 (Flist_system_processes, Fsystem_process_attributes)
10915 [!subprocesses]: Call list_system_processes and
10916 system_process_attributes instead of returning Qnil.
10917
9acef61c
JB
10918 * dosfns.c (system_process_attributes, list_system_processes):
10919 New functions.
c4605e09
EZ
10920
10921 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
10922
10923 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
10924 Don't use the default (no-op) implementation.
10925
8b7d0a16
JR
109262009-01-03 Jason Rumney <jasonr@gnu.org>
10927
a6d46bc1
JR
10928 * keyboard.c (parse_modifiers_uncached): Wheel events are
10929 clicks (bug#687).
10930
8b7d0a16
JR
10931 * w32term.c (x_query_colors, x_query_color): New functions.
10932
10933 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
10934 (svg_load_image): Cast returned pointers from dynamically loaded
10935 functions. Eliminate W32 specific code.
10936
bfe11752
DN
109372009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
10938
89e2438a
DN
10939 * nsfns.m (x_set_foreground_color, x_set_background_color)
10940 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
10941 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
10942 x_ prefix instead of ns_. Update references.
10943 (syms_of_nsfns): Add a FIXME comment.
10944
10945 * nsterm.m (x_set_cursor_type): New prototype.
10946 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
10947
bfe11752
DN
10948 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
10949 for Solaris instead of incorrectly providing Qutime and Qcutime.
10950
031da700
EZ
109512009-01-02 Eli Zaretskii <eliz@gnu.org>
10952
10953 * w32.c (process_times): Compute sum of utime and stime.
10954 (system_process_attributes): Add Qtime to the alist.
10955
10956 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
10957 and add them to the alist.
10958
10959 * process.c (top level) <Qtime, Qctime>: New variables.
10960 (syms_of_process): staticpro them.
10961 (Fsystem_process_attributes): Add their documentation to the doc
10962 string.
10963
10964 * process.h: Declare Qtime and Qctime.
10965
df23bf08
JR
109662009-01-02 Jason Rumney <jasonr@gnu.org>
10967
9acef61c 10968 * image.c (Qgobject): New symbol.
df23bf08
JR
10969 (syms_of_image): Initialize it.
10970 (init_svg_functions): Load some functions from gobject library.
10971
5bbdf7aa
DN
109722009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
10973
10974 * frame.c (make_terminal_frame): Remove redundant code and useless
10975 block.
10976
63136da6
AS
109772009-01-01 Andreas Schwab <schwab@suse.de>
10978
10979 * process.c (conv_sockaddr_to_lisp): Add workaround for
10980 getsockname bug on BSD.
10981
9ef69046
CY
109822009-01-01 Chong Yidong <cyd@stupidchicken.com>
10983
d6fafbe0
CY
10984 * xfns.c (x_create_tip_frame): Set border width of the X window.
10985
51d861de 10986 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 10987
f9c34147
JR
109882009-01-01 Jason Rumney <jasonr@gnu.org>
10989
9acef61c 10990 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
10991 Don't block input, as per earlier xterm.c changes.
10992
f5497e45
AR
109932008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
10994
10995 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
10996 (ns_appkit_version_int): New function.
10997 (x-server-version): Use ns_appkit_version_int and follow 21+
10998 convention of returning 3 integers.
10999
c19cab20
KH
110002008-12-30 Kenichi Handa <handa@m17n.org>
11001
11002 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
11003 (CHAR_SURROGATE_PAIR_P): New macro.
11004
11005 * font.h (struct font_driver): New member get_variation_glyphs.
11006
9acef61c 11007 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
11008 (Ffont_variation_glyphs): New function.
11009 (syms_of_font): Defsubr it.
11010
11011 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
11012 ftfont_variation_glyphs.
11013 (setup_otf_gstring): New function.
11014 (ftfont_drive_otf): Use it.
11015 (ftfont_shape_by_flt): Handle variation selector.
11016 (ftfont_variation_glyphs): New function.
11017
28cd591f
MR
110182008-12-30 Martin Rudalics <rudalics@gmx.at>
11019
11020 * frame.c (Vemacs_iconified): Remove.
11021
7f714baf
JR
110222008-12-30 Jason Rumney <jasonr@gnu.org>
11023
11024 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 11025 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 11026
9d2d22ab
CY
110272008-12-30 Chong Yidong <cyd@stupidchicken.com>
11028
11029 * indent.c (Fvertical_motion): Don't advance iterator if we have
11030 reseated to the desired position.
11031
11032 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
11033 checking for pos match.
11034
545312c2
KH
110352008-12-30 Kenichi Handa <handa@m17n.org>
11036
1ede3eb6
KH
11037 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
11038 just get the low 8-bit of the code.
11039
545312c2
KH
11040 * font.c (font_intern_prop): Validate str as multibyte.
11041
bd7bbf29
DN
110422008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
11043
31e0750e
DN
11044 * dispextern.h (struct face): Move lface and hash from the middle
11045 of bitfields.
11046
bd7bbf29
DN
11047 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
11048
b5672e7c
DN
110492008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
11050
11051 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
11052 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
11053 instead of intervals.h.
11054
d704470f
AS
110552008-12-26 Andreas Schwab <schwab@suse.de>
11056
11057 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
11058 cons.
11059
54b33868
MR
110602008-12-26 Martin Rudalics <rudalics@gmx.at>
11061
11062 * textprop.c (Qminibuffer_prompt): New variable.
11063 (syms_of_textprop): Initialize it.
11064 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
11065 in minibuffer-prompt face. (Bug#1662)
11066
40b615d6
JR
110672008-12-25 Jason Rumney <jasonr@gnu.org>
11068
11069 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
11070
baae5c2d
JR
110712008-12-24 Jason Rumney <jasonr@gnu.org>
11072
11073 * ralloc.c (r_alloc_reset_variable): New function.
11074
11075 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 11076 record of what points where. (Bug#716)
baae5c2d 11077
a9051c88
DN
110782008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
11079
11080 * minibuf.c (read_minibuf): Follow the non-interactive case when
11081 running as a daemon, before detaching.
11082
8b146312
AS
110832008-12-22 Andreas Schwab <schwab@suse.de>
11084
11085 * buffer.c (init_buffer): Use realloc instead of xrealloc.
11086 * gtkutil.c (free_widget_value): Use xfree instead of free.
11087
56f2de10
MR
110882008-12-22 Martin Rudalics <rudalics@gmx.at>
11089
11090 * frame.c (delete_frame): New function derived from
11091 Fdelete_frame to handle Qnoelisp value for FORCE argument.
11092 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
11093 (Fdelete_frame): Call delete_frame. Remove line from doc-string
11094 saying that FORCE non-nil doesn't run `delete-frame-functions'.
11095 * frame.h: Extern delete_frame.
11096 * window.c (window_loop):
11097 * terminal.c (delete_terminal):
11098 * xterm.c (x_connection_closed):
11099 * xfns.c (Fx_hide_tip):
9acef61c 11100 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 11101
1fc200d6
JR
111022008-12-21 Jason Rumney <jasonr@gnu.org>
11103
11104 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
11105 when character maps to .notdef character.
11106
5e252df2
SM
111072008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
11108
11109 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
11110
99b72cc4
JR
111112008-12-20 Jason Rumney <jasonr@gnu.org>
11112
11113 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 11114 a graphical frame on Windows. (Bug#1325)
99b72cc4 11115
acc49a52
JD
111162008-12-20 Jan Djärv <jan.h.d@swipnet.se>
11117
11118 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
11119
6ea15123
CY
111202008-12-20 Chong Yidong <cyd@stupidchicken.com>
11121
11122 * minibuf.c (Fread_buffer): Doc fix.
11123
b2dab6c8
JR
111242008-12-20 Jason Rumney <jasonr@gnu.org>
11125
54ea0c87 11126 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 11127 server name in UNC paths. (Bug#719)
54ea0c87 11128
b2dab6c8 11129 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 11130 charbuf. (Bug#1035)
b2dab6c8 11131
6d1921be
DN
111322008-12-19 Daniel Engeler <engeler@gmail.com>
11133
11134 * sysdep.c (serial_configure): Fix typo.
11135
53934c98
DN
111362008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
11137
11138 * sysdep.c: Include alloca.h.
f4f634e8
DN
11139 (system_process_attributes): Add implementation for Solaris.
11140
11141 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 11142
06e111a6
DN
111432008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
11144
11145 Reorganize implementation of Flist_system_processes and
11146 Fsystem_process_attributes. No functional changes.
11147 * process.c: Don't #include pwd.h, grp.h and limits.h.
11148 (Flist_system_processes): Just call list_system_processes.
11149 (Fsystem_process_attributes): Just call system_process_attributes.
11150 (procfs_list_system_processes, time_from_jiffies)
11151 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
11152 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
11153
11154 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
11155 (list_system_processes): Rename from
11156 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
11157 Provide a do nothing implementation.
11158 (system_process_attributes): Rename from
11159 procfs_list_system_processes.
11160 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 11161 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
11162
11163 * w32.c (list_system_processes): Rename from
11164 w32_list_system_processes.
11165 (system_process_attributes): Rename from
11166 w32_system_process_attributes.
11167
11168 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
11169
11170 * process.h (w32_list_system_processes)
11171 (w32_system_process_attributes): Remove.
362654a6
JB
11172 (list_system_processes, system_process_attributes):
11173 New prototypes.
06e111a6 11174
6a705b23
KH
111752008-12-19 Kenichi Handa <handa@m17n.org>
11176
11177 * xfont.c (xfont_decode_coding_xlfd): New function.
11178 (xfont_encode_coding_xlfd): New function.
11179 (xfont_list_pattern): Decode XLFD by iso-8859-1.
11180 (xfont_list): Decode and encode XLFD by iso-8859-1.
11181 (xfont_match): Likewise.
11182 (xfont_list_family): Likewise.
11183 (xfont_open): Likewise.
11184
d66c0241 11185 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
11186 names are utf-8.
11187
d66c0241 11188 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
11189 names are utf-8.
11190
5a130941
JD
111912008-12-18 Jan Djärv <jan.h.d@swipnet.se>
11192
11193 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
11194 changed.
bfd20325
JD
11195 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
11196 clicked on a detached tool bar button.
5a130941 11197
fd95644b
DN
111982008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
11199
11200 * emacs.c (main): Print and error and exit when no data is read
11201 from the pipe.
11202
e6eee6ae
JR
112032008-12-17 Jason Rumney <jasonr@gnu.org>
11204
11205 * w32font.c (w32font_has_char): Always return -1.
11206
a35dd56b
KH
112072008-12-16 Kenichi Handa <handa@m17n.org>
11208
11209 * font.c (font_open_entity): Fix previous change.
11210
0e3635c2
DN
112112008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
11212
11213 * process.c: Include <limits.h>.
11214
d4835507 112152008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
11216
11217 * font.c (font_update_drivers): Fix mistake in reconstructing the
11218 driver list.
11219
112202008-12-16 Chong Yidong <cyd@stupidchicken.com>
11221
11222 * font.c (font_clear_cache): Fix format of font cache data.
11223
e2cbc401
CY
112242008-12-15 Chong Yidong <cyd@stupidchicken.com>
11225
11226 * xftfont.c (xftfont_open): Free Xft font pattern if
11227 XftFontOpenPattern fails.
11228
11229 * xterm.c (x_free_frame_resources): Remove extraneous call to
11230 free_frame_faces.
11231
b131d535
CY
112322008-12-13 Chong Yidong <cyd@stupidchicken.com>
11233
11234 * xterm.c (x_delete_display): Move xim_close_dpy call to
11235 x_delete_terminal.
11236 (x_delete_terminal): Call xim_close_dpy.
11237
e6df5336
JR
112382008-12-13 Jason Rumney <jasonr@gnu.org>
11239
11240 * w32font.c (intern_font_name): New function.
11241 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
11242 (w32font_open_internal, Fx_select_font): Decode font name.
11243 (fill_in_logfont, list_all_matching_fonts): Encode font name.
11244
11245 * w32font.h (intern_font_name): Declare new function.
11246
11247 * w32uniscribe.c (add_opentype_font_name_to_list):
11248 Use intern_font_name.
11249
20d68145
CY
112502008-12-13 Chong Yidong <cyd@stupidchicken.com>
11251
9f2554de
CY
11252 * frame.c (Fdelete_frame): Call free_font_driver_list.
11253
3d9bec9a
CY
11254 * font.c (free_font_driver_list): Implement missing function.
11255
20d68145
CY
11256 * w32term.c (w32_term_init): Don't initialize the image cache
11257 here; it will be done in init_frame_faces.
11258
11259 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
11260 (struct x_display_info): Remove unused member null_pixel. New
11261 member xim_callback_data.
11262
11263 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
11264 (xim_initialize): Save pointer to callback function data.
11265 (xim_close_dpy): Free callback function data. Call XCloseIM,
11266 reverting 2008-11-04 change by David Smith.
11267 (x_term_init): Don't initialize the image cache here; it will be
11268 done in init_frame_faces. Remove ancient "null_pixel" cruft.
11269 (x_delete_display): Free x_dnd_atoms member.
11270
96f9306b
KH
112712008-12-13 Kenichi Handa <handa@m17n.org>
11272
6dec9044
JB
11273 * font.c (font_rescale_ratio): Moved from xfaces.c.
11274 Argument type changed. Handle a font-spec too.
96f9306b 11275 (font_score): Check Vface_font_rescale_alist.
6dec9044 11276 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
11277
11278 * xfaces.c (font_rescale_ratio): Moved to font.c.
11279
8d5b4964
CY
112802008-12-13 Chong Yidong <cyd@stupidchicken.com>
11281
11282 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
11283
e6df5336
JR
112842008-12-12 Jason Rumney <jasonr@gnu.org>
11285
11286 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
11287 Vwindow_system_version to the real w32 major version.
11288
97c6058a
DN
112892008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
11290
11291 * term.c (init_tty): Move setting the terminal name before the
11292 potential user: maybe_fatal.
11293
ec4e88d7
CY
112942008-12-11 Chong Yidong <cyd@stupidchicken.com>
11295
d4835507
JB
11296 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
11297 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 11298
b4233ec9
JR
112992008-12-11 Jason Rumney <jasonr@gnu.org>
11300
8ec71e23 11301 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 11302 SYMBOL_CHARSET. (Bug#547)
8ec71e23 11303
b4233ec9 11304 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 11305 size for surrogates. (Bug#1096, bug#872)
b4233ec9 11306
011a0143
JB
113072008-12-11 Juanma Barranquero <lekktu@gmail.com>
11308
11309 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
11310
3c309f34
JB
113112008-12-11 Juanma Barranquero <lekktu@gmail.com>
11312
11313 * process.c (Fsystem_process_attributes, syms_of_process):
11314 Fix typo in name of Ssystem_process_attributes.
11315 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
11316
fedc6ab5
JB
113172008-12-11 Juanma Barranquero <lekktu@gmail.com>
11318
11319 * syntax.c (Fmodify_syntax_entry): Doc fix.
11320
ba3de0e8
JB
113212008-12-10 Juanma Barranquero <lekktu@gmail.com>
11322
11323 * font.c (Ffont_spec): Move usage to end of docstring.
11324
174f1c74
JR
113252008-12-10 Jason Rumney <jasonr@gnu.org>
11326
11327 * w32font.c (Qcham): New symbol.
11328 (font_supported_scripts): Add cham, and comments for other new
11329 scripts in bitfield from OpenType spec.
9d32f818
JR
11330 (add_font_entity_to_list): Limit unicode-sip fonts to those that
11331 contain characters beyond the bmp.
174f1c74 11332
7b649478
KH
113332008-12-10 Kenichi Handa <handa@m17n.org>
11334
11335 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 11336 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
11337 Qunicode_sip.
11338
2133e2d1
JB
113392008-12-10 Juanma Barranquero <lekktu@gmail.com>
11340
11341 * coding.c (QCdefault_char): Rename from QCdefalut_char.
11342 (Fcoding_system_put): Use QCdefault_char.
11343 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
11344
9af886ee
CY
113452008-12-09 Chong Yidong <cyd@stupidchicken.com>
11346
74d819eb
CY
11347 * xftfont.c (syms_of_xftfont): Fix typo.
11348
4ccfa1c0 11349 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 11350
7c19d3ae
DN
113512008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
11352
11353 * emacs.c (main): Close daemon_pipe on exec.
11354
567826bb
CY
113552008-12-08 Chong Yidong <cyd@stupidchicken.com>
11356
11357 * termchar.h (struct tty): New members termcap_term_buffer and
11358 termcap_strings_buffer.
11359
11360 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 11361 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
11362 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
11363 All callers changed.
11364 (init_tty): Store termcap data and string buffers in new struct
11365 tty members termcap_term_buffer and termcap_strings_buffer.
11366 (delete_tty): Free them.
4ccfa1c0 11367 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 11368
aa96c42b
SZ
113692008-12-07 Seiji Zenitani <zenitani@mac.com>
11370
11371 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 11372 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 11373
b7e1d896
CY
113742008-12-06 Chong Yidong <cyd@stupidchicken.com>
11375
11376 * coding.c (make_conversion_work_buffer): Disable buffer
11377 modification hooks in the work buffer.
11378
b5ec91a5
EZ
113792008-12-05 Eli Zaretskii <eliz@gnu.org>
11380
11381 * process.c (procfs_system_process_attributes): If `nread' has a
11382 negative value, assign zero to it.
11383
a5d2a52b
CY
113842008-12-05 Chong Yidong <cyd@stupidchicken.com>
11385
68c5540b 11386 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 11387
7bf1bb21
KH
113882008-12-05 Kenichi Handa <handa@m17n.org>
11389
11390 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
11391 second character is a combining character.
11392
2fdc7d00
EZ
113932008-12-05 Eli Zaretskii <eliz@gnu.org>
11394
11395 * process.c (procfs_system_process_attributes): Don't use cmd,
11396 cmdsize, and q without initializing them first.
11397
bf6bfba8
JR
113982008-12-04 Jason Rumney <jasonr@gnu.org>
11399
11400 * w32font.c (w32font_draw): Initialize orig_clip before getting
11401 it, and delete it when finished.
11402
a3b1a468
DN
114032008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
11404
11405 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
11406 case when running as a daemon before detaching.
11407
8b8be8eb
JB
114082008-12-03 Juanma Barranquero <lekktu@gmail.com>
11409
805f2638 11410 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 11411
b1bde622
KH
114122008-12-03 Kenichi Handa <handa@m17n.org>
11413
e500c47d
KH
11414 * font.c (font_at): Set `multibyte' at first.
11415
ca516334
KH
11416 * coding.c (decode_coding_charset): Check type of an element of
11417 vector VALIDS.
7bf1bb21 11418 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 11419
4ccfa1c0 11420 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
11421 (font_for_char): Likewise.
11422
1e5ecd37
CY
114232008-12-03 Chong Yidong <cyd@stupidchicken.com>
11424
d5b01609 11425 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
11426 (font_update_lface): Handle fonts with corrupted size specs,
11427 i.e. non-int and non-float.
d5b01609 11428
11e3a6e4 11429 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 11430 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 11431 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 11432
ab06788b
CY
11433 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
11434
1e5ecd37 11435 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 11436 underline_minimum_offset for underline position.
1e5ecd37 11437
63c125ab
DN
114382008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
11439
11440 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
11441
11442 * character.c (c_string_width): Specify the type for LEN.
11443
3a8406e1
KH
114442008-12-03 Kenichi Handa <handa@m17n.org>
11445
4ccfa1c0 11446 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 11447 (decode_coding_utf_8): Likewise.
4ccfa1c0 11448 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 11449 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 11450
651df7d9
CY
114512008-12-02 Chong Yidong <cyd@stupidchicken.com>
11452
11453 * keyboard.c (make_lispy_position): Only use PT if the selected
11454 window is current.
11455
1f625c6c
AS
114562008-12-02 Andreas Schwab <schwab@suse.de>
11457
f7741ce9
AS
11458 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
11459
1f625c6c
AS
11460 * doprnt.c (doprnt1): Fix size of charbuf.
11461
92bc2678
CY
114622008-12-02 Chong Yidong <cyd@stupidchicken.com>
11463
11464 * keyboard.c (timer_check): Revert last change.
11465
93b9e8cc
JB
114662008-12-02 Juanma Barranquero <lekktu@gmail.com>
11467
11468 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
11469
fd7a37d5
JB
114702008-12-01 Juanma Barranquero <lekktu@gmail.com>
11471
11472 * makefile.w32-in: Update dependencies.
11473 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
11474
c115043b
AS
114752008-12-01 Andreas Schwab <schwab@suse.de>
11476
11477 * font.c (register_font_driver): Use xmalloc.
11478 (font_put_frame_data): Likewise.
11479
f5668d2a
CY
114802008-12-01 Chong Yidong <cyd@stupidchicken.com>
11481
860d96be
CY
11482 * xfaces.c (realize_x_face): Make abort condition clearer.
11483
f5668d2a
CY
11484 * gtkutil.c (update_frame_tool_bar): Initialize variable.
11485
379c17e7
CY
114862008-11-30 Chong Yidong <cyd@stupidchicken.com>
11487
11488 * keyboard.c (timer_check): After a timer runs, ensure that the
11489 selected window's buffer is current.
11490
35f36d65
JB
114912008-11-30 Juanma Barranquero <lekktu@gmail.com>
11492
f952c61c
JB
11493 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
11494 It was accidentally restored by the Unicode merge.
11495
35f36d65
JB
11496 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
11497
b23077df
JB
114982008-11-29 Juanma Barranquero <lekktu@gmail.com>
11499
11500 * w32proc.c: Include "coding.h".
11501 (Fw32_short_file_name): Encode filename passed to Windows API.
11502 (Fw32_long_file_name): Encode filename passed to Windows API and
11503 decode back the result. (Bug#1433)
11504
b8ebe9dd
KH
115052008-11-29 Kenichi Handa <handa@m17n.org>
11506
8cc53f96
KH
11507 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
11508 not before accessing it.
11509
b8ebe9dd
KH
11510 * charset.c (Fdefine_charset_internal): After calculating
11511 min_char, max_char, and fastmap, copy the charset structure again.
11512 (encode_char): Fix the previous change.
11513
59bc82c0
SZ
115142008-11-28 Seiji Zenitani <zenitani@mac.com>
11515
11516 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
11517
11518 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
11519
11520 * nsterm.m (x_set_frame_alpha): New function.
11521
32247e3d
EZ
115222008-11-27 Eli Zaretskii <eliz@gnu.org>
11523
11524 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
11525
b003e5ff
JB
115262008-11-27 Juanma Barranquero <lekktu@gmail.com>
11527
11528 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
11529 pointer to check_face_name.
11530
708550f5
KH
115312008-11-27 Kenichi Handa <handa@m17n.org>
11532
11533 * category.h (SET_CATEGORY_SET): Call set_category_set.
11534 (set_category_set): Extern it.
11535
11536 * category.c (hash_get_category_set): New function.
11537 (Fmodify_category_entry): Adjusted for the change of
11538 char_table_ref_and_range. Call hash_get_category_set to get a
11539 category set to store in the table.
11540
11541 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
11542 Funify_charset.
11543
2ae37cf0 11544 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
11545 (DECODE_CHAR): Check if the decoder vector is ready.
11546 (ENCODE_CHAR): Check if the encoder char-table is ready.
11547 (maybe_unify_char): Extern it.
11548
11549 * charset.c (Vchar_unified_charset_table): Delete it.
11550 (inhibit_load_charset_map): New variable.
11551 (temp_charset_work): New variable.
11552 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
11553 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
11554 New macros.
11555 (load_charset_map): Meaning of control_flag changed. If
11556 inhibit_load_charset_map is nonzero, setup a table in
11557 temp_charset_work.
11558 (load_charset): New argument control_flag.
11559 (map_charset_for_dump): New function.
11560 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
11561 map_charset_for_dump.
11562 (Fdefine_charset_internal): If the charset method is MAP, load
11563 mapping tables by calling load_charset.
11564 (Funify_charset): Don't load a mapping table but directly set
11565 Vchar_unify_table.
11566 (maybe_unify_char): New function.
11567 (decode_char): Don't handle the deleted method MAP_DEFERRED.
11568 Handle the case of inhibit_load_charset_map being nonzero.
11569 (encode_char): Don't handle the deleted method MAP_DEFERRED.
11570 Handle the case of inhibit_load_charset_map being nonzero.
11571 (Fclear_charset_maps): Just free temp_charset_work.
11572 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
11573 variable.
11574
11575 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
11576 change of char_table_ref_and_range.
11577 (char_table_ref_and_range): Change the meaning of argument FROM
11578 and TO. Now the caller must provide initial values for *FROM
11579 and *TO.
11580
11581 * fontset.c (fontset_add): Adjusted for the change of
11582 char_table_ref_and_range.
11583 (fontset_get_font_group): Likewise.
11584 (Ffontset_info): Likewise.
11585
11586 * keymap.c (describe_vector): Adjusted for the change of
11587 char_table_ref_and_range. For char-table, put boundary between
11588 non-ASCII and 8-bit characters.
11589
11590 * print.c (print_object): For bool-vector, delete unnecessary
11591 check of ASCII_BYTE_P.
11592
9196133b
JR
115932008-11-26 Jason Rumney <jasonr@gnu.org>
11594
11595 * w32font.c (w32font_open_internal): Don't include external
9acef61c 11596 leading in font height. (Bug#879)
9196133b 11597
9f688acf
GM
115982008-11-26 Glenn Morris <rgm@gnu.org>
11599
11600 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
11601 redefinition with ifdef. (Bug#1383)
11602
90d19aff
AR
116032008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11604
11605 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
11606
4ccfa1c0 116072008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
11608
11609 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
11610 New EmacsView methods.
11611 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
11612 Fixes bug #1048,1357,1414.
11613
116142008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11615
11616 Fix bug #1362.
11617 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
11618 is not an indexed color.
11619 * nsterm.m (free_indexed_color): Add argument checking.
11620 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
11621
e7d5ecb3
CY
116222008-11-24 Chong Yidong <cyd@stupidchicken.com>
11623
11624 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
11625 Document confirm-after-completion value for
11626 minibuffer-completion-confirm.
11627
c285743c
JR
116282008-11-24 Jason Rumney <jasonr@gnu.org>
11629
11630 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
11631 warning.
11632
b0857706
JR
116332008-11-23 Jason Rumney <jasonr@gnu.org>
11634
11635 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
11636 restored before returning.
11637
11638 * w32font.c (check_face_name): New function.
11639 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 11640 fonts. (Bug#642)
b0857706 11641
ee50ff07
MR
116422008-11-22 Martin Rudalics <rudalics@gmx.at>
11643
11644 * buffer.c (Fswitch_to_buffer): Reword and mention new option
11645 confirm-nonexistent-file-or-buffer in doc-string.
11646
b8ff72fa
SM
116472008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
11648
11649 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
11650 Fix copy/paste typo. Add checks.
11651
cee53ed4
KH
116522008-11-21 Kenichi Handa <handa@m17n.org>
11653
11654 * coding.c (detect_coding_iso_2022): Reject invalid composition
11655 sequence.
11656 (DECODE_COMPOSITION_START): If the current source is the last
11657 block, and the current composition doesn't end, regard this
11658 sequence as invalid.
11659 (decode_coding_iso_2022): Handle invalid composition sequence.
11660
f6ef1e65
MR
116612008-11-20 Martin Rudalics <rudalics@gmx.at>
11662
11663 * window.c (coordinates_in_window): Don't return
11664 ON_VERTICAL_BORDER for the rightmost position of a mode/header
11665 line when the window is not the rightmost one. (Bug#1372)
11666
e08b1705
MR
116672008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
11668
11669 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
11670
ad98e89f
EZ
116712008-11-15 Eli Zaretskii <eliz@gnu.org>
11672
11673 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
11674 and bright_bg if noninteractive is non-zero.
11675
fb098a4b
CY
116762008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11677
11678 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
11679 x_draw_glyph_string_background.
11680
11681 * w32term.c (x_draw_glyph_string): Likewise.
11682
ce952b6e
CY
116832008-11-15 Chong Yidong <cyd@stupidchicken.com>
11684
11685 * xterm.c (x_draw_glyph_string): Stop drawing the background of
11686 the next glyph string once past the overhang width.
11687
11688 * nsterm.m (ns_draw_glyph_string): Likewise.
11689
11690 * w32term.c (x_draw_glyph_string): Likewise.
11691
26ea7079
CY
116922008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
11693
11694 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
11695 double file close.
11696
1c33c906
MR
116972008-11-14 Martin Rudalics <rudalics@gmx.at>
11698
11699 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
11700 dedicated status of window before attempting to display another
11701 buffer in it.
11702
8fc29035
JB
117032008-11-14 Juanma Barranquero <lekktu@gmail.com>
11704
11705 * msdos.c (Fmsdos_long_file_names):
11706 (syms_of_msdos) <dos-unsupported-char-glyph>:
11707 * dosfns.c (Fint86): Fix typos in docstrings.
11708
55fb4286
EZ
117092008-11-14 Eli Zaretskii <eliz@gnu.org>
11710
11711 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
11712
3fda0315
KY
117132008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
11714
11715 * puresize.h (BASE_PURESIZE): Increase to 1260000.
11716
7e849c17
CY
117172008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
11718
11719 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
11720
11721 * frame.h: Negative alpha means "don't touch".
11722
11723 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
11724
11725 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
11726
b9fd67bd
DN
117272008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
11728
11729 * hftctl.c:
11730 * chpdef.h:
11731 * acldef.h: Remove files used only for systems no longer supported.
11732
11733 * Makefile.in: Fix .o alphabetical ordering.
11734 (hftctl.o): Remove dependency, file removed.
11735 (keymap.o, print.o): Depend on charset.h.
11736
d5998e03
KH
117372008-11-10 Kenichi Handa <handa@m17n.org>
11738
2ae37cf0 11739 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 11740
be70e183
CY
117412008-11-08 Chong Yidong <cyd@stupidchicken.com>
11742
11743 * dired.c (file_name_completion): If completion_ignore_case is
11744 enabled, ignore case when checking completion-regexp-list.
11745
7cf94eac
EZ
117462008-11-08 Eli Zaretskii <eliz@gnu.org>
11747
11748 * vm-limit.c (get_lim_data): Fix last change.
11749
ee107a89
KH
117502008-11-08 Kenichi Handa <handa@m17n.org>
11751
11752 * character.c (Fget_byte): New function.
11753 (syms_of_character): Defsubr Fget_byte.
11754
5fd15622
CY
117552008-11-07 Chong Yidong <cyd@stupidchicken.com>
11756
11757 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
11758 cursor position is valid after scrolling.
11759
13d62fad
JB
117602008-11-06 Juanma Barranquero <lekktu@gmail.com>
11761
11762 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
11763
a1dd2936
GM
117642008-11-06 Glenn Morris <rgm@gnu.org>
11765
11766 * xterm.c (handle_one_xevent): Don't let popup menus cause
11767 mouse-autoselect-window related window switching. (Bug#1261)
11768
860cd236
CY
117692008-11-04 David Smith <davidsmith@acm.org> (tiny change)
11770
11771 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
11772
653a3150
AS
117732008-11-04 Andreas Schwab <schwab@suse.de>
11774
11775 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
11776
870f5cac
CY
117772008-11-03 Chong Yidong <cyd@stupidchicken.com>
11778
11779 * xfns.c (Fx_wm_set_size_hint): New function.
11780
1e02f3cb
MR
117812008-11-03 Martin Rudalics <rudalics@gmx.at>
11782
11783 * textprop.c (Fprevious_single_char_property_change): Return 0
11784 when there's no change in a string. (Bug#1301)
11785
e630dfc6
MR
117862008-11-02 Martin Rudalics <rudalics@gmx.at>
11787
11788 * frame.c (do_switch_frame): New argument NORECORD passed to
11789 Fselect_window.
11790 (Fselect_frame): New argument NORECORD passed to
11791 do_switch_frame.
11792 (Fset_frame_selected_window): New argument NORECORD passed to
11793 Fselect_frame.
11794 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
11795 in call of do_switch_frame.
11796 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
11797 Handle NORECORD argument in call of Fselect_frame.
11798 * lisp.h (do_switch_frame, Fselect_frame)
11799 (Fset_frame_selected_window): Adjust declarations.
11800 * window.c (select_frame_norecord): New function.
11801 (run_window_configuration_change_hook): Use it and call
11802 Fselect_frame with NORECORD set.
11803 (Fselect_window): Pass NORECORD to Fselect_frame.
11804 (Fset_window_configuration): Handle NORECORD argument in call of
11805 do_switch_frame.
11806 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
11807 Fset_frame_selected_window.
11808 * keyboard.c (command_loop_1): Handle NORECORD in call of
11809 Fselect_frame (currently ifdefd).
11810
9020b223
GM
118112008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
11812
11813 * emacs.c (USAGE2): Untabify.
11814
793ffee8
SM
118152008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
11816
11817 * composite.c (fill_gstring_header): Fix copy/paste typo.
11818
ab6d1131
MR
118192008-10-31 Martin Rudalics <rudalics@gmx.at>
11820
11821 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
11822 (Fother_window): Rename argument and rewrite doc-string.
11823 (select_window_norecord): Fix return value. (Bug#1276)
11824
601a9cf1
JB
118252008-10-30 Juanma Barranquero <lekktu@gmail.com>
11826
11827 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
11828 new frames overriding foreground for tooltips. Based on similar patch
11829 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
11830
813b0652
CY
118312008-10-29 Chong Yidong <cyd@stupidchicken.com>
11832
11833 * emacs.c (Fdaemon_initialized): Initialize nfd.
11834
4414f58f
MR
118352008-10-29 Martin Rudalics <rudalics@gmx.at>
11836
11837 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
11838 (Fwindow_text_height): Clarify doc-strings.
11839 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
11840 doc-string of window-scroll-functions.
11841
ecdcaa09
RS
118422008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
11843
11844 * category.c (syms_of_category): Fix typo in docstring.
11845
23fe745a
JB
118462008-10-28 Juanma Barranquero <lekktu@gmail.com>
11847
11848 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
11849 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
11850 Fix typos in docstrings.
11851
ff808935
DN
118522008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
11853
11854 * emacs.c (daemon_pipe): Make non-static.
11855 (IS_DAEMON): Move definition ...
11856 * lisp.h (IS_DAEMON): ... here.
11857 (daemon_pipe): Declare.
11858 (is_daemon): Remove.
11859 * dispnew.c (init_display): Use IS_DAEMON.
11860
fc012771
SM
118612008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
11862
11863 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
11864 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
11865
11866 * emacs.c (is_daemon): Remove.
11867 (main): Don't set is_daemon.
11868 (IS_DAEMON): New macro.
11869 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 11870 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
11871 parent exits.
11872 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
11873
d8bdbe6f
CY
118742008-10-27 Chong Yidong <cyd@stupidchicken.com>
11875
d1a072bf
CY
11876 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
11877 over-sized glyph, draw it with the default glyph width.
11878
e2e325aa
CY
11879 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11880 glyph, draw it with the default glyph width.
11881
11882 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11883 glyph, draw it with the default glyph width.
11884
d8bdbe6f
CY
11885 * xdisp.c (try_scrolling): When computing the distance from the
11886 scroll margin to PT, try moving some distance past the window
11887 bottom before giving up.
11888
7bfac547
MR
118892008-10-27 Martin Rudalics <rudalics@gmx.at>
11890
11891 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
11892 (Fset_window_buffer): Explain in doc-string that a window can be
11893 "strongly" dedicated to its buffer.
11894
4ff029f6
DN
118952008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
11896
11897 * emacs.c (daemon_name): New variable.
11898 (main): Deal with --daemon=SERVER_NAME.
11899 (Fdaemonp): Return a name if one was passed to --daemon.
11900
5790ef40
DN
119012008-10-26 Romain Francoise <romain@orebokech.com>
11902
f9bd0df9 11903 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
11904 (main): Create a pipe before forking, make the parent exit only after
11905 the child has closed its end of the pipe. Move closing the
11906 descriptors ...
11907 (Fdaemon_initialized): ... here. New function.
11908
f5385255
SM
119092008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
11910
4d632321
SM
11911 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
11912 the previous unoptimized table.
11913
f5385255
SM
11914 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
11915 the distinction between non-nil and non-t value of `dedicated'.
11916
6c56a0f3
CY
119172008-10-25 Chong Yidong <cyd@stupidchicken.com>
11918
11919 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 11920 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 11921
fec89261
MR
119222008-10-25 Martin Rudalics <rudalics@gmx.at>
11923
11924 * window.c (Fget_buffer_window, Fdelete_windows_on)
11925 (Freplace_buffer_in_windows): Make buffer argument optional and
11926 rename to buffer_or_name.
11927
34fcddd0
CY
119282008-10-24 Chong Yidong <cyd@stupidchicken.com>
11929
f5385255
SM
11930 * xdisp.c (handle_single_display_spec, handle_display_prop):
11931 Undo 2005-05-16 change.
34fcddd0
CY
11932 (handle_stop): Pop iterator if it's loaded with an empty string.
11933 (get_overlay_strings_1): Don't save iterator if it's loaded with
11934 an empty string (bug#1201).
11935
064766f2
KH
119362008-10-24 Kenichi Handa <handa@m17n.org>
11937
11938 * ftfont.c (ftfont_otf_features): Fix previous change.
11939 (ftfont_otf_capability): Check FeatureList.FeatureCount before
11940 calling ftfont_otf_features.
11941
f9bd0df9 119422008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
11943
11944 * font.c (font_match_p): Fix for the case that a vector of
11945 characters is in script-representative-chars.
11946
1dae9197
MA
119472008-10-24 Michael Albinus <michael.albinus@gmx.de>
11948
11949 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 11950 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
11951 (xd_read_queued_messages): Catch Qdbus_error from the macros.
11952 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 11953 macro. (Bug#1186)
1dae9197 11954
f9bd0df9 119552008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
11956
11957 * s/sol2-10.h: New file.
11958
878a4584
JB
119592008-10-23 Juanma Barranquero <lekktu@gmail.com>
11960
11961 * xdisp.c (fill_glyph_string): Fix typo in source (though the
11962 poor beast has survived 9+ years and the jump from xterm.c!).
11963
cd265ca6
MR
119642008-10-23 Martin Rudalics <rudalics@gmx.at>
11965
11966 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
11967 Reword doc-string.
f5385255 11968 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 11969
472a4dc9
JB
119702008-10-23 Juanma Barranquero <lekktu@gmail.com>
11971
11972 * character.c (syms_of_character) <script-representative-chars>:
11973 <unicode-category-table>: Doc fixes.
11974
159bd5a2
NF
119752008-10-23 Noah Friedman <friedman@splode.com>
11976
11977 * coding.c (make_conversion_work_buffer): Check that
11978 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
11979 Fget_buffer_create.
11980
49f9c344
KH
119812008-10-23 Kenichi Handa <handa@m17n.org>
11982
11983 * font.c (font_add_log): Check the values of extra properties.
11984
12bb3111
MR
119852008-10-22 Martin Rudalics <rudalics@gmx.at>
11986
11987 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11988 Reword doc-string.
11989 (Fset_window_parameter): Use NILP.
11990 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 11991 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 11992
bbeb4e99
JB
119932008-10-22 Juanma Barranquero <lekktu@gmail.com>
11994
11995 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
11996
119972008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
11998
11999 * nsfns.m (ns_appkit_version): New function.
12000 (x-server-version): Use it.
12001 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
12002 (x-server-vendor): Don't check_ns().
12003
12004 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
12005
a9b555d3
JB
120062008-10-22 Juanma Barranquero <lekktu@gmail.com>
12007
12008 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
12009 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
12010
4626499f
KH
120112008-10-22 Kenichi Handa <handa@m17n.org>
12012
e3681952
KH
12013 * syntax.c (scan_words): Call word_boundary_p instead of comparing
12014 scripts.
12015
4626499f
KH
12016 * category.c (word_boundary_p): Check scripts instead of charset.
12017 Handle nil value in word-separating-categories and
12018 word-combining-categories.
12019 (syms_of_category): Fix docstrings of word-separating-categories
12020 and word-combining-categories.
12021
1560f91a
EZ
120222008-10-21 Eli Zaretskii <eliz@gnu.org>
12023
12024 * coding.c (Fencode_coding_region, Fdecode_coding_region)
12025 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
12026
f4668441
MR
120272008-10-21 Martin Rudalics <rudalics@gmx.at>
12028
12029 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
12030 Rename arg "buffer" to "buffer_or_name".
12031 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
12032 it optional.
12033 (no_switch_window): Remove since the return value is not used.
a9b555d3 12034 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
12035 Consider window as dedicated when Fwindow_dedicated_p returns a
12036 non-nil value.
12037 * lisp.h: Remove prototype for no_switch_window.
12038
fd75ddb2
JD
120392008-10-21 Jan Djärv <jan.h.d@swipnet.se>
12040
12041 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 12042 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 12043
07295713
KH
120442008-10-21 Kenichi Handa <handa@m17n.org>
12045
12046 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
12047 check Vlatin_extra_code_table.
12048
712adc82
EZ
120492008-10-20 Eli Zaretskii <eliz@gnu.org>
12050
12051 * fileio.c (Fset_file_modes): Doc fix.
12052
f549eb0b
MA
120532008-10-19 Michael Albinus <michael.albinus@gmx.de>
12054
12055 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
12056 in arrays.
12057
aac0c6e3
MR
120582008-10-19 Martin Rudalics <rudalics@gmx.at>
12059
12060 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
12061 Mention kill-buffer in doc-string.
12062 (Fset_window_buffer): Reinsert tem check removed in last commit.
12063 (Fenlarge_window, Fshrink_window): Have argument names and
12064 doc-string follow Elisp manual more closely.
12065
120662008-10-18 Eli Zaretskii <eliz@gnu.org>
12067
12068 * fileio.c (Fset_file_modes): Doc fix.
12069
120702008-10-18 Martin Rudalics <rudalics@gmx.at>
12071
12072 * window.c (Fwindow_width, Fset_window_start)
12073 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
12074 (Fdelete_windows_on, Freplace_buffer_in_windows):
12075 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
12076 (Fwindow_dedicated_p): Make window argument optional.
12077 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
12078 (Fset_window_buffer): Respect any non-nil dedicated value for
12079 window. Rename "buffer" argument to "buffer_or_name".
12080
120812008-10-18 Ulrich Mueller <ulm@gentoo.org>
12082
12083 * m/sh3.h: New file, machine description for SuperH.
12084
120852008-10-17 Martin Rudalics <rudalics@gmx.at>
12086
12087 * window.c (Fsplit_window): Rename arg horflag to horizontal.
12088
120892008-10-17 Kenichi Handa <handa@m17n.org>
12090
12091 * ftfont.c (ftfont_otf_features): Fix indexing
12092 gsub_gpos->FeatureList.Feature. Check the validity of indices.
12093
120942008-10-16 Magnus Henoch <mange@freemail.hu>
12095
12096 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
12097 (Fdbus_call_method_asynchronously): Ditto.
12098 This change makes C-h f display the argument list.
12099
121002008-10-16 Chong Yidong <cyd@stupidchicken.com>
12101
12102 * fileio.c (Fexpand_file_name): Doc fix.
12103
12104 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
12105 of :foreground and :background equivalent to unspecified (20.x
12106 compatibility).
12107
121082008-10-15 Eli Zaretskii <eliz@gnu.org>
12109
12110 * buffer.c (syms_of_buffer): Doc fix.
12111
121122008-10-14 Kenichi Handa <handa@m17n.org>
12113
12114 * font.c (font_clear_prop): When clearing font width, clear the
12115 average width field too.
12116
121172008-10-12 Andreas Schwab <schwab@suse.de>
12118
12119 * ftfont.c (ftfont_shape_by_flt): Make static.
12120 * ftfont.h (ftfont_shape_by_flt): Don't declare.
12121
12122 * font.c: Don't include <m17n-flt.h>.
12123
121242008-10-10 Eli Zaretskii <eliz@gnu.org>
12125
12126 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
12127
121282008-10-09 Eli Zaretskii <eliz@gnu.org>
12129
12130 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
12131 away code.
12132
121332008-10-09 Chong Yidong <cyd@stupidchicken.com>
12134
12135 * dispnew.c (update_text_area): Avoid looping due to large glyph
12136 overhangs (bug#1070).
12137
121382008-10-09 Kenichi Handa <handa@m17n.org>
12139
12140 * fontset.c (face_for_char): If face->fontset is negative, just
12141 return ascii_face.
12142
f5385255
SM
12143 * font.c (font_delete_unmatched): Fix previous change.
12144 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
12145
121462008-10-09 Martin Rudalics <rudalics@gmx.at>
12147
12148 * frame.c (Fraise_frame): On text-only terminals select frame in
12149 order to make it visible. (Bug#1061)
12150
121512008-10-08 Chong Yidong <cyd@stupidchicken.com>
12152
12153 * fontset.c (fontset_find_font): Check frame validity.
12154
121552008-10-07 Chong Yidong <cyd@stupidchicken.com>
12156
a9b555d3 12157 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
12158 (xg_display_close): Allow Emacs to close all displays (bug#985).
12159
121602008-10-06 Andreas Schwab <schwab@suse.de>
12161
f5385255 12162 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
12163
121642008-10-06 Chong Yidong <cyd@stupidchicken.com>
12165
f5385255 12166 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 12167
a9b555d3 12168 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
12169
12170 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
12171 during initialization.
12172
121732008-10-04 Eli Zaretskii <eliz@gnu.org>
12174
12175 * xdisp.c (redisplay_internal): If frame switched, redisplay the
12176 whole thing on MSDOS frames as well as on a TTY.
12177
12178 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
12179 well as for TTY.
12180 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
12181 well as on a TTY.
12182
12183 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
12184 as well as for TTY.
12185
12186 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
12187
12188 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
12189 MSDOS frames as well.
12190
121912008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12192
12193 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
12194 correct arguments.
b71ac3dd 12195 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
12196
121972008-10-03 Glenn Morris <rgm@gnu.org>
12198
12199 * emacs.c (USAGE1): Add --daemon.
12200
122012008-10-02 Eli Zaretskii <eliz@gnu.org>
12202
12203 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
12204 100, so it's in percents as advertised.
12205
122062008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12207
12208 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
12209 (ns_output.current_cursor, ns_output.desired_cursor)
12210 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
12211 (FRAME_NEW_CURSOR_COLOR): Remove.
12212
12213 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 12214 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
12215 enumeration (HOLLOW_BOX_CURSOR, etc.).
12216
12217 * nsterm.m (ns_frame_rehighlight): Remove commented code.
12218 (draw_window_cursor): Simplify code.
f5385255
SM
12219 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
12220 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 12221 updates manually.
a9b555d3
JB
12222 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
12223 Use core Emacs cursor types.
aac0c6e3 12224
b8ff72fa 12225 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
12226
122272008-10-02 Martin Rudalics <rudalics@gmx.at>
12228
12229 * process.c (Faccept_process_output): Fix doc-string.
12230
122312008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
12232
12233 * gmalloc.c (__sbrk): Also define for uClibc.
12234
12235 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
12236 for uClibc.
12237
122382008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12239
12240 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
12241 styles.
12242 (nsfont_open): Reenable the cache.
12243
122442008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12245
12246 * font.c (font_matching_entity): Reflect ATTRS in font selection.
12247 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
12248
122492008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
12250
12251 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
12252 a suspended terminal.
12253
122542008-09-30 Michael Albinus <michael.albinus@gmx.de>
12255
12256 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
12257
122582008-09-30 Eli Zaretskii <eliz@gnu.org>
12259
12260 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
12261
122622008-09-30 Chong Yidong <cyd@stupidchicken.com>
12263
12264 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
12265 in a continued line coincides with a line beginning.
12266
122672008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
12268
12269 * nsfont.m (nsfont_trait_distance): Fix bug.
12270 (nsfont_list): Return a list rather than a vector (syncs with Handa
12271 changes of 2008-05-14).
12272 (nsfont_open): Improve logging.
12273
122742008-09-29 Andreas Schwab <schwab@suse.de>
12275
12276 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
12277
122782008-09-28 Martin Rudalics <rudalics@gmx.at>
12279
12280 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
12281 name as char-resolve-modifiers.
12282 Reported by: Markus Triska <markus.triska@gmx.at>
12283
122842008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
12285
12286 * dispnew.c (init_display): Return earlier when running as a daemon.
12287
122882008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12289
12290 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
12291
122922008-09-27 Eli Zaretskii <eliz@gnu.org>
12293
12294 * composite.c (Fcomposition_get_gstring)
12295 (Fcompose_region_internal, Fcompose_string_internal)
12296 (Ffind_composition_internal): Doc fix.
12297 (syms_of_composite) <compose-chars-after-function>: Doc fix.
12298 (syms_of_composite) <auto-composition-function>: Doc fix.
12299 (syms_of_composite) <composition-function-table>: Doc fix.
12300
123012008-09-25 Chong Yidong <cyd@stupidchicken.com>
12302
12303 * search.c (wordify): New argument for lax word-ends.
12304 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
12305
123062008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
12307
12308 * lisp.h (is_daemon): Declare.
12309 * dispnew.c (init_display): Do not try to initialize the terminal
12310 when running as a daemon.
12311
123122008-09-22 Chong Yidong <cyd@stupidchicken.com>
12313
12314 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
12315 x_display_pixel_height.
12316
123172008-09-22 Martin Rudalics <rudalics@gmx.at>
12318
12319 * undo.c (record_point): Don't call Fundo_boundary for first
12320 change. (Bug#731)
12321
123222008-09-22 Juanma Barranquero <lekktu@gmail.com>
12323
12324 * emacs.c (Fdaemonp): Doc fix.
12325
123262008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
12327
12328 * emacs.c (main): Place #ifdef in the proper place.
12329
123302008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
12331
12332 * emacs.c (standard_args): Add --daemon.
12333 (main): Disconnect from the terminal when --daemon is passed.
12334 (is_daemon): New variable.
12335 (Fdaemonp): New function.
12336 (syms_of_emacs): Defsubr it.
12337
123382008-09-20 Chong Yidong <cyd@stupidchicken.com>
12339
12340 * xdisp.c (get_next_display_element): Handle string display
12341 correctly when checking for the end of a box run.
12342
123432008-09-20 Glenn Morris <rgm@gnu.org>
12344
12345 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
12346 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
12347 (Frename_file): Avoid copying to trash if a rename involves
12348 a delete. (Bug#964).
12349
123502008-09-20 Eli Zaretskii <eliz@gnu.org>
12351
12352 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
12353 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
12354 frames as well as termcap frames.
12355 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
12356 get_named_tty.
12357
123582008-09-19 Eli Zaretskii <eliz@gnu.org>
12359
12360 * process.c (procfs_system_process_attributes): Fix cmdline in
12361 case /proc/PID/cmdline is empty.
12362
12363 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
12364 x_display_pixel_height.
12365
123662008-09-19 Juanma Barranquero <lekktu@gmail.com>
12367
12368 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
12369
12370 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
12371 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
12372
123732008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
12374
12375 * dispextern.h (struct it): Move line_wrap away from the middle of
12376 bitfields. Move voffset in struct iterator_stack_entry after the
12377 bitfields. Move tab_width near after another short.
12378
123792008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
12380
12381 * frame.h (struct frame): Move alpha from the middle of bitfields.
12382
12383 * window.h (struct window): Move frozen_window_start_p after the
12384 rest of the bitfields to reduce padding.
12385
123862008-09-18 Chong Yidong <cyd@stupidchicken.com>
12387
12388 * xterm.h (x_display_info): Remove `height' and `width' members.
12389
12390 * nsterm.h (ns_display_info): Remove `height' and `width' members.
12391
12392 * w32term.h (w32_display_info): Remove `height', `width',
12393 `height_in', and `width_in' members.
12394
b8ff72fa
SM
12395 * xterm.c (x_display_pixel_height, x_display_pixel_width):
12396 New functions.
aac0c6e3
MR
12397 (x_calc_absolute_position): Use them.
12398 (x_term_init): Omit removed `height' and `width' members.
12399
b8ff72fa
SM
12400 * w32term.c (x_display_pixel_height, x_display_pixel_width):
12401 New functions.
aac0c6e3
MR
12402 (w32_read_socket, x_calc_absolute_position): Use them.
12403 (w32_initialize_display_info, w32_term_init): Omit removed members
12404 of w32_display_info.
12405
b8ff72fa
SM
12406 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
12407 New functions.
12408 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 12409
b8ff72fa
SM
12410 * xterm.c (x_display_pixel_height, x_display_pixel_width):
12411 New functions.
aac0c6e3
MR
12412 (x_calc_absolute_position): Use them.
12413 (x_term_init): Omit removed `height' and `width' members.
12414
12415 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
12416 (compute_tip_xy):
12417 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
12418 * xmenu.c (menu_position_func): Use x_display_pixel_height and
12419 x_display_pixel_width.
12420
124212008-09-18 Kenichi Handa <handa@m17n.org>
12422
12423 * composite.c (fill_gstring_header): Don't check FROM and TO here.
12424 (composition_compute_stop_pos): Fix handling of static composition.
12425 (Fcomposition_get_gstring): Check FROM and TO at first.
12426
124272008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
12428
46e722a9 12429 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
12430 mixup (YAILOM).
12431
124322008-09-17 Chong Yidong <cyd@stupidchicken.com>
12433
12434 * indent.c (Fvertical_motion): Use position reported by iterator
12435 instead of PT for determining screen motion (bug#943).
12436
124372008-09-17 Romain Francoise <romain@orebokech.com>
12438
12439 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
12440
124412008-09-17 Kenichi Handa <handa@m17n.org>
12442
12443 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
12444
12445 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
12446 if necessary.
12447
124482008-09-16 Kenichi Handa <handa@m17n.org>
12449
12450 * coding.c (make_conversion_work_buffer): Avoid calling
12451 Fget_buffer_create if it is not necessary.
12452
124532008-09-15 Martin Rudalics <rudalics@gmx.at>
12454
12455 * window.c (Fselect_window): Don't update window_select_count and
12456 use_time when norecord is not nil.
12457
124582008-09-14 Kenichi Handa <handa@m17n.org>
12459
12460 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
12461 specpdl_ptr.
12462
124632008-09-12 Kenichi Handa <handa@m17n.org>
12464
12465 * indent.c (scan_for_column): Don't handle automatic composition
12466 if the current buffer is not associated with a window.
12467
12468 * composite.c (composition_reseat_it): If the current buffer is
12469 not associated with a window, ignore the automatic composition.
12470 (find_automatic_composition): Likewise.
12471
124722008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12473
12474 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
12475 (Fgpm_mouse_stop): Use it.
12476 * termhooks.h (close_gpm): Declare.
12477 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
12478 connection if Gpm_GetEvent fails.
12479
12480 * window.c (set_window_buffer): Always preserve current-buffer.
12481
124822008-09-12 Glenn Morris <rgm@gnu.org>
12483
12484 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
12485
124862008-09-11 Glenn Morris <rgm@gnu.org>
12487
12488 * charset.c (charset-map-path): Doc fix.
12489
124902008-09-10 Kenichi Handa <handa@m17n.org>
12491
12492 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
12493
12494 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
12495 compose a grapheme cluster with the preceding base glyph.
12496
12497 * composite.c (composition_compute_stop_pos): Fix previous change.
12498 Reset cmp_it->id to -1 at first.
12499
125002008-09-10 Glenn Morris <rgm@gnu.org>
12501
12502 * Makefile.in (character.o, chartab.o): Fix config.h typo.
12503
125042008-09-09 Chong Yidong <cyd@stupidchicken.com>
12505
12506 * keyboard.c (read_key_sequence): Reapply translation maps when
12507 switching keyboards.
12508
125092008-09-09 Kenichi Handa <handa@m17n.org>
12510
12511 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
12512 characters.
12513
12514 * composite.c (FORWARD_CHAR): Fix calculation
12515 of (POSITION).pos_byte.
12516 (composition_compute_stop_pos): Limit the search of composition to
12517 at most 500 characters ahead. If we reach the limit or find a
12518 newline, set cmp_it->ch to -2 and return 0.
12519 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
12520
125212008-09-08 Kenichi Handa <handa@m17n.org>
12522
12523 * indent.c (Fvertical_motion): Be sure to set
12524 it_overshoot_expected if it.cmp_it.id is non-negative.
12525
125262008-09-07 Andreas Schwab <schwab@suse.de>
12527
12528 * callproc.c (Fcall_process): Don't hold references to string data
12529 across garbage collection. Move initialisation of new_argv down
12530 to avoid compiler bug.
12531
125322008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12533
12534 * process.c (Fsystem_process_attributes): Doc fix.
12535
125362008-09-07 Chong Yidong <cyd@stupidchicken.com>
12537
12538 * callproc.c (Fcall_process): Canonicalize current directory name.
12539
12540 * xdisp.c (move_it_to): When moving by vpos, ensure that the
12541 iterator advances to the next line if the current line ends in a
12542 continued tab.
12543
125442008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
12545
12546 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
12547 member to point to cmp_from.
12548
12549 * xdisp.c: Doc fix for references to gidx data member.
12550
125512008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
12552
12553 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
12554
125552008-09-07 Kenichi Handa <handa@m17n.org>
12556
12557 * composite.c (FORWARD_CHAR): Check STOP after
12558 incrementing (POSITION).pos.
12559
125602008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12561
12562 * process.c (Fsystem_process_attributes): Doc fix.
12563
125642008-09-06 Chong Yidong <cyd@stupidchicken.com>
12565
12566 * keyboard.c (Ftop_level): Doc fix.
12567
125682008-09-06 Eli Zaretskii <eliz@gnu.org>
12569
12570 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
12571 minibuffer, don't let lower part of menu invade the echo area.
12572
12573 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
12574 "char *q" to access menu text and advance through it. Revert the
12575 change that displayed ">" instead of ASCII character 0x10.
12576
125772008-09-05 Eli Zaretskii <eliz@gnu.org>
12578
12579 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
12580 toggle boxes and radio buttons on MS-DOS as well.
12581
125822008-09-05 Kenichi Handa <handa@m17n.org>
12583
12584 * composite.c (autocmp_chars): Check lookback count.
12585 (composition_compute_stop_pos): Set cmp_it->lookback.
12586 (composition_reseat_it): Check lookback count.
12587 (struct position_record): New struct.
12588 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
12589 (find_automatic_composition): New function.
12590 (composition_adjust_point): Use find_automatic_composition.
12591
12592 * dispextern.h (struct composition_it): New member lookback.
12593
125942008-09-02 Chong Yidong <cyd@stupidchicken.com>
12595
12596 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
12597 if moving by a single line.
12598
125992008-09-02 Andreas Schwab <schwab@suse.de>
12600
12601 * xterm.c (x_delete_display): Fix merge error.
12602
12603 * fileio.c (Fexpand_file_name): Remove unused variables.
12604
126052008-09-02 Eli Zaretskii <eliz@gnu.org>
12606
12607 * fileio.c (Fexpand_file_name): Copy argument `name' into local
12608 storage on all platforms, not just on DOS_NT.
12609
126102008-09-02 Jason Rumney <jasonr@gnu.org>
12611
b8ff72fa
SM
12612 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
12613 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
12614
126152008-09-01 Chong Yidong <cyd@stupidchicken.com>
12616
12617 * xfaces.c (Finternal_set_alternative_font_family_alist)
12618 (Finternal_set_alternative_font_registry_alist): Properly copy
12619 entire alist structure.
12620
126212008-09-01 Kenichi Handa <handa@m17n.org>
12622
d66c0241 12623 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 12624 representative chars of the script is a vector.
d66c0241
JB
12625 (ftfont_list): Handle the case where the representative chars of
12626 the script is a vector.
aac0c6e3
MR
12627
12628 * character.c (syms_of_character): Docstring of
12629 script-representative-chars fixed.
12630
126312008-08-31 Eli Zaretskii <eliz@gnu.org>
12632
12633 * msdos.c (BUILD_CHAR_GLYPH): New macro.
12634 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
12635 the menu. Allocate larger buffer for `text', to account for
12636 possible ^C characters.
12637
126382008-08-31 Martin Rudalics <rudalics@gmx.at>
12639
12640 * xdisp.c (prepare_menu_bars): Don't call
12641 Vwindow_size_change_functions with arg Qt.
12642
126432008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
12644
12645 * font.h (font_range):
12646 * fileio.c (report_file_error):
46e722a9
SM
12647 * composite.c (composition_update_it): Yet another int/Lisp_Object
12648 mixup (YAILOM).
aac0c6e3
MR
12649
126502008-08-30 Glenn Morris <rgm@gnu.org>
12651
12652 * data.c (Fmake_variable_frame_local): Doc fix.
12653
12654 * frame.c (Fmodify_frame_parameters): Doc fix.
12655
126562008-08-30 Eli Zaretskii <eliz@gnu.org>
12657
12658 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
12659 needed by GetTokenInformation.
12660 (w32_system_process_attributes): Check return values of all system
12661 APIs.
12662
12663 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
12664 only when the state changes.
12665 (IT_update_begin, IT_update_end): Add termscript trace.
12666
12667 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
12668 clipboard is unavailable. Set dst to NULL if it doesn't point to
12669 malloc'ed data.
12670 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
12671 passing random values to xfree.
12672
12673 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 12674 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
12675
126762008-08-29 Jason Rumney <jasonr@gnu.org>
12677
12678 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
12679
126802008-08-29 Eli Zaretskii <eliz@gnu.org>
12681
12682 * composite.c (fill_gstring_body): Avoid compiler warnings.
12683
12684 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
12685 LGLYPH_SET_CODE to avoid compiler warnings.
12686
2ae37cf0 12687 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
12688
12689 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
12690
12691 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
12692 LGLYPH_SET_CODE.
12693
126942008-08-29 Kenichi Handa <handa@m17n.org>
12695
12696 * fileio.c (report_file_error): Don't downcase the first character
12697 of errstring if it is still unibyte.
12698
126992008-08-29 Kenichi Handa <handa@m17n.org>
12700
12701 These changes are to re-implement the automatic composition so
12702 that it doesn't use text properties.
12703
12704 * Makefile.in (ftfont.o): Depend on composite.h.
12705 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
12706
12707 * character.h (Vunicode_category_table): Extern it.
12708
12709 * character.c (Vunicode_category_table): New variable.
12710 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
12711
12712 * chartab.c (optimize_sub_char_table): Perform more greedy
12713 optimization.
12714
b8ff72fa
SM
12715 * composite.h (enum composition_method):
12716 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
12717 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
12718 (Vcomposition_function_table): Extern it.
12719 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
12720 (composition_gstring_put_cache, composition_gstring_from_id)
12721 (composition_gstring_p, composition_gstring_width)
12722 (composition_compute_stop_pos, composition_reseat_it)
12723 (composition_update_it, composition_adjust_point): Extern them.
12724 (Fcomposition_get_gstring): EXFUN it.
12725
d66c0241 12726 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
12727 (Vcomposition_function_table)
12728 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
12729 (gstring_hash_table, gstring_work, gstring_work_headers):
12730 New variables.
aac0c6e3
MR
12731 (gstring_lookup_cache, composition_gstring_put_cache)
12732 (composition_gstring_from_id, composition_gstring_p)
12733 (composition_gstring_width, fill_gstring_header)
12734 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
12735 (composition_reseat_it, composition_update_it)
b8ff72fa 12736 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
12737 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
12738 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 12739 Defsubr composition_get_gstring.
aac0c6e3
MR
12740
12741 * dispextern.h (struct glyph): New union u.cmp. Delete the member
12742 cmp_id.
12743 (struct glyph_string): Delete the member gidx. New members
12744 cmp_id, cmp_from, and cmp_to.
12745 (enum it_method): Delete GET_FROM_COMPOSITION.
12746 (struct composition_it): New struct.
12747 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
12748 Delete c, len, cmp_id, cmp_len in u.comp.
12749
12750 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 12751 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 12752 (enum lglyph_indices): Likewise.
b8ff72fa 12753 (font_range): Adjust extern.
aac0c6e3
MR
12754 (font_fill_lglyph_metrics): Extern it.
12755
12756 * font.c (QCf): New variable.
12757 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12758 (font_prepare_composition): Delete this function.
12759 (font_range): Type and arguments changed.
12760 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
12761 (font_fill_lglyph_metrics): New function.
b8ff72fa 12762 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 12763 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
12764 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
12765 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
12766
12767 * fontset.h (font_for_char): Extern it.
12768
12769 * fontset.c (font_for_char): New function.
12770
12771 * ftfont.c: Include composite.h.
12772 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 12773 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
12774
12775 * indent.c: Include composite.h and dispextern.h.
12776 (check_composition): Delete this function.
12777 (scan_for_column): Handle composition by
12778 composition_compute_stop_pos, composition_reseat_it, and
12779 composition_update_it.
12780 (compute_motion): Likewise.
12781 (Fvertical_motion): Fix checking of composition.
12782
12783 * keyboard.c (adjust_point_for_property): Check composition by
12784 composition_adjust_point.
12785
b8ff72fa 12786 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
12787 struct glyph_string.
12788
b8ff72fa
SM
12789 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
12790 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
12791 struct glyph.
12792 (produce_composite_glyph): Likewise.
12793
b8ff72fa
SM
12794 * w32term.c (x_draw_composite_glyph_string_foreground):
12795 Adjust for the change of struct glyph_string.
aac0c6e3
MR
12796 (x_draw_glyph_string): Likewise.
12797
12798 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
12799 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12800
12801 * xdisp.c: Include font.h.
12802 (it_props): Delete the entry for Qauto_composed.
12803 (init_iterator): Initialize it->cmp_it.id to -1.
12804 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 12805 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
12806 (handle_auto_composed_prop): Delete it.
12807 (handle_composition_prop): Handle only static composition.
12808 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
12809 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 12810 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
12811 (pop_it): Likewise.
12812 (get_next_element): Delete next_element_from_composition.
12813 (CHAR_COMPOSED_P): New macro.
12814 (get_next_display_element): For automatic composition, get a face
12815 from the font in the glyph-string.
12816 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 12817 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
12818 (next_element_from_string): Check if the character at the current
12819 position is composed by CHAR_COMPOSED_P.
12820 (next_element_from_buffer): Likewise.
d66c0241
JB
12821 (next_element_from_composition): Adjust for the change of struct it.
12822 Update it->cmp_it.
b8ff72fa
SM
12823 (dump_glyph): Adjust for the change of struct glyph.
12824 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
12825 it and struct glyph. Don't handle automatic composition here.
12826 (fill_gstring_glyph_string): New function.
12827 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 12828 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
12829 (BUILD_GSTRING_GLYPH_STRING): New macro.
12830 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
12831 automatic composition.
b8ff72fa 12832 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 12833 struct glyph.
b8ff72fa 12834 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 12835
b8ff72fa 12836 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
12837 the change of struct glyph_string.
12838 (x_draw_glyph_string): Likewise.
12839
128402008-08-29 Glenn Morris <rgm@gnu.org>
12841
12842 * buffer.c (word-wrap): Doc fix.
12843 * xdisp.c (truncate-partial-width-windows): Doc fix.
12844 Increase default to 50.
12845
128462008-08-29 Chong Yidong <cyd@stupidchicken.com>
12847
12848 * xdisp.c (update_tool_bar_unwind): New function.
12849 (update_tool_bar): Temporarily set selected frame before building
12850 tool-bar items.
12851
128522008-08-28 Michael Albinus <michael.albinus@gmx.de>
12853
12854 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
12855 snprintf, respectively.
12856 (xd_append_arg): Convert strings with Fstring_make_unibyte.
12857
128582008-08-28 Chong Yidong <cyd@stupidchicken.com>
12859
12860 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
12861 LDFLAGS to GNUstep CC invocation.
12862
128632008-08-27 Chong Yidong <cyd@stupidchicken.com>
12864
12865 * indent.c (Fvertical_motion): Revert last change. Handle the
12866 general case where we are moving forward, and PT spans multiple
12867 screen lines.
12868
12869 * eval.c (find_handler_clause): Temporarily increase
12870 max-lisp-eval-depth while printing the backtrace buffer, to
12871 guarantee that help-mode code can run.
12872
128732008-08-27 Eli Zaretskii <eliz@gnu.org>
12874
12875 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
12876 colors under -rv.
12877 (IT_set_frame_parameters): Don't swap foreground and background
12878 colors if `(reverse . t)' is present in the frame properties.
12879 (internal_terminal_init): Call init_frame_faces only for the
12880 initial frame.
12881
128822008-08-27 Andreas Schwab <schwab@suse.de>
12883
12884 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
12885
128862008-08-27 Andreas Schwab <schwab@suse.de>
12887
12888 * search.c (search_buffer): Set char_base to zero only at the end.
12889
128902008-08-27 Kenichi Handa <handa@m17n.org>
12891
b8ff72fa 12892 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
12893
128942008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
12895
12896 * xterm.c (x_term_init): Temporarily hide the partially
12897 initialized terminal while calling vendor-specific-keysyms.
12898
128992008-08-26 Eli Zaretskii <eliz@gnu.org>
12900
12901 * msdos.c (internal_terminal_init): Most initializations done only
12902 once, especially initial_screen_colors[] and termscript open.
12903
129042008-08-26 Chong Yidong <cyd@stupidchicken.com>
12905
12906 * eval.c (Fcondition_case): Doc fix.
12907
12908 * widgetprv.h (EmacsFramePart): Change font member to the new font
12909 struct.
12910
12911 * widget.c: Include character.h and font.h for XSETFONT.
12912 (setup_frame_gcs): Compute X font id from font struct, just once.
12913
129142008-08-26 Eli Zaretskii <eliz@gnu.org>
12915
12916 * term.c (get_named_tty): Fix last change.
12917
129182008-08-26 Chong Yidong <cyd@stupidchicken.com>
12919
12920 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 12921 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
12922
129232008-08-25 Eli Zaretskii <eliz@gnu.org>
12924
12925 * frame.c (do_switch_frame): Mark previously displayed frame as
12926 obscured for FRAME_MSDOS_P frames as well.
12927
129282008-08-24 Eli Zaretskii <eliz@gnu.org>
12929
12930 * frame.c (make_terminal_frame): Initialize f->terminal,
12931 f->terminal->reference_count, and scroll bars on MS-DOS as well.
12932 Set the top frame to newly created frame.
12933 (Fmake_terminal_frame): Reuse the_only_display_info.
12934
12935 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
12936 estimating available memory.
12937
b97439ce 129382008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
12939
12940 * nsterm.m (ns_draw_window_cursor): Don't call
12941 NSDisableScreenUpdates and NSEnableScreenUpdates on
12942 non-NS_IMPL_COCOA systems.
12943
129442008-08-23 Andreas Schwab <schwab@suse.de>
12945
12946 * process.c (procfs_system_process_attributes): Fix use of
12947 uninitialized variables.
12948
129492008-08-23 Eli Zaretskii <eliz@gnu.org>
12950
12951 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
12952
12953 * dispnew.c (init_display): Remove MS-DOS specific conditions for
12954 calling tty-set-up-initial-frame-faces.
12955
b8ff72fa
SM
12956 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
12957 Allow MSDOS frames along with X frames.
aac0c6e3
MR
12958
12959 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
12960 addition to output_termcap.
12961
12962 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
12963
12964 * termchar.h (FRAME_TTY): Support output_msdos_raw.
12965 (struct tty_display_info) [MSDOS]: Add fields related to mouse
12966 highlight.
12967
12968 * process.c [!subprocesses]: Define QCname.
12969 (syms_of_process): Intern and staticpro it.
12970
12971 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
12972 Adjust for changes in encoding/decoding routines.
12973 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
12974 encode_coding and decode_coding.
12975
b8ff72fa 12976 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
12977
12978 * dosfns.c: Include frame.h before termhooks.h.
12979 (dos_cleanup): Use CURTTY ()->termscript instead of a global
12980 variable termscript.
12981
12982 * s/msdos.h (USER_FULL_NAME): Define.
12983 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
12984
12985 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
12986 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
12987 pw->pw_gecos.
12988
12989 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
12990 SELECTED_FRAME as additional (1st) argument.
12991 (tty_read_avail_input): Handle output_msdos_raw in
12992 addition to output_termcap.
12993
12994 * msdos.c: Include frame.h before termhooks.h.
12995 (mouse_on, mouse_off, mouse_moveto, mouse_init)
12996 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
12997 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
12998 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
12999 (IT_set_terminal_modes, IT_reset_terminal_modes)
13000 (IT_set_frame_parameters): Use tty->termscript instead of a global
13001 variable termscript.
13002 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
13003 global variable terminal_coding. Don't refer to
13004 Vnonascii_translation_table.
13005 (internal_terminal_init): Set Vwindow_system in current_kboard.
13006 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
13007 Announce date and time of session start, if termscript is open.
13008 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
13009 term.c:init_tty). Open termscript only of not already open.
13010 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
13011 here instead of dos_ttraw. Don't initialize display if this is an
13012 initial tty. Don't set FRAME_FONT.
13013 (Vwindow_system_version): Bump to 23.
13014 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
13015 is available, set up mouse_position_hook.
13016 (dos_ttraw, IT_set_terminal_modes): If called with initial
13017 terminal, do nothing.
13018 (IT_set_frame_parameters): Handle the Qtty_type frame
13019 parameter by calling internal_terminal_init.
13020 (dos_set_window_size, show_mouse_face)
13021 (clear_mouse_face, IT_note_mode_line_highlight)
13022 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
13023 (dos_rawgetc): Use tty_display_info instead of x_display_info.
13024 (initialize_msdos_display): New function.
13025 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
13026 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
13027 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
13028 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 13029 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
13030 (request_sigio, unrequest_sigio): Don't define, now defined on
13031 sysdep.c.
13032 (IT_write_glyphs): Rewrite to use encode_terminal_code.
13033
13034 * term.c [MSDOS]: Include msdos.h.
13035 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
13036 conditional to DOS_NT. Allow only one call to this function in a
13037 session. Don't allocate a new struct tty_display_info; instead,
13038 reuse the_only_display_info. Call get_tty_size to get screen
13039 dimensions. Call init_baud_rate to set bad_rate.
13040 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
13041 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 13042 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
13043 (get_tty_terminal, get_named_tty, Ftty_type)
13044 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
13045 output_termcap.
b8ff72fa
SM
13046 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
13047 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 13048 only when subprocesses are supported.
aac0c6e3
MR
13049
13050 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
13051 f->output_data.x.
13052 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
13053 terminal devices.
13054
5582fbc7 13055 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
13056 x_output.
13057 (FRAME_FONT): Use output_data.tty.
13058 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
13059 (struct x_display_info): Rename from display_info. Update all users in
13060 msdos.c.
aac0c6e3 13061 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 13062 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
13063 (dos_ttraw): Update prototype.
13064
13065 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
13066 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
13067
130682008-08-23 Jason Rumney <jasonr@gnu.org>
13069
13070 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
13071 (fn_TIFFSetDirectory): New library function used.
13072 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
13073 (tiff_load): Use :index to select among multiple images. Set count
13074 property when multiple images exist.
13075 (gif_format): Use :index, not :image.
13076
130772008-08-23 Chong Yidong <cyd@stupidchicken.com>
13078
13079 * xdisp.c (try_scrolling): Check INT_MAX instead of
13080 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
13081 to obtain INT_MAX.
13082
130832008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
13084
13085 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
13086
130872008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
13088
13089 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
13090 GNUstep library location.
13091
130922008-08-21 Chong Yidong <cyd@stupidchicken.com>
13093
13094 * xfaces.c (x_update_menu_appearance): Check validity of menu font
13095 before using it.
13096
13097 * puresize.h (BASE_PURESIZE): Increase to 1250000.
13098
130992008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13100
13101 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
13102 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
13103 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
13104 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
13105 (EmacsApp-cursor_blink_handler): Remove declaration.
13106 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
13107 match 01 Feb 2008 changes in xterm.c.
13108 (ns_read_socket): Add cast to avoid warning.
13109 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
13110 GNUstep.
13111
131122008-08-20 Chong Yidong <cyd@stupidchicken.com>
13113
13114 * xselect.c (x_get_foreign_selection): Return nil if desired
13115 selection could not be obtained, instead of signalling an error.
13116
131172008-08-20 David Reitter <david.reitter@gmail.com>
13118
13119 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
13120 * nsterm.m: Remove ns-specific code for cursor blinking.
13121 (ns_draw_window_cursor): Clear cursor properly rather than
13122 redrawing the area. Respect width of bar cursors.
13123 These changes enable the use of generic blink-cursor-mode and
13124 generic cursor types in NS and support smooth cursor movements (do
13125 not blink off after command).
13126 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
13127 Nextstep, too.
13128
131292008-08-19 Kenichi Handa <handa@m17n.org>
13130
13131 * font.c (Vfont_log_deferred): New variable.
13132 (font_add_log): Check Vfont_log_deferred.
13133 (font_deferred_log): New function.
13134
13135 * font.h (font_deferred_log): Extern it.
13136
13137 * fontset.c (reorder_font_vector): Use encoding charset of fonts
13138 for sorting.
13139 (face_for_char): Use deferred log.
13140
131412008-08-18 Kenichi Handa <handa@m17n.org>
13142
13143 * fontset.c (face_for_char): Add font log.
13144
13145 * font.c (font_add_log): Add the font properties :script, :lang,
13146 and :otf in the log.
13147
131482008-08-17 Chong Yidong <cyd@stupidchicken.com>
13149
13150 * xdisp.c: Remove dead code.
13151 (handle_invisible_prop, next_overlay_string): Defer call to
13152 setup_for_ellipsis.
13153 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
13154
131552008-08-15 Chong Yidong <cyd@stupidchicken.com>
13156
13157 * xfaces.c (lookup_derived_face): Properly handle possible zero
13158 return value of get_lface_attributes.
13159 (merge_faces): Don't tell lookup_derived_face to signal an error
13160 if face is not found.
13161
13162 * dired.c (Fdirectory_files): Doc fix.
13163
13164 * process.c (make_process): Initialize kill_without_query struct
13165 member.
13166
131672008-08-15 Eli Zaretskii <eliz@gnu.org>
13168
13169 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
13170 Alternative calculation of totphys for Visual Studio 6.
13171
13172 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
13173
13174 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
13175 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
13176 All users changed.
13177 (stat): Only root directory passed to GetDriveType. Allow RAM
13178 disk as well as local fixed disk when w32-get-true-file-attributes
13179 is set to `local'.
13180 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
13181 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
13182 (w32_cached_id, w32_add_to_cache): New functions.
13183 (get_name_and_id): Look account names in the cache before calling
13184 lookup_account_sid.
13185 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
13186 New initialization flags.
13187 (globals_of_w32): Initialize them to zero.
13188 (w32_system_process_attributes): Use w32_cached_id and
13189 w32_add_to_cache.
13190
131912008-08-14 Lawrence Mitchell <wence@gmx.li>
13192
13193 * lread.c (Fread_char, Fread_char_exclusive): If no character
13194 event is read before timeout is reached, return nil, rather than
13195 converting to a number.
13196
131972008-08-14 Chong Yidong <cyd@stupidchicken.com>
13198
13199 * fns.c (use_dialog_box): Doc fix.
13200
13201 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
13202 on OS X.
13203
132042008-08-13 Chong Yidong <cyd@stupidchicken.com>
13205
13206 * frame.c (Qns_parse_geometry): New var.
13207 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
13208
132092008-08-11 Chong Yidong <cyd@stupidchicken.com>
13210
13211 * xdisp.c (x_produce_glyphs): Handle the case when font has no
13212 space character in calculating tabs.
13213
132142008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
13215
13216 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
13217
132182008-08-10 Glenn Morris <rgm@gnu.org>
13219
13220 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
13221 silence gcc "limited range of data type" warnings in some
13222 make_fixnum_or_float calls.
13223
132242008-08-09 Eli Zaretskii <eliz@gnu.org>
13225
13226 * w32.c (w32_system_process_attributes): If the process does not
13227 exist, return nil.
13228
13229 * w32.c: Include thelp32.h, psapi.h and coding.h.
13230 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
13231 declarations.
13232 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
13233 (Process32Next_Proc): New typedefs.
13234 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
13235 (g_b_init_process32_next, g_b_init_open_thread_token)
13236 (g_b_init_impersonate_self, g_b_init_revert_to_self)
13237 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
13238 (g_b_init_get_process_working_set_size)
13239 (g_b_init_global_memory_status_ex): New static variables.
13240 (globals_of_w32): Initialize them.
13241 (create_toolhelp32_snapshot, process32_first, process32_next)
13242 (open_thread_token, impersonate_self, revert_to_self)
13243 (get_process_memory_info, get_process_working_set_size)
13244 (global_memory_status, global_memory_status_ex): New wrapper
13245 functions.
13246 (w32_list_system_processes, w32_system_process_attributes)
13247 (enable_privilege, restore_privilege, ltime, process_times):
13248 New functions.
13249 (convert_time_raw): New function.
13250 (convert_time): Remove conversion of FILETIME into time in 100
13251 nsec units, call convert_time_raw instead.
13252
13253 * process.h (w32_list_system_processes, w32_system_process_attributes):
13254 Add prototypes.
13255 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
13256 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
13257 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
13258 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
13259
13260 * process.c (Fsystem_process_attributes): Doc fix.
13261
132622008-08-08 Chong Yidong <cyd@stupidchicken.com>
13263
13264 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
13265 a continued multi-char glyph; if so, advance to the actual glyph.
13266
132672008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
13268
13269 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
13270
13271 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
13272 (.m.o): Use it.
13273 * config.in: Regenerate.
13274
132752008-08-07 Chong Yidong <cyd@stupidchicken.com>
13276
13277 * xdisp.c (redisplay_window): Revert last change.
13278 (try_window): Check bottom scroll margin too.
13279
132802008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13281
13282 * config.in: Regenerate.
13283
13284 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
13285 -list-load-path-shadows'.
13286 (nsgui.h): Reduce number of things depending on it.
13287
132882008-08-06 Chong Yidong <cyd@stupidchicken.com>
13289
13290 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
13291 instead of window-end which does the wrong thing at eob.
13292 (try_cursor_movement): Minor optimization.
13293 (redisplay_window): If scroll margin is defined, don't assume
13294 window doesn't need scrolling.
13295
132962008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13297
13298 * config.in: Regenerate.
13299
13300 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
13301 (mostlyclean): Don't delete *.d under NS.
13302
13303 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
13304
133052008-08-06 Kenichi Handa <handa@m17n.org>
13306
13307 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
13308
133092008-08-06 Andreas Schwab <schwab@suse.de>
13310
13311 * config.in: Regenerate.
13312
133132008-08-05 Chong Yidong <cyd@stupidchicken.com>
13314
13315 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
13316 forcing a window start.
13317
13318 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
13319 (auto_save_1): Update modtime when auto-save-list-file-name is on.
13320
133212008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13322
13323 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
13324 argument.
13325
133262008-08-05 Juanma Barranquero <lekktu@gmail.com>
13327
13328 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
13329 <scroll-down-aggressively, before-change-functions>:
13330 <after-change-functions>: Reflow docstrings.
13331
133322008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 13333 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
13334
13335 Dock menu customization, based on a patch by Ken Raeburn, plus some
13336 other fixes.
13337 * nsmenu.m (dockMenu): New variable.
13338 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
13339
13340 * nsterm.h (dockMenu): Declare.
13341
13342 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
13343 (ns_term_init): Initialize dockMenu.
13344 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
13345 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
13346 left.
13347
13348 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
13349
133502008-08-04 Chong Yidong <cyd@stupidchicken.com>
13351
13352 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
13353
13354 * config.in: Regenerate.
13355
133562008-08-04 Seiji Zenitani <zenitani@mac.com>
13357
13358 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
13359
133602008-08-04 Chong Yidong <cyd@stupidchicken.com>
13361
13362 * nsterm.h (find_and_call_menu_selection): Fix prototype.
13363
133642008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13365
13366 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
13367
13368 * keyboard.h: Comment an #endif.
13369
13370 * lisp.h (have_menus_p): Adjust comment.
13371
13372 * menu.c (find_and_return_menu_selection): Fix comparison with
13373 client_data.
13374
13375 * nsmenu.m (popup_activated_flag): New variable.
13376 (popup_activated): New function.
13377 (menu-or-popup-active-p): New exported lisp definition.
13378 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
13379 when popup done.
13380 (ns_popup_dialog): Set popup_activated_flag.
13381
13382 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
13383 version for GNUstep (handled by conditional typedef in nsterm.m).
13384 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
13385 in rgb.txt).
13386
13387 * process.c (init_process): Use DARWIN_OS, not DARWIN.
13388
13389 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
13390
13391 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
13392
13393 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
13394 shortcircuit if popup_activated like GTK and X toolkit.
13395
13396 * m/inter386.h: Change DARWIN to DARWIN_OS.
13397
13398 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
13399 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
13400 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
13401 comment on NO_SOCK_SIGIO.
13402
134032008-08-03 Chong Yidong <cyd@stupidchicken.com>
13404
13405 * nsterm.m (windowDidResize): Remove stopModal call.
13406
134072008-08-03 Andreas Schwab <schwab@suse.de>
13408
13409 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
13410 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
13411
134122008-08-02 Chong Yidong <cyd@stupidchicken.com>
13413
13414 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
13415 Don't use uninitialized pointer variable when using getrlimit.
13416
134172008-08-02 Jason Rumney <jasonr@gnu.org>
13418
13419 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
13420
134212008-08-02 Eli Zaretskii <eliz@gnu.org>
13422
13423 * alloc.c (NSTATICS): Bump to 0x640.
13424
13425 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
13426
13427 * lisp.h: Add prototype for directory_files_internal.
13428
13429 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
13430 New functions.
13431 (syms_of_process): Defsubr them. Add initializations for various
13432 Q* symbols used in procfs_system_process_attributes.
13433 (procfs_list_system_processes, procfs_system_process_attributes)
13434 [HAVE_PROCFS]: New functions.
13435 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
13436 (procfs_get_total_memory): New functions.
13437
134382008-08-01 Juanma Barranquero <lekktu@gmail.com>
13439
13440 * xfaces.c (Fx_load_color_file): Fix previous change;
13441 it is #ifdef WINDOWSNT, not WINDOWS_NT.
13442
134432008-08-01 Michael Albinus <michael.albinus@gmx.de>
13444
13445 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
13446
134472008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13448
13449 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
13450
134512008-08-01 Chong Yidong <cyd@stupidchicken.com>
13452
13453 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
13454
13455 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
13456 define NSApplicationDelegateReplySuccess.
13457 (EmacsView -converstationIdentifier): Use long instead of
13458 NSInteger for GNUstep, since it doesn't have NSInteger.
13459
13460 * xmenu.c: Revert last change.
13461
13462 * keyboard.h: Fix last change.
13463
134642008-08-01 Juanma Barranquero <lekktu@gmail.com>
13465
13466 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
13467 on Windows.
13468
134692008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13470
13471 Warning clearing and clean-up in NS port.
13472 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
13473 Add prototypes.
13474 * nsgui.h (FACE_DEFAULT): Remove, unused.
13475 (XGCValues): Change colors to unsigned long.
13476 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
13477 nsterm.m.
13478 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
13479 (ns_list_fonts): Remove, unused.
13480 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
13481 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
13482 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
13483 (nsfont_draw): Compare face colors to 0, not nil.
13484 * nsmenu.m (struct widget_value): Drop unneeded declaration.
13485 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
13486 (-addSubmenuWithTitle:): Use NSMenuItem class.
13487 (ns_popup_menu): Use NO, not NULL, for enabled setting.
13488 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
13489 (ns_clip_to_row): Make gc arg a BOOL.
13490 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
13491 ns_clip_to_row() call.
13492 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
13493 used). Cast FRAME_FONT assignments.
13494 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
13495 (ns_string_to_lispmod): Change arg to const char.
13496 (ns_term_init): Use NSMenuItem class.
13497 (EmacsApp -openFile:): Move to different section of file.
13498 (EmacsApp -application:openFiles:): Don't return a value, call
13499 -replyToOpenOrPrint:.
13500 (EmacsView -keyDown:): Fix up cast.
13501 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
13502 (EmacsView -menuDown:): Cast tag in call to
13503 find_and_call_menu_selection().
13504 (ns_list_fonts): Remove, unused.
13505 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
13506 (ns_fontname_to_xlfd): Make static.
13507 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
13508 Remove prototypes (now in keyboard.h).
13509 (next_menubar_widget_id): Remove, unused.
13510 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
13511 Remove prototypes (now in keyboard.h).
13512 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
13513
135142008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
13515
13516 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
13517 (floatfns.o): Depend on syssignal.h.
13518 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
13519
13520 * systty.h: Fix previous change that removed BSD_TERMIOS.
13521 Add comments to #ifdefs.
13522
135232008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13524
13525 * w32fns.c (w32-load-color-file): Remove.
13526 (x-open-connection): Use renamed Fx_load_color_file.
13527 * xfaces.c (x-load-color-file): Add.
13528 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
13529 Emacs.clr.
13530 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
13531
135322008-07-31 Michael Albinus <michael.albinus@gmx.de>
13533
13534 * dbusbind.c (Fdbus_call_method_asynchronously)
13535 (Fdbus_method_error_internal): New defuns.
13536 (xd_read_message): Handle also reply messages.
13537 (Vdbus_registered_functions_table): Extend docstring.
13538
135392008-07-31 Juanma Barranquero <lekktu@gmail.com>
13540
13541 * keyboard.c (gobble_input): Fix previous change.
13542
135432008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13544
13545 * bitmaps/README:
13546 * xfns.c:
13547 * termcap.c:
13548 * term.c:
13549 * syswait.h:
13550 * systty.h:
13551 * systime.h:
13552 * syssignal.h:
13553 * sysdep.c:
13554 * process.h:
13555 * process.c:
13556 * print.c:
13557 * ndir.h:
13558 * lread.c:
13559 * keyboard.c:
13560 * getpagesize.h:
13561 * floatfns.c:
13562 * fileio.c:
13563 * emacs.c:
13564 * doc.c:
13565 * dispnew.c:
13566 * dired.c:
13567 * data.c:
13568 * callproc.c:
13569 * buffer.c:
13570 * README:
13571 * Makefile.in:
13572 * s/template.h:
13573 * s/msdos.h:
13574 * m/vax.h: Remove VMS support.
13575 * s/vms.h:
13576 * vlimit.h:
13577 * uaf.h:
13578 * temacs.opt:
13579 * param.h:
13580 * ioctl.h: Remove file.
13581
135822008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13583
13584 * s/ms-w32.h (MULTI_KBOARD): Remove.
13585 * xterm.c:
13586 * xselect.c:
13587 * xfns.c:
13588 * window.c:
13589 * w32term.c:
13590 * w32fns.c:
13591 * terminal.c:
13592 * termhooks.h:
13593 * term.c:
13594 * sysdep.c:
13595 * keyboard.h:
13596 * keyboard.c:
13597 * frame.h:
13598 * frame.c:
13599 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
13600 * config.in: Regenerate.
13601
136022008-07-30 Jason Rumney <jasonr@gnu.org>
13603
13604 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
13605
13606 * w32font.c (w32font_encode_char): Leave as unicode if in range.
13607 (w32font_open_internal): Get unicode version of textmetrics.
13608 Don't enable or disable glyph indices here.
13609 (w32font_open): Disable use of glyph indices.
13610
13611 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
13612
136132008-07-30 Chong Yidong <cyd@stupidchicken.com>
13614
13615 * minibuf.c (Vread_buffer_function): Doc fix.
13616
136172008-07-30 John Paul Wallington <jpw@pobox.com>
13618
13619 * minibuf.c (read_buffer_completion_ignore_case): New var.
13620 (Fread_buffer): Use it.
13621
136222008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
13623
13624 * systty.h (sensemode): Remove empty #if. Remove reference to
13625 BSD_TERMIOS, unused.
13626
13627 * sysdep.c: Remove reference to DGUX.
13628 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
13629
13630 * config.in: Regenerate.
13631
136322008-07-30 Jason Rumney <jasonr@gnu.org>
13633
13634 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
13635
136362008-07-29 Jason Rumney <jasonr@gnu.org>
13637
13638 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
13639 is populated.
13640 (uniscribe_encode_char): Always use uniscribe.
13641 Avoid using context if cache is populated.
13642
136432008-07-29 Jan Djärv <jan.h.d@swipnet.se>
13644
13645 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
13646 open menu.
13647
13648 * gtkutil.c (menu_nav_ended): Remove.
13649 (create_menus): Remove signal connect for menu_nav_ended.
13650
136512008-07-28 Chong Yidong <cyd@stupidchicken.com>
13652
13653 * xdisp.c (redisplay_window): Check return value of
13654 compute_window_start_on_continuation_line before forcing a window
13655 start.
13656
136572008-07-28 Jason Rumney <jasonr@gnu.org>
13658
13659 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
13660
13661 * w32term.c (w32_enable_unicode_output, cleartype_active):
13662 Remove obsolete display options.
13663 (x_draw_glyph_string_background): Don't use old cleartype_active
13664 workaround.
13665 (w32_initialize): Remove cleartype_active initialization.
13666 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
13667
136682008-07-28 Andreas Schwab <schwab@suse.de>
13669
13670 * lisp.h (init_weak_hash_tables, syms_of_font)
13671 (xd_read_queued_messages, syms_of_dbusbind): Declare.
13672 (remove_hash_entry): Don't declare.
13673 * eval.c (maybe_call_debugger): Make static and move before use.
13674 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
13675 * xdisp.c: Include "gtkutil.h" if USE_GTK.
13676 * xterm.h (x_set_frame_alpha): Declare.
13677
136782008-07-28 Jan Djärv <jan.h.d@swipnet.se>
13679
13680 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
13681 (create_menus): Connect selection-done to menu_nav_ended.
13682
136832008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13684
13685 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
13686 Set Vx_resource_name to a fallback. Replace read of 'buffered'
13687 parameter with read of 'alpha' one.
13688 (Qns_frame_parameter): Remove.
5582fbc7 13689 * nsselect.m (selection-coding-system)
aac0c6e3
MR
13690 (next-selection-coding-system, Vselection_coding_system)
13691 (Vnext_selection_coding_system): Drop.
13692
136932008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13694
13695 * nsfns.m (do-applescript, do_applescript): Rename to
13696 ns-do-applescript, ns_do_applescript, and move within file.
13697
136982008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
13699
13700 Remove support for Mac Carbon.
13701 * mactoolbox.c:
13702 * macterm.h:
13703 * macterm.c:
13704 * macselect.c:
13705 * macmenu.c:
13706 * macgui.h:
13707 * macfns.c:
13708 * mac.c: Remove file.
13709 * s/darwin.h:
13710 * m/intel386.h:
13711 * xfaces.c:
13712 * xdisp.c:
13713 * window.c:
13714 * tparam.c:
13715 * termhooks.h:
13716 * termcap.c:
13717 * term.c:
13718 * syssignal.h:
13719 * sysselect.h:
13720 * sysdep.c:
13721 * process.c:
13722 * lread.c:
13723 * lisp.h:
13724 * keyboard.c:
13725 * image.c:
13726 * fringe.c:
13727 * frame.h:
13728 * frame.c:
13729 * fontset.c:
13730 * font.h:
13731 * font.c:
13732 * fns.c:
13733 * fileio.c:
13734 * emacs.c:
13735 * dispnew.c:
13736 * dispextern.h:
13737 * config.in:
13738 * atimer.c:
2ae37cf0 13739 * Makefile.in: Remove code for Carbon.
aac0c6e3 13740
f0131492 137412008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
13742
13743 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
13744
137452008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13746
13747 * macterm.h (kCGBitmapByteOrder32Host): New define for
13748 non-universal SDKs.
13749
13750 * image.c (mac_create_cg_image_from_image, image_load_image_io)
13751 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13752
13753 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
13754 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13755
137562008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
13757
13758 * w32inevt.c: Include dispextern.h.
13759
137602008-07-26 Andreas Schwab <schwab@suse.de>
13761
13762 * print.c (print_object): Fix off-by-one in last change.
13763
137642008-07-25 Juanma Barranquero <lekktu@gmail.com>
13765
13766 * term.c (syms_of_term): Don't initialize default_orig_pair,
13767 default_set_foreground and default_set_background on Windows.
13768
137692008-07-25 Jason Rumney <jasonr@gnu.org>
13770
13771 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
13772 ScriptItemize. Clean up return value checking. Remove unused
13773 variables.
13774 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
13775 shaping engine.
13776
13777 * w32font.c (w32font_has_char): Handle the case where we can't
13778 determine the script for a character.
13779
137802008-07-25 Chong Yidong <cyd@stupidchicken.com>
13781
13782 * term.c (syms_of_term): Initialize default_orig_pair,
13783 default_set_foreground, and default_set_background.
13784
13785 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
13786 clash (bug#86).
13787 (getloadavg): Callers changed.
13788
13789 * image.c (svg_load_image): Fix last change.
13790 (svg_load_image): Use rsvg_handle_get_dimensions to check that
13791 image size is valid. Use g_object_unref instead of deprecated
13792 rsvg_handle_free to free rsvg handle.
13793 (x_from_xcolors): Don't initialize pixmap (silence compiler).
13794
137952008-07-25 Jason Rumney <jasonr@gnu.org>
13796
13797 * w32font.c (w32font_encode_char): Encode characters outside BMP as
13798 surrogates before looking up glyph index.
13799 (w32font_text_extents): Encode as surrogates if falling back to
13800 functions that need UTF-16 wide chars.
13801
13802 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
13803 BMP as surrogates before looking up glyph index.
13804
138052008-07-25 Chong Yidong <cyd@stupidchicken.com>
13806
13807 * image.c (svg_load_image): Check for failure in return value of
13808 rsvg_handle_get_pixbuf. Free rsvg handle when done.
13809
138102008-07-25 Jason Rumney <jasonr@gnu.org>
13811
13812 * w32font.c (Fx_select_font): Reverse sense of second arg.
13813
138142008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
13815
13816 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
13817 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
13818
13819 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
13820 (PURESIZE): Use it.
13821
138222008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
13823
13824 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
13825 * m/alpha.h (TEXT_END):
13826 * m/ibmrs6000.h (TEXT_END):
13827 * m/macppc.h (TEXT_END):
13828 * s/darwin.h (TEXT_END):
13829 * s/msdos.h (TEXT_END): Remove, unused.
13830 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
13831 * s/cygwin.h: Remove comment.
13832
13833 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
13834 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
13835 * m/intel386.h (DOT_GLOBAL_START):
13836 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
13837 (USG): Remove, file not used on USG platforms.
13838
13839 * Makefile.in (HAVE_X11): Remove empty #else.
13840
138412008-07-24 Andreas Schwab <schwab@suse.de>
13842
13843 * fileio.c (Finsert_file_contents): Properly adjust undo list
13844 after format conversion.
13845
138462008-07-24 Jan Djärv <jan.h.d@swipnet.se>
13847
13848 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
13849 (menu_nav_ended): Remove.
13850 (create_menus): Remove signal connect for menu_nav_ended.
13851 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
13852 create_menus.
13853 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
13854
138552008-07-23 Jason Rumney <jasonr@gnu.org>
13856
13857 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
13858 with opened font.
13859 (w32font_open): Set font type to gdi.
13860
13861 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
13862
138632008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
13864
13865 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
13866 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
13867 defines it.
13868 * unexec.c (ADDR_CORRECT): Define unconditionally.
13869
13870 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
13871
13872 * unexec.c: Remove code depending on !COFF and USG, the file is
13873 not used for such systems.
13874
13875 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
13876 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
13877 (LD_SWITCH_SYSTEM_1): Remove, update users.
13878
13879 * s/darwin.h (DATA_END):
13880 * m/intel386.h (DATA_END):
13881 * m/ibmrs6000.h (DATA_END):
13882 * m/alpha.h (DATA_END): Remove, unused.
13883
13884 * config.in: Regenerate.
13885 * s/ms-w32.h (subprocesses): Define unconditionally.
13886 * s/template.h (subprocesses): Update comment.
13887 * s/vms.h (subprocesses):
13888 * s/usg5-4.h (subprocesses):
13889 * s/hpux10-20.h (subprocesses):
13890 * s/gnu-linux.h (subprocesses):
13891 * s/cygwin.h (subprocesses):
13892 * s/bsd-common.h (subprocesses):
13893 * s/aix4-2.h (subprocesses):
13894 * s/darwin.h (subprocesses): Do not define, defined by default now.
13895
13896 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
13897 Remove all references.
13898 (temacs): Add GNUstep specific ld flags.
13899
13900 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
13901 similarly to what X does.
13902
139032008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13904
13905 * nsfns.m (x-list-fonts): Remove.
13906 (syms_of_nsfns): Drop the x-list-fonts declaration.
13907 * nsterm.m: Get rid of remaining "//" comments.
13908
139092008-07-22 Chong Yidong <cyd@stupidchicken.com>
13910
13911 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
13912
13913 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
13914 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
13915 (Fns_own_selection_internal, Fx_disown_selection_internal)
13916 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
13917
13918 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
13919 ... */' style of docstrings. Doc fixes.
13920
139212008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13922
13923 * terminfo.c (UP, BC, PC): Undo previous change.
13924
13925 * nsfns.m: Rename ns prefixed functions/variables to the
13926 corresponding x versions. Update references.
13927
139282008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
13929
13930 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
13931
139322008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13933
13934 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
13935 Remove forwarding functions.
13936 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
13937 non-static.
13938 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
13939 non-static.
13940 (ns_frame_parm_handlers): Use the new names.
13941 (syms_of_nsfns): Move to the end of file.
13942
13943 * nsterm.m (syms_of_nsterm): Move to the end of file.
13944
13945 * dispnew.c (init_display): Remove code for X10.
13946
139472008-07-22 Jason Rumney <jasonr@gnu.org>
13948
13949 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
13950 bare drive.
13951
139522008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13953
13954 * nsterm.m (syms_of_nsterm): Remove debugging println.
13955
139562008-07-22 David Reitter <david.reitter@gmail.com>
13957
13958 * nsfns.m (do_applescript, F_do_applescript): NS version of the
13959 Carbon implementation of the same functionality: execute arbitrary
13960 AppleScript code.
13961
139622008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13963
13964 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
13965 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
13966 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
13967 (Fx_display_mm_height, Fx_display_mm_width)
13968 (Fx_display_backing_store, Fx_display_visual_class)
13969 (Fx_display_save_under, Fx_open_connection)
13970 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
13971 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
13972 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13973 (Fx_display_pixel_width, Fx_display_pixel_height)
13974 (Fx_display_usable_bounds, Fx_display_planes)
13975 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
13976 ... */' style of docstrings.
13977
139782008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
13979
13980 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
13981 on this platform.
13982 (mips):
13983 * m/iris4d.h (mips): Do not define.
13984 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
13985
13986 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
13987
13988 * image.c:
13989 * nsfns.m:
13990 * nsselect.m:
13991 * nsterm.h:
13992 * nsterm.m: Rename ns prefixed functions/variables to the
13993 corresponding x versions. Update references.
13994
13995 * m/ibms390x.h (NO_REMAP): Do not undefine.
13996
13997 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
13998
139992008-07-21 Chong Yidong <cyd@stupidchicken.com>
14000
14001 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
14002 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
14003 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
14004 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
14005 (Fns_display_mm_height, Fns_display_mm_width)
14006 (Fns_display_backing_store, Fns_display_visual_class)
14007 (Fns_display_save_under, Fns_open_connection)
14008 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
14009 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
14010 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
14011 (Fns_display_pixel_width, Fns_display_pixel_height)
14012 (Fns_display_usable_bounds, Fx_display_planes)
14013 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
14014
140152008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
14016
14017 * print.c (print_object): Check print_depth before searching for
14018 circularities.
14019
140202008-07-21 Michael Albinus <michael.albinus@gmx.de>
14021
14022 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
14023 only sprintf.
14024
140252008-07-21 Kenichi Handa <handa@m17n.org>
14026
14027 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
14028
140292008-07-20 Andreas Schwab <schwab@suse.de>
14030
14031 * syntax.c (find_start_pos, find_start_value)
14032 (find_start_value_byte, find_start_begv, find_defun_start)
14033 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
14034
140352008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
14036
14037 * s/sol2-3.h: Insert contents of s/sol2.h.
14038 (LD_SWITCH_SYSTEM): Remove redundant definition.
14039 * s/sol2.h: Remove, unused.
14040
140412008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14042
14043 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
14044
140452008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14046
14047 * Makefile.in (ns_appdir): Fix typo in find command.
14048
140492008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
14050
14051 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
14052
14053 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
14054 added not supported anymore.
14055
14056 * s/usg5-4-2.h (LIBS_SYSTEM):
14057 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
14058
14059 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14060 * s/lynxos.h (GETPGRP_NO_ARG):
14061 * s/hpux10-20.h (NO_SIOCTL_H):
14062 * s/gnu.h (GETPGRP_NO_ARG):
14063 * s/gnu-linux.h (NO_SIOCTL_H):
14064 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14065 * s/cygwin.h (GETPGRP_NO_ARG):
14066 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
14067 (C_DEBUG_SWITCH): Remove duplicate definition.
14068
14069 * m/ibms390.h: Remove boilerplate comments.
14070
14071 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
14072
14073 * process.c (HAVE_SERIAL): Consolidate ifdefs.
14074 (wait_reading_process_output): Remove code for SunOS, platform not
14075 supported anymore. Use SOLARIS2 instead of sun.
14076
140772008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14078
14079 * font.c (font_open_by_name): Under NS, default lface height to zero.
14080 (font_open_for_lface): Under NS, set size based on frame fontsize.
14081 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
14082 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
14083
140842008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14085
14086 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
14087 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
14088 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
14089 YES/NO.
14090 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
14091 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
14092 * Makefile.in (clean): Clear out build destination dir.
14093
140942008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14095
14096 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
14097 xterm, xselect.
14098 * lisp.h: Remove declaration of hash_remove.
14099 * nsgui.h: Remove redefinitions of hash_remove.
14100 * fns.c (hash_remove): Rename to hash_remove_from_table.
14101
141022008-07-19 Seiji Zenitani <zenitani@mac.com>
14103
14104 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
14105 strdup() the family UTF8String before modifying it.
14106
141072008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14108
14109 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
14110 NS_FACE_BACKGROUND with 0 instead of nil.
14111 * nsfont.m (nsfont_draw): Same.
14112
141132008-07-19 Chong Yidong <cyd@stupidchicken.com>
14114
14115 * nsfns.m (ns_set_background_color): Fix crash.
14116
141172008-07-18 Chong Yidong <cyd@stupidchicken.com>
14118
14119 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
14120
141212008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
14122
14123 * puresize.h (BASE_PURESIZE): Increase to 1240000.
14124
141252008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14126
14127 * gtkutil.c: Include <config.h> instead of "config.h".
14128
14129 * lisp.h (Foverlay_buffer): Add EXFUN.
14130
14131 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
14132 child process to complete child_setup. Undo 2005-09-21 change.
14133
14134 * s/darwin.h: Mention setsid after vfork.
14135
141362008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14137
14138 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
14139 Depend on macgui.h.
14140
14141 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
14142 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
14143
14144 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
14145 and f19.
14146 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
14147
14148 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
14149 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
14150 Remove enumerators.
14151
14152 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
14153 Check if FACE_FROM_ID returns NULL.
14154
141552008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
14156
14157 * w32inevt.c (change_frame_size): Remove extern declaration.
14158 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
14159 change_frame_size.
14160
141612008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
14162
14163 * getloadavg.c: Revert last change (2008-07-15).
14164
141652008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
14166
14167 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 14168 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
14169 from configure.
14170
141712008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
14172
14173 * s/sol2.h:
14174 * s/sol2-4.h: Reorganize conditionals.
14175
14176 * ecrt0.c: Remove code depending on m68000, not used anymore.
14177
14178 * fns.c (hash_remove): Make static.
14179 * lisp.h (hash_remove): Don't prototype.
14180
14181 * m/ibmrs6000.h:
14182 * m/ibms390x.h:
14183 * m/macppc.h: Remove boilerplate comments.
14184
14185 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
14186 Solaris, which does not need them.
14187
14188 * m/vax.h: Remove comments about unsupported systems.
14189
14190 * s/darwin.h: Reorganize ifdefs.
14191
141922008-07-17 Andreas Schwab <schwab@suse.de>
14193
14194 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
14195
141962008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
14197
14198 Use SDATA. Follow coding convention of placing operators at
14199 beginning of next line rather than end of previous line, and placing
14200 spaces around infix operators.
14201
14202 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
14203 in case it was defined already.
14204 USE @GNUSTEP_MAKEFILES@ rather than envvars.
14205 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
14206 ns_default.
14207 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
14208 Lisp_Objects.
14209 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
14210 (ns_defined_color, ns_color_to_lisp): Declare.
14211 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
14212 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
14213 it's accepted even with USE_LISP_UNION_TYPE.
14214 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
14215 (update_frame_tool_bar): Remove apparently obsolete tests for
14216 non-integerness of f->tool_bar_lines.
14217 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
14218 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
14219 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
14220 (nsfont_open): Don't confuse NULL for Qnil.
14221 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
14222 * menu.h (find_and_call_menu_selection):
14223 * menu.c (find_and_call_menu_selection): Use just int for vector size.
14224 (find_and_return_menu_selection): Always return something.
14225 * frame.h: Include dispextern.h for Display_Info.
14226 (display_x_get_resource): Declare.
14227
142282008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
14229
14230 * syntax.c: Remove stdio.h include accidentally introduced in
14231 Emacs.app commit.
14232 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
14233 NS_IMPL_COCOA.
14234 * keyboard.c (handle_async_input, input_available_signal): Remove
14235 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
14236
142372008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
14238
14239 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
14240 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
14241 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
14242 Use SDATA.
14243
14244 * keymap.c: Remove all NS-specific code.
14245 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
14246 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
14247 where_is_preferred_modifier, return a different value depending on how
14248 preferred is the binding.
14249 (where_is_internal): Adjust accordingly.
14250 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
14251 Adjust to new preferred_sequence_p.
14252 (syms_of_keymap): Declare `where-is-preferred-modifier'.
14253 * keyboard.c (parse_solitary_modifier): Not static any more.
14254 * keyboard.h (parse_solitary_modifier): Declare.
14255
142562008-07-16 Andreas Schwab <schwab@suse.de>
14257
14258 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
14259 of easymenu.
14260
142612008-07-16 Chong Yidong <cyd@stupidchicken.com>
14262
14263 * xdisp.c (move_it_in_display_line): Account for word wrap, so
14264 that we don't move off the line.
14265
142662008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
14267
14268 * keyboard.c (Qsuper): Remove.
14269 (parse_menu_item): Don't call where_is_internal specially for NS.
14270
142712008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
14272
14273 * s/gnu-linux.h: Remove boilerplate comments.
14274
14275 * m/alpha.h (__ELF__): Consolidate conditions.
14276
14277 * m/m68k.h (linux): Use GNU_LINUX instead.
14278 Remove boilerplate comments.
14279
14280 * m/intel386.h: Undo refactoring from previous change.
14281 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
14282 too, remove dead code.
14283 (linux): Use GNU_LINUX instead.
14284
142852008-07-16 Jason Rumney <jasonr@gnu.org>
14286
14287 * w32gui.h: Repeat 26 June changes lost by last change.
14288
142892008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
14290
14291 * systty.h: Remove code for Aix on 386, unsupported platform.
14292
14293 * s/ms-w32.h: Remove boilerplate comments.
14294 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
14295
14296 * s/gnu-linux.h (TERM): Remove support.
14297 (HAVE_SYSVIPC): Remove, unused.
14298 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
14299 for this system.
14300
14301 * process.c: Remove support for IRIS, unused.
14302 Remove support for TERM, not relevant anymore.
14303
14304 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
14305 used with the definition.
14306
14307 * s/aix4-2.h (static): Do not undef.
14308
14309 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
14310 only used on Aix.
14311 (HAVE_SYSVIPC): Remove, unused.
14312
14313 * m/hp800.h (CANNOT_DUMP): Do not undef.
14314
14315 * m/alpha.h: Fix comment.
14316
14317 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
14318 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
14319 used by this configuration.
14320 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
14321 * unexec.c: Remove code depending on HPUX and
14322 USG_SHARED_LIBRARIES, not used with this file. Remove code
14323 depending on IRIS, unused. Remove if 0-ed code.
14324
14325 * s/template.h: Remove comments about static.
14326
14327 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
14328 Remove if 0-ed code.
14329 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
14330 were the same as the default.
14331 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
14332 Remove boilerplate comments.
14333 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
14334 (HAVE_SYSVIPC): Remove, unused.
14335 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
14336
14337 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14338 Remove boilerplate comments.
14339 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14340 Remove boilerplate comments.
14341 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14342 Remove boilerplate comments.
14343 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
14344
14345 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
14346 USG systems which do not use DATA_SEG_BITS.
14347 Refactor code. Remove boilerplate comments.
14348
14349 * m/ibms390.h:
14350 * m/m68k.h:
14351 * s/bsd-common.h:
14352 * s/cygwin.h:
14353 * s/darwin.h:
14354 * s/freebsd.h:
14355 * s/gnu.h:
14356 * s/msdos.h: Remove boilerplate comments.
14357
14358 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 14359 do not use this file.
aac0c6e3
MR
14360 (IRIS_4D): Remove, unused.
14361
14362 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 14363 do not use this file.
aac0c6e3
MR
14364 (SIGN_EXTEND_CHAR):
14365 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
14366 * unexmips.c: Remove file, unused.
14367
14368 * editfns.c (Fuser_full_name): Replace the only use of
14369 USER_FULL_NAME with its value.
14370 * config.in: Regenerate.
14371
143722008-07-16 David Reitter <david.reitter@gmail.com>
14373
14374 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
14375 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
14376
143772008-07-16 Glenn Morris <rgm@gnu.org>
14378
14379 * emacs.c (system-type): Doc fix.
14380
143812008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
14382
14383 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
14384 If the cache doesn't work, let's fix it, rather than work around it.
14385
143862008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14387
14388 * Makefile.in: Correct additions for nsfont.o in last commit.
14389 * nsfont.m: New file (forgot last commit).
14390
143912008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
14392
14393 * callproc.c (set_initial_environment): Initialize
14394 Vprocess_environment under CANNOT_DUMP (fixes crash when
14395 batch-compiling for bootstrap).
14396
143972008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 14398 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 14399
c4cc8b9a
JB
14400 * frame.c (make_initial_frame): Call init_frame_faces(f) in
14401 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
14402
144032008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14404
14405 Changes and additions for NeXTstep windowing system (Cocoa and
14406 GNUstep) support.
14407
14408 * Makefile.in:
14409 * config.in: Support defines and build commands for NS port.
14410 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
14411 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
14412 * dispextern.h: Include nsgui.h and add needed typedefs under NS
14413 windowing.
14414 (struct face): Add synth_ital field.
14415 * dispnew.c: Include nsterm.h when compiling under NS windowing.
14416 (init_display): Initialize Vinitial_window_system to "ns" when so
14417 compiled.
14418 * emacs.c: Include GSConfig.h when compiling under GNUstep.
14419 (display_arg): Use under NS.
14420 (main): Under NS, allocate autorelease pool and handle command line
14421 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
14422 (standard_args): Add NS-specific args.
14423 (shut_down_emacs): Shut down NS terminal if compiled under NS.
14424 * font.c (DEFAULT_ENCODING): New variable.
14425 (font_find_for_lface): Use it.
14426 (syms_of_font): Load syms_of_nsfont under NS.
14427 * font.h: Declare nsfont_driver when compiled under NS.
14428 * fontset.c: When compiling under NS, include nsterm.h.
14429 (fontset_from_font): Autoconstruct fontset under NS.
14430 * frame.c (various): Under NS, include nsterm.h, add Qns window system
14431 symbol, document and use it.
14432 (do_switch_frame): When for_deletion under Cocoa, add
14433 Fraise_frame(Qnil).
14434 (x_set_frame_parameters): Ensure font attribute changes are picked up.
14435 (x_get_arg): Allow "yes" and "no" as boolean values.
14436 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
14437 Qright under Cocoa.
14438 (focus-follows-mouse): Default to 0 under NS.
14439 * frame.h (enum output_method): Add output_ns.
14440 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
14441 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
14442 (FRAME_WINDOW_P): NS-specific definition.
14443 * fringe.c (max_used_fringe_bitmap): Make public.
14444 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
14445 (getloadavg): Use NeXT code under descendant OS's.
14446 * image.c (includes and header section, x_create_bitmap_from_data)
14447 (x_create_bitmap_from_file, free_bitmap_record, image_background)
14448 (image_background_transparent, x_clear_image_1)
14449 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
14450 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
14451 (x_to_xcolors, x_from_xcolors, x_disable_image)
14452 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
14453 other GUIs, including XPM support using code originally written for
14454 Carbon GUI.
14455 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
14456 using NS API.
14457 (image_ascent): Use font metrics macros instead of direct struct field
14458 access.
14459 * keyboard.c (includes): Add nsterm.h when compiling under NS.
14460 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
14461 Also, handle NS as GTK for menu bar purposes.
14462 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
14463 toolkit where they differ.
14464 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
14465 use cachelist, still needed under NS.
14466 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
14467 (struct widget_value): Define it here for menu.c.
14468 * keymap.c (includes): Include modifier internals.
14469 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
14470 NS.
14471 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
14472 support for preferring sequences using certain modifiers, specified by
14473 the FIRSTONLY argument.
14474 * lisp.h (hash_remove): Rename to avoid name clash when compiling
14475 under NS GNUstep implementation.
14476 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
14477 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
14478 * menu.c: Include nsterm.h under NS.
14479 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
14480 (free_menubar_widget_tree_value, update_submenu_strings)
14481 (find_and_call_menu_selection): Treat NS as X and NT.
14482 (find_and_return_menu_selection): New function, used for popup menus.
14483 * nsgui.h:
14484 * nsterm.h:
14485 * nsfns.m:
14486 * nsimage.m:
14487 * nsmenu.m:
14488 * nsselect.m:
14489 * nsterm.m: New files.
14490 * process.c (wait_reading_process_output): Under NS, call ns_select()
14491 instead of plain select().
14492 * syntax.c (char_quoted): Under NS, avoid a crash when called near
14493 beginning of buffer.
14494 * sysselect.h (init_process): Rename when compiling under Cocoa to
14495 avoid name conflict.
14496 * termhooks.h (display_info): Add ns_display_info to union.
14497 * terminal.c (Fterminal_live_p): Add ns to terminal types.
14498 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
14499 COCOA environment.
14500 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
14501 unexec() signature. (Note, this will dump, but the resulting file
14502 crashes; unexosx is used instead; keeping around for reference and
14503 possible aid in getting dump working under GNUstep.)
14504 * w32gui.h (button_type, widget_value): Remove definitions (now in
14505 keyboard.h).
14506 * window.c: Include nsterm.h when compiling under NS.
14507 * xdisp.c (includes): Include nsterm.h when compiling under NS.
14508 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
14509 other GUI windowing systems.
14510 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
14511 GTK.
14512 (x_consider_frame_title): Under NS, set icon type and frame
14513 modified-state indicator; use ns_set_name_as_filename() when using
14514 formatted title.
14515 (update_window_cursor): Make public when compiling under NS.
14516 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
14517 (hourglass_atimer, Vhourglass_delay
14518 * xfaces.c (header section, init_frame_faces, clear_font_table)
14519 (defined_color, unload_color, x_face_list_fonts)
14520 (prepare_face_for_display): Add NS support parallel to other GUIs.
14521 Emulate GCs like other non-X GUIs.
14522 (split_font_name): Don't lowercase font name under NS.
14523 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
14524 under NS.
14525 * s/darwin.h: Add support for compilation under NS.
14526
145272008-07-15 Jason Rumney <jasonr@gnu.org>
14528
14529 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
14530 (w32_show_hourglass): Rename from show_hourglass.
14531 (w32_hide_hourglass): Rename from hide_hourglass.
14532 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
14533 (Vhourglass_delay): Declare extern.
14534 (hourglass_started): Remove.
14535
14536 * xdisp.c (Vhourglass_delay): Remove static.
14537 (hourglass_started, start_hourglass, cancel_hourglass):
14538 Don't include these versions on WINDOWSNT.
14539
145402008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14541
14542 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
14543 variables (formerly in xfns.c).
14544 (show_hourglass, hide_hourglass): New prototypes (same).
14545 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
14546 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
14547 in xfns.c).
14548 (syms_of_xdisp): Declare/initialize display-hourglass,
14549 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
14550 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
14551 formerly in xfns.c.
14552 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14553 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14554 (start_hourglass, cancel_hourglass): Remove.
14555 (show_hourglass, hide_hourglass): Remove prototypes and static
14556 modifiers.
14557 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
14558 hourglass_atimer, hourglass_shown_p declaration/initialization.
14559 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14560 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14561 (start_hourglass, cancel_hourglass): Remove.
14562 (show_hourglass, hide_hourglass): Remove prototypes and static
14563 modifiers.
14564 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
14565 hourglass_atimer, hourglass_shown_p declaration/initialization.
14566 * w32fns.c (display_hourglass_p, Vhourglass_delay)
14567 (DEFAULT_HOURGLASS_DELAY): Remove.
14568 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
14569 hourglass_shown_p declaration/initialization.
14570
145712008-07-14 Jason Rumney <jasonr@gnu.org>
14572
14573 * w32fns.c (w32_get_arg): Remove wrapper function.
14574 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
14575 directly.
14576 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
14577
145782008-07-14 Kenichi Handa <handa@m17n.org>
14579
14580 * xfont.c (xfont_open): Add workaround for X's bug.
14581
145822008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14583
14584 * fontset.c: Include <stdio.h> unconditionally.
14585
145862008-07-13 Michael Albinus <michael.albinus@gmx.de>
14587
14588 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
14589 for filtering.
14590
145912008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
14592
14593 * s/vms.h: Use __GNUC__ instead of _GNUC_.
14594
14595 * m/macppc.h:
14596 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
14597
c4cc8b9a 14598 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
14599 (SPECIAL_EMACS_INT):
14600 * m/ia64.h (SPECIAL_EMACS_INT):
14601 * m/amdx86-64.h (SPECIAL_EMACS_INT):
14602 * s/gnu.h (NLIST_STRUCT):
14603 * s/aix4-2.h (X11R5_INHIBIT_I18N):
14604 * s/gnu-linux.h (LINUX):
14605 * s/msdos.h (HAVE_FACES):
14606 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
14607
14608 * systty.h:
14609 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
14610 anymore.
14611
146122008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
14613
14614 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
14615 always defined as int.
14616
14617 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
14618 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
14619 * s/gnu-linux.h (HAVE_WAIT_HEADER):
14620 * s/freebsd.h (HAVE_WAIT_HEADER):
14621 * s/bsd-common.h (HAVE_UNION_WAIT):
14622 * s/aix4-2.h (HAVE_WAIT_HEADER):
14623 * m/mips.h (HAVE_UNION_WAIT):
14624 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
14625 (COFF, static): Do not define, they are undefined later in the file.
14626
14627 * process.c (update_status): Don't use a union.
14628 (status_convert):
14629 (sigchld_handler): Use int instead of WAITTYPE.
14630
146312008-07-12 Chong Yidong <cyd@stupidchicken.com>
14632
14633 * indent.c (Fvertical_motion): Restore hscroll before moving to
14634 goal column.
14635
146362008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14637
14638 * lisp.h: Remove left over code.
14639
146402008-07-11 Andreas Schwab <schwab@suse.de>
14641
14642 * lisp.h: Fix logic in last change.
14643
14644 * menu.h: New file.
14645 * menu.c: Include it.
14646 * xmenu.c: Likewise.
14647 * Makefile.in: Update dependencies.
14648
146492008-07-11 Kenichi Handa <handa@m17n.org>
14650
14651 * fontset.c (fontset_from_font): Cancel the previous change.
14652
146532008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14654
14655 * lisp.h:
14656 * w32heap.c:
14657 * emacs.c:
14658 * alloc.c: Replace all references of NO_UNION_TYPE with
14659 USE_LISP_UNION_TYPE.
14660
14661 * m/xtensa.h (NO_UNION_TYPE):
14662 * m/vax.h (NO_UNION_TYPE):
14663 * m/template.h (NO_UNION_TYPE):
14664 * m/sparc.h (NO_UNION_TYPE):
14665 * m/mips.h (NO_UNION_TYPE):
14666 * m/macppc.h (NO_UNION_TYPE):
14667 * m/m68k.h (NO_UNION_TYPE):
14668 * m/iris4d.h (NO_UNION_TYPE):
14669 * m/intel386.h (NO_UNION_TYPE):
14670 * m/ibms390x.h (NO_UNION_TYPE):
14671 * m/ibms390.h (NO_UNION_TYPE):
14672 * m/ibmrs6000.h (NO_UNION_TYPE):
14673 * m/ia64.h (NO_UNION_TYPE):
14674 * m/hp800.h (NO_UNION_TYPE):
14675 * m/arm.h (NO_UNION_TYPE):
14676 * m/amdx86-64.h (NO_UNION_TYPE):
14677 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
14678 defining it the same.
14679
146802008-07-10 Chong Yidong <cyd@stupidchicken.com>
14681
14682 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
14683
146842008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
14685
14686 * fileio.c:
50426a04 14687 * sysdep.c:
aac0c6e3
MR
14688 * systty.h:
14689 * m/ibmrs6000.h:
14690 * m/iris4d.h:
14691 * s/aix4-2.h:
14692 * s/freebsd.h:
14693 * s/gnu-linux.h:
14694 * s/hpux10-20.h:
14695 * s/hpux11.h:
14696 * s/netbsd.h:
14697 * s/sol2-3.h:
14698 * s/sol2-4.h:
14699 * s/sol2.h:
14700 * s/usg5-4.h:
14701 * s/vms.h: Remove references to unused variables.
14702
147032008-07-10 Andreas Schwab <schwab@suse.de>
14704
14705 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
14706 pattern before matching the generic family.
14707
147082008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
14709
14710 * unexec.c:
14711 * s/vms.h:
14712 * s/usg5-4-2.h:
14713 * s/sol2-5.h:
14714 * s/freebsd.h:
14715 * s/darwin.h: Remove dead code.
14716
14717 * m/template.h:
14718 * m/sparc.h:
14719 * m/mips.h:
14720 * m/m68k.h:
14721 * m/iris4d.h:
14722 * m/intel386.h:
14723 * m/ibms390x.h:
14724 * m/ibms390.h:
14725 * m/ia64.h:
14726 * m/hp800.h:
14727 * m/arm.h:
14728 * m/amdx86-64.h: Remove dead code and references to unused
14729 and compiler defined symbols.
14730
14731 * unexmips.c:
14732 * unexelf.c: Remove references to desupported systems.
14733
14734 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
14735
14736 * m/powermac.h: Remove boilerplate comments.
14737 (NO_REMAP): Remove unused definition.
14738
14739 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
14740 define them.
14741
147422008-07-10 Kenichi Handa <handa@m17n.org>
14743
14744 * xfont.c (xfont_open): Log the reason of failure.
14745
147462008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
14747
14748 * fontset.c (fontset_get_font_group):
14749 * font.c (font_check_otf): Specify argument types.
14750
147512008-07-09 Kenichi Handa <handa@m17n.org>
14752
14753 * coding.c (detect_coding_utf_8): Set detect_info->found only when
14754 non-ASCII char is found.
14755
14756 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
14757 (reorder_font_vector): Change the arg preferred_family to font.
14758 Prefer the spec matching with font.
14759 (fontset_get_font_group): New function.
14760 (fontset_find_font): Change the format of an element of a realized
14761 fontset. Use fontset_get_font_group.
14762 (fontset_font): Try the current fontset, the default fontset, the
14763 fallbacks of the current fontset, and the fallbacks of the default
14764 fontset in this order.
14765 (face_for_char): Delete the shortcut to use the current font.
14766 (fontset_from_font): Don't set fonts for Latin in the fontset.
14767
14768 * font.h (font_make_object, font_match_p): Adjust prototypes.
14769
14770 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
14771
14772 * font.c (font_make_object): New arg entity and pixelsize.
14773 (font_check_otf_features, font_check_otf): New functions.
14774 (font_match_p): Check :lang, :script, and :otf properties.
14775
14776 * xfont.c (xfont_open): Adjust it for the change of
14777 font_make_object.
14778 (xfont_text_extents): Fix initial setting of metrics.
14779
14780 * ftfont.c (struct ftfont_info): New member index, delete member
14781 fc_charset_idx. Make the member order compatible with struct
14782 xftfont_info.
14783 (fc_charset_table): Change charset names to registry names.
14784 (ftfont_pattern_entity): Delete the args registry and
14785 fc_charset_idx. Change the value of :font-entity property
14786 to (FONTNAME . INDEX). Always set :registry property to
14787 `iso10646-1'.
14788 (struct ftfont_cache_data): New struct.
14789 (ftfont_lookup_cache): New arg for_face.
14790 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
14791 (ftfont_driver): Set the member otf_capability.
14792 (ftfont_get_charset): Adjust it for the change of
14793 fc_charset_table.
14794 (OTF_TAG_SYM): New macro.
14795 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
14796 for the change of fc_charset_table.
14797 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
14798 ftfont_pattern_entity. Add FC_INDEX to objset.
14799 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
14800 and ftfont_pattern_entity.
14801 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
14802 font_make_object, struct ftfont_info.
14803 (ftfont_has_char): Use ftfont_get_fc_charset.
14804 (ftfont_otf_features, ftfont_otf_capability): New functions.
14805 (ftfont_shape): Use ftfont_get_otf.
14806 (ftfont_text_extents): Fix initial setting of metrics.
14807
14808 * xftfont.c (struct xftfont_info): New member ft_size. Make the
14809 member order compatible with struct ftfont_info.
14810 (xftfont_open): Add FC_CHARSET to the pattern. Set
14811 xftfont_info->ft_size. Don't unlock the face. Check BDF
14812 properties if appropriate.
14813 (xftfont_close): Unlock the face.
14814 (xftfont_anchor_point, xftfont_shape): Deleted.
14815 (syms_of_xftfont): Don't set members anchor_point and shape of
14816 xftfont_driver.
14817
14818 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
14819 font_make_object.
14820
14821 * w32font.c (w32font_open): Adjust it for the change of
14822 font_make_object.
14823 (w32font_open_internal): Don't set properties of font_object here.
14824
148252008-07-08 Chong Yidong <cyd@stupidchicken.com>
14826
14827 * macfns.c (x_create_tip_frame):
14828 * w32fns.c (x_create_tip_frame):
14829 * xfns.c (x_create_tip_frame): Pass parameter argument to
14830 face-set-after-frame-default.
14831
14832 * xfaces.c (Finternal_merge_in_global_face): Save merged
14833 attributes for the default face back into the face vector.
14834
148352008-07-08 Andreas Schwab <schwab@suse.de>
14836
14837 * fontset.h: Declare fontset_from_font. Don't declare
14838 new_fontset_from_font and fontset_from_font_name.
14839 * xterm.c: Include "fontset.h".
14840 * Makefile.in (xterm.o): Update dependencies.
14841
148422008-07-08 Glenn Morris <rgm@gnu.org>
14843
14844 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
14845 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
14846
148472008-07-07 Chong Yidong <cyd@stupidchicken.com>
14848
14849 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
14850 (x_set_frame_parameters): Don't bind it.
14851
148522008-07-07 Juanma Barranquero <lekktu@gmail.com>
14853
14854 * w32fns.c (map_w32_filename): Declare extern.
14855
148562008-07-07 Jason Rumney <jasonr@gnu.org>
14857
14858 * w32term.c (WS_EX_LAYERED): Define if not already.
14859
148602008-07-06 Chong Yidong <cyd@stupidchicken.com>
14861
14862 * xfaces.c (set_font_frame_param): Don't try to set the font
14863 parameter if it is still unspecified in the lface.
14864
148652008-07-05 Chong Yidong <cyd@stupidchicken.com>
14866
14867 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
14868 face if it didn't already exist.
14869
14870 * xdisp.c (try_window_id): Give up if word-wrapping is on.
14871
148722008-07-05 Andreas Schwab <schwab@suse.de>
14873
14874 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
14875
148762008-07-05 Chong Yidong <cyd@stupidchicken.com>
14877
14878 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
14879 word-wrapping.
14880 (IT_DISPLAYING_WHITESPACE): New macro.
14881 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
14882 when word-wrapping. Simplify word-wrapping logic. Use correct
14883 pixel positions when saving copies of the iterator.
14884 (display_line): Use proper wrap point if the last character on a
14885 line was preceded by whitespace.
14886
148872008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
14888
14889 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
14890
148912008-07-04 Kenichi Handa <handa@m17n.org>
14892
14893 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
14894
14895 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
14896
148972008-07-02 Jason Rumney <jasonr@gnu.org>
14898
14899 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 14900 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
14901
14902 * xdisp.c (next_element_from_display_vector): Move assignment out
14903 of if statement.
14904
149052008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
14906
14907 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
14908
14909 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
14910 (syms_of_fileio): Initialize and export them.
14911 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
14912
14913 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
14914 (Fsystem_move_file_to_trash): New function.
14915 (syms_of_w32fns): Export it to lisp.
14916
149172008-07-01 Jason Rumney <jasonr@gnu.org>
14918
14919 * w32font.c (w32font_text_extents): Don't count overhang as part
14920 of width.
14921
149222008-06-30 Miles Bader <miles@gnu.org>
14923
14924 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
14925 Add `avoid_cursor_p' field.
14926
14927 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
14928 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
14929 (append_glyph, append_composite_glyph, produce_image_glyph)
14930 (append_stretch_glyph): Initialize avoid_cursor_p.
14931 (get_it_property): Rename from `get_line_height_property'.
14932 (x_produce_glyphs): Use get_it_property.
14933 (handle_line_prefix, push_display_prop): New functions.
14934 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
14935 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
14936 New variables.
14937 (syms_of_xdisp): Initialize them.
14938
149392008-06-30 Kenichi Handa <handa@m17n.org>
14940
14941 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
14942 XftDefaultSubstitute (they are called in XftFontMatch).
14943 (xftfont_open): Fix args to ftfont_font_format.
14944
14945 * ftfont.c (fc_charset_table): New member lang.
14946 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 14947 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
14948 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
14949 (ftfont_open): Fix args to ftfont_font_format.
14950 (ftfont_font_format): New arg filename.
14951
149522008-06-30 Chong Yidong <cyd@stupidchicken.com>
14953
14954 * xfaces.c (Finternal_merge_in_global_face): If default face was
14955 modified, realize it again. Update the font face attribute.
14956
149572008-06-29 Jason Rumney <jasonr@gnu.org>
14958
14959 * w32term.c (x_set_frame_alpha): Fix logic.
14960
149612008-06-29 Kenichi Handa <handa@m17n.org>
14962
14963 * fontset.c (Finternal_char_font): Return font-object instead of
14964 font-name.
14965
14966 * composite.c (get_composition_id): Fix the width calculation for TAB.
14967
149682008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
14969
14970 * indent.c (Fvertical_motion): Properly handle float column arg.
14971
149722008-06-28 Jason Rumney <jasonr@gnu.org>
14973
14974 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
14975 (pfnSetLayeredWindowAttributes): New function pointer.
14976 (w32_initialize): Initialize it when supported.
14977 (x_set_frame_alpha): New function.
14978
14979 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
14980 (w32_frame_parm_handlers): Set alpha handler.
14981
14982 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
14983
149842008-06-27 Jason Rumney <jasonr@gnu.org>
14985
14986 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
14987 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
14988 (w32_to_x_charset, x_to_w32_charset)
14989 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14990 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14991 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14992 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14993 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14994 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14995 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
14996 (Qw32_charset_unicode): Remove.
14997 (syms_of_w32fns): Update for above changes.
14998
14999 * w32font.c (w32_to_x_charset, x_to_w32_charset)
15000 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
15001 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
15002 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
15003 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
15004 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
15005 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
15006 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
15007 (syms_of_w32font): Update for above changes.
15008
150092008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
15010
15011 * s/usg5-4.h: Fix previous change: keep the correct branch of a
15012 removed #if.
15013 (USG_SHARED_LIBRARIES): Remove duplicate definition.
15014
150152008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 15016 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
15017
15018 * makefile.w32-in (LOCAL_FLAGS):
15019 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
15020
15021 * sysdep.c (_spawnlp, _getpid):
15022 Declare with explicit _cdecl instead of _CRTAPI1.
15023
15024 * editfns.c (Fget_internal_run_time):
15025 Check for WINDOWSNT with #ifdef, not #if.
15026
150272008-06-26 Jason Rumney <jasonr@gnu.org>
15028
15029 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
15030
15031 * w32term.c (x_draw_glyph_string_foreground)
15032 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
15033 Use FONT_HANDLE macro.
15034 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
15035
15036 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15037 (uniscribe_encode_char): Use FONT_HANDLE macro.
15038
15039 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
15040 (w32font_text_extents): Use precast w32_font.
15041 (w32font_close): Free cached metrics.
15042 (w32font_open_internal): Allocate space for name on stack.
15043
150442008-06-26 Chong Yidong <cyd@stupidchicken.com>
15045
15046 * xdisp.c (extend_face_to_end_of_line): Fix last change.
15047
150482008-06-26 Jason Rumney <jasonr@gnu.org>
15049
15050 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
15051 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
15052
150532008-06-26 Juanma Barranquero <lekktu@gmail.com>
15054
15055 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
15056
150572008-06-26 Jason Rumney <jasonr@gnu.org>
15058
15059 * w32bdf.c, w32bdf.h: Remove obsolete files.
15060
15061 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
15062
15063 * w32gui.h: Don't include w32bdf.h.
15064 (XCharStruct, enum w32_char_font_type, W32FontStruct):
15065 Remove obsolete font support.
15066
15067 * w32font.h (struct w32font_info): Remove compat_w32_font.
15068 Add hfont member.
15069 (FONT_COMPAT): Remove obsolete macro.
15070
15071 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
15072 (w32font_encode_char, w32font_text_extents): Use new hfont member.
15073 (w32font_open_internal): Remove compat code. Set new hfont member.
15074 (Fx_select_font): Use new hfont member.
15075
15076 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15077 (uniscribe_encode_char): Use new hfont member.
15078
15079 * w32term.c (x_draw_glyph_string_foreground)
15080 (x_draw_composite_glyph_string_foreground): Use new hfont member.
15081 (x_draw_glyph_string): Use metrics in w32font_info.
15082
150832008-06-26 Kenichi Handa <handa@m17n.org>
15084
15085 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
15086
150872008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
15088
15089 * unexnext.c:
15090 * m/ews4800.h:
15091 * m/hp9000s300.h:
15092 * m/ibm370aix.h:
15093 * m/mips-siemens.h:
15094 * m/ncr386.h:
15095 * m/next.h:
15096 * m/pmax.h:
15097 * m/powerpcle.h:
15098 * m/tandem-s2.h:
15099 * s/386bsd.h:
15100 * s/bsd386.h:
15101 * s/bsd4-1.h:
15102 * s/bsd4-2.h:
15103 * s/bsdos2-1.h:
15104 * s/bsdos2.h:
15105 * s/bsdos3.h:
15106 * s/bsdos4.h:
15107 * s/nextstep.h:
15108 * s/ultrix4-3.h:
15109 * s/usg5-0.h:
15110 * s/usg5-2-2.h:
15111 * s/usg5-2.h:
15112 * s/usg5-4-3.h:
15113 * s/ux4800.h:
15114 * s/uxpds.h:
15115 * s/uxpv.h: Remove support for obsolete systems.
15116 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 15117 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
15118 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
15119 Remove, insert contents in s/aix4-2.h.
15120 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
15121 * s/bsd4-3.h: Rename to ...
15122 * s/bsd-common.h: ... this.
15123 * data.c:
15124 * doc.c:
15125 * ecrt0.c:
15126 * emacs.c:
15127 * fileio.c:
15128 * floatfns.c:
15129 * keyboard.c:
15130 * mem-limits.h:
15131 * print.c:
15132 * process.c:
15133 * sysdep.c:
15134 * syssignal.h:
15135 * systty.h:
15136 * syswait.h:
15137 * term.c:
15138 * unexec.c:
15139 * unexelf.c:
15140 * unexhp9k800.c:
15141 * m/hp800.h:
15142 * m/ibmrs6000.h:
15143 * m/mips.h:
15144 * m/vax.h:
15145 * s/darwin.h:
15146 * s/freebsd.h:
15147 * s/gnu.h:
15148 * s/ms-w32.h:
15149 * s/msdos.h:
15150 * s/netbsd.h:
15151 * s/template.h: Remove references to obsolete variables.
15152
15153 * Makefile.in: Add dependencies for all unexec files.
15154 (admindir): Remove unused variable.
15155 (UNEXEC_SRC): Remove references.
15156
151572008-06-25 Chong Yidong <cyd@stupidchicken.com>
15158
15159 * xfns.c (x_default_font_parameter): If Xft is available, first
15160 try Monospace-12 for the default font.
15161
151622008-06-25 Jason Rumney <jasonr@gnu.org>
15163
15164 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
15165
151662008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
15167
15168 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
15169
15170 * buffer.c (syms_of_buffer): Remove default-word-wrap.
15171
151722008-06-25 Juanma Barranquero <lekktu@gmail.com>
15173
15174 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
15175 <scroll-conservatively>: Fix typo in docstring.
15176
15177 * xselect.c (Fx_send_client_event): Doc fix.
15178
151792008-06-25 Kenichi Handa <handa@m17n.org>
15180
15181 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
15182
15183 * font.c (font_parse_fcname): Remove unused variables.
15184 (font_sort_entites): Delete the arg SPEC. Caller changed.
15185 Fix for the case of ! best_only.
15186 (font_delete_unmatched): Check DPI and AVGWIDTH too.
15187
15188 * lisp.h (Fstring_to_unibyte): EXFUN it.
15189
15190 * character.h (str_to_unibyte): Extern it.
15191
15192 * character.c (str_to_unibyte): New function.
15193
15194 * fns.c (Fstring_to_unibyte): New function.
15195 (syms_of_fns): Defsubr it.
15196
151972008-06-24 Kenichi Handa <handa@m17n.org>
15198
15199 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
15200 DPI too.
15201 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
15202
152032008-06-24 Andreas Schwab <schwab@suse.de>
15204
15205 * Makefile.in (${lispsource}loaddefs.el): Rename from
15206 ../lisp/loaddefs.el.
15207 (bootstrap-clean): Do what distclean does but don't remove
15208 Makefile.
15209 (distclean): Depend on bootstrap-clean and remove Makefile.
15210
152112008-06-24 Chong Yidong <cyd@stupidchicken.com>
15212
15213 * buffer.h (struct buffer): New member word_wrap.
15214
15215 * buffer.c (syms_of_buffer): New variables default-word-wrap and
15216 word-wrap.
15217 (init_buffer_once): Initialize them.
15218
15219 * dispextern.h (struct it): Replace bool truncate_lines_p with a
15220 line_wrap enum possessing three possible values.
15221
15222 * termopts.h: Replace truncate_partial_width_windows with
15223 Vtruncate_partial_width_windows.
15224
15225 * dispnew.c (direct_output_for_insert): Avoid direct output when
15226 inserting a space with word wrap on.
15227
15228 * indent.c (compute_motion): Obey integer values of
15229 truncate-partial-width-windows.
15230
15231 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
15232 replacing truncate_partial_width_windows.
15233 (init_iterator): If Vtruncate_partial_width_windows is an integer,
15234 truncate only if the window width is below that integer.
15235 (start_display, resize_mini_window, produce_stretch_glyph)
15236 (display_string, move_it_in_display_line_to): Use line_wrap.
15237 (back_to_previous_visible_line_start, reseat_1): Reset
15238 string_from_display_prop_p.
15239 (display_line): Extend default face to end of line when wrapping.
15240
152412008-06-24 Kim F. Storm <storm@cua.dk>
15242
15243 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
15244 to wrap continued lines at word boundaries.
15245
152462008-06-24 Jason Rumney <jasonr@gnu.org>
15247
15248 * font.c (Ffont_face_attributes): Multiply pixel size before point
15249 conversion to avoid multiplying rounding error.
15250
152512008-06-23 Jason Rumney <jasonr@gnu.org>
15252
15253 * w32term.c (x_draw_glyph_string_background)
15254 (x_draw_glyph_string): Remove old bdf font code.
15255
15256 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
15257
152582008-06-22 Kenichi Handa <handa@m17n.org>
15259
15260 * font.c (font_find_for_lface): Try the adstyle specified in
15261 the property of LFACE_FONT of LFACE (if any).
15262
152632008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 15264 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
15265
15266 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
15267
152682008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
15269
15270 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
15271 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
15272 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
15273 (witness-emacs): Remove.
15274 (lisp, shortlisp): Move loaddefs.el earlier.
15275 (mostlyclean): Forget about witness-emacs.
15276
152772008-06-22 Glenn Morris <rgm@gnu.org>
15278
15279 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
15280 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
15281
152822008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
15283
15284 * Makefile.in (PRECOMP): Remove.
15285 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
15286 (witness-emacs): Run `compile-first'.
15287 (.el.elc): Use the new compile-onefile target.
15288
152892008-06-21 Kenichi Handa <handa@m17n.org>
15290
15291 * xftfont.c (xftfont_open): Handle QCembolden only when
15292 FC_EMBOLDEN is defined.
15293
152942008-06-21 Andreas Schwab <schwab@suse.de>
15295
15296 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
15297 (.el.elc): Likewise.
15298
152992008-06-21 Miles Bader <miles@gnu.org>
15300
15301 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
15302 build dir, not the lisp source dir.
15303
153042008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
15305
15306 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
15307 (bootstrapclean): Remove.
15308 (.el.elc): New rule.
15309 (PRECOMP): New var.
15310 (../lisp/subdirs.el): Remove.
15311 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
15312 (witness-emacs): New target.
15313 (mostlyclean): Remove witness-emacs as well.
15314 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
15315 Add witness-emacs dependency.
15316
153172008-06-20 Chong Yidong <cyd@stupidchicken.com>
15318
15319 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
15320 defined by the font.
15321
153222008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15323
15324 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
15325 (bootstrap-clean): New target that keeps TAGS around.
15326 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
15327 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
15328
153292008-06-20 Jason Rumney <jasonr@gnu.org>
15330
15331 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
15332 Remove obsolete font code.
15333
15334 * w32font.c (font_matches_spec): Use csb bitfield from font signature
15335 to determine language support.
15336
153372008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15338
15339 * sysdep.c (cfsetspeed): New fun extracted from the code.
15340 (cfmakeraw): Move before first use.
15341
153422008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
15343
15344 * sysdep.c (cfmakeraw): Provide fallback implementation.
15345 (serial_configure): Provide fallback implementation of cfsetspeed.
15346
153472008-06-20 Kenichi Handa <handa@m17n.org>
15348
15349 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
15350 the pattern.
15351
15352 * fontset.c (fontset_from_font): Copy font_spec before changing
15353 the elements.
15354
15355 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
15356
153572008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15358
15359 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
15360 for explicit `font' parameters.
15361
15362 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
15363
153642008-06-19 Kenichi Handa <handa@m17n.org>
15365
15366 * frame.c: Include <ctype.h>.
15367 (x_set_font_backend): Allow spacing characters in the X resource
15368 for FontBackend.
15369
153702008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
15371
15372 * w32fns.c, xfns.c (Qfont_param): New var.
15373 (syms_of_w32fns): Initialize it.
15374 (x_default_font_parameter): Record explicit `font' into
15375 `font-parameter'.
15376
153772008-06-18 Kenichi Handa <handa@m17n.org>
15378
15379 * font.c (font_parse_xlfd): Fix previous change.
15380 (font_parse_fcname): Don't use :fc-unknown-spec.
15381 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
15382 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
15383 (font_add_log): Prepend the driver name to the resulting fonts.
15384
15385 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
15386 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
15387 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
15388
15389 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
15390 (QCembolden): New variables.
15391 (syms_of_xftfont): DEFSYM them.
15392 (xftfont_open): Call XftFontMatch. Don't trust the result of
15393 XftTextExtents8 if the pixel_size is less than 5.
15394
153952008-06-18 Andreas Schwab <schwab@suse.de>
15396
15397 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
15398 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
15399
154002008-06-18 Jason Rumney <jasonr@gnu.org>
15401
15402 * w32font.c (w32font_list, w32font_match): Add logging.
15403
15404 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
15405
154062008-06-17 Chong Yidong <cyd@stupidchicken.com>
15407
15408 * font.c (font_parse_fcname): Store divider characters for
15409 unknown-spec list. For known key symbols, intern using correct
15410 symbol name.
15411
154122008-06-17 Kenichi Handa <handa@m17n.org>
15413
15414 * xfaces.c (realize_default_face): If the frame is not on window
15415 system, set the fontset of face to nil.
15416
154172008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
15418
15419 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
15420
154212008-06-16 Juanma Barranquero <lekktu@gmail.com>
15422
15423 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
15424 (build_font_name_from_vector): Delete externs.
15425
15426 * xfaces.c (struct font_name): Don't declare.
15427
154282008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
15429
15430 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
15431
154322008-06-16 Chong Yidong <cyd@stupidchicken.com>
15433
15434 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
15435
154362008-06-16 Juanma Barranquero <lekktu@gmail.com>
15437
15438 * font.c (Ffont_spec): Fix usage in docstring.
15439 (Ffont_face_attributes): Doc fix.
15440
154412008-06-16 Andreas Schwab <schwab@suse.de>
15442
15443 * font.c (Ffont_face_attributes): Fix definition.
15444
154452008-06-16 Jason Rumney <jasonr@gnu.org>
15446
15447 * font.h (font_style_symbolic_from_value): Remove.
15448
15449 * font.c (font_style_symbolic_from_value): Remove.
15450 (font_style_symbolic): Revert to pre 2008-06-13 version.
15451
15452 * w32font.c (w32_to_fc_weight): New function.
15453 (w32font_full_name, logfont_to_fcname): Use it.
15454
154552008-06-16 Kenichi Handa <handa@m17n.org>
15456
15457 * font.c (font_check_object): Delete it.
15458 (font_clear_cache): Check if a font-object is alive.
15459 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
15460 font-object to nil.
15461 (font_close_object): Don't check FONT_CLOSE_OBJECT.
15462 (font_at): Don't call font_check_object.
15463 (Ffont_get): Return a symbol for :weight, :slant, and :width.
15464
154652008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
15466
15467 * puresize.h (BASE_PURESIZE): Increase to 1230000.
15468
154692008-06-16 Chong Yidong <cyd@stupidchicken.com>
15470
15471 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
15472
154732008-06-15 Chong Yidong <cyd@stupidchicken.com>
15474
15475 * font.c (font_parse_fcname): Only one decimal point.
15476 (font_unparse_fcname): Handle data in family and foundry indices
15477 as symbols, not strings.
15478 (font_unparse_gtkname, Ffont_face_attributes): New functions.
15479
15480 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
15481
15482 * font.h (font_unparse_gtkname): Add prototype.
15483
154842008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
15485
15486 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
15487
154882008-06-15 Andreas Schwab <schwab@suse.de>
15489
15490 * font.c (font_update_drivers): Fix crash when no drivers match.
15491
154922008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
15493
15494 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
15495 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
15496
154972008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
15498
15499 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
15500
155012008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
15502
15503 * process.c (Fserial_process_configure, Fprocess_send_eof):
15504 Use EQ to compare Lisp_Objects.
15505
155062008-06-13 Jason Rumney <jasonr@gnu.org>
15507
15508 * w32fns.c (Fw32_select_font): Remove old font API function.
15509
15510 * w32font.c (logfont_to_fcname): New function.
15511 (Fx_select_font): New font dialog function compatible with
15512 GTK/fontconfig version.
15513
15514 * font.c (font_style_symbolic_from_value): New function.
15515 (font_style_symbolic): Use it.
15516
15517 * font.h (font_style_symbolic_from_value): Declare new function.
15518
155192008-06-13 Juanma Barranquero <lekktu@gmail.com>
15520
15521 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
15522 <font-width-table>: Fix typos in docstrings.
15523
155242008-06-13 Daniel Engeler <engeler@gmail.com>
15525
15526 These changes add serial port access.
15527 * process.c: Add HAVE_SERIAL.
15528 (Fdelete_process, Fprocess_status, Fset_process_buffer)
15529 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
15530 (list_processes_1, select_wrapper, Fstop_process)
15531 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
15532 (status_notify): Modify to handle serial processes.
15533 [HAVE_SERIAL] (Fserial_process_configure)
15534 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
15535 New functions.
15536 * process.h (struct Lisp_Process): Add `type'.
15537 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
15538 New functions.
15539 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
15540 serial ports.
b71ac3dd 15541 (serial_open, serial_configure): New functions.
aac0c6e3
MR
15542 * w32.h: Add FILE_SERIAL.
15543 (struct _child_process): Add ovl_read, ovl_write.
15544
155452008-06-13 Kenichi Handa <handa@m17n.org>
15546
15547 * dispextern.h (enum lface_attribute_index): New member
15548 LFACE_FOUNDRY_INDEX.
15549
15550 * font.c (font_score): Delete arg alternate_families. Check only
15551 weight, slant, width, and size. Ignore the difference of alias
15552 style symbols.
15553 (font_sort_entites): Adjust for the above change. Reflect the
15554 order of font-driver to scores.
15555 (font_list_entities): Don't check alternate_familes here.
15556 (font_clear_prop): Handle foundry.
15557 (font_update_lface): Don't parse "foundry-family" form here.
15558 Handle FONT_FOUNDRY_INDEX.
15559 (font_find_for_lface): Likewise. Handle alternate families here.
15560 If registry is nil, try iso8859-1 and ascii-0.
15561 (font_open_for_lface): Pay attention to size in ENTITY.
15562 (font_open_by_name): Simplify by calling font_load_for_lface.
15563 (free_font_driver_list): Delete it.
15564 (font_update_drivers): Preserve the order of backends.
15565 (syms_of_font): Setting of sort_shift_bits adjusted for the change
15566 of font_score and font_sort_entites.
15567 (font_update_sort_order): Likewise.
15568
15569 * xfaces.c (LFACE_FOUNDRY): New macro.
15570 (check_lface_attrs): Check foundry.
15571 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
15572 (merge_face_vectors): Check foundry.
15573 (merge_face_ref): Likewise.
15574 (Finternal_set_lisp_face_attribute): Likewise.
15575 (x_update_menu_appearance): Likewise.
15576 (Finternal_get_lisp_face_attribute): Likewise.
15577 (lface_hash): Likewise.
15578 (lface_same_font_attributes_p): Likewise.
15579 (x_supports_face_attributes_p): Likewise.
15580 (tty_supports_face_attributes_p): Likewise.
15581 (Finternal_set_alternative_font_family_alist): Intern strings.
15582 (Finternal_set_alternative_font_registry_alist): Downcase strings.
15583 (realize_default_face): Set LFACE_FOUNDRY (lface).
15584
15585 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
15586 font-driver at first.
15587
15588 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
15589
155902008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
15591
15592 * lread.c (Fload): Use xfree, not free on saved_doc_string.
15593
155942008-06-12 Jim Meyering <meyering@redhat.com>
15595
15596 Make unexec_free handle NULL the same way free does.
15597 * unexmacosx.c (unexec_free): Ignore a NULL argument.
15598
155992008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
15600
15601 * character.h (CHAR_TO_BYTE_SAFE): New macro.
15602 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
15603 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
15604 (WEAK_ALIAS): Simplify.
15605 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
15606 when searching a unibyte buffer.
15607
156082008-06-12 Chong Yidong <cyd@stupidchicken.com>
15609
15610 * xfns.c (Fx_select_font): Rename from x-font-dialog.
15611
156122008-06-12 Juanma Barranquero <lekktu@gmail.com>
15613
15614 * w32font.c: Include ctype.h.
15615
156162008-06-11 Jason Rumney <jasonr@gnu.org>
15617
15618 * w32font.c (w32font_encode_char): Detect missing glyphs that are
15619 misreported as space.
15620 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
15621 as aliases for registry iso10646-1.
15622
156232008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
15624
15625 * buffer.c (clone_per_buffer_values): Skip `name'.
15626
156272008-06-11 Chong Yidong <cyd@stupidchicken.com>
15628
15629 * font.c (font_parse_fcname): Fix last change; accept decimal
15630 points in font size.
15631
156322008-06-10 Jason Rumney <jasonr@gnu.org>
15633
15634 * w32uniscribe.c (add_opentype_font_name_to_list):
15635 Skip non unicode fonts.
15636
156372008-06-10 Chong Yidong <cyd@stupidchicken.com>
15638
15639 * xfns.c (Fx_font_dialog): New function.
15640
15641 * gtkutil.c (xg_dialog_response_cb): Rename from
15642 xg_file_response_callback.
15643 (pop_down_dialog): Rename from pop_down_file_dialog.
15644 (xg_get_file_name): Callers changed.
15645 (xg_get_font_name): New function.
15646
15647 * gtkutil.h (xg_get_font_name): Insert prototype.
15648
156492008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15650
15651 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
15652 x_underline_minimum_display_offset.
15653 (syms_of_xdisp): Declare it here rather than in xterm.c.
15654 * dispextern.h (underline_minimum_offset): Declare it.
15655 * w32term.c (x_draw_glyph_string): Use it.
15656 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
15657 (syms_of_xterm): Don't declare it any more.
15658 (x_draw_glyph_string): Adjust to the new name.
15659
8719abec 156602008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
15661
15662 * xterm.c (x_underline_minimum_display_offset): New var.
15663 (x_draw_glyph_string): Use it.
15664 (syms_of_xterm): Declare it.
15665
156662008-06-10 Chong Yidong <cyd@stupidchicken.com>
15667
15668 * font.c (font_parse_fcname): Accept GTK-style font names too.
15669
156702008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15671
15672 * dired.c (file_name_completion): Don't return t if the match is exact
15673 but with different capitalization.
15674 * minibuf.c (Ftry_completion): Simplify.
15675
15676 * window.c (Vwindow_point_insertion_type): New var.
15677 (set_window_buffer): Use it.
15678 (syms_of_window): Init and export it to Lisp.
15679
156802008-06-10 Kenichi Handa <handa@m17n.org>
15681
15682 * font.h (font_intern_prop): Prototype adjusted.
15683
15684 * font.c (font_intern_prop): New arg force_symbol.
15685 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
15686 Adjust for the change of font_intern_prop.
15687
15688 * ftfont.c (ftfont_pattern_entity):
15689 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
15690 (w32_registry):
15691 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
15692 the change of font_intern_prop.
15693
156942008-06-09 Juanma Barranquero <lekktu@gmail.com>
15695
15696 * w32menu.c (digest_single_submenu): Declare extern.
15697
156982008-06-09 Jason Rumney <jasonr@gnu.org>
15699
15700 * w32term.c (x_make_frame_visible): Use alternate restore flags.
15701
15702 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
15703 (parse_single_submenu): Remove.
15704 (digest_single_submenu): Remove.
15705 (syms_of_w32menu): Don't initialise variables that have moved
15706 to menu.c.
15707 (set_frame_menubar): Sync with version in xmenu.c.
15708 (w32_menu_show): Sync with xmenu_show in xmenu.c.
15709
15710 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
15711 Make static again.
15712
157132008-06-09 Jason Rumney <jasonr@gnu.org>
15714
15715 Changes to w32 files related to the move of common menu code
15716 to menu.c on 2008-06-08 by Chong Yidong.
15717
15718 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
15719 defs to w32gui.h.
15720 (single_keymap_panes, push_menu_item, push_menu_pane):
15721 Make globally visible.
15722
15723 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
15724 (local_free, malloc_widget_value, free_widget_value)
15725 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
15726 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
15727 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
15728 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
15729 (menu_items, menu_items_allocated, menu_items_used)
15730 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
15731 (init_menu_items, finish_menu_items, discard_menu_items)
15732 (grow_menu_items, push_submenu_start, push_submenu_end)
15733 (push_left_right_boundary, push_menu_pane, push_menu_item)
15734 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
15735 (free_menubar_widget_tree_value, parse_single_submenu)
15736 (update_submenu_strings): Remove functions.
15737 (xmalloc_widget_value): Remove and declare extern.
15738
15739 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
15740 (OBJ1): Build it.
15741
15742 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
15743 (local_heap, local_alloc, local_free, malloc_widget_value)
15744 (free_widget_value): Define here.
15745
157462008-06-09 Kenichi Handa <handa@m17n.org>
15747
15748 * font.h (Qascii_0): Extern it.
15749
15750 * font.c (Qascii_0): New variable.
15751 (syms_of_font): DEFSYM it.
15752 (font_open_by_name): If the registry "iso8859-1" fails, try also
15753 "ascii-0".
15754
15755 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
15756
157572008-06-08 Kenichi Handa <handa@m17n.org>
15758
15759 * .gdbinit (xfont): New command.
15760
157612008-06-08 Andreas Schwab <schwab@suse.de>
15762
15763 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
15764 * Makefile.in (menu.o): Update dependencies.
15765
15766 * Makefile.in (obj): Always add menu.o.
15767 * emacs.c (main): Always call syms_of_menu.
15768 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
15769
157702008-06-08 Chong Yidong <cyd@stupidchicken.com>
15771
15772 * Makefile.in: Compile menu.c.
15773
15774 * lisp.h: Declare syms_of_menu.
15775
15776 * emacs.c (main): Call syms_of_menu.
15777
15778 * keyboard.h: Relocate platform-independent menu definitions from
15779 xmenu.c.
15780
15781 * menu.c: New file. Relocate platform-independent menu
15782 definitions from xmenu.c. Suggested by Adrian Robert.
15783
15784 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 15785 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
15786 (menu_items_used, menu_items_n_panes)
15787 (menu_items_submenu_depth): Move to keyboard.h.
15788 (init_menu_items, finish_menu_items, unuse_menu_items)
15789 (discard_menu_items, restore_menu_items, save_menu_items)
15790 (grow_menu_items, push_submenu_start, push_submenu_end)
15791 (push_left_right_boundary, push_menu_pane, push_menu_item)
15792 (keymap_panes, single_keymap_panes, single_menu_item)
15793 (list_of_panes, list_of_items, find_and_call_menu_selection)
15794 (xmalloc_widget_value, free_menubar_widget_value_tree)
15795 (parse_single_submenu, digest_single_submenu)
15796 (update_submenu_strings): Move to menu.c.
15797
157982008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
15799
15800 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
15801
158022008-06-06 Miles Bader <miles@gnu.org>
15803
15804 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
15805 face, not frame default.
15806
158072008-06-05 Martin Rudalics <rudalics@gmx.at>
15808
15809 * window.c (pop_up_windows, pop_up_frames)
15810 (display_buffer_reuse_frames, Vpop_up_frame_function)
15811 (Vdisplay_buffer_function, Veven_window_heights)
15812 (Vspecial_display_buffer_names, Vspecial_display_regexps)
15813 (Vspecial_display_function, Vsame_window_buffer_names)
15814 (Vsame_window_regexps, split_height_threshold)
15815 (Vsplit_window_preferred_function): Move those vars to window.el.
15816 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
15817 (Fdisplay_buffer): Move those functions to window.el.
15818 (syms_of_window): Remove corresponding declarations.
15819 (display_buffer): New function.
15820 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
15821 * dispnew.c (Flast_nonminibuf_frame): New function.
15822 * buffer.c (Fpop_to_buffer): Move to window.el.
15823
158242008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15825
15826 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
15827
158282008-06-05 Kenichi Handa <handa@m17n.org>
15829
15830 * coding.c (detect_coding): Fix previous change.
15831 (detect_coding_system): Likewise.
15832
158332008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15834
15835 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
15836
15837 * keymap.c (Vminibuffer_local_filename_must_match_map):
15838 Rename from Vminibuffer_local_must_match_filename_map.
15839 (syms_of_keymap):
15840 * minibuf.c (Fcompleting_read): Adjust accordingly.
15841 * commands.h: Rename declaration as well.
15842
158432008-06-05 Kenichi Handa <handa@m17n.org>
15844
15845 * font.c (Ffont_spec): Don't use font_parse_family_registry for
15846 family name.
15847 (Ffont_put): Likewise.
15848
15849 * fontset.c (fontset_find_font): Call font_open_for_lface with the
15850 current font-spec.
15851
15852 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
15853 is unspecified.
15854
15855 * xfaces.c (realize_x_face): If the font-related face attributes
15856 are the same as those of default face, realize a new fontset from
15857 default->fontset.
15858 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
15859
158602008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15861
15862 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
15863 (move_it_in_display_line): New wrapper.
15864
15865 * window.c (window_scroll_pixel_based_preserve_x)
15866 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
15867 (window_scroll_pixel_based, window_scroll_line_based):
15868 Use them to preserve column positions.
15869 (syms_of_window): Initialize them.
15870
15871 * indent.c (Fvertical_motion): Extend first arg to allow passing an
15872 (HPOS . VPOS) pair.
15873
15874 * dispextern.h (move_it_in_display_line): Declare.
15875
158762008-06-05 Juanma Barranquero <lekktu@gmail.com>
15877
15878 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
15879 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
15880 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
15881
158822008-06-04 Juanma Barranquero <lekktu@gmail.com>
15883
15884 * window.c (Fset_window_parameter): Doc fix.
15885 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
15886
158872008-06-04 Joakim Verona <joakim@verona.se>
15888
15889 * window.h (struct window): Add new member window_parameters.
15890
15891 * window.c (Fwindow_parameters, Fwindow_parameter)
15892 (Fset_window_parameter): New defuns.
15893 (syms_of_window): Defsubr the new defuns.
15894 (make_window): Initialize window_parameters to nil.
15895
158962008-06-04 John Paul Wallington <jpw@pobox.com>
15897
15898 * eval.c (Fdefmacro): Doc fix.
15899
159002008-06-04 Kenichi Handa <handa@m17n.org>
15901
15902 * coding.c (detect_coding): Fix handling of coding->head_ascii.
15903 Be sure to call setup_coding_system when we find a proper coding system.
15904 (detect_coding_system): Fix handling of coding->head_ascii.
15905
159062008-06-03 Andreas Schwab <schwab@suse.de>
15907
15908 * font.c (font_prop_validate_spacing): Fix last change.
15909
159102008-06-03 Kenichi Handa <handa@m17n.org>
15911
15912 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
15913 (font_parse_fcname): Fix handling of unknown key.
15914
15915 * xfont.c (xfont_list): Try an alias.
15916
15917 * charset.c (char_charset): Return NULL if the arg charset_list is
15918 specified and C doesn't belong to any of them.
15919
159202008-06-02 Chip Coldwell <coldwell@redhat.com>
15921
15922 * font.c (font_pixel_size): Don't take cdr of an integer.
15923
159242008-06-02 Jim Meyering <meyering@redhat.com>
15925
15926 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
15927 * alloc.c (xfree): Return right away for a NULL arg.
15928 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
15929 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
15930 * mac.c (create_apple_event_from_event_ref): Likewise.
15931 (create_apple_event_from_drag_ref, cfstring_create_normalized):
15932 Likewise.
15933 * doprnt.c (doprnt1): Likewise.
15934 * frame.c (frame): Likewise.
15935 * keyboard.c (wipe_kboard): Likewise.
15936 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
15937 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
15938 * term.c (tty_default_color_capabilities, maybe_fatal)
15939 (delete_tty): Likewise.
15940 * w16select.c (string): Likewise.
15941 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
15942 * w32bdf.c (w32_free_bdf_font): Likewise.
15943 * w32fns.c (w32_unload_font): Likewise.
15944 * w32font.c (w32font_close): Likewise.
15945 * window.c (size_window): Likewise.
15946 * xselect.c (receive_incremental_selection): Likewise.
15947 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
15948 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
15949 * w32.c (stat): Likewise.
15950
15951 Remove useless if-before-free tests.
15952 * editfns.c (Fset_time_zone_rule): Likewise.
15953 * lread.c (nosuffix): Likewise.
15954 * ralloc.c (get_bloc): Likewise.
15955 * regex.c (reg_free): Likewise.
15956 * xftfont.c (xftfont_open, xftfont_close): Likewise.
15957 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
15958 * xsmfns.c (smc_save_yourself_CB): Likewise.
15959
159602008-06-02 Kenichi Handa <handa@m17n.org>
15961
15962 * font.c (font_find_for_lface): Handle float font size.
15963 (font_open_for_lface): Likewise.
15964
15965 * xfaces.c (x_supports_face_attributes_p): Check face->font before
15966 comparing the properties.
15967
159682008-06-01 Jason Rumney <jasonr@gnu.org>
15969
15970 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
15971 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
15972 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
15973 Don't add empty script list.
15974 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
15975
159762008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
15977
15978 * Makefile.in (dot, dotdot): Remove, update users.
15979 ".." has been used elsewhere in the file for a long time.
15980 (LIBXT_STATIC): Remove conditional based on unused variable.
15981
159822008-06-01 Miles Bader <miles@gnu.org>
15983
15984 * xfaces.c (Vface_remapping_alist): New variable.
15985 (syms_of_xfaces): Initialize it.
15986 (enum named_merge_point_kind): New type.
15987 (struct named_merge_point): Add `named_merge_point_kind' field.
15988 (push_named_merge_point): Make cycle detection respect different
15989 named-merge-point kinds.
15990 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
15991 Remove face-name alias resolution.
15992 (lface_from_face_name): New definition using
15993 `lface_from_face_name_no_resolve'.
15994 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
15995 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
15996 (get_lface_attributes): New definition that layers face-remapping on
15997 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
15998 (lookup_basic_face): New function.
15999 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
16000 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
16001 `get_lface_attributes'.
16002 (face_at_buffer_position): Use `lookup_basic_face' to lookup
16003 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
16004 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
16005
16006 * xdisp.c (init_iterator): Pass base_face_id through
16007 `lookup_basic_face' when we actually use it as a face-id.
16008 (handle_single_display_prop): Use `lookup_basic_face' to lookup
16009 DEFAULT_FACE_ID.
16010
16011 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
16012 lookup the initial face-id.
16013
16014 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
16015
160162008-06-01 Juanma Barranquero <lekktu@gmail.com>
16017
16018 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
16019 (Fremove_text_properties): Fix typos in docstrings.
16020
160212008-05-31 Kenichi Handa <handa@m17n.org>
16022
16023 * font.c (font_list_entities): Fix the car part of data to be
16024 stored in the cache.
16025
16026 * ftfont.c (ftfont_font_format): Don't use strcasestr.
16027
160282008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
16029
16030 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
16031 Add a `test' argument so another predicate than `equal' can be used.
16032 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
16033 (map_char_table): Remove unused vars `c' and `i'.
16034 * lisp.h (Foptimize_char_table): Adjust declaration.
16035 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
16036
160372008-05-30 Kenichi Handa <handa@m17n.org>
16038
16039 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
16040 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
16041 defined.
16042
160432008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
16044
16045 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
16046 (Fmake_variable_frame_local): Disallow mixing buffer-local and
16047 frame-local settings for the same variable.
16048
160492008-05-30 Kenichi Handa <handa@m17n.org>
16050
16051 * fontset.c (Ffont_info): Move to font.c.
16052 (syms_of_fontset): Delete defsubr of Sfont_info.
16053
16054 * font.c (font_style_to_value, font_score): Delete casting of the
16055 args to xstcasecmp.
16056 (register_font_driver): Increment num_font_drivers only when
16057 registering the driver globally.
16058 (Ffont_info): Move from fontset.c. Handle a font object too.
16059 (syms_of_font): Defsubr Sfont_info.
16060
160612008-05-29 Kenichi Handa <handa@m17n.org>
16062
16063 * coding.h (enum define_coding_utf8_arg_index): New enum.
16064 (enum coding_attr_index): Change coding_attr_utf_16_bom to
16065 coding_attr_utf_bom.
16066 (enum utf_bom_type): Rename from utf_16_bom_type.
16067 (struct utf_16_spec): Adjust for the above change.
16068 (struct coding_system): Add utf_8_bom in `spec' union.
16069
16070 * coding.c (CODING_UTF_8_BOM): New macro.
16071 (enum coding_category): Delete coding_category_utf_8, add
16072 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
16073 coding_category_utf_8_sig.
16074 (CATEGORY_MASK_UTF_8): Delete it.
16075 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
16076 (CATEGORY_MASK_UTF_8_SIG): New macros.
16077 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
16078 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
16079 CATEGORY_MASK_UTF_8_SIG.
16080 (CATEGORY_MASK_UTF_8): New macro.
16081 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
16082 (detect_coding_utf_8): Check BOM.
16083 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
16084 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
16085 (encode_coding_utf_16): Likewise.
16086 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
16087 (detect_coding, detect_coding_system): Handle utf-8-auto.
16088 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
16089 (syms_of_coding): Fix setting up of Vcoding_category_table.
16090
160912008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
16092
16093 * process.c (Faccept_process_output): If `millisec' is non-nil,
16094 `seconds' default to 0.
16095 (wait_reading_process_output): Also return non-nil if we read output
16096 from a non-running process.
16097
160982008-05-29 Jason Rumney <jasonr@gnu.org>
16099
16100 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
16101 `raster' specified.
16102 (add_font_entity_to_list): Allow non-opentype truetype fonts back
16103 in the uniscribe backend, but disallow any font that has no
16104 unicode subrange support.
16105
161062008-05-29 Juanma Barranquero <lekktu@gmail.com>
16107
16108 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
16109 Fix typos in docstrings.
16110
161112008-05-29 Kenichi Handa <handa@m17n.org>
16112
16113 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
16114 (Fx_family_fonts): Set frame correctly.
16115
161162008-05-28 Jason Rumney <jasonr@gnu.org>
16117
16118 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
16119
161202008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
16121
16122 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
16123 calling build_annotations.
16124
161252008-05-28 Juanma Barranquero <lekktu@gmail.com>
16126
16127 * coding.c (Fdecode_coding_region, Fencode_coding_region)
16128 (Fencode_coding_string):
16129 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
16130 <latin-extra-code-table>: Fix typos in docstrings.
16131 (syms_of_coding) <coding-system-alist>: Doc fix.
16132 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
16133
161342008-05-28 Kenichi Handa <handa@m17n.org>
16135
16136 * fontset.c (Ffont_info): Don't call font_close_object.
16137
16138 * font.c (font_parse_family_registry): Use Ffont_put to validate
16139 foundry and family.
16140 (font_delete_unmatched): Don't check spacing.
16141 (font_list_entities): Add spacing to the spec to list fonts.
16142
16143 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
16144 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
16145
16146 * coding.c (encode_coding_raw_text): Fix previous change.
16147 (encode_coding_object): When the dst_object is a buffer and is
16148 different from src_object, move gap to PT.
16149
161502008-05-27 Chong Yidong <cyd@stupidchicken.com>
16151
16152 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
16153
161542008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
16155
16156 * coding.c (encode_coding_raw_text): Set coding->produced_char for
16157 all branches. Compute it differently.
16158
16159 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
16160
161612008-05-27 Juanma Barranquero <lekktu@gmail.com>
16162
16163 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
16164 into "else if () ... else ...".
16165
161662008-05-27 Jason Rumney <jasonr@gnu.org>
16167
16168 * w32font.c (w32font_open_internal): Determine if glyph indices
16169 are likely to work here.
16170
161712008-05-27 Chong Yidong <cyd@stupidchicken.com>
16172
16173 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
16174 draw overlap glyphs with appropriate highlighting.
16175
161762008-05-27 Kenichi Handa <handa@m17n.org>
16177
16178 * xfont.c (xfont_open): Fix calculation of font->average_width.
16179
161802008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
16181
16182 * casefiddle.c (casify_object): Try to guess better whether the
16183 argument is a byte or a char.
16184
161852008-05-26 Andreas Schwab <schwab@suse.de>
16186
16187 * xselect.c (x_reply_selection_request): Properly handle format == 32.
16188 Always send multiples of format size.
16189
16190 * xterm.c (x_set_frame_alpha): Fix type mismatch.
16191
161922008-05-26 Jason Rumney <jasonr@gnu.org>
16193
16194 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
16195 (compute_metrics): Don't set failure if we just cleared the cache.
16196 (w32_weight_table): Remove unused variable.
16197 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
16198 backwards compatibility.
16199
162002008-05-25 Kenichi Handa <handa@m17n.org>
16201
16202 * w32term.c (x_draw_glyph_string):
16203 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
16204
16205 * xfaces.c: Delete unused function prototypes.
16206 (xstrlwr, font_frame): Delete them.
16207 (clear_face_cache): Delete unused variable.
16208
16209 * xftfont.c (xftfont_open): Delete unused variable.
16210 If underline_thickness is not 1, adjust underline_position.
16211
16212 * ftxfont.c (ftxfont_open): Delete unused variable.
16213
16214 * fontset.c (face_for_char): Optimize for the case of no charset
16215 property.
16216
16217 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
16218 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
16219 (otf_open, font_otf_capability, generate_otf_features)
16220 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16221 Comment out by surrounding "#if 0" and "#endif" for the moment.
16222 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
16223 (syms_of_font): Codes for accessing above commented out.
16224
162252008-05-24 Eli Zaretskii <eliz@gnu.org>
16226
16227 * w32proc.c: Include dispextern.h.
16228
16229 * w32.c: Include dispextern.h.
16230
162312008-05-23 Juanma Barranquero <lekktu@gmail.com>
16232
16233 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
16234 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
16235 Fix typos in docstrings.
16236
162372008-05-23 Jason Rumney <jasonr@gnu.org>
16238
16239 * xsmfns.c: Remove includes that are already included by config.h.
16240
162412008-05-23 Kenichi Handa <handa@m17n.org>
16242
16243 * charset.c (Qemacs, charset_emacs): New variables.
16244 (char_charset): Fix for non-Unicode characters.
16245 (syms_of_charset): Define charset_emacs.
16246
16247 * w32term.c (x_draw_glyph_string): Be sure to update
16248 s->underline_thickness and s->underline_position. Be sure to draw
16249 underline within the current line area.
16250
16251 * xterm.c (x_draw_glyph_string): Be sure to update
16252 s->underline_thickness and s->underline_position. Be sure to draw
16253 underline within the current line area.
16254
16255 * fontset.c: Delete unused variables and add casting for char *
16256 throughout the file.
16257 (fontset_font): Try the fallback fonts of the current fontset
16258 before consulting the default fontset.
16259
16260 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
16261
16262 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
16263
162642008-05-22 Jason Rumney <jasonr@gnu.org>
16265
16266 * font.c: Don't include strings.h.
16267
16268 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
16269
16270 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
16271 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
16272 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
16273 to call xstrcasecmp.
16274
16275 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
16276
16277 * fontset.c (fs_query_fontset): Use xstrcasecmp.
16278
16279 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
16280
16281 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
16282
162832008-05-22 Kenichi Handa <handa@m17n.org>
16284
16285 * puresize.h (BASE_PURESIZE): Increase to 1220000.
16286
16287 * font.c (font_prop_validate_style): Adjust for the format
16288 change of font_style_table.
16289
16290 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
16291 two args.
16292
16293 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
16294 two args.
16295
162962008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
16297
16298 * minibuf.c (keys_of_minibuf): Delete.
16299 * lisp.h (keys_of_minibuf): Delete.
16300 * emacs.c (main): Don't call keys_of_minibuf.
16301
163022008-05-22 Kenichi Handa <handa@m17n.org>
16303
16304 * ftfont.c (ftfont_resolve_generic_family): Rename from
16305 ftfont_list_generic_family. Return a single family for each
16306 generic family.
16307 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
16308 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
16309 Call font_add_log.
16310 (ftfont_match): Call font_add_log.
16311
16312 * font.h (Ffont_xlfd_name): EXFUN adjusted.
16313 (FONT_DEBUG): Define it.
16314 (font_add_log): Extern it.
16315 (font_assert): Rename from xassert.
16316
16317 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
16318 (xfont_list_family): Call font_add_log.
16319 (xfont_match): Likewise.
16320 (memq_no_quit): Delete.
16321
16322 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
16323 call of Ffont_xlfd_name.
16324
16325 * xfaces.c (struct table_entry, slant_table, weight_table)
16326 (swidth_table): Move to font.c.
16327
16328 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
16329 xassert are changed to font_assert. Delete many unused variables.
16330 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
16331 New variables.
16332 (struct table_entry): Move from xfaces.c and modified.
16333 (weight_table, slant_table, width_table): Move from xfaces.c and
16334 contents adjusted for the change of struct table_entry.
16335 (font_style_to_value, font_style_symbolic): Adjust for the
16336 format change of font_style_table.
16337 (font_parse_family_registry): Don't overwrite existing foundry and
16338 family of font_spec.
16339 (font_score): Fix calculation of diff for sizes.
16340 (font_sort_entites): Call font_add_log.
16341 (font_delete_unmatched): Return a newly created list.
16342 (font_list_entities): Fix previous change. Call font_add_log.
16343 (font_matching_entity, font_open_entity, font_close_entity):
16344 Call font_add_log.
16345 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
16346 (Finternal_set_font_style_table): Delete.
16347 (BUILD_STYLE_TABLE): New macro.
16348 (build_style_table): New function.
16349 (Vfont_log, font_log_env_checked): New variables.
16350 (font_add_log): New function.
16351 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
16352 Declare Lisp variables "font-weight-table", "font-slant-table",
16353 "font-width-table", and "font-log". Initialize font_style_table.
16354
163552008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
16356
16357 * xterm.c (x_set_frame_alpha): Move declarations before statements.
16358
163592008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 16360 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
16361
16362 * frame.c (Qalpha): Add a new frame parameter `alpha'.
16363 (Vframe_alpha_lower_limit): New variable.
16364 (x_set_alpha): New function.
16365
16366 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
16367
16368 * xfns.c (x-create-frame, Qalpha):
16369 Initialize the frame parameter `alpha'.
16370 * xterm.c (OPAQUE, OPACITY): New.
16371 (x_set_frame_alpha): New function.
16372 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
16373
16374 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
16375 * w32fns.c (w32_frame_parm_handlers): Likewise.
16376
163772008-05-20 Jason Rumney <jasonr@gnu.org>
16378
16379 * w32font.c (add_font_entity_to_list): Don't add non-opentype
16380 truetype fonts to opentype list.
16381
163822008-05-20 Juanma Barranquero <lekktu@gmail.com>
16383
16384 * fontset.c (Ffontset_info): Doc fix.
16385 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
16386 <ignore-relative-composition>: Fix typos in docstrings.
16387
16388 * font.c (syms-of-font) <font-encoding-alist>:
16389 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
16390 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
16391 (Ffont_otf_alternates): Doc fixes.
16392
163932008-05-20 Kenichi Handa <handa@m17n.org>
16394
16395 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
16396 font.h through out the file.
16397 (FONT_DRIVERS): Rename from FONTOBJ.
16398 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
16399 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
16400
16401 * emacs.c (main): Call syms_of_font unconditionally.
16402
16403 * font.h (find_font_encoding): Extern it.
16404
16405 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
16406 fontset.c.
194d44e7 16407 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
16408 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
16409 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
16410 only when HAVE_WINDOW_SYSTEM is defined.
16411 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
16412 when HAVE_WINDOW_SYSTEM is defined.
16413
16414 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
16415 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
16416
16417 * xfaces.c: Include font.h unconditionally.
16418 (merge_face_ref, merge_face_vectors)
16419 (Finternal_set_lisp_face_attribute): Cancel the previous change.
16420
164212008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
16422
16423 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
16424 indirect_variable.
16425 * eval.c (lisp_indirect_variable): New fun.
16426 (Fuser_variable_p): Use it.
16427
164282008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
16429
16430 * lisp.h (indirect_variable):
16431 * data.c (indirect_variable, let_shadows_buffer_binding_p):
16432 Use Lisp_Symbol pointers rather than Lisp_Object.
16433 Adjust callers.
16434 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
16435 To this end, change calling-convention.
16436
16437 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
16438 if some non-hidden buffers are selected by string&pred.
16439
164402008-05-19 Chong Yidong <cyd@stupidchicken.com>
16441
16442 * process.c (wait_reading_process_output): Always check status
16443 when in batch mode.
16444
164452008-05-19 Kenichi Handa <handa@m17n.org>
16446
16447 * font.c (font_list_entities): Fix handling of cache.
16448 (font_matching_entity): Likewise.
16449
16450 * ftfont.c (cs_iso8859_1): Delete.
16451 (ft_face_cache): New variable.
16452 (struct ftfont_info): New member fc_charset_idx.
16453 (ftfont_build_basic_charsets): Delete.
16454 (fc_charset_table): New variable.
16455 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
16456 . FC_CHARSET_IDX) as :font-entity property in the font entity.
16457 Callers changed.
16458 (ftfont_lookup_cache, ftfont_get_charset): New functions.
16459 (ftfont_spec_pattern): New argument fc_charset_idx.
16460 Check registry more rigidly. Change callers.
16461 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
16462 change of :font-entity property of the font.
16463
16464 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
16465 property of the font.
16466
164672008-05-18 Juanma Barranquero <lekktu@gmail.com>
16468
16469 * coding.c (Fcoding_system_p): Rename argument to match docstring.
16470 (Funencodable_char_position, Fcheck_coding_systems_region)
16471 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
16472 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
16473 (Ffind_operation_coding_system, Fset_coding_system_priority)
16474 (Fcoding_system_eol_type): Doc fixes.
16475
164762008-05-17 Glenn Morris <rgm@gnu.org>
16477
16478 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
16479
164802008-05-16 Eli Zaretskii <eliz@gnu.org>
16481
16482 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
16483 and st_gid.
16484
16485 * frame.c (Fdelete_frame): Don't call font_update_drivers if
16486 HAVE_WINDOW_SYSTEM is not defined.
16487
16488 * xfaces.c (merge_face_ref, merge_face_vectors)
16489 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
16490 HAVE_WINDOW_SYSTEM is defined.
16491 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
16492
164932008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
16494
16495 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
16496
164972008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16498
16499 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
16500
165012008-05-15 Kenichi Handa <handa@m17n.org>
16502
16503 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
16504 preference.
16505
165062008-05-15 Glenn Morris <rgm@gnu.org>
16507
16508 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
16509
165102008-05-15 Chong Yidong <cyd@stupidchicken.com>
16511
16512 * fns.c (init_fns): Don't initialize weak_hash_tables here.
16513 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
16514
16515 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
16516
165172008-05-15 Kenichi Handa <handa@m17n.org>
16518
16519 * ftfont.c (ftfont_list): Downcase family name to check generic
16520 families.
16521
16522 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
16523 font-spec for QCfont value.
16524
16525 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
16526 buffer. Check the return value of it.
16527
165282008-05-14 Jason Rumney <jasonr@gnu.org>
16529
16530 * w32term.c (w32_get_glyph_overhangs): Remove.
16531 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
16532
165332008-05-14 Kenichi Handa <handa@m17n.org>
16534
16535 * font.c (font_prop_validate): Make nil a valid value.
16536 (font_clear_cache): Check if the cached vector of entities is nil
16537 or not.
16538
165392008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16540
16541 * emacs.c (main_thread): Conditionalize on
16542 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16543 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
16544
16545 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
16546 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
16547 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16548
165492008-05-14 Kenichi Handa <handa@m17n.org>
16550
16551 * coding.c (detect_coding_iso_2022): Ignore a coding category that
16552 has no corresponding coding system.
16553
165542008-05-14 Jason Rumney <jasonr@gnu.org>
16555
16556 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
16557
16558 * w32font.h (w32font_open_internal): Update declaration.
16559
16560 * w32font.c (w32font_open_internal): Change last argument from
16561 w32font_info struct to font object. Fill in font object from
16562 font_entity. Get Outline metrics if possible. Use them to
16563 calculate underline position and thickness. Use xlfd name as name
16564 property. Don't set codepage.
16565 (w32font_open): Pass font_object to w32font_open_internal. Don't
16566 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
16567 (w32font_draw): Use s->font.
16568 (clear_cached_metrics): Don't clear non-existent blocks.
16569
16570 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
16571 font was not found.
16572 (x_draw_glyph_string): Use underline position and thickness from font.
16573
16574 * w32uniscribe.c (uniscribe_open): Pass font_object to
16575 w32font_open_internal.
16576
165772008-05-14 Kenichi Handa <handa@m17n.org>
16578
16579 These changes are to delete all legacy font-handling codes, and
16580 make Emacs use only font-backends.
16581
16582 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
16583 (frame.o, image.o, print.o): Depend on $(FONTSRC).
16584
16585 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
16586
16587 * charset.h (Vcharset_non_preferred_head)
16588 (Vcurrent_iso639_language): Extern them.
16589
16590 * charset.c (Vcharset_non_preferred_head): New variable.
16591 (Vcurrent_iso639_language): New variable.
16592 (syms_of_charset): Declare it as a Lisp variable.
16593 (char_charset): Don't check non preferred charsets. As a last
16594 resort, return charset_unicode.
16595 (Fset_charset_priority): Update Vcharset_non_preferred_head.
16596
16597 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
16598 conditionals. Don't check enable_font_backend. Delete all codes
16599 used only when USE_FONT_BACKEND is not defined.
16600
16601 * dispextern.h (struct glyph_string): Change type of `font' to
16602 `struct font *'.
16603 (struct glyph_string): New member underline_position and
16604 underline_thickness.
16605 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
16606 (struct face): Change type of `font' to `struct font *'. Remove
16607 members `font_name', `font_info_id'.
16608 (per_char_metric, encode_char): Delete externs.
16609 (calc_pixel_width_or_height): Adjust the prototype.
16610
16611 * emacs.c (enable_font_backend): Delete extern.
16612 (main): Don't set enable_font_backend. Don't check the command
16613 line argument "-disable-font-backend".
16614
16615 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
16616 (enum font_property_index): New members FONT_DPI_INDEX,
16617 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
16618 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
16619 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
16620 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
16621 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
16622 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
16623 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
16624 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
16625 (struct font_spec, struct font_entity): New structs.
16626 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
16627 (struct font): Many members from old "struct font_info" moved to
16628 here. Members font and entity deleted.
16629 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
16630 the new font-related objects.
16631 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
16632 (CHECK_FONT_GET_OBJECT): Likewise.
16633 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
16634 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
16635 (struct font_driver): New members case_sensitive anc check. Type
16636 of the member list and open changed.
16637 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
16638 (font_symbolic_width, font_find_object, font_get_spec)
16639 (font_set_lface_from_name): Delete extern.
16640 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
16641
16642 * font.c: Include <strings.h>.
16643 (enable_font_backend): Delete it.
16644 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
16645 (CHECK_VALIDATE_FONT_SPEC): Delete it.
16646 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
16647 (null_string): Delete it.
16648 (null_vector): Make it static.
16649 (font_family_alist): Delete it.
16650 (Qnormal): Extern it.
16651 (QCextra, QClanguage): Delete it.
16652 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
16653 (font_make_spec, font_make_entity, font_make_object)
16654 (font_intern_prop): Renamed from intern_downcase. Don't downcase
16655 the string. Callers changed.
16656 (font_pixel_size): Adjusted for the format change of font-related
16657 objects.
16658 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
16659 (font_style_to_value, font_style_symbolic): New function.
16660 (build_font_family_alist): Delete it.
16661 (font_registry_charsets): Use Fassoc_string instead of
16662 assq_no_quit.
16663 (font_prop_validate_symbol): Don't return null_string.
16664 (font_prop_validate_style): Adjusted for the change of
16665 style-related values in a font vector.
16666 (font_property_table): Delete entries for QClanguage and
16667 QCantialias, add entries for QCavgwidth.
16668 (get_font_prop_index): Delete the 2nd argument FROM.
16669 (font_prop_validate): Arguments changed.
16670 (font_put_extra): Adjusted for the change of font-related objects.
16671 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
16672 (font_parse_fcname, font_unparse_fcname)
16673 (font_prepare_composition): Likewise.
16674 (font_parse_family_registry): Renamed from font_merge_old_spec.
16675 (otf_open): Delete the 1st arg entity.
16676 (font_otf_capability): Adjusted for the above change.
16677 (font_score): New arg alternate_families. Adjusted for the change
16678 of font-related objects.
16679 (font_sort_entites): New arg best_only.
16680 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
16681 Delete them.
16682 (font_match_p): Check alternate families.
16683 (font_find_object): Delete it.
16684 (font_check_object): New function.
16685 (font_clear_cache): Adjusted for the change of font-related objects.
16686 (font_delete_unmatched): New arg.
16687 (font_list_entities): Call font_driver->list with a spec that
16688 doesn't specify style-related properties.
16689 (font_matching_entity): Arguments changed. Caller changed.
16690 (font_open_entity): Adjusted for the change of font-related objects.
16691 (font_close_object, font_has_char, font_encode_char)
16692 (font_get_name, font_get_spec): Likewise.
16693 (font_spec_from_name, font_clear_prop, font_update_lface):
16694 New functions.
16695 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
16696 (font_prepare_for_face, font_done_for_face, font_open_by_name)
16697 (font_at): Adjusted for the change of font-related objects.
16698 (font_range): New function.
16699 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
16700 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
16701 (Fcopy_font_spec, Fmerge_font_spec): New function.
16702 (Ffont_family_list): Renamed from list-families.
16703 (Finternal_set_font_style_table): Arguments changed.
16704 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
16705 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
16706 change of font-related objects.
16707 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
16708
16709 * fontset.h (struct font_info): Delete it. Most members go to
16710 struct font.
16711 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
16712 (enum FONT_SPEC_INDEX): Delete it.
16713 (font_info, list_fonts_func, load_font_func, query_font_func)
16714 (set_frame_fontset_func, find_ccl_program_func)
16715 (get_font_repertory_func, new_fontset_from_font_name): Delete
16716 externs.
16717 (fontset_from_font_name): Extern it.
16718 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
16719 (FONT_INFO_FROM_FACE): Deleted.
16720 (face_for_font): Adjust prototype.
16721
16722 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
16723 conditionals. Don't check enable_font_backend. Delete all codes
16724 used only when USE_FONT_BACKEND is not defined.
16725 (get_font_info_func, list_font_func, load_font_func)
16726 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
16727 (get_font_repertory_func): Delete them.
16728 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
16729 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
16730 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
16731 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
16732 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
16733 (fontset_compare_rfontdef): New function.
16734 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
16735 rfont-defs by qsort. Adjusted for the change of font-group vector.
16736 (load_font_get_repertory): Deleted.
16737 (fontset_find_font): Use new macros to ref/set elements of
16738 font-def and rfont-def.
16739 (fontset_font): Fix the timing of remembering that no font for C.
16740 (free_face_fontset): Do nothing if the face has no fontset.
16741 (face_suitable_for_char_p): Use new macros to ref/set elements of
16742 rfont-def.
16743 (face_for_char): Likewise. Call face_for_char with font_object.
16744 (fs_load_font): Delete. Delete #pragma surrounding it.
16745 (fs_query_fontset): Use strcasecmp instead of strcmp.
16746 (generate_ascii_font_name): Adjusted for the format change of
16747 font-spec.
16748 (Fset_fontset_font): Likewise. Use new macros to set elements of
16749 font-def.
16750 (Fnew_fontset): Use font_unparse_xlfd to generate
16751 FONTSET_ASCII (fontset).
16752 (new_fontset_from_font_name): Deleted.
16753 (fontset_from_font): Renamed from new_fontset_from_font. Check if
16754 a fontset is already created for the font. FIx updating of
16755 Vfontset_alias_alist.
16756 (fontset_ascii_font): Deleted.
16757 (Ffont_info): Adjusted for the format change of font-spec.
16758 (Finternal_char_font): Likewise.
16759 (Ffontset_info): Likewise.
16760 (syms_of_fontset): Don't check load_font_func.
16761
16762 * fns.c (internal_equal): Handle PREV_FONT.
16763
16764 * frame.h: Delete USE_FONT_BACKEND conditional.
16765
16766 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
16767 conditionals. Don't check enable_font_backend. Delete all codes
16768 used only when USE_FONT_BACKEND is not defined.
16769 (x_set_font): Call x_new_font, not x_new_fontset2.
16770 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
16771 already set for the frame.
16772
16773 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
16774 a font-entity by font_make_entity. Use font_intern_prop instead
16775 of intern_downcase. Use FONT_SET_STYLE to set a style-related
16776 font property. If a font is scalable, set avgwidth property to 0.
16777 Set font-entity property by font_put_extra.
16778 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
16779 (ffont_driver): Adjusted for the change of struct font_driver.
16780 (ftfont_spec_pattern): New function.
16781 (ftfont_list): Return a list, not vector.
16782 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
16783 (ftfont_list_family): Don't downcase names.
16784 (ftfont_free_entity): Deleted.
16785 (ftfont_open): Return a font-object. Adjusted for the change of
16786 struct font. Get underline_thickness and underline_position from
16787 font property. Don't update dpyinfo->smallest_font_height and
16788 dpyinfo->smallest_char_width.
16789 (ftfont_close): Don't free `struct font'.
16790 (ftfont_has_char): Adjusted for the format change of font-entity.
16791 (ftfont_encode_char, ftfont_text_extents): Likewise.
16792
16793 * ftxfont.c (ftxfont_list): Return a list, not vector.
16794 (ftxfont_open): Return a font-object. Adjusted for the change of
16795 struct font. Get underline_thickness and underline_position from
16796 font property. Don't update dpyinfo->smallest_font_height and
16797 dpyinfo->smallest_char_width.
16798 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
16799 (ftxfont_draw): Adjusted for the change of struct font.
16800
16801 * image.c (image_ascent): Don't include "charset.h". Include
16802 "character.h" and "font.h".
16803
16804 * lisp.h (enum pvec_type): New member PREV_FONT.
16805 (Fassoc_string): EXFUN it.
16806
16807 * print.c: Include font.h.
16808 (print_object): Handle font-related objects.
16809
16810 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
16811 conditionals. Don't check enable_font_backend. Delete all codes
16812 used only when USE_FONT_BACKEND is not defined.
16813 (handle_auto_composed_prop): Do nothing if it->f is not on a
16814 window system. Check how many following characters can be
16815 displayed by the same font.
16816 (calc_pixel_width_or_height): Type of the 4th arg is changed to
16817 'struct font *'.
16818 (get_char_face_and_encoding): Assign the whole encoding task to
16819 the `encode-char' method of a font driver.
16820 (fill_composite_glyph_string): Adjusted for the change of `struct
16821 face' and `struct glyph_string'.
16822 (fill_glyph_string): Likewise.
16823 (get_per_char_metric): Arguments changed.
16824 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
16825 and `struct glyph_string'.
16826 (produce_stretch_glyph, calc_line_height_property)
16827 (x_produce_glyphs): Likewise.
16828
16829 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
16830 conditionals. Don't check enable_font_backend. Delete all codes
16831 used only when USE_FONT_BACKEND is not defined. Use
16832 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
16833 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
16834 (Qp): Extern them.
16835 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
16836 Deleted.
16837 (struct font_name): Deleted.
16838 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
16839 (compare_fonts_by_sort_order): New function.
16840 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
16841 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
16842 Deleted.
16843 (Fx_family_fonts): Use font_list_entities, and sort fonts by
16844 compare_fonts_by_sort_order.
16845 (Fx_font_family_list): Call Ffont_family_list.
16846 (face_numeric_value, face_numeric_weight, face_numeric_slant)
16847 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
16848 (face_symbolic_slant, face_symbolic_swidth)
16849 (split_font_name_into_vector, build_font_name_from_vector)
16850 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
16851 (font_rescale_ratio, split_font_name, build_font_name)
16852 (free_font_names, sort_fonts, x_face_list_fonts)
16853 (face_font_available_p, sorted_font_list, cmp_font_names)
16854 (font_list_1, concat_font_list, font_list, remove_duplicates):
16855 Deleted.
16856 (Fx_list_fonts): Use Ffont_list.
16857 (LFACE_AVGWIDTH): Deleted.
16858 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
16859 by FONTP.
16860 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
16861 (set_lface_from_font_name): Delete it.
16862 (set_lface_from_font): Renamed from
16863 set_lface_from_font_and_fontset. Caller changed. Don't set
16864 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
16865 for face.
16866 (merge_face_vectors): Copy font-spec if necessary.
16867 Clear properties of the font-spec if necessary.
16868 (merge_face_ref): Clear properties of the font-spec if necessary.
16869 (Finternal_set_lisp_face_attribute): Likewise.
16870 (set_font_frame_param): Use font_load_for_lface to load a
16871 font-object, and call Fmodify_frame_parameters with it.
16872 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
16873 font name by Ffont_xlfd_name.
16874 (Finternal_lisp_face_attribute_values): Don't check QCweight,
16875 QCslant, and QCwidth.
16876 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
16877 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
16878 Compare fonts by EQ.
16879 (lookup_non_ascii_face): Deleted.
16880 (face_for_font): The 2nd argument changed.
16881 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
16882 Check atomic font properties by case insensitive.
16883 (realize_non_ascii_face): Set face->overstrike correctly.
16884 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
16885 (dump_realized_face): Get font name from
16886 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
16887
16888 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
16889 conditionals. Don't check enable_font_backend. Delete all codes
16890 used only when USE_FONT_BACKEND is not defined.
16891 (xic_create_xfontset): Original code deleted and renamed from
16892 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
16893 (x_make_gc): Don't set GCFont in GCs.
16894 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
16895 opened by "fixed".
16896 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
16897 find_ccl_program_func, query_font_func, set_frame_fontset_func,
16898 get_font_repertory_func.
16899
16900 * xfont.c: Include <stdlib.h> and "ccl.h".
16901 (struct xfont_info): New structure.
16902 (xfont_query_font): Deleted.
16903 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
16904 moved from xterm.c.
16905 (xfont_driver): Adjusted for the change of struct font_driver.
16906 (compare_font_names): New function.
16907 (xfont_list_pattern): Sort font names case insensitively. Make
16908 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
16909 (xfont_list): Return a list, not vector.
16910 (xfont_match): If the font doesn't have QCname property, generate
16911 a name from the other font properties.
16912 (xfont_open): Return a font-object. Adjusted for the change of
16913 struct font. Get underline_thickness and underline_position from
16914 font property. Don't update dpyinfo->smallest_font_height and
16915 dpyinfo->smallest_char_width.
16916 (xfont_close): Don't free struct font.
16917 (xfont_prepare_face): Adjusted for the change of struct font.
16918 (xfont_done_face): Deleted.
16919 (xfont_has_char): Adjusted for the change of struct font.
16920 (xfont_encode_char, xfont_draw): Likewise.
16921 (xfont_check): New function.
16922
16923 * xftfont.c (xftfont_list): Adjusted for the change of `list'
16924 callback function.
16925 (xftfont_match): Adjusted for the format change of font-entity.
16926 (xftfont_open): Adjusted for the format change of font-entity and
16927 font-object. Adjusted for the change of struct font. Return a
16928 font-object. Don't update dpyinfo->smallest_font_height and
16929 dpyinfo->smallest_char_width.
16930 (xftfont_close): Block input while calling XftFontClose.
16931 (xftfont_prepare_face): Don't block input while calling
16932 xftfont_get_colors. Adjusted for the change of struct font.
16933 (xftfont_shape): Return value of error case fixed.
16934
16935 * xrdb.c (x_load_resources): Don't setup a fontset resource.
16936
16937 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
16938 conditionals.
16939 (FONT_WIDTH): Return (f)->max_width.
16940 (struct x_display_info): Delete member `font'.
16941 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
16942 (x_find_ccl_program, x_get_font_repertory): Delete externs.
16943 (struct x_output): Change type of `font' to `struct font *'.
16944
16945 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
16946 conditionals. Don't check enable_font_backend. Delete all codes
16947 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
16948 (x_per_char_metric, x_encode_char): Deleted.
16949 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
16950 (x_compute_glyph_string_overhangs): Adjusted for the change of
16951 `struct face'.
16952 (x_draw_glyph_string_foreground)
16953 (x_draw_composite_glyph_string_foreground): Likewise.
16954 (x_draw_glyph_string): Likewise. Use font->underline_position and
16955 font->underline_thickness.
16956 (x_new_font): Renamed from x_new_fontset2.
16957 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
16958 (x_check_font): Call `check' method of a font driver.
16959 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
16960 (x_query_font, x_get_font_repertory): Deleted.
16961 (x_find_ccl_program): Renamed and moved to xfont.c.
16962 (x_redisplay_interface): Adjusted for the change of `struct
16963 redisplay_interface'.
16964
16965 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
16966 conditionals. Don't check enable_font_backend. Delete all codes
16967 used only when USE_FONT_BACKEND is not defined. Surround non-used
16968 code by "#ifdef OLD_FONT" and "endif".
16969 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
16970
16971 * w32font.h (struct w32font_info): New member.
16972 (FONT_COMPAT): New macro.
16973 (w32font_open_internal): Prototype adjusted.
16974
16975 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
16976 OLD_FONT" and "endif".
16977
16978 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
16979 conditionals. Don't check enable_font_backend. Delete all codes
16980 used only when USE_FONT_BACKEND is not defined.
16981 (w32font_open): Return a font-object. Make a font-object by
16982 font_make_object. Adjusted for the change of struct w32font_info.
16983 (w32font_close): Don't free struct font. Adjusted for the change
16984 of struct w32font_info.
16985 (w32font_encode_char, w32font_text_extents, w32font_draw):
16986 Adjusted for the change of struct w32font_info.
16987 (w32font_draw): Likewise.
16988 (w32font_list_internal): Return a list, not vector.
16989 (w32font_open_internal): Change the 4th arg to font-object.
16990 Adjusted for the change of struct w32font_info and font-object format.
16991 (add_font_name_to_list): Don't downcase names.
16992 (w32_enumfont_pattern_entity): Make a font-entity by
16993 font_make_entity. Adjusted for the format change of font-entity.
16994 Use FONT_SET_STYLE to set a style-related font property. If a
16995 font is scalable, set avgwidth property to 0. Set font-entity
16996 property by font_put_extra.
16997 (font_matches_spec): Adjusted for the format change of font-entity.
16998 (w32_weight_table, w32_decode_weight): New variables.
16999 (w32_encode_weight): New function.
17000 (fill_in_logfont): Adjusted for the format change of font-spec.
17001 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
17002 weight value.
17003 (w32font_driver): Adjusted for the change of struct font_driver.
17004
17005 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
17006 conditionals. Don't check enable_font_backend. Surround non-used
17007 code by "#ifdef OLD_FONT" and "endif".
17008 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
17009 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
17010
17011 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
17012 conditionals. Don't check enable_font_backend. Delete all codes
17013 used only when USE_FONT_BACKEND is not defined. Surround non-used
17014 code by "#ifdef OLD_FONT" and "endif".
17015
17016 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
17017 (uniscribe_open): Return value changed to font-object.
17018 Adjusted for the format change of font-object.
17019 (uniscribe_otf_capability): Adjusted for the change of struct font.
17020 (add_opentype_font_name_to_list): Don't downcase names.
17021 (uniscribe_font_driver): Adjusted for the change of struct
17022 font_driver.
17023
170242008-05-13 Chong Yidong <cyd@stupidchicken.com>
17025
17026 * dispnew.c (update_frame_1): Check if tty output is still valid
17027 before flushing it.
17028
170292008-05-13 Jan Djärv <jan.h.d@swipnet.se>
17030
17031 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
17032 to Gtk+ menus.
17033
170342008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
17035
17036 * dired.c (file_name_completion): Tweak the code so as to always do it
17037 in a single pass. Tighten the scope of some variables.
17038
17039 * dired.c (Qdefault_directory): New var.
17040 (file_name_completion): Use it instead of Fexpand_file_name.
17041 (syms_of_dired): Initialize it.
17042
170432008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
17044
17045 * fileio.c (double_dollars): Remove dead code.
17046
170472008-05-10 Eli Zaretskii <eliz@gnu.org>
17048
17049 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
17050 Mention w32-get-true-file-attributes in doc string.
17051
17052 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
17053
170542008-05-09 Glenn Morris <rgm@gnu.org>
17055
17056 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
17057 2008-04-23.
17058
170592008-05-09 Eli Zaretskii <eliz@gnu.org>
17060
17061 Support for reporting owner and group of each file on MS-Windows:
17062 * dired.c (stat_uname, stat_gname): New functions, with special
17063 implementation for w32.
17064 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
17065
17066 * w32.c: Rename the_passwd_* to dflt_passwd_*.
17067 (dflt_group_name): New static variable.
17068 (dflt_group): Rename from the_group.
17069 (init_user_info): Init dflt_group fields. Get user's group name
17070 from LookupAccountSid.
17071 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
17072 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
17073 New initialization states.
17074 (globals_of_w32): Initialize them to zero. Initialize the default
17075 group name to "None".
17076 (GetFileSecurity_Name): New global var, the name of the function
17077 to call for GetFileSecurity.
17078 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
17079 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
17080 (get_file_security, get_security_descriptor_owner)
17081 (get_security_descriptor_group, is_valid_sid)
17082 (get_file_security_desc, get_rid, get_name_and_id)
17083 (get_file_owner_and_group): New functions.
17084 (stat): Use get_file_security_desc and get_file_owner_and_group to
17085 report the owner and primary group of each file. Don't ignore the
17086 high 32 bits of file's size, now that st_size is 64-bit wide.
17087 Fix test when to get true file attributes.
17088 (init_user_info): Use get_rid instead of equivalent inline code.
17089 (fstat): Don't ignore the high 32 bits of file's size.
17090
170912008-05-09 Chong Yidong <cyd@stupidchicken.com>
17092
17093 * image.c (png_load): Use correct bit-depth for setting background
17094 color.
17095
170962008-05-08 Eli Zaretskii <eliz@gnu.org>
17097
17098 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
17099 epa-hook.elc.
17100
171012008-05-08 Juanma Barranquero <lekktu@gmail.com>
17102
17103 * font.c (Ffont_match_p): Don't use `iff' in docstring.
17104
171052008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
17106
17107 * macfns.c (Fx_create_frame): Make a copy of frame parameters
17108 because the original parameters are in pure storage now.
17109 (mac_window): Remove unused params. Update callers.
17110
171112008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
17112
17113 * lread.c (substitute_object_recurse): Use lower-level primitives.
17114 Don't signal errors when traversing sub-char-tables.
17115 Don't loop over all the possible characters when traversing char-tables.
17116
17117 * print.c (print_preprocess): Add sub-char-tables to the print-table,
17118 just like we do in print.c.
17119
171202008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
17121
17122 * minibuf.c (Ftry_completion): Remove code left over from when we used
17123 scmp instead of Fcompare_strings.
17124
171252008-05-04 Juanma Barranquero <lekktu@gmail.com>
17126
17127 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
17128
171292008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17130
17131 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
17132 Create bitmap context in native byte order.
17133
17134 * macterm.c (XDrawLine)
17135 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
17136 context in native byte order.
17137
171382008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17139
17140 * config.in: Regenerate.
17141
17142 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
17143 New definitions for Image I/O support.
17144 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
17145 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
17146 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
17147 (mac_data_provider_release_data, image_load_image_io)
17148 [USE_MAC_IMAGE_IO]: New functions.
17149 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
17150 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
17151 (init_image_func_pointer) [MAC_OSX]: Remove function.
17152 (image_load_quartz2d) [MAC_OSX]: Check availability of
17153 CGImageCreateWithPNGDataProvider at compile time.
17154 Use lowercase `false' for boolean constant.
17155 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
17156 Use image_load_image_io.
17157 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
17158 Don't check MyCGImageCreateWithPNGDataProvider.
17159 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
17160 Don't call init_image_func_pointer.
17161
17162 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
17163
17164 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
17165 Make variable non-static.
17166 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
17167 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
17168
17169 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
17170 (RED_FROM_ULONG): Mask off higher bits.
17171 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
17172
17173 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
17174 Include AvailabilityMacros.h.
17175 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
17176 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
17177
171782008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
17179
17180 * chartab.c (Fset_char_table_range): If range is t, really set all
17181 chars to that value.
17182
171832008-05-03 Eli Zaretskii <eliz@gnu.org>
17184
17185 * dired.c (Ffile_attributes): Don't allow the device number become
17186 negative.
17187
171882008-05-02 Daiki Ueno <ueno@unixuser.org>
17189
17190 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
17191
171922008-05-02 Juri Linkov <juri@jurta.org>
17193
17194 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
17195 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
17196 DEFAULT argument as a list of default values in docstrings.
17197
171982008-05-01 Chong Yidong <cyd@stupidchicken.com>
17199
17200 * puresize.h (BASE_PURESIZE): Increase to 1210000.
17201
172022008-05-01 Martin Rudalics <rudalics@gmx.at>
17203
17204 * dispnew.c (change_frame_size_1): Preserve small windows when
17205 shrinking frames by calling set_window_height|width with third
17206 arg 2.
17207
17208 * window.h (struct window): Replace field too_small_ok by field
17209 resize_proportionally.
17210
17211 * window.c (make_window): Initialize resize_proportionally.
17212 (enlarge_window): Temporarily set resize_proportionally to make
17213 sure that shrink_windows does scale the window proportionally.
17214 (shrink_windows): When window has resize_proportionally set try
17215 to shrink it proportionally by stealing from other windows.
17216 (struct saved_window, Fset_window_configuration)
17217 (compare_window_configurations): Handle resize_proportionally.
17218 (WINDOW_TOTAL_SIZE): New macro.
17219 (window_min_size, shrink_windows, size_window): Use it.
17220 (check_min_window_sizes): Remove. Invalid values of
17221 window-min-height|width are handled by window_min_size_2 now.
17222 (size_window, Fsplit_window, enlarge_window)
17223 (adjust_window_trailing_edge, grow_mini_window): Don't call
17224 check_min_window_sizes.
17225 (window_min_size_2, window_min_size_1, window_min_size):
17226 New argument safe_p for retrieving "safe" minimum sizes.
17227 (Fdisplay_buffer, Fsplit_window, enlarge_window)
17228 (adjust_window_trailing_edge, grow_mini_window):
17229 Adjust arguments of window_min_size... functions.
17230 (shrink_windows): Argument min_size removed. New argument
17231 safe_p allows shrinking windows to their safe minimum sizes.
17232 Calculate minimum size and decide whether a window shall be
17233 deleted for each window individually.
17234 (size_window): When nodelete_p equals 2, tell shrink_windows to
17235 delete windows only if their new minimum size is no more safe.
17236 (shrink_window_lowest_first): Call window_min_size_1 to make
17237 sure to preserve modeline of bottom-most window when resizing
17238 the minibuffer.
17239 (Fset_window_configuration, Fcurrent_window_configuration)
17240 (compare_window_configurations): Do not handle
17241 window-min-height|width any more.
17242 (syms_of_window): Clarify window-min-height|width doc-strings.
17243
172442008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
17245
17246 * dired.c (file_name_completion): Fix up the encoding/decoding issue
17247 some more. Copy some of the code from Ftry_completions.
17248 Remove special case code that dates back to initial revision when the
17249 slash was only added when necessary and that can't trigger nowadays.
17250
172512008-04-27 Kenichi Handa <handa@m17n.org>
17252
17253 * font.c (font_prop_validate): Signal `error' instead of `font'.
17254
172552008-04-29 Jason Rumney <jasonr@gnu.org>
17256
17257 * w32fns.c (Fw32_battery_status): New defun.
17258 (syms_of_w32fns): Defsubr it.
17259
172602008-04-28 Andreas Schwab <schwab@suse.de>
17261
17262 * dired.c (file_name_completion): Fix another mixing of encoded
17263 and decoded names.
17264
172652008-04-28 Juanma Barranquero <lekktu@gmail.com>
17266
17267 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
17268
172692008-04-27 Juanma Barranquero <lekktu@gmail.com>
17270
17271 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
17272
172732008-04-27 Andreas Schwab <schwab@suse.de>
17274
17275 * dired.c (file_name_completion): Fix inappropriate mixing of
17276 encoded and decoded names.
17277
17278 * xterm.c (XTread_socket): Fix use of uninitialized variable.
17279
17280 * puresize.h (BASE_PURESIZE): Increase to 1200000.
17281
172822008-04-26 Eli Zaretskii <eliz@gnu.org>
17283
17284 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
17285 2008-03-31, it's not needed anymore with `struct stat' definition
17286 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
17287 for the same reasons.
17288
172892008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
17290
17291 * m/sparc.h: Additional redefinitions for GNU/Linux.
17292
172932008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17294
17295 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
17296 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
17297 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
17298 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
17299 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
17300 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
17301 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17302 Likewise.
17303
17304 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
17305 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
17306 (mac_ax_number_of_characters): Add externs.
17307 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
17308 [USE_MAC_TSM]: Likewise.
17309 (mac_handle_text_input_event) [MAC_OSX]:
17310 Handle kEventTextInputOffsetToPos for no active input area case.
17311 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
17312 (mac_handle_document_access_event)
17313 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
17314 (install_application_handler) [MAC_OSX]: Register handlers for
17315 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
17316 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17317 Register mac_handle_document_access_event.
17318
17319 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
17320 Make functions non-static.
17321
173222008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
17323
17324 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
17325 (read_file_name_completion_ignore_case, insert_default_directory)
17326 (Qdefault_directory): Move to minibuffer.el.
17327 (Fread_file_name): Call the new `read-file-name' instead.
17328
173292008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17330
17331 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
17332 Make function non-static.
17333 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
17334 Remove function.
17335 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
17336 Move to mactoolbox.c.
17337 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
17338
17339 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
17340 (mac_rect_make): New macro.
17341
17342 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
17343 instead of float.
17344 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
17345 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
17346 (XSetBackground) [USE_CG_DRAWING]: Likewise.
17347 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
17348 CGRectMake.
17349 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
17350 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
17351 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
17352 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
17353 instead of WindowRef in argument type.
17354 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
17355 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
17356 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
17357 instead of DISPLAY. All uses changed.
17358 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
17359 (x_calc_absolute_position): Simplify so as not to use
17360 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
17361
17362 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
17363 instead of WindowRef in argument type.
17364 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
17365 [TARGET_API_MAC_CARBON]: Remove externs.
17366 (create_apple_event, mac_event_parameters_to_lisp)
17367 [TARGET_API_MAC_CARBON]: Add externs.
17368
17369 * mactoolbox.c (Vmac_ts_script_language_on_focus)
17370 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
17371 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
17372 is clicked.
17373 (x_activate_menubar): Remove extern for saved_menu_event_location.
17374 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
17375 Move from mac.c.
17376
173772008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17378
17379 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
17380 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
17381
173822008-04-23 Jason Rumney <jasonr@gnu.org>
17383
17384 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
17385 attributes only for local files.
17386
17387 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
17388 default to Qlocal.
17389
173902008-04-22 Juri Linkov <juri@jurta.org>
17391
17392 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
17393 read-buffer-to-switch instead of using the letter "B".
17394
173952008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
17396
17397 * fileio.c (Qdefault_directory): New variable.
17398 (Fread_file_name): Use it to pass `dir' to the completion functions.
17399
174002008-04-20 Chong Yidong <cyd@stupidchicken.com>
17401
17402 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
17403
174042008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
17405
17406 * keyboard.c (Vpre_help_message): Remove.
17407 (show_help_echo): Remove default C code.
17408
17409 * dired.c (directory_files_internal, file_name_completion):
17410 Only call ENCODE_FILE if the string is indeed decoded.
17411
174122008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
17413
17414 * Makefile.in (TOOLKIT_DEFINES): Remove.
17415 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
17416
174172008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17418
17419 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
17420 (mactoolbox.o): New target.
17421
17422 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
17423 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
17424
17425 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
17426 Use mac_set_frame_window_background instead of XSetWindowBackground.
17427 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
17428 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
17429 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
17430 instead of SetWindowTitleWithCFString.
17431 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
17432 Move function to mactoolbox.c.
17433 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
17434 Use mac_set_window_modified instead of SetWindowModified.
17435 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
17436 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
17437 (Fx_focus_frame): Use mac_front_non_floating_window instead of
17438 FrontNonFloatingWindow. Use mac_activate_window instead of
17439 ActivateWindow. Use mac_active_non_floating_window instead of
17440 ActiveNonFloatingWindow.
17441 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
17442 Use mac_show_hourglass and mac_hide_hourglass.
17443 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
17444 instead of GetGlobalMouse.
17445 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
17446 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
17447 Use mac_bring_window_to_front instead of BringToFront.
17448 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
17449 mactoolbox.c.
17450 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
17451 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
17452 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
17453 mactoolbox.c.
17454
17455 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
17456 (XtPointer): Move typedef from macmenu.c.
17457 (enum button_type): Move enum from macmenu.c.
17458 (widget_value): Move typedef from macmenu.c.
17459 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
17460 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
17461 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
17462 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
17463 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
17464 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
17465 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
17466 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
17467 (Selection): Move typedef from macselect.c.
17468 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
17469 macterm.c.
17470 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
17471 (mac_is_window_collapsed, mac_bring_window_to_front)
17472 (mac_send_window_behind, mac_hide_window, mac_show_window)
17473 (mac_collapse_window, mac_front_non_floating_window)
17474 (mac_active_non_floating_window, mac_activate_window)
17475 (mac_move_window_structure, mac_move_window, mac_size_window)
17476 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
17477
17478 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
17479 (enum mac_menu_kind): Move enum to mactoolbox.c.
17480 (min_menu_id): Move variable to mactoolbox.c.
17481 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
17482 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
17483 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
17484 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
17485 [TARGET_API_MAC_CARBON]: Likewise.
17486 (XtPointer): Move typedef to macgui.h.
17487 (enum button_type): Move enum to macgui.h.
17488 (widget_value): Move typedef to macgui.h.
17489 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
17490 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
17491 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
17492 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
17493 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
17494 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
17495 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
17496 (popup_activated_flag): Make variable non-static.
17497 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
17498 (add_menu_item, fill_menu, dispose_menus):
17499 Move functions to mactoolbox.c.
17500 (restore_show_help_function, menu_target_item_handler)
17501 (install_menu_target_item_handler, mac_handle_dialog_event)
17502 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
17503 [TARGET_API_MAC_CARBON]: Likewise.
17504 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
17505 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17506 (find_and_call_menu_selection, name_is_separator): Make function
17507 non-static.
17508 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
17509 to mactoolbox.c.
17510 (set_frame_menubar): Don't call install_menu_quit_handler.
17511 (menu_item_selection): New variable.
17512 (mac_menu_show): Use create_and_show_popup_menu.
17513 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
17514 selection but set variable menu_item_selection. All uses changed.
17515 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
17516 Call install_menu_quit_handler. Move to mactoolbox.c.
17517
17518 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
17519 (Selection): Move typedef to macgui.h.
17520 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
17521 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
17522 Make variables non-static.
17523 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17524 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
17525 Make functions non-static.
17526 (Vmac_service_selection) [MAC_OSX]: Likewise.
17527 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
17528 (mac_valid_selection_target_p, mac_clear_selection)
17529 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17530 (mac_put_selection_value, mac_selection_has_target_p)
17531 (mac_get_selection_value, mac_get_selection_target_list)
17532 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
17533 Move functions to mactoolbox.c.
17534 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
17535 Likewise.
17536 (copy_scrap_flavor_data, mac_handle_service_event)
17537 (install_service_handler) [MAC_OSX]: Likewise.
17538 (syms_of_macselect) <Vmac_dnd_known_types>:
17539 Use mac_dnd_default_known_types.
17540
17541 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
17542 Move to mactoolbox.c.
17543 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
17544 (Fx_selection_owner_p): Add EXFUN.
17545 (install_window_handler, remove_window_handler, XSetWindowBackground):
17546 Remove externs.
17547 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
17548 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
17549 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
17550 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
17551 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
17552 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
17553 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
17554 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
17555 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
17556 (create_and_show_popup_menu, mac_get_selection_from_symbol)
17557 (mac_valid_selection_target_p, mac_clear_selection)
17558 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17559 (mac_put_selection_value, mac_selection_has_target_p)
17560 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
17561 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
17562 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
17563 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17564 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
17565 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17566 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
17567 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17568 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17569
17570 * mactoolbox.c: New file.
17571
175722008-04-18 Jason Rumney <jasonr@gnu.org>
17573
17574 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
17575
175762008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
17577
17578 * character.c (Fmultibyte_char_to_unibyte):
17579 Return latin1 chars unchanged.
17580
17581 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
17582 relocated if it points to `name'.
17583
175842008-04-17 Kenichi Handa <handa@m17n.org>
17585
17586 * data.c (Faset): Allow setting a multibyte character in an
17587 ASCII-only unibyte string.
17588
17589 * lisp.h (STRING_SET_MULTIBYTE): New macro.
17590
175912008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
17592
17593 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
17594 done in config.h.
17595
175962008-04-16 Juanma Barranquero <lekktu@gmail.com>
17597
17598 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
17599 (Fchar_direction): Add usage in the docstring.
17600
176012008-04-15 Chong Yidong <cyd@stupidchicken.com>
17602
17603 * keyboard.c (read_key_sequence): Remove always-true checks.
17604
176052008-04-14 Jason Rumney <jasonr@gnu.org>
17606
17607 * w32font.c (w32font_open_internal): Set max_bounds.descent in
17608 compatibility struct, for better underline positioning.
17609
176102008-04-13 David Hansen <david.hansen@gmx.net>
17611
17612 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
17613 string.
17614
176152008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
17616
17617 * m/hp800.h (XUINT, XSET): Remove.
17618
176192008-04-12 Juanma Barranquero <lekktu@gmail.com>
17620
17621 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
17622 previous change.
17623
176242008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
17625
17626 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
17627 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
17628
176292008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17630
17631 * keymap.h (map_keymap_canonical): Declare.
17632 * xmenu.c (single_keymap_panes): Use it.
17633
176342008-04-11 Glenn Morris <rgm@gnu.org>
17635
17636 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
17637 set the target's value to that of the alias.
17638
176392008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17640
17641 * term.c (set_tty_color_mode): Left over typo.
17642
176432008-04-10 Michael Albinus <michael.albinus@gmx.de>
17644
17645 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
17646 only after check for file name handler functions. Signal, when
17647 native functionality is not supported.
17648 (syms_of_fileio): Declare it unconditionally.
17649
176502008-04-10 Jason Rumney <jasonr@gnu.org>
17651
17652 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
17653 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
17654
17655 * w32.c (logon_network_drive): Also logon to remote drives that
17656 are mapped to drive letters.
17657
176582008-04-10 Glenn Morris <rgm@gnu.org>
17659
17660 * xdisp.c (truncate-partial-width-windows): Doc fix.
17661
176622008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
17663
17664 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
17665 Move functions to minibuffer.el.
17666 (syms_of_fileio): Don't declare them.
17667
176682008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17669
17670 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
17671 (syms_of_minibuf): Remove its initialization.
17672
17673 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
17674
176752008-04-09 Juanma Barranquero <lekktu@gmail.com>
17676
17677 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
17678
176792008-04-09 Jason Rumney <jasonr@gnu.org>
17680
17681 * makefile.w32-in (distclean): Delete makefile too.
17682 (maintainer-clean): New target.
17683
17684 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
17685
17686 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
17687 for new font backend and composite cases.
17688
176892008-04-09 Jan Djärv <jan.h.d@swipnet.se>
17690
17691 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
17692 Most of the code moved to run_timers.
17693 (do_pending_atimers): Call run_timers.
17694 (run_timers): New function.
17695
17696 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
17697 run atimers.
17698
17699 * process.c (wait_reading_process_output): The same as above.
17700
177012008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17702
17703 * minibuf.c (last_exact_completion): Remove variable.
17704 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
17705 (complete_and_exit_1, complete_and_exit_2)
17706 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
17707 (Fdisplay_completion_list, display_completion_list_1)
17708 (Fminibuffer_completion_help, Fself_insert_and_exit)
17709 (Fexit_minibuffer, Fminibuffer_message): Move functions to
17710 minibuffer.el.
17711 (syms_of_minibuf): Remove corresponding initializations.
17712
17713 * keyboard.c (Qdeactivate_mark): New var.
17714 (command_loop_1): Use it to call `deactivate-mark'.
17715 (syms_of_keyboard): Initialize it.
17716
17717 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
17718 to another frame.
17719 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
17720 Don't call set_tty_color_mode.
17721 (store_frame_param): Reset previous_frame rather than call
17722 set_tty_color_mode.
17723 * term.c (set_tty_color_mode): Rewrite.
17724 * dispextern.h (set_tty_color_mode): New type.
17725 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
17726
177272008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
17728
17729 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
17730 for generic chars, which do not exist any more in emacs-unicode.
17731
177322008-04-08 Michael Albinus <michael.albinus@gmx.de>
17733
17734 * coding.c (detect_coding_emacs_mule)
17735 (Ffind_operation_coding_system): Fix typo.
17736
177372008-04-08 Jason Rumney <jasonr@gnu.org>
17738
17739 * w32uniscribe.c (SNAME): Extract only symbol name.
17740
17741 * w32font.h (struct w32_metric_cache): New struct.
17742 (w32font_info): Use it.
17743 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
17744 (CACHE_BLOCKSIZE): New constants.
17745
17746 * w32font.c (Qja, Qko, Qzh): New symbols.
17747 (syms_of_w32font): Initialise them.
17748 (font_matches_spec): Use them to filter by language.
17749 (recompute_cached_metrics): Remove function.
17750 (compute_metrics, clear_cached_metrics): New functions.
17751 (w32font_encode_char): Use them to manage metric cache.
17752 (w32font_text_extents): Cache metrics for all glyphs on demand.
17753 Delay converting glyph indices to WORD until needed.
17754 (w32font_open_internal): Initialize metric cache to empty.
17755 (registry_to_w32_charset): Charset should always be a symbol.
17756 (fill_in_logfont, list_all_matching_fonts): Family should
17757 always be a symbol.
17758
177592008-04-06 Jason Rumney <jasonr@gnu.org>
17760
17761 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
17762 Give up if glyph indices not supported. Use uniscribe obtained
17763 ABC widths for individual metrics. Map glyph clusters back to
17764 characters using fClusterStart flag. Return number of glyphs
17765 produced, not chars processed.
17766 (uniscribe_shape): Map char at FROM to current glyph.
17767
177682008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17769
17770 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
17771 Use SetMenuItemHierarchicalMenu.
17772
177732008-04-05 Jason Rumney <jasonr@gnu.org>
17774
17775 * image.c (pbm_load): Allow color values up to 65535.
17776 Throw an error if max_color_idx is outside the supported range.
17777 Report an error when image size is invalid.
17778 Read two bytes at a time when raw images have max_color_idx above 255.
17779
aac0c6e3
MR
177802008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
17781
17782 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
17783 append "CCL: Quitted" when the CCL program is quitted.
17784 (setup_ccl_program): Initialize ccl->quit_silently to zero.
17785
17786 * ccl.h (struct ccl_program): New member quit_silently.
17787
177882008-04-05 Chong Yidong <cyd@stupidchicken.com>
17789
17790 * search.c (compile_pattern_1): Treat non-nil and non-string of
17791 search-spaces-regexp as nil.
17792
17793 * minibuf.c (Fassoc_string): Tweak docstring.
17794
177952008-04-05 Eli Zaretskii <eliz@gnu.org>
17796
17797 * dired.c (Ffile_attributes): Support inode numbers wider than 32
17798 bits. Remove ugly WINDOWSNT-specific kludge introduced on
17799 2008-03-14 to force inode be positive.
17800
17801 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
17802 _S_* ones, since we now use our own sys/stat.h.
17803 (stat, fstat): Don't mangle the inode number.
17804 (init_user_info): Don't restrict UID and GID to 0-60000 range.
17805
178062008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
17807
17808 * frame.h (struct frame): Give one more bit to `visible' since we use
17809 values larger than 1 to indicate obscured frames on ttys.
17810
17811 * keymap.c (Qkeymap_canonicalize): New var.
17812 (Fmap_keymap_internal): New fun.
17813 (describe_map): Use keymap-canonicalize.
17814
17815 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
17816 (Fundo_boundary): Set them.
17817 (syms_of_undo): Initialize them.
17818 (record_point): Use them instead of last_point_position*.
17819 (last_undo_buffer): Change type.
17820
178212008-04-04 Jason Rumney <jasonr@gnu.org>
17822
17823 * w32font.c (w32font_text_extents): Use font's ascent and descent.
17824 (recompute_cached_metrics): Don't set ascent and descent per char.
17825
17826 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
17827 (uniscribe_check_otf): Add GC protection before consing.
17828 Rearrange loop for counting features.
17829
178302008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
17831
17832 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
17833 buffer with byte-size of source buffer.
17834
178352008-04-03 Chong Yidong <cyd@stupidchicken.com>
17836
17837 * callint.c (Fcall_interactively): Handle temporary region even
17838 when shift-select-mode is off.
17839
178402008-04-03 Jason Rumney <jasonr@gnu.org>
17841
17842 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
17843
178442008-04-03 Kenichi Handa <handa@m17n.org>
17845
17846 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
17847 (CATEGORY_MASK_UTF_16): Likewise.
17848 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
17849 binary file.
17850 (detect_coding): Add null-byte detection for a binary file.
17851 (detect_coding_system): Likewise.
17852
178532008-04-03 Jason Rumney <jasonr@gnu.org>
17854
17855 * w32uniscribe.c: New file.
17856
17857 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
17858
17859 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
17860
17861 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
17862 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
17863 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
17864 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
17865 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
17866 (Qphonetic): New symbols.
17867 (syms_of_w32font): Initialize them.
17868 (font_supported_scripts): Use them.
17869 (w32font_list_family): List all charsets.
17870 (w32font_text_extents, recompute_cached_metrics): Fix metric
17871 calculations.
17872 (w32_enumfont_pattern_entity): Make full_type a DWORD.
17873 Give opentype fonts their own format.
17874 (font_matches_spec): New arguments backend and logfont.
17875 Handle :otf spec for uniscribe backend.
17876 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
17877 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
17878
17879 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
17880 font backend.
17881 (globals_of_w32fns): Initialize uniscribe font backend.
17882
17883 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
17884 dependencies.
17885 (w32uniscribe.$(O)): New file to build.
17886 (FONT_OBJ): Include w32uniscribe.$(O).
17887 (LIBS): Add uniscribe libraries.
17888
17889 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
17890
178912008-04-02 Chong Yidong <cyd@stupidchicken.com>
17892
17893 * callint.c (Vshift_select_mode): New var.
17894 (Finteractive): Document new ^ spec.
17895 (Fcall_interactively): Call handle-shift-selection if the ^ spec
17896 is present.
17897
17898 * keyboard.c (Vthis_command_keys_shift_translated): New var.
17899 (command_loop_1): Avoid running the direct display versions of
17900 forward-char and backward-char if shift-selection may occur.
17901 (read_key_sequence): Set Vthis_command_keys_shift_translated if
17902 shift-translation takes place.
17903
17904 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
17905 avoid clobbering by define-minor-mode.
17906
17907 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
17908 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
17909
17910 * syntax.c (Fforward_word): Add ^ interactive spec.
17911
17912 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
17913 (Fscroll_right): Add ^ interactive spec.
17914
179152008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
17916
17917 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
17918
17919 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
17920
17921 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
17922
179232008-03-31 Juri Linkov <juri@jurta.org>
17924
17925 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
17926
179272008-03-30 Jan Djärv <jan.h.d@swipnet.se>
17928
17929 * gtkutil.c (xg_set_geometry): Fix indentation.
17930 (xg_resize_outer_widget): Remove.
17931 (x_wm_size_hint_off): Fix indentation.
17932 (xg_frame_set_char_size): Call flush_and_sync after
17933 gtk_window_resize.
17934 (x_wm_set_size_hint): Pass NULL as geometry window to
17935 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
17936 Add menu bar and tool bar height to base height.
17937 (xg_update_frame_menubar, free_frame_menubar)
17938 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
17939 (update_frame_tool_bar, free_frame_tool_bar):
17940 Change xg_resize_outer_widget to xg_frame_set_char_size.
17941
179422008-03-30 Michael Albinus <michael.albinus@gmx.de>
17943
17944 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
17945 (Fdbus_call_method): New parameter TIMEOUT.
17946 (dbus-send-signal): Optimize UNGCPRO call.
17947
179482008-03-29 Juri Linkov <juri@jurta.org>
17949
17950 * window.c (Fdisplay_buffer): Move call to
17951 Vsplit_window_preferred_function out of conditions that check
17952 if window is eligible for vertical splitting.
17953 When Vsplit_window_preferred_function is non-nil, call it and use
17954 its non-nil return value as window. Otherwise, continue doing
17955 vertical splitting using Fsplit_window with arg horflag=nil.
17956 (syms_of_window) <Vsplit_window_preferred_function>: Change the
17957 default value from `split-window' to nil.
17958
179592008-03-29 Juri Linkov <juri@jurta.org>
17960
17961 * callint.c (Fcall_interactively): Revert 2008-03-16 change
17962 for interactive code letters 'b' and 'B'.
17963
179642008-03-29 Eli Zaretskii <eliz@gnu.org>
17965
17966 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
17967 multibyte string.
17968
179692008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
17970
17971 * keyboard.c (pending_funcalls): New var.
17972 (timer_check): Run it.
17973 (syms_of_keyboard): Initialize it.
17974 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
17975 (Vdelete_terminal_functions): New vars.
17976 (syms_of_terminal): Initialize them.
17977 (Fdelete_terminal): Run delete-terminal-functions.
17978 * xdisp.c (safe_eval): Rewrite.
17979 (safe_call2): New fun.
17980 * frame.c (Qdelete_frame_functions): New var.
17981 (syms_of_frame): Initialize it.
17982 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
17983 * lisp.h (safe_call2, pending_funcalls): Declare.
17984
179852008-03-28 Andreas Schwab <schwab@suse.de>
17986
17987 * indent.c (Fmove_to_column): Move declaration before statements.
17988
179892008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
17990
17991 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
17992 (struct frame): Use bit fields for boolean vars.
17993
17994 * process.c (server_accept_connection): Simplify naming.
17995 (emacs_get_tty_pgrp): Use SDATA.
17996
17997 * coding.c (decode_coding_object): Fix last change.
17998
179992008-03-27 Jason Rumney <jasonr@gnu.org>
18000
18001 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
18002
180032008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
18004
18005 * charset.c (Fdefine_charset_internal): Change the way of
18006 registering charsets in Vcharset_order_list.
18007 (syms_of_charset): Make the charset `eight-bit' supplementary.
18008
180092008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
18010
18011 * regex.c (EXTEND_BUFFER): Change order of pointer addition
18012 operations, to avoid having the difference between pointers
18013 overflow.
18014
180152008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
18016
18017 * indent.c (check_display_width): New fun.
18018 (scan_for_column): Use it.
18019
18020 * data.c (syms_of_data): Mark most-positive-fixnum and
18021 most-negative-fixnum as constants.
18022
18023 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
18024
18025 * indent.c (scan_for_column): Extract from current_column_1.
18026 Merge with the same code from Fmove_to_column.
18027 (current_column_1, Fmove_to_column): Use it.
18028
180292008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
18030
18031 * keymap.c (map_keymap_internal): New fun.
18032 (map_keymap): Use it.
18033 (Fmap_keymap_internal): New fun.
18034 (Fmap_keymap): Remove left-out test from before make_save_value.
18035
18036 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
18037
18038 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
18039 Use XCAR/XCDR.
18040
18041 * process.h (struct Lisp_Process): Remove filter_multibyte.
18042 * process.c (QCfilter_multibyte): Remove.
18043 (setup_process_coding_systems): Don't use filter_multibyte.
18044 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
18045 (read_process_output): Don't adjust multibyteness to filter_multibyte.
18046 (Fset_process_filter_multibyte): Change the coding-system to
18047 approximate the previous behavior.
18048 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
18049 coding-system.
18050
18051 * coding.c (decode_coding_object): When not decoding into a buffer,
18052 obey the coding system's preference of (uni|multi)byte.
18053
180542008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
18055
18056 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
18057 every char is changed and has a different byte-length.
18058 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
18059 Fix int -> EMACS_INT.
18060
180612008-03-23 David Hansen <david.hansen@gmx.net>
18062
18063 * dbusbind.c (xd_read_message): Remove extra copying of message
18064 strings. Check for NULL `interface' or `member'.
18065
180662008-03-22 Eli Zaretskii <eliz@gnu.org>
18067
18068 * w32.c (readdir): If FindFirstFile/FindNextFile return in
18069 cFileName a file name that includes `?' characters, use the 8+3
18070 alias in cAlternateFileName instead.
18071
180722008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
18073
18074 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
18075
180762008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
18077
18078 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
18079 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
18080 work on current_buffer only instead (that was already the case
18081 for some of the code anyway).
18082 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
18083 (temp_set_point, temp_set_point_both): Use EMACS_INT.
18084 (SET_PT, SET_PT_BOTH): Adjust.
18085 * intervals.h (set_point, temp_set_point, set_point_both)
18086 (temp_set_point_both): Remove redundant declarations.
18087
180882008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
18089
18090 * fileio.c (Finsert_file_contents):
18091 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
18092 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
18093 when buffer != current_buffer anyway.
18094
180952008-03-20 Andreas Schwab <schwab@suse.de>
18096
18097 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
18098 as default.
18099
181002008-03-19 Jason Rumney <jasonr@gnu.org>
18101
18102 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
18103 (syms_of_w32fns): Initialize them.
18104 (HOURGLASS_ID): New constant.
18105 (x_window_to_frame): Don't check hourglass_window.
18106 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
18107 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
18108 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
18109 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
18110 Only change the cursor if hourglass is not active.
18111 (Fx_create_frame): Initialize frame's current_cursor.
18112 (hourglass_atimer): Remove.
18113 (hourglass_started): New function.
18114 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
18115 (show_hourglass): Adapt to w32, changing argument to frame.
18116
18117 * w32term.h (struct w32_output): Remove hourglass_window.
18118 Add current_cursor.
18119
18120 * eval.c (call_debugger, Fsignal):
18121 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
18122 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
18123 (Fexecute_extended_command, cancel_hourglass_unwind):
18124 * minibuf.c (read_minibuf):
18125 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
18126
181272008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
18128
18129 * window.c (run_funs): New fun.
18130 (run_window_configuration_change_hook): Use it to run the buffer-local
18131 and the global part of the hook.
18132
18133 * xdisp.c (format_mode_line_unwind_data): Add window argument.
18134 (unwind_format_mode_line): Restore selected window.
18135 (x_consider_frame_title, Fformat_mode_line): Set selected window.
18136
181372008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
18138
18139 * editfns.c (Fchar_equal): Check they are valid characters.
18140
18141 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
18142
181432008-03-17 Andreas Schwab <schwab@suse.de>
18144
18145 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
18146 against a charset.
18147
18148 * lisp.h (Fbuffer_list): Declare.
18149
181502008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 18151
aac0c6e3
MR
18152 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
18153 handlebox_widget is != 0.
18154
181552008-03-16 Juri Linkov <juri@jurta.org>
18156
18157 * callint.c (Fcall_interactively): For interactive code letters
18158 'b' and 'B' put the buffer list into the list of default "future"
18159 values of the minibuffer.
18160
181612008-03-16 Andreas Schwab <schwab@suse.de>
18162
18163 * keyboard.c (read_key_sequence): Fix downcasing of letters with
18164 modifiers.
18165
18166 * regex.c (re_match_2_internal): Correct matching of a charset
18167 against latin-1 characters.
18168
181692008-03-16 Kenichi Handa <handa@m17n.org>
18170
18171 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
18172 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
18173 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
18174 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
18175 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
18176 CHAR_STRING_ADVANCE.
18177 (produce_chars): Fix for the case that the source and the
18178 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
18179 instead of CHAR_STRING_ADVANCE.
18180 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
18181 STRING_CHAR_ADVANCE.
18182
181832008-03-15 Andreas Schwab <schwab@suse.de>
18184
18185 * regex.c (re_match_2_internal): Correct matching of eight bit
18186 characters in unibyte strings.
18187
181882008-03-15 Martin Rudalics <rudalics@gmx.at>
18189
18190 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
18191 at end of range when it coincides with the end of the buffer.
18192
181932008-03-14 Eli Zaretskii <eliz@gnu.org>
18194
18195 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
18196
18197 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
18198
181992008-03-14 Jason Rumney <jasonr@gnu.org>
18200
18201 * editfns.c (initial_tz): New variable.
18202 (syms_of_editfns): Initialize it.
18203 (Fset_time_zone_rule): Set it when first called.
18204 Use it when TZSTRING is nil.
18205
18206 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
18207 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
18208 (monitor_from_point_fn, get_monitor_info_fn): New globals.
18209 (globals_of_w32fns): Initialize them.
18210 (compute_tip_xy): Use them to position tooltips.
18211
182122008-03-14 Glenn Morris <rgm@gnu.org>
18213
18214 * emacs.c (main): Revert previous change.
18215 (standard_args): Revert -internal-script back to -scriptload,
18216 and remove the long-option form.
18217
182182008-03-13 Glenn Morris <rgm@gnu.org>
18219
18220 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
18221 Remove option -enable-font-backend.
18222
182232008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
18224
18225 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
18226
182272008-03-11 Jan Djärv <jan.h.d@swipnet.se>
18228
18229 * xterm.c (x_connection_closed): For GTK: If this is the last
18230 terminal just exit without closing the display.
18231
182322008-03-11 Jason Rumney <jasonr@gnu.org>
18233
18234 * w32font.c (w32font_full_name): Use floor to round.
18235
f0131492 182362008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
18237
18238 * sound.c (alsa_configure): Declare vol at beginning of block.
18239
18240 * fontset.c (Ffontset_info): Remove extra semicolon.
18241
182422008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
18243
18244 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
18245 size of resulting string.
18246
182472008-03-10 Jason Rumney <jasonr@gnu.org>
18248
18249 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
18250
182512008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18252
18253 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
18254 Don't pretend as if characters with display property haven't been
18255 consumed for string-replacing-string case.
18256
182572008-03-08 Kim F. Storm <storm@cua.dk>
18258
18259 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
18260 (get_next_display_element, next_element_from_string)
18261 (next_element_from_ellipsis, next_element_from_buffer): Use it.
18262
182632008-03-08 Andreas Schwab <schwab@suse.de>
18264
18265 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
18266
182672008-03-06 Jason Rumney <jasonr@gnu.org>
18268
18269 * w32font.c (w32_registry): Take font_type argument. Use ANSI
18270 when charset not specified. Only translate ANSI to unicode when
18271 font_type is truetype.
18272 (w32font_coverage_ok): New function.
18273 (add_font_entity_to_list): Use it to filter unsuitable fonts.
18274
182752008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
18276
18277 * lread.c (Fread_char): Resolve modifiers.
18278 (Fread_char_exclusive): Likewise.
18279
18280 * character.c (char_resolve_modifier_mask): New function.
18281 (char_string): Use char_resolve_modifier_mask.
18282 (Fchar_resolve_modifiers): New function.
18283 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
18284 function.
18285
182862008-03-04 Jason Rumney <jasonr@gnu.org>
18287
18288 * makefile.w32-in: Always include w32font.c in the build.
18289 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
18290
182912008-03-04 Andreas Schwab <schwab@suse.de>
18292
18293 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
18294 (versionclean): Likewise.
18295
182962008-03-04 Juanma Barranquero <lekktu@gmail.com>
18297
18298 * .cvsignore: Add oo.
18299
183002008-03-03 Andreas Schwab <schwab@suse.de>
18301
18302 * coding.c (decode_coding_object): Inhibit gap shrinking while
18303 decoding in place.
18304
183052008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
18306
18307 * w32term.c: Remove unused include "gnu.h".
18308 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
18309
18310 * gnu.h: Rename to ...
18311 * emacs-icon.h: ... this.
18312 * xterm.c: Use emacs-icon.h instead of gnu.h.
18313 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
18314
183152008-03-03 Juanma Barranquero <lekktu@gmail.com>
18316
18317 * w32font.c: Include math.h.
18318
183192008-03-03 Jason Rumney <jasonr@gnu.org>
18320
18321 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
18322 Compute options separately.
18323 (w32font_open_internal): Set glyph_idx before caching metrics.
18324
18325 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
18326 Define if system headers don't.
18327 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
18328 (w32font_encode_char): Don't declare here.
18329
18330 * w32font.c (Quniscribe, QCformat): New symbols.
18331 (syms_of_w32font): Define them.
18332 (w32font_has_char): Indicate uncertainty.
18333 (w32font_encode_char): Encode as glyph point. Make static.
18334 (recompute_cached_metrics): New function.
18335 (w32font_open_internal): Use it. Set font to use glyph points
18336 initially. Set format based on type of font.
18337 (w32font_text_extents, w32font_draw): Optionally use glyph points.
18338 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
18339 on it. Set format based on information available here.
18340 (add_font_entity_to_list): Identify backend based on opentype_only.
18341
183422008-03-02 Andreas Schwab <schwab@suse.de>
18343
18344 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
18345
18346 * coding.c (decode_coding_big5, produce_chars):
18347 Fix typos in last change.
18348
183492008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
18350
18351 * gnu.h: New icon.
18352
183532008-03-02 Kenichi Handa <handa@m17n.org>
18354
18355 * coding.c (decode_coding_utf_8): When eol-type of CODING is
18356 `dos', don't decode '\r' if that is the last in the source.
18357 (decode_coding_utf_16, decode_coding_emacs_mule)
18358 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18359 (decode_coding_raw_text, decode_coding_charset): Likewise.
18360 (produce_chars): Don't decode EOL here. Use EMACS_INT.
18361
183622008-03-01 Jason Rumney <jasonr@gnu.org>
18363
18364 * w32font.c (w32font_full_name): Report point size for scalable fonts.
18365
183662008-03-01 Kim F. Storm <storm@cua.dk>
18367
18368 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
18369
183702008-03-01 Jason Rumney <jasonr@gnu.org>
18371
18372 * w32font.c (w32font_full_name): New function.
18373 (w32font_open_internal): Use it.
18374
183752008-03-01 Kim F. Storm <storm@cua.dk>
18376
18377 * dispnew.c (line_draw_cost): Fix invalid glyph check.
18378
183792008-03-01 Jason Rumney <jasonr@gnu.org>
18380
18381 * font.c (font_unparse_fcname): Increase len when style is a symbol.
18382
183832008-03-01 Jan Djärv <jan.h.d@swipnet.se>
18384
18385 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
18386 xg_frame_resized when the event is for the edit widget.
18387
18388 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
18389
18390 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
18391 set_char_size.
18392 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
18393 operations on widgets here. Just set frame size if needed.
18394 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
18395 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
18396 (x_wm_set_size_hint): Set size hints on the edit widget only, not
18397 the whole frame.
18398 (xg_create_tool_bar): Move attachment of the tool bar to
18399 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
18400 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
18401
184022008-03-01 Jason Rumney <jasonr@gnu.org>
18403
18404 * w32fns.c (w32_msg_pump): Disable debug code.
18405
184062008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18407
18408 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
18409
184102008-02-29 Chong Yidong <cyd@stupidchicken.com>
18411
18412 * xdisp.c (next_overlay_string): Don't set
18413 overlay_strings_at_end_processed_p if we're currently reading from
18414 a display string.
18415
184162008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
18417
18418 * xdisp.c (get_overlay_strings_1): Fix typo.
18419
184202008-02-29 Chong Yidong <cyd@stupidchicken.com>
18421
18422 * xdisp.c (get_overlay_strings_1): Add missing argument type.
18423
184242008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
18425
18426 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
18427
18428 * xdisp.c (display_mode_element): Cancel the previous change.
18429 (decode_mode_spec): Likewise.
18430 (handle_auto_composed_prop): Don't make composition if it->string
18431 is a string.
18432
184332008-02-27 Kim F. Storm <storm@cua.dk>
18434
18435 * lisp.h (GLYPH): Change type from int to struct with separate char
18436 and face_id members.
18437 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
18438 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
18439 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
18440 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
18441 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
18442 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
18443 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
18444 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
18445 handle new Lisp glyph code encoding, either an integer or a cons.
18446
18447 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
18448 (GLYPH_ALIAS): Delete.
18449 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
18450 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
18451 (GLYPH_FROM_CHAR): Replace macro by ...
18452 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
18453
18454 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
18455 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
18456 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
18457 (GLYPH_INVALID_P): New macro.
18458 (spec_glyph_lookup_face): Update prototype.
18459
18460 * dispnew.c (line_draw_cost): Adapt to new glyph type.
18461 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
18462 new glyph code encoding.
18463 (spec_glyph_lookup_face): No return value; update passed glyph instead.
18464 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
18465
18466 * xdisp.c (get_next_display_element, next_element_from_display_vector):
18467 Adapt to new glyph type and new glyph code encoding.
18468
18469 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
18470
18471 * indent.c (current_column, current_column_1, Fmove_to_column)
18472 (compute_motion): Adapt to new glyph code encoding.
18473
18474 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
18475
184762008-02-27 Chong Yidong <cyd@stupidchicken.com>
18477
18478 * process.c (wait_reading_process_output): Check for window
18479 changes caused by timers.
18480 Suggested by Johan Bockgård.
18481
184822008-02-27 Glenn Morris <rgm@gnu.org>
18483
18484 * emacs.c (USAGE1): Add `--disable-font-backend'.
18485
184862008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
18487
18488 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
18489 is made to the buffer.
18490
184912008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
18492
18493 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
18494 (face_at_string_position):
18495 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
18496 (face_at_string_position):
18497 * xdisp.c (display_string, next_overlay_change):
18498 * buffer.h (overlays_at):
18499 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
18500 Update callers.
18501
185022008-02-26 Chong Yidong <cyd@stupidchicken.com>
18503
18504 * editfns.c (Fformat): Doc fix.
18505
185062008-02-26 Juanma Barranquero <lekktu@gmail.com>
18507
18508 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
18509 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
18510 (Ffont_otf_alternates, Fquery_font): Doc fixes.
18511
185122008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18513
18514 * buffer.c (Fbuffer_swap_text): New function.
18515 (syms_of_buffer): Defsubr it.
18516
185172008-02-25 Chong Yidong <cyd@stupidchicken.com>
18518
18519 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
18520
185212008-02-25 Jason Rumney <jasonr@gnu.org>
18522
18523 * w32font.c (w32font_draw): Draw one character at a time when padding.
18524
185252008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18526
18527 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
18528 Handle a nil arg. Use run_window_configuration_change_hook.
18529 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
18530 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
18531 Use run_window_configuration_change_hook.
18532
185332008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18534
18535 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
18536 1-pixel width.
18537
185382008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18539
18540 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
18541 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
18542 if the glyph in the font is zero pixel with.
18543
18544 * dispextern.h (struct glyph_string): New member padding_p.
18545
18546 * w32font.c (w32font_draw): Pay attention to s->padding_p.
18547
18548 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
18549
18550 * xfont.c (xfont_draw): Pay attention to s->padding_p.
18551
18552 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
18553
18554 * font.c: If the font driver doesn't have `shape' function, return Qnil.
18555
185562008-02-25 Jason Rumney <jasonr@gnu.org>
18557
18558 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
18559
185602008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
18561
18562 Allow fine-grained image-cache flushing.
18563 * dispextern.h (struct image): Add `dependencies' field.
18564 (clear_image_caches): Change arg to Lisp_Object.
18565 * image.c (make_image): Initialize `dependencies' field.
18566 (clear_image_cache): Change arg to allow fine-grained flushing.
18567 Perform the flush even if image-cache-eviction-delay is nil.
18568 (clear_image_caches): Change arg to Lisp_Object.
18569 (Fclear_image_cache): Expand meaning of the argument.
18570 (mark_image): Mark `dependencies' field.
18571 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
18572 (lface_hash): Use XHASH rather than XFASTINT.
18573 (face_at_buffer_position): Fix int -> EMACS_INT position.
18574 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
18575 (select_frame_for_redisplay): Remove code duplication.
18576 (redisplay_internal): Adapt arg to call to clear_image_caches.
18577
185782008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
18579
18580 * s/vms4-0.h:
18581 * s/vms4-2.h:
18582 * s/vms4-4.h:
18583 * s/vms5-5.h: Remove, unused.
18584
18585 * s/irix5-2.h:
18586 * s/irix6-0.h:
18587 * s/riscos5.h:
18588 * s/mach-bsd4-3.h:
18589 * m/mips4.h: Remove files for obsolete systems.
18590
18591 * Makefile.in:
18592 * filelock.c:
18593 * unexmips.c:
18594 * m/hp9000s300.h:
18595 * m/iris4d.h:
18596 * s/aix3-1.h:
18597 * s/hpux.h:
18598 * s/msdos.h:
18599 * s/usg5-0.h:
18600 * s/usg5-2-2.h:
18601 * s/usg5-2.h:
18602 * s/usg5-3.h: Remove references to obsolete variables.
18603
18604 * s/irix5-0.h: Remove, move all the contents ...
18605 * s/irix6-5.h: ... here. Simplify.
18606 * config.in: Regenerate.
18607
186082008-02-24 Jason Rumney <jasonr@gnu.org>
18609
18610 * w32term.c (x_draw_glyph_string_background): Clear the background
18611 manually when cleartype is in use.
18612 (x_draw_glyph_string_foreground): Draw text transparently when
18613 cleartype is in use.
18614
18615 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
18616 a font into it unless we have to.
18617
186182008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18619
18620 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
18621 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 18622
aac0c6e3
MR
186232008-02-18 Jason Rumney <jasonr@gnu.org>
18624
18625 * w32fns.c (Fw32_shell_execute): Encode parameters.
18626
186272008-02-09 Eli Zaretskii <eliz@gnu.org>
18628
18629 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
18630
186312008-02-05 Juanma Barranquero <lekktu@gmail.com>
18632
18633 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
18634
186352008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
18636
18637 * xterm.c (x_set_offset): Don't change the gravity if
18638 CHANGE_GRAVITY is -1.
18639
186402008-02-23 Chong Yidong <cyd@stupidchicken.com>
18641
18642 * fileio.c (auto_save_error_occurred): New var.
18643 (auto_save_error): Set it.
18644 (Fdo_auto_save): Don't overwrite the error message if an auto-save
18645 error occurred.
18646
186472008-02-23 Eli Zaretskii <eliz@gnu.org>
18648
18649 * w32.c (globals_of_w32): Add initializations for
18650 g_b_init_get_sid_sub_authority and
18651 g_b_init_get_sid_sub_authority_count.
18652
186532008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
18654
18655 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
18656 (font_parse_xlfd): Use them for sanity check.
18657 (Finternal_set_font_style_table): Make sure the table is bijective.
18658
18659 Consolidate the image_cache to the terminal struct.
18660 * termhooks.h (P_): Remove redundant def.
18661 (struct terminal): New field `image_cache'.
18662 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
18663 of FRAME_X_IMAGE_CACHE.
18664 * xterm.h (struct x_display_info): Remove image_cache field.
18665 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18666 * w32term.h (struct w32_display_info): Remove image_cache field.
18667 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18668 * macterm.h (struct mac_display_info): Remove image_cache field.
18669 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18670 * xterm.c (x_term_init):
18671 * w32term.c (w32_term_init):
18672 * macterm.c (mac_term_init): Set the image_cache in the terminal.
18673 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
18674 Remove declarations.
18675 (clear_image_caches, mark_image_cache): New declarations.
18676 * xfaces.c (clear_face_cache):
18677 * xdisp.c (redisplay_internal): Use clear_image_caches.
18678 * image.c (clear_image_cache): Don't check that a frame is on
18679 a window-system before checking if it shares the same cache.
18680 (clear_image_caches): New function.
18681 (Fclear_image_cache): Use it.
18682 (mark_image): Move from allo.c.
18683 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
18684 * alloc.c (mark_image, mark_image_cache): Move to image.c.
18685 (mark_object): Don't call mark_image_cache for frames.
18686 (mark_terminals): Call mark_image_cache.
18687
18688 * lisp.h (Fdelete_terminal): Declare.
18689
18690 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
18691 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
18692 wrong_type_argument.
18693
186942008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
18695
18696 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
18697 malayalam.el, and tamil.el. Add sinhala.el.
18698
186992008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
18700
18701 * xterm.c (x_connection_closed): Consolidate identical tests.
18702 (x_delete_terminal): Don't crash if called via x_connection_closed.
18703
187042008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
18705
18706 * xdisp.c (decode_mode_spec): New arg string.
18707 (display_mode_element): Adjust for the above change.
18708
187092008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18710
18711 * callint.c (Fcall_interactively): Use AREF.
18712
187132008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
18714
18715 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
18716
187172008-02-18 Jan Djärv <jan.h.d@swipnet.se>
18718
18719 * xfns.c (Fx_show_tip): Set string to " " if empty.
18720
187212008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
18722
18723 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
18724 with Qt.
18725
187262008-02-17 Kenichi Handa <handa@m17n.org>
18727
18728 * ftfont.c (ftfont_shape): Return Lispy number.
18729
18730 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
18731 for GCs.
18732 (Finternal_set_font_selection_order): Call font_update_sort_order
18733 only when enable_font_backend is set.
18734 (realize_x_face): Set face->font_info to that of default face only
18735 when enable_font_backend is set.
18736
18737 * xdisp.c (handle_composition_prop): Set it->c to the fist
18738 character of the composed region.
18739 (fill_composite_glyph_string): Set base_face->font_info to
18740 s->font_info. Get a face for ascii from base_face->ascii_face.
18741 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
18742 with a face already decided.
18743 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
18744 non-negative.
18745 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
18746 call font_prepare_composition unconditionally.
18747
18748 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
18749
18750 * xterm.h (struct x_display_info): New member font.
18751
18752 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
18753 (x_set_mouse_face_gc, x_new_font): Likewise.
18754 (x_term_init): Setup display_info->font.
18755 (x_delete_terminal): Free display_info->font.
18756
18757 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
18758
18759 * ftxfont.c (ftxfont_default_fid): Delete it.
18760 (ftxfont_open): Set xfont->fid to 0.
18761 (ftxfont_end_for_frame): Clear data specific to the frame and the
18762 font-driver.
18763
18764 * xftfont.c (xftfont_default_fid): Delete it.
18765 (xftfont_open): Set xfont->fid to 0.
18766
18767 * fontset.c (FONTSET_OBJLIST): New macro.
18768 (fontset_find_font): Update font-object list of the fontset.
18769 (free_realized_fontset): New function.
18770 (free_face_fontset): Call free_realized_fontset.
18771 (Ffont_info): Call font_close_object only when enable_font_backend
18772 is set.
18773
18774 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
18775 [HAVE_NTGUI]: Include w32term.h.
18776 [MAC_OS]: Include macterm.ch.
18777 (font_otf_ValueRecord): Use make_number.
18778 (font_finish_cache): Fix handling of reference count.
18779 (font_clear_cache): Update num_fonts.
18780 (font_open_entity): Update smallest_char_width and
18781 smallest_font_height of the frame.
18782 (font_close_object): Update num_fonts.
18783 (Fclear_font_cache): Fix finding the target cache data.
18784
187852008-02-16 Glenn Morris <rgm@gnu.org>
18786
18787 * fontset.c (Finternal_char_font): Fix compilation warning.
18788
187892008-02-16 Eli Zaretskii <eliz@gnu.org>
18790
18791 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
18792 instead of char arrays. Enlarge the size of array passed to
18793 get_token_information.
18794
18795 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
18796 warnings.
18797
187982008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
18799
18800 * .gdbinit: Don't set `args', it breaks gdb --args.
18801
188022008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
18803
18804 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
18805 within a narrowed buffer.
18806
188072008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
18808
18809 * coding.c (decode_coding_object, encode_coding_object):
18810 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
18811
188122008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
18813
18814 * coding.c (coding_set_destination): Use BEG_BYTE rather than
18815 hardcoding 1.
18816 (detect_coding_system):
18817 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
18818 (string_char_to_byte, string_byte_to_char, insert_from_gap):
18819 * insdel.c (insert_from_gap):
18820 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
18821 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
18822 (string_to_multibyte):
18823 * character.c (chars_in_text, multibyte_chars_in_text):
18824 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
18825
18826 * character.h (FETCH_STRING_CHAR_ADVANCE)
18827 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
18828 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
18829 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
18830
18831 * casefiddle.c (casify_region): Only call after-change and composition
18832 functions on the part of the region that was changed.
18833
18834 * keyboard.c (read_avail_input):
18835 * frame.c (Fdelete_frame): Call Fdelete_terminal.
18836
188372008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18838
18839 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
18840 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
18841
188422008-02-11 Juanma Barranquero <lekktu@gmail.com>
18843
18844 * w32menu.c (push_submenu_start, push_submenu_end)
18845 (push_left_right_boundary, push_menu_pane, push_menu_item):
18846 * keyboard.c (read_key_sequence): Don't pass args with side effects
18847 to AREF, it fails when compiling with -DENABLE_CHECKING.
18848
188492008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
18850
18851 * Makefile.in (${lispsource}international/charprop.el):
18852 Delete this target.
18853
18854 * search.c (boyer_moore): Fix incorrect synching of the trunk and
18855 emacs-unicode-2.
18856
188572008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18858
18859 * terminal.c (Fdelete_terminal): Clean up the `force' path.
18860
188612008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18862
18863 * frame.c (Qnoelisp): New symbol.
18864 (syms_of_frame): Initialize it.
18865 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
18866 harmless Elisp code, from a strong `force' from x_connection_closed.
18867 * frame.h (Qnoelisp): Declare.
18868 * xterm.c (x_connection_closed): Pass `noelisp'.
18869
18870 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
18871 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
18872 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
18873 rather than `int' for the type of `type'.
18874
188752008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
18876
18877 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
18878
18879 * Makefile.in (GNUC): Remove support for gcc-1.x.
18880
188812008-02-10 Richard Stallman <rms@gnu.org>
18882
18883 * lisp.h (ASET): Use AREF, not ASLOT.
18884
188852008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18886
18887 * lisp.h (ASET): Check bounds.
18888
188892008-02-10 Glenn Morris <rgm@gnu.org>
18890
18891 * buffer.c (mode-name): Doc fix.
18892
188932008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18894
18895 * Makefile.in:
18896 * emacs.c:
18897 * gmalloc.c:
18898 * keyboard.c:
18899 * lisp.h:
18900 * m/ibm370aix.h:
18901 * process.c:
18902 * regex.c:
18903 * s/hpux.h:
18904 * sysdep.c:
18905 * sysselect.h:
18906 * systty.h:
18907 * unexec.c:
18908 * w32term.c:
18909 * xsmfns.c:
18910 * xterm.c: Remove code that deals with obsolete variables.
18911
18912 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
18913
18914 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
18915 nothing else needs it anymore.
18916
189172008-02-09 Eli Zaretskii <eliz@gnu.org>
18918
18919 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
18920 instead of unibyte_char_to_multibyte.
18921
189222008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18923
18924 * s/gnu-linux.h: Remove commented out code.
18925
18926 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
18927
18928 * Makefile.in: Update what RMS says about using autoconf.
18929 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
18930 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
18931 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
18932 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
18933
189342008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
18935
18936 * keymap.c (Fkey_description): Move side effect outside of macro call.
18937
18938 * xfaces.c (Finternal_make_lisp_face):
18939 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
18940
18941 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
18942 (syms_of_fontset): Use ASET.
18943
18944 * fns.c (concat): Move side effect outside of macro call.
18945 (hash_clear): Use ASET.
18946
189472008-02-08 Richard Stallman <rms@gnu.org>
18948
18949 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
18950 If FORCE, and frame has a surrogate minibuffer for another frame,
18951 delete the other frame first.
18952
189532008-02-07 Timo Savola <timo.savola@iki.fi>
18954
18955 * xterm.c (x_detect_focus_change): Handle embed client message.
18956 (handle_one_xevent): Ditto.
18957 (handle_one_xevent): If embedded and we get a button press/release,
18958 request focus.
18959 (xembed_set_info, xembed_send_message): New functions.
18960 (x_make_frame_visible): Call xembed_set_info if embedded.
18961 (x_make_frame_invisible): Call xembed_set_info if embedded.
18962 (x_term_init): Initialize Xatom_XEMBED.
18963 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
18964 (x_iconify_frame): Ditto.
18965
18966 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
18967 (enum xembed_info, enum xembed_message, enum xembed_focus)
18968 (enum xembed_modifier, enum xembed_accelerator): New.
18969 (xembed_set_info, xembed_send_message): Declare.
18970 (FRAME_X_EMBEDDED_P): New.
18971
18972 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
18973 gtk_plug_new.
18974
18975 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
18976 window ID of a frame.
18977 (x_window): Reparent frame if embedded.
18978 (Fx_create_frame): Don't set border width if embedded.
18979
18980 * emacs.c (USAGE3): Add --parent-id.
18981 (standard_args): Ditto.
18982
189832008-02-07 Jan Djärv <jan.h.d@swipnet.se>
18984
18985 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
18986
189872008-02-07 Jim Meyering <meyering@redhat.com>
18988
18989 Use "do...while (0)", not "if (1)...else" in macro definitions.
18990 The latter provokes a warning from gcc about the empty else, when
18991 followed by ";". Also, without that trailing semicolon, it would
18992 silently swallow up any following statement.
18993 * syntax.h (SETUP_SYNTAX_TABLE)
18994 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
18995 * buffer.h (DECODE_POSITION): Likewise.
18996 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
18997 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
18998 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
18999 (FETCH_CHAR_ADVANCE): Likewise.
19000 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
19001
190022008-02-07 Jim Meyering <meyering@redhat.com>
19003
19004 * lread.c [lint]: Don't include <sys/inode.h>.
19005
190062008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
19007
19008 * xselect.c (x_handle_dnd_message):
19009 * xmenu.c (digest_single_submenu, xmenu_show):
19010 * xdisp.c (with_echo_area_buffer_unwind_data)
19011 (format_mode_line_unwind_data, unwind_format_mode_line)
19012 (display_menu_bar):
19013 * eval.c (Ffetch_bytecode):
19014 * doc.c (store_function_docstring):
19015 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
19016 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
19017 * buffer.c (add_overlay_mod_hooklist): Use ASET.
19018
190192008-02-07 Kenichi Handa <handa@m17n.org>
19020
19021 * ftxfont.c (ftxfont_open): Don't set
19022 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
19023
19024 * ftfont.c (ftfont_open): Fix previous change.
19025
190262008-02-06 Jason Rumney <jasonr@gnu.org>
19027
19028 * w32font.c (w32font_text_extents): Fill in lbearing metric.
19029 Use cached metrics for ASCII characters.
19030 (w32font_open_internal): Don't set font's owning_frame.
19031 Cache metrics for ASCII characters.
19032
19033 * w32font.h (struct w32font_info): Add ascii_metrics.
19034 Remove owning_frame.
19035
190362008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
19037
19038 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
19039 to negative value.
19040
19041 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
19042
19043 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
19044
19045 * charset.c (syms_of_charset): Set QCtest and Qeq.
19046
190472008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
19048
19049 * process.c (Fstart_process):
19050 * callproc.c (Fcall_process): Handle the case where
19051 Funhandled_file_name_directory returns nil.
19052
19053 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
19054 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
19055 * font.c (check_gstring): Use them and AREF to access the vector before
19056 we know it's really a gstring.
19057 (Ffont_shape_text): Fix typo.
46e722a9 19058 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
19059
19060 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
19061 Declare.
19062
19063 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
19064
190652008-02-05 Jason Rumney <jasonr@gnu.org>
19066
19067 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
19068 Set smallest_font_height and smallest_char_width in display info.
19069
190702008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
19071
19072 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
19073
190742008-02-05 Miles Bader <miles@gnu.org>
19075
19076 * xfaces.c (get_lface_attributes, merge_named_face)
19077 (lookup_named_face, lookup_derived_face, realize_named_face):
19078 Revert 2008-02-01 change by cyd@stupidchicken.com.
19079
190802008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
19081
19082 * fontset.c (Ffontset_info): Handle the case of inhibitting the
19083 fallback fonts.
19084 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
19085
190862008-02-04 Jason Rumney <jasonr@gnu.org>
19087
19088 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
19089 set full_name.
19090 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
19091
190922008-02-03 Jason Rumney <jasonr@gnu.org>
19093
19094 * makefile.w32-in (OBJ1): Include font.o here.
19095 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
19096
190972008-02-02 Jason Rumney <jasonr@gnu.org>
19098
19099 * makefile.w32-in (temacs): Bump EMHEAP to 21.
19100
191012008-02-01 Jason Rumney <jasonr@gnu.org>
19102
19103 * s/cygwin.h: Define VIRT_ADDR_VARIES.
19104
19105 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
19106
191072008-02-01 Andreas Schwab <schwab@suse.de>
19108
19109 * Makefile.in (shortlisp, lisp): Update for rename of
19110 ../lisp/language/myanmar.el.
19111
191122008-02-01 Chong Yidong <cyd@stupidchicken.com>
19113
19114 * xfaces.c (get_lface_attributes): Delete function.
19115 (merge_named_face, lookup_named_face, lookup_derived_face)
19116 (realize_named_face): Call lface_from_face_name directly, and use
19117 the fact that merge_face_vectors does not alter its FROM argument.
19118
191192008-02-01 Jason Rumney <jasonr@gnu.org>
19120
19121 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
19122 input in the default locale. Handle non-Unicode multibyte input.
19123
191242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19125
19126 * fontset.c (reorder_font_vector): Exclude nil elements from the
19127 font group. Don't try multiple fonts.
19128 (fontset_font): Adjust for the above change.
19129 (Finternal_char_font): Return nil if the found font doesn't
19130 contain the character ch.
19131
19132 * Makefile.in (lisp, shortlisp): Add cham.el.
19133
191342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19135
19136 * font.h (FONTP): Make it return 1 also for a font-object.
19137
19138 * .gdbinit (xfontset): New function.
19139
19140 * font.c (font_find_for_lface): Check if the character C is
19141 supported or not only for the first font.
19142
19143 * fontset.c (reorder_font_vector): Fix typo.
19144 (fontset_find_font): Don't add a font-spec specifying a script.
19145 Use 0 (not Qt) for the indication of empty font-group. Change the
19146 format of RFONT-DEF. Return Qt if no font in the font-group
19147 support the character.
19148 (fontset_font): Adjust for the above change. If no font was
19149 found the character, remember that.
19150 (face_for_char): Adjust for the change of RFONT-DEF.
19151 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
19152 no font for the target.
19153 (Finternal_char_font): Adjust for the change of RFONT-DEF.
19154
191552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19156
19157 * font.c (font_load_for_face): Handle the case that the font in
19158 face->lface is a string.
19159
191602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19161
19162 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
19163
191642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19165
19166 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
19167 Fix previous change. If the frame is not on a window system,
19168 signal an error.
19169
191702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19171
19172 * coding.c (decode_coding_object, encode_coding_object): Adjust
19173 marker positions after conversion.
19174
19175 * lisp.h (struct Lisp_Marker): New member need_adjustment.
19176
191772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19178
19179 * font.c (font_find_for_lface): Fix the handling of the return
19180 value of font_has_char.
19181 (Ffont_shape_text): Fix previous change.
19182
19183 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
19184 (fontset_ref_and_range): Delete it.
19185 (fontset_find_font): Call char_table_ref_and_range instead of
19186 FONTSET_REF_AND_RANGE.
19187 (make_fontset): Don't setup font groups of Latin here.
19188 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
19189 (new_fontset_from_font): Make the specified font the default for
19190 all Latin characters.
19191
191922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19193
19194 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
19195 is on a window system before accessing the fontset of the frame.
19196
191972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19198
19199 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
19200
19201 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
19202 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
19203
19204 * font.c (Ffont_shape_text): If the font driver doesn't have a
19205 shaper function, make zero-width glyphs to have at least one-pixel
19206 width. Fix setting of `to' field of glyphs.
19207
192082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19209
19210 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
19211 glyphs.
19212
19213 * font.h (struct font_driver): Improve docstring of member `shape'.
19214
192152008-02-01 Kenichi Handa <handa@m17n.org>
19216
19217 * composite.c (syms_of_composite): Fix docstring of
19218 auto-composition-function.
19219
19220 * font.h (LGLYPH_SIZE): New macro.
19221
19222 * font.c (Ffont_fill_gstring): Stop filling when a character not
19223 supported by the font is found.
19224 (Ffont_shape_text): When a shape callback function returns nil,
19225 try at most two more times with larger gstring.
19226 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
19227
19228 * xdisp.c (handle_auto_composed_prop): Change the argument to
19229 auto-composition-function.
19230
19231 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
19232 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
19233 Lispy glyph and store it in the lgstring.
19234
19235 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
19236
19237 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
19238
192392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19240
19241 * font.c (Ffont_shape_text): Avoid unnecessary composition.
19242
19243 * fontset.c (Vfont_encoding_charset_alist): New variable.
19244 (syms_of_fontset): DEFVAR it.
19245 (reorder_font_vector, fontset_find_font): Optimize for the case of
19246 no need of reordering.
19247 (face_for_char): Map the charset property by
19248 Vfont_encoding_charset_alist.
19249
192502008-02-01 Jason Rumney <jasonr@gnu.org>
19251
19252 * w32font.c (logfonts_match): Don't check adstyle here.
19253 (font_matches_spec): Check here against physical font instead.
19254 (add_font_entity_to_list): Avoid some substitutions.
19255
19256 * font.c (font_parse_fcname): Default weight and slant to normal.
19257 (font_score): Prefer normal fonts if weight or slant unspecified.
19258 (font_score) [WINDOWSNT]: Scale weight difference down to closer
19259 match freetype scores.
19260
192612008-02-01 Jason Rumney <jasonr@gnu.org>
19262
19263 * w32font.c (w32font_text_extents): Don't use the frame stored in the
19264 font, as it may have been deleted.
19265 (w32_enumfont_pattern_entity): Map generic family to adstyle using
19266 most common hyphenless variation.
19267 (logfonts_match): Check generic family.
19268 (font_matches_spec): Don't check generic family here.
19269 (fill_in_logfont): Set generic family based on adstyle.
19270
19271 * w32font.h (w32font_get_cache): Update declaration.
19272
192732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19274
19275 * ftfont.c (ftfont_get_cache): Adjust the argument type.
19276
19277 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
19278 If none of the new drivers are available, call font_update_drivers
19279 with the old drivers.
19280
19281 * w32font.c (w32font_get_cache): Adjust the argument type.
19282
19283 * xfont.c (xfont_get_cache): Adjust the argument type.
19284
19285 * font.h (struct font_driver): Change argument type of get_cache.
19286
19287 * xftfont.c (xftfont_start_for_frame): Delete prototype.
19288
19289 * font.c (Ffont_get): Fix arguments to Fassoc.
19290 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
19291 (font_clear_cache): New function.
19292 (font_list_entities, font_matching_entity): Use font_get_cache.
19293 (font_update_drivers): Call font_clear_cache when finishing a driver.
19294
19295 * fontset.c (fontset_find_font): Fix previous change.
19296
192972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19298
19299 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
19300 dpyinfo->font_table.
19301 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
19302 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
19303
19304 * font.c (font_at): Handle the case that the arg C is negative.
19305 Handle the unibyte case.
19306 (Ffont_at): Call font_at with the arg C -1.
19307
19308 * xdisp.c (handle_auto_composed_prop): Don't get a character at
19309 the position here, and call font_at with the arg C -1.
19310 Don't check the range of the existing composition at the point.
19311
193122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19313
19314 * fontset.c (fontset_add): New args charset_id and family.
19315 Change caller.
19316 (load_font_get_repertory, fontset_find_font): Assume that
19317 font_spec is always a font-spec object.
19318 (Fset_fontset_font): Always store a font-spec object in a fontset.
19319
19320 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
19321 instead of get_property_and_range.
19322
193232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19324
19325 * xftfont.c (struct xftfont_info): Delete the member ft_face.
19326 (xftfont_open): Don't keep locking face.
19327 (xftfont_close): Don't unlock face.
19328 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
19329
19330 * fontset.c (fontset_find_font): Don't prefer a font of
19331 supplementary charset.
19332
193332008-02-01 Kenichi Handa <handa@m17n.org>
19334
19335 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
19336 script, langsys_tag to langsys, new member script.
19337 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 19338 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
19339 listing to the script specified in that property. Fix arg to
19340 OTF_check_features.
19341
193422008-02-01 Jason Rumney <jasonr@gnu.org>
19343
19344 * w32font.h: New file.
19345
19346 * w32font.c: Include it.
19347 (struct w32font_info): Add owning_frame field. Move to w32font.h.
19348 (w32font_open): Set owning_frame.
19349 (w32font_text_extents): Use owning_frame.
19350 (struct font_callback_data): Add opentype_only field.
19351 (add_font_entity_to_list): Use it to filter fonts.
19352 Don't check against full name.
19353 (w32font_list_internal): New function.
19354 (w32font_list): Use it.
19355 (w32font_match_internal): New function.
19356 (w32font_match): Use it.
19357 (w32font_open_internal): New function.
19358 (w32font_open): Use it.
19359 (w32font_get_cache, w32font_close, w32font_has_char)
19360 (w32font_encode_char, w32font_text_extents, w32font_draw):
19361 Make non-static.
19362
19363 * makefile.w32-in (w32font.o): Depend on w32font.h.
19364
193652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19366
19367 * charset.c (Fdefine_charset_internal): Record a supplementary
19368 charset at the tail of Vcharset_order_list.
19369
19370 * font.c (Ffont_shape_text): Fix the return value.
19371
19372 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
19373
19374 * xdisp.c (handle_auto_composed_prop): Fix previous change.
19375
193762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19377
19378 * ftfont.c (struct OpenTypeSpec): New struct.
19379 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
19380 (ftfont_get_open_type_spec): New function.
19381 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
19382
19383 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
19384
193852008-02-01 Jason Rumney <jasonr@gnu.org>
19386
19387 * w32font.c (add_font_entity_to_list): Compare only the beginning
19388 of full name.
19389
193902008-02-01 Kenichi Handa <handa@m17n.org>
19391
19392 * xdisp.c (handle_auto_composed_prop): Simplify the code.
19393 Never return HANDLED_RECOMPUTE_PROPS.
19394
193952008-02-01 Kenichi Handa <handa@m17n.org>
19396
19397 * font.c (font_gstring_produce): Delete it.
19398
19399 * composite.h (COMPOSITION_METHOD):
19400 Handle COMPOSITION_WITH_GLYPH_STRING.
19401
194022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19403
19404 * xfont.c (Qx): Delete.
19405 (syms_of_xfont): Don't initialize Qx.
19406
19407 * composite.h (enum composition_method):
19408 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
19409
194102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19411
19412 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
19413 (choose_face_font): Accept new form of font-spec.
19414
19415 * frame.h (font_driver_list): Declare it unconditionally.
19416 (struct frame): Define members font_driver_list and font_data_list
19417 unconditionally.
19418
19419 * fontset.c: Include "font.h" unconditionally.
19420 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
19421 (Fset_fontset_font): Accept a font-spec object.
19422
19423 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
19424 PIXEL_SIZE part a wild card.
19425
19426 * dispextern.h (struct glyph_string): Define members clip and
19427 num_clips unconditionally.
19428 (struct face): Define members font_info and extra unconditionally.
19429
19430 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
19431 ftfont_info only when HAVE_LIBOTF is defined.
19432
194332008-02-01 Andreas Schwab <schwab@suse.de>
19434
19435 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
19436 and end.
19437
194382008-02-01 Jason Rumney <jasonr@gnu.org>
19439
19440 * w32font.c (w32font_driver): Add new fields.
19441
194422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19443
19444 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
19445 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
19446 (LIBES): Add @M17N_FLT_CFLAGS@.
19447
19448 * composite.c (compose_text): Don't treat the new style
19449 composition specially.
19450
19451 * emacs.c (main): Call syms_of_font unconditionally.
19452
19453 * font.h (FONT_ENTITY_NOT_LOADABLE)
19454 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
19455 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
19456 (struct font_driver): New member shape.
19457 (font_registry_charsets): Extern it.
19458 (font_find_for_lface, font_prepare_composition): Adjust prototype.
19459 (font_otf_capability, font_drive_otf): Delete their externs.
19460
19461 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
19462 (font_charset_alist, font_registry_charsets): Move from xfont.c
19463 and rename.
19464 (font_prop_validate_otf): New function.
19465 (font_property_table): Register it for QCotf.
19466 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
19467 (font_drive_otf): Delete.
19468 (font_prepare_composition): New arg F. Adjust for the change of
19469 lispy gstring.
19470 (font_find_for_lface): New arg C.
19471 (font_load_for_face): Adjust for the change of font_find_for_lface.
19472 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
19473 lispy gstring.
19474 (Ffont_shape_text): New function.
19475 (Fopen_font): If the font size is not given, use 12-pixel.
19476 (Ffont_at): New arg STRING.
40b1a3a9 19477 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
19478 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
19479 conditionally.
19480
19481 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
19482 fonts of the same font-spec. Change the format of RFONT-DEF.
19483 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
19484 Adjust for the change of RFONT-DEF.
19485 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
19486
19487 * ftfont.h: New file.
19488
19489 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
19490 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19491 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19492 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
19493 font_otf_capability and font_drive_otf, set ftfont_shape.
19494 (ftfont_list): Adjust for the change of :otf property value.
19495 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
19496 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
19497 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
19498 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19499 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
19500 (otf_gstring, gstring, m17n_flt_initialized): New variables.
19501
19502 * w32term.c (x_draw_composite_glyph_string_foreground):
19503 Adjust for the change of lispy gstring.
19504
19505 * xdisp.c (handle_composition_prop): Adjust for the change of
19506 lispy gstring. Call a function for auto-composition with the
19507 third arg it->window.
19508 (fill_composite_glyph_string): Adjust for the change of lispy string.
19509 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
19510
19511 * xfaces.c (set_font_frame_param): Adjust for the change of
19512 font_find_for_lface.
19513
19514 * xfont.c (x_font_charset_alist): Move to font.c and rename.
19515 (xfont_registry_charsets): Likewise. Change caller.
19516 (syms_of_xfont): Don't handle x_font_charset_alist.
19517
19518 * xftfont.c: Include "ftfont.h".
19519 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19520 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19521 (xftfont_close) [HAVE_LIBOTF]: Close otf.
19522 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19523 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
19524 Set xftfont_driver.shape to xftfont_shape.
19525
19526 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19527 the change of lispy gstring.
19528
195292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19530
19531 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
19532
195332008-02-01 Jason Rumney <jasonr@gnu.org>
19534
19535 * w32font.c (w32font_draw): Fill background manually.
19536
195372008-02-01 Jason Rumney <jasonr@gnu.org>
19538
19539 * font.c (Qfontp): Remove unused symbol.
19540 (QCantialias): New symbol.
19541 (syms_of_font): Define it.
19542 (font_property_table): Set a validator for QCantialias.
19543
19544 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
19545 Define if not already.
19546 (QCfamily): Share with xfaces.c.
19547 (Qstandard, Qsubpixel, Qnatural): New symbols.
19548 (syms_of_w32font): Define them. Don't define QCfamily here.
19549 (w32_antialias_type, lispy_antialias_type): New functions.
19550 (w32_enumfont_pattern_entity): New arg requested_font.
19551 Set antialias parameter if non-default was requested.
19552 (fill_in_logfont): Fill in lfQuality if :antialias specified.
19553
195542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19555
19556 * lread.c (read1): Undo the previous change.
19557
195582008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
19559
19560 * frame.c (Fdelete_frame): Call font_update_drivers only when
19561 USE_FONT_BACKEND is defined.
19562
195632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19564
19565 * font.h (struct font_bitmap): New member bits_per_pixel.
19566 (struct font_driver): New members start_for_frame and end_for_frame.
19567 (struct font_data_list): New struct.
19568 (font_put_frame_data, font_get_frame_data): Extern them.
19569
19570 * frame.h (struct frame): New member font_data_list.
19571
19572 * font.c (font_update_drivers): Call driver->start_for_frame and
19573 driver->end_for_frame at proper timings.
19574 (font_put_frame_data, font_get_frame_data): New functions.
19575 (Ffont_spec): Add usage in the docstring.
19576
19577 * frame.c (make_frame): Initialize f->font_data_list to NULL.
19578 (Fdelete_frame): Call font_update_drivers.
19579
19580 * xftfont.c (struct xftface_info): Delete the member xft_draw.
19581 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
19582 (xftfont_get_xft_draw): New function.
19583 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
19584 (xftfont_end_for_frame): New function.
19585 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
19586
19587 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
19588 Change argument. Cache GCs in the per-frame data.
19589 (struct ftxfont_frame_data): New struct.
19590 (ftxfont_draw_bitmap): New arg gc_fore and flush.
19591 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
19592 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
19593 (ftxfont_end_for_frame): New function.
19594 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
19595
19596 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
19597
195982008-02-01 Kenichi Handa <handa@m17n.org>
19599
19600 * xselect.c (Vselection_coding_system)
19601 (Vnext_selection_coding_system): Delete them.
19602 (syms_of_xselect): Don't declare selection-coding-system and
19603 next-selection-coding-system. They are declared in select.el.
19604
196052008-02-01 Jason Rumney <jasonr@gnu.org>
19606
19607 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
19608
19609 * w32fns.c: Include imm.h.
19610 (get_composition_string_fn, get_ime_context_fn): New optional
19611 system functions.
19612 (globals_of_w32fns): Load them from imm32.dll.
19613 (ignore_ime_char): New flag.
19614 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
19615 WM_IME_ENDCOMPOSITION messages.
19616
19617 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
19618 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
19619
196202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19621
19622 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
19623 (READCHAR_REPORT_MULTIBYTE): New macro.
19624 (readchar): New 2nd arg MULTIBYTE.
19625 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
19626 Make symbol's name multibyte according to the multibyteness of the
19627 source.
19628
196292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19630
19631 * xfaces.c (face_for_overlay_string): Call lookup_face with
19632 correct arguments (fix of synching with the trunk).
19633
196342008-02-01 Kenichi Handa <handa@m17n.org>
19635
19636 * font.c (font_prop_validate_symbol, font_prop_validate_style)
19637 (font_prop_validate_non_neg, font_prop_validate_spacing):
19638 Delete argument prop_index.
19639 (font_property_table): Change arguments to validater. Change Callers.
19640 (font_lispy_object): Delete.
19641 (font_at): Use font_find_object instead fo font_lispy_object.
19642
196432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19644
19645 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
19646 and file names.
19647
196482008-02-01 Jason Rumney <jasonr@gnu.org>
19649
19650 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
19651 (font_matches_spec): Remove debug output.
19652 (add_font_entity_to_list): Avoid using substituted fonts.
19653
196542008-02-01 Jason Rumney <jasonr@gnu.org>
19655
19656 * doc.c (Fsnarf_documentation):
19657 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
19658
196592008-02-01 Miles Bader <miles@gnu.org>
19660
19661 * dispextern.h (struct glyph_row): Only define "clip" field if
19662 HAVE_WINDOW_SYSTEM is defined.
19663
196642008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19665
19666 Fix up multi-tty merge.
19667
19668 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
19669 and indentation.
19670
19671 * xfaces.c (free_realized_face, clear_face_gcs):
19672 Include font_done_for_face in the input_blocked section, just in case.
19673
19674 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
19675 (get_char_face_and_encoding): Undo last change and remove the *other*
19676 duplicate definition (i.e. keep the one that's better scoped and that
19677 includes code for the font-backend).
19678
19679 * terminal.c (create_terminal): Default keyboard_coding to
19680 `no-conversion' and terminal_coding to `undecided'.
19681
19682 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
19683
19684 * fontset.c (free_realized_fontsets): Check that the table entry does
19685 contain a fontset before trying to compare it to `base'.
19686
19687 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
19688 syms_of_charset, and syms_of_coding earlier because init_window_once
19689 now needs Vcoding_system_hash_table to be setup.
19690
19691 * coding.h (default_buffer_file_coding): Remove.
19692
19693 * coding.c (default_buffer_file_coding): Remove.
19694 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
19695 than ->symbol, and use the terminal-local coding system.
19696 (syms_of_coding): Don't setup the coding-systems that are not
19697 terminal-local.
19698 (Fdefine_coding_system_internal): Use XCAR/XCDR.
19699
19700 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
19701 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
19702
19703 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
19704 in chartab.c and were re-added here by mistake.
19705 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
19706
19707 * doc.c (Fsnarf_documentation):
19708 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
19709 src to etc.
19710
19711 * ChangeLog.10: Add mistakenly removed entry.
19712
197132008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
19714
19715 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
19716
197172008-02-01 Miles Bader <miles@gnu.org>
19718
19719 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
19720 Add extra args to FACE_FOR_CHAR.
19721
197222008-02-01 Kenichi Handa <handa@m17n.org>
19723
19724 * keymap.c (where_is_internal_1): If key is a cons, store the copy
19725 in sequence.
19726
19727 * chartab.c (map_sub_char_table, map_char_table): If the range
19728 contains just one character, call the function with that character
19729 even if the depth is not 3.
19730
197312008-02-01 Jason Rumney <jasonr@gnu.org>
19732
19733 * w32font.c (w32font_text_extents): Calculate metrics for the
19734 whole string.
19735
197362008-02-01 Jason Rumney <jasonr@gnu.org>
19737
19738 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
19739
197402008-02-01 Jason Rumney <jasonr@gnu.org>
19741
19742 * w32term.c (x_set_glyph_string_clipping): Use
19743 get_glyph_string_clip_rects.
19744 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19745 Adjust for the change of struct glyph_string.
19746
19747 * w32font.c (w32font_draw): Do clipping here.
19748
197492008-02-01 Kenichi Handa <handa@m17n.org>
19750
19751 * xftfont.c (xftfont_draw): Adjust for the change of struct
19752 glyph_string.
19753
19754 * xterm.c (x_set_glyph_string_clipping): Use
19755 get_glyph_string_clip_rects.
19756 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19757 Adjust for the change of struct glyph_string.
19758
19759 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
19760 the resulting clip(s}.
19761 (expose_overlaps): Add arg r. Change callers. Set it to
19762 row->clip temporarily.
19763 (expose_window): Redraw rows overlapping the exposed area.
19764
19765 * dispextern.h (struct glyph_row): New member clip.
19766 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
19767 clip_height, new member clip, and num_clips.
19768
197692008-02-01 Kenichi Handa <handa@m17n.org>
19770
19771 * data.c (Fchar_or_string_p): Fix docstring.
19772
197732008-02-01 Kenichi Handa <handa@m17n.org>
19774
19775 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
19776 create a temporary XftDraw object.
19777
197782008-02-01 Kenichi Handa <handa@m17n.org>
19779
19780 * font.c (Ffontp): Fix docstring.
19781
19782 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
19783 strong evidence of ISO-2022.
19784
197852008-02-01 Kenichi Handa <handa@m17n.org>
19786
19787 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
19788 SYNTAX_ENTRY_FOLLOW_PARENT.
19789
197902008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19791
19792 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
19793 its type.
19794 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
19795 Update to the new type of weak_hash_tables and next_weak.
19796
19797 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
19798 a plain C pointer to Lisp_Hash_Table.
19799
19800 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
19801 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
19802 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
19803 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
19804 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
19805 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
19806 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
19807 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
19808 (GC_EQ): Remove since they've been identical to their non-GC_
19809 alter-egos ever since the markbit was eradicated.
19810
19811 * alloc.c:
19812 * buffer.c:
19813 * buffer.h:
19814 * data.c:
19815 * fileio.c:
19816 * filelock.c:
19817 * fns.c:
19818 * frame.h:
19819 * lisp.h:
19820 * macterm.c:
19821 * print.c:
19822 * process.c:
19823 * w32fns.c:
19824 * w32menu.c:
19825 * w32term.c:
19826 * xfns.c:
19827 * xmenu.c:
19828 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
19829
198302008-02-01 Kenichi Handa <handa@m17n.org>
19831
19832 * chartab.c (map_sub_char_table): Make it work for the top-level
19833 char-table. Fix handling of parent char-table.
19834 (map_char_table): Adjust for the above change.
19835
198362008-02-01 Jason Rumney <jasonr@gnu.org>
19837
19838 * w32font.c (Qgdi): Rename from Qw32.
19839
198402008-02-01 Jason Rumney <jasonr@gnu.org>
19841
19842 * w32bdf.c (get_quoted_string): Make function static.
19843
198442008-02-01 Kenichi Handa <handa@m17n.org>
19845
19846 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
19847 bigger ascent and descent than those of the font, use them as
19848 font's ascent and descent.
19849
198502008-02-01 Kenichi Handa <handa@m17n.org>
19851
19852 * Makefile.in (${lispsource}international/charprop.el): Move this
19853 target within "#ifdef HAVE_UNIDATA" and "#endif".
19854
198552008-02-01 Kenichi Handa <handa@m17n.org>
19856
19857 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
19858 (shortlisp): Add ../lisp/language/tai-viet.el.
19859
198602008-02-01 Ulrich Mueller <ulm@gentoo.org>
19861
19862 * Makefile.in (${lispsource}international/charprop.el): Depend on
19863 temacs${EXEEXT}.
19864
198652008-02-01 Jason Rumney <jasonr@gnu.org>
19866
19867 * w32font.c (w32font_close): Delete the GDI font object.
19868
19869 * w32menu.c: Include character.h.
19870
19871 * w32proc.c: Likewise.
19872
19873 * w32select.c: Likewise.
19874
19875 * makefile.w32-in (w32proc.o): Depend on character.h.
19876
198772008-02-01 Jason Rumney <jasonr@gnu.org>
19878
19879 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
19880
19881 * w32menu.c (syms_of_w32menu): Likewise.
19882
19883 * w32proc.c (syms_of_ntproc): Likewise.
19884
19885 * w32select.c (syms_of_w32select): Likewise.
19886
19887 * w32term.c (syms_of_w32term): Likewise.
19888
198892008-02-01 Jason Rumney <jasonr@gnu.org>
19890
19891 * w32font.c (w32font_draw): Delete brush after using it.
19892
198932008-02-01 Jason Rumney <jasonr@gnu.org>
19894
19895 * w32font.c (w32font_open): Don't set font_idx.
19896 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
19897 to font settings.
19898 (w32font_draw): Fill background explicitly.
19899
199002008-02-01 Jason Rumney <jasonr@gnu.org>
19901
19902 * w32term.c (w32_initialize): Don't call w32font_initialize.
19903
19904 * w32font.c (w32font_info): Remove subranges.
19905 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
19906 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
19907 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
19908 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
19909 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
19910 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
19911 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
19912 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
19913 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
19914 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
19915 New symbols.
19916 (font_callback_data): New struct.
19917 (w32font_list, w32font_match): Use it.
19918 (w32font_open): Don't populate subranges.
19919 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
19920 (w32font_encode_char): Always return unicode code-point as-is.
19921 (w32font_text_extents): Supply a transformation matrix to
19922 GetGlyphOutline. Never look up by glyph index. Avoid looping
19923 twice. Use unicode version of GetTexExtentPoint32 instead of
19924 glyph index version.
19925 (set_fonts_frame): Remove.
19926 (w32_enumfont_pattern_entity): Add frame parameter, use it to
19927 set frame parameter. Use backward compatible fake foundries.
19928 Save generic family in extra slot under QCfamily. Make width slot
19929 constant. Save QCspacing value. Save list of scripts instead of
19930 binary subranges.
19931 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
19932 (add_font_entity_to_list): Use font_callback_data struct. Filter
19933 unwanted fonts.
19934 (add_one_font_entity_to_list): Use font_callback_data struct.
19935 (w32_registry): Default to iso10646_1.
19936 (fill_in_logfont): Use dpi from extra slot. Don't bother with
19937 string font registries. Don't fill in font name if it is a generic
19938 family name, fill family instead. Use spacing, family and script
19939 extra info to fill pitch, family and charset fields.
19940 (list_all_matching_fonts): Use font_callback_data struct.
19941 (unicode_range_for_char): Remove.
19942 (font_supported_scripts): New function.
19943 (w32font_initialize): Remove.
19944 (syms_of_w32font): Update which symbols are defined.
19945
199462008-02-01 Jason Rumney <jasonr@gnu.org>
19947
19948 * font.c (font_pixel_size): Reverse assq_no_quit args.
19949
19950 * w32term.h (FONT_WIDTH): Report max width, not average.
19951 (FONT_MAX_WIDTH): Remove.
19952 (FONT_AVG_WIDTH): New macro.
19953
19954 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
19955 redefinition of FONT_WIDTH.
19956
19957 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
19958 (w32_cache_char_metrics): Use FONT_WIDTH.
19959
19960 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
19961
199622008-02-01 Jason Rumney <jasonr@gnu.org>
19963
19964 * w32font.c (w32font_open): Make lfHeight negative.
19965
19966 * w32fns.c (x_default_font_parameter): Use new style font name.
19967 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
19968
199692008-02-01 Jason Rumney <jasonr@gnu.org>
19970
19971 * w32font.c (QCsubranges): New symbol.
19972 (w32font_open, w32font_has_char): Get subranges from subproperty
19973 of extra.
19974 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
19975 (syms_of_w32font): Define :subranges symbol.
19976
19977 * font.c (font_put_extra): Expose externally.
19978
19979 * font.h (font_put_extra): Move declaration from font.c.
19980
19981 * font.c (Ffont_get): Use font driver to determine otf capability.
19982 (adjust_anchor): Check if driver defines anchor_point before using.
19983
19984 * w32font.c (w32font_open): Handle size, height and pixel_size better.
19985 (w32font_draw): Use options.
19986 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
19987 Fix detection of truetype fonts.
19988 (registry_to_w32_charset): Handle charsets other than iso8859-1
19989 expressed as lisp symbols.
19990 (w32_registry): Express charset as lisp symbol.
19991 (fill_in_logfont): Reverse pixel and point height logic.
19992 Don't set width here. Set quality to default.
19993
19994 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
19995 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
19996
19997 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19998 Remove redundant loop and allocation.
19999
20000 * makefile.w32-in (font.o, w32font.o): New objects.
20001 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
20002 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
20003
20004 * xdisp.c (fill_composite_glyph_string): Make the first arg to
20005 STORE_XCHARB a valid l-value.
20006
20007 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
20008 calculations for non-Truetype fonts.
20009 (x_draw_glyph_string): Sync with xterm.c.
20010 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
20011 Remove redundant code.
20012 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
20013
20014 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
20015 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
20016
20017 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
20018 (x_to_w32_charset, w32_to_x_charset): Expose externally.
20019
20020 * w32font.c: New file for w32 font backend.
20021
200222008-02-01 Kenichi Handa <handa@m17n.org>
20023
20024 * term.c: Don't include "buffer.h" twice.
20025
200262008-02-01 Kenichi Handa <handa@m17n.org>
20027
20028 * character.c (Funibyte_string): New function.
20029 (syms_of_character): Defsubr it.
20030
200312008-02-01 Jason Rumney <jasonr@gnu.org>
20032
20033 * w32term.c [USE_FONT_BACKEND]:
20034 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
20035 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
20036 (x_draw_glyph_string, x_draw_glyph_string_foreground)
20037 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
20038 (x_free_frame_resources): Sync with xterm.c.
20039
200402008-02-01 Andreas Schwab <schwab@suse.de>
20041
20042 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
20043 char-table size.
20044
200452008-02-01 Kenichi Handa <handa@m17n.org>
20046
20047 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
20048
200492008-02-01 Kenichi Handa <handa@m17n.org>
20050
20051 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
20052 font_otf_gpos, add font_drive_otf.
20053
20054 * fontset.c (fontset_find_font): Pay attention to font size
20055 specified for a font.
20056 (reorder_font_vector): Check contents of font_def.
20057
20058 * font.c (struct otf_list): Delete it.
20059 (otf_list): Make it a lisp variable.
20060 (otf_open): Use lispy otf_list.
20061 (generate_otf_features): Rename from parse_gsub_gpos_spec.
20062 (check_otf_features): New function.
20063 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
20064 New functions.
20065 (font_drive_otf): New function merging font_otf_gsub and
20066 font_otf_gpos.
20067 (font_open_for_lface): New arg spec. Change argument order.
20068 (font_load_for_face): Adjust for the change of font_open_for_lface.
20069 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
20070 Ffont_otf_gpos.
20071 (syms_of_font): Staticpro otf_list. Delete defsubr of
20072 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
20073
20074 * xfaces.c (set_font_frame_param): Adjust for the change of
20075 font_open_for_lface.
20076
20077 * font.h (font_open_for_lface): Adjust prototype.
20078 (struct font_driver): Delete members otf_gsub and otf_gpos, add
20079 member otf_drive.
20080 (font_otf_gsub, font_otf_gpos): Delete externs.
20081 (font_drive_otf): Extern it.
20082
200832008-02-01 Kenichi Handa <handa@m17n.org>
20084
20085 * font.c (font_at): If the window W is not on a window system,
20086 return Qnil.
20087
20088 * coding.c (produce_chars, encode_coding): Don't call
20089 insert_from_gap if no characters to produce.
20090
200912008-02-01 Kenichi Handa <handa@m17n.org>
20092
20093 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
20094 Fclear_face_cache.
20095
20096 * xfaces.c (face_for_font): Check also face->font==font->font.font.
20097
200982008-02-01 Miles Bader <miles@gnu.org>
20099
20100 * emacs.c (main): Change default value of `enable_font_backend' to 1.
20101 Parse "--disable-font-backend" option.
20102 (standard_args): Add "--disable-font-backend" option.
20103
201042008-02-01 Kenichi Handa <handa@m17n.org>
20105
20106 * fontset.c (fontset_find_font): New function.
20107 (fontset_font): Use fontset_find_font.
20108 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
20109 Register the specified font for all Latin characters.
20110 (new_fontset_from_font): Register the specified font for all Latin
20111 characters.
20112 (dump_fontset): For a realized fontset, include the base fontset
20113 name in the returned vector.
20114
201152008-02-01 Kenichi Handa <handa@m17n.org>
20116
20117 * character.h (CHAR_STRING): Cast C to unsigned on calling
20118 char_string.
20119
20120 * character.c (char_string): Type of arg C changed to unsigned.
20121 Signal an error if C is an invalid character code.
20122
20123 * editfns.c (general_insert_function, Fchar_to_string):
20124 Use CHARACTERP, not INTEGERP.
20125
201262008-02-01 Kenichi Handa <handa@m17n.org>
20127
20128 * character.h (MIN_MULTIBYTE_LEADING_CODE)
20129 (MAX_MULTIBYTE_LEADING_CODE): New macros.
20130
20131 * regex.c (analyse_first): Fix for multibyte characters in "case
20132 charset:" and "case categoryspec:".
20133
201342008-02-01 Andreas Schwab <schwab@suse.de>
20135
20136 * Makefile.in (LIBES): Move standard libraries to the end.
20137
201382008-02-01 Kenichi Handa <handa@m17n.org>
20139
20140 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
20141 nonzero, don't shrink the buffer nextb.
20142
20143 * buffer.h (struct buffer_text): New member inhibit_shrinking.
20144
20145 * coding.c (coding_alloc_by_making_gap): New arg offset.
20146 (alloc_destination): Call coding_alloc_by_making_gap with the arg
20147 offset.
20148 (decode_coding_iso_2022): Update coding->safe_charsets.
20149 (decode_coding_gap): Temporarily set
20150 current_buffer->text->inhibit_shrinking to 1.
20151
201522008-02-01 Kenichi Handa <handa@m17n.org>
20153
20154 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
20155 indexing into elements of s->cmp and s->char2b.
20156
201572008-02-01 Juanma Barranquero <lekktu@gmail.com>
20158
20159 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
20160
201612008-02-01 Kenichi Handa <handa@m17n.org>
20162
20163 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
20164 target_multibyte instead of multibyte.
20165 (re_match_2_internal): Call bcmp_translate with target_multibyte.
20166 (bcmp_translate): Change the argument name from multibyte to
20167 target_multibyte.
20168
201692008-02-01 Kenichi Handa <handa@m17n.org>
20170
20171 These changes are to compile a regexp into a pattern that can be
20172 used both for multibyte and unibyte targets.
20173
20174 * Makefile.in (search.o): Depend on charset.h.
20175
20176 * character.c (multibyte_char_to_unibyte_safe): New function.
20177
20178 * search.c: Include "charset.h".
20179 (compile_pattern_1): Delete argument multibyte. Don't set
20180 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
20181 (compile_pattern): Don't compare cp->buf.target_multibyte.
20182 Compare cp->buf.charset_unibyte.
20183 (compile_pattern): Set cp->buf.target_multibyte.
20184
20185 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
20186
20187 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
20188
20189 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
20190 multibyte. Change callers.
20191 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
20192 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
20193 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
20194 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
20195 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
20196 (regex_compile): Make the compiled pattern usable both for
20197 multibyte and unibyte targets.
20198 (analyse_first): Make the fastmap usable both for multibyte and
20199 unibyte targets.
20200 (TRANSLATE_VIA_MULTIBYTE): Delete.
20201 (re_match_2_internal): Pay attention to the case that the
20202 multibyteness of bufp and target may be different.
20203
202042008-02-01 Kenichi Handa <handa@m17n.org>
20205
20206 * xdisp.c (x_produce_glyphs): When a font is not found, make the
20207 empty box occupy at least one column width.
20208
202092008-02-01 Miles Bader <miles@gnu.org>
20210
20211 * Makefile.in: Remove redundant HAVE_XFT clause.
20212
202132008-02-01 Kenichi Handa <handa@m17n.org>
20214
20215 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
20216
202172008-02-01 Kenichi Handa <handa@m17n.org>
20218
20219 * fontset.c (Finternal_char_font): Fix for the case of POSITION
20220 being nil.
20221
202222008-02-01 Kenichi Handa <handa@m17n.org>
20223
20224 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
20225
202262008-02-01 Kenichi Handa <handa@m17n.org>
20227
20228 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
20229
202302008-02-01 Kenichi Handa <handa@m17n.org>
20231
20232 * search.c (simple_search): Fix previous change.
20233
202342008-02-01 Kenichi Handa <handa@m17n.org>
20235
20236 * xftfont.c (ftfont_font_format): Extern declaration.
20237
20238 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
20239
20240 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
20241 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
20242
20243 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
20244 (ftfont_font_format): Fix previous change.
20245
20246 * font.h (Ffont_xlfd_name): EXFUN it.
20247
20248 * font.c (font_parse_xlfd): Fix the array size of `f'.
20249 (register_font_driver): Use EQ to compare driver->type.
20250
20251 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
20252 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
20253 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
20254
202552008-02-01 Kenichi Handa <handa@m17n.org>
20256
20257 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
20258 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
20259
202602008-02-01 Kenichi Handa <handa@m17n.org>
20261
20262 * xfont.c (xfont_open): Set font->format.
20263
20264 * xftfont.c (xftfont_open): Set font->format.
20265
20266 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
20267 (ftfont_list): Include FC_FONTFORMAT in FcObject.
20268 (ftfont_open): Set font->format.
20269 (ftfont_font_format): New function.
20270
20271 * font.h (struct font): New member format.
20272
20273 * font.c (Qopentype): New variable.
20274 (syms_of_font): Defsym it.
20275 (Fquery_font): Change the format of the last element of the return
20276 value.
20277
202782008-02-01 Kenichi Handa <handa@m17n.org>
20279
20280 * xfns.c (xic_create_xfontset): Try the default fontset name as a
20281 last resort.
20282
202832008-02-01 Kenichi Handa <handa@m17n.org>
20284
20285 * coding.c (detect_coding_charset): Fix detection of multi-byte
20286 charset.
20287
202882008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
20289
20290 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
20291
202922008-02-01 Kenichi Handa <handa@m17n.org>
20293
20294 * xdisp.c (get_next_display_element): Set it->face_id for the
20295 first component of a composition.
20296 (x_produce_glyphs): Check if the font is changed or not for composition.
20297
202982008-02-01 Kenichi Handa <handa@m17n.org>
20299
20300 * fontset.c (Qlatin): New variable.
20301 (syms_of_fontset): Define it as a lisp symbol.
20302 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
20303
203042008-02-01 Kenichi Handa <handa@m17n.org>
20305
20306 * font.c (font_unparse_fcname): Pay attention to the case that
20307 some of font property is a null string.
20308
203092008-02-01 Kenichi Handa <handa@m17n.org>
20310
20311 * term.c: Include "composite.h".
20312 (encode_terminal_code): Output all components of composition.
20313 Check the size of encode_terminal_src.
20314 (produce_glyphs): For composition, call produce_composite_glyph.
20315 (append_composite_glyph, produce_composite_glyph): New functions.
20316
20317 * xdisp.c (x_produce_glyphs): In handling composition, if a font
20318 is not found, get font_info from the current ascii face.
20319
203202008-02-01 Kenichi Handa <handa@m17n.org>
20321
20322 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
20323 buffer-file-name to Qnil before calling insert_from_buffer.
20324
20325 * font.c (font_unparse_fcname): Pay attention to the case that
20326 foundry is a null string.
20327
203282008-02-01 Kenichi Handa <handa@m17n.org>
20329
20330 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
20331
20332 * font.c (Qunicode_sip): New variable.
20333 (syms_of_font): Declare it as a Lisp symbol.
20334
20335 * font.h (Qunicode_sip): Extern it.
20336
203372008-02-01 Kenichi Handa <handa@m17n.org>
20338
20339 * composite.c (get_composition_id): Pay attention to TAB component.
20340
20341 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
20342 TAB. Adjust for the change of s->char2b which always points to
20343 the first element of allocated memory.
20344
20345 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
20346
20347 * xdisp.c (handle_composition_prop): Set it->c to the first
20348 non-TAB component.
20349 (fill_composite_glyph_string): Change argument.
20350 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
20351 (x_produce_glyphs): Fix handling of left/right padding.
20352
203532008-02-01 Kenichi Handa <handa@m17n.org>
20354
20355 * coding.c (detect_coding_system): Fix for handling off
20356 inhibit_iso_escape_detection. Fix for the case that no coding
20357 system is defined for a specific coding category.
20358
203592008-02-01 Kenichi Handa <handa@m17n.org>
20360
20361 * font.c (font_matching_entity): Delete unused local var.
20362
20363 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
20364 opening a font.
20365
20366 * fileio.c (Finsert_file_contents): On recovering a file, assume
20367 Unix-like eol.
20368 (choose_write_coding_system): On auto-saving a file, force
20369 Unix-like eol.
20370
20371 * coding.c (setup_coding_system): Fix setting of
20372 coding->common_flags based on eol_type.
20373 (coding_inherit_eol_type): If PARENT is not nil, be sure to
20374 inherit from it.
20375
203762008-02-01 Kenichi Handa <handa@m17n.org>
20377
20378 * alloc.c (NSTATICS): Increas to 0x600.
20379
203802008-02-01 Kenichi Handa <handa@m17n.org>
20381
20382 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
20383 (ftfont_list): Don't check :name property.
20384 (ftfont_match): New function.
20385 (ftfont_pattern_entity): If the pattern doesn't contain
20386 FC_SPACING, don't assume FC_MONO.
20387
20388 * font.h (struct font_driver): New member `match'.
20389 (font_update_drivers): Adjust prototype.
20390
20391 * font.c (font_parse_fcname, font_parse_name): Don't change :name
20392 property of FONT.
20393 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
20394 them unconditionally.
20395 (font_matching_entity): New function.
20396 (font_open_by_name): Try font_matching_entity if exact match is
20397 not found.
20398 (font_update_drivers): Delete the arg FONT. Return a list of
20399 actually used backends. Don't free faces, font caches here.
20400 Don't store data in frame parameters. Don't call x_set_font.
20401 (Ffont_spec): Store :name property as is.
20402 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
20403 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
20404 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
20405 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
20406 Call font->driver->otf_gsub instead of font_otf_gsub.
20407
20408 * frame.c (x_set_font_backend): Do more works that were done in
20409 font_update_drivers before.
20410
20411 * xfont.c (xfont_match): New function.
20412 (xfont_driver): Set xfont_driver.match to xfont_match.
20413 (xfont_draw): Set font in GC if necessary.
20414
20415 * ftxfont.c (ftxfont_match): New function.
20416 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
20417
20418 * xftfont.c (xftfont_match): New function.
20419 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
20420
204212008-02-01 Kenichi Handa <handa@m17n.org>
20422
20423 * font.h (struct font): New member scalable.
20424 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
20425 (font_otf_gsub): Adjust prototype.
20426
20427 * font.c (font_otf_capability): Fix handling of the default langsys.
20428 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
20429 Check the contents of SPEC.
20430 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
20431 (check_gstring): New function.
20432 (REPLACEMENT_CHARACTER): New macro.
20433 (font_otf_gsub): New arg alternate_subst. Be sure to set all
20434 glyph codes of GSTRING.
20435 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
20436 (font_prepare_composition): Set cmp->glyph_len.
20437 (font_open_entity): Set font->scalable.
20438 (Ffont_get): Handle :otf property.
20439 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
20440 functions.
20441 (Fquery_font): Use font->font.full_name.
20442 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
20443 Sfont_otf_alternates.
20444
20445 * ftfont.c (ftfont_open): Set font->font.full_name and
20446 font->font.name properly. Fix calculation of font->font.height
20447 and font->min_width.
20448
20449 * ftxfont.c (ftxfont_create_gcs): New function.
20450 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
20451 (ftxfont_draw_backgrond): Fix filling region.
20452 (ftxfont_default_fid): New function.
20453 (ftxfont_open): Set xfont->fid to the return value of
20454 ftxfont_default_fid.
20455 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
20456 (ftxfont_done_face): Free only GCs that are created by
20457 ftxfont_create_gcs.
20458 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
20459
20460 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
20461 Clip to src->width, etc (not src->clip_XXX).
20462
20463 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
20464 FontBackend frame parameter.
20465
204662008-02-01 Kenichi Handa <handa@m17n.org>
20467
20468 * font.h (struct font_driver_list): New member `on'.
20469 (Fclear_font_cache): EXFUN it.
20470 (font_update_drivers): Extern it.
20471
20472 * font.c (font_unparse_fcname): Fix typo (swidth->width).
20473 (font_list_entities): Check driver_list->on.
40b1a3a9 20474 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
20475 (font_update_drivers): New function.
20476 (Fclear_font_cache): Check driver_list->on.
20477
20478 * frame.h (Qfont_backend): Extern it.
20479 (x_set_font_backend): Extern it.
20480
20481 * frame.c (Qfont_backend): New variable.
20482 (frame_parms): New element for font-backend.
20483 (x_set_font_backend): New function.
20484
20485 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
20486 FontBackend frame parameter.
20487 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
20488 x_set_font_backend.
20489
20490 * xfont.c (xfont_list): Don't try listing by :name property if the
20491 name is not for XLFD.
20492
204932008-02-01 Kenichi Handa <handa@m17n.org>
20494
20495 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
20496 (LGLYPH_SET_TO): New macros.
20497 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
20498 element of G is vector or not.
20499 (font_at): Extern it.
20500
20501 * font.c: Include window.h.
20502 (font_lispy_object): New function.
20503 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
20504 end of valid glyph.
20505 (font_close_object): Fix getting (struct font *).
20506 (font_at): New function.
20507 (Ffont_get): If FONT is a font-object, get entity from it.
20508 (Ffont_make_gstring): Initialize elements of glyphs with nil.
20509 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
20510 range check.
20511 (Ffont_at): New function.
20512 (syms_of_font): Defsubr Sfont_at.
20513
20514 * xdisp.c (it_props): Move the entry for Qauto_composed to just
20515 before the entry for Qcomposition.
20516 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
20517 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
20518 the font in gstring.
20519 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
20520 LGLYPH_FORM (g) to detect the end of valid glyph.
20521 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
20522 we are composing with gstring.
20523
20524 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
20525 Check if adjustment is vector or not.
20526
20527 * Makefile.in (font.o): Make it depends on window.h.
20528
205292008-02-01 Kenichi Handa <handa@m17n.org>
20530
20531 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
20532 adjustment is vector or not.
20533
205342008-02-01 Miles Bader <miles@gnu.org>
20535
20536 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
20537
205382008-02-01 Kenichi Handa <handa@m17n.org>
20539
20540 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
20541 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
20542 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
20543
20544 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
20545 (DEVICE_DELTA): Fix typo.
20546 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
20547 LGLYPH format.
20548
20549 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
20550 the change of LGLYPH format.
20551
205522008-02-01 Kenichi Handa <handa@m17n.org>
20553
20554 * ftfont.c (ftfont_list): Fix typo.
20555 (ftfont_build_basic_charsets): Don't include letters with diacritics.
20556
205572008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20558
20559 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
20560
20561 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
20562 xftface_info is non-NULL.
20563
205642008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20565
20566 * ftfont.c (ftfont_list): Move misplaced #endif.
20567
205682008-02-01 Kenichi Handa <handa@m17n.org>
20569
20570 * ftfont.c (ftfont_list): Pay attention to the case that
20571 FC_CAPABILITY is not defined.
20572
205732008-02-01 Kenichi Handa <handa@m17n.org>
20574
20575 * xftfont.c (xftfont_open): Set charset related members to -1.
20576
20577 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
20578 QCname.
20579 (ftfont_open): Set charset related members to -1.
20580
20581 * fontset.c (Votf_script_alist): New variable.
20582 (syms_of_fontset): Initialize it.
20583 (fontset_font): Delete unused variable.
20584
20585 * fontset.h (Votf_script_alist): Extern it.
20586
20587 * font.c (font_find_for_lface): Optimize code.
20588
20589 * font.h (font_close_object, font_merge_old_spec): Extern them.
20590
205912008-02-01 Kenichi Handa <handa@m17n.org>
20592
20593 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
20594 (syms_of_font): Initialize them.
20595 (font_pixel_size): Allow float value in dpi.
20596 (font_prop_validate_type): Delete.
20597 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
20598 Change caller.
20599 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
20600 (font_prop_validate_extra): Delete.
20601 (font_prop_validate_spacing): New function.
20602 (font_property_table): Add elements for all known properties.
20603 (get_font_prop_index): Rename from check_font_prop_name. New
20604 argument FROM. Change caller.
20605 (font_prop_validate): Validate all known properties.
20606 (font_put_extra): Delete argument force. Change caller.
20607 (font_expand_wildcards): Make it static. Fix the way of shrinking
20608 the possible range.
20609 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
20610 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
20611 Change caller.
20612 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
20613 (font_parse_fcname): Delete argument merge. Fix parsing of point
20614 size. Don't validate properties values here. Change caller.
20615 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
20616 (font_open_by_name): Delete unused variable.
20617 (Ffont_spec): Likewise. Validate property values.
20618 (Ffont_match_p): New function.
20619
20620 * font.h (QCscalable): Extern it.
20621 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
20622
20623 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
20624
20625 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
20626 (xfont_list_pattern): New function.
20627 (xfont_list): Use xfont_list_pattern.
20628
206292008-02-01 Kenichi Handa <handa@m17n.org>
20630
20631 * font.h (Flist_fonts): EXFUN it.
20632
206332008-02-01 Jason Rumney <jasonr@gnu.org>
20634
20635 * w32term.c (w32_initialize): Add back smoothing_type and
20636 smoothing_enabled definitions.
20637
206382008-02-01 Kenichi Handa <handa@m17n.org>
20639
20640 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
20641 s->face->font on determining underline position.
20642
206432008-02-01 Kenichi Handa <handa@m17n.org>
20644
20645 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
20646 (font_has_char): Accept font-object too.
20647 (font_find_for_lface): Try at first with a size specified in face.
20648
206492008-02-01 Kenichi Handa <handa@m17n.org>
20650
20651 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
20652 font_open_by_name.
20653
206542008-02-01 Kenichi Handa <handa@m17n.org>
20655
20656 * font.h (QCspacing, QCdpi): Extern them.
20657 (enum font_spacing): New enum.
20658 (FONT_PIXEL_SIZE_QUANTUM): New macro.
20659
20660 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
20661 (QCspacing, QCdpi): New variables.
20662 (syms_of_font): Initialize them.
20663 (font_pixel_size): New function.
20664 (font_put_extra): New function.
20665 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
20666 in FONT_EXTRA.
20667 (font_parse_fcname): Handle enumerated values (e.g. bold).
20668 Fix handling font size. Add QCname property that contains only
20669 unknown properties.
20670 (font_score): Change argument. Change caller. Pay attention to
20671 FONT_PIXEL_SIZE_QUANTUM.
20672 (font_sort_entites, font_list_entities, font_find_for_lface)
20673 (font_open_for_lface, font_open_by_name): Fix handling of font size.
20674 (Ffont_spec): Add QCname property that contains only unknown properties.
20675
20676 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
20677 include weight in listing pattern, instead check weight of each
20678 listed font. Don't include scalable in pattern. Pay attention to
20679 FONT_PIXEL_SIZE_QUANTUM.
20680
206812008-02-01 Kenichi Handa <handa@m17n.org>
20682
20683 * font.c (font_parse_fcname): Fix parsing of point-size.
20684 (font_unparse_fcname): Produce symbolic names for style properties.
20685 (font_list_entities): Handle float size correctly.
20686 (font_open_by_name): Prefer `normal' property values if the name
20687 doesn't specify them.
20688
20689 * fontset.c (Finternal_char_font): Use font_get_name, not
20690 Ffont_xlfd_name.
20691
20692 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
20693 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
20694 pattern. Don't force scalable.
20695
20696 * xftfont.c (xftfont_open): For generating a name, start from
20697 96-byte buffer.
20698
206992008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20700
20701 * frame.h (x_new_fontset2): Fix prototype.
20702
207032008-02-01 Kenichi Handa <handa@m17n.org>
20704
20705 * font.h (struct font_driver): Delete member parse_name.
20706 (font_match_p, font_get_spec, font_parse_fcname)
20707 (font_unparse_fcname): Extern them.
20708 (font_get_name): Adjust prototype.
20709
20710 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
20711 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
20712 (font_expand_wildcards): Fix handling ENCODING field. Avoid
20713 unnecessary checks for weight, slant, and swidth.
20714 (font_parse_fcname): New function.
20715 (font_unparse_fcname): New function.
20716 (font_parse_name): New function.
20717 (font_match_p): New function.
20718 (font_get_name): Change return value to Lisp string.
20719 (font_get_spec): New function.
20720 (Qunspecified, Qignore_defface): Don't extern them.
20721 (font_find_for_lface): Assume that LFACE is fully specified.
20722 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
20723 object, use it for FACE.
20724 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
20725 driver->parse_name.
20726 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
20727
20728 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
20729 prototype.
20730
20731 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
20732 argument F. Don't call Fnew_fontset. Instead, directly call
20733 make_fontset.
20734
20735 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
20736
20737 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
20738 of x_new_fontset2.
20739
20740 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
20741 (Qsans__serif): New variables.
20742 (ftfont_generic_family_list): New variable.
20743 (syms_of_ftfont): Initialize the above variables.
20744 (ftfont_pattern_entity): Delete argument NAME.
20745 (ftfont_list_generic_family): New function.
20746 (ftfont_parse_name): Delete this function.
20747 (ftfont_list): Try generic family only when FcFontList found no font.
20748 (ftfont_list_family): Fix args to FcObjectSetBuild.
20749
20750 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
20751 object in attrs[LFACE_FONT_INDEX].
20752 (set_lface_from_font_name): Cancel all changes for font-backend.
20753 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
20754 function.
20755 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
20756 font object in QCfont attribute.
20757 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
20758 (realize_default_face) [USE_FONT_BACKEND]: Call
20759 set_lface_from_font_and_fontset.
20760
20761 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
20762 "fixed", and signal error here if no suitable font was found.
20763
20764 * xfont.c (xfont_parse_name): Delete this function.
20765
20766 * xftfont.c (xftfont_open): Change coding style of error
20767 handling. Generate fontconfig's fontname pattern.
20768
20769 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
20770 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
20771
20772 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
20773 Both args FONTSET and FONT_OBJECT must be existing ones.
20774
207752008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20776
20777 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
20778
207792008-02-01 Kenichi Handa <handa@m17n.org>
20780
20781 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
20782
20783 * font.h (struct font): Fix typo.
20784
20785 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
20786 XLFD_XXX_INDEX.
20787 (enum xlfd_field_mask): New enum.
20788 (intern_font_field): Changed argument. Change caller. If digits
20789 are followed by non-digits, return a symbol.
20790 (font_expand_wildcards): New function.
20791 (font_parse_xlfd): Fix wildcard handling.
20792 (Ffont_spec): If :name is specified, reflect the info in the other
20793 properties.
20794
20795 * ftfont.c (ftfont_pattern_entity): Fix typo.
20796 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
20797 locale.
20798
207992008-02-01 Kenichi Handa <handa@m17n.org>
20800
20801 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
20802
20803 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
20804 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
20805 registry doesn't specify encoding part.
20806 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
20807 (font_open_by_name): At first try parsing the name.
20808 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
20809 as Lisp symbols.
20810
20811 * fontset.c (reorder_font_vector): Pay attention to the case that
20812 the 3rd element of font_def is nil.
20813 (fontset_font): For the default fontset, append one more fontset
20814 elements for a script-based font specification. Don't add script
20815 attribute on finding a font.
20816 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
20817 font name.
20818 (fontset_ascii_font): If a font can't be opened, return nil.
20819
20820 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
20821 (ftfont_pattern_entity): New function.
20822 (ftfont_get_cache): Assume that freetype_font_cache is already
20823 initialized.
20824 (ftfont_list): Handle the case that a file is specified in font
20825 name. Use ftfont_pattern_entity to generate entities.
20826 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
20827 (syms_of_ftfont): Initialize freetype_font_cache.
20828
20829 * xftfont.c (xftfont_open): Make the font name fontconfig's
20830 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
20831 (xftfont_close): Free font->font.name if not NULL.
20832
20833 * xfont.c (xfont_list): If script is specified for a font, return
20834 null_vector.
20835 (xfont_list_family): Declare argument type.
20836
20837 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
20838 name, set LFACE_FONT (lface) to nil.
20839
20840 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
20841 return Qnil.
20842
208432008-02-01 Kenichi Handa <handa@m17n.org>
20844
20845 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
20846 (standard_args): Add "-enable-font-backend".
20847
208482008-02-01 Kenichi Handa <handa@m17n.org>
20849
20850 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
20851 (struct xftdraw_list, xftdraw_list): Delete them.
20852 (register_xftdraw, check_xftdraw): Delete them.
20853 (xftfont_prepare_face): Don't call register_xftdraw.
20854 (xftfont_done_face): Don't call check_xftdraw.
20855 (xftfont_draw): Get background color only when with_background is
20856 nonzero.
20857
20858 * xfont.c (xfont_encode_char): Fix calculation of char2b.
20859
208602008-02-01 Kenichi Handa <handa@m17n.org>
20861
20862 These changes are for the new font handling codes.
20863
20864 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
20865 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
20866 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
20867 (FONTSRC, FONTOBJ): New variables.
20868 (obj): Add $(FONTOBJ).
20869 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
20870 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
20871 @LIBOTF_LIBS@.
20872 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
20873 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
20874
20875 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
20876
20877 * character.h (Vscript_representative_chars): Extern it.
20878
20879 * character.c (Vscript_representative_chars): New variable.
20880 (syms_of_character): Declare it as a Lisp variable.
20881
20882 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
20883 enable_font_backend is nonzero, accept the composition method
20884 COMPOSITION_WITH_GLYPH_STRING.
20885
20886 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
20887 enumeration COMPOSITION_WITH_GLYPH_STRING.
20888
20889 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
20890 members clip_x, clip_y, clip_width, and clip_height.
20891 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
20892
20893 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
20894 --enable-font-backend. Call syms_of_font.
20895
20896 * fns.c (assoc_no_quit): New function.
20897
20898 * fontset.h (FONT_INFO_FROM_FACE): New macro.
20899 (face_for_font, new_fontset_from_font)
20900 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
20901
20902 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
20903 (fontset_font, fontset_ascii, face_for_char)
20904 (make_fontset_for_ascii_face, Ffont_info)
20905 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
20906 is nonzero, use font-backend mechanism.
20907 (find_font_encoding): Make it non-static.
20908 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
20909 New functions.
20910
20911 * frame.h (struct frame): New members resx and resy.
20912 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
20913 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
20914
20915 * frame.c [USE_FONT_BACKEND]: Include "font.h".
20916 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
20917
20918 * lisp.h (assoc_no_quit): Extern it.
20919
20920 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
20921 Through out the file, use FONT_INFO_FROM_FACE instead of
20922 FONT_INFO_FROM_ID, use get_per_char_metric instead of
20923 rif->per_char_metric.
20924 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
20925 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
20926 (get_glyph_face_and_encoding, fill_composite_glyph_string)
20927 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20928 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
20929 nonzero, use font-backend mechanism.
20930 (get_per_char_metric): New function.
20931
20932 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
20933 (set_lface_from_font_name)
20934 (set_font_frame_param, free_realized_face)
20935 (prepare_face_for_display, clear_face_gcs)
20936 (Finternal_set_font_selection_order, realize_x_face)
20937 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
20938 font-backend mechanism.
20939 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
20940 (load_face_font) [USE_FONT_BACKEND]: Abort.
20941 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
20942 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
20943
20944 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
20945 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
20946 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
20947 nonzero, register all available font drivers. Call
20948 x_default_font_parameter for deciding a font.
20949 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
20950
20951 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
20952 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
20953 (x_set_glyph_string_clipping_exactly)
20954 (x_compute_glyph_string_overhangs)
20955 (x_draw_glyph_string_foreground)
20956 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
20957 (x_free_frame_resources) [USE_FONT_BACKEND]: If
20958 enable_font_backend is nonzero, use font-backend mechanism.
20959 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
20960
209612008-02-01 Kenichi Handa <handa@m17n.org>
20962
20963 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
20964 system_eol_type.
20965 (syms_of_coding): Initialize system_eol_type.
20966
20967 * process.c (Fset_process_coding_system): Inherit system's eol
20968 format if necessary.
20969
209702008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20971
20972 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
20973
209742008-02-01 Kenichi Handa <handa@m17n.org>
20975
20976 * coding.c (decode_eol): Pay attention to buffer relocation in
20977 del_range_2.
20978 (decode_coding): Call decode_eol before restoring undo_list.
20979
209802008-02-01 Kenichi Handa <handa@m17n.org>
20981
20982 * charset.c (Fdefine_charset_internal): Fix setting of
20983 emacs_mule_bytes.
20984
209852008-02-01 Kenichi Handa <handa@m17n.org>
20986
20987 * keyboard.c (read_char): Check if C is a character or not before
20988 looking up Vkeyboard_translate_table.
20989
209902008-02-01 Kenichi Handa <handa@m17n.org>
20991
20992 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
20993 condition to terminate the loop.
20994
209952008-02-01 Kenichi Handa <handa@m17n.org>
20996
20997 * coding.c (produce_composition): Compare charbuf[i] instead of
20998 args[i] against 0.
20999 (Fterminal_coding_system): Use EQ to compare Lisp objects.
21000
210012008-02-01 Kenichi Handa <handa@m17n.org>
21002
21003 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
21004 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
21005 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
21006 detect_coding.
21007 (emacs_mule_char): Handle old style (Emacs 20) component character
21008 of a composition.
21009 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
21010 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
21011 composition rule.
21012 (decode_coding_emacs_mule): Handle invalid bytes correctly.
21013
210142008-02-01 Kenichi Handa <handa@m17n.org>
21015
21016 * coding.c (encode_coding_ccl): Allocate destination dynamically
21017 when necessary.
21018
210192008-02-01 Kenichi Handa <handa@m17n.org>
21020
21021 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
21022 the loop. When quitted, show a proper error message.
21023
210242008-02-01 Kenichi Handa <handa@m17n.org>
21025
21026 * xterm.c (x_set_glyph_string_clipping_exactly): Set
21027 src->clip_head and src->clip_tail temporarily instead of src->hl.
21028
21029 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
21030 character sequence.
21031 (Fccl_execute_on_string): Use ASET, not XSET.
21032
210332008-02-01 Kenichi Handa <handa@m17n.org>
21034
21035 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
21036
210372008-02-01 Kenichi Handa <handa@m17n.org>
21038
21039 * coding.c (decode_coding): Fix the condition of terminating the
21040 decoding loop.
21041
210422008-02-01 Kenichi Handa <handa@m17n.org>
21043
21044 * data.c (Faset): On setting a character bigger than 255 in a
21045 unibyte string, signal an error instead of make the string multibyte.
21046
210472008-02-01 Kenichi Handa <handa@m17n.org>
21048
21049 * charset.c (map_charset_chars): Fix for ascii-compatible charset
21050 made by a mapping table.
21051
210522008-02-01 Kenichi Handa <handa@m17n.org>
21053
21054 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
21055 not.
21056 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
21057 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
21058
21059 * xterm.c (x_draw_composite_glyph_string_foreground): Check
21060 s->face is NULL or not.
21061
210622008-02-01 Kenichi Handa <handa@m17n.org>
21063
21064 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
21065 (x_draw_glyph_string): Fix drawing of right_overhang and
21066 left_overhang around/on cursor.
21067
21068 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
21069
210702008-02-01 Kenichi Handa <handa@m17n.org>
21071
21072 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
21073
210742008-02-01 Kenichi Handa <handa@m17n.org>
21075
21076 * coding.c (Fdefine_coding_system_internal)
21077 (Fdefine_coding_system_alias): Avoid a duplicated element in
21078 Vcoding_system_alist.
21079
210802008-02-01 Kenichi Handa <handa@m17n.org>
21081
21082 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
21083
21084 * coding.c (Qcoding_system_define_form): New variable.
21085 (syms_of_coding): Intern and staticpro it.
21086 (Fcoding_system_p): Check Qcoding_system_define_form.
21087 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
21088
21089 * coding.h (CODING_SYSTEM_P): If ID is not available, call
21090 Fcoding_system_p.
21091 (CHECK_CODING_SYSTEM): If ID is not available, call
21092 Fcheck_coding_system.
21093 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
21094 Try also Fcheck_coding_system.
21095
210962008-02-01 Kenichi Handa <handa@m17n.org>
21097
21098 * coding.c (code_conversion_restore): GCPRO arg.
21099
211002008-02-01 Kenichi Handa <handa@m17n.org>
21101
21102 * character.c (lisp_string_width): Check multibyteness of STRING.
21103
211042008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21105
21106 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
21107 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
21108 (decode_mac_font_name): Use decode_coding_c_string instead of
21109 decode_coding.
21110 (x_load_font): Initialize fontp->fontset to -1. Set
21111 fontp->encoding_type.
21112
211132008-02-01 Kenichi Handa <handa@m17n.org>
21114
21115 * search.c (search_buffer): Give up BM search on case-fold-search
21116 if one of a target character has a case-equivalence of different
3b59c351 21117 byte length even if that target character is an ASCII.
aac0c6e3
MR
21118 (simple_search): Fix calculation of byte length of matched text.
21119 (boyer_moore): Fix handling of case-equivalent multibyte characters.
21120
211212008-02-01 Kenichi Handa <handa@m17n.org>
21122
21123 * coding.c (decode_coding): Fix handling of invalid bytes.
21124
211252008-02-01 Kenichi Handa <handa@m17n.org>
21126
21127 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
21128 Unicode characters.
21129
211302008-02-01 Kenichi Handa <handa@m17n.org>
21131
21132 * coding.c (encode_coding_object): If a pre-write-conversion
21133 function makes a new buffer, kill it.
21134
211352008-02-01 Kenichi Handa <handa@m17n.org>
21136
21137 * coding.c (QCascii_compatible_p): New variable.
21138 (syms_of_coding): Initialize it.
21139 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
21140 calling string_char.
21141 (record_conversion_result): Add `default:' case.
21142 (coding_charset_list): Delete unused variable `coding_type'.
21143 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
21144 property in the plist of the coding system.
21145 (Fcoding_system_put): Check QCascii_compatible_p.
21146
211472008-02-01 Miles Bader <miles@gnu.org>
21148
21149 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
21150 removed calculation of frame `f', as it's now used.
21151
211522008-02-01 Kenichi Handa <handa@m17n.org>
21153
21154 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
21155 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
21156 (UNIDATA): New variable.
21157 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
21158 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
21159 $(RUN_TEMACS) unconditionally.
21160
211612008-02-01 Kenichi Handa <handa@m17n.org>
21162
21163 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
21164 (admindir): New variable.
21165 ($(lispsource)international/charprop.el): New target.
21166
211672008-02-01 Miles Bader <miles@gnu.org>
21168
21169 * character.c (chars-in-region): Remove obsolete function.
21170 (syms_of_character): Remove its initialization.
21171
211722008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
21173
21174 * w32select.c (validate_coding_system)
21175 (setup_windows_coding_system): New functions.
21176 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
21177 setup_windows_coding_system.
21178 (setup_config, Fw32_get_clipboard_data): Use
21179 validate_coding_system.
21180 (Fx_selection_exists): Move call to setup_config to a place
21181 where signals are allowed.
21182
21183 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
21184 (Fcheck_coding_system): Add declarations.
21185
211862008-02-01 Kenichi Handa <handa@m17n.org>
21187
21188 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
21189
211902008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21191
21192 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
21193 string as the second argument for x_new_fontset.
21194
211952008-02-01 Kenichi Handa <handa@m17n.org>
21196
21197 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
21198 (encode_coding_object): Use safe_call instead of call2.
21199
212002008-02-01 Kenichi Handa <handa@m17n.org>
21201
21202 * fontset.c (Fset_fontset_font): Check family element of a given vector.
21203
21204 * Makefile.in (lisp): Include charprop.el.
21205
212062008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21207
21208 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
21209 Not sure if it's unnecessary.
21210
212112008-02-01 Steven Tamm <steventamm@mac.com>
21212
21213 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
21214 some possibly unnecessary fontset checking code that crashed
21215 when creating a new frame.
21216
212172008-02-01 Kenichi Handa <handa@m17n.org>
21218
21219 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
21220 lookup_face.
21221
21222 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
21223
21224 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
21225
212262008-02-01 Kenichi Handa <handa@m17n.org>
21227
21228 * coding.c: Cancel the change done in HEAD on 2008-02-01.
21229 (coding_charset_list): New function.
21230
21231 * coding.h (coding_charset_list): Extern it.
21232
212332008-02-01 Kenichi Handa <handa@m17n.org>
21234
21235 * fontset.c (Fset_fontset_font): Call find_font_encoding with
21236 concatenation of family and registry.
21237
212382008-02-01 Kenichi Handa <handa@m17n.org>
21239
21240 * character.h (BYTE8_STRING): Fix typo.
21241
21242 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
21243 string to multibyte (sync to HEAD).
21244
21245 * casefiddle.c (casify_region): Handle changes in byte-length
21246 using replace_range_2 (sync to HEAD).
21247
212482008-02-01 Andreas Schwab <schwab@suse.de>
21249
21250 * chartab.c (map_char_table): GCPRO table and arg.
21251
212522008-02-01 Kenichi Handa <handa@m17n.org>
21253
21254 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
21255 already at limit.
21256
212572008-02-01 Kenichi Handa <handa@m17n.org>
21258
21259 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
21260 instead of fast_c_string_match_ignore_case.
21261 (find_font_encoding): Change argument to Lisp_Object. Use
21262 fast_string_match_ignore_case instead of
21263 fast_c_string_match_ignore_case. Change caller.
21264
212652008-02-01 Kenichi Handa <handa@m17n.org>
21266
21267 * xdisp.c (get_next_display_element): In unibyte case, decide to
21268 display in octal form by checking a character by
21269 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
21270
21271 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
21272
21273 * character.c (unibyte_has_multibyte_table): New variable.
21274
21275 * character.h (unibyte_has_multibyte_table): Extern it.
21276 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
21277
212782008-02-01 Kenichi Handa <handa@m17n.org>
21279
21280 * coding.c (encode_coding_iso_2022): Fix handling of charset
21281 annotation.
21282
212832008-02-01 Kenichi Handa <handa@m17n.org>
21284
21285 * coding.c (setup_coding_system): If coding_system is nil, use
21286 Qundecided.
21287 (Fterminal_coding_system): Return nil if terminal coding system is
21288 `undecided'.
21289 (syms_of_coding): Define coding-system `undecided' here. Setup
21290 terminal_coding as `undecided'.
21291
212922008-02-01 Kenichi Handa <handa@m17n.org>
21293
21294 * xdisp.c (message_dolog, set_message_1): Call
21295 unibyte_char_to_multibyte with arg type int.
21296
21297 * lread.c (read1): Fix reading of a char-table.
21298
21299 * print.c (print_object): Include sub char-table in circularities
21300 detection.
21301
213022008-02-01 Kenichi Handa <handa@m17n.org>
21303
21304 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
21305 Append the found sequences in car of ARGS instead of prepending.
21306
213072008-02-01 Kenichi Handa <handa@m17n.org>
21308
21309 * fileio.c (report_file_error): Make a unibyte string from
21310 strerror (errorno).
21311 (Fsubstitute_in_file_name): Fix the arg to
21312 unibyte_char_to_multibyte. It is evaluated twice.
21313
213142008-02-01 Kenichi Handa <handa@m17n.org>
21315
21316 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
21317
213182008-02-01 Kenichi Handa <handa@m17n.org>
21319
21320 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
21321 BOM is not found.
21322 (detect_coding, detect_coding_system): Optimization for ISO-2022
21323 when no 8-bit data is found.
21324
213252008-02-01 Jason Rumney <jasonr@gnu.org>
21326
21327 * w32fns.c (x_to_w32_font): Update to use new coding struct.
21328
213292008-02-01 Kenichi Handa <handa@m17n.org>
21330
21331 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
21332 CHARS.
21333
213342008-02-01 Steven Tamm <steventamm@mac.com>
21335
21336 * macterm.c (mac_encode_char): Add charset argument and update
21337 to use encoding_type.
21338 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
21339 switch to pure fontset.
21340 (decode_mac_font_name): Temporarily remove decoding.
21341 (x_font_name_to_mac_font_name): Temporarily remove encoding.
21342 (x_load_font): Temporarily remove encoding.
21343
213442008-02-01 Kenichi Handa <handa@m17n.org>
21345
21346 * xfaces.c (Fface_font): If frame is not on a window system,
21347 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
21348 refer to face->font.
21349 (split_font_name_into_vector, build_font_name_from_vector)
21350 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
21351 when HAVE_WINDOW_SYSTEM is defined.
21352
213532008-02-01 Kenichi Handa <handa@m17n.org>
21354
21355 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
21356 (x_produce_glyphs): Fix setting of members of cmp in case
21357 cmp->glyph_len is zero.
21358
21359 * fontset.c (Fset_fontset_font): Fix docstring.
21360 (Ffontset_info): Make it backward compatible. New arg ALL.
21361
213622008-02-01 Kim F. Storm <storm@cua.dk>
21363
21364 * process.c (read_process_output): Grow decoding_buf when needed;
21365 this could cause a crash in allocate_string and compact_small_strings.
21366
213672008-02-01 Kenichi Handa <handa@m17n.org>
21368
21369 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
21370
213712008-02-01 Kenichi Handa <handa@m17n.org>
21372
21373 * coding.c (setup_coding_system): Set coding->common_flags
21374 correctly for raw-text.
21375 (consume_chars): On encoding unibyte text by raw-text, don't check
21376 multibyte form.
21377 (encode_coding): On encoding by raw-text, never use translation tables.
21378
21379 * fileio.c (e_write): Short cut for the case of no encoding.
21380
213812008-02-01 Kenichi Handa <handa@m17n.org>
21382
21383 * coding.c (detect_coding, detect_coding_system): Delete unused
21384 variables.
21385
213862008-02-01 Kenichi Handa <handa@m17n.org>
21387
21388 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
21389 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
21390
213912008-02-01 Kenichi Handa <handa@m17n.org>
21392
21393 * coding.c (Ffind_coding_systems_region_internal): Include
21394 raw-text and no-conversion in the result.
21395
213962008-02-01 Kenichi Handa <handa@m17n.org>
21397
21398 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
21399 (load_font_get_repertory): Delete unnecessary check of ENCODING of
21400 FONT_DEF.
21401 (font_def_arg, add_arg, from_arg, to_arg): New args.
21402 (set_fontset_font): Change argument.
21403 (Fset_fontset_font): Fix for the case that TARGET is a script
21404 name and charset name.
21405 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
21406
214072008-02-01 Kenichi Handa <handa@m17n.org>
21408
21409 * fontset.c (fontset_font): Rename from fontset_face. Change return
21410 value.
21411 (face_suitable_for_char_p, face_for_char): Adjust for the change
21412 of fontset_font.
21413 (make_fontset_for_ascii_face): Fix setting of the fontset element
21414 for ASCII.
21415 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
21416 to get a font name.
21417 (Ffontset_info): Adjust for the change of fontset_font.
21418
21419 * coding.c (emacs_mule_char): Check invalid code more rigidly.
21420
21421 * character.h (LEADING_CODE_LATIN_1_MIN)
21422 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
21423
214242008-02-01 Kenichi Handa <handa@m17n.org>
21425
21426 * editfns.c (check_translation): New function.
21427 (Ftranslate_region_internal): Handle M:N mapping.
21428
214292008-02-01 Kenichi Handa <handa@m17n.org>
21430
21431 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
21432
214332008-02-01 Kenichi Handa <handa@m17n.org>
21434
21435 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
21436 goto invalid_code.
21437 (decode_coding_iso_2022): Fix handling of invalid designation.
21438
21439 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
21440 after calling code_conversion_save.
21441
214422008-02-01 Kenichi Handa <handa@m17n.org>
21443
21444 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
21445
21446 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
21447
21448 * fontset.c: Include "intervals.h".
21449 (fontset_face): Fix comparing of Lisp_Objects.
21450 (free_face_fontset, new_fontset_from_font_name): Fix
21451 Lisp_Object/int mixup.
21452
21453 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
21454
21455 * coding.c: Add many prototypes for static functions.
21456 (get_translation_table): Allow max_lookup to be NULL.
21457 (decode_coding, Ffind_coding_systems_region_internal)
21458 (Funencodable_char_position, Fcheck_coding_systems_region): Call
21459 get_translation_table with max_lookup NULL.
21460
214612008-02-01 Kenichi Handa <handa@m17n.org>
21462
21463 * coding.c (get_translation_table): Declare it as Lisp_Object.
21464 (LOOKUP_TRANSLATION_TABLE): New macro.
21465 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
21466 instead of CHAR_TABLE_REF.
21467
214682008-02-01 Kenichi Handa <handa@m17n.org>
21469
21470 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
21471 annotation data format.
21472 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
21473 Change arguments FROM and TO to single argument NCHARS. Change caller.
21474 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
21475 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21476 (decode_coding_ccl, decode_coding_charset): Pay attention to
21477 coding->charbuf_used.
21478 (get_translation): New function.
21479 (produce_chars): New arguments translation_table and last_block.
21480 Translate characters here. Return number of carryover chars.
21481 Change caller.
21482 (produce_composition): New argument pos. Change caller.
21483 Adjust for the change of annotation data format.
21484 (produce_charset, produce_annotation): Likewise.
21485 (decode_coding, encode_coding): Don't call translate_chars.
21486 (consume_chars): New arg translation_table. Change caller.
21487 (translate_chars): Delete.
21488 (syms_of_coding): Make translation-table's number of extra slots 2.
21489
214902008-02-01 Kenichi Handa <handa@m17n.org>
21491
21492 * search.c (simple_search): Fix setting this_pos_byte in backward
21493 search.
21494
21495 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
21496 byte sequence.
21497 (detect_coding_ccl): Fix setting of the variable valids.
21498
214992008-02-01 Kenichi Handa <handa@m17n.org>
21500
21501 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
21502
21503 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
21504
21505 * editfns.c (Ftranslate_region_internal): Rename from
21506 Ftranslate_region. Accept a char-table in TABLE.
21507 (syms_of_editfns): Defsubr Stranslate_region_internal.
21508
21509 * xfaces.c (set_lface_from_font_name): If a font is specified for
21510 a frame, generate a fontset from the font.
21511 (build_scalable_font_name): If the scalable font is requested for
21512 a specific size, don't change that size.
21513 (try_font_list): Try a scalable font also in the case that a
21514 pattern string is specified.
21515
215162008-02-01 Kenichi Handa <handa@m17n.org>
21517
21518 * xfaces.c (Fface_font): New optional arg CHARACTER.
21519
215202008-02-01 Kenichi Handa <handa@m17n.org>
21521
21522 * charset.h (CHARSET_OFFSET): New macro.
21523
215242008-02-01 Kenichi Handa <handa@m17n.org>
21525
21526 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
21527
21528 * fontset.c (fontset_face): Handle the case that repertory is a
21529 char-table.
21530 (find_font_encoding): Return nil for unknown encoding.
21531 (Fset_fontset_font): Ignore a font of unknown encoding.
21532
215332008-02-01 Kenichi Handa <handa@m17n.org>
21534
21535 * keymap.c (describe_vector): Handle default value of a char table.
21536
21537 * fontset.c (fontset_face): Handle fallback fonts correctly.
21538 (Ffontset_info): Return infomation about fallback fonts.
21539
215402008-02-01 Kenichi Handa <handa@m17n.org>
21541
21542 * fontset.c (FONTSET_DEFAULT): New macro.
21543 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
21544 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
21545 the case that it is nil.
21546 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
21547 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
21548
21549 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
21550 subset or superset.
21551
215522008-02-01 Kenichi Handa <handa@m17n.org>
21553
21554 * emacs.c (main): Call init_charset after syms_of_XXX.
21555
21556 * charset.c (Vcharset_map_directory): Delete.
21557 (Vcharset_map_path): New variable.
21558 (load_charset_map_from_file): Use Vcharset_map_path instead.
21559 (init_charset): Initialize Vcharset_map_path.
21560 (syms_of_charset): Delete declaration of "charset-map-directory",
21561 add declaration of "charset-map-path".
21562
215632008-02-01 Kenichi Handa <handa@m17n.org>
21564
21565 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
21566 ASCII only string.
21567
21568 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
21569
21570 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
21571 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
21572
215732008-02-01 Kenichi Handa <handa@m17n.org>
21574
21575 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
21576
21577 * coding.c (QCmnemonic, QCdefalut_char)
21578 (QCdecode_translation_table, QCencode_translation_table)
21579 (QCpost_read_conversion, QCpre_write_conversion): New variables.
21580 (get_translation_table): Return a list of translation tables if
21581 necessary.
21582 (decode_coding): Call get_translation_table with ENCODEP 0.
21583 (char_encodable_p): If translation_table is non-nil, always call
21584 translate_char.
21585 (Fdefine_coding_system_internal): Accept list of translation
21586 tables as :encode-translation-table and :decode-translation-table.
21587 (Fcoding_system_put): New function.
21588 (syms_of_coding): Declare new symbols. Defsubr
21589 Scoding_system_put.
21590 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
21591 typically JISX0212.
21592
21593 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
21594 when the charset is superset type.
21595
21596 * character.c (translate_char): Accept list of translation tables.
21597
215982008-02-01 Kenichi Handa <handa@m17n.org>
21599
21600 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
21601 (CODING_ATTR_TRANS_TBL): New macro.
21602
21603 * coding.c (get_translation_table): New function.
21604 (translate_chars): Fix the bug of skipping annotation data.
21605 (decode_coding, encode_coding): Utilize get_translation_table.
21606 (char_encodable_p, Funencodable_char_position): Translate char if
21607 necessary.
21608 (Ffind_coding_systems_region_internal)
21609 (Fcheck_coding_systems_region): Setup translation table for encode
21610 in a coding system attribute vector in advance.
21611 (Fdefine_coding_system_internal): Allow a symbol as translation
21612 table. For shift-jis type coding system, allow 4th charset.
21613
216142008-02-01 Kenichi Handa <handa@m17n.org>
21615
21616 * coding.c (decode_coding_sjis): Check the first byte rigidly.
21617
21618 * xdisp.c (get_next_display_element): Pass -1 as POS to
21619 FACE_FOR_CHAR if displaying a C-string.
21620
216212008-02-01 Kenichi Handa <handa@m17n.org>
21622
21623 * composite.c (get_composition_id): Handle xoff and yoff in a
21624 composition rule.
21625
21626 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
21627 (struct composition): New member lbearing and rbearing.
21628
21629 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
21630 (x_get_glyph_overhangs): Handle a composition glyph.
21631 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
21632
21633 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
21634 composition glyph.
21635
216362008-02-01 Kenichi Handa <handa@m17n.org>
21637
21638 * print.c: Include charset.h.
21639 (Vprint_charset_text_property): New variable.
21640 (Qdefault): Extern it.
21641 (PRINT_STRING_NON_CHARSET_FOUND)
21642 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
21643 (print_check_string_result): New variable.
21644 (print_check_string_charset_prop): New function.
21645 (print_prune_charset_plist): New variable.
21646 (print_prune_string_charset): New function.
21647 (print_object): Call print_prune_string_charset if
21648 Vprint_charset_text_property is not t.
21649 (print_interval): Print nothing if interval->plist is nil.
21650 (syms_of_print): Declare Vprint_charset_text_property as a lisp
21651 variable. Init and staticpro print_prune_charset_plist.
21652
216532008-02-01 Kenichi Handa <handa@m17n.org>
21654
21655 * fontset.c (new_fontset_from_font_name): Use the specified font
21656 for all characters in the new fontset.
21657
21658 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21659 OBJECT args.
21660
21661 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
21662 OBJECT args for composition too.
21663
21664 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21665 OBJECT args.
21666
216672008-02-01 Kenichi Handa <handa@m17n.org>
21668
21669 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
21670
21671 * fontset.c (reorder_font_vector): Adjust for the change of
21672 FONT_DEF format.
21673 (fontset_face): New arg id. Change caller.
21674 (face_for_char): New args pos and object.
21675 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
21676 (fs_query_fontset): Check NAME by Fassoc too.
21677 (Fset_fontset_font): Allow non-XLFD font name.
21678 (Ffontset_info): Adjust for the change of FONT_DEF format.
21679
21680 * fontset.h (face_for_char): Adjust prototype.
21681
21682 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
21683 (append_space, extend_face_to_end_of_line)
21684 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
21685 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
21686
21687 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
21688 POS and OBJECT args.
21689
21690 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
21691 POS and OBJECT args.
21692
216932008-02-01 Jason Rumney <jasonr@gnu.org>
21694
21695 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
21696 of GlobalAlloc'ed memory.
21697
216982008-02-01 Kenichi Handa <handa@m17n.org>
21699
21700 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
21701
21702 * charset.h (charset_table_used): Delete extern.
21703
21704 * charset.c (charset_table_used): Make it static.
21705 (map_charset_chars): Fix args to c_function with.
21706
21707 * chartab.c (map_sub_char_table_for_charset): Fix args to
21708 c_function with.
21709
21710 * coding.h (enum coding_result_code): Delete
21711 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
21712
21713 * coding.c (Qinsufficient_source, Qinconsistent_eol)
21714 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
21715 (Vlast_code_conversion_error): New variables.
21716 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
21717 (ONE_MORE_BYTE): Record error if any instead of signaling an
21718 error. If non-ASCII multibyte char is found, return the negative
21719 value of the code. All callers changed to check it.
21720 (ONE_MORE_BYTE_NO_CHECK): Likewise.
21721 (record_conversion_result): New function. Change all codes setting
21722 coding->result to call this function.
21723 (detect_coding_utf_8, decode_coding_utf_8)
21724 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
21725 Don't use the local variable incomplete.
21726 (emacs_mule_char): Change the second arg to `const'.
21727 (decode_coding): Fix of flushing out unprocessed data.
21728 (make_conversion_work_buffer): Fix making of a work buffer.
21729 (decode_coding_object): Return coding->dst_object.
21730
21731 * fontset.c (set_fontset_font): Fix args.
21732
21733 * lisp.h (CHARACTERBITS): Define as 22.
21734
21735 * process.c (send_process): Be sure to set coding->src_multibyte.
21736
21737 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
21738
217392008-02-01 Kenichi Handa <handa@m17n.org>
21740
21741 * xdisp.c (handle_auto_composed_prop): Give limit to
21742 Fnext_single_char_property_change.
21743
217442008-02-01 Kenichi Handa <handa@m17n.org>
21745
21746 * composite.c (syms_of_composite): Don't make the composition hash
21747 table weak.
21748
21749 * fontset.c (Fset_fontset_font): Fix docstring.
21750
21751 * lisp.h (detect_coding_system): Adjust prototype.
21752
21753 * fileio.c (kill_workbuf_unwind): Delete this function.
21754 (Finsert_file_contents): Adjust the call of detect_coding_system.
21755 Get conversion_buffer by code_conversion_save. Use the macro
21756 CODING_MAY_REQUIRE_DECODING. After decoding, update
21757 coding_system.
21758
21759 * coding.h (make_conversion_work_buffer): Delete extern.
21760 (code_conversion_save): Extern it.
21761
21762 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
21763 (CODING_GET_INFO): Delete argument eol_type. Change callers.
21764 (decode_coding_utf_8): Don't do eol converion.
21765 (detect_coding_utf_16): Check coding->src_chars, not
21766 coding->src_bytes. Add heuristics for those that have no signature.
21767 (decode_coding_emacs_mule, decode_coding_iso_2022)
21768 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21769 Don't do eol converion.
21770 (adjust_coding_eol_type): Return a new coding system.
21771 (detect_coding): Don't detect eol. Fix for utf-16 detection.
21772 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
21773 each change.
21774 (decode_coding): Pay attention to undo_list. Do eol conversion for
21775 all types of coding-systems (if necessary).
21776 (Vcode_conversion_work_buf_list): Delete it.
21777 (Vcode_conversion_reused_workbuf): Rename from
21778 Vcode_conversion_reused_work_buf.
21779 (Vcode_conversion_workbuf_name): New variable.
21780 (reused_workbuf_in_use): New variable.
21781 (make_conversion_work_buffer): Delete the arg DEPTH.
21782 (code_conversion_restore): Change argument to cons.
21783 (code_conversion_save): Delete the argument BUFFER. Change callers.
21784 (detect_coding_system): New argument src_chars. Change callers.
21785 Fix for utf-16 detection.
21786 (init_coding_once): Don't use ISO_carriage_return.
21787 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
21788 reused_workbuf_in_use.
21789
217902008-02-01 Kenichi Handa <handa@m17n.org>
21791
21792 * keymap.c (store_in_keymap): Pay attention to the case that idx
21793 is a cons specifying a character range.
21794
217952008-02-01 Kenichi Handa <handa@m17n.org>
21796
21797 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
21798 HANDLED_RECOMPUTE_PROPS.
21799
21800 * coding.c (Fdefine_coding_system_internal): Fix checking of
21801 ascii compatibility.
21802
218032008-02-01 Kenichi Handa <handa@m17n.org>
21804
21805 * charset.c (find_charsets_in_text): Delete unused locale variable.
21806 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
21807
21808 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
21809 Resync charset_list to Vemacs_mule_charset_list.
21810
21811 * keymap.c (store_in_keymap): Pay attention to the case that idx
21812 is a cons specifying a character range.
21813
218142008-02-01 Kenichi Handa <handa@m17n.org>
21815
21816 * composite.c (update_compositions): Bind inhibit-read-only, etc
21817 to t before calling remove-list-of-text-properties.
21818
21819 * print.c (print_object): Always print ASCII chars as is.
21820
218212008-02-01 Kenichi Handa <handa@m17n.org>
21822
21823 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
21824
21825 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
21826 is a char table.
21827
218282008-02-01 Kenichi Handa <handa@m17n.org>
21829
21830 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
21831
218322008-02-01 Kenichi Handa <handa@m17n.org>
21833
21834 * xfaces.c (set_lface_from_font_name): Fix for the case that
21835 FONTNAME is not fontset name.
21836
218372008-02-01 Kenichi Handa <handa@m17n.org>
21838
21839 * fns.c (base64_encode_1): Fix previous change.
21840
218412008-02-01 Kenichi Handa <handa@m17n.org>
21842
21843 * fontset.c (set_fontset_font): New function.
21844 (Fset_fontset_font): If a font is specified for a charset, use
21845 map_charset_chars to store the font spec in a fontset.
21846
218472008-02-01 Kenichi Handa <handa@m17n.org>
21848
21849 * fontset.c (fontset_face): Create a fallback fontset on demand.
21850 (make_fontset): Don't create a fallback fontset here.
21851 (free_face_fontset): Free a fallback fontset (if any) too.
21852 (n_auto_fontsets): Delete this variable.
21853 (auto_fontset_alist): New variable.
21854 (new_fontset_from_font_name): Check auto_fontset_alist.
21855 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
21856 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
21857 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
21858 Defsubr Sfontset_list_all.
21859
218602008-02-01 Kenichi Handa <handa@m17n.org>
21861
21862 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
21863
218642008-02-01 Kenichi Handa <handa@m17n.org>
21865
21866 * fontset.c (Fnew_fontset): Check NAME more rigidly.
21867
218682008-02-01 Kenichi Handa <handa@m17n.org>
21869
21870 * editfns.c (Fgoto_char): Fix docstring.
21871
218722008-02-01 Kenichi Handa <handa@m17n.org>
21873
21874 * insdel.c (insert_from_gap): Adjust intervals correctly.
21875
218762008-02-01 Jason Rumney <jasonr@gnu.org>
21877
21878 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
21879 (pfnGetFontUnicodeRanges): New dynamically loaded function.
21880 (w32_initialize): Try to load it.
21881 (x_get_font_repertory): Use it if available.
21882 (w32_encode_char): Add shortcut for unicode output.
21883
21884 * w32fns.c (w32_load_system_font): Default charset to -1.
21885 (x_to_w32_charset): Match all fonts for unicode.
21886 (w32_to_x_charset): New parameter matching. Don't return partial
21887 or wildcard charsets.
21888 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
21889 (w32_codepage_for_font): Return CP_UNICODE for unicode.
21890 (w32_to_x_font): Match charset to real charset.
21891 (enum_font_cb2): Always list unicode versions.
21892
21893 * makefile.w32-in (temacs): Increase EMHEAP.
21894
218952008-02-01 Jason Rumney <jasonr@gnu.org>
21896
21897 * w32term.c (w32_encode_char): New charset parameter.
21898 font_info.encoding becomes encoding_type.
21899 (x_get_font_repertory): New function. Warning: stub only!
21900 (x_new_font): Return quickly if font already set.
21901 (x_new_fontset): fontsetname parameter is Lisp_Object.
21902 Use new fs_query_fontset. Try new_fontset_from_font_name.
21903 Use fontset_name for return value.
21904
21905 * w32term.h: Declare x_get_font_repertory.
21906
21907 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
21908 place of find_charset_in_text. Use encode_coding_object in place
21909 of encode_coding.
21910 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
21911 decode_coding.
21912
21913 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
21914 of x_new_fontset.
21915 (w32_load_system_font): Initialize charset as unicode.
21916 font_info.encoding becomes encoding_type.
21917 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
21918 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
21919 (syms_of_w32fns): Set get_font_repertory_func.
21920
21921 * w32console.c: Include character.h. Use terminal_encode_buffer
21922 from term.c.
21923 (write_glyphs): Use new version of encode_terminal_code. Use
21924 encode_coding_object in place of encode_coding.
21925
21926 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
21927 encoding becomes encoding_type.
21928
21929 * term.c (terminal_encode_buffer): Make externally visible.
21930
21931 * makefile.w32-in: Add character.h dependancies.
21932 (character.o, chartab.o): New targets.
21933
219342008-02-01 Kenichi Handa <handa@m17n.org>
21935
21936 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
21937 CODING_ID_EOL_TYPE.
21938
219392008-02-01 Andreas Schwab <schwab@suse.de>
21940
21941 * coding.c (produce_chars): Revert last change.
21942
219432008-02-01 Kenichi Handa <handa@m17n.org>
21944
21945 * charset.h (charset_unicode): Extern it.
21946
21947 * charset.c (string_xstring_p): Check by (C >= 0x100).
21948 (find_charsets_in_text): Change format of the arc CHARSETS. New
21949 arg MULTIBYTE.
21950 (Ffind_charset_region, Ffind_charset_string): Adjust for the
21951 change of find_charsets_in_text.
21952 (Fsplit_char): Fix doc. Never return unknown.
21953
21954 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
21955
21956 * coding.c (Fdefine_coding_system_alias): Update
21957 Vcoding_system_list.
21958
21959 * fontset.c (load_font_get_repertory): Pay attention to the case
21960 that ENCODING of a font is specified by a char-table.
21961
21962 * xterm.c (x_get_font_repertory): Handle the case that the
21963 encoding of font is other than Unicode.
21964
219652008-02-01 Kenichi Handa <handa@m17n.org>
21966
21967 * term.c (encode_terminal_code): Don't handle glyph-table. Check
21968 if a character is encodable by the terminal coding system. If
21969 not, produces proper number of `?'s. Update
21970 terminal_encode_buffer and terminal_encode_buf_size if necessary.
21971 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
21972
219732008-02-01 Kenichi Handa <handa@m17n.org>
21974
21975 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
21976 variables.
21977 (encode_terminal_code): Change argument. Encode multiple
21978 characters at once. Store the result of encoding in
21979 terminal_encode_buffer.
21980 (write_glyphs, insert_glyphs): Adjust for the change of
21981 encode_terminal_code.
21982 (term_init): Initialize terminal_encode_buffer and
21983 terminal_encode_buf_size.
21984
21985 * coding.c (consume_chars): If coding->src_object is nil, don't
21986 check annotation.
21987
219882008-02-01 Kenichi Handa <handa@m17n.org>
21989
21990 * character.c (char_string): Use ASCII_CHAR_P instead of
21991 SINGLE_BYTE_CHAR_P.
21992
219932008-02-01 Kenichi Handa <handa@m17n.org>
21994
21995 * xdisp.c (handle_auto_composed_prop): Check if the last
21996 characters of auto-composed region is newly composed with the
21997 following characters.
21998 (handle_composition_prop): Fix checking of point being inside
21999 composition.
22000
220012008-02-01 Kenichi Handa <handa@m17n.org>
22002
22003 * fns.c (concat): Don't change multibyteness of the result by
22004 concatenating an 8-bit character.
22005
22006 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
22007 multibyteness of the result when newelt is an 8-bit character.
22008
220092008-02-01 Dave Love <fx@gnu.org>
22010
22011 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
22012 EMACS_INT.
22013
22014 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
22015
22016 * xfaces.c (face_numeric_value): Declare dim size_t.
22017 (Finternal_lisp_face_equal_p): Remove unused f.
22018
22019 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
22020 (MATRIX_ROW): Remove unused vars.
22021 (draw_glyphs, x_insert_glyphs, fast_find_position)
22022 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
22023 byte/char counts.
22024
22025 * regex.c (regex_compile): Remove unused var.
22026
22027 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22028
22029 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
22030 (Faccessible_keymaps, where_is_internal): Remove unused vars.
22031
22032 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
22033
22034 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
22035
22036 * fileio.c (Fwrite_region): Remove unused var.
22037
22038 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
22039 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
22040
22041 * composite.c (Fremove_list_of_text_properties): Declare.
22042
22043 * coding.c (inhibit_pre_post_conversion): Remove (unused).
22044 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
22045 (coding_inherit_eol_type): Remove unused attrs.
22046 (detect_coding): Cast arg of detect_eol.
22047
22048 * charset.c (syms_of_charset): Remove unused var p.
22049 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
22050 byte/char counts.
22051
22052 * casetab.c (set_case_table): Remove unused var.
22053
22054 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
22055 unused vars.
22056
220572008-02-01 Dave Love <fx@gnu.org>
22058
22059 * xterm.c (x_bitmap_mask): Declare.
22060
220612008-02-01 Dave Love <fx@gnu.org>
22062
22063 * xterm.c (x_term_init): Fix type error.
22064
22065 * lisp.h: Add Funibyte_char_to_multibyte.
22066
22067 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
22068 (Fset_coding_system_priority): Doc fix.
22069
22070 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
22071
22072 * indent.c (check_composition): Make start and end EMACS_INT.
22073
22074 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
22075
22076 * xdisp.c (handle_composition_prop, check_point_in_composition):
22077 Make buffer positions EMACS_INT.
22078
22079 * composite.c (find_composition, run_composition_function)
22080 (update_compositions, Ffind_composition_internal): Make buffer
22081 positions EMACS_INT.
22082
22083 * composite.h (find_composition, update_compositions): Make
22084 position args EMACS_INT.
22085
22086 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
22087
22088 * intervals.c (get_property_and_range):
22089 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
22090
22091 * unexalpha.c: Don't include varargs.h.
22092
220932008-02-01 Dave Love <fx@gnu.org>
22094
22095 * coding.h (ENCODE_UTF_8): New.
22096
22097 * Makefile.in (gtkutil.o): Depend on coding.h.
22098
22099 * coding.c (Fset_coding_system_priority): Doc fix.
22100
221012008-02-01 Kenichi Handa <handa@m17n.org>
22102
22103 * fileio.c (Finsert_file_contents): Call setup_coding_system in
22104 the case of auto saving.
22105
221062008-02-01 Andreas Schwab <schwab@suse.de>
22107
22108 * chartab.c (map_char_table, map_char_table_for_charset): Protect
22109 `range' from GC.
22110
221112008-02-01 Kenichi Handa <handa@m17n.org>
22112
22113 * coding.c (decode_coding_sjis): Check bytes more rigidly.
22114
221152008-02-01 Kenichi Handa <handa@m17n.org>
22116
22117 * fileio.c (choose_write_coding_system): Return a decided coding system.
22118 (Fwrite_region): Set Vlast_coding_system_used to the return value
22119 of choose_write_coding_system.
22120
221212008-02-01 Kenichi Handa <handa@m17n.org>
22122
22123 * charset.c (Fset_charset_priority): Pay attention to duplicated
22124 arguments.
22125
22126 * coding.c (QCcategory): New variable.
22127 (syms_of_coding): Defsym it. Set all elements of
22128 Vcoding_category_table and their symbol values.
22129 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
22130 coding-category-XXX, and coding-category-list.
22131 (Fdefine_coding_system_internal): Add category in the plist.
22132
221332008-02-01 Kenichi Handa <handa@m17n.org>
22134
22135 * callproc.c (Fcall_process): Handle carryover correctly.
22136
22137 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
22138 (raw_text_coding_system): Check NILP (coding_system).
22139 (coding_inherit_eol_type): Check NILP (coding_system) and
22140 NILP (parent).
22141 (consume_chars): Fix for the case of raw-text.
22142
22143 * process.c (read_process_output): Handle carryover correctly.
22144
221452008-02-01 Dave Love <fx@gnu.org>
22146
22147 * regex.c (re_search_2): Fix last change.
22148
221492008-02-01 Kenichi Handa <handa@m17n.org>
22150
22151 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
22152 target_multibyte. Even in a unibyte case, return a converted
22153 multibyte char.
22154 (GET_CHAR_AFTER): New macro.
22155 (PATFETCH): Translate via multibyte char.
22156 (HANDLE_UNIBYTE_RANGE): Delete this macro.
22157 (SETUP_MULTIBYTE_RANGE): New macro.
22158 (regex_compile): Setup compiled code so that its multibyteness
22159 matches that of a target. Fix the handling of "[X-YZ]" using
22160 SETUP_MULTIBYTE_RANGE.
22161 (analyse_first) <charset>: For filling fastmap for all multibyte
22162 characters, don't check by BASE_LEADING_CODE_P.
22163 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
22164 the same as RE_MULTIBYTE_P (bufp) now.
22165 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
22166 (TARGET_CHAR_AND_LENGTH): Delete this macro.
22167 (TRANSLATE_VIA_MULTIBYTE): New macro.
22168 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
22169 It is the same as RE_MULTIBYTE_P (bufp) now.
22170 <exactn>: Translate via multibyte.
22171 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
22172 translate it.
22173 <charset, charset_not>: Fetch a character by
22174 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
22175 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
22176 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
22177 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
22178 by GET_CHAR_AFTER.
22179 (bcmp_translate): Likewise.
22180
22181 * search.c (compile_pattern): Check the member target_multibyte,
22182 not the member multibyte of buf.
22183
22184 * lread.c (read1): While reading a string, set force_singlebyte
22185 and force_multibyte correctly.
22186
22187 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
22188 up of unibyte_to_multibyte_table.
22189
221902008-02-01 Kenichi Handa <handa@m17n.org>
22191
22192 * coding.c (setup_coding_system): If coding has
22193 post-read-conversion or pre-write-conversion, set
22194 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
22195 respectively.
22196 (decode_coding_gap): Run post-read-conversion if any.
22197
22198 * fileio.c (Finsert_file_contents): Even if we read into a
22199 unibyte buffer, check if we must decode the result or not.
22200
222012008-02-01 Kenichi Handa <handa@m17n.org>
22202
22203 * coding.c (make_conversion_work_buffer): Change the work buffer
22204 name to the same one as that of Emacs 21.
22205
222062008-02-01 Kenichi Handa <handa@m17n.org>
22207
22208 * coding.h (make_conversion_work_buffer): Adjust prototype.
22209 (code_conversion_restore): Don't extern it.
22210
22211 * coding.c (detected_mask): Delete unused variable.
22212 (decode_coding_iso_2022): Pay attention to the byte sequence of
22213 CTEXT extended segment, and retain those bytes as is.
22214 (decode_coding_ccl): Delete unused variable `valids'.
22215 (setup_coding_system): Delete unused variable `category'.
22216 (consume_chars): Delete unused variable `category'. Make it work
22217 for non-multibyte case.
22218 (make_conversion_work_buffer): Change argument.
22219 (saved_coding): Delete unused variable.
22220 (code_conversion_restore): Don't check saved_coding->destination.
22221 (code_conversion_save): New function.
22222 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
22223 instead of record_unwind_protect.
22224 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
22225 (detect_coding_system): Delete unused variable `mask'.
22226 (Fdefine_coding_system_internal): Delete unused variable id.
22227
22228 * fileio.c (kill_workbuf_unwind): New function.
22229 (Finsert_file_contents): On replacing, call
22230 make_conversion_work_buffer with correct args, and call
22231 record_unwind_protect with the first arg kill_workbuf_unwind.
22232
22233 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
22234
222352008-02-01 Kenichi Handa <handa@m17n.org>
22236
22237 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
22238 (fontset_add): Fix for the case that TO is less than TO1.
22239 (Ffontset_info): Don't use fallback fontset on checking the
22240 default fontset.
22241 (dump_fontset): New function for debugging.
22242
22243 * coding.c (Fdefine_coding_system_internal): Fix for the case that
22244 coding_type is Qcharset.
22245
222462008-02-01 Kenichi Handa <handa@m17n.org>
22247
22248 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
22249 (map_char_table): Don't inherit the value from the parent on
22250 initializing VAL. Adjust for the above change.
22251
222522008-02-01 Kenichi Handa <handa@m17n.org>
22253
22254 * coding.c (Qsignature, Qendian): Delete these variables.
22255 (syms_of_coding): Don't initialize them.
22256 (CATEGORY_MASK_UTF_16_AUTO): New macro.
22257 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
22258 detect_info->found.
22259 (decode_coding_utf_16): Don't detect BOM here.
22260 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
22261 is NOT utf_16_without_bom.
22262 (setup_coding_system): For a coding system of type utf-16, check
22263 if the attribute :endian is Qbig or not (not nil or not), and set
22264 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
22265 (detect_coding): If coding type is utf-16 and BOM detection is
22266 required, detect it.
22267 (Fdefine_coding_system_internal): For a coding system of type
22268 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
22269
222702008-02-01 Kenichi Handa <handa@m17n.org>
22271
22272 * coding.c (coding_set_source): Fix for the case that the current
22273 buffer is different from coding->src_object.
22274 (decode_coding_object): Don't use the conversion work buffer if
22275 DST_OBJECT is a buffer.
22276
222772008-02-01 Dave Love <fx@gnu.org>
22278
22279 * lread.c (read_emacs_mule_char) [len==2]: Index
22280 emacs_mule_charset correctly.
22281
222822008-02-01 Dave Love <fx@gnu.org>
22283
22284 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
22285 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
22286 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
22287 treated specially.)
22288 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
22289 (detected_mask): Remove Big5 bits.
22290
222912008-02-01 Kenichi Handa <handa@m17n.org>
22292
22293 The following changes are to make the font rescaling facility
22294 compatible with Emacs 21.
22295
22296 * xfaces.c (Vface_font_rescale_alist): Rename from
22297 Vface_resizing_fonts.
22298 (struct font_name): Rename member resizing_ratio to rescale_ratio.
22299 (font_rescale_ratio): Rename from font_resizing_ratio.
22300 (split_font_name): Set font->rescale_ratio.
22301 (better_font_p): Pay attention to font->rescale_ratio.
22302 (build_scalable_font_name): Likewise. Change RESX, and RESY
22303 fields.
22304 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
22305
223062008-02-01 Kenichi Handa <handa@m17n.org>
22307
22308 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
22309 (Qutf_16_le): Remove these variables.
22310 (syms_of_coding): Don't DEFSYM them.
22311 (decode_coding_utf_16): Fix handling of BOM.
22312 (encode_coding_utf_16): Fix handling of BOM.
22313
223142008-02-01 Kenichi Handa <handa@m17n.org>
22315
22316 * fileio.c (Finsert_file_contents): On replacing, before decoding
22317 the file into the work buffer, set point of the work buffer to the end.
22318
223192008-02-01 Dave Love <fx@gnu.org>
22320
22321 * coding.c (Fcheck_coding_systems_region): Fix type errors.
22322
223232008-02-01 Dave Love <fx@gnu.org>
22324
22325 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22326 and fix C types.
22327
223282008-02-01 Kenichi Handa <handa@m17n.org>
22329
22330 * xdisp.c (SKIP_GLYPHS): New macro.
22331 (set_cursor_from_row): Pay attention to string display properties.
22332
22333 * category.c (copy_category_entry): Fix for the case that RANGE
22334 is an integer.
22335
22336 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
22337
22338 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
22339
223402008-02-01 Kenichi Handa <handa@m17n.org>
22341
22342 * charset.c (Fcharset_id_internal): New function.
22343 (syms_of_charset): Defsubr it.
22344
22345 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
22346 with the last arg charset_list acquired from coding.
22347 (Fdefine_coding_system_internal): For ccl-based coding system, fix
22348 the attribute coding_attr_ccl_valids.
22349
22350 * coding.h (enum define_coding_ccl_arg_index): Set the first
22351 member coding_arg_ccl_decoder to coding_arg_max.
22352
22353 * ccl.h (ccl_driver): Adjust prototype.
22354
22355 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
22356 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 22357 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
22358 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
22359 last arg Qnil.
22360
223612008-02-01 Kenichi Handa <handa@m17n.org>
22362
22363 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
22364 call encode_char.
22365
22366 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
22367
223682008-02-01 Dave Love <fx@gnu.org>
22369
22370 * composite.c (syms_of_composite): Make composition_hash_table weak.
22371
223722008-02-01 Kenichi Handa <handa@m17n.org>
22373
22374 * dispextern.h (check_face_attributes, generate_ascii_font_name)
22375 (font_name_registry): Don't extern them.
22376 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
22377
22378 * fontset.h (Qfontset): Don't extern it.
22379 (new_fontset_from_font_name): Extern it.
22380
22381 * fontset.c: Give 8 extra slots to fontset objects.
22382 (Qfontset_info): New variable.
22383 (syms_of_fontset): Defsym it.
22384 (FONTSET_FALLBACK): New macro.
22385 (fontset_face): Try also the default fontset.
22386 (make_fontset): Realize a fallback fontset from the default fontset.
22387 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
22388 using split_font_name_into_vector and build_font_name_from_vector.
22389 (Fset_fontset_font): Access the elements of font_spec by enum
22390 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
22391 name by using split_font_name_into_vector.
22392 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
22393 generate a proper font name from the fontset name. Update
22394 Vfontset_alias_alist.
22395 (n_auto_fontsets): New variable.
22396 (new_fontset_from_font_name): New function.
22397 (Ffont_info): Store the information about fonts generated from the
22398 default fontset in the first extra slot of the returned char-table.
22399
22400 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
22401 (font_name_registry): Delete function.
22402 (split_font_name_into_vector): New function.
22403 (build_font_name_from_vector): New function.
22404 (font_list): The argument REGISTRY is now a list of registry names.
22405 (choose_face_font): If we are choosing an ASCII font, and ATTRS
22406 specifies an explicit font name, return the name as is. Make a
22407 list of registy names.
22408
22409 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
22410 of x_new_fontset.
22411 (Fx_create_frame): Don't call x_new_fontset here. Just use
22412 x_list_fonts to check the existence of fonts.
22413
22414 * xterm.h (x_new_fontset): Adjust prototype.
22415
22416 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
22417 string. Use new_fontset_from_font_name to create a fontset from a
22418 font name.
22419
224202008-02-01 Kenichi Handa <handa@m17n.org>
22421
22422 * syntax.c (Vfind_word_boundary_function_table): New name for
22423 Vnext_word_boundary_function_table.
22424 (find-word-boundary-function-table): New name for
22425 next-word-boundary-function-table.
22426
224272008-02-01 Dave Love <fx@gnu.org>
22428
22429 * Makefile.in: Fix some dependencies.
22430
22431 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
22432 set it to nil before returning.
22433
22434 * composite.c (update_compositions): Fix type error.
22435
22436 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
22437
224382008-02-01 Kenichi Handa <handa@m17n.org>
22439
22440 * xterm.c (x_new_font): Optimize for the case that the font is
22441 already set for the frame.
22442
224432008-02-01 Kenichi Handa <handa@m17n.org>
22444
22445 * chartab.c (char_table_ascii): Check if the char table contents
22446 is sub-char-table or not.
22447 (char_table_set, char_table_set_range): Fix argument to
22448 char_table_ascii.
22449
22450 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
22451 (detect_coding_utf_8, detect_coding_utf_16)
22452 (detect_coding_emacs_mule, detect_coding_iso_2022)
22453 (detect_coding_sjis, detect_coding_big5)
22454 (detect_coding_ccl, detect_coding_charset): Change argument MASK
22455 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
22456 sequence is valid in this coding system. Change callers.
22457 (MAX_ANNOTATION_LENGTH): New macro.
22458 (ADD_ANNOTATION_DATA): New macro.
22459 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
22460 ADD_ANNOTATION_DATA. Change the format of annotation data.
22461 (ADD_CHARSET_DATA): New macro.
22462 (emacs_mule_char): New argument ID. Change callers.
22463 (decode_coding_emacs_mule, decode_coding_iso_2022)
22464 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
22465 Produce charset annotation data in coding->charbuf.
22466 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
22467 to charset annotation data in coding->charbuf.
22468 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
22469 coding->common_flags if the coding system is iso-2022 based and
22470 uses designation.
22471 (produce_composition): Adjust for the new annotation data format.
22472 (produce_charset): New function.
22473 (produce_annotation): Handle charset annotation.
22474 (handle_composition_annotation, handle_charset_annotation): New
22475 functions.
22476 (consume_chars): Handle charset annotation. Utilize the above two
22477 functions.
22478 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
22479 buffer, get the deleted text as a string and set
22480 coding->src_object to that string.
22481 (detect_coding, detect_coding_system): Use the new struct
22482 coding_detection_info.
22483
22484 * coding.h (struct coding_detection_info): New structure.
22485 (struct coding_system): Adjust prototype of the member `detector'.
22486 (CODING_ANNOTATE_CHARSET_MASK): New macro.
22487
224882008-02-01 Kenichi Handa <handa@m17n.org>
22489
22490 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
22491
224922008-02-01 Dave Love <fx@gnu.org>
22493
22494 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
22495 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
22496 to new local and nullify apropos_accumulate before returning.
22497 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
22498
224992008-02-01 Kenichi Handa <handa@m17n.org>
22500
22501 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
22502 correctly.
e3eea1fc 22503
aac0c6e3
MR
225042008-02-01 Dave Love <fx@gnu.org>
22505
22506 * fns.c (Flanginfo): Call synchronize_system_time_locale.
22507
225082008-02-01 Kenichi Handa <handa@m17n.org>
22509
22510 The following changes are to make character composition happen
22511 automatically on displaying.
22512
22513 * Makefile.in (lisp, shortlisp): Add composite.elc.
22514
22515 * composite.h (Qauto_composed, Vauto_composition_function)
22516 (Qauto_composition_function): Extern them.
22517
22518 * composite.c (Vcomposition_function_table)
22519 (Qcomposition_function_table): Delete variables.
22520 (Qauto_composed, Vauto_composition_function)
22521 (Qauto_composition_function): New variables.
22522 (run_composition_function): Don't call
22523 compose-chars-after-function.
22524 (update_compositions): Clear `auto-composed' text property.
22525 (compose_chars_in_text): Delete this function.
22526 (syms_of_composite): Staticpro Qauto_composed and
22527 Qauto_composition_function. Declare Vauto_composition_function as
22528 a Lisp variable.
22529
22530 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
22531
22532 * xdisp.c (it_props): Add an entry for Qauto_composed.
22533 (handle_auto_composed_prop): New function.
22534
22535 * xselect.c (selection_data_to_lisp_data): Don't call
22536 compose_chars_in_text.
22537
225382008-02-01 Dave Love <fx@gnu.org>
22539
22540 * keyboard.c (read_char): Modify checking around use of
22541 Vkeyboard_translate_table.
22542
22543 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22544 and fix C types.
22545
225462008-02-01 Kenichi Handa <handa@m17n.org>
22547
22548 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
22549 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22550 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
22551 the case that the last byte is '\r' correctly.
22552 (decode_coding): Flush out the unprocessed data correctly.
22553 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
22554
225552008-02-01 Dave Love <fx@gnu.org>
22556
22557 * xterm.c (XTread_socket): Fix changes for defined keysyms.
22558 Add XK_ISO... case.
22559 (xaw_scroll_callback): Revert last change.
22560
225612008-02-01 Kenichi Handa <handa@m17n.org>
22562
22563 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
22564
225652008-02-01 Kenichi Handa <handa@m17n.org>
22566
22567 * xfaces.c (Vface_resizing_fonts): New variable.
22568 (struct font_name): New member `resizing_ratio'.
22569 (font_resizing_ratio): New function.
22570 (split_font_name): Set font->resizing_ratio.
22571 (better_font_p): Pay attention to font->resizing_ratio.
22572 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
22573 RESX, and RESY fields.
22574 (try_alternative_families): Try scalable fonts if
22575 Vscalable_fonts_allowed is not Qt.
22576 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
22577
225782008-02-01 Dave Love <fx@gnu.org>
22579
22580 * xterm.c (xaw_scroll_callback): Cast correctly.
22581
225822008-02-01 Dave Love <fx@gnu.org>
22583
22584 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
22585 (lispy_kana_keys): Comment out.
22586 (make_lispy_event) [XK_kana_A]: Comment out.
22587
22588 * xterm.c (xaw_scroll_callback): Cast call_data.
22589 (XTread_socket): Deal with ASCII keysyms.
22590 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
22591
225922008-02-01 Dave Love <fx@gnu.org>
22593
22594 * xterm.c (Vx_keysym_table): New.
22595 (syms_of_xterm): Initialize it.
22596 (XTread_socket): Use it.
22597 From head: Eliminate incorrect optimization that tried to avoid
22598 decoding the output of X*LookupString.
22599 (x_get_font_repertory): Delete charset declaration.
22600
226012008-02-01 Kenichi Handa <handa@m17n.org>
22602
22603 * coding.c (detect_coding_charset): If only ASCII bytes are found,
22604 return 0.
22605 (Fdefine_coding_system_internal): Setup
22606 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
22607
226082008-02-01 Dave Love <fx@gnu.org>
22609
22610 * coding.c (Fcheck_coding_system): Doc fix.
22611
22612 * editfns.c (Finsert_byte): Return a proper value.
22613
226142008-02-01 Kenichi Handa <handa@m17n.org>
22615
22616 * coding.c (decode_coding): Fix args to translate_chars. Pay
22617 attention to Vstandard_translation_table_for_decode.
22618 (encode_coding): Fix args to translate_chars. Pay attention to
22619 Vstandard_translation_table_for_encode.
22620
22621 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
22622 SINGLE_BYTE_CHAR_P.
22623
22624 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
22625 not by SINGLE_BYTE_CHAR_P.
22626
22627 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
22628 SINGLE_BYTE_CHAR_P.
22629
22630 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
22631 SINGLE_BYTE_CHAR_P.
22632
22633 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
22634 by SINGLE_BYTE_CHAR_P.
22635
22636 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
22637 SINGLE_BYTE_CHAR_P.
22638
226392008-02-01 Dave Love <fx@gnu.org>
22640
22641 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
22642
226432008-02-01 Dave Love <fx@gnu.org>
22644
22645 * fns.c (Flanginfo): Fix typo.
22646
22647 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
22648
226492008-02-01 Kenichi Handa <handa@m17n.org>
22650
22651 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
22652 (detect_coding_emacs_mule, detect_coding_iso_2022)
22653 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
22654 incomplete byte sequence. Don't update *mask when correctly detected.
22655 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
22656 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
22657 (detect_coding, detect_coding_system): Adjust for the changes above.
22658
226592008-02-01 Kenichi Handa <handa@m17n.org>
22660
22661 * character.c (char_string): Rename from
22662 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
22663 (string_char): Rename from string_char.
22664
22665 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
22666 if C is greater than MAX_3_BYTE_CHAR.
22667 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
22668 string_char instead of string_char_with_unification.
22669
226702008-02-01 Dave Love <fx@gnu.org>
22671
22672 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
22673
226742008-02-01 Kenichi Handa <handa@m17n.org>
22675
22676 * keymap.c (push_key_description): Pay attention to force_multibyte.
22677
22678 * regex.c (re_search_2): Fix for the case of unibyte buffer.
22679
226802008-02-01 Dave Love <fx@gnu.org>
22681
22682 * charset.c (define_charset_internal): Rename `supprementary'.
22683
22684 * Makefile.in (lisp, shortlisp): Remove latin-N.
22685
226862008-02-01 Dave Love <fx@gnu.org>
22687
22688 * xfns.c (x_window, x_window): Use use_xim.
22689
22690 * xterm.c (use_xim): Initialize.
22691 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
22692 (x_term_init): Maybe set use_xim.
22693
22694 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
22695
226962008-02-01 Kenichi Handa <handa@m17n.org>
22697
22698 * search.c (search_buffer): Fix case-fold-search of multibyte
22699 characters.
22700 (boyer_moore): Rename the last argument to char_high_bits.
22701
227022008-02-01 Kenichi Handa <handa@m17n.org>
22703
22704 * xdisp.c (display_string): Fix for the case of zero width glyph.
22705
22706 * xfns.c (x_set_font): Change the error message of the case that
22707 x_new_fontset returns Qt.
22708
22709 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
22710 (Finternal_set_lisp_face_attribute): Use signal_error for the
22711 error of invalid fontset.
22712
22713 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
22714 fontset, return Qt.
22715
227162008-02-01 Dave Love <fx@gnu.org>
22717
22718 * unexelf.c (unexec): Make .got handling not SGI-specific.
22719
22720 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
22721
22722 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
22723
22724 * keyboard.c (read_key_sequence): Fix type error.
22725
22726 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
22727 type error.
22728
22729 * fontset.c (fontset_add): Return Lisp_Object.
22730
227312008-02-01 Dave Love <fx@gnu.org>
22732
22733 * charset.h (charset_ordered_list_tick): Declare extern.
22734
227352008-02-01 Kenichi Handa <handa@m17n.org>
22736
22737 The following changes (and some of 2008-02-01 changes of mine) are
22738 for handling syntax, category, and case conversion for unibyte
22739 characters by converting them to multibyte on the fly. With these
22740 changes, we don't have to setup syntax and case tables for unibyte
22741 characters in each language environment.
22742
22743 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
22744 multibyte if necessary.
22745
22746 * bytecode.c (Fbyte_code): Likewise.
22747
22748 * character.h (LEADING_CODE_LATIN_1_MIN)
22749 (LEADING_CODE_LATIN_1_MAX): New macros.
22750 (unibyte_to_multibyte_table): Extern it.
22751 (unibyte_char_to_multibyte): New macro.
22752 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
22753 (CHAR_LEADING_CODE): New macro.
22754 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
22755
22756 * character.c (unibyte_to_multibyte_table): New variable.
22757 (unibyte_char_to_multibyte): Move to character.h and define as macro.
22758 (multibyte_char_to_unibyte): If C is an eight-bit character,
22759 convert it to the corresponding byte value.
22760
22761 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
22762 not 1, signals an error. Update the elements of
22763 unibyte_to_multibyte_table.
22764 (init_charset_once): Initialize unibyte_to_multibyte_table.
22765 (syms_of_charset): Define the charset `iso-8859-1'.
22766
22767 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
22768 as is without converting it to unibyte. In a unibyte buffer,
22769 convert C to multibyte before checking the syntax.
22770
22771 * lisp.h (unibyte_char_to_multibyte): Delete extern.
22772
22773 * minibuf.c (Fminibuffer_complete_word): Use the macro
22774 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
22775
22776 * regex.h (struct re_pattern_buffer): New member target_multibyte.
22777
22778 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
22779 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
22780 that is zero, convert an eight-bit char to multibyte.
22781 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
22782 non-emacs case.
22783 (PATFETCH): Convert an eight-bit char to multibyte.
22784 (HANDLE_UNIBYTE_RANGE): New macro.
22785 (regex_compile): Setup the compiled pattern for multibyte chars
22786 even if the given regex string is unibyte. Use PATFETCH_RAW
22787 instead of PATFETCH in many places. To handle `charset'
22788 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
22789 only for ASCII chars.
22790 (analyse_first) <exactn>: Simplify because the compiled pattern
22791 is multibyte.
22792 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
22793 <charset>: Use CHAR_LEADING_CODE to get leading codes.
22794 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
22795 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
22796 multibyte always 1.
22797 (re_search_2): In emacs, set the locale variable multibyte to 1,
22798 otherwise to 0. New local variable target_multibyte. Check it
22799 to decide the multibyteness of STR1 and STR2. If
22800 target_multibyte is zero, convert unibyte chars to multibyte
22801 before translating and checking fastmap.
22802 (TARGET_CHAR_AND_LENGTH): New macro.
22803 (re_match_2_internal): In emacs, set the locale variable multibyte
22804 to 1, otherwise to 0. New local variable target_multibyte. Check
22805 it to decide the multibyteness of STR1 and STR2. Use
22806 TARGET_CHAR_AND_LENGTH to fetch a character from D.
22807 <charset, charset_not>: If multibyte is nonzero, check fastmap
22808 only for ASCII chars. Call bcmp_translate with
22809 target_multibyte, not with multibyte.
22810 <begline>: Declare the local variable C as `unsigned'.
22811 (bcmp_translate): Change the last arg name to target_multibyte.
22812
22813 * search.c (compile_pattern_1): Don't adjust the multibyteness of
22814 the regexp pattern and the matching target. Set cp->buf.multibyte
22815 to the multibyteness of the regexp pattern. Set
22816 cp->but.target_multibyte to the multibyteness of the matching target.
22817 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
22818 FETCH_STRING_CHAR_ADVANCE.
22819 (Freplace_match): Convert unibyte chars to multibyte.
22820
22821 * syntax.c (char_quoted, back_comment, scan_words)
22822 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
22823 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
22824 unibyte chars to multibyte.
22825 (skip_chars): Delete the arg syntaxp, and move the code for
22826 handling syntaxes to skip_syntaxes. Change callers.
22827 Fix the case that the multibyteness of STRING and the current
22828 buffer doesn't match.
22829 (skip_syntaxes): New function.
22830 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
22831 SINGLE_BYTE_CHAR_P.
22832
228332008-02-01 Kenichi Handa <handa@m17n.org>
22834
22835 * xfaces.c (QCfontset): New variable.
22836 (LFACE_FONTSET): New macro.
22837 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
22838 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
22839 (Finternal_set_lisp_face_attribute)
22840 (Finternal_get_lisp_face_attribute): Handle QCfontset.
22841 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
22842 check also LFACE_FONTSET_INDEX.
22843 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
22844 attrs[LFACE_FONT_INDEX].
22845 (syms_of_xfaces): Intern and staticpro QCfontset.
22846
22847 * dispextern.h (enum lface_attribute_index): New member
22848 LFACE_FONTSET_INDEX.
22849
22850 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
22851
228522008-02-01 Kenichi Handa <handa@m17n.org>
22853
22854 * coding.c (coding_set_destination): Fix coding->destination for
22855 the case converting a region.
22856 (encode_coding_utf_8): Encode eight-bit chars as single byte.
22857 (encode_coding_object): Fix coding->dst_pos and
22858 coding->dst_pos_byte for the case converting a region.
22859
22860 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
22861
22862 * character.h (BYTE8_STRING): New macro.
22863
22864 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
22865
228662008-02-01 Kenichi Handa <handa@m17n.org>
22867
22868 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
22869 characters by octal form.
22870
22871 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
22872
22873 * buffer.h (_fetch_multibyte_char_len): Delete extern.
22874 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
22875 _fetch_multibyte_char_len.
22876 (FETCH_CHAR_AS_MULTIBYTE): New macro.
22877
22878 * casetab.c (set_canon, set_identity, shuffle): Simplify.
22879
22880 * casefiddle.c (casify_object): Simplify. Handle the case that
22881 the case conversion change the byte length.
22882 (casify_region): Likewise.
22883
22884 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
22885
22886 * character.c (_fetch_multibyte_char_len): Delete this variable.
22887 (syms_of_character): Setup Vprintable_chars.
22888
22889 * editfns.c (Fchar_equal): Fix for the unibyte case.
22890 (Finsert_byte): New function.
22891 (syms_of_editfns): Defsubr it.
22892
22893 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
22894 of direct code 0x3ffff.
22895
22896 * search.c (Freplace_match): Fix for the unibyte case.
22897
228982008-02-01 Kenichi Handa <handa@m17n.org>
22899
22900 * lread.c (safe_to_load_p): Fix the logic.
22901
22902 * syntax.c (scan_words): Don't treat characters belonging to
22903 different scripts as constituting a word.
22904
22905 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22906
22907 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
22908
22909 * emacs.c (main): In the case of --unibyte, instead of aborting on
22910 finding non-empty buffer, make it unibyte.
22911
229122008-02-01 Kenichi Handa <handa@m17n.org>
22913
22914 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
22915 to create a fontset.
22916
229172008-02-01 Dave Love <fx@gnu.org>
22918
22919 * character.c (Funibyte_char_to_multibyte): Doc fix.
22920
22921 * xfns.c [HAVE_STDLIB_H]: Fix last change.
22922
229232008-02-01 Kenichi Handa <handa@m17n.org>
22924
22925 * fontset.c (fontset_add): Make the type `int'.
22926 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
22927
22928 * character.c (unibyte_char_to_multibyte)
22929 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
22930 charset_unibyte, not charset_primary.
22931
22932 * charset.h (charset_unibyte): Extern it instead of charset_primary.
22933
22934 * charset.c (charset_unibyte): Rename from charset_primary.
22935 (Funibyte_charset): Rename from Fprimary_charset.
22936 (Fset_unibyte_charset): Rename from Fset_primary_charset.
22937 (syms_of_charset): Adjust for the above changes.
22938
22939 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22940 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22941 it->multibyte_p is zero.
22942
22943 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
22944 Delete extern.
22945
229462008-02-01 Kenichi Handa <handa@m17n.org>
22947
22948 * coding.c (Fdefine_coding_system_internal): Fix category setting
22949 for a coding system of type iso-2022.
22950
229512008-02-01 Kenichi Handa <handa@m17n.org>
22952
22953 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
22954
229552008-02-01 Kenichi Handa <handa@m17n.org>
22956
22957 * syntax.c (Vnext_word_boundary_function_table): New variable.
22958 (next-word-boundary-function-table): Declare it as a Lisp variable
22959 in syms_of_syntax.
22960 (scan_words): Call functions in Vnext_word_boundary_function_table
22961 if any.
22962
22963 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
22964
22965 * fontset.c (fs_load_font): If fontp->charset is not negative,
22966 return fontp without setting its members.
22967
229682008-02-01 Dave Love <fx@gnu.org>
22969
22970 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
22971
22972 * m/sparc.h (HAVE_ALLOCA): Delete.
22973
22974 * s/irix6-5.h: Don't include strings.h.
22975 (bcopy, bzero, bcmp): Don't undef.
22976
22977 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
22978
22979 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
22980 (TIOCSIGSEND): Don't test IRIX6.
22981 (bcopy, bzero, bcmp): Define conditionally.
22982
229832008-02-01 Kenichi Handa <handa@m17n.org>
22984
22985 * buffer.c (Qas, Qmake, Qto): New variables.
22986 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
22987 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
22988
22989 * callproc.c (Fcall_process): Don't call insert_1_both directly if
22990 we are inserting a process output into a multibyte buffer.
22991
22992 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
22993 multibyte_char_to_unibyte.
22994
22995 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
22996 by the primary charset, make it eight-bit char.
22997 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
22998
22999 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
23000 (charset_8_bit__control, charset_8_bit_graphic)
23001 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
23002 (define_charset_internal): New function.
23003 (syms_of_charset): Call define_charset_internal for pre-defined
23004 charsets.
23005
23006 * charset.h (charset_8_bit): Extern it.
23007
23008 * coding.c (make_conversion_work_buffer): Adjust for the change
23009 of Fset_buffer_multibyte.
23010 (encode_coding_raw_text): Increment p0 in the loop.
23011
23012 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
23013
23014 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
23015 for the change of Fset_buffer_multibyte.
23016
23017 * fns.c (Fstring_to_multibyte): New function.
23018 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
23019
230202008-02-01 Dave Love <fx@gnu.org>
23021
23022 * xfns.c (x_put_x_image): Declare args.
23023
23024 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
23025 (try_font_list): Declare an arg.
23026
23027 * xdisp.c (message2_nolog, set_message): Declare an arg.
23028
23029 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
23030
23031 * syntax.c (scan_sexps_forward): Declare an arg.
23032
23033 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
23034 Declare an arg.
23035
23036 * lisp.h (Fnew_fontset): Declare.
23037
23038 * keymap.c (push_key_description): Call CHARACTERP correctly.
23039
23040 * fontset.c (fontset_add): Declare args. Call make_number correctly.
23041 (face_for_char): Delete unused vars.
23042 (Fset_fontset_font): Doc fix. Delete unused vars.
23043
23044 * doc.c (Fsubstitute_command_keys): Delete unused vars.
23045
23046 * composite.c (update_compositions): Declare arg.
23047
23048 * cm.c (calccost, cmgoto): Declare args.
23049
23050 * charset.c: Remove `emacs' conditional. Doc fixes.
23051 (map_char_table_for_charset): Declare.
23052
23053 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
23054
23055 * ccl.c: Remove `emacs' conditional.
23056
230572008-02-01 Kenichi Handa <handa@m17n.org>
23058
23059 The following changes are to allow specifying multiple font
23060 patterns for a character range (specified by script or charset).
23061
23062 * Makefile.in (abbrev.o): Depend on syntax.h.
23063 (xfaces.o): Depend on charset.h.
23064
23065 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
23066 SINGLE_BYTE_CHAR_P.
23067
23068 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
23069
23070 * character.h (Vchar_script_table): Extern it.
23071
23072 * character.c (Vscript_alist): Delete.
23073 (Vchar_script_table, Qchar_script_table): New variable.
23074 (syms_of_character): Declare Vchar_script_table as a lisp variable
23075 and initialize it.
23076
23077 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
23078 have property char-table-extra-slots, make no extra slot.
23079
23080 * dispextern.h (struct face): Delete member `charset'.
23081 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
23082 SINGLE_BYTE_CHAR_P.
23083 (choose_face_font, lookup_non_ascii_face, font_name_registry):
23084 Add prototypes.
23085 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
23086 (generate_ascii_font_name): Rename from generate_ascii_font.
23087
23088 * fontset.h (get_font_repertory_func): New prototype.
23089 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
23090 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
23091
23092 * fontset.c (Qprepend, Qappend): New variables.
23093 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
23094 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
23095 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
23096 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
23097 (fontset_ref_and_range, fontset_add, reorder_font_vector)
23098 (load_font_get_repertory): New functions.
23099 (fontset_set): Delete.
23100 (fontset_face): New arg FACE. Return face ID, not face.
23101 Complete re-write to handle new fontset structure. Change caller.
23102 (free_face_fontset): Use ASET istead of AREF (X) = Y.
23103 (face_for_char): Don't call lookup_face.
23104 (make_fontset_for_ascii_face): New arg FACE.
23105 (fs_load_font): New arg CHARSET_ID. Don't check
23106 Vfont_encoding_alist here.
23107 (find_font_encoding): New function.
23108 (list_fontsets): Use STRINGP, not ! NILP.
23109 (accumulate_script_ranges): New function.
23110 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
23111 re-written to handle new fontset structure.
23112 (Ffontset_font): Return a copy of element.
23113 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
23114 docstring of font-encoding-alist.
23115
23116 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
23117 (Fset_fotset_font): Fix arguments to 5.
23118
23119 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
23120
23121 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
23122 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23123 (highlight_trailing_whitespace): Adjust for the change of
23124 lookup_named_face.
23125
23126 * xfaces.c: Include charset.h.
23127 (load_face_font): Delete argument C. Change caller.
23128 (generate_ascii_font_name): Rename from generate_ascii_font.
23129 (font_name_registry): New function.
23130 (cache_face): Store ascii faces before non-ascii faces in buckets.
23131 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
23132 Lookup only ascii faces.
23133 (lookup_non_ascii_face): New function.
23134 (lookup_named_face): Delete argument C. Change caller.
23135 (lookup_derived_face): Delete argument C. Change caller.
23136 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
23137 a string, just call font_list with it.
23138 (choose_face_font): Delete arguments FACE and C. New arg
23139 FONT_SPEC. Change caller.
23140 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
23141 Change caller.
23142 (realize_non_ascii_face): New function.
23143 (realize_x_face): Call load_face_font here.
23144 (realize_tty_face): Delete argument C. Change caller.
23145 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
23146 get a face ID.
23147 (dump_realized_face): Don't print charset of FACE.
23148
23149 * xfns.c (x_set_font): Always call x_new_fontset and
23150 store_frame_parameter.
23151 (Fx_create_frame): Call x_new_fontset, not x_new_font.
23152 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
23153
23154 * xterm.h (x_get_font_repertory): Extern it.
23155
23156 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
23157 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
23158 it->multibyte_p is zero.
23159 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23160 (x_new_fontset): If FONTSETNAME doesn't match any existing
23161 fontsets, create a new one.
23162 (x_get_font_repertory): New function.
23163
231642008-02-01 Kenichi Handa <handa@m17n.org>
23165
23166 * coding.c (Ffind_coding_systems_region_internal): Detect an
23167 ASCII only string correctly.
23168
23169 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
23170 version is 0.
23171
231722008-02-01 Kenichi Handa <handa@m17n.org>
23173
23174 * lread.c: Include "coding.h".
23175 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
23176 (load_each_byte, unread_char): New variables.
23177 (readchar_backlog): Delete.
23178 (readchar): Return a character unless load_each_byte is nonzero.
23179 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
23180 cons. If unread_char is not -1, simply return it.
23181 (unreadchar): Handle the case that readcharfun is
23182 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
23183 (read_multibyte): Delete.
23184 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
23185 (read_emacs_mule_char): New functions.
23186 (Fload): Even if the file doesn't have the extension ".elc", if
23187 safe_to_load_p returns a positive version number, assume that the
23188 file contains bytecompiled code. If the version is less than 22,
23189 load the file while decoding multibyte sequences by emacs-mule.
23190 (readevalloop): Don't use readchar_backlog.
23191 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
23192 (Fread_from_string): Pay attention to the case that STREAM is a cons.
23193 (read_escape): Delete the arg BYTEREP.
23194 (read1): Set load_each_byte to 1 temporarily while handling
23195 #@NUMBER. Don't call read_multibyte.
23196 (read_vector): Call Fread with a cons. If readcharfun is
23197 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
23198 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
23199 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
23200 and Qload_force_doc_strings.
23201
232022008-02-01 Kenichi Handa <handa@m17n.org>
23203
23204 * xdisp.c (face_before_or_after_it_pos): Call
23205 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
23206
232072008-02-01 Kenichi Handa <handa@m17n.org>
23208
23209 * character.h (TRAILING_CODE_P): New macro.
23210 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
23211 (string_char_with_unification): Fix prototype.
23212 (Vscript_alist): Extern it.
23213
23214 * character.c (Vscript_alist): New variable.
23215 (string_char_with_unification, str_as_unibyte)
23216 (string_escape_byte8): Add `const' to local variables.
23217 (syms_of_character): Declare script-alist as a Lisp variable.
23218
23219 * charset.h (Vcharset_ordered_list): Extern it.
23220 (charset_ordered_list_tick): Extern it.
23221 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
23222 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
23223 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
23224 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
23225 (Funify_charset): Adjust for the change of Funify_charset.
23226
23227 * charset.c (charset_ordered_list_tick): New variable.
23228 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
23229 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 23230 deunify instead of unify a charset.
aac0c6e3
MR
23231 (string_xstring_p): Add `const' to local variables.
23232 (find_charsets_in_text): Add `const' to arguments and local variables.
23233 (encode_char): Adjust for the change of Funify_charset. Fix
23234 detecting of invalid code.
23235 (Fset_charset_priority): Increment charset_ordered_list_tick.
23236 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
23237 and TO_CODE.
23238
23239 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
23240 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
23241 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
23242 (decode_coding_ccl, consume_chars)
23243 (Ffind_coding_systems_region_internal)
23244 (Fcheck_coding_systems_region): Add `const' to local variables.
23245
23246 * print.c (print_object): Use octal form for printing the
23247 contents of a bool vector.
23248
232492008-02-01 Dave Love <fx@gnu.org>
23250
23251 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
23252 <version == 20>: Refuse to load.
23253
232542008-02-01 Dave Love <fx@gnu.org>
23255
23256 * fns.c: Move coding.h.
23257 (Qcodeset, Qdays, Qmonths): New.
23258 (concat): Use CHARACTERP instead of INTEGERP.
23259 (Flocale_codeset): Delete.
23260 (Flanginfo): New function.
23261 (syms_of_fns): Change accordingly.
23262
23263 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
23264
232652008-02-01 Dave Love <fx@gnu.org>
23266
23267 * casetab.c (init_casetab_once, init_casetab_once): Fix
23268 CHAR_TABLE_SET call.
23269
23270 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
23271
23272 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
23273
23274 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
23275 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
23276 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
23277
23278 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
23279
23280 * coding.c (ENCODE_DESIGNATION, decode_eol)
23281 (make_conversion_work_buffer, code_conversion_restore)
23282 (Fdefine_coding_system_internal): Convert Lisp types.
23283 (code_conversion_restore): Use EQ, not ==.
23284 (Fencode_coding_string): Fix code_convert_string call.
23285
23286 * coding.h (code_convert_region): Fix prototype.
23287
23288 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
23289
23290 * fontset.c (fontset_ref, fontset_set, fs_load_font)
23291 (Ffontset_info): Convert Lisp types.
23292
23293 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
23294
23295 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
23296
23297 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
23298
23299 * chartab.c: Include "...h", not <...h> in some cases.
23300
23301 * callproc.c (Fcall_process): Remove unused variables.
23302
233032008-02-01 Dave Love <fx@gnu.org>
23304
23305 * coding.c (Fset_coding_system_priority): Allow null arg list.
23306
233072008-02-01 Dave Love <fx@gnu.org>
23308
23309 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
23310 (Fself_insert_and_exit): Use CHARACTERP.
23311
23312 * callproc.c (Fcall_process): Remove unused vars.
23313
23314 * xterm.c (XTread_socket): Add extra dead keysyms.
23315
23316 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
23317
23318 * dispextern.h: Remove prototypes for redraw_frame,
23319 redraw_garbaged_frames.
23320
23321 * cmds.c (Fself_insert_command): Use CHARACTERP.
23322
23323 * chartab.c (make_sub_char_table): Remove unused var.
23324 (Fset_char_table_default, Fmap_char_table): Doc fix.
23325
23326 * keymap.c (access_keymap): Remove generic char code.
23327 (push_key_description): Use CHARACTERP.
23328
233292008-02-01 Dave Love <fx@gnu.org>
23330
23331 * charset.c: Doc fixes.
23332 (Funify_charset): Extra checking.
23333
233342008-02-01 Dave Love <fx@gnu.org>
23335
23336 * lread.c: Remove some unused variables.
23337 (safe_to_load_p): If safe, return the magic number version byte.
23338 (Fload): Maybe use load-with-code-conversion.
23339
233402008-02-01 Kenichi Handa <handa@m17n.org>
23341
23342 * category.c (Fmodify_category_entry): Don't modify the contents
23343 of category_set for characters out of the range. Avoid
23344 unnecessary modification.
23345
23346 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
23347 Vchar_unify_table. The default value of the table is now nil.
23348
23349 * character.c (syms_of_character): Setup Vchar_width_table for
23350 eight-bit-control and raw-byte chars.
23351
23352 * charset.h (enum define_charset_arg_index): Delete
23353 charset_arg_parents and add charset_arg_subset and
23354 charset_arg_superset.
23355 (enum charset_attr_index): Delete charset_parents and add
23356 charset_subset and charset_superset.
23357 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
23358 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
23359 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
23360 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
23361 (CHARSET_SUPERSET): New macros.
23362 (charset_work): Extern it.
23363 (ENCODE_CHAR): Use charset_work.
23364 (CHAR_CHARSET_P): Adjust for the change of encoder format.
23365 (map_charset_chars): Extern it.
23366
23367 * charset.c (load_charset_map): Set the default value of encoder
23368 and deunifier char-tables to nil.
23369 (map_charset_chars): Change argument. Change callers. Use
23370 map_char_table_for_charset instead of map_char_table.
23371 (Fmap_charset_chars): New optional args from_code and to_code.
23372 (Fdefine_charset_internal): Adjust for the change of
23373 `define-charset' (:parents -> :subset or :superset).
23374 (charset_work): New variable.
23375 (encode_char, syms_of_charset): Adjust for the change of
23376 Fdefine_charset_internal.
23377 (Ffind_charset_string): Setup the vector `charsets' correctly.
23378
23379 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
23380 the previous change.
23381 (char_table_ref_and_range): Adjust for the above change.
23382 (map_sub_char_table_for_charset): New function.
23383 (map_char_table_for_charset): New function.
23384
23385 * keymap.c (describe_vector): Handle a char-table directly here.
23386 (describe_char_table): Delete.
23387
23388 * lisp.h (map_charset_chars): Delete.
23389
233902008-02-01 Dave Love <fx@gnu.org>
23391
23392 * fns.c (count_combining): Comment out (unused).
23393 (Flocale_codeset): New.
23394 (syms_of_fns): Defsubr it.
23395
23396 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
23397 (size_t): Remove.
23398
233992008-02-01 Dave Love <fx@gnu.org>
23400
23401 * Makefile.in (chartab.o): Depend on charset.h.
23402
234032008-02-01 Kenichi Handa <handa@m17n.org>
23404
23405 * character.c (syms_of_character): Set the default value of
23406 Vprintable_chars to Qnil.
23407
234082008-02-01 Dave Love <fx@gnu.org>
23409
23410 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
23411
234122008-02-01 Kenichi Handa <handa@m17n.org>
23413
23414 * charset.c (load_charset_map): Handle the case that from < to
23415 correctly.
23416
23417 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
23418 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
23419 Pay attention to raw-8-bit chars.
23420
234212008-02-01 Kenichi Handa <handa@m17n.org>
23422
23423 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
23424 It is not bytecompiled now.
23425
23426 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
23427 (charset_jisx0208): New variables.
23428 (Fdefine_charset_internal): Setup them if appropriate.
23429 (init_charset_once): Initialize them to -1.
23430
23431 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
23432 (charset_jisx0208): Extern them.
23433
23434 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
23435 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
23436 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
23437 (setup_iso_safe_charsets): Fix arguments to Fassq.
23438 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
23439 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
23440 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
23441 (encode_coding_iso_2022): Change the 1st arg to
23442 ENCODE_ISO_CHARACTER to a variable.
23443
234442008-02-01 Kenichi Handa <handa@m17n.org>
23445
23446 * charset.h (enum define_charset_arg_index): New enums
23447 charset_arg_min_code and charset_arg_max_code.
23448 (struct charset): New member char_index_offset.
23449
23450 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
23451 Take charset->char_index_offset into account.
23452 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
23453 args[charset_arg_max_code]. Setup charset.char_index_offset.
23454 (syms_of_charset): Fix args to Fdefine_charset_internal.
23455
234562008-02-01 Dave Love <fx@gnu.org>
23457
23458 * coding.c (decode_coding_utf_8): Reject overlong sequences.
23459
234602008-02-01 Dave Love <fx@gnu.org>
23461
23462 * coding.c: Doc fixes.
23463 (Fcoding_system_aliases): Fix return value.
23464 (Qmac): Remove (duplicated) definition.
23465
234662008-02-01 Dave Love <fx@gnu.org>
23467
362654a6
JB
23468 * charset.c (Fcharset_priority_list, Fset_charset_priority):
23469 New functions.
aac0c6e3
MR
23470
23471 * character.c (Fstring): Doc fix.
23472
23473 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
23474
362654a6 23475 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
23476 (font-encoding-alist): Doc fix.
23477
234782008-02-01 Dave Love <fx@gnu.org>
23479
23480 * term.c (costs_set): Declare static, non-initialized for pcc.
23481 (encode_terminal_code): Remove unused var.
23482
23483 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
23484 for K&R.
23485
23486 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
23487
23488 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
23489 (suffixes): Move out of make_subsidiaries for K&R.
23490
23491 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
23492
23493 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
23494
234952008-02-01 Dave Love <fx@gnu.org>
23496
23497 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
23498
23499 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
23500
235012008-02-01 Yong Lu <lyongu@asia-infonet.com>
23502
23503 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
23504
23505 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
23506
235072008-02-01 Kenichi Handa <handa@m17n.org>
23508
23509 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
23510 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
23511
235122008-02-01 Kenichi Handa <handa@m17n.org>
23513
23514 * coding.c (decode_coding_charset): Adjust for the change of
23515 Fdefine_coding_system_internal.
23516 (Fdefine_coding_system_internal): For a coding system of
23517 `charset' type, store a list of charset IDs in
23518 `charset_attr_charset_valids' element of coding attributes.
23519
235202008-02-01 Kenichi Handa <handa@m17n.org>
23521
23522 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
23523 (emacs_mule_char): New arg src. Delete arg `composition'. Change
23524 caller. Handle 2-byte and 3-byte charsets correctly.
23525 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
23526 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
23527 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
23528 (DECODE_EMACS_MULE_21_COMPOSITION): Call
23529 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
23530 sequence.
23531 (decode_coding_emacs_mule): Handle composition correctly. Rewind
23532 `src' and `consumed_chars' correctly before calling emacs_mule_char.
23533 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
23534 and alt&rule composition.
23535 (decode_coding_iso_2022): Handle composition correctly.
23536 (init_coding_once): Setup emacs_mule_bytes for private charsets.
23537
23538 * charset.c (Fdefine_charset_internal): Fix bug for the case of
23539 re-defining a charset. If the charset has :emacs-mule-id, setup
23540 emacs_mule_bytes.
23541 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
23542
235432008-02-01 Kenichi Handa <handa@m17n.org>
23544
23545 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
23546 (encode_coding_big5, encode_coding_charset): If coding requires safe
23547 encoding, produce a character specified by
23548 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
23549
235502008-02-01 Dave Love <fx@gnu.org>
23551
23552 * xterm.c (XSetIMValues): Declare.
23553
23554 * process.c: Conditionally include sys/wait.h, pty.h.
23555
23556 * print.c (print_object): Fix print format for 64-bit systems.
23557
23558 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
23559
23560 * buffer.c (emacs_strerror): Declare.
23561
23562 * fontset.c (Fclear_face_cache): Declare.
23563 (accumulate_font_info): Comment-out (unused).
23564 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
23565 variables.
23566
23567 * character.h (string_escape_byte8): Declare.
23568
23569 * charset.c (load_charset_map, load_charset_map_from_file): Remove
23570 unused vars.
23571 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
23572 (Fmap_charset_chars): Doc fix.
23573
23574 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
23575 (Fset_coding_system_priority, Fset_coding_system_priority)
23576 (Fdefine_coding_system_internal): Doc fix.
23577
235782008-02-01 Dave Love <fx@gnu.org>
23579
23580 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
23581
235822008-02-01 Kenichi Handa <handa@m17n.org>
23583
23584 * character.c (string_escape_byte8): Make multibyte string with
23585 correct size.
23586
23587 * charset.c (Fmake_char): Delete unnecessary code.
23588
235892008-02-01 Kenichi Handa <handa@m17n.org>
23590
23591 * xfns.c (x_encode_text): Allocate coding.destination here, and
23592 call encode_coding_object with dst_object Qnil.
23593
23594 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
23595 multibyte form correctly.
23596
23597 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
23598 against Vfont_encoding_alist.
23599
23600 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
23601 handling of charset list.
23602 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
23603 (decode_coding_object): Move point to coding->dst_pos before
23604 calling post-read-conversion function.
23605 (encode_coding_object): Give correct arguments to
23606 pre-write-conversion. Ignore the return value of
23607 pre-write-conversion function. Pay attention to the case that
23608 pre-write-conversion changes the current buffer. If dst_object is
23609 Qt, even if coding->src_bytes is zero, allocate at least one byte
23610 to coding->destination.
23611
23612 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
23613
23614 * charset.c (Fmake_char): Make it more backward compatible.
23615 (Fmap_charset_chars): Fix docstring.
23616
236172008-02-01 Dave Love <fx@gnu.org>
23618
23619 * coding.c: Doc fixes.
23620 (Fdefine_coding_system_alias): Use names, not symbols, in
23621 coding-system-alist.
23622
236232008-02-01 Kenichi Handa <handa@m17n.org>
23624
23625 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
23626 of calling free_realized_face.
23627
236282008-02-01 Yong Lu <lyongu@asia-infonet.com>
23629
23630 * charset.c (read_hex): Don't treat SPC as a comment starter.
23631 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
23632 (Fdecode_char): Fix typo.
23633
236342008-02-01 Kenichi Handa <handa@m17n.org>
23635
23636 * charset.h (struct charset): New member `code_space_mask'.
23637
23638 * coding.c (coding_set_source): Delete the local variable beg_byte.
23639 (encode_coding_charset, Fdefine_coding_system_internal):
23640 Delete the local variable charset.
23641 (Fdefine_coding_system_internal): Setup
23642 attrs[coding_attr_charset_valids] correctly.
23643
23644 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
23645 member to check if CODE is valid or not.
23646 (Fdefine_charset_internal): Initialize `code_space_mask' member.
23647 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
23648 is within the range of charset->min_code and carset->max_code.
23649
236502008-02-01 Dave Love <fx@gnu.org>
23651
23652 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
23653
23654 * dispextern.h (generate_ascii_font): Fix return type.
23655
23656 * xfaces.c (generate_ascii_font): Fix arg declaration.
23657
23658 * coding.c (coding_inherit_eol_type)
23659 (Fset_terminal_coding_system_internal)
23660 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
23661
236622008-02-01 Kenichi Handa <handa@m17n.org>
23663
23664 * coding.c (decode_coding_charset, encode_coding_charset): Handle
23665 multiple charsets correctly.
23666
236672008-02-01 Kenichi Handa <handa@m17n.org>
23668
23669 * search.c (boyer_moore): Fix handling of multibyte character
23670 translation.
23671
23672 * xdisp.c (display_mode_element): When the variable `elt' is
23673 changed, update `this' and `lisp_string'.
23674
236752008-02-01 Kenichi Handa <handa@m17n.org>
23676
23677 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
23678
23679 * callproc.c (Fcall_process): Be sure to give the current buffer
23680 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
23681
23682 * charset.c (struct charset_map_entries): New struct.
23683 (load_charset_map): Rename from parse_charset_map. New args
23684 entries and n_entries. Change caller.
23685 (load_charset_map_from_file): Rename from load_charset_map.
23686 Change caller. New arg control_flag. Call load_charset_map at
23687 the tail.
23688 (load_charset_map_from_vector): New function.
23689 (Fdefine_charset_internal): Setup charset.compact_codes_p.
23690 (encode_char): If the charset is compact, change a character index
23691 to a code point.
23692
23693 * coding.c (coding_alloc_by_making_gap): Check the case that the
23694 source and destination are the same correctly.
23695 (decode_coding_raw_text): Set coding->consumed_char and
23696 coding->consumed to 0.
23697 (produce_chars): If coding->chars_at_source is nonzero, update
23698 coding->consumed_char and coding->consumed before calling
23699 alloc_destination.
23700 (Fdefine_coding_system_alias): Register ALIAS in
23701 Vcoding_system_alist.
23702 (syms_of_coding): Define `no-conversion' coding system at the tail.
23703
23704 * fileio.c (Finsert_file_contents): Set coding_system instead of
23705 val. If the current buffer is multibyte, always call
23706 decode_coding_gap.
23707
23708 * xfaces.c (try_font_list): Give higher priority to fontset's
23709 family than face's family.
23710
237112008-02-01 Kenichi Handa <handa@m17n.org>
23712
23713 * callproc.c (Fcall_process): Be sure to give the current buffer
23714 to decode_coding_c_string.
23715
23716 * xfaces.c (try_font_list): Give a family specified in a fontset
23717 higher priority than a family specified in a face.
23718
237192008-02-01 Kenichi Handa <handa@m17n.org>
23720
23721 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
23722 Fix arguments to insert_from_buffer.
23723
23724 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
23725
237262008-02-01 Kenichi Handa <handa@m17n.org>
23727
23728 * coding.c (produce_chars): Set the variable `multibytep' correctly.
23729 (decode_coding_gap): Set coding->dst_multibyte correctly.
23730
237312008-02-01 Kenichi Handa <handa@m17n.org>
23732
23733 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
23734 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
23735 (encode_coding_utf_16): Substitute coding->default_char for
23736 non-Unicode characters.
23737 (decode_coding): Don't call record_insert here.
23738 (setup_coding_system): Initialize `surrogate' of
23739 coding->spec.utf_16 to 0.
23740 (EMIT_ONE_BYTE): Fix for multibyte case.
23741
23742 * insdel.c (insert_from_gap): Call record_insert.
23743
237442008-02-01 Kenichi Handa <handa@m17n.org>
23745
23746 * casefiddle.c (casify_region): Fix multibyte case.
23747
23748 * character.c (c_string_width): Add return type `int'.
23749 (char_string_with_unification): Delete arg ADVANCED.
23750
23751 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
23752 (CHAR_STRING): Adjust for the change of char_string_with_unification.
23753 (CHAR_STRING_ADVANCE): Make it do-while statement.
23754
23755 * chartab.c (sub_char_table_set_range): Optimize for the case
23756 DEPTH == 3. Add workaround code for a GCC optimization bug.
23757
23758 * charset.c (parse_charset_map): Remove an unused variable.
23759
23760 * coding.c: Delete unused variables.
23761
23762 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
23763 earlier. If inserted is zero and the coding system doesn't
23764 require flushing, don't call decode_coding_gap.
23765
23766 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
23767
237682008-02-01 Kenichi Handa <handa@m17n.org>
23769
23770 The following changes are for using Unicode as an internal
23771 character model, and use UTF-8 format for buffer/string
23772 representation.
23773
23774 * .gdbinit (xchartable): Adjust for the change of char table structure.
23775 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
23776
23777 * Makefile.in (obj): Add character.o and chartab.o.
23778 (lisp, shortlisp): Remove utf-8.elc.
23779 (*.o): For many files, change dependency on charset.h to
23780 character.h, and add dependency on character.h.
23781 (character.o, chartab.o): New targets.
23782
23783 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
23784 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
23785 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
23786 of "charset.h".
23787
23788 * dired.c, filelock.c: Include "character.h".
23789
23790 * alloc.c: Include "character.h" instead of "charset.h".
23791 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
23792 (syms_of_alloc): Remove defsubr for Smake_char_table.
23793
23794 * buffer.c: Include "character.h" instead of "charset.h", don't
23795 include "coding.h".
23796 (Fset_buffer_multibyte): Adjust for UTF-8.
23797
23798 * buffer.h: EXFUN Fbuffer_live_p.
23799
23800 * callproc.c: Include "character.h" instead of "charset.h".
23801 (Fcall_process): Big change for the new code-conversion APIs.
23802
23803 * casetab.c: Include "character.h" instead of "charset.h".
23804 (set_canon, set_identity, shuffle): Adjust for the new
23805 map_char_table spec.
23806 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
23807 accessing the char table structure.
23808
23809 * chartab.c: New file that implements char table.
23810
23811 * category.c: Include "character.h".
23812 (copy_category_entry): New function.
23813 (copy_category_table): Call map_char_table and copy_category_entry.
23814 (Fmake_category_table): Initialize all top-level slots.
23815 (char_category_set): New function.
23816 (modify_lower_category_set): Delete.
23817 (Fmodify_category_entry): Call char_table_ref_and_range.
23818
23819 * category.h (CATEGORY_SET): Just call char_category_set.
23820
23821 * ccl.c: Include "character.h".
23822 (Qccl, Qcclp): New variables.
23823 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
23824 it's less than 256.
23825 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
23826 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
23827 and DST type.
23828 (ccl_driver): Change types of argument, adjust code accordingly.
23829 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
23830 ccl_driver.
23831 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
23832
23833 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
23834 New members src_multibyte, dst_multibyte, consumed, and produced.
23835 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
23836 (CODING_SPEC_CCL_PROGRAM): New macro.
23837 (ccl_driver): Update prototype.
23838 (Qccl, Qcclp, Fccl_program_p): Extern them.
23839 (CHECK_CCL_PROGRAM): New macro.
23840
23841 * character.c, character.h, chartab.c: New files.
23842
23843 * charset.c: Mostly re-written. Move character and multibyte sequence
23844 handling codes to character.c.
23845
23846 * charset.h: Mostly re-written. Move character and multibyte sequence
23847 handling codes to character.h.
23848
23849 * coding.c, coding.h: Mostly re-written.
23850
23851 * composite.c: Include "character.h" instead of "charset.h".
23852 (CHAR_WIDTH): Move to character.h.
23853 (HASH_KEY, HASH_VALUE): Delete.
23854
23855 * composite.h (enum composition_method): Change order of enumeration
23856 symbols.
23857
23858 * data.c: Include "character.h" instead of "charset.h".
23859 (Faref): Call CHAR_TABLE_REF for a char table.
23860 (Faset): Call CHAR_TABLE_SET for a char table.
23861
23862 * dispextern.h (free_realized_face, check_face_attribytes)
23863 (generate_ascii_font): Extern them.
23864 (free_realized_multibyte_face): Delete extern.
23865
23866 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
23867 table structure.
23868
23869 * editfns.c: Include "character.h" instead of "charset.h".
23870 (Fchar_to_string): Always call CHAR_STRING.
23871
23872 * emacs.c (main): Call init_charset_once, init_charset,
23873 syms_of_chartab, and syms_of_character.
23874
23875 * fileio.c: Include "character.h" instead of "charset.h".
23876 (Finsert_file_contents): Big change for the new code-conversion API.
23877 (choose_write_coding_system, Fwrite_region): Likewise.
23878 (build_annotations_2): Delete.
23879 (e_write): Big change for the new code-conversion API.
23880
23881 * fns.c: Include "character.h" instead of "charset.h".
23882 (copy_sub_char_table): Move to chartab.c.
23883 (Fcopy_sequence): Call copy_char_table for a char table.
23884 (concat): Delete codes calling count_multibyte.
23885 (string_char_to_byte, string_byte_to_char): Adjust for the new
23886 multibyte form.
23887 (internal_equal): Adjust for the change of char table structure.
23888 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
23889 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
23890 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
23891 (char_table_translate, optimize_sub_char_table)
23892 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
23893 chartab.c.
23894 (char_table_ref_and_index): Delete.
23895 (HASH_KEY, HASH_VALUE): Move to lisp.h.
23896 (Fmd5): Call preferred_coding_system instead of accessing
23897 Vcoding_category_list. Adjust for the new code-conversion API.
23898 (syms_of_fns): Move defsubr for char table related functions to
23899 chartab.c.
23900
23901 * fontset.c: Mostly re-written.
23902
23903 * fontset.h (struct font_info): Change type of the member encoding_type.
23904 (enum FONT_SPEC_INDEX): New enum.
23905 (fontset_font_pattern, fs_load_font): Update prototype.
23906 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
23907
23908 * indent.c: Include "character.h" instead of "charset.h".
23909 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
23910
23911 * insdel.c: Include "character.h" instead of "charset.h".
23912 (copy_text): Don't refer to Vnonascii_translation_table.
23913 (insert_from_gap): New function.
23914
23915 * keyboard.c: Include "character.h" instead of "charset.h".
23916 (command_loop_1): Never call direct_output_forward_char before
23917 a non-ASCII character.
23918 (read_char): If Vkeyboard_translate_table is a char table, always
23919 translate a character.
23920
23921 * keymap.c: Include "character.h".
23922 (store_in_keymap): Handle the case that IDX is a cons.
23923 (Fdefine_key): Handle the case that KEY is a cons and the car part
23924 is also a cons (range).
23925 (push_key_description): Adjust for the new character code.
23926 (describe_vector): Call describe_char_table for a char table.
23927 (describe_char_table): New function.
23928
23929 * keymap.h (describe_char_table): Extern it.
23930
23931 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
23932 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
23933 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
23934 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
23935 Delete.
23936 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
23937 structure.
23938 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
23939 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
23940 (CHARTAB_SIZE_BITS_3): New macros.
23941 (chartab_size): Extern it.
23942 (struct Lisp_Char_Table): Re-design.
23943 (struct Lisp_Sub_Char_Table): New structure.
23944 (HASH_KEY, HASH_VALUE): Move from fns.c.
23945 (CHARACTERBITS): Define as 22.
23946 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
23947 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
23948 (GC_SUB_CHAR_TABLE_P): New macro.
23949 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
23950 (code_convert_string_norecord): Deleted extern.
23951 (init_character_once, syms_of_character, init_charset)
23952 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
23953
23954 * lread.c: Include "character.h".
23955 (read_multibyte): New arg NBYTES.
23956 (read_escape): Change the meaning of returned *BYTEREP.
23957 (to_multibyte): Delete.
23958 (read1): Adjust the handling of char table and string.
23959
23960 * print.c: Include "character.h" instead of "charset.h".
23961 (print_string): Convert 8-bit raw bytes to octal form by
23962 string_escape_byte8.
23963 (print_object): Adjust for the new multibyte form. Print 8-bit
23964 raw bytes always in octal form. Handle sub char table correctly.
23965
23966 * process.c: Include "character.h" instead of "charset.h".
23967 (read_process_output, send_process): Adjust for the new
23968 code-conversion API.
23969
23970 * puresize.h (BASE_PURESIZE): Increase.
23971
23972 * regex.c: Include "character.h" instead of "charset.h".
23973 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
23974 (regex_compile): Accept a range whose starting and ending
23975 character have different leading bytes.
23976 (analyse_first): Adjust for the above change.
23977
23978 * search.c: Include "character.h" instead of "charset.h".
23979 (search_buffer, boyer_moore): Adjust for the new multibyte form.
23980 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
23981
23982 * syntax.c: Include "character.h" instead of "charset.h".
23983 (syntax_parent_lookup): Delete.
23984 (Fmodify_syntax_entry): Accept a cons as CHAR.
23985 (skip_chars): Adjust for the new multibyte form.
23986 (init_syntax_once): Call char_table_set_range instead of directly
23987 accessing the structure of a char table.
23988
23989 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
23990 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
23991 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
23992 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
23993
23994 * term.c: Include "buffer.h" and "character.h".
23995 (encode_terminal_code, write_glyphs): Adjust for the new
23996 code-conversion API.
23997 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
23998
23999 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
24000
24001 * xdisp.c: Include "character.h".
24002 (get_next_display_element): Adjust for the new multibyte form.
24003 (disp_char_vector): Adjust for the new char table structure.
24004 (decode_mode_spec_coding): Adjust for the new structure of
24005 coding system.
24006 (decode_mode_spec): Adjust for the new code-conversion API.
24007
24008 * xfaces.c: Include "character.h" instead of "charset.h".
24009 (load_face_font): Adjust for the change of choose_face_font and
24010 FS_LOAD_FONT.
24011 (generate_ascii_font): New function.
24012 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
24013 (set_font_frame_param): Adjust for the change of choose_face_font.
24014 (free_realized_face): Make it public.
24015 (free_realized_faces_for_fontset): Rename from
24016 free_realized_multibyte_face. Free also faces realized for ASCII.
24017 (choose_face_font): Change arguments. Adjust for the change of
24018 fontset_font_pattern and FS_LOAD_FONT.
24019
24020 * xfns.c: Include "character.h".
24021 (x_encode_text): Adjust for the new code-conversion API.
24022
24023 * xselect.c: Don't include "charset.h".
24024 (selection_data_to_lisp_data): Adjust for the new code conversion API.
24025
24026 * xterm.c: Include "character.h".
24027 (x_encode_char): New argument CHARSET. Change caller.
24028 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
24029 Call ENCODE_CHAR instead of SPLIT_CHAR.
24030 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
24031 CHAR_WIDTH instead of CHARSET_WIDTH.
24032 (XTread_socket): Adjust for the new code-conversion API.
24033 (x_new_font): Adjust for the change of FS_LOAD_FONT.
24034 (x_load_font): Adjust for the change of struct font.
24035
240362008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24037
24038 * xfaces.c (face_at_buffer_position): Remove unused vars.
24039
240402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24041
24042 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
24043 Fix overflow checking.
24044
240452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24046
24047 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
24048 Cancel previous change.
24049
240502008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
24051
24052 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
24053 ccl->eight_bit_control. Fix check for buffer overflow.
24054 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
24055 (ccl_driver): Initialize extra_bytes to 0.
24056
240572008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
24058
24059 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
24060 return it ORed with ctrl_modifier.
24061
240622008-01-29 Miles Bader <miles@gnu.org>
24063
24064 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
24065
240662008-01-28 Jason Rumney <jasonr@gnu.org>
24067
24068 * w32.c (stat): Don't double check for networked drive.
24069
240702008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
24071
24072 * window.c (run_window_configuration_change_hook): New function.
24073 Code extracted from set_window_buffer. Set the selected frame.
24074 (set_window_buffer): Use it.
24075 * window.h (run_window_configuration_change_hook): Declare.
24076 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
24077
24078 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
24079
240802008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
24081
24082 * Makefile.in: Remove references to unused macros.
24083
240842008-01-26 Eli Zaretskii <eliz@gnu.org>
24085
24086 * w32.c (g_b_init_get_sid_sub_authority)
24087 (g_b_init_get_sid_sub_authority_count): New static variables.
24088 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
24089 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
24090 (init_user_info): Use them to retrieve uid and gid.
24091 Use 500/513, the Windows defaults, as Administrator's uid/gid.
24092 (fstat): Use pw_uid and pw_gid from the_passwd structure for
24093 st_uid and st_gid of the file.
24094
240952008-01-26 Jason Rumney <jasonr@gnu.org>
24096
24097 * w32.c (logon_network_drive): New function.
24098 (stat): Use it.
24099
241002008-01-26 Chong Yidong <cyd@stupidchicken.com>
24101
24102 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
24103 invisible text covered with an ellipsis.
24104
241052008-01-25 Richard Stallman <rms@gnu.org>
24106
24107 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
24108 jump back to beginning. Move some other initializations after that.
24109 (Qwindow_text_change_functions, Vwindow_text_change_functions):
24110 New variables.
24111 (syms_of_xdisp): Init them.
24112
24113 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
24114
24115 * buffer.c (reset_buffer_local_variables):
24116 Implement `permanent-local-hook'.
24117 (Qpermanent_local_hook): New variable.
24118 (syms_of_buffer): Init and staticpro it.
24119
241202008-01-25 Michael Albinus <michael.albinus@gmx.de>
24121
24122 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
24123
241242008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
24125
24126 * fns.c (Fclrhash): Return TABLE.
24127
241282008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24129
24130 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
24131 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
24132 is set even without positional changes.
24133 (x_scroll_bar_clear): Set bar->redraw_needed_p.
24134
24135 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
24136
241372008-01-23 Jason Rumney <jasonr@gnu.org>
24138
24139 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
24140
24141 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
24142 the unicode range available in MULE by locale-coding-system.
24143 Improve dbcs lead byte detection. Set event timestamp and modifiers
24144 earlier.
24145
241462008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24147
24148 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
24149 [MAC_OSX] (init_mac_osx_environment): Initialize it.
24150 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
24151 when used on child processes.
24152
241532008-01-21 Michael Albinus <michael.albinus@gmx.de>
24154
24155 * dbusbind.c (Fdbus_method_return_internal): Rename from
24156 Fdbus_method_return.
24157 (Fdbus_unregister_object): Move to dbus.el.
24158 (Fdbus_call_method, Fdbus_method_return_internal)
24159 (Fdbus_send_signal): Improve debug messages.
24160
241612008-01-20 Martin Rudalics <rudalics@gmx.at>
24162
24163 * undo.c (undo_inhibit_record_point): New variable.
24164 (syms_of_undo): Initialize it.
24165 (record_point): Don't record point when undo_inhibit_record_point
24166 is set.
24167
241682008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
24169
24170 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
24171
24172 * xdisp.c (Qauto_hscroll_mode): New var.
24173 (syms_of_xdisp): Initialize it.
24174 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
24175 window's buffer.
24176 (hscroll_windows): Don't check automatic_hscrolling_p here.
24177
24178 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
24179 vscroll if we're setting window-buffer to the value it already has.
24180
241812008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
24182
24183 * m/intel386.h: Remove references to XENIX.
24184
241852008-01-17 Andreas Schwab <schwab@suse.de>
24186
24187 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
24188 instead of HAVE_X86_64_LIB64_DIR.
24189 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
24190
241912008-01-17 Glenn Morris <rgm@gnu.org>
24192
24193 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
24194 to HAVE_X86_64_LIB64_DIR.
24195
241962008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
24197
24198 * s/irix3-3.h:
24199 * s/irix4-0.h:
24200 * s/386-ix.h:
24201 * s/domain.h:
24202 * s/hpux9-x11r4.h:
24203 * s/hpux9shxr4.h: Remove files for systems no longer supported.
24204
24205 * sysdep.c: Remove code containing references to symbols defined
24206 by unsupported systems.
24207
242082008-01-16 Glenn Morris <rgm@gnu.org>
24209
24210 * coding.c (select-safe-coding-system-function): Doc fix.
24211
242122008-01-15 Glenn Morris <rgm@gnu.org>
24213
24214 * config.in: Revert 2008-01-13 change: this is a generated file.
24215
242162008-01-13 Tom Tromey <tromey@redhat.com>
24217
24218 * lisp.h: Fix typo.
24219
242202008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
24221
24222 * m/sequent-ptx.h:
24223 * m/sequent.h:
24224 * s/ptx.h:
24225 * s/ptx4-2.h:
24226 * s/ptx4.h: Remove files for systems no longer supported.
24227
24228 * callproc.c (Fcall_process): Fix previous change.
24229
242302008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
24231
24232 * unexsunos4.c: Remove file, system not supported anymore.
24233
24234 * m/mips.h:
24235 * m/intel386.h:
24236 * callproc.c:
24237 * config.in:
24238 * ecrt0.c:
24239 * emacs.c:
24240 * fileio.c:
24241 * frame.c:
24242 * getpagesize.h:
24243 * keyboard.c:
24244 * lread.c:
24245 * process.c:
24246 * puresize.h:
24247 * sysdep.c:
24248 * systty.h:
24249 * syswait.h:
24250 * unexec.c:
24251 * xdisp.c:
24252 * alloc.c: Remove code containing references to symbols defined by
24253 unsupported systems.
24254
242552008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
24256
24257 * coding.c (detect_coding_mask): Fix previous change.
24258
242592008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
24260
24261 * coding.c (detect_coding_iso2022): New arg
24262 latin_extra_code_state. Allow Latin extra codes only
24263 when *latin_extra_code_state is nonzero.
24264 (detect_coding_mask): If there is a NULL byte, detect the encoding
24265 as UTF-16 or binary. If Latin extra codes exist, detect the
24266 encoding as ISO-2022 only when there's no other proper encoding is
24267 found.
24268
242692008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24270
24271 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
24272 #ifdef MAC_OS.
24273
242742008-01-08 Richard Stallman <rms@gnu.org>
24275
24276 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
24277
242782008-01-06 Nick Roberts <nickrob@snap.net.nz>
24279
24280 * keyboard.c (parse_menu_item): Don't enclose key bindings on
24281 menu bar in parentheses.
24282
242832008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
24284
24285 * m/7300.h:
24286 * m/acorn.h:
24287 * m/alliant-2800.h:
24288 * m/alliant.h:
24289 * m/alliant1.h:
24290 * m/alliant4.h:
24291 * m/altos.h:
24292 * m/amdahl.h:
24293 * m/apollo.h:
24294 * m/att3b.h:
24295 * m/aviion-intel.h:
24296 * m/aviion.h:
24297 * m/celerity.h:
24298 * m/clipper.h:
24299 * m/cnvrgnt.h:
24300 * m/convex.h:
24301 * m/cydra5.h:
24302 * m/delta88k.h:
24303 * m/dpx2.h:
24304 * m/dual.h:
24305 * m/elxsi.h:
24306 * m/f301.h:
24307 * m/gould-np1.h:
24308 * m/gould.h:
24309 * m/i860.h:
24310 * m/ibmps2-aix.h:
24311 * m/ibmrt-aix.h:
24312 * m/ibmrt.h:
24313 * m/irist.h:
24314 * m/is386.h:
24315 * m/isi-ov.h:
24316 * m/mega68.h:
24317 * m/mg1.h:
24318 * m/news-r6.h:
24319 * m/news-risc.h:
24320 * m/news.h:
24321 * m/nh3000.h:
24322 * m/nh4000.h:
24323 * m/ns16000.h:
24324 * m/ns32000.h:
24325 * m/nu.h:
24326 * m/orion.h:
24327 * m/orion105.h:
24328 * m/paragon.h:
24329 * m/pfa50.h:
24330 * m/plexus.h:
24331 * m/pyramid.h:
24332 * m/pyrmips.h:
24333 * m/sh3el.h:
24334 * m/sps7.h:
24335 * m/sr2k.h:
24336 * m/stride.h:
24337 * m/sun1.h:
24338 * m/sun2.h:
24339 * m/sun3-68881.h:
24340 * m/sun3-fpa.h:
24341 * m/sun3-soft.h:
24342 * m/sun3.h:
24343 * m/sun386.h:
24344 * m/symmetry.h:
24345 * m/tad68k.h:
24346 * m/tahoe.h:
24347 * m/targon31.h:
24348 * m/tek4300.h:
24349 * m/tekxd88.h:
24350 * m/tower32.h:
24351 * m/tower32v3.h:
24352 * m/ustation.h:
24353 * m/wicat.h:
24354 * m/xps100.h:
24355 * s/cxux.h:
24356 * s/cxux7.h:
24357 * s/dgux.h:
24358 * s/dgux4.h:
24359 * s/dgux5-4-3.h:
24360 * s/dgux5-4r2.h:
24361 * s/esix.h:
24362 * s/esix5r4.h:
24363 * s/hiuxmpp.h:
24364 * s/hiuxwe2.h:
24365 * s/iris3-5.h:
24366 * s/iris3-6.h:
24367 * s/isc2-2.h:
24368 * s/isc3-0.h:
24369 * s/isc4-0.h:
24370 * s/isc4-1.h:
24371 * s/newsos5.h:
24372 * s/newsos6.h:
24373 * s/osf1.h:
24374 * s/osf5-0.h:
24375 * s/riscix1-1.h:
24376 * s/riscix12.h:
24377 * s/sco4.h:
24378 * s/sco5.h:
24379 * s/sunos4-0.h:
24380 * s/sunos4-1.h:
24381 * s/sunos413.h:
24382 * s/sunos4shr.h:
24383 * s/umax.h:
24384 * s/unipl5-2.h:
24385 * s/xenix.h:
24386 * cxux-crt0.s:
24387 * unexapollo.c:
24388 * unexconvex.c:
24389 * unexenix.c:
24390 * unexsni.c: Remove files for systems no longer supported.
24391
24392 * m/intel386.h: Remove references to unsupported systems.
24393
24394 * w32.c (get_emacs_configuration): Remove reference to i860.
24395
24396 * sysdep.c: Remove dead code.
24397
243982008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
24399
24400 * s/rtu.h:
24401 * m/masscomp.h: Remove files. Platform is obsolete.
24402
244032008-01-04 Michael Albinus <michael.albinus@gmx.de>
24404
24405 * dbusbind.c (Fdbus_method_return): New function.
24406 (xd_read_message): Add the serial number to the event.
24407 (Fdbus_register_method): Activate the function.
24408
244092008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
24410
24411 * keyboard.c (read_key_sequence): Fix typo.
24412
244132008-01-03 Michael Albinus <michael.albinus@gmx.de>
24414
24415 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
24416 (xd_signature, xd_append_arg): Handle element type detection for
24417 empty arrays.
24418 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
24419 SDATA () calls; this must be solved more general.
24420 (Fdbus_register_signal): Use SBYTES instead of strlen.
24421
244222008-01-03 Magnus Henoch <magnus@zemdatav>
24423
24424 * dbusbind.c (xd_append_arg): Use unsigned char instead of
24425 unsigned int for byte values (necessary for big-endian platform).
24426 (Fdbus_call_method): Handle the case of no returned arguments.
24427
244282007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
24429
24430 * dbusbind.c (xd_read_message): Use non-static input_event struct.
24431
244322007-12-31 Magnus Henoch <mange@freemail.hu>
24433
24434 * dbusbind.c (xd_signature): Signature of variant is just "v".
24435
244362007-12-30 Michael Albinus <michael.albinus@gmx.de>
24437
24438 * dbusbind.c: Fix several errors and compiler warnings.
24439 Reported by Tom Tromey <tromey@redhat.com>.
24440 (XD_ERROR, XD_DEBUG_MESSAGE)
24441 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
24442 (xd_append_arg): Part for basic D-Bus types rewritten.
24443 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
24444 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
24445 appropriate.
24446 (xd_read_message): Return Qnil. Don't signal an error; it is not
24447 useful during event reading.
24448 (Fdbus_register_signal): Signal an error if the check for
24449 FUNCTIONP fails.
24450 (Fdbus_register_method): New function. The implementation is not
24451 complete, the call of the function signals an error therefore.
24452 (Fdbus_unregister_object): New function, renamed from
24453 Fdbus_unregister_signal. The initial check signals an error, if
24454 the object is not well formed.
24455
244562007-12-30 Richard Stallman <rms@gnu.org>
24457
24458 * textprop.c (get_char_property_and_overlay):
24459 Signal error if POSITION is out of range in a buffer.
24460
244612007-12-29 Martin Rudalics <rudalics@gmx.at>
24462
24463 * w32fns.c (Fx_create_frame): Make copy of frame parameters
24464 because the original parameters are in pure storage now.
24465
244662007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24467
24468 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
24469
244702007-12-22 Eli Zaretskii <eliz@gnu.org>
24471
24472 * callint.c (syms_of_callint) <command-history>: Add reference to
24473 history-length in the doc string.
24474
244752007-12-17 Jason Rumney <jasonr@gnu.org>
24476
24477 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
24478 before passing as wParam.
24479
244802007-12-22 Michael Albinus <michael.albinus@gmx.de>
24481
24482 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
24483 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
24484 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
24485 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
24486 as number.
24487 (Fdbus_call_method): Fix docstring.
24488
244892007-12-21 Michael Albinus <michael.albinus@gmx.de>
24490
24491 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
24492 New macros.
24493 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
24494 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
24495 Simplify.
24496 (xd_signature): New function.
24497 (xd_append_arg): Compute also signatures. Major rewrite.
24498 (xd_retrieve_arg): Make debug messages friendly.
24499 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
24500 Check for signatures of arguments.
24501
245022007-12-19 Michael Albinus <michael.albinus@gmx.de>
24503
24504 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
24505 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
24506 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
24507 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
24508 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
24509 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
24510 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
24511 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
24512 (xd_retrieve_value): Remove. Functionality included in ...
24513 (xd_append_arg): New function.
24514 (Fdbus_call_method, Fdbus_send_signal): Apply it.
24515
245162007-12-16 Michael Albinus <michael.albinus@gmx.de>
24517
24518 * dbusbind.c (top): Include <stdio.h>.
24519 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
24520 dbus_message_new_method_call and dbus_message_new_signal.
24521 (Fdbus_register_signal): Rename unique_name to uname.
24522 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
24523 non-existing unique name. Fix typos in matching rule. Return an
24524 object which is useful in Fdbus_unregister_signal.
24525 (Fdbus_unregister_signal): Reimplementation, in order to remove
24526 only the corresponding entry.
24527 (Vdbus_registered_functions_table): Change the order of entries.
24528 Apply these changes in xd_read_message and Fdbus_register_signal.
24529
245302007-12-16 Andreas Schwab <schwab@suse.de>
24531
24532 * fileio.c (Finsert_file_contents): Fix overflow check to not
24533 depend on undefined integer overflow.
24534
245352007-12-14 Jason Rumney <jasonr@gnu.org>
24536
24537 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
24538 for characters above 127.
24539
245402007-12-13 Jason Rumney <jasonr@gnu.org>
24541
24542 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
24543 before dereferencing array.
24544 (lookup_vk_code): Remove zero comparison.
24545
245462007-12-14 Michael Albinus <michael.albinus@gmx.de>
24547
24548 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
24549 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
24550 Use `unsigned int' instead of `uint'.
24551 (xd_read_message, Fdbus_register_signal): Split expressions into
24552 multiple lines before operators "&&" and "||", according to the
24553 GNU Coding Standards.
24554
245552007-12-14 Eli Zaretskii <eliz@gnu.org>
24556
24557 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
24558
245592007-12-12 Juri Linkov <juri@jurta.org>
24560
24561 * buffer.c (Frename_buffer): In interactive spec replace
24562 `read-buffer' with `read-string' that uses `buffer-name-history'
24563 as history, and the current buffer's name as default.
24564
245652007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
24566
24567 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
24568 manipulating the backtrace manually.
24569 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
24570 (struct backtrace, backtrace_list): Remove.
24571 (command_loop_1): Remove dead var `no_direct'.
24572
24573 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
24574 preserve non-built-in buffer-local variables.
24575 (Fkill_all_local_variables): Don't re-create&re-set permanent
24576 buffer-local variables.
24577
245782007-12-09 Juri Linkov <juri@jurta.org>
24579
24580 * buffer.c (Frename_buffer): Change interactive spec from "s" to
24581 Lisp code that uses `read-buffer' with current buffer as default.
24582
245832007-12-08 Michael Albinus <michael.albinus@gmx.de>
24584
24585 * dbusbind.c (xd_read_message): Generate an event for every
24586 registered handler. There might be several handlers registered
24587 for the same signal.
24588 (Fdbus_register_signal): Don't overwrite a registration for the
24589 same signal. Add a new registration if handlers are different.
24590 (Vdbus_registered_functions_table): Rework doc string.
24591
245922007-12-07 Michael Albinus <michael.albinus@gmx.de>
24593
24594 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
24595 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
24596 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
24597 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
24598 Unify argument lists.
24599 (xd_read_message, Fdbus_register_signal): Reorder and extend event
24600 arguments and hash table keys. Use unique name for service.
24601 (Fdbus_unregister_signal): Remove checks.
24602 (Vdbus_registered_functions_table): Fix doc string.
24603
246042007-12-05 Magnus Henoch <mange@freemail.hu>
24605
24606 * process.c (make_process): Initialize pty_flag to 0.
24607
246082007-12-05 Jason Rumney <jasonr@gnu.org>
24609
24610 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
24611 specified XBMs.
24612
246132007-12-05 Richard Stallman <rms@gnu.org>
24614
24615 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
24616
246172007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24618
24619 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
24620 New variable.
24621 (mac_try_close_socket) [MAC_OSX]: New function.
24622 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
24623 Update cfsockets_for_select. Replace invalid CFRunLoop source.
24624
24625 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
24626 Use mac_try_close_socket.
24627
246282007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24629
24630 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
24631 reloc_base.
24632 (copy_dysymtab): Compute relocation base here.
24633 (rebase_reloc_address) [__ppc64__]: New function.
24634 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
24635 changed.
24636
246372007-12-05 Jason Rumney <jasonr@gnu.org>
24638
24639 * w32proc.c (sys_spawnve): Quote args with wildcards.
24640
246412007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24642
24643 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
24644 __objc_* sections.
24645 (unrelocate) [_LP64]: Set relocation base to address of data segment.
24646
246472007-12-05 Michael Albinus <michael.albinus@gmx.de>
24648
24649 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
24650 Move check for Vdbus_registered_functions_table to
24651 xd_read_queued_messages.
24652 (xd_read_queued_messages): Protect xd_read_message calls by
24653 internal_condition_case_1.
24654
246552007-12-04 Michael Albinus <michael.albinus@gmx.de>
24656
24657 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
24658 Qdbus_system_bus and Qdbus_session_bus, respectively.
24659 (Vdbus_intern_symbols): Remove.
24660 (Vdbus_registered_functions_table): New hash table.
24661 (XD_SYMBOL_INTERN_SYMBOL): Remove.
24662 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
24663 Rewrite in order to manage registered functions by hash table
24664 Vdbus_registered_functions_table.
24665
246662007-12-03 Jan Djärv <jan.h.d@swipnet.se>
24667
24668 * xterm.c: Update URL to Window Manager Specification in comment.
24669
246702007-12-02 Michael Albinus <michael.albinus@gmx.de>
24671
24672 * config.in (HAVE_DBUS): Add.
24673
24674 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
24675 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
24676 (obj): Add $(DBUS_OBJ).
24677 (LIBES): Add $(DBUS_LIBS).
24678 (dbusbind.o): New target.
24679
24680 * dbusbind.c: New file.
24681
24682 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
24683
24684 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
24685 (Qdbus_event): New Lisp symbol.
24686 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
24687 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 24688 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
24689
24690 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
24691
246922007-12-01 Richard Stallman <rms@gnu.org>
24693
24694 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
24695
246962007-11-30 Jason Rumney <jasonr@gnu.org>
24697
24698 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
24699 (w32con_reset_terminal_modes): Clear screen buffer.
24700 (w32_face_attributes): Don't use color indexes that are out of range.
24701 Only reverse the default colors.
24702
24703 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
24704 WINDOWSNT.
24705
24706 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
24707
247082007-11-29 Jason Rumney <jasonr@gnu.org>
24709
24710 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
24711 (w32_face_attributes): Use Vtty_defined_color_alist to determine
24712 if the terminal colors are initialized.
24713 (unspecified_fg, unspecified_bg): Remove unused declarations.
24714
247152007-11-29 Andreas Schwab <schwab@suse.de>
24716
24717 * keyboard.c (apply_modifiers): Fix typo.
24718
247192007-11-29 Richard Stallman <rms@gnu.org>
24720
24721 * keymap.c (Fcurrent_local_map): Doc fix.
24722
247232007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
24724
24725 * s/gnu-kfreebsd.h: New file.
24726
247272007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
24728
24729 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
24730 Don't cast redundantly.
24731
24732 * keyboard.c (KEY_TO_CHAR): New macro.
24733 (parse_modifiers, apply_modifiers): Accept integer arguments.
24734 (read_key_sequence): Use them to unify the "shift->unshift" mapping
24735 for chars and symbol keys.
24736 After doing such remapping, apply function-key-map again.
24737
247382007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
24739
24740 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
24741 compiled anymore.
24742
247432007-11-26 Andreas Schwab <schwab@suse.de>
24744
24745 * process.c (list_processes_1): Fix indentation level of the
24746 command column.
24747
247482007-11-23 Andreas Schwab <schwab@suse.de>
24749
24750 * editfns.c (Fformat): Handle %c specially since it requires the
24751 argument to be of type int.
24752
247532007-11-23 Markus Triska <markus.triska@gmx.at>
24754
24755 * emacs.c (main): Call init_editfns before init_process, since
24756 init_process sets Vprocess_connection_type depending on OS release.
24757
247582007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
24759
24760 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
24761 (find_symbol_value): Use do_symval_forwarding.
24762
24763 * data.c (set_internal): Set the value in the `cons-cell' (for
24764 Buffer_Local_values) not only for frame-local variables.
24765
247662007-11-22 Andreas Schwab <schwab@suse.de>
24767
24768 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
24769 values to sprintf.
24770 * keymap.c (Fsingle_key_description): Likewise.
24771 * print.c (print_object): Likewise.
24772
247732007-11-22 Jan Djärv <jan.h.d@swipnet.se>
24774
24775 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
24776 file for image is nil.
24777
247782007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
24779
24780 * term.c: Include stdarg.h.
24781 (fatal): Implement using varargs.
24782 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
24783
247842007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24785
24786 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
24787 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
24788 Update call to buffer_slot_type_mismatch.
24789 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
24790 (buffer_slot_type_mismatch): Update.
24791 * buffer.c (buffer_local_types): Remove.
24792 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
24793 (defvar_per_buffer): Set the type in the buffer_objfwd.
24794
247952007-11-21 Jason Rumney <jasonr@gnu.org>
24796
24797 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
24798 CreateFileMapping returns NULL on failure.
24799
248002007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24801
24802 * search.c (Fset_match_data): Remove the `evaporate' feature.
24803 (unwind_set_match_data): Don't use the `evaporate' feature.
24804
248052007-11-21 Jason Rumney <jasonr@gnu.org>
24806
24807 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
24808
24809 * w32console.c (w32con_write_glyphs): Remove unused variables.
24810
248112007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
24812
24813 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
24814
24815 * s/darwin.h (MULTI_KBOARD): Remove.
24816
24817 * macfns.c (x_create_tip_frame, Fx_create_frame)
24818 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
24819
248202007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
24821
24822 * buffer.c (Fbuffer_local_value): Remove redundant test.
24823 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
24824 than in `current-buffer' to match the comment.
24825 Do the swap using swap_in_global_binding.
24826
24827 * data.c (store_symval_forwarding, set_internal):
24828 * eval.c (specbind): Remove dead code.
24829
24830 * coding.c (detect_coding, Fupdate_coding_systems_internal):
24831 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
24832 Since we do not want to see internal Lisp_*fwd objects here.
24833
248342007-11-18 Jan Djärv <jan.h.d@swipnet.se>
24835
24836 * sysdep.c (init_system_name): Use getaddrinfo if available.
24837
24838 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
24839 (x_scroll_bar_note_movement): start, end, with, height in struct
24840 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
24841
248422007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
24843
24844 * puresize.h (BASE_PURESIZE): Increase to 1190000.
24845
248462007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
24847
24848 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
24849 This undoes Richard's change of 14-Oct-2002.
24850
24851 * alloc.c (allocate_other_vector):
24852 * lisp.h (allocate_other_vector): Remove.
24853
24854 * window.c (struct save_window_data): Move non-lisp data to the end
24855 and make it `int' rather than Lisp_Object.
24856 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
24857 Done wrap/unwrap integer values.
24858 (Fset_window_configuration, compare_window_configurations):
24859 Update use of fields to their new types.
24860
24861 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
24862 Turn integer fields into `int'. Merge x_window_low and x_window_high.
24863 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
24864 (SET_SCROLL_BAR_X_WINDOW): Remove.
24865 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
24866 Access the new x_window field directly.
24867 * xterm.c (x_scroll_bar_create): Use a pseudovector.
24868 Don't wrap/unwrap integers into Lisp_Objects.
24869 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
24870 (x_scroll_bar_report_motion):
24871 Don't wrap/unwrap integers into Lisp_Objects.
24872 (x_term_init): Use SDATA.
24873 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
24874 (x_scroll_bar_set_handle, x_scroll_bar_remove)
24875 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
24876 (x_scroll_bar_report_motion, x_scroll_bar_clear):
24877 * xfns.c (x_set_background_color):
24878 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
24879 Access the new x_window field directly.
24880
24881 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
24882 (allocate_pseudovector): Make non-static.
24883
24884 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
24885 (allocate_pseudovector): Declare.
24886 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
24887
248882007-11-15 Andreas Schwab <schwab@suse.de>
24889
24890 * editfns.c (Fformat): Correctly format EMACS_INT values.
24891 Also take precision into account when formatting an integer.
24892
24893 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
24894
248952007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
24896
24897 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
24898 (syms_of_keyboard): Defsubr it.
24899
24900 * data.c (swap_in_global_binding): Fix longstanding bug where
24901 store_symval_forwarding was not called with the right second argument,
24902 thus causing objfwd-ing from being dropped.
24903
249042007-11-14 Juanma Barranquero <lekktu@gmail.com>
24905
24906 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
24907 (Fx_display_pixel_height, Fx_display_planes)
24908 (Fx_display_color_cells, Fx_server_max_request_size)
24909 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24910 (Fx_display_visual_class, Fx_display_save_under):
24911 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
24912 (Fx_display_pixel_height, Fx_display_planes)
24913 (Fx_display_color_cells, Fx_server_max_request_size)
24914 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
24915 (Fx_display_mm_height, Fx_display_mm_width)
24916 (Fx_display_backing_store, Fx_display_visual_class)
24917 (Fw32_select_font, Fx_display_save_under):
24918 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
24919 (Fx_display_pixel_height, Fx_display_planes)
24920 (Fx_display_color_cells, Fx_server_max_request_size)
24921 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24922 (Fx_display_save_under): Fix typos in docstrings.
24923
249242007-11-14 Juanma Barranquero <lekktu@gmail.com>
24925
24926 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
24927 corresponding to deleted entries; they are an implementation detail.
24928 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
24929 Remove variables.
24930 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
24931 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
24932 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
24933 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
24934 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
24935 (Fw32_define_rgb_color, Fw32_load_color_file)
24936 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
24937 Fix typos in docstrings.
24938 (Fx_server_version): Reflow docstring.
24939 (Fw32_shell_execute): Doc fixes.
24940
249412007-11-13 Juanma Barranquero <lekktu@gmail.com>
24942
24943 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
24944 if w32_parse_hot_key returned nil.
24945
249462007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
24947
24948 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
24949
249502007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 24951
aac0c6e3
MR
24952 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
24953
24954 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
24955
24956 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
24957 Remove W32_SCROLL_BAR_CLICK_EVENT.
24958
24959 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
24960 Add MULTIMEDIA_KEY_EVENT.
24961
24962 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
24963 (lispy_multimedia_keys) [WINDOWSNT]: New array.
24964 (make_lispy_event) [WINDOWSNT]: Use it to translate
24965 MULTIMEDIA_KEY_EVENT.
24966
24967 * w32term.h (WM_APPCOMMAND): Define if not already.
24968 (GET_APPCOMMAND_LPARAM): Likewise.
24969
24970 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
24971 WM_APPCOMMAND.
24972
24973 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
24974 (syms_of_w32fns): Export and initialize it.
24975 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
24976
249772007-11-09 Chong Yidong <cyd@stupidchicken.com>
24978
24979 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
24980 twice.
24981
24982 * xdisp.c (handle_face_prop): Fix last change.
24983
249842007-11-09 Richard Stallman <rms@gnu.org>
24985
24986 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
24987 not just for after-strings and before-strings.
24988 Call face_for_overlay_string and pass the overlay to it.
24989 (handle_display_prop): Determine whether property came from an overlay.
24990 Pass OVERLAY arg to handle_single_display_spec.
24991 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
24992 (load_overlay_strings): Fill in it->string_overlays.
24993 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
24994
24995 * xfaces.c (face_for_overlay_string): Function renamed from
24996 face_at_buffer_position_no_overlays, and add arg OVERLAY.
24997
24998 * dispextern.h (struct it): New elt string_overlays.
24999 New elt from_overlay, also in stack.
25000 Rearrange a few elements.
25001 (face_for_overlay_string): Decl renamed from
25002 face_at_buffer_position_no_overlays, and add argument.
25003
250042007-11-09 Richard Stallman <rms@gnu.org>
25005
25006 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
25007 to get the base face for an overlay string.
25008
25009 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
25010
25011 * xfaces.c (face_at_buffer_position_no_overlays): New function.
25012
25013 * xdisp.c (handle_stop): Move some code out of loop.
25014
250152007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25016
25017 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
25018 Fix conversion from Lisp object to ATSUFontID.
25019
250202007-11-09 Jason Rumney <jasonr@gnu.org>
25021
25022 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
25023
250242007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25025
25026 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
25027 Don't assume regions are aligned to page boundary.
25028 (print_load_command_name): Add LC_UUID if defined.
25029
250302007-11-09 Richard Stallman <rms@gnu.org>
25031
25032 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
25033
250342007-11-07 Jason Rumney <jasonr@gnu.org>
25035
25036 * s/windows95.h: Remove.
25037
250382007-11-06 Jan Djärv <jan.h.d@swipnet.se>
25039
25040 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
25041 abort with a message on unhandled store_type values.
25042
250432007-11-01 Jan Djärv <jan.h.d@swipnet.se>
25044
25045 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
25046 Remove HAVE_X11R5 and HAVE_X11R4.
25047
250482007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
25049
25050 * Makefile.in: Remove references to sunfns.c and sunfns.o.
25051
250522007-11-01 Johan Bockgård <bojohan@gnu.org>
25053
25054 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
25055 Don't set s->stippled_p here, since it has already been set by
25056 x_set_glyph_string_gc from x_draw_glyph_string.
25057
250582007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
25059
25060 * sunfns.c: Remove file.
25061
25062 * m/sun386.h:
25063 * m/sun2.h:
25064 * m/sparc.h: Remove Sun windows code.
25065
250662007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
25067
25068 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
25069 (init_keyboard): Set current_kboard's window-system to nil.
25070 (tty_read_avail_input): Typo.
25071 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
25072
250732007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
25074
25075 * s/usg5-4.h:
25076 * s/usg5-3.h:
25077 * s/ptx.h:
25078 * m/is386.h:
25079 * m/ibmps2-aix.h:
25080 * Makefile.in: Remove all mentions of X10.
25081
25082 * dispnew.c (syms_of_display): Don't mention version 10.
25083
250842007-10-28 Juanma Barranquero <lekktu@gmail.com>
25085
25086 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
25087 ($(BLD)/abbrev.$(O)): Remove.
25088
250892007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
25090
25091 Rewrite abbrev.c in Elisp.
25092 * image.c (Qcount): Don't declare as extern.
25093 (syms_of_image): Initialize and staticpro `Qcount'.
25094 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
25095 * emacs.c (main): Don't call syms_of_abbrev.
25096 * Makefile.in (obj): Remove abbrev.o.
25097 (abbrev.o): Remove.
25098 * abbrev.c: Remove.
25099
251002007-10-26 Martin Rudalics <rudalics@gmx.at>
25101
25102 * window.c (window_min_size_2): Don't count header-line.
25103
251042007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
25105
25106 * frame.h (struct frame): Move all bit fields after the first bit
25107 field to take advantage of the available space. Group all the
25108 chars together to reduce wasted space due to padding.
25109
251102007-10-26 Juanma Barranquero <lekktu@gmail.com>
25111
25112 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
25113
25114 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
25115 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
25116 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
25117 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
25118 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
25119 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
25120 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
25121 (last_marked, mark_object_loop_halt): Make static.
25122
25123 * frame.c (syms_of_frame) <delete-frame-functions>:
25124 Fix typo in docstring.
25125
251262007-10-25 Juanma Barranquero <lekktu@gmail.com>
25127
25128 * w32.c (init_environment): Fix tiny memory leak.
25129 (w32_get_resource): Remove unused variable `ok'.
25130
251312007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
25132
25133 Make `window-system' into a keyboard-local variable (rather than
25134 frame-local as done originally by multi-tty).
25135
25136 * keyboard.h (struct kboard): Add Vwindow_system.
25137 * keyboard.c (init_kboard): Set a default for Vwindow_system.
25138 (mark_kboards): Mark Vwindow_system.
25139
25140 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
25141 (init_display): Don't set the obsolete `window-system' frame-param.
25142
25143 * xterm.c (x_term_init):
25144 * w32term.c (w32_create_terminal):
25145 * term.c (init_tty): Set Vwindow_system.
25146 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
25147 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
25148
25149 * xfns.c (Fx_create_frame, x_create_tip_frame):
25150 * w32fns.c (Fx_create_frame, x_create_tip_frame):
25151 * macfns.c (Fx_create_frame):
25152 Don't set the obsolete `window-system' frame-param.
25153
25154 * frame.h (Qwindow_system): Remove.
25155 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
25156 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
25157
251582007-10-24 Richard Stallman <rms@gnu.org>
25159
25160 * frame.c (x_figure_window_size): For fullscreen case,
25161 set USPosition | PPosition without clobbering rest of window_prompting.
25162
25163 * keyboard.c (Fcurrent_idle_time): Doc fix.
25164
25165 * print.c (Fwith_output_to_temp_buffer): Doc fix.
25166
251672007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
25168
25169 * process.c (unwind_request_sigio): Only define if __ultrix__.
25170
25171 * callproc.c (child_setup): Remove spurious *.
25172
25173 * lisp.h (Fget_text_property): Declare.
25174 (have_menus_p): Declare it here rather than in sys-dep header files.
25175 * macterm.h (have_menus_p):
25176 * msdos.h (have_menus_p):
25177 * xterm.h (have_menus_p): Remove.
25178
25179 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
25180 (Fmake_variable_frame_local): Just check the variable's const-ness
25181 rather than checking nil or t.
25182
251832007-10-22 Jason Rumney <jasonr@gnu.org>
25184
25185 * w32fns.c: Include math.h.
25186 (w32_abort): Declaration moved to nt/config.nt.
25187
25188 * s/ms-w32.h (HAVE_STDLIB_H): Define.
25189 (abort): Redefinition moved to nt/config.nt.
25190
25191 * m/windowsnt.h: Remove.
25192
251932007-10-22 Juanma Barranquero <lekktu@gmail.com>
25194
25195 * emacs.c (Fdump_emacs): Fix typo in message.
25196 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
25197 <installation-directory>: Reflow docstring.
25198
251992007-10-22 Juri Linkov <juri@jurta.org>
25200
25201 * minibuf.c: Allow minibuffer default to be a list of default values.
25202 With empty input use the first element of this list as returned default.
25203 (string_to_object)
25204 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
25205 (read_minibuf): If defalt is cons, set histstring to its car.
25206 (Fread_string): If default_value is cons, set val to its car.
25207 (Fread_buffer): If def is cons, use its car.
25208 (Fcompleting_read): If defalt is cons, set val to its car.
25209
252102007-10-21 Michael Albinus <michael.albinus@gmx.de>
25211
25212 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
25213
252142007-10-20 Juanma Barranquero <lekktu@gmail.com>
25215
25216 * doc.c (Fdocumentation): Check for advice in all cases.
25217
252182007-10-19 Chong Yidong <cyd@stupidchicken.com>
25219
25220 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
25221
252222007-10-19 Richard Stallman <rms@gnu.org>
25223
25224 * doc.c (Fdocumentation): Check for and handle an advised function.
25225
252262007-10-19 Juanma Barranquero <lekktu@gmail.com>
25227
25228 * process.c (Fset_process_filter): Doc fix.
25229
252302007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
25231
25232 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
25233 which caused key-translation-map to applied repeatedly (thus breaking
25234 double-mode).
25235
252362007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
25237
25238 * xselect.c (x_own_selection, x_handle_selection_clear)
25239 (x_clear_frame_selections):
25240 * w32menu.c (list_of_panes, list_of_items):
25241 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
25242 * textprop.c (validate_plist, interval_has_all_properties)
25243 (interval_has_some_properties, interval_has_some_properties_list)
25244 (add_properties, text_property_list):
25245 * process.c (Fget_buffer_process, list_processes_1, status_notify):
25246 * minibuf.c (Fassoc_string):
25247 * macselect.c (x_own_selection, x_clear_frame_selections)
25248 (Fx_disown_selection_internal):
25249 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
25250 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
25251
252522007-10-17 Chong Yidong <cyd@stupidchicken.com>
25253
25254 * process.c: Link to libs for calling res_init() if available.
25255 (Fmake_network_process): Call res_init() before getaddrinfo or
25256 gethostbyname, if possible.
25257
252582007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
25259
25260 * lread.c (read1): Set pvectype for char_tables.
25261
25262 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
25263 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
25264 Add type checks.
25265 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
25266
25267 * alloc.c (free_misc): Use XMISCTYPE.
25268 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
25269
252702007-10-17 Glenn Morris <rgm@gnu.org>
25271
25272 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
25273 (syms_of_minibuf): Add Qcompletion_ignore_case.
25274 * dired.c (Qcompletion_ignore_case): Change to external.
25275 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
25276 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
25277 (Fread_file_name): Use it rather than intern'ing.
25278
25279 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
25280 (Fread_coding_system): Ignore case of user input.
25281
252822007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25283
25284 * xdisp.c (handle_display_prop): Ignore display specs after
25285 replacing one when string text is being replaced.
25286 (handle_single_display_spec): Pretend as if characters with display
25287 property haven't been consumed only when buffer text is being replaced.
25288
252892007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
25290
25291 * xfns.c (Fx_create_frame, Fx_display_list):
25292 * window.c (window_fixed_size_p, enlarge_window)
25293 (shrink_window_lowest_first):
25294 * macterm.c (init_font_name_table):
25295 * macfns.c (Fx_create_frame, Fx_display_list):
25296 * lread.c (close_load_descs):
25297 * keyboard.c (read_char_x_menu_prompt):
25298 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
25299 * coding.c (code_convert_region_unwind): Test the type of an object
25300 rather than just !NILP before extracting data from it.
25301
25302 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
25303
25304 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
25305 (XMISCANY): New macro.
25306 (XMISCTYPE): Use it.
25307 (struct Lisp_Misc_Any): New type.
25308 (union Lisp_Misc): Use it.
25309 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
25310 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
25311 (find_symbol_value, set_internal, default_value, Fset_default)
25312 (Fmake_variable_buffer_local, Fmake_local_variable)
25313 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
25314 (Flocal_variable_if_set_p, Fvariable_binding_locus):
25315 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
25316 * alloc.c (allocate_buffer): Set the size and tag.
25317 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
25318 Use XMISCANY.
25319 (die): Follow the GNU convention for error messages.
25320 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
25321 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
25322 tag any more.
25323 (set_buffer_internal_1):
25324 * frame.c (store_frame_param):
25325 * eval.c (specbind):
25326 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
25327
25328 * doc.c (Fsnarf_documentation): Simplify.
25329
253302007-10-14 Juanma Barranquero <lekktu@gmail.com>
25331
25332 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
25333 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
25334
253352007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
25336
25337 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
25338
253392007-10-14 Juanma Barranquero <lekktu@gmail.com>
25340
25341 * eval.c (do_autoload): Don't save autoloads.
25342
25343 * data.c (Ffset): Save autoload of the function being set.
25344
253452007-10-07 John Paul Wallington <jpw@pobox.com>
25346
25347 * xfns.c (x_create_tip_frame): Set the `display-type' frame
25348 parameter before setting up faces.
25349
253502007-10-13 Eli Zaretskii <eliz@gnu.org>
25351
25352 * ccl.c (Fregister_code_conversion_map):
25353 * keyboard.c (append_tool_bar_item): Reformat last change.
25354
25355 * lisp.h (eabs): Rename from `abs'. All callers changed.
25356
253572007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
25358
25359 * buffer.c (add_overlay_mod_hooklist):
25360 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
25361 * fontset.c (make_fontset):
25362 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
25363 (append_tool_bar_item):
25364 * macmenu.c (grow_menu_items):
25365 * w32menu.c (grow_menu_items):
25366 * xmenu.c (grow_menu_items): Use larger_vector.
25367
253682007-10-13 Eli Zaretskii <eliz@gnu.org>
25369
25370 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
25371 selected frame'' on MSDOS).
25372
253732007-10-12 Martin Rudalics <rudalics@gmx.at>
25374
25375 * frame.c (Qexplicit_name): New variable.
25376 (x_report_frame_params): Report it in parameter alist.
25377 (syms_of_frame): Intern and staticpro it.
25378
253792007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
25380
25381 * macfns.c (x_create_tip_frame): Set terminal for frame.
25382
253832007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
25384
25385 * frame.c (Qenvironment): Remove.
25386 (syms_of_frame) <Qenvironment>: Don't initialize.
25387 (Fdelete_frame): Don't treat the `environment' param specially.
25388 * frame.h (Qenvironment): Don't declare.
25389 * callproc.c (set_initial_environment): Don't set unused frame param.
25390
25391 * frame.c (Fframe_with_environment): Remove.
25392 (syms_of_frame) <Sframe_with_environment>: Don't declare.
25393
25394 * lisp.h (Fframe_with_environment): Don't declare.
25395
253962007-10-10 Juanma Barranquero <lekktu@gmail.com>
25397
25398 * indent.c (indent_tabs_mode, last_known_column)
25399 (last_known_column_modified): Make static.
25400 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
25401
254022007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
25403
25404 * puresize.h (BASE_PURESIZE): Increase to 1170000.
25405
254062007-10-09 Jason Rumney <jasonr@gnu.org>
25407
25408 * w32term.c (x_set_window_size): Disable code that attempts to tell
25409 Lisp code about a size change before it actually happens.
25410
254112007-10-09 Richard Stallman <rms@gnu.org>
25412
25413 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
25414 return HANDLED_RETURN.
25415
254162007-10-08 Martin Rudalics <rudalics@gmx.at>
25417
25418 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
25419 when there's an unread command event.
25420
25421 * frame.c (focus_follows_mouse): Move here from frame.el to allow
25422 window autoselection act appropriately when leaving selected frame.
25423 (syms_of_frame): Initialize focus_follows_mouse.
25424 * frame.h (focus_follows_mouse): Extern it.
25425 * macterm.c (XTread_socket): When focus_follows_mouse is nil
25426 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
25427 * msdos.c (dos_rawgetc): Likewise.
25428 * w32term.c (w32_read_socket): Likewise.
25429 * xterm.c (handle_one_xevent): Likewise.
25430 * xdisp.c (syms_of_xdisp): In doc-string of
25431 mouse-autoselect-window mention focus-follows-mouse.
25432
254332007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25434
25435 * macterm.c (mac_load_query_font): Fix missing return value.
25436 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
25437 Add BLOCK_INPUT.
25438
254392007-10-08 Richard Stallman <rms@gnu.org>
25440
25441 * xdisp.c (get_window_cursor_type): Implement documented behavior
25442 for cursor-in-non-selected-windows = t.
25443
254442007-10-08 Jason Rumney <jasonr@gnu.org>
25445
25446 * w32.c (w32_get_resource): Always close registry keys.
25447
254482007-10-08 Jason Rumney <jasonr@gnu.org>
25449
25450 * makefile.w32-in (LIBS): Add COMCTL32.
25451
25452 * w32fns.c (globals_of_w32fns): Init common controls.
25453
254542007-10-08 Richard Stallman <rms@gnu.org>
25455
25456 * image.c (our_memory_buffer): Rename from omfib_buffer.
25457
254582007-10-08 Richard Stallman <rms@gnu.org>
25459
25460 * buffer.c (Foverlays_at): Doc fix.
25461
254622007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
25463
25464 * fns.c (Fplist_put): Preserve uneven tail data.
25465
254662007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
25467
25468 * termhooks.h (enum event_kind): Remove trailing comma.
25469
25470 * frame.h (enum): Remove trailing comma.
25471
254722007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
25473
25474 * w32proc.c (delete_child): Don't terminate threads of zombies.
25475
254762007-10-08 Martin Rudalics <rudalics@gmx.at>
25477
25478 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
25479
25480 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
25481 last-repeatable-command.
25482 (init_kboard): Initialize Vlast_repeatable_command.
25483 (command_loop_1): Set it to real_this_command unless that was
25484 bound to an input event.
25485 (mark_kboards): Mark it.
25486
254872007-10-08 Richard Stallman <rms@gnu.org>
25488
25489 * eval.c (condition-case): Doc fix.
25490
254912007-10-08 Masatake YAMATO <jet@gyve.org>
25492
25493 * xfaces.c (tty_supports_face_attributes_p): Fix code
25494 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
25495 was copied and not edited.
25496
254972007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
25498
25499 Add new `input-decode-map' keymap and use it for terminal
25500 escape sequences.
25501 * keyboard.h (struct kboard): Add Vinput_decode_map.
25502 Remove Vlocal_key_translation_map.
25503 * keyboard.c (read_key_sequence): Add support for input-decode-map.
25504 (init_kboard): Init input-decode-map.
25505 Replace local-key-translation-map back with key-translation-map.
25506 (syms_of_keyboard): Declare input-decode-map.
25507 Remove local-key-translation-map. Update docstrings.
25508 (mark_kboards): Mark Vinput_decode_map.
25509 Don't mark Vlocal_key_translation_map.
25510 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
25511 Replace local-key-translation-map back with key-translation-map.
25512 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
25513 Bind in input-decode-map rather than function-key-map.
25514
25515 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
25516 This was made redundant by the previous introduction of XSETPVECTYPE.
25517
255182007-10-09 Richard Stallman <rms@gnu.org>
25519
25520 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
25521
255222007-09-29 Richard Stallman <rms@gnu.org>
25523
25524 * eval.c (internal_condition_case_2, internal_condition_case_1)
25525 (internal_condition_case): Reenable abort if x_catching_errors ()
25526 to see if that really happens and why.
25527
255282007-10-06 Andreas Schwab <schwab@suse.de>
25529
25530 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
25531
255322007-10-04 Juanma Barranquero <lekktu@gmail.com>
25533
25534 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
25535
255362007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
25537
25538 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
25539
255402007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
25541
25542 * window.h (struct window):
25543 * window.c (struct save_window_data, struct saved_window):
25544 * termhooks.h (struct terminal):
25545 * process.h (struct Lisp_Process):
25546 * frame.h (struct frame):
25547 * buffer.h (struct buffer):
25548 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
25549 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
25550 The size field of (pseudo)vectors is now unsigned.
25551 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
25552
25553 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
25554 Turn `count' into an integer.
25555
25556 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
25557 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
25558 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
25559 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
25560 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
25561
25562 * alloc.c (allocate_pseudovector): New fun.
25563 (ALLOCATE_PSEUDOVECTOR): New macro.
25564 (allocate_window, allocate_terminal, allocate_frame)
25565 (allocate_process): Use it.
25566 (mark_vectorlike): New function.
25567 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
25568 (mark_terminals): Use it.
25569 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
25570 (Fmake_byte_code): Use XSETPVECTYPE.
25571
25572 * frame.c (Fframe_parameters): Minor simplification.
25573
25574 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
25575
25576 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
25577
25578 * buffer.c (Fget_buffer_create, init_buffer_once):
25579 * lread.c (defsubr):
25580 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
25581
25582 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
25583 defined differently in the m/*.h files.
25584 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
25585 (XSETPVECTYPE): New macro.
25586 (XSETPSEUDOVECTOR): Use it.
25587
25588 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
25589 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
25590
25591 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
25592 * lread.c (defvar_per_buffer):
25593 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
25594
25595 * window.c (candidate_window_p): Only consider as visible frames that
25596 are on the same terminal.
25597
25598 * m/ibms390x.h (MARKBIT): Remove unused macro.
25599
256002007-10-01 Juanma Barranquero <lekktu@gmail.com>
25601
25602 * lread.c (Fload): Fix typo in docstring.
25603
256042007-10-01 Michaël Cadilhac <michael@cadilhac.name>
25605
25606 * floatfns.c (Fexpt): Manually check for overflows, so that a power
25607 of a non-zero value can't yield zero.
25608
256092007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
25610
25611 * term.c (term_clear_mouse_face, term_mouse_highlight)
25612 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
25613
25614 * print.c (safe_debug_print): Use XHASH.
25615
25616 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
25617 Lisp elements such as tags.
25618 (XHASH): New macro.
25619 (EQ): Use it.
25620 (SREF, SSET, STRING_COPYIN): Use SDATA.
25621 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
25622
25623 * alloc.c (mark_terminal): Remove left-over declaration.
25624 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
25625 (allocate_vectorlike): Remove type argument. Adjust callers.
25626 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
25627 Only handle the one remaining MEM_TYPE_VECTORLIKE.
25628
25629 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
25630 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
25631 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
25632 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
25633 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
25634 Use them.
25635
25636 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
25637 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
25638 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
25639
256402007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
25641
25642 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
25643 loaded by default.
25644
256452007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
25646
25647 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
25648 on this tty.
25649 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
25650
25651 * term.c (mouse_face_window): Rename from Qmouse_face_window.
25652 Update all users.
25653 (handle_one_term_event): Use Gpm_DrawPointer.
25654 (Fgpm_mouse_start): Rename from Fterm_open_connection.
25655 Signal errors instead of returning nil. Always return nil.
25656 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
25657 Make it a noop if gpm-mouse was not activated.
25658 (syms_of_term): Update names.
25659
256602007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
25661
25662 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
25663 (init_sys_modes): Check that gpm_tty is the current tty.
25664
25665 * alloc.c (allocate_terminal): Set the vector size to only count the
25666 lisp fields. Initialize those to nil.
25667 (mark_object): Don't treat terminals specially.
25668 (mark_terminal): Remove.
25669 (mark_terminals): Use mark_object instead.
25670
25671 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
25672 the GC to the beginning.
25673
25674 * indent.h:
25675 * indent.c: Use EMACS_INT for ints coming from Elisp data.
25676
25677 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
25678
256792007-09-25 Jason Rumney <jasonr@gnu.org>
25680
25681 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
25682
25683 * w32console.c (create_w32cons_output): Remove.
25684
25685 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
25686
25687 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
25688 (reset_sys_modes): Use reset_terminal_modes_hook.
25689
256902007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
25691
25692 * eval.c (do_autoload): Don't output any message.
25693
256942007-09-24 Juri Linkov <juri@jurta.org>
25695
25696 * emacs.c (standard_args): Change priority of "--no-splash"
25697 from 40 to 3. Add "--no-desktop" with the same priority.
25698
256992007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
25700
25701 * alloc.c (gc_sweep): Check cons cell mark bits word by word
25702 and optimize the case where they are all 1.
25703
257042007-09-23 Johannes Weiner <hannes@saeurebad.de>
25705
25706 * lisp.h (abs): Define if not defined.
25707 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
25708 Don't define `abs', since it's defined in lisp.h.
25709
257102007-09-22 Eli Zaretskii <eliz@gnu.org>
25711
25712 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
25713 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
25714 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
25715 (init_tty): Use DEV_TTY instead of "/dev/tty".
25716 [WINDOWSNT]: No need to protect from NAME arg being null.
25717
257182007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
25719
25720 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
25721 up the tty state.
25722
257232007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25724
25725 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
25726 (gpm_tty): Change its type.
25727 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
25728 (gpm_tty): Change its type and initialize it.
25729 (Fterm_open_connection): Check the frame is indeed a tty.
25730 Use the new gpm_tty.
25731 (Fterm_close_connection): Use the new gpm_tty.
25732 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
25733 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
25734
257352007-09-21 Juanma Barranquero <lekktu@gmail.com>
25736
25737 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
25738 underline_color, to draw strike-through.
25739
257402007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25741
25742 * lisp.h (allocate_terminal): Declare.
25743
25744 * window.c (candidate_window_p): Consider frames that are being placed
25745 by the user as somewhere between visible and iconified.
25746 (window_loop): Prefer windows on the current frame.
25747 (Fselect_window): Move the use of select-frame to the beginning so we
25748 can just delegate all the work (it'll call us back anyway).
25749
25750 * frame.c (Qdisplay_environment_variable):
25751 * frame.h (Qdisplay_environment_variable): Delete.
25752
25753 * .gdbinit (xbacktrace): Print the arg's address rather than the value
25754 of the first arg, since that value may be a union.
25755
25756 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
25757 parameter rather than Qdisplay_environment_variable. If all else
25758 fails, look for DISPLAY in initial-environment.
25759
257602007-09-21 Glenn Morris <rgm@gnu.org>
25761
25762 * Makefile.in (emacstool): Remove target.
25763 (lisp, shortlisp): Remove termdev.elc.
25764
257652007-09-21 Markus Triska <markus.triska@gmx.at>
25766
25767 * xterm.c (x_delete_display): Compile session management conditionally.
25768
257692007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
25770
25771 * callproc.c (getenv_internal_1): New function.
25772 (getenv_internal): Use it.
25773 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
25774
25775 * terminal.c (get_terminal): Don't accept ints to represent terminals.
25776 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
25777 (Fset_terminal_parameter): Work with dead terminals as well.
25778 (Fmodify_terminal_parameters): Remove.
25779
25780 * terminal.c (get_terminal): Handle terminals.
25781 Make sure the terminal returned is live.
25782 (create_terminal): Use allocate_terminal.
25783 (mark_terminals): Move to alloc.c.
25784 (delete_terminal): Use terminal->name as liveness status.
25785 NULL out fields after freeing their contents.
25786 Don't deallocate the object.
25787 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
25788 rather than an int.
25789 (Fterminal_live_p): Accept non-integer arguments.
25790 (Fterminal_list): Return terminal objects rather than an ints.
25791
25792 * alloc.c (enum mem_type): New member for `terminal' objects.
25793 (allocate_terminal): New function.
25794 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
25795 Handle terminals.
25796 (mark_terminal): New fun.
25797 (mark_terminals): Move from terminal.c.
25798
25799 * term.c (get_tty_terminal): Don't treat output_initial specially.
25800 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
25801 (delete_tty): Use terminal->name as liveness status.
25802
25803 * termhooks.h (struct terminal): Make it into a pseudovector.
25804 Remove `deleted' replaced by checking `name's nullness.
25805
25806 * print.c (print_object): Handle terminals.
25807
25808 * lisp.h (enum pvec_type): New `terminal' pseudovector.
25809 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
25810
25811 * frame.c (make_terminal_frame):
25812 * keyboard.c (tty_read_avail_input):
25813 * w32term.c (x_delete_terminal):
25814 * xfns.c (Fx_create_frame, x_create_tip_frame):
25815 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
25816
258172007-09-20 Glenn Morris <rgm@gnu.org>
25818
25819 * process.c (Fmake_network_process): Doc fix.
25820
258212007-09-19 Jason Rumney <jasonr@gnu.org>
25822
25823 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
25824
258252007-09-19 Michaël Cadilhac <michael@cadilhac.name>
25826
25827 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
25828 Fix a C warning regarding variable constness.
25829
25830 * xterm.c (handle_one_xevent): Fix a C warning.
25831
258322007-09-18 Jason Rumney <jasonr@gnu.org>
25833
25834 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
25835
258362007-09-17 Jan Djärv <jan.h.d@swipnet.se>
25837
25838 * gtkutil.c (gdpy_def): New variable.
25839 (xg_initialize): Initialize gdpy_def.
25840 (xg_display_close): If no other display exists, set gdpy_def to a
25841 new connection.
25842
258432007-09-16 Jan Djärv <jan.h.d@swipnet.se>
25844
25845 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
25846 when we have no file name for the icon.
25847 (xg_tool_bar_expose_callback): Remove.
25848 (xg_create_tool_bar): Don't connect expose signal to
25849 xg_tool_bar_expose_callback.
25850 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
25851
258522007-09-16 Andreas Schwab <schwab@suse.de>
25853
25854 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
25855 values instead of zapping them.
25856
258572007-09-14 Glenn Morris <rgm@gnu.org>
25858
25859 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
25860 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
25861 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
25862 scope and rename to omfib_buffer for clarity.
25863 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
25864
258652007-09-14 Kenichi Handa <handa@m17n.org>
25866
25867 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
25868
258692007-09-13 Jason Rumney <jasonr@gnu.org>
25870
25871 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
25872
25873 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
25874
25875 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
25876 (mac_term_init): Call here instead, passing rif.
25877
258782007-09-13 Glenn Morris <rgm@gnu.org>
25879
25880 * s/hpux.h: No longer define `static' as nothing.
25881
258822007-09-13 Johan Bockgård <bojohan@gnu.org>
25883
25884 * callint.c (Fcall_interactively): Remove unused var `fun'.
25885
258862007-09-12 Romain Francoise <romain@orebokech.com>
25887
25888 * window.c (prefer_window_split_horizontally, display_buffer):
25889 Revert 2007-09-08 change.
25890
258912007-09-12 Glenn Morris <rgm@gnu.org>
25892
25893 * alloca.c: Remove file.
25894 * Makefile.in (alloca): Do not undef.
25895 (allocaobj, alloca.o): Remove.
25896 (otherobj): Remove allocaobj.
25897 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
25898 * regex.c (C_ALLOCA): Remove all references and code that was only
25899 used when this was defined.
25900 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
25901 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
25902 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
25903
25904 * Makefile.in (SOURCES, unlock, relock): Delete.
25905
25906 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
25907 (menu_grab_callback): All uses changed.
25908
25909 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
25910 (x_reply_selection_request): All uses changed.
25911
259122007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
25913
25914 * lread.c (load_warn_old_style_backquotes): Change message to look
25915 better when it appears in the middle of byte-compiler messages.
25916
259172007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
25918
25919 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
25920
25921 * xterm.c (x_create_terminal): Add comment.
25922
25923 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
25924
259252007-09-10 Richard Stallman <rms@gnu.org>
25926
25927 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
25928
259292007-09-10 Michaël Cadilhac <michael@cadilhac.name>
25930
25931 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
25932 (DEFUN): Document `intspec', use it instead of `prompt'.
25933
25934 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
25935
25936 * data.c (Finteractive_form): If the interactive specification starts
25937 with a `(', use it as a Lisp form.
25938
25939 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
25940 name and file modes.
25941
25942 * callint.c (Fcall_interactively): Comment fixes.
25943
259442007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
25945
25946 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
25947 and compiled functions.
25948
259492007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
25950
25951 * window.c (prefer_window_split_horizontally): New variable.
25952 (display_buffer): Consider splitting window horizontally depending
25953 on prefer_window_split_horizontally.
25954
259552007-09-08 Eli Zaretskii <eliz@gnu.org>
25956
25957 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
25958
259592007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25960
25961 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
25962
25963 * frame.c (x_set_frame_parameters): Check number is positive before
25964 using XFASTINT.
25965
25966 * window.c (freeze_window_start): Don't presume selected_window holds
25967 a window object.
25968 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
25969
259702007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
25971
25972 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
25973
259742007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25975
25976 * window.c (Vsplit_window_preferred_function): New var.
25977 (Fdisplay_buffer): Use it.
25978 (syms_of_window): Export, and initialize it.
25979
259802007-09-06 Pixel <pixel@mandriva.com> (tiny change)
25981
25982 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
25983
259842007-09-06 Glenn Morris <rgm@gnu.org>
25985
25986 * gtkutil.c (menu_grab_callback) <cnt>:
25987 * xselect.c (x_reply_selection_request) <cnt>: Move static
25988 variable to file scope.
25989
259902007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
25991
25992 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
25993 consistent values of selected_frame and selected_window.
25994
259952007-09-04 Jason Rumney <jasonr@gnu.org>
25996
25997 * w32console.c (initialize_w32_display): Zero unused hooks.
25998
259992007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
26000
26001 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
26002 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
26003
260042007-09-04 Jason Rumney <jasonr@gnu.org>
26005
26006 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
26007 in w32console.c. Set up input. Remove XXX comments that have been
26008 confirmed as correct.
26009
26010 * s/ms-w32.h (MULTI_KBOARD): Define.
26011
26012 * w32console.c (one_and_only_w32cons): Remove.
26013 (initialize_w32_display): Take terminal argument.
26014
26015 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
26016 initialize_w32_display.
26017 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
26018
26019 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
26020
26021 * keyboard.c (discard_mouse_events): Discard it.
26022 (make_lispy_event): Translate it to a lisp event.
26023 (lispy_wheel_names): Add wheel-left and right events.
26024 (syms_of_keyboard): Enlarge wheel_syms.
26025
26026 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
26027 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
26028
26029 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
26030
26031 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
26032 from WM_MOUSEHWHEEL.
26033 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
26034
26035 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
26036 terminal.
26037
26038 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
26039 keyboard for the terminal.
26040
260412007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
26042
26043 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
26044 (Vresume_tty_hook): Rename from Vresume_tty_functions.
26045 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
26046 and resume-tty-function to resume-tty-hook.
26047 (Fsuspend_tty, Fresume_tty): Use new names.
26048
260492007-09-02 Jan Djärv <jan.h.d@swipnet.se>
26050
26051 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
26052 if it starts with "n:".
26053
260542007-08-31 Jan Djärv <jan.h.d@swipnet.se>
26055
26056 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
26057
260582007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
26059
26060 * frame.h:
26061 * frame.c (Qterm_environment_variable): Remove.
26062 (syms_of_frame): Don't init and staticpro it.
26063
26064 * callproc.c (getenv_internal): Remove special case for $TERM.
26065
26066 * callproc.c (Vinitial_environment): New variable.
26067 (set_initial_environment): Initialize it.
26068 (syms_of_callproc): Declare it.
26069 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
26070 TERM under which a process runs is never related to the TERM in which
26071 Emacs is running.
26072
260732007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
26074
26075 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
26076 * s/darwin.h: ... do it here.
26077
260782007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
26079
26080 * lisp.h (set_initial_environment): Rename from set_global_environment.
26081
26082 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
26083 removed by mistake on the multi-tty branch.
26084
26085 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
26086 (Fmodify_frame_parameters): Return a value.
26087
26088 * image.c (png_load): Comment-out var only used in commented-out code.
26089
26090 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
26091 before passing it to mark_object.
26092
26093 * xfaces.c (internal_resolve_face_name): Return a value.
26094 (internal_resolve_face_name, resolve_face_name_error): Comment out.
26095
26096 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
26097 (x_icon): Comment-out var only used in commented-out code.
26098
260992007-08-29 Romain Francoise <romain@orebokech.com>
26100
26101 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
26102 QUIT hasn't been provided.
26103
261042007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
26105
26106 * callproc.c (child_setup, getenv_internal): Use the
26107 display-environment-variable and term-environment-variable frame params.
26108 (set_initial_environment): Initialise Vprocess_environment.
26109
26110 * config.in: Disable multi-keyboard support on a mac.
26111
26112 * frame.c (Qterm_environment_variable)
26113 (Qdisplay_environment_variable): New variables.
26114 (syms_of_frame): Intern and staticpro them.
26115 (Fmake_terminal_frame): Disable output method test.
26116
26117 * frame.h: Declare them here.
26118
26119 * macfns.c (x_set_mouse_color): Get rif from the frame.
26120 (x_set_tool_bar_lines): Don't use updating_frame.
26121 (mac_window): Add 2 new parameters for consistency with other systems.
26122 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
26123 frame parameters following what is done in X11 and w32. Don't use
26124 FRAME_MAC_DISPLAY_INFO.
26125 (Fx_open_connection, start_hourglass): Remove window-system check.
26126 (x_create_tip_frame): Get the keyboard from the terminal.
26127
26128 * macmenu.c: Reorder includes.
26129 (Fx_popup_menu): Use terminal specific mouse_position_hook.
26130
26131 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
26132 terminal parameter.
26133 (x_clear_frame): Add a frame parameter.
26134 (note_mouse_movement): Get rif from the frame.
26135 (mac_term_init): Initialize the terminal.
26136 (mac_initialize): Make static and move terminal initialization ...
26137 (mac_create_terminal): ... to this new function.
26138
26139 * macterm.h (struct mac_display_info): Add terminal.
26140 (mac_initialize): Delete declaration.
26141
26142 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
26143
26144 * sysdep.c: Comment out text after #endif.
26145
26146 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
26147 is defined. Better initialize ttys in windows. Use terminal
26148 specific mouse_position_hook.
26149
26150 * termhooks.h (union display_info): Add mac_display_info.
26151
26152 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
26153 Set the default minibuffer frame, window_system and the rest of the
26154 frame parameters following what is done in X11.
26155
26156 * w32term.c (w32_initialize): Make static.
26157
26158 * xselect.c (x_handle_selection_clear): Only access
26159 terminal->kboard when MULTI_KBOARD is defined.
26160
26161 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
26162 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
26163
261642007-08-29 Jason Rumney <jasonr@gnu.org>
26165
26166 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
26167 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
26168
26169 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
26170 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
26171
26172 * keyboard.c (restore_kboard_configuration): Only define when
26173 MULTI_KBOARD defined.
26174
26175 * makefile.w32-in: Update dependancies from Makefile.in.
26176 (OBJ1): Add terminal.$(O)
26177
26178 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
26179 Don't define function body.
26180 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
26181
26182 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
26183
26184 * w32.c (request_sigio, unrequest_sigio): Remove.
26185
26186 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
26187 (w32con_clear_frame, w32con_clear_end_of_line)
26188 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
26189 (w32con_delete_glyphs, w32con_set_terminal_window)
26190 (scroll_line, w32_sys_ring_bell): Add frame arg.
26191 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
26192 Add terminal arg.
26193 (PICK_FRAME): Remove.
26194 (w32con_write_glyphs): Use frame specific terminal coding.
26195 (one_and_only_w32cons): New global variable.
26196 (initialize_w32_display): Use it for storing hooks.
26197 (create_w32cons_output): New function.
26198
26199 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
26200 arg a frame.
26201
26202 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
26203 Set window_system.
26204 (x_set_tool_bar_lines): Don't use updating_frame.
26205 (Fx_create_frame): Set terminal and ref count.
26206 (Fx_open_connection): Remove window-system check.
26207
26208 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
26209
26210 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
26211 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
26212 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
26213 Add frame arg.
26214 (x_delete_terminal, w32_create_terminal): New functions.
26215 (w32_term_init): Create a terminal.
26216 (w32_initialize): Move terminal specific initialization to
26217 w32_create_terminal.
26218
26219 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
26220 (w32_clear_rect, w32_clear_area): Use background from frame.
26221 (w32_display_info): Add terminal.
26222 (w32_sys_ring_bell, x_delete_display): Declare here.
26223
26224 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
26225
26226 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
26227
262282007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
26229
26230 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
26231 Fix get_named_tty calls for the controlling tty.
26232
262332007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
26234
194d44e7 26235 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
26236
262372007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
26238
26239 * term.c (tty_insert_glyphs): Add missing first parameter.
26240
262412007-08-29 Károly Lőrentey <karoly@lorentey.hu>
26242
26243 * buffer.c (Fbuffer_list, Fbury_buffer):
26244 Take frame->buried_buffer_list into account.
26245
26246 * cm.c (current_tty): New variable, for cmputc().
26247 (cmputc): Use it.
26248 (cmcheckmagic): Add tty parameter, look up terminal streams there.
26249 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
26250 (cmgoto): Add tty parameter. Pass it on to calccost().
26251 Use emacs_tputs() instead of tputs().
26252
26253 * cm.h (emacs_tputs): New macro to set current_tty, and then call
26254 tputs().
26255 (current_tty): New variable, for cmputc().
26256 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
26257
26258 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
26259 (internal_condition_case, internal_condition_case_1)
26260 (internal_condition_case_2): Don't abort when x_catching_errors.
26261
26262 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
26263 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
26264 prevent crashes caused by bogus longjmps in read_char.
26265
26266 * keymap.h (Fset_keymap_parent): Add EXFUN.
26267
26268 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
26269 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
26270 Remove redundant definition.
26271
26272 * macfns.c (x_set_mouse_color, x_make_gc):
26273 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26274
26275 * w32term.c (x_free_frame_resources):
26276 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26277 (w32_initialize): Use the accessor macros for terminal characteristics.
26278
26279 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
26280 Use the accessor macros for terminal characteristics.
26281 * msdos.c (internal_terminal_init): Use the accessor macros for
26282 terminal characteristics.
26283 (ScreenVisualBell, internal_terminal_init):
26284 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26285
26286 * termopts.h (no_redraw_on_reenter): Declare.
26287
26288 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
26289 (mark_terminals, mark_ttys): Declare.
26290 (Fgarbage_collect): Call them.
26291 (mark_object): Mark buried_buffer_list.
26292
26293 * prefix-args.c: Include stdlib.h for exit.
26294
26295 * syssignal.h: Add comment.
26296
26297 * indent.c: Include stdio.h.
26298
26299 * window.h (Vinitial_window_system): Declare.
26300 (Vwindow_system): Delete declaration.
26301
26302 * fontset.c (Finternal_char_font): Use FRAME_RIF.
26303
26304 * image.c (lookup_image): Don't initialize `c' until the xasserts
26305 have been run.
26306
26307 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
26308 FRAME_FOREGROUND_PIXEL.
26309
26310 * print.c (print_preprocess): Don't lose print_depth levels while
26311 iterating.
26312
26313 * widget.c (update_from_various_frame_slots):
26314 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26315
26316 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
26317 frames.
26318 (window_internal_height): Remove bogus make_number call.
26319 (init_window_once): Call make_terminal_frame with two zero parameters.
26320
26321 * fileio.c (Fread_file_name): Update comment.
26322
26323 * callint.c (Fcall_interactively):
26324 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
26325 Make sure it is correctly unwound.
26326
26327 * xsmfns.c (x_session_close): New function.
26328
26329 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
26330 Delete declarations.
26331
26332 * xterm.h: Remove declaration for x_fully_uncatch_errors.
26333 (x_output): Remove background_pixel and foreground_pixel fields.
26334 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
26335 (x_delete_device, x_session_close): Declare.
26336
26337 * lread.c: Include setjmp.h. Update declaration of `read_char'.
26338 (read_filtered_event): Call `read_char' with a local
26339 `wrong_kboard_jmpbuf'.
26340
26341 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
26342 Don't call single_kboard_state. Use FRAME_RIF.
26343
26344 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
26345 systems.
26346
26347 * lisp.h (set_process_environment): Rename to `set_global_environment'.
26348 (Fframe_with_environment, Fset_input_meta_mode)
26349 (Fset_quit_char): EXFUN.
26350 (x_create_device, tty_output, terminal, tty_display_info): Declare.
26351 (init_sys_modes, reset_sys_modes): Update prototypes.
26352 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
26353
26354 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
26355 Vlocal_key_translation_map, and Vkeyboard_translate_table.
26356 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
26357 Delete declarations.
26358 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
26359 (temporarily_switch_to_single_kboard, tty_read_avail_input):
26360 New declarations.
26361
26362 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
26363 already does that during init_display(). Call syms_of_keymap
26364 before syms_of_keyboard. Call `syms_of_terminal'.
26365 Call set_initial_environment, not set_process_environment.
26366 (shut_down_emacs): Call reset_all_sys_modes() instead of
26367 reset_sys_modes().
26368
26369 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
26370 (internal_resolve_face_name, resolve_face_name_error): New functions.
26371 (resolve_face_name): Protect against loops and errors thrown by Fget.
26372 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
26373 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
26374
26375 * scroll.c: Replace CURTTY() with local variables throughout the
26376 file (where applicable).
26377 (calculate_scrolling, calculate_direct_scrolling)
26378 (scrolling_1, scroll_cost): Use the accessor macros for terminal
26379 characteristics.
26380
26381 * keymap.c (Vfunction_key_map): Remove.
26382 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
26383 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
26384 (Vkey_translation_map): Remove.
26385 (syms_of_keymap): Remove DEFVAR for key-translation-map.
26386 (Fdescribe_buffer_bindings)
26387 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
26388 Update for terminal-local key-translation-map.
26389
26390 * Makefile.in (callproc.o): Update dependencies.
26391 (lisp, shortlisp): Add termdev.elc.
26392 (obj): Add terminal.o.
26393 (terminal.o): Add dependencies.
26394 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
26395 (data.o, fns.o): Add termhooks.h dependency.
26396 (SOME_MACHINE_LISP): Add dnd.elc.
26397 (minibuf.o): Fix typo.
26398 Update dependencies.
26399
26400 * data.c (do_symval_forwarding, store_symval_forwarding)
26401 (find_symbol_value): Use the selected frame's keyboard, not
26402 current_kboard.
26403
26404 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
26405 Vwindow_system.
26406
26407 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
26408 Fmenu_bar_open.
26409 (syms_of_xmenu): Update defsubr.
26410 (mouse_position_for_popup, Fx_popup_menu)
26411 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
26412 (set_frame_menubar, free_frame_menubar)
b97439ce 26413 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
26414 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
26415 an X frame.
26416
26417 * xselect.c (x_own_selection): Abort if not an X frame.
26418 (some_frame_on_display): Check if it is an X frame.
26419 (x_handle_selection_clear): Deal with MULTI_KBOARD.
26420
26421 * coding.c: Include frame.h and termhooks.h.
26422 (terminal_coding, keyboard_coding): Delete.
26423 (Fset_terminal_coding_system_internal)
26424 (Fset_keyboard_coding_system_internal)
26425 (Fkeyboard_coding_system)
26426 (Fterminal_coding_system): Add a terminal parameter.
26427 Get terminal_coding from the terminal.
26428 (init_coding_once): Don't call setup_coding_system here.
26429
26430 * dispextern.h (set_scroll_region, turn_off_insert)
26431 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
26432 (tty_clear_end_of_line, tty_setup_colors)
26433 (delete_tty, updating_frame)
26434 (produce_special_glyphs, produce_glyphs, write_glyphs)
26435 (insert_glyphs): Remove.
26436 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
26437 (tty_turn_off_highlight, get_tty_size): Add declaration.
26438 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
26439
26440 * frame.h (enum output_method): Add output_initial.
26441 (struct x_output): Delete.
26442 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
26443 Access foreground_pixel and background_pixel directly from the frame.
26444 (tty_display): Delete.
26445 (struct frame): Add buried_buffer_list, foreground_pixel,
26446 background_pixel and terminal. Delete kboard.
26447 (union output_data): Add tty.
26448 (FRAME_KBOARD): Get the kboard from the terminal.
26449 (FRAME_INITIAL_P): New macro.
26450 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
26451 (Qterm_environment_variable, Qdisplay_environment_variable)
26452 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
26453 New declarations.
26454
26455 * termchar.h (tty_output, tty_display_info): New structures.
26456 (tty_list): Declare.
26457 (FRAME_TTY, CURTTY): New macros.
26458 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
26459 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
26460 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
26461 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
26462
26463 * callproc.c: Include frame.h and termhooks.h, for terminal
26464 parameters.
26465 (add_env): New function.
26466 (child_setup): Use it.
26467 (child_setup, getenv_internal): Handle the new Vprocess_environment.
26468 (getenv_internal): Fix get_terminal_param call.
26469 (Fgetenv_internal, egetenv): Update doc.
26470 (syms_of_callproc): Initialize Vprocess_environment to nil.
26471 Register and initialize them. Remove obsolete defvars. Update doc
26472 strings.
26473 (child_setup): Handle Vlocal_environment_variables.
26474 (getenv_internal): Add terminal parameter.
26475 Handle Vlocal_environment_variables.
26476 (Fgetenv_internal): Add terminal parameter.
26477 (child_setup, getenv_internal, Fgetenv_internal): Store the local
26478 environment in a frame (not terminal) parameter. Update doc strings.
26479 (set_initial_environment): Rename from set_global_environment.
26480 Store Emacs environment in initial frame parameter.
26481
26482 * xdisp.c (redisplay_internal): Update references to
26483 `previous_terminal_frame'.
26484 (display_mode_line, Fformat_mode_line): Replace calls to
26485 `push_frame_kboard' with `push_kboard'.
26486 (get_glyph_string_clip_rects): Add extra parentheses and
26487 braces to prevent compiler warnings.
26488 (calc_pixel_width_or_height): Add xassert to check that the
26489 frame is alive. Don't call `lookup_image' on a termcap frame.
26490 (message2_nolog, message3_nolog, redisplay_internal)
26491 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
26492 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
26493 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
26494 (Fx_display_pixel_width, Fx_display_pixel_height)
26495 (Fx_display_planes, Fx_display_color_cells)
26496 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
26497 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
26498 (Fx_display_backing_store, Fx_display_visual_class)
26499 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
26500 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
26501
26502 * xfns.c (x_set_foreground_color x_set_background_color)
26503 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
26504 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26505 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
26506 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
26507 terminal that is being deleted.
26508 (Fx_create_frame): Use `store_frame_param' to set `window-system'
26509 frame parameter, and make sure it overrides any user-supplied setting.
26510 (Fx_close_connection, Fx_synchronize): Unify argument names with
26511 the rest of the DEFUNs.
26512
26513 * dispnew.c (Fsend_string_to_terminal): Update call to
26514 `get_tty_terminal'.
26515 (Fredraw_frame, Fsend_string_to_terminal)
26516 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
26517 FRAME_TERMCAP_P and FRAME_TTY.
26518 (window_change_signal): Don't believe width/height values that are
26519 impossibly small.
26520 (Vinitial_window_system): Rename from Vwindow_system.
26521 (termscript, Wcm, rif): Delete.
26522
26523 * termhooks.h (struct terminal): New struct containing the
26524 previously global text display hooks and new members NAME,
26525 DELETED and PARAM_ALIST.
26526 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
26527 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
26528 (FRAME_RIF): New macros.
26529 (get_terminal_param, get_device): New declarations.
26530 (termscript): Delete declaration.
26531
26532 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
26533 (XTflash, x_free_frame_resources, x_scroll_bar_create)
26534 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
26535 FRAME_FOREGROUND_PIXEL.
26536 (x_fully_uncatch_errors): Disable definition.
26537 (x_scroll_bar_expose): Fix reference to foreground pixel.
26538 (XTread_socket): Disable loop on all X displays.
26539 (x_delete_terminal): Don't set terminal->deleted and let
26540 delete_terminal delete the frames on the terminal.
26541 (x_delete_display): Doc update to reflect changes in
26542 delete_terminal.
26543 (x_display_info) <terminal>: Move member earlier in the struct.
26544 (deleting_tty): Remove old variable.
26545 (Fsuspend_tty): Call clear_tty_hooks.
26546 (Fresume_tty, init_tty): Call set_tty_hooks.
26547 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
26548 errors on X frames.
26549 (x_catch_errors_unwind): Abort if x_error_message is NULL.
26550 (handle_one_xevent): Initialize `f' to NULL.
26551 (x_delete_terminal, x_create_terminal): New functions.
26552 (XTset_terminal_modes, XTreset_terminal_modes)
26553 (XTread_socket, x_connection_closed, x_term_init)
26554 (x_term_init, x_delete_display): Add terminal parameter.
26555 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
26556 X connections.
26557
26558 * frame.c: Include termchar.h.
26559 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
26560 (Qwindow_system, Qenvironment, Qterm_environment_variable)
26561 (Qdisplay_environment_variable): New vars.
26562 (Fframep): Deal with output_initial.
26563 (Fframe-live-p): Doc fix.
26564 (Fwindow-system): New function.
26565 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
26566 (make_terminal_frame): Don't create frames on a terminal that is
26567 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26568 (store_frame_param): Check for found_for_frame before calling XFRAME.
26569 (Fmake_terminal_frame): Handle NULL tty names correctly.
26570 (syms_of_frame): Enhance doc string of `default-frame-alist'.
26571 (Fdelete_frame): Remove unused variable `count'. Don't allow other
26572 frames to refer to a deleted frame in their 'environment parameter.
26573 (Fframe_with_environment): New function.
26574 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
26575 (get_future_frame_param): New function.
26576 (Fmake_terminal_frame): Use it.
26577 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
26578
26579 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
26580 * sysdep.c (reset_sys_modes): Update for renames.
26581
26582 * keyboard.c (tty_read_avail_input): New function.
26583 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
26584 (syms_of_keyboard): Defsubr them.
26585 (Fset_input_meta_mode, Fset_quit_char): New functions.
26586 (Fset_input_mode): Split to above functions.
26587 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
26588 parameter. Use it in call to `read_char'.
26589 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
26590 Set wrong_kboard_jmpbuf correctly in recursive calls.
26591 Use current_kboard to access Vkeyboard_translate_table.
26592 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
26593 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
26594 Update longjmp invocations. Remember the original current_kboard,
26595 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
26596 changes it. Comment out unnecessary calls to
26597 `record_single_kboard_state' and `any_kboard_state'.
26598 Update recursive calls.
26599 (wrong_kboard_jmpbuf): Remove global variable.
26600 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
26601 Handle deleted interrupted_kboards correctly; that is a legal
26602 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
26603 and read_char calls. Abort if interrupted_kboard died in read_char.
26604 (any_kboard_state, single_kboard_state)
26605 (push_frame_kboard): Remove function.
26606 (pop_kboard): Switch out of single_kboard mode if the kboard has
26607 been deleted. Remove unused variable. Help debugging by not
26608 changing current_kboard unnecessarily. Set current_kboard to the
26609 kboard of the selected frame when the stored kboard object has
26610 been deleted before pop_kboard.
26611 (temporarily_switch_to_single_kboard): Change first parameter to a
26612 frame pointer. Throw an error when caller wants to change kboards
26613 while in single_kboard mode. Don't push_kboard if we weren't in
26614 single kboard state. Don't pop_kboard if we popped into any
26615 kboard state.
26616 (restore_kboard_configuration): Abort if pop_kboard changed the
26617 kboard in single_kboard mode. Call pop_kboard only after setting
26618 up single_kboard mode.
26619 (Frecursive_edit): Switch to single_kboard mode only in nested
26620 command loops.
26621 (cmd_error, command_loop, command_loop_1, timer_check):
26622 Comment out unnecessary call to `any_kboard_state' and
26623 `record_single_kboard_state'.
26624 (delete_kboard): Exit single_kboard mode if we have just deleted
26625 that kboard. Use FRAME_KBOARD.
26626 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
26627 `fatal_error_signal'.
26628 (record_single_kboard_state): Don't push_kboard if we weren't in
26629 single kboard state. Don't pop_kboard if we popped into any
26630 kboard state.
26631 (push_frame_kboard): Rename to push_kboard.
26632 (kbd_buffer_get_event): Use FRAME_TERMINAL.
26633 (read_avail_input): Read input from all terminals.
26634 (mark_kboards): Also mark Vkeyboard_translate_table.
26635 (kbd_buffer_store_event_hold): Simplify condition.
26636 (read_key_sequence): Reinitialize fkey and keytran at each replay.
26637 (Vkeyboard_translate_table): Move to struct kboard.
26638 (init_kboard): Initialize Vkeyboard_translate_table.
26639 (syms_of_keyboard): Use DEFVAR_KBOARD to define
26640 Vkeyboard_translate_table. Update doc strings. Update docs of
26641 local-function-key-map and function-key-map.
26642
26643 * terminal.c: New file.
26644
26645 * term.c: Include errno.h.
26646 (Vring_bell_function, device_list, initial_device)
26647 (next_device_id, ring_bell, update_begin, update_end)
26648 (set_terminal_window, cursor_to, raw_cursor_to)
26649 (clear_to_end, clear_frame, clear_end_of_line)
26650 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
26651 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
26652 (syms_of_term): Move their initialization to terminal.c.
26653 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
26654 (Ftty_display_color_cells)
26655 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
26656 (clear_tty_hooks, set_tty_hooks)
26657 (init_tty, maybe_fatal): New functions.
26658 (Ftty_type): Return nil if terminal is not on a tty instead of
26659 throwing an error. Doc update.
26660 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
26661 Doc update. Initialize new subrs and variables.
26662 (delete_tty): Use terminal->deleted.
26663 (tty_set_terminal_modes): Rename from set_terminal_modes.
26664 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
26665 (set_scroll_region): Rename to `tty_set_scroll_region'.
26666 (turn_on_insert): Rename to `tty_turn_on_insert'.
26667 (turn_off_insert): Rename to `tty_turn_off_insert'.
26668 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
26669 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
26670 (toggle_highligh): Rename to `tty_toggle_highlight'.
26671 (background_highlight): Rename to `tty_background_highlight'.
26672 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
26673 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
26674 (tty_set_scroll_region, tty_background_highlight)
26675 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
26676 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
26677 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
26678 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
26679 Add static modifier.
26680 (tty_reset_terminal_modes, tty_set_terminal_window)
26681 (tty_set_scroll_region, tty_background_highlight)
26682 (tty_highlight_if_desired, tty_cursor_to)
26683 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
26684 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
26685 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
26686 renames.
26687
266882007-08-28 Jan Djärv <jan.h.d@swipnet.se>
26689
26690 * keyboard.c: Qrtl is new.
26691 (parse_tool_bar_item): Handle :rtl keyword.
26692 (syms_of_keyboard): Intern :rtl keyword.
26693
26694 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
26695
26696 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
26697 so no Lisp code is executed.
26698 (file_for_image, find_rtl_image): New functions.
26699 (xg_get_image_for_pixmap): Use file_for_image.
26700 (update_frame_tool_bar): If direction is RTL, use RTL image if
26701 defined. Use Gtk stock images if defined.
26702
267032007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26704
26705 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
26706 for nonexistent or zero-width glyph in composition glyph.
26707
267082007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
26709
26710 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
26711
26712 * xdisp.c (Finvisible_p): New function.
26713 (syms_of_xdisp): defsubr it.
26714
267152007-08-24 Juanma Barranquero <lekktu@gmail.com>
26716
26717 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
26718 Doc fixes.
26719
267202007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26721
26722 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
26723
267242007-08-24 Martin Rudalics <rudalics@gmx.at>
26725
26726 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
26727 whether decoding has modified buffer contents.
26728
267292007-08-24 Jason Rumney <jasonr@gnu.org>
26730
26731 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
26732 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
26733 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
26734 (init_svg_functions) [HAVE_NTGUI]: New function.
26735 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
26736 (svg_load_image): Use them.
26737 (svg_load_image) [HAVE_NTGUI]: Implement background.
26738
267392007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26740
26741 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
26742 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
26743 (LIBX): Remove @RSVG_LIBS@.
26744 (LIBES): Add $(RSVG_LIBS).
26745
26746 * image.c (svg_load_image): Blend with specified background if exists.
26747 Use IMAGE_BACKGROUND. Add Mac OS Support.
26748
26749 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
26750 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
26751 Remove macros.
26752 [MAC_OSX] (socket_callback): Do nothing.
26753 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
26754 ReceiveNextEvent.
26755 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
26756 socket_callback.
26757 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
26758
267592007-08-22 Glenn Morris <rgm@gnu.org>
26760
26761 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
26762
267632007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
26764
26765 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
26766
26767 * image.c: Add support for SVG images. Some additional comments
26768 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
26769 (svg_image_p): New function to test for SVG image.
26770 (svg_load): New function to load SVG image.
26771 (svg_load_image): New function, helper for svg_load.
26772 (Qsvg): New Lisp_object.
26773 (svg_keyword_index): New enum.
26774 (svg_format): New static `image_keyword' struct.
26775 (svg_type): New static `image_type' struct.
26776 (librsvg/rsvg.h): Include it.
26777
267782007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
26779
26780 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
26781
267822007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
26783
26784 * lread.c (Qold_style_backquotes): New var.
26785 (syms_of_lread): Init and staticpro it.
26786 (load_warn_old_style_backquotes): New fun.
26787 (Fload): Use them to warn about old style backquotes.
26788 (end_of_file_error, Fload): Remove unused vars.
26789
26790 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
26791
26792 * lread.c (Vold_style_backquotes): New var.
26793 (syms_of_lread): Init and export it to Elisp.
26794 (read1): Set it when we find an old-style (back)quote.
26795
267962007-08-22 Jason Rumney <jasonr@gnu.org>
26797
26798 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
26799
268002007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
26801
26802 * puresize.h (BASE_PURESIZE): Increase to 1140000.
26803
268042007-08-19 Richard Stallman <rms@gnu.org>
26805
26806 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
26807
268082007-08-19 Andreas Schwab <schwab@suse.de>
26809
26810 * alloc.c (pure): Round PURESIZE up.
26811
268122007-08-17 Jan Djärv <jan.h.d@swipnet.se>
26813
26814 * xterm.c (handle_one_xevent): Remove check that mouse click is in
26815 active frame.
26816
268172007-08-16 Richard Stallman <rms@gnu.org>
26818
26819 * eval.c (Fcommandp): Add parens to clarify.
26820
26821 * minibuf.c (Fall_completions): Use enum for type of table.
26822
26823 * emacs.c (USAGE2): Improve text.
26824
268252007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
26826
26827 * term.c (tty_default_color_capabilities): Declare static
26828 variables in file scope, to avoid HPUX compiler problem.
26829
268302007-08-13 Jan Djärv <jan.h.d@swipnet.se>
26831
26832 * gtkutil.c (update_frame_tool_bar): Use -1 as index
26833 to gtk_toolbar_insert.
26834
268352007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
26836
26837 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
26838
26839 * insdel.c (reset_var_on_error): New fun.
26840 (signal_before_change, signal_after_change):
26841 Use it to reset (after|before)-change-functions to nil in case of error.
26842 Bind inhibit-modification-hooks to t.
26843 Don't bind (after|before)-change-functions to nil while they run.
26844
268452007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26846
26847 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
26848 filling pixmap with stippled background.
26849
268502007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26851
26852 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
26853 Don't use invisible frame as parent window for repositioning.
26854
268552007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
26856
26857 * print.c (new_backquote_output): Rename from old_backquote_output.
26858 (print): Inverse its logic (according to its name) so as to match the
26859 behavior of new_backquote_flag in lread.c.
26860
268612007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26862
26863 * gmalloc.c (posix_memalign): New function.
26864
26865 * macterm.c (frame_highlight, frame_unhighlight): Don't call
26866 ActivateControl/DeactivateControl here.
26867 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
26868 frame-notice-user-settings is non-nil.
26869 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
26870 for kEventParamFMFontStyle.
26871 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
26872 mac_pass_command_to_system and mac_pass_control_to_system here.
26873 (XTread_socket): Call ActivateControl/DeactivateControl here.
26874 (XTread_socket) [TARGET_API_MAC_CARBON]:
26875 Check mac_pass_command_to_system and mac_pass_control_to_system here.
26876 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
26877 for window repositioning.
26878
268792007-08-08 Glenn Morris <rgm@gnu.org>
26880
26881 * Replace `iff' in doc-strings and comments.
26882
268832007-08-07 Chong Yidong <cyd@stupidchicken.com>
26884
26885 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
26886
268872007-08-07 Martin Rudalics <rudalics@gmx.at>
26888
26889 * fileio.c (Finsert_file_contents): Run format-decode and
26890 after_insert_file_functions on entire buffer when REPLACE is
26891 non-nil and inhibit modification_hooks and point_motion_hooks.
26892 For consistency, run after_insert_file_functions iff something
26893 got inserted. Move signal_after_change and update_compositions
26894 after code running after_insert_file_functions. Make sure that
26895 undo_list doesn't record intermediate steps of the decoding process.
26896
268972007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26898
26899 * emacs.c (main)
26900 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
26901 Call malloc_enable_thread on interactive startup.
26902
26903 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
26904 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
26905 [USE_PTHREAD]: Conditionalize with it.
26906 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
26907 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
26908 New functions.
26909
269102007-08-06 Chong Yidong <cyd@stupidchicken.com>
26911
26912 * xdisp.c (redisplay_window): When restoring original buffer
26913 position, make sure it is still valid.
26914
26915 * image.c (png_load): Ignore png-supplied background color.
26916
269172007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26918
26919 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
26920 Use kCFAbsoluteTimeIntervalSince1970.
26921
26922 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
26923 New variable.
26924 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
26925 event loop should be quit.
26926 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
26927 Quit dialog event loop if quit_dialog_event_loop is set.
26928
26929 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
26930 (Selection): New typedef. Use instead of ScrapRef.
26931 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
26932 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
26933 (mac_clear_selection): Rename from clear_scrap.
26934 (get_flavor_type_from_symbol): New argument SEL and subsume function of
26935 scrap_has_target_type. All uses changed.
26936 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
26937 (mac_selection_has_target_p): New functions.
26938 (mac_put_selection_value): Rename from put_scrap_string.
26939 (mac_get_selection_value): Rename from get_scrap_string.
26940 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
26941 (put_scrap_private_timestamp, scrap_has_target_type)
26942 (get_scrap_private_timestamp): Remove functions.
26943 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
26944 (x_own_selection, x_get_local_selection):
26945 Use mac_valid_selection_value_p.
26946 (x_own_selection): Don't use put_scrap_private_timestamp.
26947 Record OWNERSHIP-INFO into Vselection_alist instead.
26948 (x_get_local_selection): Don't check type if request is local.
26949 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
26950 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
26951
269522007-08-04 Jan Djärv <jan.h.d@swipnet.se>
26953
26954 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
26955 add comment explaining why.
26956
269572007-08-03 Richard Stallman <rms@gnu.org>
26958
26959 * fileio.c (Fvisited_file_modtime): Use make_time.
26960
269612007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
26962
26963 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
26964 build.
26965
269662007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
26967
26968 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
26969
269702007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
26971
26972 * puresize.h (BASE_PURESIZE): Increase to 1130000.
26973
269742007-07-30 Richard Stallman <rms@gnu.org>
26975
26976 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
26977
269782007-07-29 Jan Djärv <jan.h.d@swipnet.se>
26979
26980 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
26981
269822007-07-28 Nick Roberts <nickrob@snap.net.nz>
26983
26984 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
26985 remote default-directory.
26986
26987 * buffer.c (mode-line-format): Update doc string.
26988
269892007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26990
26991 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
26992 scroll bar gap.
26993 (x_scroll_bar_create): Set bar->fringe_extended_p.
26994 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
26995 on frame edge. Check fringe background extension. Don't clear
26996 extended fringe background area.
26997
26998 * w32term.h (struct scroll_bar): New member fringe_extended_p.
26999 (w32_fill_area): Enclose multiple statements with do ... while (0).
27000
27001 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
27002 Extend fringe background to scroll bar gap.
27003 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
27004 Set bar->fringe_extended_p.
27005 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
27006 Put leftmost/rightmost scroll bars on frame edge. Check fringe
27007 background extension. Don't clear extended fringe background area.
27008
27009 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
27010 New member fringe_extended_p.
27011
270122007-07-25 Glenn Morris <rgm@gnu.org>
27013
27014 * Relicense all FSF files to GPLv3 or later.
27015
27016 * COPYING: Switch to GPLv3.
27017
270182007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
27019
27020 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
27021
27022 * data.c (Finteractive_form): Check for the presence of an
27023 `interactive-form' symbol property more thoroughly.
27024
27025 * data.c (Finteractive_form): Use an `interactive-form' property if
27026 present, analogous to the function-documentation property.
27027
270282007-07-24 Jason Rumney <jasonr@gnu.org>
27029
27030 * w32fns.c (x_real_positions): Get real position from OS instead of
27031 calculating it.
27032
270332007-07-23 Jason Rumney <jasonr@gnu.org>
27034
27035 * filelock.c (current_lock_owner): Allow for @ sign in username.
27036
270372007-07-22 Nick Roberts <nickrob@snap.net.nz>
27038
27039 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
27040 remote default-directory.
27041
27042 * buffer.c (mode-line-format): Describe above case in doc string.
27043
270442007-07-20 Eli Zaretskii <eliz@gnu.org>
27045
27046 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
27047 Define if not defined.
27048
270492007-07-18 Jason Rumney <jasonr@gnu.org>
27050
27051 * w32proc.c (w32_executable_type): Handle 64 bit executables.
27052
270532007-07-18 Richard Stallman <rms@gnu.org>
27054
27055 * data.c (Fsetq_default): Doc fix.
27056
27057 * eval.c (Fsetq): Doc fix.
27058
270592007-07-18 Juanma Barranquero <lekktu@gmail.com>
27060
27061 * coding.c (Ffind_operation_coding_system):
27062 * eval.c (For, Fand): Doc fixes.
27063 Reported by Johan Bockgård.
27064
270652007-07-18 Jan Djärv <jan.h.d@swipnet.se>
27066
27067 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
27068
27069 * xterm.h: Declare x_ewmh_activate_frame.
27070
27071 * xterm.c (x_ewmh_activate_frame): New function.
27072 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
27073
270742007-07-17 Martin Rudalics <rudalics@gmx.at>
27075
27076 * window.c (Fdisplay_buffer): If largest or LRU window is the
27077 only window, split it even if it is not eligible for splitting.
27078 This restores the original behavior broken by the 2007-07-15
27079 change.
27080
270812007-07-17 Glenn Morris <rgm@gnu.org>
27082
27083 * abbrev.c (abbrev_check_chars): New function.
27084 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
27085 Call abbrev_check_chars to check abbrev characters are word
27086 constituents. Doc fix.
27087
270882007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
27089
27090 * process.c (Fstart_process, Fmake_network_process)
27091 (read_process_output): Fix up last changes.
27092
270932007-07-16 Eli Zaretskii <eliz@gnu.org>
27094
27095 * makefile.w32-in (clean): Don't delete *~.
27096
270972007-07-16 Andreas Schwab <schwab@suse.de>
27098
27099 * window.c (Fdisplay_buffer): Use NILP.
27100 (Fset_window_scroll_bars): Likewise.
27101
271022007-07-15 Martin Rudalics <rudalics@gmx.at>
27103
27104 * window.c (window_min_size_2): New function.
27105 (window_min_size_1, size_window, Fdisplay_buffer)
27106 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
27107 windows without mode- or header-lines when window-min-height is
27108 too small.
27109 (size_window): Reset nodelete_p after testing it, following an
27110 earlier note by Kim F. Storm.
27111 (display_buffer): Do not set split_height_threshold to twice the
27112 value of window_min_height to avoid changing the value of a
27113 customizable variable. Rather explicitly check whether the
27114 height of the window that shall be splitted is at least as large
27115 as split_height_threshold.
27116 (Fwindow_full_width_p): New defun.
27117 (syms_of_window): Defsubr it.
27118
27119 * window.h: Add EXFUN for Fwindow_full_width_p.
27120
271212007-07-14 Jason Rumney <jasonr@gnu.org>
27122
27123 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
27124
271252007-07-14 Richard Stallman <rms@gnu.org>
27126
27127 * eval.c (maybe_call_debugger): New function.
27128 (find_handler_clause): Use maybe_call_debugger.
27129 Call it when the handler says `debug'.
27130 Eliminate DEBUGGER_VALUE_PTR.
27131 (Fsignal): Eliminate debugger_value.
27132 (Qdebug): New variable.
27133 (syms_of_eval): Initialize it.
27134
271352007-07-14 Juanma Barranquero <lekktu@gmail.com>
27136
27137 * eval.c (Fprogn):
27138 * keyboard.c (Ftrack_mouse):
27139 * print.c (Fwith_output_to_temp_buffer):
27140 * window.c (Fsave_window_excursion): Doc fix.
27141
271422007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
27143
27144 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
27145
271462007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
27147
27148 * process.h (struct Lisp_Process): Turn slots infd, outfd,
27149 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
27150 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
27151 read_output_delay, and read_output_skip from Lisp_Objects to ints.
27152 Remove unused encoding_carryover.
27153 * process.c: Adjust all functions accordingly.
27154
271552007-07-12 Richard Stallman <rms@gnu.org>
27156
27157 * term.c: Include unistd.h only if HAVE_UNISTD_H.
27158
271592007-07-11 Jason Rumney <jasonr@gnu.org>
27160
27161 * makefile.w32-in (LIBS): Include OLE32.
27162
27163 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
27164 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
27165
271662007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
27167
27168 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
27169 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
27170 from a Lisp_Object into a bare pointer.
27171 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
27172 Adjust the code correspondingly.
27173
27174 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
27175
27176 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
27177 (term_show_mouse_face): Remove unused var `j'.
27178 (handle_one_term_event): Remove unused vars `i' and `j'.
27179 Don't cast return value of ttyname since it's not necessary.
27180
271812007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
27182
27183 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
27184 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
27185
27186 * fns.c (map_char_table): Use an array of int for `indices' rather than
27187 an array of Lisp_Objects (which are only ever integers anyway).
27188 (Fmap_char_table): Update caller.
27189 * lisp.h: Update prototype.
27190 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
27191 * fontset.c (Ffontset_info):
27192 * casetab.c (set_case_table): Update callers.
27193
27194 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
27195
27196 * keymap.c (struct accessible_keymaps_data)
27197 (struct where_is_internal_data): New structures.
27198 (accessible_keymaps_1, where_is_internal_1): Use them to change
27199 interface to adhere to the one used by map_keymap.
27200 (Faccessible_keymaps, where_is_internal): Use map_keymap.
27201 (accessible_keymaps_char_table, where_is_internal_2): Remove.
27202
27203 * keymap.h (map_keymap_function_t): More informative prototype.
27204
272052007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
27206
27207 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
27208 (looking_at_1): Don't change search_regs and last_thing_searched
27209 if `inhibit-changing-match-data' is non-nil.
27210 (string_match_1, search_buffer, set_search_regs): Likewise.
27211 (syms_of_search): Add Lisp level definition for
27212 `inhibit-changing-match-data' and set it to nil.
27213 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
27214 start and end of the match, instead of using values in search_regs.
27215
272162007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
27217
27218 * minibuf.c (Fcompleting_read): New value `confirm-only'
27219 for `require-match'.
27220
272212007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
27222
27223 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
27224 part of the 2007-06-27 change to syms_of_fileio.
27225
272262007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27227
27228 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
27229 Check WINDOWP before using XWINDOW. Consolidate return statements.
27230
272312007-06-27 Richard Stallman <rms@gnu.org>
27232
27233 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
27234
272352007-06-27 Juanma Barranquero <lekktu@gmail.com>
27236
27237 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
27238
272392007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27240
27241 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
27242 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
27243 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
27244 (_free_internal, memalign): Use them.
27245 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
27246 Initialize to PTHREAD_MUTEX_INITIALIZER.
27247 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
27248 (morecore_nolock): Rename from morecore. All uses changed.
27249 Use only nolock versions of internal allocation functions.
27250 (_malloc_internal_nolock, _realloc_internal_nolock)
27251 (_free_internal_nolock): New functions created from
27252 _malloc_internal, _realloc_internal, and _free_internal.
27253 (_malloc_internal, _realloc_internal, _free_internal): Use them.
27254 Copy hook value to automatic variable before its use.
27255 (memalign): Copy hook value to automatic variable before its use.
27256
272572007-06-26 Kenichi Handa <handa@m17n.org>
27258
27259 * coding.c (Ffind_operation_coding_system): Docstring improved.
27260 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
27261
272622007-06-25 David Kastrup <dak@gnu.org>
27263
27264 * keymap.c (Fcurrent_active_maps): Add `position' argument.
27265 (Fwhere_is_internal): Adjust call to `current-active-maps' to
27266 cater for additional parameter.
27267
27268 * keymap.h: Adjust number of parameters to `current-active-maps'.
27269
27270 * doc.c (Fsubstitute_command_keys): Adjust call of
27271 `current-active-maps'.
27272
272732007-06-25 David Kastrup <dak@gnu.org>
27274
27275 * callint.c (Fcall_interactively): Make the parsing of interactive
27276 specs somewhat more readable.
27277
272782007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27279
27280 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
27281 to scroll bar gap also when bitmap fills fringe. Draw only foreground
27282 if extended background has already been filled.
27283
272842007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27285
27286 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
27287 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
27288
27289 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
27290 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
27291 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
27292 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
27293 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
27294 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
27295 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
27296 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
27297 Run timers during dialog popup.
27298 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
27299
273002007-06-21 Jason Rumney <jasonr@gnu.org>
27301
27302 * image.c (convert_mono_to_color_image): Swap fore and background.
27303
273042007-06-20 Jason Rumney <jasonr@gnu.org>
27305
27306 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
27307 (w32_free_bdf_font): Unmap memory not handle.
27308
273092007-06-20 Sam Steingold <sds@gnu.org>
27310
27311 * gmalloc.c (__morecore): Fix the declaration to comply with the
27312 definition.
27313
273142007-06-20 Juanma Barranquero <lekktu@gmail.com>
27315
27316 * w32term.c (w32_delete_display): Remove leftover declaration.
27317 (w32_define_cursor, w32_initialize): Make static.
27318
27319 * w32.c (_wsa_errlist): Fix typo in error message.
27320 (init_environment): Ignore any environment variable from the
27321 registry having a null value.
27322
273232007-06-20 Glenn Morris <rgm@gnu.org>
27324
27325 * Makefile.in (LIBGIF): Default to -lgif.
27326
273272007-06-17 Jason Rumney <jasonr@gnu.org>
27328
27329 * w32menu.c (add_menu_item): Don't use multibyte string functions on
27330 unicode strings.
27331
273322007-06-16 Juanma Barranquero <lekktu@gmail.com>
27333
27334 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
27335 Fix typo in docstring.
27336
273372007-06-16 Eli Zaretskii <eliz@gnu.org>
27338
27339 * w32menu.c (add_menu_item): Escape `&' characters in menu items
27340 and their keybindings.
27341
273422007-06-15 Chong Yidong <cyd@stupidchicken.com>
27343
27344 * composite.c (update_compositions): Fix last fix.
27345
273462007-06-14 Jason Rumney <jasonr@gnu.org>
27347
27348 * w32.c (get_process_times_fn): New function pointer.
27349 (globals_of_w32): Intialize it if present in kernel32.dll.
27350 (w32_get_internal_run_time): New function.
27351
27352 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
27353
273542007-06-14 Kenichi Handa <handa@etlken.m17n.org>
27355
27356 * composite.c (update_compositions): Check the validness of
27357 compositions.
27358
273592007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27360
27361 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
27362 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
27363
27364 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
27365 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
27366
27367 * macgui.h (USE_MAC_TOOLBAR): New define.
27368
27369 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
27370 Return immediately unless popup is activated.
27371
27372 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
27373 background to scroll bar gap.
27374 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
27375 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
27376 scroll bars on frame edge. Check fringe background extension.
27377 Don't clear extended fringe background area.
27378 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
27379 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
27380 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
27381 [USE_MAC_TOOLBAR]: New macros.
27382 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
27383 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
27384 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
27385 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
27386 [USE_MAC_TOOLBAR]: New functions.
27387 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
27388 manually if previous repositioning has failed.
27389 (mac_handle_keyboard_event): Use precomputed event kind.
27390 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
27391 as tool bar item click. Handle mouse movement over tool bar items.
27392
27393 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
27394 toolbar_win_gravity.
27395 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
27396 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
27397 Add externs.
27398
27399 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
27400 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
27401
274022007-06-14 Chong Yidong <cyd@stupidchicken.com>
27403
27404 * image.c (search_image_cache): Remove unused variable.
27405
274062007-06-13 Chong Yidong <cyd@stupidchicken.com>
27407
27408 * xfns.c, xmenu.c: Link to xaw3d if available.
27409
274102007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27411
27412 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
27413 frame_foreground and frame_background.
27414
27415 * image.c (lookup_image): Save frame foreground and background colors.
27416 (search_image_cache): Check if saved and current frame colors match.
27417
274182007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
27419
27420 * regex.c (regex_compile): Remove the `regnum' counter.
27421 Use bufp->re_nsub instead. Add support for \(?N:RE\).
27422
274232007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
27424
27425 * term.c: Include intervals.h to declare Fget_text_property.
27426
274272007-06-10 Jason Rumney <jasonr@gnu.org>
27428
27429 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
27430
274312007-06-08 Juanma Barranquero <lekktu@gmail.com>
27432
27433 * callint.c (Fcall_interactively):
27434 * editfns.c (Fdelete_and_extract_region):
27435 * fileio.c (Fread_file_name):
27436 * fns.c (Fmapconcat):
27437 * keyboard.c (cmd_error_internal):
27438 * keymap.c (Fkey_description):
27439 * lread.c (openp):
27440 * minibuf.c (read_minibuf):
27441 * search.c (wordify):
27442 * sunfns.c (sel_read):
27443 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
27444 * xfns.c (x_default_scroll_bar_color_parameter):
27445 * xmenu.c (menu_help_callback):
27446 * xselect.c (Fx_get_atom_name):
27447 * xterm.c (x_term_init): Use empty_unibyte_string.
27448
274492007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
27450
27451 * alloc.c (init_strings): Initialize canonical empty strings.
27452 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
27453 canonical empty string when the requested size is 0.
27454
27455 * emacs.c (empty_unibyte_string): Rename from empty_string.
27456 (empty_multibyte_string): New canonical empty string.
27457 (syms_of_emacs): Don't initialize empty_string.
27458
27459 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
27460 string, if appropriate.
27461 (empty_unibyte_string, empty_multibyte_string): New externs.
27462 (empty_string): Remove extern.
27463
27464 * lread.c (syms_of_lread): Use empty_unibyte_string.
27465
274662007-06-07 Jason Rumney <jasonr@gnu.org>
27467
27468 * s/ms-w32.h: Don't define HAVE_TZNAME.
27469
27470 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
27471
274722007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27473
27474 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
27475
27476 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
27477 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
27478
27479 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
27480 Don't call next handler.
27481 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
27482 Remove argument. Install handler to application.
27483 (set_frame_menubar): Don't change deep_p.
27484 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
27485 FRAME_OUTER_TO_INNER_DIFF_Y.
27486 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
27487 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
27488 [HAVE_DIALOGS]: New macros.
27489 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
27490 Use them.
27491 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
27492
27493 * macselect.c [MAC_OSX] (install_service_handler): Rename from
27494 init_service_handler. All callers changed. Return OSStatus value.
27495
27496 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
27497 All callers changed so as not to call SetPortWindowPort.
27498 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
27499 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
27500 mac_draw_string_common.
27501 (mac_draw_image_string_qd): Likewise.
27502 (mac_draw_string_common): Use them. Add INLINE.
27503 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
27504 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
27505 GetGlobalMouse.
27506 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
27507 and FRAME_OUTER_TO_INNER_DIFF_Y.
27508 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
27509 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
27510 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
27511 repositioning window to mac_handle_window_event.
27512 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
27513 saving window location to mac_handle_window_event
27514 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
27515 (install_menu_target_item_handler): Remove argument in extern.
27516 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
27517 Also accept command events.
27518 (do_keystroke): New function created from XTread_socket.
27519 (init_command_handler): Remove functions.
27520 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
27521 and save window location by kEventWindowShowing and kEventWindowHiding
27522 handlers here. Don't call next handler for window state change and
27523 focus events.
27524 (mac_handle_application_event, mac_handle_keyboard_event)
27525 [TARGET_API_MAC_CARBON]: New functions.
27526 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
27527 kEventWindowShowing and kEventWindowHiding events. Move installation
27528 of mouse, font, text input and menu target item handlers to
27529 install_application_handler.
27530 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
27531 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27532 New function.
27533 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27534 Register it.
27535 (XTread_socket) [TARGET_API_MAC_CARBON]:
27536 Consolidate SendEventToEventTarget calls.
27537 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
27538 Move application activation handler to mac_handle_application_event.
27539 Move keyboard handler to mac_handle_keyboard_event.
27540 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
27541 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
27542 init_command_handler. Call install_application_handler.
27543
27544 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
27545 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
27546
275472007-06-07 Glenn Morris <rgm@gnu.org>
27548
27549 * emacs.c (main): Use `emacs-copyright' in --version output.
27550
275512007-06-06 Chong Yidong <cyd@stupidchicken.com>
27552
27553 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
27554
275552007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27556
27557 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
27558
27559 * macgui.h: Replace WindowPtr with WindowRef.
27560
27561 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27562 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27563 Replace ControlHandle with ControlRef.
27564 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
27565
27566 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27567 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27568 Replace ControlHandle with ControlRef.
27569 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
27570 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
27571
27572 * macterm.h (struct scroll_bar): Rename member control_handle_low
27573 and control_handle_high to control_ref_low and control_ref_high.
27574 All uses changed.
27575 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
27576 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
27577 respectively. All uses changed.
27578 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
27579 (install_window_handler, remove_window_handler): Replace WindowPtr
27580 with WindowRef in externs.
27581
275822007-06-05 Juanma Barranquero <lekktu@gmail.com>
27583
27584 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
27585
275862007-06-03 Nick Roberts <nickrob@snap.net.nz>
27587
27588 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
27589
27590 * frame.c (Fmouse_position, Fmouse_pixel_position):
27591 Condition on HAVE_GPM too.
27592
27593 * term.c (term_mouse_highlight): Remove unused variables.
27594 (Fterm_open_connection): Set gpm_zerobased to 1.
27595 (term_mouse_movement, term_mouse_click, handle_one_term_event):
27596 Use zero based co-ordinates.
27597 (handle_one_term_event): Report a drag as mouse movement too.
27598
27599 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
27600
276012007-06-03 Chong Yidong <cyd@stupidchicken.com>
27602
27603 * image.c (search_image_cache): New function. Require background
27604 color match if background color is unspecified in the image spec.
27605 (uncache_image, lookup_image): Use it.
27606
276072007-06-01 Juanma Barranquero <lekktu@gmail.com>
27608
27609 * window.c (Fshrink_window): Reflow docstring.
27610
276112007-06-02 Chong Yidong <cyd@stupidchicken.com>
27612
27613 * Version 22.1 released.
27614
276152007-06-01 Richard Stallman <rms@gnu.org>
27616
27617 * xfns.c (x_encode_text): Add GCPRO.
27618
276192007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27620
27621 * xfns.c (x_set_name_internal): Save encoded name before
27622 x_encode_text in case string data is relocated.
27623
276242007-05-31 Richard Stallman <rms@gnu.org>
27625
27626 * buffer.c (syms_of_buffer): Doc fix.
27627
276282007-05-30 Nick Roberts <nickrob@snap.net.nz>
27629
27630 * sysdep.c (init_sys_modes): Add rather than replace with
27631 O_NONBLOCK.
27632
27633 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
27634 term_mouse_moveto.
27635
27636 * termhooks.h (term_mouse_moveto): New extern.
27637
27638 * term.c (mouse_face_window): Rename...
27639 (Qmouse_face_window): ...to this.
27640 (term_show_mouse_face, term_clear_mouse_face)
27641 (term_mouse_highlight): Use Qmouse_face_window.
27642 (term_mouse_moveto): New function.
27643 (term_mouse_position): Make it work.
27644 (syms_of_term): Uncomment assignment to mouse_position_hook.
27645 Staticpro Qmouse_face_window.
27646
276472007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27648
27649 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
27650 around current_column call.
27651
276522007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
27653
27654 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
27655 * xdisp.c (next_element_from_buffer):
27656 * window.c (delete_window):
27657 * term.c (term_mouse_highlight):
27658 * msdos.c (getdefdir):
27659 * macterm.c (mac_create_bitmap_from_bitmap_data)
27660 (init_font_name_table):
27661 * fns.c (Fsxhash):
27662 * data.c (Fmake_local_variable):
27663 * ccl.c (ccl_driver): Likewise.
27664
276652007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27666
27667 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
27668 Call mac_wakeup_from_rne on window size change.
27669
276702007-05-25 Chong Yidong <cyd@stupidchicken.com>
27671
27672 * image.c (uncache_image): Fix typo.
27673
276742007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
27675
27676 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
27677
276782007-05-22 Richard Stallman <rms@gnu.org>
27679
27680 * xterm.c (x_connection_closed): Remove NO_RETURN.
27681
276822007-05-22 Martin Rudalics <rudalics@gmx.at>
27683
27684 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
27685
276862007-05-21 Chong Yidong <cyd@stupidchicken.com>
27687
27688 * image.c (uncache_image): New function.
27689 (Fimage_refresh): New function.
27690
276912007-05-20 Jan Djärv <jan.h.d@swipnet.se>
27692
27693 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
27694
276952007-05-20 Nick Roberts <nickrob@snap.net.nz>
27696
27697 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
27698 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
27699
277002007-05-20 Nick Roberts <nickrob@snap.net.nz>
27701
27702 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
27703 conditional on [HAVE_GPM_H].
27704
277052007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
27706
27707 * syntax.c (skip_chars): Update syntax-table only after we checked that
27708 the new location is valid.
27709
277102007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27711
27712 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
27713 mac_get_window_bounds.
27714
277152007-05-20 Nick Roberts <nickrob@snap.net.nz>
27716
27717 * Makefile.in (LIBGPM): Allow it to be set from configure.
27718 If set then link Emacs with it.
27719
27720 * config.in: Regenerate.
27721
27722 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
27723 New externs.
27724
27725 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
27726 Include gpm.h.
27727 (handle_one_term_event, term_gpm): New externs.
27728
27729 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
27730 and allow it to be interrupted by SIGIO.
27731
27732 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
27733 (wait_reading_process_output): Wait on gpm_fd too.
27734 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
27735 (add_gpm_wait_descriptor_called_flag): New variable.
27736 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
27737
27738 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
27739 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
27740 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
27741 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
27742 (make_lispy_event): Add case GPM_CLICK_EVENT.
27743 (read_avail_input): Handle mouse input.
27744
27745 * term.c (write_glyphs_with_face): New function.
27746 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
27747 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
27748 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
27749 (mouse_face_face_id, term_gpm, pos_x, pos_y)
27750 (last_mouse_x, last_mouse_y): New variables.
27751 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
27752 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
27753 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
27754 (Fterm_close_connection): New functions.
27755 (term_init): Initialise mouse_face_window.
27756
277572007-05-19 Chong Yidong <cyd@stupidchicken.com>
27758
27759 * xdisp.c (redisplay_window): If first window line is a
27760 continuation line, recompute the new window start instead of
27761 recentering.
27762
277632007-05-18 Glenn Morris <rgm@gnu.org>
27764
27765 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
27766 Suggested by Alfred M. Szmidt <ams@gnu.org>.
27767
277682007-05-17 Glenn Morris <rgm@gnu.org>
27769
27770 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
27771
277722007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27773
27774 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
27775 dead key repeat and up events.
27776
277772007-05-14 Chong Yidong <cyd@stupidchicken.com>
27778
27779 * image.c (pbm_load): Check image size for monochrome pbm.
27780
277812007-05-13 Chong Yidong <cyd@stupidchicken.com>
27782
27783 * xterm.c (XTread_socket): Revert last change.
27784
277852007-05-12 Chong Yidong <cyd@stupidchicken.com>
27786
27787 * image.c (pbm_load): Correctly check image size for greyscale pbm.
27788
27789 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
27790
277912007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27792
27793 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
27794 mixup (YAILOM).
27795
277962007-05-07 Andreas Schwab <schwab@suse.de>
27797
27798 * keymap.c (Flookup_key): Fix typo in last change.
27799
278002007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27801
27802 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
27803 mapping for unibyte strings.
27804
278052007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27806
27807 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
27808 (Fx_popup_dialog) [MAC_OSX]: Likewise.
27809
278102007-04-29 Richard Stallman <rms@gnu.org>
27811
27812 * insdel.c (replace_range): For undo, record insertion first.
27813
278142007-04-29 Andreas Schwab <schwab@suse.de>
27815
27816 * lisp.h (VECSIZE): Use OFFSETOF.
27817
278182007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27819
27820 * xdisp.c (try_window_reusing_current_matrix): Fix number of
27821 disabled lines.
27822
278232007-04-28 Richard Stallman <rms@gnu.org>
27824
27825 * lread.c (read_escape): In a string, \s is always space.
27826
278272007-04-27 Jan Djärv <jan.h.d@swipnet.se>
27828
27829 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
27830
27831 * gtkutil.c (xg_update_menubar, create_menus): Create empty
27832 submenu for menu bar items.
27833
27834See ChangeLog.10 for earlier changes.
27835
27836;; Local Variables:
27837;; coding: utf-8
27838;; add-log-time-zone-rule: t
aac0c6e3
MR
27839;; End:
27840
e3eb1dae 27841 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
27842
27843 This file is part of GNU Emacs.
27844
27845 GNU Emacs is free software: you can redistribute it and/or modify
27846 it under the terms of the GNU General Public License as published by
27847 the Free Software Foundation, either version 3 of the License, or
27848 (at your option) any later version.
27849
27850 GNU Emacs is distributed in the hope that it will be useful,
27851 but WITHOUT ANY WARRANTY; without even the implied warranty of
27852 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27853 GNU General Public License for more details.
27854
27855 You should have received a copy of the GNU General Public License
27856 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
27857
27858;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40